@feedmepos/mf-connect 0.1.9-prod → 0.1.10-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 (90) hide show
  1. package/dist/{Analytic-8Ew7y5t9.js → Analytic-CpSbitWV.js} +24 -23
  2. package/dist/{App-3BVNH3r-.js → App-BPT8XzjX.js} +56 -51
  3. package/dist/{Broadcast-CrsPUhLT.js → Broadcast-CJHpiQeN.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -7
  5. package/dist/Card-Bvn36zqZ.js +895 -0
  6. package/dist/{Collections-djS9hLI8.js → Collections-Bq6OxsJC.js} +24 -29
  7. package/dist/{Credit-D4KEvIov.js → Credit-Dno_g7dW.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js} +648 -1284
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +19 -19
  10. package/dist/{Experience-2FPLO7aV.js → Experience-BC1qSIGO.js} +8 -8
  11. package/dist/{Game-e_UjVJgU.js → Game-C_CKGMBW.js} +8 -8
  12. package/dist/Index-BXFaWTfw.js +255 -0
  13. package/dist/{Marketing-B2hCjZ2r.js → Marketing-Ni0WAie5.js} +5 -5
  14. package/dist/{Member-D_ykRIBb.js → Member-djnisrK1.js} +4 -4
  15. package/dist/{MemberList-LmzzYxEn.js → MemberList-CclU-3B7.js} +193 -189
  16. package/dist/{MemberTransactions-B2vqlKaP.js → MemberTransactions-DVVsv3Ux.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
  18. package/dist/Mission-Z5somdo_.js +273 -0
  19. package/dist/Overview-BvMVz3lQ.js +1074 -0
  20. package/dist/{Point-DFriwWWY.js → Point-DdPukiTg.js} +8 -8
  21. package/dist/{Promotion-Db3IEs2F.js → Promotion-DCqdIwjG.js} +9 -9
  22. package/dist/Record-CvMxXm1B.js +337 -0
  23. package/dist/Reward-CiJHGXfQ.js +441 -0
  24. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
  26. package/dist/{Segment-CE8q9JV2.js → Segment-CQb3j-o0.js} +13 -13
  27. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
  28. package/dist/{Setting-Vcz1S27V.js → Setting-91cK3ssU.js} +31 -31
  29. package/dist/Store-B-uldUKt.js +1744 -0
  30. package/dist/{StoreRewards-Dt30AkWo.js → StoreRewards-dDNeFlA9.js} +12 -12
  31. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
  33. package/dist/{Tier-a6yXEtLd.js → Tier-_jMaLj3u.js} +19 -19
  34. package/dist/{Title-A3-2EI0w.js → Title-By7o67aT.js} +19 -19
  35. package/dist/{Transaction-DswABr2P.js → Transaction-BLpEgeI2.js} +2 -2
  36. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
  37. package/dist/{Voucher-DEoVgZYa.js → Voucher-CG5tfibn.js} +11 -11
  38. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js → ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js} +1 -1
  40. package/dist/{app-C23GfQGq.js → app-DDmTqTb7.js} +1 -1
  41. package/dist/{app-C66C2KLW.js → app-vCqTQIeC.js} +424 -273
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DNAVZOSH.js → business-Cz78KGF2.js} +1 -1
  44. package/dist/{campaign-Cv0HaUD1.js → campaign-BBd4o7F_.js} +2 -2
  45. package/dist/campaign.enum-CIhi0b-m.js +20 -0
  46. package/dist/campaign.fn-5silF1DK.js +758 -0
  47. package/dist/collectible.enum-cMIQ6ogq.js +19 -0
  48. package/dist/{collection.fn-Dxzr2oPt.js → collection.fn-BGc7Qeli.js} +2 -2
  49. package/dist/dto-i04OPJfW.js +2018 -0
  50. package/dist/{effect-CUuL8Tci.js → effect-D8UzkYRg.js} +1 -1
  51. package/dist/{email-addresses-Yt3s7i2b.js → email-addresses-u05o35hN.js} +1 -1
  52. package/dist/{export-CNg5YWMm.js → export-BEXuPYEd.js} +3 -3
  53. package/dist/{helper-DzmKNFue.js → helper-RptRJGv6.js} +1 -1
  54. package/dist/{index-Dnf7j71V.js → index-B8s-gucK.js} +9 -3
  55. package/dist/{index-B88e_9YI.js → index-BjHZUhiH.js} +1 -1
  56. package/dist/{index-O9lB54LY.js → index-Bpu2DYUc.js} +1348 -1342
  57. package/dist/{index-BK8X9RF6.js → index-C6-rCMhD.js} +3 -3
  58. package/dist/{index-D0obMrAS.js → index-Cq_ZIbRm.js} +173 -62
  59. package/dist/{index-CsCgQ8gt.js → index-DFAnoAe9.js} +1 -1
  60. package/dist/index-DbyJ6Nyn.js +54 -0
  61. package/dist/{index-yzH5eyKW.js → index-Dt6K2eG8.js} +1 -1
  62. package/dist/{index-9CXt2kbQ.js → index-DwzoqCt8.js} +293 -287
  63. package/dist/index-UfL5qRzR.js +1049 -0
  64. package/dist/index-g8EbRVnr.js +32 -0
  65. package/dist/{index-QuBsnXgx.js → index-hEE_ntHd.js} +1 -1
  66. package/dist/index-vh86FiIQ.js +10 -0
  67. package/dist/{index.esm2017-TpBElhnN.js → index.esm2017-BSzW_yaL.js} +1 -1
  68. package/dist/{loading-ChoC5E9d.js → loading-DjEdwdnj.js} +156 -153
  69. package/dist/{membership-CU-k0-Tf.js → membership-BL9Xs8lD.js} +52 -44
  70. package/dist/{money-DANmyTBj.js → money-D7lq0cx-.js} +1 -1
  71. package/dist/{number-DrocTWDD.js → number-BiDabTkI.js} +1 -1
  72. package/dist/objectid-CXf0jb1W.js +145 -0
  73. package/dist/reward-Cr8rbe5R.js +36 -0
  74. package/dist/{rule-builder-3YRdr18A.js → rule-builder-DPKFZ5UX.js} +1 -1
  75. package/dist/{rule-BQLmpER9.js → rule-vkYJij4h.js} +4 -3
  76. package/dist/{template-DOKU1QkY.js → template-Bep5Y5ch.js} +4 -4
  77. package/dist/trigger-fWhQ3bqv.js +144 -0
  78. package/dist/{usePagination-JGI7x0W7.js → usePagination-DSF5b4hM.js} +1 -1
  79. package/dist/user-9UiaP0xs.js +54 -0
  80. package/dist/{vue-i18n-Bch1JmhI.js → vue-i18n-BhiDOB1j.js} +232 -232
  81. package/package.json +2 -2
  82. package/dist/Card-DndggRLr.js +0 -1036
  83. package/dist/Mission-CsLdMq1M.js +0 -261
  84. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js +0 -1804
  85. package/dist/Store-C8kT7JN5.js +0 -1531
  86. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +0 -1065
  87. package/dist/dto-CcrufW2j.js +0 -2770
  88. package/dist/index-C7745kXl.js +0 -755
  89. package/dist/index-CZ28ywyB.js +0 -298
  90. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,28 +1,28 @@
