@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.71

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 (152) hide show
  1. package/dist/{App-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
  2. package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
  3. package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
  4. package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
  5. package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
  7. package/dist/Card-dD52oor7.js +1084 -0
  8. package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
  9. package/dist/Credit-qZdlqXqR.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
  13. package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
  14. package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-fhrbFb_5.js +356 -0
  17. package/dist/GiftCardSetup-CTwmNKim.js +736 -0
  18. package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
  20. package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
  23. package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
  24. package/dist/MainLayout-Bf42AcB1.js +143 -0
  25. package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
  27. package/dist/Member-C9VTQqIm.js +654 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
  29. package/dist/MemberImportHistory-DZVwya9v.js +187 -0
  30. package/dist/MemberList-KusIfy1u.js +334 -0
  31. package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
  34. package/dist/Mission-CUUxpBUF.js +360 -0
  35. package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
  36. package/dist/Overview-CYKoF8Hp.js +1316 -0
  37. package/dist/Point-CPpQ07yp.js +288 -0
  38. package/dist/Promotion-CJ95m9Qb.js +423 -0
  39. package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
  40. package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
  41. package/dist/Review-DoWu2XNT.js +45 -0
  42. package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
  43. package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
  44. package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
  47. package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
  50. package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
  51. package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
  52. package/dist/Settings-Cw85-xzq.js +230 -0
  53. package/dist/Store-BSqW1gwf.js +2612 -0
  54. package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
  57. package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
  58. package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
  59. package/dist/Transaction-dOCzlidD.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
  61. package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
  64. package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-BmUK8hMh.js +75 -0
  67. package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
  68. package/dist/campaign-DlR3KF9m.js +368 -0
  69. package/dist/campaign-tAmQNoq7.js +100 -0
  70. package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
  71. package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
  72. package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
  73. package/dist/collection.fn-CDhfM3Eq.js +26 -0
  74. package/dist/currency-10nX5QnT.js +7 -0
  75. package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
  76. package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
  77. package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
  80. package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
  81. package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
  82. package/dist/index-BQk6zTgf.js +32437 -0
  83. package/dist/index-Bd4clHfr.js +901 -0
  84. package/dist/index-BeVWchv7.js +14550 -0
  85. package/dist/index-Bht1Z11w.js +72 -0
  86. package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
  87. package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
  88. package/dist/index-Bz6oSli7.js +151 -0
  89. package/dist/index-C5IfNJUl.js +53 -0
  90. package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
  91. package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
  92. package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
  93. package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
  94. package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
  95. package/dist/index-DXiJa8Cw.js +137 -0
  96. package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
  97. package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
  98. package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
  99. package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
  100. package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
  101. package/dist/member-import-DX-jn2uk.js +187 -0
  102. package/dist/membership-CltAa-gH.js +274 -0
  103. package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
  104. package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
  105. package/dist/objectid-BdNv-dZX.js +145 -0
  106. package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
  109. package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
  112. package/dist/timezone-D2b-V5XD.js +20 -0
  113. package/dist/transaction.fn-B5mLY7bz.js +71 -0
  114. package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
  115. package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
  116. package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
  117. package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
  118. package/dist/vue-i18n-wJReAVJw.js +2365 -0
  119. package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
  120. package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
  121. package/package.json +10 -6
  122. package/dist/Broadcast-Cy-i-WOT.js +0 -266
  123. package/dist/Card-f2XOtWxp.js +0 -910
  124. package/dist/Credit-CcZF4aQS.js +0 -260
  125. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  126. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
  127. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  128. package/dist/Game-CUW7NeVG.js +0 -330
  129. package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
  130. package/dist/MainLayout-R5NxIBR-.js +0 -41
  131. package/dist/Member-CC5F6Bmz.js +0 -280
  132. package/dist/MemberList-Cq4zxopX.js +0 -1601
  133. package/dist/Mission-DcCZ6tAG.js +0 -334
  134. package/dist/Point-D1vLd5hL.js +0 -262
  135. package/dist/Promotion-Cv7MW5RJ.js +0 -397
  136. package/dist/Review-CKhakUMe.js +0 -1123
  137. package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
  138. package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
  139. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
  140. package/dist/Store-uTRQ6KbC.js +0 -1996
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
  142. package/dist/Transaction-CnTEfMGU.js +0 -39
  143. package/dist/campaign-CbMlARNI.js +0 -219
  144. package/dist/campaign-f7FT91GR.js +0 -277
  145. package/dist/export-DQR-0lmK.js +0 -97
  146. package/dist/index-COrXX9MR.js +0 -52
  147. package/dist/index-CWiaP-aV.js +0 -28900
  148. package/dist/index-jVfDVEtz.js +0 -85
  149. package/dist/membership-rifuatxU.js +0 -255
  150. package/dist/objectid-DjpWkCxH.js +0 -145
  151. package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
  152. package/dist/vue-i18n-CgMK-TaC.js +0 -2365
@@ -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-CgMK-TaC.js";
3
- import { c as j } from "./index-CWiaP-aV.js";
4
- import { e as W, F as Y } from "./index-CB7ytKOE.js";
5
- import { C as ee } from "./membership-rifuatxU.js";
6
- import { Z as V } from "./zod-C1j2GLZP.js";
7
- import { _ as te } from "./SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js";
8
- import { u as le } from "./business-i0Gxk7gG.js";
1
+ import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as S, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as T, resolveDynamicComponent as H } from "vue";
2
+ import { u as G } from "./vue-i18n-wJReAVJw.js";
3
+ import { c as j } from "./index-BQk6zTgf.js";
4
+ import { g as W, F as Y } from "./index-BBsK7TUw.js";
5
+ import { C as ee } from "./membership-CltAa-gH.js";
6
+ import { Z as x } from "./zod-CVpVUgBZ.js";
7
+ import { S as te } from "./app-BxTElIm-.js";
8
+ import { u as le } from "./business-DjAiT8tR.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js";
11
- import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js";
12
- import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js";
13
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js";
14
- import { i as re } from "./helper-CkdISSVP.js";
10
+ import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js";
11
+ import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js";
12
+ import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js";
13
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js";
14
+ import { i as re } from "./helper-BCl5r5yZ.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: I }) {
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 = I;
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
+ J(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" }, Se = { class: "xs:!block flex gap-16 items-center" }, Te = { 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: I }) {
98
+ var b, _, E;
99
+ const C = le(), { t: l } = G(), t = o, u = I, 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" && !!((E = (_ = t.modelValue) == null ? void 0 : _.property) != null && E.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"), M = g("FmPill"), Z = g("FmButton"), q = g("FmRadioGroup"), z = g("FmHelperText");
143
+ return p(), S("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), S(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(), S(w, { key: 1 }, [
182
176
  s("div", be, f(e(l)("connect.campaign.earningOption.spendingType")), 1),
183
177
  m(q, {
184
- "model-value": e(x),
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) ? T("", !0) : (p(), S("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
245
  m(M, { 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(), S("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
260
  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"),
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,31 +267,31 @@ 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", Se, [
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
- s("div", Ie, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
288
- m(S, {
281
+ s("div", Te, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
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
  ])
300
- ])) : I("", !0)
294
+ ])) : T("", !0)
301
295
  ];
302
296
  }),
