@feedmepos/mf-connect 0.1.79-prod → 0.1.81-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-daOlxOrt.js → Analytic-D4C4cuzb.js} +11 -11
  2. package/dist/{App-DoufbXLp.js → App-BKC-UTfE.js} +7 -7
  3. package/dist/{Bin-CFfzHhNq.js → Bin-B23fmL4B.js} +8 -8
  4. package/dist/{Broadcast-CYwfxIl_.js → Broadcast-C9kxxthU.js} +18 -18
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BS-Fb5pv.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BEr6i1H7.js} +6 -6
  6. package/dist/{Card-D2VKUJZk.js → Card-CjmquMQ8.js} +18 -18
  7. package/dist/{Collections-BtJYJpvq.js → Collections-e324VpKx.js} +7 -7
  8. package/dist/{Credit-pDMs81o3.js → Credit-7GDoQ6Ch.js} +63 -65
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bsz4DfR2.js} +32 -32
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BsYFvVTh.js → EffectSheet.vue_vue_type_style_index_0_lang-CLcPRqzn.js} +33 -34
  11. package/dist/{Experience-BXnCtSRV.js → Experience-_gbPd2cN.js} +75 -79
  12. package/dist/{Game-zCiezXmk.js → Game-BotH7q2X.js} +83 -81
  13. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BdLnuVWB.js → ImageInput.vue_vue_type_script_setup_true_lang-BpNCfgI8.js} +1 -1
  14. package/dist/{Index-CKtP_PmV.js → Index-Dq_dt4zZ.js} +10 -10
  15. package/dist/{Marketing-BxEK_QBp.js → Marketing-Z2EXHTDq.js} +6 -6
  16. package/dist/{Member-g-Nc8nRo.js → Member-BZq2ZPU1.js} +10 -10
  17. package/dist/{MemberList-DVSu_Z6b.js → MemberList-DamLQWem.js} +25 -25
  18. package/dist/{MemberTransactions-C4m8fchV.js → MemberTransactions-BfGIKXWt.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ML2-tGIa.js → MessageInput.vue_vue_type_script_setup_true_lang-BMLAp7P0.js} +8 -8
  20. package/dist/{Mission-Dg7u6G5Y.js → Mission-DZBOFfZE.js} +82 -80
  21. package/dist/{Overview-DVp3pJtE.js → Overview-DKNSKwjw.js} +19 -19
  22. package/dist/{Point-Dsp_W0A4.js → Point-BTCdwbGb.js} +79 -83
  23. package/dist/{Promotion-CiI-6R3Q.js → Promotion-BqWbXRrK.js} +32 -32
  24. package/dist/{Queue-CP3qFiwq.js → Queue-CnHJt7BI.js} +10 -10
  25. package/dist/{Record-CRiyaYme.js → Record-asuDl00z.js} +8 -8
  26. package/dist/{Reward-Wk4aoUe-.js → Reward-BqemiBwU.js} +16 -16
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CGdBnD5E.js → RewardGroup.vue_vue_type_script_setup_true_lang-B98IW85o.js} +12 -12
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CLhsljkL.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVnNlpHa.js} +15 -15
  29. package/dist/{Segment-CKpIuEKF.js → Segment-Q86KMN-k.js} +23 -23
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Uk7QNHdX.js → SelectItems.vue_vue_type_script_setup_true_lang-CCjoSgCt.js} +11 -11
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DeCFVR31.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CttKxzGJ.js} +12 -12
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cdvv1-NH.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D_pLIyjo.js} +3 -3
  33. package/dist/{Setting-BbOLfQUW.js → Setting-D-H3wwqK.js} +14 -14
  34. package/dist/{SettingAdvertisements-p0-byeyl.js → SettingAdvertisements-CLys7tUI.js} +12 -12
  35. package/dist/{Store-BHC0hueG.js → Store-CDTaq9Cl.js} +21 -21
  36. package/dist/{StoreRewards-Dy2CEsDt.js → StoreRewards-BDbL39N5.js} +15 -15
  37. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CEZHJ95s.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BnagjBBu.js} +19 -19
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B1l5DAlf.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dk7yazat.js} +1 -1
  39. package/dist/{Tier-B6JFbq_k.js → Tier-BpDxFiVl.js} +21 -21
  40. package/dist/{Title-xhdYZz5R.js → Title-BC8toEO3.js} +20 -20
  41. package/dist/{Transaction-Dd9DuzRR.js → Transaction-Ci7D5pSG.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CiazcKEc.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DfKxwLyD.js} +6 -6
  43. package/dist/{Voucher-Cp7vNUEK.js → Voucher-vnKyiKiV.js} +16 -16
  44. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-fxY99PHD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CCg8d72J.js} +12 -12
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DoreMwv7.js → ZodTextField.vue_vue_type_script_setup_true_lang-JTpA5O1m.js} +2 -2
  46. package/dist/app-1E5G1GpN.js +42523 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{business-DFHwuClX.js → business-BUpIHd4Z.js} +1 -1
  49. package/dist/{campaign-DZ-NFu_a.js → campaign-CZx-8rcc.js} +1 -1
  50. package/dist/{campaign-Cs-5YZ24.js → campaign-D_l_eCaG.js} +8 -8
  51. package/dist/{campaign.enum-BpPHOLsq.js → campaign.enum-DzMJ_QtT.js} +1 -1
  52. package/dist/{campaign.fn-B0bijKMr.js → campaign.fn-BfLZqPyL.js} +62 -62
  53. package/dist/{collectible.enum-BWfgxOR7.js → collectible.enum-CQB3E2Fm.js} +1 -1
  54. package/dist/{collection.fn-D-k9-ZL6.js → collection.fn-DkJHn6mL.js} +2 -2
  55. package/dist/{dto-B0OrF_Mu.js → dto-DUY1vguv.js} +4 -4
  56. package/dist/{effect-BtYewRXj.js → effect-CpXEk9Dk.js} +1 -1
  57. package/dist/{email-addresses-DcXNhufh.js → email-addresses-CVWW3Trx.js} +1 -1
  58. package/dist/{export-BqcrVGVE.js → export-1cM7yPV3.js} +3 -3
  59. package/dist/{helper-DtqbfVEI.js → helper-DZwCmt7C.js} +1 -1
  60. package/dist/{index-DA4W6RFV.js → index-BWqzh2C4.js} +3 -3
  61. package/dist/{index-V05BSEA1.js → index-BhGXbniw.js} +1 -1
  62. package/dist/{index-DJGsMK2v.js → index-BkpYy6m3.js} +6 -6
  63. package/dist/{index-C3b7XvYW.js → index-CJQk_hJX.js} +3 -3
  64. package/dist/{index-UITrfDZG.js → index-CL_mVbcg.js} +1 -1
  65. package/dist/{index-CNCgOUYU.js → index-CnqIH2O9.js} +1 -1
  66. package/dist/{index-T7d7eHx6.js → index-Cu69tDgg.js} +626 -608
  67. package/dist/{index-DUFFgALz.js → index-DcCaSh1B.js} +1 -1
  68. package/dist/{index-BvTTVqzF.js → index-DikxFmIA.js} +1 -1
  69. package/dist/{index-DYtRSDy9.js → index-DxGLhSm4.js} +1 -1
  70. package/dist/{index-BY8V6y3C.js → index-Iwu0Pf7N.js} +1 -1
  71. package/dist/{index-DYcSI0zj.js → index-UX1BjWKt.js} +2 -2
  72. package/dist/{index-mgze3alN.js → index-yPNsQag2.js} +3 -3
  73. package/dist/{index.esm2017-DHwBTNe6.js → index.esm2017-DGkosyWY.js} +1 -1
  74. package/dist/{loading-CqvrinH-.js → loading-BeO6W824.js} +1 -1
  75. package/dist/{membership-DkHjl8wI.js → membership-CdkNnSzC.js} +3 -3
  76. package/dist/{money-PlffPm-A.js → money-BmJpJ3UM.js} +1 -1
  77. package/dist/{number-DG9caur6.js → number-DNxJZHn4.js} +1 -1
  78. package/dist/{objectid-jUNuzWI-.js → objectid-Dz4U2FAo.js} +1 -1
  79. package/dist/{plugins-D3oZ1ayL.js → plugins-BWUWdHwy.js} +3 -3
  80. package/dist/{reward-D0Q_mk4n.js → reward-Cg4x-YOj.js} +1 -1
  81. package/dist/{rule-CR-gHdem.js → rule-SBzFsmzN.js} +3 -3
  82. package/dist/{rule-builder-D6f61BJa.js → rule-builder-C12N5APu.js} +1 -1
  83. package/dist/style.css +1 -1
  84. package/dist/{template-CsgyjozJ.js → template-B1S6b9tH.js} +5 -5
  85. package/dist/{timezone-Ct6ys1qy.js → timezone-BdnFtiYJ.js} +1 -1
  86. package/dist/{trigger-Ba5yuwmD.js → trigger-ZZWC4YWG.js} +5 -5
  87. package/dist/{user-pKBNrbDR.js → user-DZARAXiI.js} +1 -1
  88. package/dist/{vue-i18n-DDHeOQeE.js → vue-i18n-DOqqi883.js} +158 -158
  89. package/dist/{xlsx-BynkLwi_.js → xlsx-BQxGGmFn.js} +1 -1
  90. package/dist/{zod-BuOqR5ox.js → zod-D_MtMi4T.js} +1 -1
  91. package/package.json +2 -2
  92. package/dist/app-C3qRhqNx.js +0 -9684
  93. package/dist/app-C7D4OBMR.js +0 -57962
