@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
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as p, resolveComponent as _, openBlock as a, createElementBlock as f, createVNode as v, unref as o, createBlock as u, createCommentVNode as b } from "vue";
2
- import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-D_F7zaEl.js";
2
+ import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js";
3
3
  import { useRouter as y } from "vue-router";
4
4
  const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
5
5
  __name: "MemberTransactions",
@@ -1,6 +1,6 @@
1
- import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as T, withDirectives as U, vShow as A, computed as q, onMounted as G, Fragment as L, createTextVNode as J, toDisplayString as z, renderList as K } from "vue";
2
- import { p as W } from "./loading-C-HOw2p9.js";
3
- import { E as Y } from "./index-BMPlc7it.js";
1
+ import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as T, withDirectives as A, vShow as U, computed as q, onMounted as G, Fragment as L, createTextVNode as J, toDisplayString as z, renderList as K } from "vue";
2
+ import { p as W } from "./plugins-VONaCeWn.js";
3
+ import { A as Y } from "./index-Cu28MWwC.js";
4
4
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
6
  import { c as ee } from "./object-qECH92oz.js";
@@ -44,7 +44,7 @@ const te = {
44
44
  "membership.url": {
45
45
  name: "Membership URL"
46
46
  }
47
- }, Me = {
47
+ }, we = {
48
48
  MY: ["user.phoneNumber", "membership.url"]
49
49
  }, ne = "https://editor.unlayer.com/embed.js?2", R = [];
50
50
  let H = !1;
@@ -189,8 +189,8 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
189
189
  return n({
190
190
  showSheet: S
191
191
  }), (o, a) => {
192
- const c = g("FmButton"), w = g("FmTextField"), M = g("FmSideSheet");
193
- return p(), E(M, {
192
+ const c = g("FmButton"), M = g("FmTextField"), w = g("FmSideSheet");
193
+ return p(), E(w, {
194
194
  modelValue: s(u),
195
195
  "onUpdate:modelValue": a[4] || (a[4] = (d) => P(u) ? u.value = d : null),
196
196
  header: "Email editor",
@@ -212,14 +212,14 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
212
212
  width: 100,
213
213
  height: 100
214
214
  }, null, 8, ["json"])),
215
- U(h(w, {
215
+ A(h(M, {
216
216
  label: "Email title",
217
217
  modelValue: s(f).title,
218
218
  "onUpdate:modelValue": a[0] || (a[0] = (d) => s(f).title = d)
219
219
  }, null, 8, ["modelValue"]), [
220
- [A, s(r)]
220
+ [U, s(r)]
221
221
  ]),
222
- U(h(ue, {
222
+ A(h(ue, {
223
223
  class: "flex-1",
224
224
  ref_key: "editorRef",
225
225
  ref: y,
@@ -229,7 +229,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
229
229
  r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(ee)(b.design)));
230
230
  })
231
231
  }, null, 512), [
232
- [A, s(r)]
232
+ [U, s(r)]
233
233
  ])
234
234
  ])
235
235
  ]),
@@ -358,10 +358,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
358
358
  /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(c) || /[{}\\~\[\]|\^€]/.test(c) ? t += 2 : t += 1;
359
359
  }
