@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.80

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 (167) hide show
  1. package/dist/{App-DsB2o1oB.js → App-DievprEi.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-DrdqOhZL.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-Ci2k3z77.js} +8 -8
  4. package/dist/Broadcast-CpDMAG1o.js +306 -0
  5. package/dist/CampaignAnalytic-uRyGaLaN.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DtGe2Og1.js} +8 -5
  7. package/dist/Card-tb98Kyr-.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-P1S5WjnJ.js} +14 -13
  9. package/dist/Credit-DwK7JYf-.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cyk0iIsd.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js} +36 -36
  13. package/dist/Experience-BejtRlOj.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-C-hmBaHm.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-n8qL896g.js +356 -0
  17. package/dist/GiftCardSetup-Bgsfcu7N.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CzL68PPP.js +424 -0
  19. package/dist/Goals-BB8LJlq3.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-COq3Ujst.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BdkIinaE.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-DsWv3DVb.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DvOzGF8c.js} +1 -1
  25. package/dist/LoyaltyDashboard-D4Jtpw0n.js +2911 -0
  26. package/dist/MainLayout-Ca-Xm3eZ.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-Cpe4s7NZ.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-nTeS9VVx.js} +15 -14
  29. package/dist/Member-DgGZ4Cdg.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-_O3B-FIA.js +1281 -0
  31. package/dist/MemberImportHistory-rdlbDVWU.js +187 -0
  32. package/dist/MemberList-BC4aRJTt.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-BFfdTttp.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DXajAQy9.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8xVDzdO3.js +40 -0
  36. package/dist/Mission-BWCNKTjU.js +363 -0
  37. package/dist/Overview--Q7vzhNK.js +1316 -0
  38. package/dist/{Overview-DOJj4XvO.js → Overview-i02Wnyjn.js} +23 -20
  39. package/dist/Point-CiWxqny5.js +297 -0
  40. package/dist/Promotion-B0G9qfBm.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-YfwgYmzH.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-CCuwrPKW.js} +9 -9
  43. package/dist/Review-ymsfdh7Q.js +45 -0
  44. package/dist/ReviewFacebookCallback-DyDExWvP.js +238 -0
  45. package/dist/ReviewGoogleCallback-DNyg3n2S.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-BKIb0ezH.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPaaNgpr.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-D5_pp7fh.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLLjIA-D.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRIcZwnU.js} +4 -4
  52. package/dist/Setting-CD78gIMU.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-C2AIT4s4.js} +12 -12
  54. package/dist/Settings-DI_tryQV.js +230 -0
  55. package/dist/Store-BV2JTRNZ.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-Bk55YXyO.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BZZ1fqwg.js +1331 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CO2K30Ew.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-qProQh3T.js} +41 -37
  61. package/dist/Transaction-qL5L-fE_.js +45 -0
  62. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Co1BPScS.js} +26 -26
  63. package/dist/Voucher-VFD1LY9Y.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-9QyTl7iq.js} +118 -124
  65. package/dist/WhatsappAccount-CxSGqm7H.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D8L6izf0.js +96 -0
  67. package/dist/WhatsappBot-C4Oz7Xwv.js +441 -0
  68. package/dist/WhatsappBotSettings-CKqaWzwE.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-BEYzXWZO.js} +50954 -42517
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-S_82Elmg.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DH7djUl8.js} +5 -5
  75. package/dist/campaign-DlHDgoFX.js +100 -0
  76. package/dist/campaign-k_WHxsOR.js +400 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-B-4JRzft.js} +67 -67
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-zQwWDzZT.js +26 -0
  81. package/dist/currency-CQVHXBFe.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-YTXMbJTj.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-CQkVLHWi.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-BIoVbPGC.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-BCkTvF4m.js} +1 -1
  87. package/dist/{index-CoHWpylO.js → index-B-bQnb0_.js} +2115 -2557
  88. package/dist/index-BAJOC43K.js +14550 -0
  89. package/dist/{index-HXiYGO4_.js → index-BFIHEBnX.js} +6343 -7693
  90. package/dist/{index-VlFWaBrg.js → index-BJIQe3QJ.js} +1 -1
  91. package/dist/{index-BpI-BI4H.js → index-BJkRTH5T.js} +4 -4
  92. package/dist/index-BOJogkKQ.js +172 -0
  93. package/dist/{index-BoYEqLif.js → index-BRPajAkE.js} +1517 -263
  94. package/dist/{index-CsoBDon4.js → index-BTkxgos0.js} +1590 -1523
  95. package/dist/index-BUP4aHq8.js +32438 -0
  96. package/dist/index-BYvnqARr.js +902 -0
  97. package/dist/{index-hlyg-wxV.js → index-Bonq819P.js} +1 -1
  98. package/dist/{index-CIBPhxlC.js → index-C6mOI2Pp.js} +105 -123
  99. package/dist/{index-Bf6jNZit.js → index-CDIe15AY.js} +24 -9
  100. package/dist/index-CTrcdIkt.js +137 -0
  101. package/dist/index-C_H8jFYf.js +2743 -0
  102. package/dist/index-CpnchVe1.js +74 -0
  103. package/dist/index-D5AR7A5e.js +151 -0
  104. package/dist/index-D7-Q86HI.js +54 -0
  105. package/dist/index-DdOj8Hew.js +53 -0
  106. package/dist/{index-iMPtFp54.js → index-Dvqguh2B.js} +10 -9
  107. package/dist/{index-Bm0QPucw.js → index-hAKRfE-4.js} +14 -14
  108. package/dist/index-o2Ga_qaX.js +39 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-D0fhMMPG.js} +128 -128
  110. package/dist/{loading-CSXr0Yqz.js → loading-C686AMVG.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CANlWUWW.js} +1 -1
  112. package/dist/member-import-UzJ6ByIS.js +188 -0
  113. package/dist/membership-DCVzFaFy.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-DuazwoX7.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-B2HFiV0g.js} +1 -1
  116. package/dist/objectid-Bq-oVMdP.js +145 -0
  117. package/dist/onboarding-BxvNxz-9.js +131 -0
  118. package/dist/onboardingSetup-CcvKmyx8.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C39O5j42.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-HYt-2nxt.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-3xNIYM7z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-D37Z_b0m.js} +6 -6
  125. package/dist/timezone-JwnQgpaU.js +20 -0
  126. package/dist/transaction.fn-C5vswLI_.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-Bc6s2cvq.js} +17 -17
  128. package/dist/useMarketingMaterialActions-DMGyAXcy.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-DLOOwiiY.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-CTIGugVF.js} +1 -1
  131. package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-Dpic36zz.js} +287 -287
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-CT9_1SFr.js} +786 -786
  133. package/dist/{zod-CgigfJar.js → zod-CGVrMcDl.js} +1 -1
  134. package/package.json +10 -6
  135. package/dist/Broadcast-C9akM-TB.js +0 -266
  136. package/dist/Card-DRkIYs0M.js +0 -910
  137. package/dist/Credit-V5YA_hGx.js +0 -260
  138. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  139. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  140. package/dist/Experience-WTWy5yY6.js +0 -259
  141. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  142. package/dist/Game-BwOfTCW5.js +0 -330
  143. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  144. package/dist/MainLayout-Du5kZOtA.js +0 -41
  145. package/dist/Member-DUV_vbPI.js +0 -280
  146. package/dist/MemberList-Ye4nOk-i.js +0 -1601
  147. package/dist/Mission-BBmCGpt8.js +0 -334
  148. package/dist/Point-Bzg6hi6o.js +0 -262
  149. package/dist/Promotion-BMXIp_ef.js +0 -397
  150. package/dist/Review-CYNPPxYU.js +0 -1141
  151. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  152. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  153. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
  154. package/dist/Setting-jHAjccod.js +0 -2047
  155. package/dist/Store-Cu-hKmVa.js +0 -1996
  156. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  157. package/dist/Transaction-D7DO3dKQ.js +0 -39
  158. package/dist/Voucher-Cq-n1CaC.js +0 -421
  159. package/dist/campaign--MjoY1Mn.js +0 -219
  160. package/dist/campaign-DHBuP4UA.js +0 -277
  161. package/dist/export-CjB7qxZ9.js +0 -97
  162. package/dist/index-BIAjmMga.js +0 -85
  163. package/dist/index-Bv4MBLQ5.js +0 -52
  164. package/dist/index-hbyCVNa7.js +0 -30289
  165. package/dist/membership-CfredTm3.js +0 -255
  166. package/dist/objectid-Dg4ZodlT.js +0 -145
  167. package/dist/useMarketingMaterialActions-B-Jlw2Z9.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-BcYh6_51.js";
3
- import { c as j } from "./index-HXiYGO4_.js";
4
- import { e as W, F as Y } from "./index-CsoBDon4.js";
5
- import { C as ee } from "./membership-CfredTm3.js";
6
- import { Z as V } from "./zod-CgigfJar.js";
7
- import { _ as te } from "./SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js";
8
- import { u as le } from "./business-C7EF6cKC.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-Dpic36zz.js";
3
+ import { c as j } from "./index-BUP4aHq8.js";
4
+ import { g as W, F as Y } from "./index-BTkxgos0.js";
5
+ import { C as ee } from "./membership-DCVzFaFy.js";
6
+ import { Z as x } from "./zod-CGVrMcDl.js";
7
+ import { S as te } from "./app-BEYzXWZO.js";
8
+ import { u as le } from "./business-DH7djUl8.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js";
11
- import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js";
12
- import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js";
13
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js";
14
- import { i as re } from "./helper-BSgrCJRv.js";
10
+ import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js";
11
+ import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js";
12
+ import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js";
13
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js";
14
+ import { i as re } from "./helper-BCkTvF4m.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 : E.property) != null && _.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 : E.targetLocation) == null ? void 0 : _.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
  }