@@ -1,11 +1,10 @@
1
- import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as g, normalizeClass as Z, watch as X, withCtx as w, resolveDynamicComponent as R, Fragment as _, createElementVNode as C, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-C3qRhqNx.js";
3
- import { Z as m } from "./zod-BuOqR5ox.js";
4
- import { f as le, g as oe } from "./index-DYcSI0zj.js";
5
- import { u as T } from "./vue-i18n-DDHeOQeE.js";
6
- import { s as O } from "./effect-BtYewRXj.js";
7
- import { p as ae } from "./plugins-D3oZ1ayL.js";
8
- import { e as ne } from "./app-C7D4OBMR.js";
1
+ import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as w, normalizeClass as Z, watch as X, withCtx as h, resolveDynamicComponent as R, Fragment as _, createElementVNode as C, createTextVNode as ee } from "vue";
2
+ import { z as te, h as le } from "./app-1E5G1GpN.js";
3
+ import { Z as m } from "./zod-D_MtMi4T.js";
4
+ import { f as oe, g as ae } from "./index-UX1BjWKt.js";
5
+ import { u as T } from "./vue-i18n-DOqqi883.js";
6
+ import { s as O } from "./effect-CpXEk9Dk.js";
7
+ import { p as ne } from "./plugins-BWUWdHwy.js";
9
8
  const ie = { class: "flex flex-col gap-8" }, de = {
10
9
  key: 0,
11
10
  class: "fm-typo-en-body-lg-600"
@@ -52,10 +51,10 @@ const ie = { class: "flex flex-col gap-8" }, de = {
52
51
  });