360
360
  return `Character used: ${t} ≈ ${Math.ceil(t / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
361
- }), S = [
362
- { label: "SMS" }
363
- // { label: 'EMAIL' }
364
- ];
361
+ }), S = [{ label: "SMS" }, { label: "EMAIL" }];
365
362
  return G(() => {
366
363
  u("update:model-value", {
367
364
  ...i.modelValue,
@@ -369,7 +366,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
369
366
  }), i.modelValue || r("");
370
367
  }), (l, t) => {
371
368
  var d, F, $, k, C;
372
- const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"), w = g("FmMenuItem"), M = g("FmMenu");
369
+ const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"), M = g("FmMenuItem"), w = g("FmMenu");
373
370
  return p(), _("div", he, [
374
371
  e.allowEmail ? (p(), E(o, {
375
372
  key: 0,
@@ -409,7 +406,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
409
406
  _: 1
410
407
  }, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
411
408
  x("div", be, [
412
- h(M, { placement: "left-end" }, {
409
+ h(w, { placement: "left-end" }, {
413
410
  "menu-button": v(() => [
414
411
  h(a, {
415
412
  icon: "add",
@@ -422,7 +419,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
422
419
  (m) => e.triggerType == "SCHEDULE" ? !m.startsWith("transaction.") : !0
423
420
  ), (m) => {
424
421
  var I;
425
- return p(), E(w, {
422
+ return p(), E(M, {
426
423
  key: m,
427
424
  label: ((I = s(te)[m]) == null ? void 0 : I.name) || m,
428
425
  onClick: (ve) => {
@@ -442,6 +439,6 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
442
439
  }
443
440
  });
444
441
  export {
445
- Me as M,
442
+ we as M,
446
443
  je as _
447
444
  };
@@ -1,54 +1,56 @@
1
- import { defineComponent as E, ref as M, computed as $, h as d, onMounted as H, resolveComponent as l, openBlock as p, createElementBlock as h, Fragment as w, createVNode as c, unref as t, createElementVNode as s, withCtx as x, renderList as q, createBlock as b, resolveDynamicComponent as z, toDisplayString as u } from "vue";
2
- import { _ as W } from "./campaign-CpzFl8Vr.js";
3
- import { a as G, p as J, u as Q } from "./loading-C-HOw2p9.js";
4
- import { g as X, a as L, b as B } from "./campaign-WGLWFuCK.js";
5
- import { u as Y } from "./business-CdvE-WIp.js";
6
- import { u as Z } from "./campaign-gunNEZhU.js";
7
- import { useDialog as ee, components as v } from "@feedmepos/ui-library";
8
- import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { u as te } from "./template-CvIL9Pex.js";
10
- import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CZmd7K3H.js";
11
- import { s as ae } from "./index-CuvNtC_M.js";
12
- import { u as se } from "./vue-i18n-BjInRP6b.js";
13
- import { c as _ } from "./index-CpsX7fKq.js";
14
- const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ s("img", {
15
- src: W,
1
+ import { defineComponent as H, ref as w, computed as q, h as l, onMounted as z, resolveComponent as m, openBlock as p, createElementBlock as x, Fragment as v, createVNode as c, unref as t, createElementVNode as s, withCtx as C, renderList as W, createBlock as b, resolveDynamicComponent as G, toDisplayString as u } from "vue";
2
+ import { _ as J } from "./campaign-CpzFl8Vr.js";
3
+ import { u as Q } from "./loading-CScT_lmc.js";
4
+ import { g as X, a as B, b as P } from "./campaign-BWkn-fFd.js";
5
+ import { a as Y, p as Z } from "./plugins-VONaCeWn.js";
6
+ import { u as ee } from "./business-NXwwmhbL.js";
7
+ import { u as oe } from "./campaign-Iww5PvJV.js";
8
+ import { useDialog as te, components as _ } from "@feedmepos/ui-library";
9
+ import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
+ import { u as ae } from "./template-bVlMDuHk.js";
11
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
12
+ import { s as ie } from "./index-CuvNtC_M.js";
13
+ import { u as ce } from "./vue-i18n-59FFzX8P.js";
14
+ import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js";
15
+ import { c as h } from "./index-CvKxhzaQ.js";
16
+ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, ue = { class: "flex w-full gap-4 items-center" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = /* @__PURE__ */ s("img", {
17
+ src: J,
16
18
  class: "aspect-square w-[150px]"
17
- }, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ E({
19
+ }, null, -1), xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ H({
18
20
  __name: "Mission",
19
- setup(xe) {
20
- const { t: n } = se(), P = {
21
+ setup(be) {
22
+ const { t: n } = ce(), R = {
21
23
  label: n("connect.program.common.actions.create", {
22
24
  type: n("connect.program.mission.title").toLowerCase()
23
25
  }),
24
26
  value: "create",
25
27
  isPrimary: !0,
26
28
  prependIcon: "add"
27
- }, C = ee(), K = te("MISSION", C), N = Y(), m = Z(), { global: R, minor: S } = Q, i = M({
29
+ }, S = te(), K = ae("MISSION", S), N = ee(), d = oe(), { global: T, minor: F } = Q, i = w({
28
30
  searchKey: "",
29
31
  location: null
30
- }), g = $(
31
- () => m.campaigns.mission.filter(
32
+ }), f = q(
33
+ () => d.campaigns.mission.filter(
32
34
  (e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
33
35
  )
34
- ), T = [
36
+ ), U = [
35
37
  {
36
38
  header: n("connect.program.common.table.title"),
37
39
  accessorKey: "name",
38
40
  // accessorFn: (v) => v.name,
39
41
  cell(e) {
40
- return d("div", { class: "flex items-center justify-between gap-4" }, [
41
- d("div", { class: "flex items-center" }, [
42
- d(
43
- v.FmTooltip,
42
+ return l("div", { class: "flex items-center justify-between gap-4" }, [
43
+ l("div", { class: "flex items-center" }, [
44
+ l(
45
+ _.FmTooltip,
44
46
  {
45
47
  content: e.row.original._id,
46
48
  onClick: (o) => {
47
- o.stopPropagation(), G(e.row.original._id);
49
+ o.stopPropagation(), Y(e.row.original._id);
48
50
  }
49
51
  },
50
52
  [
51
- d(v.FmIcon, {
53
+ l(_.FmIcon, {
52
54
  name: "info",
53
55
  outline: !0,
54
56
  size: "sm"
@@ -56,25 +58,25 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
56
58
  ]
57
59
  )
58
60
  ]),
59
- d("div", { class: "flex-1" }, e.row.original.name)
61
+ l("div", { class: "flex-1" }, e.row.original.name)
60
62
  ]);
61
63
  }
62
64
  },
63
65
  {
64
66
  header: n("connect.campaign.mission.type"),
65
- accessorFn: (e) => ae(e.mission.type)
67
+ accessorFn: (e) => ie(e.mission.type)
66
68
  //v.effect,
67
69
  },
68
70
  {
69
71
  header: n("connect.program.common.table.status"),
70
72
  accessorFn: (e) => X(e),
71
73
  cell(e) {
72
- return L(e.row.original);
74
+ return B(e.row.original);
73
75
  }
74
76
  },
75
77
  {
76
78
  header: n("connect.program.common.table.summary"),
77
- accessorFn: (e) => B(e)
79
+ accessorFn: (e) => P(e)
78
80
  //v.effect,
79
81
  },
80
82
  {
@@ -87,23 +89,33 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
87
89
  {
88
90
  header: n("connect.program.common.table.actions"),
89
91
  cell(e) {
90
- return d(v.FmButton, {
91
- variant: "tertiary",
92
- icon: "delete",
93
- iconColor: "neutral-gray-400",
94
- onClick: (o) => {
95
- o.stopPropagation(), k(e.row.original);
96
- }
97
- });
92
+ return l("div", { class: "flex items-center gap-8" }, [
93
+ l(_.FmButton, {
94
+ variant: "tertiary",
95
+ icon: "send",
96
+ iconColor: "neutral-gray-400",
97
+ onClick: (o) => {
98
+ o.stopPropagation(), A(e.row.original);
99
+ }
100
+ }),
101
+ l(_.FmButton, {
102
+ variant: "tertiary",
103
+ icon: "delete",
104
+ iconColor: "neutral-gray-400",
105
+ onClick: (o) => {
106
+ o.stopPropagation(), V(e.row.original);
107
+ }
108
+ })
109
+ ]);
98
110
  }
99
111
  }
100
- ], F = M();
101
- async function k(e) {
102
- await J.remove(
112
+ ], k = w(), I = w();
113
+ async function V(e) {
114
+ await Z.remove(
103
115
  n("connect.program.common.remove.confirm", { name: e.name })
104
- ) && await S(
116
+ ) && await F(
105
117
  async () => {
106
- await _.delete(e._id), await m.read("MISSION");
118
+ await h.delete(e._id), await d.read("MISSION");
107
119
  },
108
120
  {
109
121
  message: n("connect.program.common.remove.removing", { name: e.name }),
@@ -118,18 +130,18 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
118
130
  await o(r);
119
131
  });
120
132
  async function o(r) {
121
- var f;
122
- (f = F.value) == null || f.showSheet(
133
+ var g;
134
+ (g = k.value) == null || g.showSheet(
123
135
  !0,
124
136
  "MISSION",
125
- e ? await _.readById(e._id) : void 0,
137
+ e ? await h.readById(e._id) : void 0,
126
138
  r
127
139
  );
128
140
  }
129
141
  }
130
- async function U(e) {
142
+ async function O(e) {
131
143
  e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
132
- C.open({
144
+ S.open({
133
145
  title: "Confirmation",
134
146
  message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
135
147
  primaryActions: { text: "Update all", close: !0 },
@@ -140,9 +152,9 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
140
152
  }).onSecondary(async () => {
141
153
  o();
142
154
  });
143
- }), await S(
155
+ }), await F(
144
156
  async () => {
145
- e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("MISSION");
157
+ e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await d.read("MISSION");
146
158
  },
147
159
  {
148
160
  message: n(
@@ -156,30 +168,36 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
156
168
  }
157
169
  );
158
170
  }
159
- return H(async () => {
160
- await R(async () => {
161
- await m.read("MISSION"), console.log(g);
171
+ function A(e) {
172
+ var o;
173
+ (o = I.value) == null || o.showSheet({
174
+ campaign: e
175
+ });
176
+ }
177
+ return z(async () => {
178
+ await T(async () => {
179
+ await d.read("MISSION"), console.log(f);
162
180
  });
163
181
  }), (e, o) => {
164
- const r = l("FmPageHead"), f = l("FmSearch"), O = l("FmTable"), I = l("FmButton"), A = l("FmListItem"), D = l("FmList"), j = l("FmCard");
165
- return p(), h(w, null, [
182
+ const r = m("FmPageHead"), g = m("FmSearch"), D = m("FmTable"), M = m("FmButton"), $ = m("FmListItem"), j = m("FmList"), E = m("FmCard");
183
+ return p(), x(v, null, [
166
184
  c(r, {
167
185
  title: t(n)("connect.campaign.mission.title"),
168
- actions: t(g).length > 0 ? [P] : [],
186
+ actions: t(f).length > 0 ? [R] : [],
169
187
  "onClick:action": o[0] || (o[0] = () => y())
170
188
  }, null, 8, ["title", "actions"]),
171
- s("div", ie, [
172
- c(f, {
189
+ s("div", le, [
190
+ c(g, {
173
191
  modelValue: t(i).searchKey,
174
192
  "onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
175
193
  class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
176
194
  placeholder: t(n)("connect.program.common.search"),
177
195
  collapsible: ""
178
196
  }, null, 8, ["modelValue", "placeholder"]),
179
- t(m).campaigns.mission && t(m).campaigns.mission.length > 0 ? (p(), h(w, { key: 0 }, [
180
- s("div", ce, [
181
- s("div", re, [
182
- c(oe, {
197
+ t(d).campaigns.mission && t(d).campaigns.mission.length > 0 ? (p(), x(v, { key: 0 }, [
198
+ s("div", me, [
199
+ s("div", de, [
200
+ c(ne, {
183
201
  modelValue: t(i).location,
184
202
  "onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
185
203
  label: t(n)("connect.program.common.location"),
@@ -189,7 +207,7 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
189
207
  items: t(N).locationItems
190
208
  }, null, 8, ["modelValue", "label", "items"])
191
209
  ]),
192
- c(f, {
210
+ c(g, {
193
211
  modelValue: t(i).searchKey,
194
212
  "onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
195
213
  class: "xs:hidden",
@@ -197,41 +215,41 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
197
215
  collapsible: ""
198
216
  }, null, 8, ["modelValue"])
199
217
  ]),
200
- c(O, {
218
+ c(D, {
201
219
  class: "xs:hidden",
202
- "row-data": t(g),
203
- "column-defs": T,
220
+ "row-data": t(f),
221
+ "column-defs": U,
204
222
  "search-value": t(i).searchKey,
205
223
  "column-filter": [],
206
224
  onRowClick: o[4] || (o[4] = (a) => y(a.original)),
207
- "hide-footer": t(g).length < 10
225
+ "hide-footer": t(f).length < 10
208
226
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
209
- c(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
210
- default: x(() => [
211
- (p(!0), h(w, null, q(t(g).filter(
227
+ c(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
228
+ default: C(() => [
229
+ (p(!0), x(v, null, W(t(f).filter(
212
230
  (a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
213
- ), (a) => (p(), b(A, {
231
+ ), (a) => (p(), b($, {
214
232
  key: a._id.toString(),
215
- onClick: (V) => y(a),
233
+ onClick: (L) => y(a),
216
234
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
217
235
  }, {
218
- default: x(() => [
219
- s("div", le, [
220
- s("div", me, [
221
- (p(), b(z(t(L)(a)))),
222
- s("div", de, u(a.currentReceive ?? 0) + " used ", 1)
236
+ default: C(() => [
237
+ s("div", pe, [
238
+ s("div", ue, [
239
+ (p(), b(G(t(B)(a)))),
240
+ s("div", fe, u(a.currentReceive ?? 0) + " used ", 1)
223
241
  ]),
224
- s("div", pe, [
225
- s("div", ue, u(a.name), 1),
226
- s("div", ge, u(t(B)(a)), 1)
242
+ s("div", ge, [
243
+ s("div", ye, u(a.name), 1),
244
+ s("div", _e, u(t(P)(a)), 1)
227
245
  ]),
228
- s("div", fe, " Token received: " + u(a.currentReceive ?? 0), 1)
246
+ s("div", he, " Token received: " + u(a.currentReceive ?? 0), 1)
229
247
  ]),
230
- c(I, {
248
+ c(M, {
231
249
  icon: "delete",
232
250
  "icon-color": "neutral-gray-400",
233
251
  variant: "tertiary",
234
- onClick: (V) => (V.stopPropagation(), k(a))
252
+ onClick: (L) => (L.stopPropagation(), V(a))
235
253
  }, null, 8, ["onClick"])
236
254
  ]),
237
255
  _: 2
@@ -239,18 +257,18 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
239
257
  ]),
240
258
  _: 1
241
259
  })
242
- ], 64)) : (p(), b(j, {
260
+ ], 64)) : (p(), b(E, {
243
261
  key: 1,
244
262
  variant: "outlined",
245
263
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
246
264
  }, {
247
- default: x(() => [
248
- ye,
249
- s("div", _e, [
250
- s("div", he, u(t(n)("connect.campaign.mission.createProgram")), 1),
251
- s("div", we, u(t(n)("connect.campaign.mission.description")), 1)
265
+ default: C(() => [
266
+ we,
267
+ s("div", xe, [
268
+ s("div", ve, u(t(n)("connect.campaign.mission.createProgram")), 1),
269
+ s("div", Ce, u(t(n)("connect.campaign.mission.description")), 1)
252
270
  ]),
253
- c(I, {
271
+ c(M, {
254
272
  variant: "primary",
255
273
  label: t(n)("connect.campaign.mission.create"),
256
274
  icon: "add",
@@ -259,10 +277,14 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
259
277
  ]),
260
278
  _: 1
261
279
  })),
262
- c(ne, {
280
+ c(se, {
263
281
  ref_key: "sheetRef",
264
- ref: F,
265
- "onSubmit:modelValue": U
282
+ ref: k,
283
+ "onSubmit:modelValue": O
284
+ }, null, 512),
285
+ c(re, {
286
+ ref_key: "sendCollectionSheetRef",
287
+ ref: I
266
288
  }, null, 512)
267
289
  ])
268
290
  ], 64);
@@ -270,5 +292,5 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
270
292
  }
271
293
  });
272
294
  export {
273
- Ne as default
295
+ Ae as default
274
296
  };