@feedmepos/mf-connect 0.1.0-beta.22 → 0.1.0-beta.24

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 (79) hide show
  1. package/dist/{Analytic-D2rd3fW1.js → Analytic-BGHwfe8y.js} +8 -8
  2. package/dist/{App-DRCxxf_2.js → App-BXeInbOn.js} +6 -6
  3. package/dist/{Broadcast-BVr2nICs.js → Broadcast-DHzSNUOX.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-meTyd2fy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cp3MEEHh.js} +8 -8
  5. package/dist/{Card-chRsepYM.js → Card-lF1K-rNW.js} +15 -15
  6. package/dist/{Collections-2Etoeczp.js → Collections-BbXYncse.js} +4 -4
  7. package/dist/{Credit-Dq86WUD-.js → Credit-DUlNSEou.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BsH3HbLB.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-02UOqiCW.js} +27 -27
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C2Hqa8eR.js → EffectSheet.vue_vue_type_style_index_0_lang-BzBmvk4X.js} +6 -6
  10. package/dist/{Experience-Q7dsr0NN.js → Experience-BkPcfGme.js} +8 -8
  11. package/dist/{Game-CYG3CXcR.js → Game-BHk897qu.js} +8 -8
  12. package/dist/Index-DGDiIs4-.js +255 -0
  13. package/dist/{Marketing-Dd7AqXi5.js → Marketing-CFbx8XyS.js} +5 -5
  14. package/dist/{Member-0_78MbML.js → Member-FTPScHYg.js} +4 -4
  15. package/dist/{MemberList-C4LQ4bj1.js → MemberList-CIoGwQoH.js} +14 -14
  16. package/dist/{MemberTransactions-DlRhSSJN.js → MemberTransactions-CYZCTnUg.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CFYwPtG4.js → MessageInput.vue_vue_type_script_setup_true_lang-C6nqufmL.js} +2 -2
  18. package/dist/{Mission-BlLsczAV.js → Mission-BjBaGQwe.js} +8 -8
  19. package/dist/{Overview-VCBBU1YW.js → Overview-BumR0wKz.js} +264 -254
  20. package/dist/{Point-DpIDxrvJ.js → Point-qtTwRO4B.js} +8 -8
  21. package/dist/{Promotion-C3ebqW34.js → Promotion-BJJ6GeQ_.js} +9 -9
  22. package/dist/{Record-DrnEJ5z2.js → Record-DSKsHHuR.js} +4 -4
  23. package/dist/{Reward-D5lhhJ-N.js → Reward-D2IaJe68.js} +79 -79
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CDC9p6LD.js → RewardGroup.vue_vue_type_script_setup_true_lang-BVayF0UI.js} +12 -12
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DdaotwiY.js → RuleGroup.vue_vue_type_script_setup_true_lang-X1J5AJUO.js} +383 -341
  26. package/dist/{Segment-B_UiubGw.js → Segment-BroinGRV.js} +13 -13
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Cxa1yAbP.js → SelectItems.vue_vue_type_script_setup_true_lang-VNRjXDrG.js} +2 -2
  28. package/dist/{Setting-ofM4mT_R.js → Setting-DxI2vvOQ.js} +8 -8
  29. package/dist/{Store-ovwzJgxT.js → Store-uZhvdQu2.js} +19 -19
  30. package/dist/{StoreRewards-D09t7hGn.js → StoreRewards-BgDawQpI.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-enbynhZG.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DErl8VM7.js} +10 -10
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-1RmfqP0u.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-PRmabsgS.js} +1 -1
  33. package/dist/{Tier-CV1NPRXS.js → Tier-ywLpOTC5.js} +15 -15
  34. package/dist/{Title-ChjjbpSL.js → Title-B_1N7WbH.js} +15 -15
  35. package/dist/{Transaction-Cbpgm2JY.js → Transaction-BfnydJEk.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B-cjjDwB.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DxY40ppg.js} +6 -6
  37. package/dist/{Voucher-D2w6Z8YT.js → Voucher-DC3BFpt_.js} +11 -11
  38. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C-M9HHHv.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BH_o1H1R.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Bpiq2H6-.js → ZodTextField.vue_vue_type_script_setup_true_lang-Cx1NSSCO.js} +1 -1
  40. package/dist/{app-B3iXfxa0.js → app-CPAvOc6v.js} +32 -28
  41. package/dist/{app-D_GYnoU8.js → app-DCoeSeFh.js} +1 -1
  42. package/dist/app.js +1 -1
  43. package/dist/{business-olDfFU8_.js → business-Dk0g0MTT.js} +1 -1
  44. package/dist/{campaign-D2nV5URO.js → campaign-CDIbjXrX.js} +2 -2
  45. package/dist/{collectible.enum-BrQ1MdCX.js → collectible.enum-D3iSKWKD.js} +1 -1
  46. package/dist/{collection.fn-tmN9Kszx.js → collection.fn-Clqllg0e.js} +2 -2
  47. package/dist/{dto-CTYhP7qQ.js → dto-Bfv1Q_1p.js} +51 -51
  48. package/dist/{effect-iLrpPMc3.js → effect-CAw2hbV1.js} +1 -1
  49. package/dist/{email-addresses-MX7iDQgY.js → email-addresses-C2powe2O.js} +1 -1
  50. package/dist/{export-CWk6FFUD.js → export-48FIWl-y.js} +3 -3
  51. package/dist/{helper-Dqgn8m_C.js → helper-CUflThOf.js} +1 -1
  52. package/dist/{index-CoO9Rt30.js → index-BDR6gyA3.js} +1 -1
  53. package/dist/{index-XWa7Re80.js → index-BzUTz_f5.js} +3 -3
  54. package/dist/{index-D2PJeTZN.js → index-C9s5LGWo.js} +1 -1
  55. package/dist/{index-CA3ry7KV.js → index-CHAxmOpZ.js} +4 -4
  56. package/dist/{index-BFCvNlPf.js → index-Cwfg1E0O.js} +1 -1
  57. package/dist/{index-CSUgytuI.js → index-D1veosa1.js} +2 -2
  58. package/dist/{index-D6wlE0if.js → index-DCmImPRu.js} +1 -1
  59. package/dist/{index-DVmX1XKB.js → index-DDnotVHT.js} +8 -8
  60. package/dist/{index-DuhwB_77.js → index-DHK1GNFS.js} +3 -3
  61. package/dist/{index-a-RJ9mPY.js → index-DTk6tgu3.js} +4 -4
  62. package/dist/{index-0rGwpvFu.js → index-Dmuja8kq.js} +3 -3
  63. package/dist/{index-Olr6peI3.js → index-DpF2mO8S.js} +1 -1
  64. package/dist/{index-BFKji6uM.js → index-YxGM0sYn.js} +1 -1
  65. package/dist/{index.esm2017-rSVl0NJ1.js → index.esm2017-B6jyMj2I.js} +1 -1
  66. package/dist/{loading-DH_Oslj_.js → loading-5TfQs5SR.js} +4 -4
  67. package/dist/{membership-DvGibVw8.js → membership-BCMMOGZz.js} +3 -3
  68. package/dist/{money-uMV9bKW_.js → money-BavhjpvU.js} +1 -1
  69. package/dist/{number-prhBB6Cx.js → number-B4tdJr4Z.js} +1 -1
  70. package/dist/{objectid-BXCxmWH8.js → objectid-C40r-rFp.js} +8 -8
  71. package/dist/{reward-CS8GA2Em.js → reward-DjXyYMBi.js} +1 -1
  72. package/dist/{rule-DWywBqMy.js → rule-DhNwPN-d.js} +3 -3
  73. package/dist/{rule-builder-DqbLY4ex.js → rule-builder-DmD22HBN.js} +1 -1
  74. package/dist/{template-DbSK_KPb.js → template-BXp7Uglk.js} +4 -4
  75. package/dist/{trigger-BdN5rF98.js → trigger-BdDXyHZg.js} +4 -4
  76. package/dist/{vue-i18n-C6HFQh05.js → vue-i18n-Tmy5Z8fL.js} +248 -248
  77. package/dist/{xlsx-qV7YVbEu.js → xlsx-Ct43S4H1.js} +1 -1
  78. package/package.json +1 -1
  79. package/dist/Index-DHCwmDVK.js +0 -226
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as w, Fragment as b, createVNode as r, unref as t, withCtx as g, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as x, resolveDynamicComponent 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, u as W } from "./loading-DH_Oslj_.js";
5
- import { u as X } from "./business-olDfFU8_.js";
6
- import { u as Y } from "./campaign-D2nV5URO.js";
7
- import { g as V, a as I } from "./dto-CTYhP7qQ.js";
4
+ import { p as Q, u as W } from "./loading-5TfQs5SR.js";
5
+ import { u as X } from "./business-Dk0g0MTT.js";
6
+ import { u as Y } from "./campaign-CDIbjXrX.js";
7
+ import { g as V, a as I } from "./dto-Bfv1Q_1p.js";
8
8
  import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BsH3HbLB.js";