53
52
  const l = P(
54
53
  i.type ? a.find((r) => r.value === i.type) : (U = i.modelValue) != null && U.validBefore || (A = i.modelValue) != null && A.validAfter ? a[0] : a[1]
55
- ), h = q(
56
- () => i.forCredit ? le : oe
54
+ ), g = q(
55
+ () => i.forCredit ? oe : ae
57
56
  ), y = q(() => {
58
- const r = h.value.safeParse(i.modelValue);
57
+ const r = g.value.safeParse(i.modelValue);
59
58
  return r.success ? [] : r.error.errors;
60
59
  });
61
60
  function o(r) {
@@ -91,7 +90,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
91
90
  items: a
92
91
  }, null, 8, ["modelValue"])),
93
92
  e(l).value === "range" ? (d(), F("div", se, [
94
- g(Y, {
93
+ w(Y, {
95
94
  "model-value": {
96
95
  startDate: ($ = t.modelValue) != null && $.validAfter ? new Date((j = t.modelValue) == null ? void 0 : j.validAfter).toISOString() : null,
97
96
  endDate: (E = t.modelValue) != null && E.validAfter ? new Date(((M = t.modelValue) == null ? void 0 : M.validBefore) || "").toISOString() : null
@@ -144,14 +143,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
144
143
  key: 3,
145
144
  text: e(n)("connect.template.validity_option.expire_follow_first_receive")
146
145
  }, null, 8, ["text"])) : f("", !0),
147
- g(I, {
146
+ w(I, {
148
147
  text: t.helperText || (((z = i.modelValue) == null ? void 0 : z.validForDay) === 0 ? e(n)("connect.template.validity_option.expires_on_same_day") : e(m).helperText(e(y), "")),
149
148
  state: t.helperText ? "error" : ((H = i.modelValue) == null ? void 0 : H.validForDay) === 0 ? "warning" : e(m).helperState(e(y), "")
150
149
  }, null, 8, ["text", "state"])
151
150
  ]);
152
151
  };
153
152
  }
154
- }), ue = { class: "space-y-8" }, Ue = /* @__PURE__ */ B({
153
+ }), ue = { class: "space-y-8" }, Se = /* @__PURE__ */ B({
155
154
  __name: "CollectibleOptionInput",
156
155
  props: {
157
156
  modelValue: {
@@ -173,9 +172,9 @@ const ie = { class: "flex flex-col gap-8" }, de = {
173
172
  setup(t, { emit: S }) {
174
173
  const { t: n } = T(), i = t, v = S, a = P(i.modelValue ?? {});
175
174
  return X(a, () => v("update:model-value", a.value)), (c, l) => {
176
- const h = V("FmSwitch"), y = V("FmStepperField");
175
+ const g = V("FmSwitch"), y = V("FmStepperField");
177
176
  return d(), F("div", ue, [
178
- t.isMission ? f("", !0) : (d(), u(h, {
177
+ t.isMission ? f("", !0) : (d(), u(g, {
179
178
  key: 0,
180
179
  label: e(n)("connect.template.enable_transfer"),
181
180
  "label-placement": "right",
@@ -186,14 +185,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
186
185
  key: 1,
187
186
  class: Z(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
188
187
  }, [
189
- g(y, {
188
+ w(y, {
190
189
  modelValue: e(a).maxPerUser,
191
190
  "onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).maxPerUser = o),
192
191
  "show-steppers": !1,
193
192
  rules: [e(m).ruleAtPath(t.schema, "maxPerUser")],
194
193
  "helper-text": e(n)("connect.template.leave_empty_unlimited")
195
194
  }, {
196
- label: w(() => [
195
+ label: h(() => [
197
196
  (d(), u(R(
198
197
  e(m).toInputLabel(
199
198
  e(m).typeAtPath(t.schema, "maxPerUser"),
@@ -211,7 +210,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
211
210
  rules: [e(m).ruleAtPath(t.schema, "maxReceive")],
212
211
  "helper-text": e(n)("connect.template.leave_empty_unlimited")
213
212
  }, {
214
- label: w(() => [
213
+ label: h(() => [
215
214
  (d(), u(R(
216
215
  e(m).toInputLabel(
217
216
  e(m).typeAtPath(t.schema, "maxReceive"),
@@ -223,14 +222,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
223
222
  }, 8, ["modelValue", "rules", "helper-text"]))
224
223
  ], 2)),
225
224
  t.isMission ? f("", !0) : (d(), F(_, { key: 2 }, [
226
- g(y, {
225
+ w(y, {
227
226
  modelValue: e(a).maxUse,
228
227
  "onUpdate:modelValue": l[3] || (l[3] = (o) => e(a).maxUse = o),
229
228
  "append-text": "use(s)",
230
229
  "show-steppers": !1,
231
230
  rules: [e(m).ruleAtPath(t.schema, "maxUse")]
232
231
  }, {
233
- label: w(() => [
232
+ label: h(() => [
234
233
  (d(), u(R(
235
234
  e(m).toInputLabel(
236
235
  e(m).typeAtPath(t.schema, "maxUse"),
@@ -248,7 +247,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
248
247
  "show-steppers": !1,
249
248
  rules: [e(m).ruleAtPath(t.schema, "cooldown")]
250
249
  }, {
251
- label: w(() => [
250
+ label: h(() => [
252
251
  (d(), u(R(
253
252
  e(m).toInputLabel(
254
253
  e(m).typeAtPath(t.schema, "cooldown"),
@@ -258,7 +257,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
258
257
  ]),
259
258
  _: 1
260
259
  }, 8, ["modelValue", "rules"])) : f("", !0),
261
- g(re, {
260
+ w(re, {
262
261
  modelValue: e(a).validityOption,
263
262
  "onUpdate:modelValue": l[5] || (l[5] = (o) => e(a).validityOption = o),
264
263
  label: e(n)("connect.template.validity_option.title")
@@ -270,7 +269,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
270
269
  }), ce = { class: "space-y-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = {
271
270
  key: 1,
272
271
  class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
273
- }, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ B({
272
+ }, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ue = /* @__PURE__ */ B({
274
273
  __name: "EffectSheet",
275
274
  props: {
276
275
  modelValue: { type: Object },
@@ -282,10 +281,10 @@ const ie = { class: "flex flex-col gap-8" }, de = {
282
281
  setup(t, { emit: S }) {
283
282
  const { t: n } = T(), i = S, v = P(!1);
284
283
  async function a(c) {
285
- c.stopPropagation(), await ae.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
284
+ c.stopPropagation(), await ne.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
286
285
  }
287
286
  return (c, l) => {
288
- const h = V("FmButton"), y = V("FmSideSheet");
287
+ const g = V("FmButton"), y = V("FmSideSheet");
289
288
  return d(), u(y, {
290
289
  "max-width": 550,
291
290
  header: e(n)("connect.effect.title"),
@@ -295,7 +294,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
295
294
  l[3] || (l[3] = (o) => v.value = o)
296
295
  ]
297
296
  }, {
298
- "side-sheet-button": w(() => {
297
+ "side-sheet-button": h(() => {
299
298
  var o, k, U, A;
300
299
  return [
301
300
  C("div", ce, [
@@ -305,13 +304,13 @@ const ie = { class: "flex flex-col gap-8" }, de = {
305
304
  C("div", null, b((o = e(O)(t.modelValue)) == null ? void 0 : o.type), 1),
306
305
  C("div", ye, b((k = e(O)(t.modelValue)) == null ? void 0 : k.adjustment) + " " + b(e(n)("connect.effect.with")) + " " + b((U = e(O)(t.modelValue)) == null ? void 0 : U.requirements) + " " + b((A = e(O)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
307
306
  ]),
308
- g(h, {
307
+ w(g, {
309
308
  icon: "delete",
310
309
  "icon-color": "neutral-gray-400",
311
310
  variant: "tertiary",
312
311
  onClick: a
313
312
  })
314
- ])) : (d(), u(h, {
313
+ ])) : (d(), u(g, {
315
314
  key: 0,
316
315
  label: e(n)("connect.effect.title"),
317
316
  icon: "add",
@@ -322,11 +321,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
322
321
  ])
323
322
  ];
324
323
  }),
325
- "side-sheet-footer": w(() => [...l[4] || (l[4] = [
324
+ "side-sheet-footer": h(() => [...l[4] || (l[4] = [
326
325
  ee(b(void 0), -1)
327
326
  ])]),
328
- default: w(() => [
329
- g(e(ne), {
327
+ default: h(() => [
328
+ w(e(le), {
330
329
  class: "fm-effect-sheet",
331
330
  title: "",
332
331
  "can-set-auto-apply": t.canSetAutoApply,
@@ -342,7 +341,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
342
341
  }
343
342
  });
344
343
  export {
345
- Ae as _,
346
- Ue as a,
344
+ Ue as _,
345
+ Se as a,
347
346
  re as b
348
347
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as x, createVNode as c, unref as o, createElementVNode as a, withCtx as h, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as u, h as q } from "vue";
1
+ import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as h, createVNode as i, unref as o, createElementVNode as n, withCtx as x, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as g, h as q } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { p as Q } from "./plugins-D3oZ1ayL.js";
5
- import { u as W } from "./loading-CqvrinH-.js";
6
- import { u as X } from "./business-DFHwuClX.js";
7
- import { u as Y, c as g } from "./campaign-DZ-NFu_a.js";
8
- import { a as L, b as V, g as Z } from "./campaign-Cs-5YZ24.js";
9
- import { u as ee } from "./vue-i18n-DDHeOQeE.js";
4
+ import { p as Q } from "./plugins-BWUWdHwy.js";
5
+ import { u as W } from "./loading-BeO6W824.js";
6
+ import { u as X } from "./business-BUpIHd4Z.js";
7
+ import { u as Y, c as y } from "./campaign-CZx-8rcc.js";
8
+ import { a as L, b as V, g as Z } from "./campaign-D_l_eCaG.js";
9
+ import { u as ee } from "./vue-i18n-DOqqi883.js";
10
10
  import { _ as te } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js";
12
- import { u as ne } from "./template-CsgyjozJ.js";
13
- const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ E({
11
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bsz4DfR2.js";
12
+ import { u as ae } from "./template-B1S6b9tH.js";
13
+ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ E({
14
14
  __name: "Experience",
15
- setup(_e) {
15
+ setup(ge) {
16
16
  const { t: r } = ee(), P = {
17
17
  label: r("connect.program.common.actions.create", {
18
18
  type: r("connect.program.experience.title").toLowerCase()
@@ -20,18 +20,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
20
20
  value: "create",
21
21
  isPrimary: !0,
22
22
  prependIcon: "add"
23
- }, B = ne("POINT", G()), I = X(), d = Y(), { global: T, minor: v } = W, s = S({
23
+ }, B = ae("POINT", G()), I = X(), d = Y(), { global: T, minor: b } = W, s = S({
24
24
  searchKey: "",
25
25
  location: []
26
26
  });
27
27
  function $(e) {
28
28
  const t = s.value.location;
29
29
  return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
30
- var i;
31
- return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
30
+ var c;
31
+ return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
32
32
  }) : e.targetLocation.includes(t);
33
33
  }
34
- const f = U(
34
+ const u = U(
35
35
  () => d.campaigns.experience.filter((e) => $(e))
36
36
  ), K = [
37
37
  {
@@ -58,16 +58,16 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
58
58
  icon: "delete",
59
59
  iconColor: "neutral-gray-400",
60
60
  onClick: (t) => {
61
- t.stopPropagation(), C(e.row.original);
61
+ t.stopPropagation(), v(e.row.original);
62
62
  }
63
63
  });
64
64
  }
65
65
  }
66
- ], b = S();
67
- async function C(e) {
68
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
66
+ ], C = S();
67
+ async function v(e) {
68
+ await Q.remove(`Are you sure you want to remove ${e.name}?`) && await b(
69
69
  async () => {
70
- await g.delete(e._id), await d.read("POINT");
70
+ await y.delete(e._id), await d.read("POINT");
71
71
  },
72
72
  {
73
73
  message: `Removing ${e.name}`,
@@ -75,24 +75,24 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
75
75
  }
76
76
  );
77
77
  }
78
- async function y(e) {
78
+ async function f(e) {
79
79
  e ? await t() : B.open(async (l) => {
80
80
  await t(l);
81
81
  });
82
82
  async function t(l) {
83
- var i;
84
- (i = b.value) == null || i.showSheet(
83
+ var c;
84
+ (c = C.value) == null || c.showSheet(
85
85
  !0,
86
86
  "POINT",
87
- e ? await g.readById(e._id) : void 0,
87
+ e ? await y.readById(e._id) : void 0,
88
88
  l
89
89
  );
90
90
  }
91
91
  }
92
92
  async function N(e) {
93
- await v(
93
+ await b(
94
94
  async () => {
95
- e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await d.read("POINT");
95
+ e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await d.read("POINT");
96
96
  },
97
97
  {
98
98
  message: r("connect.program.common.update.updating", {
@@ -110,79 +110,75 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
110
110
  await d.read("POINT");
111
111
  });
112
112
  }), (e, t) => {
113
- const l = m("FmPageHead"), i = m("FmSearch"), R = m("FmTable"), F = m("FmButton"), A = m("FmListItem"), O = m("FmList"), D = m("FmCard");
114
- return p(), _(x, null, [
115
- c(l, {
113
+ const l = m("FmPageHead"), c = m("FmSearch"), A = m("FmTable"), F = m("FmButton"), O = m("FmListItem"), R = m("FmList"), D = m("FmCard");
114
+ return p(), _(h, null, [
115
+ i(l, {
116
116
  title: o(r)("connect.program.experience.title"),
117
- actions: o(f).length > 0 ? [P] : [],
118
- "onClick:action": t[0] || (t[0] = () => y())
117
+ actions: o(u).length > 0 ? [P] : [],
118
+ "onClick:action": t[0] || (t[0] = () => f())
119
119
  }, null, 8, ["title", "actions"]),
120
- a("div", ae, [
121
- c(i, {
120
+ n("div", ne, [
121
+ i(c, {
122
122
  modelValue: o(s).searchKey,
123
- "onUpdate:modelValue": t[1] || (t[1] = (n) => o(s).searchKey = n),
124
- class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
123
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
124
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
125
125
  placeholder: o(r)("connect.program.common.search"),
126
126
  collapsible: ""
127
127
  }, null, 8, ["modelValue", "placeholder"]),
128
- o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(x, { key: 0 }, [
129
- a("div", re, [
130
- a("div", se, [
131
- c(te, {
128
+ o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(h, { key: 0 }, [
129
+ n("div", re, [
130
+ n("div", se, [
131
+ i(te, {
132
132
  label: `${o(r)("connect.common.location")}: `,
133
133
  "right-icon": "keyboard_arrow_down",
134
134
  modelValue: o(s).location,
135
- "onUpdate:modelValue": t[2] || (t[2] = (n) => o(s).location = n),
135
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
136
136
  icon: "storefront",
137
137
  "show-item-label": !0,
138
138
  items: o(I).locationOptions
139
139
  }, null, 8, ["label", "modelValue", "items"])
140
140
  ]),
141
- c(i, {
141
+ i(c, {
142
142
  modelValue: o(s).searchKey,
143
- "onUpdate:modelValue": t[3] || (t[3] = (n) => o(s).searchKey = n),
144
- class: "xs:hidden",
143
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(s).searchKey = a),
144
+ class: "xs:hidden sm:hidden",
145
145
  placeholder: "search",
146
146
  collapsible: ""
147
147
  }, null, 8, ["modelValue"])
148
148
  ]),
149
- c(R, {
150
- class: "xs:hidden",
151
- "row-data": o(f),
149
+ i(A, {
150
+ class: "xs:hidden sm:hidden",
151
+ "row-data": o(u),
152
152
  "column-defs": K,
153
153
  "search-value": o(s).searchKey,
154
154
  "column-filter": [],
155
- onRowClick: t[4] || (t[4] = (n) => y(n.original)),
156
- "hide-footer": o(f).length < 10
155
+ onRowClick: t[4] || (t[4] = (a) => f(a.original)),
156
+ "hide-footer": o(u).length < 10
157
157
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
158
- c(O, { class: "hidden xs:!flex flex-col mx-[-24px]" }, {
159
- default: h(() => [
160
- (p(!0), _(x, null, M(o(f).filter(
161
- (n) => n.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
162
- ), (n) => (p(), w(A, {
163
- key: n._id.toString(),
164
- onClick: (k) => y(n),
158
+ i(R, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
159
+ default: x(() => [
160
+ (p(!0), _(h, null, M(o(u).filter(
161
+ (a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
162
+ ), (a) => (p(), w(O, {
163
+ key: a._id.toString(),
164
+ onClick: (k) => f(a),
165
165
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
166
166
  }, {
167
- default: h(() => [
168
- a("div", ce, [
169
- a("div", ie, [
170
- (p(), w(H(o(L)(n)))),
171
- a("div", le, u(n.currentReceive ?? 0) + " used ", 1)
167
+ default: x(() => [
168
+ n("div", ie, [
169
+ n("div", ce, [
170
+ (p(), w(H(o(L)(a))))
172
171
  ]),
173
- a("div", me, [
174
- a("div", de, u(n.name), 1),
175
- a("div", pe, u(o(V)(n)), 1)
176
- ]),
177
- a("div", ue, u(o(r)("connect.program.experience.received", {
178
- count: n.currentReceive ?? 0
179
- })), 1)
172
+ n("div", le, [
173
+ n("div", me, g(a.name), 1),
174
+ n("div", de, g(o(V)(a)), 1)
175
+ ])
180
176
  ]),
181
- c(F, {
177
+ i(F, {
182
178
  icon: "delete",
183
179
  "icon-color": "neutral-gray-400",
184
180
  variant: "tertiary",
185
- onClick: (k) => (k.stopPropagation(), C(n))
181
+ onClick: (k) => (k.stopPropagation(), v(a))
186
182
  }, null, 8, ["onClick"])
187
183
  ]),
188
184
  _: 2
@@ -195,27 +191,27 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
195
191
  variant: "outlined",
196
192
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
197
193
  }, {
198
- default: h(() => [
199
- t[6] || (t[6] = a("img", {
194
+ default: x(() => [
195
+ t[6] || (t[6] = n("img", {
200
196
  src: z,
201
197
  class: "aspect-square w-[150px]"
202
198
  }, null, -1)),
203
- a("div", fe, [
204
- a("div", ye, u(o(r)("connect.program.experience.empty_state.title")), 1),
205
- a("div", ge, u(o(r)("connect.program.experience.empty_state.description")), 1)
199
+ n("div", pe, [
200
+ n("div", ue, g(o(r)("connect.program.experience.empty_state.title")), 1),
201
+ n("div", fe, g(o(r)("connect.program.experience.empty_state.description")), 1)
206
202
  ]),
207
- c(F, {
203
+ i(F, {
208
204
  variant: "primary",
209
205
  label: "Create experience program",
210
206
  icon: "add",
211
- onClick: t[5] || (t[5] = (n) => y())
207
+ onClick: t[5] || (t[5] = (a) => f())
212
208
  })
213
209
  ]),
214
210
  _: 1
215
211
  })),
216
- c(oe, {
212
+ i(oe, {
217
213
  ref_key: "sheetRef",
218
- ref: b,
214
+ ref: C,
219
215
  "onSubmit:modelValue": N
220
216
  }, null, 512)
221
217
  ])
@@ -224,5 +220,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
224
220
  }
225
221
  });
226
222
  export {
227
- Be as default
223
+ Ve as default
228
224
  };