1
- import { components as U } from "@feedmepos/ui-library";
2
- import { j as o } from "./index-O9lB54LY.js";
1
+ import { components as $ } from "@feedmepos/ui-library";
2
+ import { a as o } from "./collectible.enum-cMIQ6ogq.js";
3
3
  import { h as f, ref as r } from "vue";
4
- import { defineStore as V } from "pinia";
5
- import { m as p } from "./index-Dnf7j71V.js";
6
- import { g as c, u as k } from "./index-BK8X9RF6.js";
7
- function i(t) {
4
+ import { defineStore as U } from "pinia";
5
+ import { m as p } from "./index-B8s-gucK.js";
6
+ import { g as i, u as V } from "./index-C6-rCMhD.js";
7
+ function c(t) {
8
8
  return f(
9
9
  "div",
10
10
  {
11
11
  class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
12
12
  },
13
13
  [
14
- f(U.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
14
+ f($.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
15
  f("span", { class: "fm-typo-en-body-md-600" }, t.name)
16
16
  ]
17
17
  );
18
18
  }
19
- const F = {
19
+ const k = {
20
20
  [o.enum.VOUCHER]: {
21
21
  chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
22
22
  icon: "sell",
23
23
  name: "Voucher",
24
24
  chip() {
25
- return i(this);
25
+ return c(this);
26
26
  }
27
27
  },
28
28
  [o.enum.CREDIT]: {
@@ -30,7 +30,7 @@ const F = {
30
30
  icon: "local_activity",
31
31
  name: "Credit",
32
32
  chip() {
33
- return i(this);
33
+ return c(this);
34
34
  }
35
35
  },
36
36
  [o.enum.POINT]: {
@@ -38,7 +38,7 @@ const F = {
38
38
  icon: "award_star",
39
39
  name: "Experience",
40
40
  chip() {
41
- return i(this);
41
+ return c(this);
42
42
  }
43
43
  },
44
44
  [o.enum.COIN]: {
@@ -46,7 +46,7 @@ const F = {
46
46
  icon: "monetization_on",
47
47
  name: "Point",
48
48
  chip() {
49
- return i(this);
49
+ return c(this);
50
50
  }
51
51
  },
52
52
  // TODO: add color for this
@@ -55,7 +55,7 @@ const F = {
55
55
  icon: "leaderboard",
56
56
  name: "Tier",
57
57
  chip() {
58
- return i(this);
58
+ return c(this);
59
59
  }
60
60
  },
61
61
  // TODO: add color for this
@@ -64,7 +64,7 @@ const F = {
64
64
  icon: "id_card",
65
65
  name: "Title",
66
66
  chip() {
67
- return i(this);
67
+ return c(this);
68
68
  }
69
69
  },
70
70
  [o.enum.GAME]: {
@@ -72,7 +72,7 @@ const F = {
72
72
  icon: "database",
73
73
  name: "Token",
74
74
  chip() {
75
- return i(this);
75
+ return c(this);
76
76
  }
77
77
  },
78
78
  // TODO: confirm color
@@ -81,12 +81,20 @@ const F = {
81
81
  icon: "database",
82
82
  name: "Stamp",
83
83
  chip() {
84
- return i(this);
84
+ return c(this);
85
+ }
86
+ },
87
+ [o.enum.REFERRAL]: {
88
+ chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
89
+ icon: "database",
90
+ name: "Successful Referral",
91
+ chip() {
92
+ return c(this);
85
93
  }
86
94
  }
87
- }, m = () => k("segments"), H = {
95
+ }, m = () => V("segments"), H = {
88
96
  async readAll(t) {
89
- const a = c(
97
+ const a = i(
90
98
  await m().get("", { params: t })
91
99
  );
92
100
  return {
@@ -95,18 +103,18 @@ const F = {
95
103
  };
96
104
  },
97
105
  async readById(t) {
98
- return c(await m().get(t));
106
+ return i(await m().get(t));
99
107
  },
100
108
  async refreshSegments() {
101
- return c(await m().get("refresh"));
109
+ return i(await m().get("refresh"));
102
110
  },
103
111
  async refreshSegment(t) {
104
- return c(
112
+ return i(
105
113
  await m().get(`refresh/${t}`)
106
114
  );
107
115
  },
108
116
  async paginateSegmentUsers(t, a) {
109
- const l = c(
117
+ const l = i(
110
118
  await m().get(`/${t}/users`, {
111
119
  params: a
112
120
  })
@@ -117,28 +125,28 @@ const F = {
117
125
  };
118
126
  },
119
127
  async create(t) {
120
- return c(await m().post("", t));
128
+ return i(await m().post("", t));
121
129
  },
122
130
  async update(t, a) {
123
- return c(await m().put(t, a));
131
+ return i(await m().put(t, a));
124
132
  },
125
133
  async delete(t) {
126
- return c(await m().delete(t));
134
+ return i(await m().delete(t));
127
135
  }
128
- }, q = V("mf-connect-membership", () => {
129
- var E, A;
130
- const t = r(null), a = r(null), l = r(null), u = r([]), d = r([]), y = r(null), h = r([]), g = r(), v = r(((E = t.value) == null ? void 0 : E.tiers) ?? []), b = r(((A = t.value) == null ? void 0 : A.pf_title) ?? []), C = r([]), w = r({ raw: [], items: [] }), T = r([]), I = async () => {
136
+ }, q = U("mf-connect-membership", () => {
137
+ var S, x;
138
+ const t = r(null), a = r(null), l = r(null), u = r([]), d = r([]), y = r(null), h = r([]), g = r(), b = r(((S = t.value) == null ? void 0 : S.tiers) ?? []), v = r(((x = t.value) == null ? void 0 : x.pf_title) ?? []), C = r([]), w = r({ raw: [], items: [] }), T = r([]), A = async () => {
131
139
  const e = await p.read();
132
- t.value = e, y.value = e, v.value = e.tiers, b.value = e.pf_title ?? [], S(), x();
133
- }, _ = async () => {
140
+ t.value = e, y.value = e, b.value = e.tiers, v.value = e.pf_title ?? [], E(), R();
141
+ }, I = async () => {
134
142
  const e = await p.readPayoutAccount();
135
143
  l.value = Array.isArray(e) && e.length == 0 ? null : e;
136
- }, R = async () => {
144
+ }, _ = async () => {
137
145
  const e = await p.readStore();
138
146
  a.value = e, M(), P();
139
147
  }, O = async () => {
140
148
  const e = await p.readRewards();
141
- u.value = e, S(), x();
149
+ u.value = e, E(), R();
142
150
  }, L = async () => {
143
151
  const e = await H.readAll({
144
152
  skip: 0,
@@ -151,7 +159,7 @@ const F = {
151
159
  h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((n) => ({
152
160
  ...n,
153
161
  bundles: n.bundles.sort(
154
- (s, $) => s.name.localeCompare($.name, "en", { numeric: !0 })
162
+ (s, F) => s.name.localeCompare(F.name, "en", { numeric: !0 })
155
163
  )
156
164
  })).sort((n, s) => n.name.localeCompare(s.name, "en", { numeric: !0 }));
157
165
  }, P = () => {
@@ -161,24 +169,24 @@ const F = {
161
169
  inclusiveTaxes: ((n = a.value) == null ? void 0 : n.inclusiveTaxes) ?? [],
162
170
  stripe: (s = a.value) == null ? void 0 : s.stripe
163
171
  };
164
- }, S = () => {
172
+ }, E = () => {
165
173
  var e;
166
174
  C.value = [
167
175
  ...u.value.filter((n) => n.type == "VOUCHER" && n.noCampaign),
168
176
  ...((e = t.value) == null ? void 0 : e.pf_title) ?? []
169
177
  ];
170
- }, x = () => {
178
+ }, R = () => {
171
179
  var n;
172
180
  const e = [
173
181
  ...u.value.filter(
174
- (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP"].includes(s.type)
175
- ).map((s) => ({ ...s, name: F[s.type].name })),
182
+ (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP", "REFERRAL"].includes(s.type)
183
+ ).map((s) => ({ ...s, name: k[s.type].name })),
176
184
  ...((n = t.value) == null ? void 0 : n.pf_title) ?? []
177
185
  ];
178
186
  w.value = {
179
187
  raw: e,
180
188
  items: e.map((s) => ({
181
- label: `${s.type === "TITLE" ? "[T] " : ""}${s.name}`,
189
+ label: `${s.type === "TITLE" ? "[Title] " : ""}${s.name}`,
182
190
  value: s._id,
183
191
  raw: s
184
192
  }))
@@ -198,24 +206,24 @@ const F = {
198
206
  segments: d,
199
207
  payoutAccount: l,
200
208
  // Actions
201
- readMembership: I,
202
- readPayoutAccount: _,
203
- readMemberStore: R,
209
+ readMembership: A,
210
+ readPayoutAccount: I,
211
+ readMemberStore: _,
204
212
  readRewards: O,
205
213
  readSegments: L,
206
214
  // Getters
207
215
  membershipInfo: y,
208
216
  sortedStoreCategories: h,
209
217
  storeOption: g,
210
- sortedTiers: v,
211
- sortedTitles: b,
218
+ sortedTiers: b,
219
+ sortedTitles: v,
212
220
  bundleRewards: C,
213
221
  loyaltyRewards: w,
214
222
  segmentOptions: T
215
223
  };
216
224
  });
217
225
  export {
218
- F as C,
226
+ k as C,
219
227
  H as s,
220
228
  q as u
221
229
  };
@@ -1,4 +1,4 @@
1
- import { c as r } from "./index-BK8X9RF6.js";
1
+ import { c as r } from "./index-C6-rCMhD.js";
2
2
  function n(o) {
3
3
  return r.Dinero.fromNumber({ number: o });
4
4
  }
@@ -1,4 +1,4 @@
1
- import { c as n } from "./index-BK8X9RF6.js";
1
+ import { c as n } from "./index-C6-rCMhD.js";
2
2
  function s(t) {
3
3
  return n.DineroFactory(t).multiply(100).toFormat(!1);
4
4
  }
@@ -0,0 +1,145 @@
1
+ import { g as l } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ var t = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_058feaf3-87bf-45b1-b481-ce4f2624cc1f", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.33", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_058feaf3-87bf-45b1-b481-ce4f2624cc1f", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.14", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.1.13356709", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.12.5", npm_package_dependencies_fabric: "^6.4.2", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "712", npm_package_dependencies__feedmepos_ui_library: "1.5.5", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250427.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.8/x64", JOURNAL_STREAM: "9:6137", GITHUB_WORKFLOW: "Publish mf-connect - production", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14878428480", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c49faab23af67a9a206af3a6a3ad110a714f9a50", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] publish-mf-connect.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c3e66495-25b4-482f-906f-0848c80cc5ba", INVOCATION_ID: "44abec7306b14fdab7b965c34390cdcc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.1/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "52", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.18", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 31", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.14.6", npm_lifecycle_script: "vite build --mode fmmf:prod", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.10-prod", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "c49faab23af67a9a206af3a6a3ad110a714f9a50", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_058feaf3-87bf-45b1-b481-ce4f2624cc1f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_058feaf3-87bf-45b1-b481-ce4f2624cc1f", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_058feaf3-87bf-45b1-b481-ce4f2624cc1f", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), c = (typeof t > "u" || typeof t.pid != "number" ? Math.floor(Math.random() * 1e5) : t.pid) % 65535, m = (() => {
3
+ try {
4
+ return _Buffer;
5
+ } catch {
6
+ try {
7
+ return Buffer;
8
+ } catch {
9
+ return null;
10
+ }
11
+ }
12
+ })(), p = function(e) {
13
+ return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
14
+ }, u = [];
15
+ for (var r = 0; r < 256; r++)
16
+ u[r] = (r <= 15 ? "0" : "") + r.toString(16);
17
+ var d = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
18
+ r = 0;
19
+ for (; r < 10; ) s[48 + r] = r++;
20
+ for (; r < 16; ) s[55 + r] = s[87 + r] = r++;
21
+ function n(e) {
22
+ if (!(this instanceof n)) return new n(e);
23
+ if (e && (e instanceof n || e._bsontype === "ObjectID"))
24
+ return e;
25
+ if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
26
+ this.id = this.generate(e);
27
+ return;
28
+ }
29
+ var _ = n.isValid(e);
30
+ if (!_ && e != null)
31
+ throw new Error(
32
+ "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
33
+ );
34
+ if (_ && typeof e == "string" && e.length === 24)
35
+ return n.createFromHexString(e);
36
+ if (e != null && e.length === 12)
37
+ this.id = e;
38
+ else {
39
+ if (e != null && typeof e.toHexString == "function")
40
+ return e;
41
+ throw new Error(
42
+ "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
43
+ );
44
+ }
45
+ }
46
+ var f = n;
47
+ n.default = n;
48
+ n.createFromTime = function(e) {
49
+ return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
50
+ };
51
+ n.createFromHexString = function(e) {
52
+ if (typeof e > "u" || e != null && e.length !== 24)
53
+ throw new Error(
54
+ "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
55
+ );
56
+ for (var _ = "", o = 0; o < 24; )
57
+ _ += String.fromCharCode(s[e.charCodeAt(o++)] << 4 | s[e.charCodeAt(o++)]);
58
+ return new n(_);
59
+ };
60
+ n.isValid = function(e) {
61
+ return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && d.test(e) : e instanceof n ? !0 : p(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && m && (e.id instanceof m || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && d.test(e.id) : !1;
62
+ };
63
+ n.prototype = {
64
+ constructor: n,
65
+ /**
66
+ * Return the ObjectID id as a 24 byte hex string representation
67
+ *
68
+ * @return {String} return the 24 byte hex string representation.
69
+ * @api public
70
+ */
71
+ toHexString: function() {
72
+ if (!this.id || !this.id.length)
73
+ throw new Error(
74
+ "invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
75
+ );
76
+ if (this.id.length === 24)
77
+ return this.id;
78
+ if (p(this.id))
79
+ return this.id.toString("hex");
80
+ for (var e = "", _ = 0; _ < this.id.length; _++)
81
+ e += u[this.id.charCodeAt(_)];
82
+ return e;
83
+ },
84
+ /**
85
+ * Compares the equality of this ObjectID with `otherID`.
86
+ *
87
+ * @param {Object} otherId ObjectID instance to compare against.
88
+ * @return {Boolean} the result of comparing two ObjectID's
89
+ * @api public
90
+ */
91
+ equals: function(e) {
92
+ return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && p(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
93
+ },
94
+ /**
95
+ * Returns the generation date (accurate up to the second) that this ID was generated.
96
+ *
97
+ * @return {Date} the generation date
98
+ * @api public
99
+ */
100
+ getTimestamp: function() {
101
+ var e = /* @__PURE__ */ new Date(), _;
102
+ return p(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
103
+ },
104
+ /**
105
+ * Generate a 12 byte id buffer used in ObjectID's
106
+ *
107
+ * @method
108
+ * @param {number} [time] optional parameter allowing to pass in a second based timestamp.
109
+ * @return {string} return the 12 byte id buffer string.
110
+ */
111
+ generate: function(e) {
112
+ typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
113
+ var _ = g();
114
+ return String.fromCharCode(
115
+ e >> 24 & 255,
116
+ e >> 16 & 255,
117
+ e >> 8 & 255,
118
+ e & 255,
119
+ i >> 16 & 255,
120
+ i >> 8 & 255,
121
+ i & 255,
122
+ c >> 8 & 255,
123
+ c & 255,
124
+ _ >> 16 & 255,
125
+ _ >> 8 & 255,
126
+ _ & 255
127
+ );
128
+ }
129
+ };
130
+ function g() {
131
+ return a = (a + 1) % 16777215;
132
+ }
133
+ function E(e, _) {
134
+ return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
135
+ }
136
+ var T = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
137
+ n.prototype[T] = function() {
138
+ return "ObjectID(" + this + ")";
139
+ };
140
+ n.prototype.toJSON = n.prototype.toHexString;
141
+ n.prototype.toString = n.prototype.toHexString;
142
+ const R = /* @__PURE__ */ l(f);
143
+ export {
144
+ R as O
145
+ };
@@ -0,0 +1,36 @@
1
+ import { defineStore as n } from "pinia";
2
+ import { g as r, S as d, b as o } from "./index-C6-rCMhD.js";
3
+ import { ref as i } from "vue";
4
+ const a = () => {
5
+ const e = d.getBusinessId();
6
+ if (!e) throw new Error("Invalid business ID");
7
+ return o(`businesses/${e}/rewards`, {
8
+ noIdRequired: !0
9
+ });
10
+ }, w = {
11
+ async readRewards() {
12
+ return r(await a().get(""));
13
+ },
14
+ async createReward(e) {
15
+ return r(await a().post("", e));
16
+ },
17
+ async updateReward(e, s) {
18
+ return r(await a().put(e, s));
19
+ },
20
+ async deleteReward(e) {
21
+ return r(await a().delete(e));
22
+ }
23
+ }, R = n("mf-connect-reward", () => {
24
+ const e = i();
25
+ return {
26
+ readRewards: async () => {
27
+ const t = await w.readRewards();
28
+ e.value = t;
29
+ },
30
+ rewards: e
31
+ };
32
+ });
33
+ export {
34
+ w as r,
35
+ R as u
36
+ };
@@ -1,4 +1,4 @@
1
- import { l as i } from "./index-O9lB54LY.js";
1
+ import { l as i } from "./index-Bpu2DYUc.js";
2
2
  function a(c, t) {
3
3
  let r = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
  const e = s.length;
@@ -1,8 +1,8 @@
1
1
  import { h as S } from "./moment-BWErdI6_.js";
2
2
  import { a as de, b as N, c as y } from "./tslib.es6-BCqqvLQ_.js";
3
- import { u as ee } from "./membership-CU-k0-Tf.js";
4
- import { R as B, a as pe } from "./rule-builder-3YRdr18A.js";
5
- import { u as Be } from "./business-DNAVZOSH.js";
3
+ import { u as ee } from "./membership-BL9Xs8lD.js";
4
+ import { R as B, a as pe } from "./rule-builder-DPKFZ5UX.js";
5
+ import { u as Be } from "./business-Cz78KGF2.js";
6
6
  var ue = [
7
7
  "MO",
8
8
  "TU",
@@ -1807,6 +1807,7 @@ const Qt = {
1807
1807
  "_moreThanOrEqual"
1808
1808
  ],
1809
1809
  boolean: ["_isIn"],
1810
+ exist: ["_is"],
1810
1811
  gender: ["_isIn"],
1811
1812
  location: ["_isIn"],
1812
1813
  collectible: ["_isIn"],
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as m, withCtx as d, createElementVNode as s, createElementBlock as h, createVNode as a, normalizeClass as w, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
- import { u as P } from "./campaign-Cv0HaUD1.js";
2
+ import { u as P } from "./campaign-BBd4o7F_.js";
3
3
  import { useDialog as q } from "@feedmepos/ui-library";
4
- import { F as J } from "./index-D0obMrAS.js";
5
- import { C as A } from "./collection.fn-Dxzr2oPt.js";
4
+ import { F as J } from "./index-Cq_ZIbRm.js";
5
+ import { C as A } from "./collection.fn-BGc7Qeli.js";
6
6
  import { s as V } from "./index-CuvNtC_M.js";
7
7
  import { _ as G } from "./lodash-B5I3zXaY.js";
8
- import { b as H } from "./dto-CcrufW2j.js";
8
+ import { C as H } from "./dto-i04OPJfW.js";
9
9
  import { J as U } from "./JsonViewer-v8_C7l5N.js";
10
10
  const K = /* @__PURE__ */ L({
11
11
  __name: "CampaignChip",
@@ -0,0 +1,144 @@
1
+ import { defineComponent as i, openBlock as m, createBlock as s, unref as n } from "vue";
2
+ import "./index-Bpu2DYUc.js";
3
+ import { R as l } from "./rule-builder-DPKFZ5UX.js";
4
+ import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js";
5
+ import { k as e, C as E } from "./index-UfL5qRzR.js";
6
+ const O = /* @__PURE__ */ i({
7
+ __name: "BillRuleGroup",
8
+ props: {
9
+ modelValue: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ },
15
+ emits: ["update:model-value"],
16
+ setup(r, { emit: a }) {
17
+ const o = a;
18
+ return (c, u) => {
19
+ var t;
20
+ return m(), s(p, {
21
+ "include-only": "bill",
22
+ "trigger-type": "BILL_COMPLETED",
23
+ "model-value": ((t = r.modelValue) == null ? void 0 : t.rules.g_bill) ?? n(l).scaffoldGroup("g_bill"),
24
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => o(
25
+ "update:model-value",
26
+ n(l).setRuleToGroup(
27
+ r.modelValue ?? n(l).scaffoldGroup(),
28
+ d,
29
+ "&&"
30
+ )
31
+ ))
32
+ }, null, 8, ["model-value"]);
33
+ };
34
+ }
35
+ }), T = /* @__PURE__ */ i({
36
+ __name: "FeedbackRuleGroup",
37
+ props: {
38
+ modelValue: {
39
+ type: Object,
40
+ default: () => {
41
+ }
42
+ }
43
+ },
44
+ emits: ["update:model-value"],
45
+ setup(r, { emit: a }) {
46
+ const o = a;
47
+ return (c, u) => {
48
+ var t;
49
+ return m(), s(p, {
50
+ "include-only": "feedback",
51
+ "trigger-type": "FEEDBACK",
52
+ "model-value": ((t = r.modelValue) == null ? void 0 : t.rules.g_feedback) ?? n(l).scaffoldGroup("g_feedback"),
53
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => o(
54
+ "update:model-value",
55
+ n(l).setRuleToGroup(
56
+ r.modelValue ?? n(l).scaffoldGroup(),
57
+ d,
58
+ "&&"
59
+ )
60
+ ))
61
+ }, null, 8, ["model-value"]);
62
+ };
63
+ }
64
+ }), f = {
65
+ [e.enum.BILL_COMPLETED]: {
66
+ name: "Bill complete",
67
+ description: "Reward customers upon the completion of their bill.",
68
+ value: e.enum.BILL_COMPLETED,
69
+ hidden: !1
70
+ },
71
+ [e.enum.FEEDBACK]: {
72
+ name: "Feedback",
73
+ description: "Reward customers for providing feedback.",
74
+ value: e.enum.FEEDBACK,
75
+ hidden: !1
76
+ },
77
+ [e.enum.GAME_COMPLETED]: {
78
+ name: "Game complete",
79
+ description: "Reward customers upon the completion of a game.",
80
+ value: e.enum.GAME_COMPLETED,
81
+ hidden: !1
82
+ },
83
+ [e.enum.MAKING_ORDER]: {
84
+ name: "Making order",
85
+ description: "Reward customers upon the creation of their order.",
86
+ value: e.enum.MAKING_ORDER,
87
+ hidden: !1
88
+ },
89
+ [e.enum.MEMBERSHIP_JOINED]: {
90
+ name: "Member joined ",
91
+ description: "Trigger rewards when customers join your membership program.",
92
+ value: e.enum.MEMBERSHIP_JOINED,
93
+ hidden: !1
94
+ },
95
+ [e.enum.SCHEDULE]: {
96
+ name: "Schedule",
97
+ description: "Set rewards to be triggered at specific times or dates.",
98
+ value: e.enum.SCHEDULE,
99
+ hidden: !1
100
+ },
101
+ [e.enum.SIMPLE_CLAIM]: {
102
+ name: "Simple claim",
103
+ description: "Activate rewards when customers claim an offer",
104
+ value: e.enum.SIMPLE_CLAIM,
105
+ hidden: !1
106
+ },
107
+ [e.enum.TIER_UPGRADED]: {
108
+ name: "Tier upgrade",
109
+ description: "Activate rewards when their membership tier gets upgraded.",
110
+ value: e.enum.TIER_UPGRADED,
111
+ hidden: !1
112
+ },
113
+ [e.enum.ISSUE_REWARD]: {
114
+ name: "Issue reward",
115
+ description: "Triggers whenever customer receives a reward in any kind.",
116
+ value: e.enum.ISSUE_REWARD,
117
+ hidden: !0
118
+ }
119
+ }, g = Object.fromEntries(
120
+ [
121
+ "VOUCHER",
122
+ "PROMOTION",
123
+ "POINT",
124
+ "CREDIT",
125
+ "MEMBERSHIP",
126
+ "BROADCAST",
127
+ "COIN",
128
+ "REWARD_POOL",
129
+ "GAME",
130
+ "MISSION"
131
+ ].map((r) => {
132
+ const a = E[r];
133
+ return [
134
+ r,
135
+ (a == null ? void 0 : a.map((o) => f[o]).filter((o) => !o.hidden)) ?? []
136
+ ];
137
+ })
138
+ );
139
+ export {
140
+ g as T,
141
+ O as _,
142
+ T as a,
143
+ f as b
144
+ };