10
- import { u as te } from "./template-DbSK_KPb.js";
11
- import { u as oe } from "./vue-i18n-C6HFQh05.js";
12
- import { c as _ } from "./index-BFCvNlPf.js";
9
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-02UOqiCW.js";
10
+ import { u as te } from "./template-BXp7Uglk.js";
11
+ import { u as oe } from "./vue-i18n-Tmy5Z8fL.js";
12
+ import { c as _ } from "./index-Cwfg1E0O.js";
13
13
  const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { 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 = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ j({
14
14
  __name: "Point",
15
15
  setup(he) {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as H, ref as S, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as a, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I, u as Z } from "./loading-DH_Oslj_.js";
5
- import { u as ee } from "./business-olDfFU8_.js";
6
- import { u as oe } from "./campaign-D2nV5URO.js";
7
- import { u as te } from "./vue-i18n-C6HFQh05.js";
8
- import { g as V } from "./dto-CTYhP7qQ.js";
9
- import { e as L } from "./effect-iLrpPMc3.js";
4
+ import { c as O, p as I, u as Z } from "./loading-5TfQs5SR.js";
5
+ import { u as ee } from "./business-Dk0g0MTT.js";
6
+ import { u as oe } from "./campaign-CDIbjXrX.js";
7
+ import { u as te } from "./vue-i18n-Tmy5Z8fL.js";
8
+ import { g as V } from "./dto-Bfv1Q_1p.js";
9
+ import { e as L } from "./effect-CAw2hbV1.js";
10
10
  import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
11
- import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BsH3HbLB.js";
12
- import { u as se } from "./template-DbSK_KPb.js";
13
- import { c as u } from "./index-BFCvNlPf.js";
11
+ import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-02UOqiCW.js";
12
+ import { u as se } from "./template-BXp7Uglk.js";
13
+ import { c as u } from "./index-Cwfg1E0O.js";
14
14
  const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { 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" }, pe = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, 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" }, Le = /* @__PURE__ */ H({
15
15
  __name: "Promotion",
16
16
  setup(_e) {
@@ -2,12 +2,12 @@ import { defineComponent as R, ref as C, resolveComponent as v, openBlock as F,
2
2
  import { u as N, _ as B } from "./usePagination-BeF5K3M7.js";
3
3
  import { g as b } from "./user-Bm4KttFq.js";
4
4
  import { components as S } from "@feedmepos/ui-library";
5
- import { u as U, c as E } from "./loading-DH_Oslj_.js";
6
- import { u as L } from "./vue-i18n-C6HFQh05.js";
5
+ import { u as U, c as E } from "./loading-5TfQs5SR.js";
6
+ import { u as L } from "./vue-i18n-Tmy5Z8fL.js";
7
7
  import { useCoreStore as T } from "@feedmepos/mf-common";
8
- import { r as k } from "./index-D2PJeTZN.js";
8
+ import { r as k } from "./index-C9s5LGWo.js";
9
9
  import { c as j, a as K } from "./object-qECH92oz.js";
10
- import { u as O } from "./membership-DvGibVw8.js";
10
+ import { u as O } from "./membership-BCMMOGZz.js";
11
11
  const q = { class: "flex flex-col space-y-16 pr-12" }, G = /* @__PURE__ */ R({
12
12
  __name: "UpdateCriteriaProgressSheet",
13
13
  emits: ["refresh"],
@@ -1,32 +1,31 @@
1
- import { defineComponent as N, ref as C, computed as K, resolveComponent as p, openBlock as y, createBlock as V, unref as t, isRef as q, withCtx as h, createElementVNode as c, createVNode as i, createCommentVNode as U, createElementBlock as I, Fragment as H, h as x, onMounted as W, toDisplayString as $ } from "vue";
1
+ import { defineComponent as N, ref as C, computed as K, resolveComponent as u, openBlock as f, createBlock as V, unref as t, isRef as q, withCtx as h, createElementVNode as p, createVNode as i, createCommentVNode as U, createElementBlock as I, Fragment as H, h as x, onMounted as W, toDisplayString as $ } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as Y } from "@feedmepos/ui-library";
4
- import { f as B, u as X, p as Q } from "./loading-DH_Oslj_.js";
5
- import { u as J, C as ee } from "./membership-DvGibVw8.js";
6
- import { u as te } from "./vue-i18n-C6HFQh05.js";
4
+ import { f as B, u as X, p as Q } from "./loading-5TfQs5SR.js";
5
+ import { u as J, C as ee } from "./membership-BCMMOGZz.js";
6
+ import { u as te } from "./vue-i18n-Tmy5Z8fL.js";
7
7
  import { c as oe } from "./object-qECH92oz.js";
8
8
  import { Z as O } from "./zod-Bg2FbC-D.js";
9
- import "./index-CSUgytuI.js";
10
- import { a as ae } from "./index-DuhwB_77.js";
11
- import { useCoreStore as ne } from "@feedmepos/mf-common";
12
- import { _ as le, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-C-M9HHHv.js";
13
- import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-C2Hqa8eR.js";
9
+ import "./index-D1veosa1.js";
10
+ import { a as ae } from "./index-DHK1GNFS.js";
11
+ import { useCoreStore as le } from "@feedmepos/mf-common";
12
+ import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-BH_o1H1R.js";
13
+ import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-BzBmvk4X.js";
14
14
  import { J as j } from "./JsonViewer-v8_C7l5N.js";
15
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Bpiq2H6-.js";
16
- import { i as de } from "./helper-Dqgn8m_C.js";
17
- import { u as me, r as D } from "./reward-CS8GA2Em.js";
15
+ import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Cx1NSSCO.js";
16
+ import { i as de } from "./helper-CUflThOf.js";
17
+ import { u as me, r as D } from "./reward-DjXyYMBi.js";
18
18
  import { useRouter as ce } from "vue-router";
19
19
  const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__ */ N({
20
20
  __name: "EditRewardSheet",
21
- props: {},
22
21
  emits: ["update"],
23
- setup(Z, { expose: n, emit: k }) {
24
- const u = J(), { minor: g } = X, f = C(!1), a = C({}), w = C(), v = ae, m = K(() => {
22
+ setup(Z, { expose: l, emit: k }) {
23
+ const m = J(), { minor: g } = X, y = C(!1), a = C({}), w = C(), v = ae, c = K(() => {
25
24
  const o = v.safeParse(a.value);
26
25
  return o.success ? [] : o.error.errors;
27
26
  });
28
27
  function b(o, e) {
29
- o && (a.value = e), f.value = o;
28
+ o && (a.value = e), y.value = o;
30
29
  }
31
30
  const T = k;
32
31
  async function R() {
@@ -50,7 +49,7 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
50
49
  collectible: null,
51
50
  type: "VOUCHER",
52
51
  collectibleConfig: de("VOUCHER", {
53
- business: ne().currentBusiness.value._id
52
+ business: le().currentBusiness.value._id
54
53
  }),
55
54
  earningOption: {
56
55
  amount: 1,
@@ -60,8 +59,8 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
60
59
  validForDay: 30
61
60
  }
62
61
  } : a.value.option = {
63
- collectible: u.loyaltyRewards.raw[0]._id,
64
- collecitbleType: u.loyaltyRewards.raw[0].type,
62
+ collectible: m.loyaltyRewards.raw[0]._id,
63
+ collecitbleType: m.loyaltyRewards.raw[0].type,
65
64
  type: "LOYALTY",
66
65
  earningOption: {
67
66
  amount: 1,
@@ -76,33 +75,33 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
76
75
  a.value.option.collectible = o;
77
76
  }
78
77
  const L = C();
79
- return n({
78
+ return l({
80
79
  showSheet: b
81
80
  }), (o, e) => {
82
- const d = p("FmSelect"), A = p("FmForm"), S = p("FmButton"), P = p("FmSideSheet");
83
- return y(), V(P, {
81
+ const d = u("FmSelect"), A = u("FmForm"), S = u("FmButton"), P = u("FmSideSheet");
82
+ return f(), V(P, {
84
83
  "max-width": 560,
85
- modelValue: t(f),
84
+ modelValue: t(y),
86
85
  "onUpdate:modelValue": [
87
- e[8] || (e[8] = (s) => q(f) ? f.value = s : null),
88
- e[9] || (e[9] = (s) => f.value = s)
86
+ e[8] || (e[8] = (s) => q(y) ? y.value = s : null),
87
+ e[9] || (e[9] = (s) => y.value = s)
89
88
  ],
90
89
  header: "Edit reward"
91
90
  }, {
92
91
  "side-sheet-footer": h(() => [
93
- c("div", pe, [
92
+ p("div", pe, [
94
93
  i(S, {
95
94
  variant: "primary",
96
95
  type: "button",
97
96
  label: "Confirm",
98
- disabled: t(m).length > 0,
97
+ disabled: t(c).length > 0,
99
98
  onClick: e[6] || (e[6] = (s) => R())
100
99
  }, null, 8, ["disabled"]),
101
100
  i(S, {
102
101
  variant: "secondary",
103
102
  type: "button",
104
103
  label: "Cancel",
105
- onClick: e[7] || (e[7] = (s) => f.value = !1)
104
+ onClick: e[7] || (e[7] = (s) => y.value = !1)
106
105
  })
107
106
  ])
108
107
  ]),
@@ -119,7 +118,7 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
119
118
  return [
120
119
  i(se, {
121
120
  modelValue: t(a).name,
122
- "onUpdate:modelValue": e[0] || (e[0] = (l) => t(a).name = l),
121
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => t(a).name = n),
123
122
  label: "Reward Name",
124
123
  schema: t(O).typeAtPath(t(v), "name", [])
125
124
  }, null, 8, ["modelValue", "schema"]),
@@ -132,21 +131,21 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
132
131
  "model-value": t(a).option.type,
133
132
  "onUpdate:modelValue": E
134
133
  }, null, 8, ["model-value"]),
135
- t(a).option.type == "LOYALTY" ? (y(), V(d, {
134
+ t(a).option.type == "LOYALTY" ? (f(), V(d, {
136
135
  key: 0,
137
136
  label: "Loyalty type",
138
- items: t(u).loyaltyRewards.items,
137
+ items: t(m).loyaltyRewards.items,
139
138
  "model-value": t(a).option.collectible,
140
139
  "onUpdate:modelValue": F
141
140
  }, null, 8, ["items", "model-value"])) : U("", !0),
142
- t(a).option.type === "LOYALTY" ? (y(), I(H, { key: 1 }, [
143
- e[10] || (e[10] = c("div", { class: "fm-typo-en-title-sm-800" }, "Earning option", -1)),
144
- ((s = t(u).loyaltyRewards.items.find(
145
- (l) => {
141
+ t(a).option.type === "LOYALTY" ? (f(), I(H, { key: 1 }, [
142
+ e[10] || (e[10] = p("div", { class: "fm-typo-en-title-sm-800" }, "Earning option", -1)),
143
+ ((s = t(m).loyaltyRewards.items.find(
144
+ (n) => {
146
145
  var _;
147
- return l.value === ((_ = t(a)) == null ? void 0 : _.option.collectible);
146
+ return n.value === ((_ = t(a)) == null ? void 0 : _.option.collectible);
148
147
  }
149
- )) == null ? void 0 : s.raw.type) !== "TITLE" ? (y(), V(le, {
148
+ )) == null ? void 0 : s.raw.type) !== "TITLE" ? (f(), V(ne, {
150
149
  key: 0,
151
150
  class: "mt-[-8px]",
152
151
  rules: [
@@ -154,18 +153,18 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
154
153
  t(a).option.type
155
154
  ])
156
155
  ],
157
- "helper-state": t(O).helperState(t(m), "option.earningOption"),
158
- "error-text": t(O).helperText(t(m), "option.earningOption"),
156
+ "helper-state": t(O).helperState(t(c), "option.earningOption"),
157
+ "error-text": t(O).helperText(t(c), "option.earningOption"),
159
158
  "fixed-type": !0,
160
159
  "model-value": t(a).option.earningOption,
161
- "onUpdate:modelValue": e[1] || (e[1] = (l) => t(a).option.earningOption = l)
160
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => t(a).option.earningOption = n)
162
161
  }, null, 8, ["rules", "helper-state", "error-text", "model-value"])) : U("", !0),
163
162
  i(re, {
164
163
  class: "!gap-24",
165
- "for-credit": t(a).option.type === "LOYALTY" && ((r = t(u).loyaltyRewards.items.find(
166
- (l) => {
164
+ "for-credit": t(a).option.type === "LOYALTY" && ((r = t(m).loyaltyRewards.items.find(
165
+ (n) => {
167
166
  var _;
168
- return l.value === ((_ = t(a).option) == null ? void 0 : _.collectible);
167
+ return n.value === ((_ = t(a).option) == null ? void 0 : _.collectible);
169
168
  }
170
169
  )) == null ? void 0 : r.raw.type) === "CREDIT",
171
170
  rules: [
@@ -174,17 +173,17 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
174
173
  ])
175
174
  ],
176
175
  "model-value": t(a).option.validityOption,
177
- "onUpdate:modelValue": e[2] || (e[2] = (l) => t(a).option.validityOption = l)
176
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => t(a).option.validityOption = n)
178
177
  }, null, 8, ["for-credit", "rules", "model-value"])
179
178
  ], 64)) : U("", !0),
180
- t(a).option.type === "VOUCHER" ? (y(), V(ie, {
179
+ t(a).option.type === "VOUCHER" ? (f(), V(ie, {
181
180
  key: 2,
182
181
  "reward-image": t(w),
183
182
  "model-value": ((M = t(a)) == null ? void 0 : M.option.collectibleConfig) ?? void 0,
184
- "onUpdate:modelValue": e[3] || (e[3] = (l) => t(a).option.collectibleConfig = l),
185
- "onUpdate:rewardImage": e[4] || (e[4] = (l) => w.value = l)
183
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => t(a).option.collectibleConfig = n),
184
+ "onUpdate:rewardImage": e[4] || (e[4] = (n) => w.value = n)
186
185
  }, null, 8, ["reward-image", "model-value"])) : U("", !0),
187
- i(j, { json: t(m) }, null, 8, ["json"])
186
+ i(j, { json: t(c) }, null, 8, ["json"])
188
187
  ];
189
188
  }),
190
189
  _: 1
@@ -194,30 +193,30 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
194
193
  }, 8, ["modelValue"]);
195
194
  };
196
195
  }
197
- }), fe = { class: "px-24 flex flex-col gap-y-16" }, ye = { class: "flex items-center justify-between w-full" }, we = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, De = /* @__PURE__ */ N({
196
+ }), ye = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, we = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, De = /* @__PURE__ */ N({
198
197
  __name: "Reward",
199
198
  setup(Z) {
200
- const { t: n } = te(), k = {
201
- label: n("connect.storeRewards.create"),
199
+ const { t: l } = te(), k = {
200
+ label: l("connect.storeRewards.create"),
202
201
  value: "create",
203
202
  isPrimary: !0,
204
203
  prependIcon: "add"
205
- }, u = J(), g = me(), { global: f, minor: a } = X, w = ce(), v = G(), m = C({
204
+ }, m = J(), g = me(), { global: y, minor: a } = X, w = ce(), v = G(), c = C({
206
205
  searchKey: "",
207
206
  columnFilters: []
208
207
  }), b = K(() => g.rewards), T = [
209
208
  {
210
- header: n("connect.storeRewards.table.name"),
209
+ header: l("connect.storeRewards.table.name"),
211
210
  accessorFn: (o) => o.name
212
211
  },
213
212
  {
214
- header: n("connect.storeRewards.table.type"),
213
+ header: l("connect.storeRewards.table.type"),
215
214
  cell(o) {
216
215
  return o.row.original.collectibleConfig ? ee[o.row.original.collectibleConfig.type].chip() : "N/A";
217
216
  }
218
217
  },
219
218
  {
220
- header: n("connect.storeRewards.table.actions"),
219
+ header: l("connect.storeRewards.table.actions"),
221
220
  cell(o) {
222
221
  return x("div", { class: "flex items-center justify-end gap-4" }, [
223
222
  x(
@@ -268,15 +267,15 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
268
267
  ], R = C();
269
268
  async function E(o) {
270
269
  await Q.remove(
271
- n("connect.storeRewards.delete.confirm"),
272
- n("connect.storeRewards.delete.title")
270
+ l("connect.storeRewards.delete.confirm"),
271
+ l("connect.storeRewards.delete.title")
273
272
  ) && await a(
274
273
  async () => {
275
274
  await D.deleteReward(o._id), await g.readRewards();
276
275
  },
277
276
  {
278
- message: n("connect.storeRewards.delete.message"),
279
- successMessage: n("connect.storeRewards.delete.success")
277
+ message: l("connect.storeRewards.delete.message"),
278
+ successMessage: l("connect.storeRewards.delete.success")
280
279
  }
281
280
  );
282
281
  }
@@ -286,7 +285,8 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
286
285
  name: "",
287
286
  option: {
288
287
  type: "LOYALTY",
289
- collectible: u.loyaltyRewards.items[0].value,
288
+ collectible: m.loyaltyRewards.items[0].value,
289
+ collecitbleType: m.loyaltyRewards.items[0].raw.type,
290
290
  validityOption: {
291
291
  validForDay: 7
292
292
  },
@@ -325,14 +325,14 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
325
325
  );
326
326
  }
327
327
  return W(async () => {
328
- await f(async () => {
329
- await u.readRewards(), await g.readRewards();
328
+ await y(async () => {
329
+ await m.readRewards(), await g.readRewards();
330
330
  });
331
331
  }), (o, e) => {
332
- const d = p("FmPageHead"), A = p("FmSearch"), S = p("FmTable"), P = p("FmButton"), s = p("FmCard");
333
- return y(), I(H, null, [
332
+ const d = u("FmPageHead"), A = u("FmSearch"), S = u("FmTable"), P = u("FmButton"), s = u("FmCard");
333
+ return f(), I(H, null, [
334
334
  i(d, {
335
- title: t(n)("connect.reward.title"),
335
+ title: t(l)("connect.reward.title"),
336
336
  actions: [k],
337
337
  "back-button": !0,
338
338
  "onClick:action": e[0] || (e[0] = () => F()),
@@ -341,13 +341,13 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
341
341
  return (r = t(w)) == null ? void 0 : r.back();
342
342
  })
343
343
  }, null, 8, ["title", "actions"]),
344
- c("div", fe, [
345
- t(b) && t(b).length > 0 ? (y(), I(H, { key: 0 }, [
346
- c("div", ye, [
347
- e[6] || (e[6] = c("div", { class: "flex gap-8" }, null, -1)),
344
+ p("div", ye, [
345
+ t(b) && t(b).length > 0 ? (f(), I(H, { key: 0 }, [
346
+ p("div", fe, [
347
+ e[6] || (e[6] = p("div", { class: "flex gap-8" }, null, -1)),
348
348
  i(A, {
349
- modelValue: t(m).searchKey,
350
- "onUpdate:modelValue": e[2] || (e[2] = (r) => t(m).searchKey = r),
349
+ modelValue: t(c).searchKey,
350
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => t(c).searchKey = r),
351
351
  class: "",
352
352
  placeholder: "search",
353
353
  collapsible: ""
@@ -356,28 +356,28 @@ const pe = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__
356
356
  i(S, {
357
357
  "row-data": t(b),
358
358
  "column-defs": T,
359
- "search-value": t(m).searchKey,
360
- "column-filter": t(m).columnFilters,
359
+ "search-value": t(c).searchKey,
360
+ "column-filter": t(c).columnFilters,
361
361
  onRowClick: e[3] || (e[3] = (r) => F(r.original)),
362
362
  "hide-footer": t(b).length < 10
363
363
  }, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
364
- ], 64)) : (y(), V(s, {
364
+ ], 64)) : (f(), V(s, {
365
365
  key: 1,
366
366
  variant: "outlined",
367
367
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
368
368
  }, {
369
369
  default: h(() => [
370
- e[7] || (e[7] = c("img", {
370
+ e[7] || (e[7] = p("img", {
371
371
  src: z,
372
372
  class: "aspect-square w-[150px]"
373
373
  }, null, -1)),
374
- c("div", we, [
375
- c("div", ve, $(t(n)("connect.storeRewards.empty.title")), 1),
376
- c("div", ge, $(t(n)("connect.storeRewards.empty.description")), 1)
374
+ p("div", we, [
375
+ p("div", ve, $(t(l)("connect.storeRewards.empty.title")), 1),
376
+ p("div", ge, $(t(l)("connect.storeRewards.empty.description")), 1)
377
377
  ]),
378
378
  i(P, {
379
379
  variant: "primary",
380
- label: t(n)("connect.storeRewards.empty.action"),
380
+ label: t(l)("connect.storeRewards.empty.action"),
381
381
  onClick: e[4] || (e[4] = (r) => F()),
382
382
  icon: "add"
383
383
  }, null, 8, ["label"])
@@ -1,20 +1,20 @@
1
1
  import { ref as p, defineComponent as T, computed as x, resolveComponent as y, openBlock as U, createBlock as G, unref as e, isRef as $, withCtx as b, createElementVNode as v, createVNode as u, toDisplayString as j } from "vue";
2
- import { u as B } from "./loading-DH_Oslj_.js";
2
+ import { u as B } from "./loading-5TfQs5SR.js";
3
3
  import { J as P } from "./JsonViewer-v8_C7l5N.js";
4
- import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Bpiq2H6-.js";
5
- import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-B-cjjDwB.js";
4
+ import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Cx1NSSCO.js";
5
+ import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-DxY40ppg.js";
6
6
  import { Z as L } from "./zod-Bg2FbC-D.js";
7
7
  import { u as V } from "./app-wDQR6dpb.js";
8
8
  import { defineStore as N } from "pinia";
9
- import { r as k } from "./index-D2PJeTZN.js";
10
- import "./index-0rGwpvFu.js";
11
- import "./index-CSUgytuI.js";
12
- import "./index-a-RJ9mPY.js";
13
- import "./index-CA3ry7KV.js";
14
- import { c as E } from "./index-DVmX1XKB.js";
15
- import "./index-BFKji6uM.js";
16
- import "./index-DuhwB_77.js";
17
- import { u as J } from "./vue-i18n-C6HFQh05.js";
9
+ import { r as k } from "./index-C9s5LGWo.js";
10
+ import "./index-Dmuja8kq.js";
11
+ import "./index-D1veosa1.js";
12
+ import "./index-DTk6tgu3.js";
13
+ import "./index-CHAxmOpZ.js";
14
+ import { c as E } from "./index-DDnotVHT.js";
15
+ import "./index-YxGM0sYn.js";
16
+ import "./index-DHK1GNFS.js";
17
+ import { u as J } from "./vue-i18n-Tmy5Z8fL.js";
18
18
  import { c as C } from "./object-qECH92oz.js";
19
19
  import { useDialog as Z } from "@feedmepos/ui-library";
20
20
  const A = N("mf-connect-referral", () => {