@feedmepos/mf-connect 0.1.98-beta.6 → 0.1.98-beta.60

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 (147) hide show
  1. package/dist/{App-CvJ0ASlp.js → App-BUwQLdzG.js} +812 -666
  2. package/dist/{AuditLogs-Bt9S2LKL.js → AuditLogs-laNQB1ef.js} +14 -13
  3. package/dist/{Bin-ZSCDSioa.js → Bin-Bfboeea_.js} +8 -8
  4. package/dist/{Broadcast-BT0R11RB.js → Broadcast-CDz-_eDz.js} +40 -37
  5. package/dist/CampaignAnalytic-BiA-5XG3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-LweQ57aG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VrTN-c_a.js} +6 -5
  7. package/dist/Card-CKHaW8N7.js +1084 -0
  8. package/dist/{Collections-H7zhe9zN.js → Collections-DRocQb1D.js} +14 -13
  9. package/dist/Credit-DWaoVhSP.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-B7ZdULCu.js +53 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-3ERieT1j.js} +54 -52
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js → EffectSheet.vue_vue_type_style_index_0_lang-yDUjXV2O.js} +35 -35
  13. package/dist/{Experience-CH5tg-tm.js → Experience-C1_LpneJ.js} +112 -86
  14. package/dist/{FileSaver.min-DNFqiyZb.js → FileSaver.min-CWJ-6CFP.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-DtTYcSZk.js +356 -0
  17. package/dist/GiftCardSetup-B770Rl1Q.js +662 -0
  18. package/dist/{Grab-3s_sLewD.js → Grab-CN0gmIxT.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js → ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js} +1 -1
  20. package/dist/{Index-zTWZCiEo.js → Index-0F6aq3f9.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BOxYPkf5.js → LocationPicker.vue_vue_type_script_setup_true_lang-BrKj8W2H.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DOuHSVdR.js} +1 -1
  23. package/dist/LoyaltyDashboard-CtXyDFqa.js +2865 -0
  24. package/dist/MainLayout-BSWLr3gE.js +143 -0
  25. package/dist/{Marketing-Bto1OvK1.js → Marketing-Ci2haxRd.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-D7rIqF5U.js → MarketingMaterialEdit-Cw6R0bNM.js} +15 -14
  27. package/dist/Member-DEzSTAQy.js +649 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-BrhSxbrI.js +1287 -0
  29. package/dist/MemberImportHistory-BGfNLzma.js +187 -0
  30. package/dist/MemberList-Cq5Gsv3G.js +336 -0
  31. package/dist/{MemberTransactions-CjTtGB2y.js → MemberTransactions-BrUVZRtt.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DvKL7BL5.js → MessageInput.vue_vue_type_script_setup_true_lang-DCQ6Fse-.js} +5434 -5279
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CETwYfZD.js +40 -0
  34. package/dist/Mission-Do4IonLo.js +360 -0
  35. package/dist/{Overview-mxGLyFvE.js → Overview-DA90l9Kb.js} +21 -20
  36. package/dist/Overview-DN-nJxw9.js +1316 -0
  37. package/dist/Point-DQ4w857n.js +288 -0
  38. package/dist/Promotion-Rgt9LcYi.js +423 -0
  39. package/dist/{Queue-DgaFyyyH.js → Queue-SzypUxgD.js} +14 -13
  40. package/dist/{Record-BRol__6_.js → Record-DYvPPhIW.js} +9 -9
  41. package/dist/Review-B0TERyHM.js +45 -0
  42. package/dist/ReviewFacebookCallback-BJ5jQ3Dv.js +238 -0
  43. package/dist/ReviewGoogleCallback-BKQD39dv.js +213 -0
  44. package/dist/{Reward-DQI0PvmR.js → Reward-BexlVT_C.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B6bvQNsU.js → RewardGroup.vue_vue_type_script_setup_true_lang-C-ygqNur.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DgAU7jGo.js → RuleGroup.vue_vue_type_script_setup_true_lang-DjxIJcdv.js} +103 -109
  47. package/dist/{Segment-DFaLx0QZ.js → Segment-CYa4GjtQ.js} +30 -29
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cpb2i9iV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b-K-VDJC.js} +31 -30
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MvoepHn9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-t2mlDDtn.js} +4 -4
  50. package/dist/{Setting-D2NjFJvq.js → Setting-Dmm5BKdF.js} +14 -14
  51. package/dist/{SettingAdvertisements-CPWgSMaA.js → SettingAdvertisements-cy4cRBop.js} +12 -12
  52. package/dist/Settings-DMQuLDM4.js +230 -0
  53. package/dist/Store-B7KflfSk.js +2612 -0
  54. package/dist/{StoreRewards-Ccj12pyq.js → StoreRewards-BKae8uZn.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-sbIR-k1R.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js} +2 -2
  57. package/dist/{Tier-vaJoohiM.js → Tier-BeTz6LHH.js} +2296 -750
  58. package/dist/{Title-BqHC7-v9.js → Title-OEVVw5I-.js} +39 -37
  59. package/dist/Transaction-D-MZjntW.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Dporb9KE.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-xIEOUOdo.js} +26 -26
  61. package/dist/{Voucher-DeN6C6DQ.js → Voucher-BJCf3pSa.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-De16fuC4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BFQ_CYub.js} +115 -121
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js} +2 -2
  64. package/dist/{app-n4Y2jMee.js → app-J8VIC7-H.js} +29852 -25997
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-HYFFI4OS.js +75 -0
  67. package/dist/{business-jn-_l48y.js → business-BonuheMK.js} +5 -5
  68. package/dist/{campaign-rgDnocfT.js → campaign-7CI7gfS5.js} +74 -96
  69. package/dist/campaign-Ct7jhugP.js +100 -0
  70. package/dist/{campaign.enum-C9HvoKuq.js → campaign.enum-OzJ9IbAW.js} +1 -1
  71. package/dist/{campaign.fn-D21ettpH.js → campaign.fn-CDjxE9B2.js} +99 -99
  72. package/dist/{collectible.enum-_HVU4lWn.js → collectible.enum-Dw_tlI9E.js} +1 -1
  73. package/dist/collection.fn-CER0_NEn.js +26 -0
  74. package/dist/currency-CTUS4vS8.js +7 -0
  75. package/dist/{duplicateCampaign-gzVwrnWb.js → duplicateCampaign-CMQ-RMH-.js} +11 -11
  76. package/dist/{effect-DhpIv1L3.js → effect-DBeGoMNE.js} +1 -1
  77. package/dist/{email-addresses-DPxYLSoa.js → email-addresses-BH3mQzan.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-WYHUnHVy.js → helper-DJe_JbKJ.js} +1 -1
  80. package/dist/{index-BdnHQSDd.js → index-B14H1rLW.js} +5 -4
  81. package/dist/{index-7HizF3GI.js → index-BOVnM3gL.js} +1588 -1522
  82. package/dist/{index-Cvfavr2M.js → index-BRCB6yJ6.js} +232 -200
  83. package/dist/{index-BPsofsGt.js → index-BZKKS7jO.js} +1933 -2560
  84. package/dist/{index-BuLfxJyC.js → index-BlwAgY_z.js} +105 -123
  85. package/dist/index-BmN_Qcw7.js +151 -0
  86. package/dist/index-Bnk3vdb-.js +72 -0
  87. package/dist/index-BzVTqlVH.js +137 -0
  88. package/dist/{index--fNMSXUf.js → index-CEDhjZzd.js} +1 -1
  89. package/dist/{index-BdqRrCt8.js → index-CM9GTQIo.js} +5 -5
  90. package/dist/index-CN8VyVEB.js +53 -0
  91. package/dist/{index-Cte6dHHy.js → index-COuceEFz.js} +14 -14
  92. package/dist/{index-BN-FP9kx.js → index-CWR2s6Nt.js} +1 -1
  93. package/dist/index-CrMBqkKk.js +897 -0
  94. package/dist/{index-xao4ggML.js → index-D9f3AIaO.js} +5 -5
  95. package/dist/index-Do36kJeb.js +51 -0
  96. package/dist/{index-C-5YgmkC.js → index-bGByr1XM.js} +7 -5
  97. package/dist/{index-DUTFNEn9.js → index-bJX4zgh0.js} +4 -4
  98. package/dist/{index.esm2017-CjzFPUCa.js → index.esm2017-BpCPgTjc.js} +128 -128
  99. package/dist/{loading-CojnK00V.js → loading-D_rPJ-Yc.js} +1 -1
  100. package/dist/{lodash-CLkg5jTT.js → lodash-BM976Z2I.js} +1 -1
  101. package/dist/member-import-C5rhD3f8.js +187 -0
  102. package/dist/membership-CIQCEKiL.js +274 -0
  103. package/dist/{money-CyaLaEKo.js → money-BrMT193t.js} +1 -1
  104. package/dist/{number-DEtI4bEX.js → number-DOcD1tqL.js} +1 -1
  105. package/dist/objectid-CAdRRoFu.js +145 -0
  106. package/dist/{plugins-MnP1vCcg.js → plugins-696Z9K6A.js} +3 -3
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-Dk3D26xC.js → reward-lSVIBiE9.js} +1 -1
  109. package/dist/{rule-B1Agad1n.js → rule-BUGAimk8.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-DpqLCq1p.js → template-01_h2Gac.js} +6 -6
  112. package/dist/timezone-okTdM2YU.js +20 -0
  113. package/dist/transaction.fn-Nz0T33ex.js +64 -0
  114. package/dist/{trigger-cwPN-4Ia.js → trigger-CKj1X6zs.js} +17 -17
  115. package/dist/useMarketingMaterialActions-yKqKaPpe.js +96 -0
  116. package/dist/{usePagination-D8zBMxdJ.js → usePagination-D6cYlfni.js} +1 -1
  117. package/dist/{user-EUGwaL2f.js → user-DX5qCQfz.js} +1 -1
  118. package/dist/{vue-i18n-BBj45p9N.js → vue-i18n-DowpocqN.js} +204 -204
  119. package/dist/{xlsx-DiMIlKmu.js → xlsx-Dv4SuJbw.js} +1 -1
  120. package/dist/{zod-B1cU167C.js → zod-DVw24Ejy.js} +1 -1
  121. package/package.json +6 -5
  122. package/dist/Card-Wdh8lyUv.js +0 -910
  123. package/dist/Credit-BuKLrFtM.js +0 -260
  124. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  125. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  126. package/dist/Game-C9s4qZz4.js +0 -330
  127. package/dist/LoyaltyDashboard-tOOk6zvV.js +0 -1082
  128. package/dist/MainLayout-iWi1DzXS.js +0 -41
  129. package/dist/Member-BdgdT-sa.js +0 -280
  130. package/dist/MemberList-DBIE-RWC.js +0 -1601
  131. package/dist/Mission-CWR6FBvN.js +0 -334
  132. package/dist/Point-BIt82fJk.js +0 -262
  133. package/dist/Promotion-Cl1vPi0B.js +0 -397
  134. package/dist/Review-DmV2YnFd.js +0 -1076
  135. package/dist/ReviewFacebookCallback-B5XgAWXo.js +0 -243
  136. package/dist/ReviewGoogleCallback-CYR03Wfd.js +0 -208
  137. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js +0 -181
  138. package/dist/Store-DjUe8ady.js +0 -1996
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B7w69A3j.js +0 -1130
  140. package/dist/Transaction-BOmDOGnD.js +0 -39
  141. package/dist/campaign-BnI7-ceP.js +0 -219
  142. package/dist/export-CWAxYj7W.js +0 -97
  143. package/dist/index-B6EBgIUx.js +0 -85
  144. package/dist/index-CxR1baaG.js +0 -52
  145. package/dist/membership-CeX8E_I9.js +0 -255
  146. package/dist/objectid-CMau7CW-.js +0 -145
  147. package/dist/useMarketingMaterialActions-CGzfJ68e.js +0 -107