303
297
  _: 1
@@ -305,18 +299,18 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
305
299
  ]),
306
300
  _: 1
307
301
  }, 8, ["model-value"])
308
- ], 64)) : I("", !0)
302
+ ], 64)) : T("", !0)
309
303
  ]),
310
- o.errorText || e(n).length > 0 ? (d(), F(z, {
304
+ o.errorText || e(n).length > 0 ? (p(), O(z, {
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
- }, null, 8, ["text"])) : I("", !0)
309
+ }, null, 8, ["text"])) : T("", !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
+ }), Ie = { 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: I }) {
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 = I;
331
+ return (c, n) => {
332
+ var b, _, E;
333
+ const P = g("FmTextarea"), v = g("FmHelperText");
334
+ return p(), S(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", Ie, [
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,29 +382,29 @@ 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"),
395
389
  state: "error"
396
- }, null, 8, ["text"])) : I("", !0),
390
+ }, null, 8, ["text"])) : T("", !0),
397
391
  n[8] || (n[8] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Usage configuration", -1)),
398
392
  m(se, {
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": ((E = (_ = e(t).extras) == null ? void 0 : _.targetLocation) == null ? void 0 : E.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")]
413
- }, null, 8, ["model-value", "rules"])) : I("", !0)
406
+ rules: [e(x).ruleAtPath(e(u), "extras.targetLocation")]
407
+ }, null, 8, ["model-value", "rules"])) : T("", !0)
414
408
  ], 64);
415
409
  };
416
410
  }
@@ -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-C1j2GLZP.js";
3
- import { u as V } from "./vue-i18n-CgMK-TaC.js";
2
+ import { Z as d } from "./zod-CVpVUgBZ.js";
3
+ import { u as V } from "./vue-i18n-wJReAVJw.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"