@@ -1,17 +1,17 @@
1
- import { defineComponent as B, ref as k, resolveComponent as g, openBlock as d, createBlock as F, withCtx as y, renderSlot as J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, computed as N, createElementBlock as P, Fragment as w, renderList as K, unref as e, normalizeClass as Q, createCommentVNode as I, resolveDynamicComponent as H } from "vue";
2
- import { u as G } from "./vue-i18n-BBj45p9N.js";
3
- import { c as j } from "./index-BdnHQSDd.js";
4
- import { e as W, F as Y } from "./index-7HizF3GI.js";
5
- import { C as ee } from "./membership-CeX8E_I9.js";
6
- import { Z as V } from "./zod-B1cU167C.js";
7
- import { _ as te } from "./SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js";
8
- import { u as le } from "./business-jn-_l48y.js";
1
+ import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as z, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as T, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as I, resolveDynamicComponent as H } from "vue";
2
+ import { u as G } from "./vue-i18n-DowpocqN.js";
3
+ import { c as j } from "./index-B14H1rLW.js";
4
+ import { g as W, F as Y } from "./index-BOVnM3gL.js";
5
+ import { C as ee } from "./membership-CIQCEKiL.js";
6
+ import { Z as x } from "./zod-DVw24Ejy.js";
7
+ import { J as te } from "./app-J8VIC7-H.js";
8
+ import { u as le } from "./business-BonuheMK.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js";
11
- import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js";
12
- import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js";
13
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js";
14
- import { i as re } from "./helper-WYHUnHVy.js";
10
+ import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js";
11
+ import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js";
12
+ import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-yDUjXV2O.js";
13
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js";
14
+ import { i as re } from "./helper-DJe_JbKJ.js";
15
15
  const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
16
16
  __name: "MenuSheet",
17
17
  props: {
@@ -19,25 +19,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
19
19
  filterItems: { type: Function }
20
20
  },
21
21
  emits: ["confirm"],
22
- setup(o, { emit: T }) {
23
- const C = k(), l = k(!1);
22
+ setup(o, { emit: _ }) {
23
+ const C = L([]), l = L(!1);
24
24
  function t() {
25
- var v;
26
- (v = C.value) == null || v.onConfirm();
25
+ u("confirm", C.value), l.value = !1;
27
26
  }
28
- const u = T;
29
- return (v, p) => {
30
- const n = g("FmField"), _ = g("FmButton"), x = g("FmSideSheet");
31
- return d(), F(x, {
27
+ const u = _;
28
+ return (h, c) => {
29
+ const n = g("FmField"), P = g("FmButton"), v = g("FmSideSheet");
30
+ return p(), O(v, {
32
31
  modelValue: l.value,
33
- "onUpdate:modelValue": p[1] || (p[1] = (b) => l.value = b),
32
+ "onUpdate:modelValue": c[2] || (c[2] = (b) => l.value = b),
34
33
  title: "Select Items",
35
34
  "close-button": !1,
36
35
  "dismiss-away": !0,
37
36
  "max-width": 560
38
37
  }, {
39
38
  "side-sheet-button": y(() => [
40
- J(v.$slots, "side-sheet-button", {}, () => [
39
+ z(h.$slots, "side-sheet-button", {}, () => [
41
40
  m(n, { class: "text-fm-color-typo-tertiary cursor-pointer" }, {
42
41
  default: y(() => [
43
42
  U(f(o.modelValue.length) + " item(s) selected ", 1)
@@ -48,12 +47,12 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
48
47
  ]),
49
48
  "side-sheet-footer": y(() => [
50
49
  s("div", ue, [
51
- m(_, {
50
+ m(P, {
52
51
  variant: "tertiary",
53
- onClick: p[0] || (p[0] = (b) => l.value = !1),
52
+ onClick: c[1] || (c[1] = (b) => l.value = !1),
54
53
  label: "Cancel"
55
54
  }),
56
- m(_, {
55
+ m(P, {
57
56
  variant: "primary",
58
57
  onClick: t,
59
58
  label: "Confirm"
@@ -61,17 +60,12 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
61
60
  ])
62
61
  ]),
63
62
  default: y(() => [
64
- m(te, {
63
+ m(e(te), {
65
64
  class: "h-full",
66
- "max-height": 0,
67
- ref_key: "selectItemRef",
68
- ref: C,
69
65
  "initial-value": o.modelValue,
70
66
  "filter-items": o.filterItems,
71
- "on-complete": (b) => {
72
- u("confirm", b), l.value = !1;
73
- }
74
- }, null, 8, ["initial-value", "filter-items", "on-complete"])
67
+ onChange: c[0] || (c[0] = (b) => C.value = b)
68
+ }, null, 8, ["initial-value", "filter-items"])
75
69
  ]),
76
70
  _: 3
77
71
  }, 8, ["modelValue"]);
@@ -80,10 +74,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
80
74
  }), de = { class: "space-y-24" }, pe = { class: "grid grid-cols-2 gap-16" }, fe = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-16" }, be = { class: "fm-typo-en-body-lg-600" }, ve = { class: "fm-typo-en-body-lg-400" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = {
81
75
  key: 0,
82
76
  class: "xs:!block flex gap-16 items-center pt-8"
83
- }, Oe = { class: "xs:py-4 text-center" }, Fe = { class: "fm-typo-en-body-lg-400" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ce = {
77
+ }, Oe = { class: "xs:py-4 text-center" }, Fe = { class: "fm-typo-en-body-lg-400" }, Ce = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, he = {
84
78
  key: 0,
85
79
  class: "pt-8 space-y-8"
86
- }, _e = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Pe = { class: "xs:!block flex gap-16 items-center" }, Ie = { class: "xs:py-4 text-center" }, je = /* @__PURE__ */ B({
80
+ }, Pe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Te = { class: "xs:!block flex gap-16 items-center" }, Ie = { class: "xs:py-4 text-center" }, je = /* @__PURE__ */ B({
87
81
  __name: "EarningOptionInput",
88
82
  props: {
89
83
  modelValue: {
@@ -100,9 +94,9 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
100
94
  }
101
95
  },
102
96
  emits: ["update:model-value"],
103
- setup(o, { emit: T }) {
104
- var b, R, E;
105
- const C = le(), { t: l } = G(), t = o, u = T, v = N(
97
+ setup(o, { emit: _ }) {
98
+ var b, E, S;
99
+ const C = le(), { t: l } = G(), t = o, u = _, h = N(
106
100
  () => [
107
101
  {
108
102
  label: l("connect.campaign.earningOption.type.PROPORTIONAL.label"),
@@ -115,18 +109,18 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
115
109
  value: "FIXED"
116
110
  }
117
111
  ].filter((a) => {
118
- var i, h;
119
- return t.fixedType || ((h = (i = t.extras) == null ? void 0 : i.campaign) == null ? void 0 : h.event.type) != "BILL_COMPLETED" ? a.value == "FIXED" : !0;
112
+ var i, F;
113
+ return t.fixedType || ((F = (i = t.extras) == null ? void 0 : i.campaign) == null ? void 0 : F.event.type) != "BILL_COMPLETED" ? a.value == "FIXED" : !0;
120
114
  })
121
- ), p = N(() => {
122
- var i, h;
115
+ ), c = N(() => {
116
+ var i, F;
123
117
  const a = t.extras && "configs" in t.extras ? t.extras.configs.type : (i = t.extras) == null ? void 0 : i.campaign.type;
124
- return (((h = ee[a]) == null ? void 0 : h.name) || "reward").toLowerCase();
118
+ return (((F = ee[a]) == null ? void 0 : F.name) || "reward").toLowerCase();
125
119
  }), n = N(() => {
126
120
  const a = W.safeParse(t.modelValue);
127
121
  return a.success ? [] : a.error.errors;
128
122
  });
129
- function _(a) {
123
+ function P(a) {
130
124
  var i;
131
125
  a != ((i = t.modelValue) == null ? void 0 : i.type) && u(
132
126
  "update:model-value",
@@ -140,24 +134,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
140
134
  }
141
135
  );
142
136
  }
143
- const x = k(
144
- ((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((E = (R = t.modelValue) == null ? void 0 : R.property) != null && E.length) || !1
137
+ const v = L(
138
+ ((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((S = (E = t.modelValue) == null ? void 0 : E.property) != null && S.length) || !1
145
139
  );
146
140
  return (a, i) => {
147
141
  var D, $, X;
148
- const h = g("FmCard"), S = g("FmStepperField"), A = g("FmRadio"), M = g("FmPill"), Z = g("FmButton"), q = g("FmRadioGroup"), z = g("FmHelperText");
149
- return d(), P("div", de, [
142
+ const F = g("FmCard"), R = g("FmStepperField"), A = g("FmRadio"), J = g("FmPill"), M = g("FmButton"), Z = g("FmRadioGroup"), q = g("FmHelperText");
143
+ return p(), T("div", de, [
150
144
  s("div", pe, [
151
- (d(!0), P(w, null, K(e(v), (r) => {
152
- var O, c;
153
- return d(), F(h, {
145
+ (p(!0), T(w, null, K(e(h), (r) => {
146
+ var V, d;
147
+ return p(), O(F, {
154
148
  variant: "outlined",
155
149
  class: Q(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-2", {
156
- "col-span-2": e(v).length == 1,
157
- "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((O = o.modelValue) == null ? void 0 : O.type) === r.value,
158
- "hover:bg-fm-color-opacity-sm": ((c = o.modelValue) == null ? void 0 : c.type) != r.value
150
+ "col-span-2": e(h).length == 1,
151
+ "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((V = o.modelValue) == null ? void 0 : V.type) === r.value,
152
+ "hover:bg-fm-color-opacity-sm": ((d = o.modelValue) == null ? void 0 : d.type) != r.value
159
153
  }]),
160
- onClick: (L) => _(r.value),
154
+ onClick: (k) => P(r.value),
161
155
  key: r.value
162
156
  }, {
163
157
  default: y(() => [
@@ -169,21 +163,21 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
169
163
  }), 128))
170
164
  ]),
171
165
  s("div", ye, [
172
- ((D = o.modelValue) == null ? void 0 : D.type) === "FIXED" ? (d(), F(S, {
166
+ ((D = o.modelValue) == null ? void 0 : D.type) === "FIXED" ? (p(), O(R, {
173
167
  key: 0,
174
- label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(p) }),
168
+ label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
175
169
  class: "flex-1",
176
170
  "model-value": (($ = o.modelValue) == null ? void 0 : $.amount) ?? null,
177
171
  "onUpdate:modelValue": i[0] || (i[0] = (r) => u("update:model-value", {
178
172
  ...o.modelValue ?? { type: "FIXED" },
179
173
  amount: r
180
174
  }))
181
- }, null, 8, ["label", "model-value"])) : ((X = o.modelValue) == null ? void 0 : X.type) === "PROPORTIONAL" ? (d(), P(w, { key: 1 }, [
175
+ }, null, 8, ["label", "model-value"])) : ((X = o.modelValue) == null ? void 0 : X.type) === "PROPORTIONAL" ? (p(), T(w, { key: 1 }, [
182
176
  s("div", be, f(e(l)("connect.campaign.earningOption.spendingType")), 1),
183
- m(q, {
184
- "model-value": e(x),
177
+ m(Z, {
178
+ "model-value": e(v),
185
179
  "onUpdate:modelValue": i[6] || (i[6] = (r) => {
186
- e(x) != r && (u("update:model-value", {
180
+ e(v) != r && (u("update:model-value", {
187
181
  ...o.modelValue ?? {
188
182
  type: "PROPORTIONAL",
189
183
  amount: 1,
@@ -191,40 +185,40 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
191
185
  },
192
186
  property: r ? [] : void 0,
193
187
  every: 1
194
- }), x.value = r);
188
+ }), v.value = r);
195
189
  })
196
190
  }, {
197
191
  default: y(() => [
198
192
  m(A, {
199
193
  label: e(l)("connect.campaign.earningOption.amountSpent.label"),
200
- sublabel: e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(p) }),
194
+ sublabel: e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(c) }),
201
195
  value: !1
202
196
  }, {
203
197
  label: y(() => {
204
- var r, O;
198
+ var r, V;
205
199
  return [
206
200
  s("div", ve, f(e(l)("connect.campaign.earningOption.amountSpent.label")), 1),
207
- s("div", xe, f(e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(p) })), 1),
208
- e(x) ? I("", !0) : (d(), P("div", Ve, [
209
- m(S, {
210
- label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(p) }),
201
+ s("div", xe, f(e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(c) })), 1),
202
+ e(v) ? I("", !0) : (p(), T("div", Ve, [
203
+ m(R, {
204
+ label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
211
205
  inputmode: "decimal",
212
206
  class: "flex-1",
213
207
  "model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
214
- "onUpdate:modelValue": i[1] || (i[1] = (c) => u("update:model-value", {
208
+ "onUpdate:modelValue": i[1] || (i[1] = (d) => u("update:model-value", {
215
209
  ...o.modelValue ?? { type: "FIXED" },
216
- amount: c
210
+ amount: d
217
211
  }))
218
212
  }, null, 8, ["label", "model-value"]),
219
213
  s("div", Oe, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
220
- m(S, {
214
+ m(R, {
221
215
  label: e(l)("connect.campaign.earningOption.amountSpend", { currency: e(j.Config).getCountry().currency.symbol }),
222
216
  class: "flex-1",
223
217
  inputmode: "decimal",
224
- "model-value": ((O = o.modelValue) == null ? void 0 : O.every) ?? null,
225
- "onUpdate:modelValue": i[2] || (i[2] = (c) => u("update:model-value", {
218
+ "model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
219
+ "onUpdate:modelValue": i[2] || (i[2] = (d) => u("update:model-value", {
226
220
  ...o.modelValue,
227
- every: c
221
+ every: d
228
222
  }))
229
223
  }, {
230
224
  prepend: y(() => [
@@ -239,32 +233,32 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
239
233
  }, 8, ["label", "sublabel"]),
240
234
  m(A, {
241
235
  label: e(l)("connect.campaign.earningOption.productBought.label"),
242
- sublabel: e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(p) }),
236
+ sublabel: e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(c) }),
243
237
  value: !0,
244
238
  disabled: !e(C).isPremium
245
239
  }, {
246
240
  label: y(() => {
247
- var r, O;
241
+ var r, V;
248
242
  return [
249
243
  s("div", Fe, [
250
244
  U(f(e(l)("connect.campaign.earningOption.productBought.label")) + " ", 1),
251
- m(M, { variant: "premium" })
245
+ m(J, { variant: "premium" })
252
246
  ]),
253
- s("div", he, f(e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(p) })), 1),
254
- e(x) ? (d(), P("div", Ce, [
255
- s("div", _e, [
247
+ s("div", Ce, f(e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(c) })), 1),
248
+ e(v) ? (p(), T("div", he, [
249
+ s("div", Pe, [
256
250
  m(ce, {
257
251
  "model-value": t.modelValue.property || [],
258
- onConfirm: i[3] || (i[3] = (c) => u("update:model-value", {
252
+ onConfirm: i[3] || (i[3] = (d) => u("update:model-value", {
259
253
  ...o.modelValue,
260
- property: c
254
+ property: d
261
255
  }))
262
256
  }, {
263
257
  "side-sheet-button": y(() => {
264
- var c, L;
258
+ var d, k;
265
259
  return [
266
- m(Z, {
267
- label: (c = t.modelValue.property) != null && c.length ? e(l)("connect.campaign.earningOption.productsSelected", { count: (L = t.modelValue.property) == null ? void 0 : L.length }) : e(l)("connect.campaign.earningOption.selectProduct"),
260
+ m(M, {
261
+ label: (d = t.modelValue.property) != null && d.length ? e(l)("connect.campaign.earningOption.productsSelected", { count: (k = t.modelValue.property) == null ? void 0 : k.length }) : e(l)("connect.campaign.earningOption.selectProduct"),
268
262
  icon: "link",
269
263
  variant: "secondary"
270
264
  }, null, 8, ["label"])
@@ -273,27 +267,27 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
273
267
  _: 1
274
268
  }, 8, ["model-value"])
275
269
  ]),
276
- s("div", Pe, [
277
- m(S, {
270
+ s("div", Te, [
271
+ m(R, {
278
272
  inputmode: "decimal",
279
- label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(p) }),
273
+ label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
280
274
  class: "flex-1",
281
275
  "model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
282
- "onUpdate:modelValue": i[4] || (i[4] = (c) => u("update:model-value", {
276
+ "onUpdate:modelValue": i[4] || (i[4] = (d) => u("update:model-value", {
283
277
  ...o.modelValue ?? { type: "FIXED" },
284
- amount: c
278
+ amount: d
285
279
  }))
286
280
  }, null, 8, ["label", "model-value"]),
287
281
  s("div", Ie, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
288
- m(S, {
282
+ m(R, {
289
283
  label: e(l)("connect.campaign.earningOption.itemPurchased"),
290
284
  class: "flex-1",
291
- "model-value": ((O = o.modelValue) == null ? void 0 : O.every) ?? null,
285
+ "model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
292
286
  inputmode: "numeric",
293
287
  "max-fraction-digits": 0,
294
- "onUpdate:modelValue": i[5] || (i[5] = (c) => u("update:model-value", {
288
+ "onUpdate:modelValue": i[5] || (i[5] = (d) => u("update:model-value", {
295
289
  ...o.modelValue,
296
- every: c
290
+ every: d
297
291
  }))
298
292
  }, null, 8, ["label", "model-value"])
299
293
  ])
@@ -307,16 +301,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
307
301
  }, 8, ["model-value"])
308
302
  ], 64)) : I("", !0)
309
303
  ]),
310
- o.errorText || e(n).length > 0 ? (d(), F(z, {
304
+ o.errorText || e(n).length > 0 ? (p(), O(q, {
311
305
  key: 0,
312
306
  class: "!mt-4",
313
- text: o.errorText || e(V).helperText(e(n), ""),
307
+ text: o.errorText || e(x).helperText(e(n), ""),
314
308
  state: "error"
315
309
  }, null, 8, ["text"])) : I("", !0)
316
310
  ]);
317
311
  };
318
312
  }
319
- }), Te = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, Ge = /* @__PURE__ */ B({
313
+ }), _e = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, Ge = /* @__PURE__ */ B({
320
314
  __name: "VoucherEditor",
321
315
  props: {
322
316
  modelValue: {
@@ -327,40 +321,40 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
327
321
  }
328
322
  },
329
323
  emits: ["update:model-value", "update:reward-image"],
330
- setup(o, { emit: T }) {
331
- const { t: C } = G(), t = k(
324
+ setup(o, { emit: _ }) {
325
+ const { t: C } = G(), t = L(
332
326
  o.modelValue ?? re("VOUCHER", {
333
327
  business: oe().currentBusiness.value._id,
334
328
  name: ""
335
329
  })
336
- ), u = Y, v = T;
337
- return (p, n) => {
338
- var b, R, E;
339
- const _ = g("FmTextarea"), x = g("FmHelperText");
340
- return d(), P(w, null, [
330
+ ), u = Y, h = _;
331
+ return (c, n) => {
332
+ var b, E, S;
333
+ const P = g("FmTextarea"), v = g("FmHelperText");
334
+ return p(), T(w, null, [
341
335
  m(ne, {
342
336
  modelValue: e(t).name,
343
337
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e(t).name = a),
344
338
  label: "Voucher name",
345
- schema: e(V).typeAtPath(e(u), "name", [e(t).type])
339
+ schema: e(x).typeAtPath(e(u), "name", [e(t).type])
346
340
  }, null, 8, ["modelValue", "schema"]),
347
- m(_, {
341
+ m(P, {
348
342
  class: "!mb-[-16px]",
349
343
  modelValue: e(t).description,
350
344
  "onUpdate:modelValue": n[1] || (n[1] = (a) => e(t).description = a),
351
- rules: [e(V).ruleAtPath(e(u), "description", [e(t).type])]
345
+ rules: [e(x).ruleAtPath(e(u), "description", [e(t).type])]
352
346
  }, {
353
347
  label: y(() => [
354
- (d(), F(H(
355
- e(V).toInputLabel(
356
- e(V).typeAtPath(e(u), "description", [e(t).type]),
348
+ (p(), O(H(
349
+ e(x).toInputLabel(
350
+ e(x).typeAtPath(e(u), "description", [e(t).type]),
357
351
  "Voucher description"
358
352
  )
359
353
  )))
360
354
  ]),
361
355
  _: 1
362
356
  }, 8, ["modelValue", "rules"]),
363
- s("div", Te, [
357
+ s("div", _e, [
364
358
  n[6] || (n[6] = s("div", null, "Voucher description should not exceed 200 characters.", -1)),
365
359
  s("div", null, f(((b = e(t).description) == null ? void 0 : b.length) ?? 0) + "/200", 1)
366
360
  ]),
@@ -370,13 +364,13 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
370
364
  file: o.rewardImage ?? void 0,
371
365
  thumbnail: e(t).image ?? void 0,
372
366
  "onUpdate:file": n[2] || (n[2] = async (a) => {
373
- v("update:reward-image", a), a || (e(t).image = null);
367
+ h("update:reward-image", a), a || (e(t).image = null);
374
368
  })
375
369
  }, {
376
370
  label: y(() => [
377
- (d(), F(H(
378
- e(V).toInputLabel(
379
- e(V).typeAtPath(e(u), "image", [e(t).type]),
371
+ (p(), O(H(
372
+ e(x).toInputLabel(
373
+ e(x).typeAtPath(e(u), "image", [e(t).type]),
380
374
  "Voucher image"
381
375
  )
382
376
  )))
@@ -388,7 +382,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
388
382
  "model-value": e(t).extras.effect,
389
383
  "onUpdate:modelValue": n[3] || (n[3] = (a) => e(t).extras.effect = a)
390
384
  }, null, 8, ["model-value"]),
391
- e(t).extras.effect == null ? (d(), F(x, {
385
+ e(t).extras.effect == null ? (p(), O(v, {
392
386
  key: 0,
393
387
  class: "!mt-8",
394
388
  text: e(C)("connect.campaign.common.effect_required"),
@@ -399,17 +393,17 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
399
393
  "model-value": e(t).options,
400
394
  "no-campaign": e(t).noCampaign,
401
395
  "onUpdate:modelValue": n[4] || (n[4] = (a) => e(t).options = a),
402
- schema: e(V).typeAtPath(e(u), "options", ["VOUCHER"])
396
+ schema: e(x).typeAtPath(e(u), "options", ["VOUCHER"])
403
397
  }, null, 8, ["model-value", "no-campaign", "schema"]),
404
398
  n[9] || (n[9] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
405
- e(t).type === "VOUCHER" ? (d(), F(me, {
399
+ e(t).type === "VOUCHER" ? (p(), O(me, {
406
400
  key: 1,
407
- "model-value": ((E = (R = e(t).extras) == null ? void 0 : R.targetLocation) == null ? void 0 : E.map(String)) ?? null,
401
+ "model-value": ((S = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : S.map(String)) ?? null,
408
402
  type: "select",
409
403
  "onUpdate:modelValue": n[5] || (n[5] = (a) => {
410
404
  e(t).extras.targetLocation = a;
411
405
  }),
412
- rules: [e(V).ruleAtPath(e(u), "extras.targetLocation")]
406
+ rules: [e(x).ruleAtPath(e(u), "extras.targetLocation")]
413
407
  }, null, 8, ["model-value", "rules"])) : I("", !0)
414
408
  ], 64);
415
409
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
2
- import { Z as d } from "./zod-B1cU167C.js";
3
- import { u as V } from "./vue-i18n-BBj45p9N.js";
2
+ import { Z as d } from "./zod-DVw24Ejy.js";
3
+ import { u as V } from "./vue-i18n-DowpocqN.js";
4
4
  const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
5
5
  key: 0,
6
6
  class: "text-fm-color-typo-tertiary"