@feedmepos/mf-connect 0.1.124-dev → 0.1.124-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/{App-C7BnLHSt.js → App-DMh2xABv.js} +493 -502
  2. package/dist/{Bin-Bq7yY0I2.js → Bin-C_pkPgIo.js} +8 -8
  3. package/dist/{Broadcast-D52rPmVl.js → Broadcast-6ZJzdY0b.js} +21 -22
  4. package/dist/{CampaignAnalytic-DpiWtzIp.js → CampaignAnalytic-CLd5ecQe.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js} +9 -8
  6. package/dist/{Card-BQc7vud2.js → Card-CkS8F43U.js} +22 -22
  7. package/dist/{Collections--VzkneGp.js → Collections-BA9I-dDz.js} +185 -197
  8. package/dist/{Credit-DhfAcw-p.js → Credit-CXm0A-qe.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js +3493 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js → EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js} +16 -16
  12. package/dist/{Experience-CUwbHfo5.js → Experience-Bq4ykqTJ.js} +31 -32
  13. package/dist/{FileSaver.min-DvZpiwMd.js → FileSaver.min-BtBxrIBi.js} +1 -1
  14. package/dist/{Game-CI5-y0JJ.js → Game-DpLFmP-G.js} +18 -19
  15. package/dist/{GiftCardSetup-CGacqQ0j.js → GiftCardSetup-BqOqEUim.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js} +7 -7
  17. package/dist/{Goals-fqJY9iMx.js → Goals-DMlNeiUc.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js → ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js} +1 -1
  19. package/dist/{Index-CT1Gnjsv.js → Index-Cw07jj0k.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js → LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js} +1 -1
  22. package/dist/{LoyaltyDashboard-IJIDEBWf.js → LoyaltyDashboard-DzSiK6M7.js} +15 -15
  23. package/dist/{MainLayout-BMghr-wf.js → MainLayout-1EF680_j.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js → MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js} +3 -3
  25. package/dist/{Marketing-Ckr9cp3w.js → Marketing-T-epFsvG.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-BIZnE8CY.js → MarketingMaterialEdit-CVhPfyEp.js} +211 -214
  27. package/dist/{Member-d1nPxr74.js → Member-BUZOPyQR.js} +7 -7
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js +1308 -0
  29. package/dist/{MemberImportHistory-CxX9iYhV.js → MemberImportHistory-DGz9i6L7.js} +7 -7
  30. package/dist/{MemberList-DUzYpxhj.js → MemberList-CNdSrzBa.js} +105 -103
  31. package/dist/{MemberTransactions-BFM3ybeo.js → MemberTransactions-CdQMuQsd.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js → MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js} +1 -1
  34. package/dist/{Mission-De9BF5wb.js → Mission-CYxgMBPt.js} +21 -22
  35. package/dist/{Overview-Pmxqv6qp.js → Overview-DSm8AfDB.js} +20 -20
  36. package/dist/{Overview-DeHo3gef.js → Overview-qZ1KKw9D.js} +144 -145
  37. package/dist/{Point-DE_Cc85N.js → Point-BGlbT9OK.js} +21 -22
  38. package/dist/{Promotion-cZDzgho4.js → Promotion-CtlrUFa8.js} +131 -137
  39. package/dist/{Queue-DmDbrtTk.js → Queue-Dc_z9MKc.js} +45 -45
  40. package/dist/{Record-uxNNOvmK.js → Record-DVKrhFwJ.js} +9 -9
  41. package/dist/{Review-CIIn_Bdx.js → Review-Bh8Tw_QU.js} +2 -2
  42. package/dist/ReviewFacebookCallback-ZZ0pxplM.js +238 -0
  43. package/dist/{ReviewGoogleCallback-B7kmGwb_.js → ReviewGoogleCallback-CsSCz_C5.js} +5 -5
  44. package/dist/{Reward-Bj1snFu8.js → Reward-DY1Q3m1w.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js → RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js +1884 -0
  47. package/dist/{Segment-BgJgWa6C.js → Segment-D6LchJFl.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js} +4 -4
  50. package/dist/Setting-UkdSKiUb.js +578 -0
  51. package/dist/{SettingAdvertisements-vdUtIXwC.js → SettingAdvertisements-DK97gcus.js} +12 -12
  52. package/dist/Settings-BFcVswDS.js +179 -0
  53. package/dist/{Store-DgltT0RA.js → Store-2VVStL5_.js} +28 -28
  54. package/dist/{StoreRewards-BXH_5cYL.js → StoreRewards-f3Pyb9hu.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js +1297 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CCWNzg4p.js +142 -0
  57. package/dist/{Tier-CqfHGUX0.js → Tier-D4Of9P17.js} +687 -2575
  58. package/dist/{Title-B5VnUNiS.js → Title-Cg6X9UkB.js} +94 -95
  59. package/dist/{Transaction-BZh1Q9Lj.js → Transaction-LJbjQnj_.js} +2 -2
  60. package/dist/Upselling-B-VwbtjT.js +214 -0
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js} +26 -26
  62. package/dist/{Voucher-CZJdV2Ok.js → Voucher-BJG6VKXt.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js} +12 -12
  64. package/dist/{WhatsappAccount-DsRilNC5.js → WhatsappAccount-Dc1fJWWj.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js} +1 -1
  66. package/dist/{WhatsappBot-CpzMaTss.js → WhatsappBot-Coq1WP96.js} +6 -6
  67. package/dist/{WhatsappBotLogs-DRF8VufQ.js → WhatsappBotLogs-EH9PQVn9.js} +6 -6
  68. package/dist/{WhatsappBotSettings-DSUPGC-p.js → WhatsappBotSettings-fNRFecJX.js} +4 -4
  69. package/dist/{WhatsappLayout-BCWYcQmD.js → WhatsappLayout-x9Ovpu6e.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js → ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js} +2 -2
  72. package/dist/{app-BQeODViN.js → app-BMFxxLUm.js} +15017 -14861
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-kSFLDDoC.js → base.export-LmQ51u5f.js} +2 -2
  75. package/dist/{business-EP-Do3Ew.js → business-DZWViiMC.js} +1 -1
  76. package/dist/{campaign-BjnUPowX.js → campaign-C9xvGyrL.js} +28 -34
  77. package/dist/{campaign-C8GgaCub.js → campaign-DZDGbR4W.js} +94 -121
  78. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  79. package/dist/{campaign.fn-DQ--gL4B.js → campaign.fn-OVkj0QLu.js} +87 -87
  80. package/dist/{collection.fn-BhXecwh5.js → collection.fn-DrNrla0B.js} +2 -2
  81. package/dist/{currency-CGMNh1Q_.js → currency-BZv2gSlF.js} +1 -1
  82. package/dist/{effect-Bc6oGIWd.js → effect-CvumfBMY.js} +1 -1
  83. package/dist/{email-addresses-B3KWfUMk.js → email-addresses-79tPeI4j.js} +25 -25
  84. package/dist/{feature-flag-HhjvSuDm.js → feature-flag-CYXnrECh.js} +185 -171
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-D1BYvcED.js → helper-DFjsyjri.js} +1 -1
  87. package/dist/{index-GQv1_jaJ.js → index-B_8PAyia.js} +2 -2
  88. package/dist/{index-C-46QHFh.js → index-Ba1t5vQv.js} +234 -380
  89. package/dist/{index-Yw4M7v7m.js → index-BiPRZRyE.js} +2614 -2699
  90. package/dist/{index-BkevK_Hp.js → index-Bnane9cm.js} +1 -1
  91. package/dist/{index-VLFerh-X.js → index-Bt-n8QuD.js} +10 -10
  92. package/dist/{index-VyoufKYY.js → index-C-pVo6PI.js} +1 -1
  93. package/dist/{index-CsYTLmPa.js → index-C43KoLej.js} +4 -4
  94. package/dist/{index-DeqpfWLa.js → index-C5bC2n8X.js} +3 -3
  95. package/dist/{index-Br2SLVsn.js → index-C6Rx7pjc.js} +251 -608
  96. package/dist/{index-BIBcfAw5.js → index-C6ZTa-eq.js} +1 -1
  97. package/dist/{index-gMrtUwSD.js → index-CA7oIW_T.js} +316 -316
  98. package/dist/{index-Bunp1bt_.js → index-CAWnce4u.js} +1 -1
  99. package/dist/{index-cPPWotJe.js → index-CBd91xYU.js} +10 -10
  100. package/dist/{index-C3MK8Twg.js → index-CNzQ3FLi.js} +1 -1
  101. package/dist/{index-Ptcqv0W6.js → index-CW4rNV1_.js} +2 -2
  102. package/dist/{index-DOSuhtdE.js → index-CcCiEG6N.js} +1 -1
  103. package/dist/{index-DiCgGQoC.js → index-DWZzsJHU.js} +2 -2
  104. package/dist/{index-oIo5Cful.js → index-DZrX13oF.js} +462 -533
  105. package/dist/{index-D2TnjKPP.js → index-MhAbTpBy.js} +23 -23
  106. package/dist/{index-DCC3pLug.js → index-_-nCOZ1D.js} +6 -19
  107. package/dist/{index.esm2017-DUZpLdEB.js → index.esm2017-DtTjnHHc.js} +57 -57
  108. package/dist/{loading-DhpcQgdj.js → loading-DkqEFbrR.js} +1 -1
  109. package/dist/{lodash-r4AR7GJC.js → lodash-BxU_5gPB.js} +1 -1
  110. package/dist/{member-import-CogEef9H.js → member-import-B3NBqSF6.js} +1 -1
  111. package/dist/{membership-BQFkjRjs.js → membership-Dr5BxoL-.js} +2 -2
  112. package/dist/{money-Ifqd4pyC.js → money-D58xuACG.js} +1 -1
  113. package/dist/{number-C9Tw_Ncm.js → number-C9CiD5ci.js} +1 -1
  114. package/dist/objectid-CgTtbB6Q.js +145 -0
  115. package/dist/{onboarding-D4dm_rxU.js → onboarding-BssUSfGQ.js} +36 -36
  116. package/dist/{onboardingSetup-DtNZUoRr.js → onboardingSetup-Dc_lD-K8.js} +2 -2
  117. package/dist/{plugins-DGI9Fkiu.js → plugins-D7Xjefvk.js} +3 -3
  118. package/dist/{reward-DTtejZqM.js → reward-CACqYkQp.js} +1 -1
  119. package/dist/{rule-C4N3ce3c.js → rule-BRaTrwKz.js} +492 -572
  120. package/dist/rule-builder-DZOASGFD.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-DdeVPIBt.js +275 -0
  123. package/dist/{timezone-5rYhX7XZ.js → timezone-CgVEOC5i.js} +1 -1
  124. package/dist/{transaction.fn-Ba_U7HdT.js → transaction.fn-C64l_ja_.js} +2 -2
  125. package/dist/{trigger-B8I1aO6Y.js → trigger-d2RIqXLt.js} +9 -9
  126. package/dist/{useMarketingMaterialActions-CTOFHmlL.js → useMarketingMaterialActions-Drf2MY9h.js} +4 -4
  127. package/dist/{usePagination-3wAPVCOp.js → usePagination-IUw34YLE.js} +1 -1
  128. package/dist/{user-Ds4DW_-Y.js → user-ClGyYHyS.js} +1 -1
  129. package/dist/vue-i18n-Cby9s0nj.js +2365 -0
  130. package/dist/{xlsx-xlOCvuAq.js → xlsx-HvtVSofi.js} +166 -166
  131. package/dist/{zod-GVNjvrpT.js → zod-IPdjFU_b.js} +1 -1
  132. package/package.json +2 -6
  133. package/dist/AuditLogs-BPKQdFga.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js +0 -4439
  135. package/dist/Grab-CAx1cCE4.js +0 -301
  136. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +0 -1281
  137. package/dist/ReviewFacebookCallback-CO6FxHzc.js +0 -225
  138. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js +0 -1923
  139. package/dist/Setting-DpEI72mW.js +0 -574
  140. package/dist/Settings-C6yJ1WEB.js +0 -286
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +0 -1319
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js +0 -7007
  143. package/dist/Upselling-Cf24ub-9.js +0 -1055
  144. package/dist/duplicateCampaign-icqF8Na9.js +0 -51
  145. package/dist/google-BQK68wbe.js +0 -5
  146. package/dist/objectid-D7dqM1a3.js +0 -145
  147. package/dist/template-YhWRyNGp.js +0 -227
  148. package/dist/vue-i18n-Bqlt_-jA.js +0 -2365
@@ -0,0 +1,275 @@
1
+ import { p as M, i as T } from "./plugins-D7Xjefvk.js";
2
+ import { _ as I } from "./lodash-BxU_5gPB.js";
3
+ import { defineComponent as N, openBlock as u, createBlock as C, resolveDynamicComponent as j, unref as o, ref as Y, computed as W, onMounted as G, resolveComponent as _, withCtx as f, createElementVNode as s, createElementBlock as h, createVNode as m, normalizeClass as w, createTextVNode as k, toDisplayString as g, Fragment as O, renderList as A, createCommentVNode as F } from "vue";
4
+ import { _ as H } from "./remy-icon-BhUGu2NI.js";
5
+ import { u as q } from "./campaign-C9xvGyrL.js";
6
+ import { useDialog as J } from "@feedmepos/ui-library";
7
+ import { F as U } from "./index-C6Rx7pjc.js";
8
+ import { C as K } from "./campaign-DZDGbR4W.js";
9
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
10
+ import { u as X } from "./vue-i18n-Cby9s0nj.js";
11
+ import { u as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js";
12
+ import { u as ee } from "./remy-Qz_pNsUS.js";
13
+ function Le(e) {
14
+ return M.confirm(
15
+ T.global.t("connect.common.duplicate.confirmMessage", { name: e }),
16
+ T.global.t("connect.common.duplicate.title"),
17
+ T.global.t("connect.common.duplicate.proceed")
18
+ );
19
+ }
20
+ const te = ["LOYALTY", "NO_REWARD"], oe = {
21
+ GAME: [(e) => {
22
+ var t;
23
+ return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
24
+ }],
25
+ MISSION: [
26
+ (e) => e == null ? void 0 : e.rewards,
27
+ (e) => {
28
+ var t;
29
+ return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
30
+ }
31
+ ],
32
+ REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
33
+ };
34
+ function ne(e, t) {
35
+ e && e.forEach((n) => {
36
+ t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
37
+ });
38
+ }
39
+ function le(e) {
40
+ e._id = void 0;
41
+ }
42
+ function ie(e, t) {
43
+ e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, t || (e.campaign.collectible = void 0));
44
+ }
45
+ function se(e, t) {
46
+ e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
47
+ }
48
+ function ae(e) {
49
+ const t = oe[(e == null ? void 0 : e.type) ?? ""];
50
+ t && t.forEach((n) => {
51
+ ne(n(e), te);
52
+ });
53
+ }
54
+ function Pe(e, t = {}) {
55
+ const n = I.cloneDeep(e), { keepCollectible: c = !1 } = t, d = n.campaign;
56
+ return le(n), ie(n, c), se(n, c), ae(d), n;
57
+ }
58
+ const ce = /* @__PURE__ */ N({
59
+ __name: "CampaignChip",
60
+ props: {
61
+ type: { type: String, required: !0 }
62
+ },
63
+ setup(e) {
64
+ const n = K[e.type];
65
+ return (c, d) => (u(), C(j(o(n).chip())));
66
+ }
67
+ }), re = { class: "flex flex-nowrap gap-x-2 grow h-full" }, pe = {
68
+ key: 0,
69
+ class: "p-8 w-1/4"
70
+ }, me = { class: "flex flex-col grow p-24" }, ue = { class: "space-y-4" }, de = { class: "fm-typo-en-title-sm-800" }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ge = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, _e = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ye = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex gap-4 items-end justify-end py-8" }, xe = { class: "flex items-center gap-8" }, De = /* @__PURE__ */ N({
71
+ __name: "TemplateDialog",
72
+ props: {
73
+ campaignType: {
74
+ type: String,
75
+ default: () => {
76
+ }
77
+ },
78
+ onOk: {
79
+ type: Function,
80
+ required: !0
81
+ }
82
+ },
83
+ setup(e) {
84
+ const { t } = X(), { getLocaleText: n } = Z(), c = J(), d = q(), L = ee(), r = e, l = Y({
85
+ intention: null,
86
+ template: null
87
+ }), R = W(() => {
88
+ const p = (d.templates ?? []).filter(
89
+ () => !0
90
+ //t.intention && t.intention.length > 0
91
+ );
92
+ return r.campaignType ? p.filter(
93
+ (a) => {
94
+ var v, y;
95
+ return ((y = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : y.type) === r.campaignType;
96
+ }
97
+ ) : l.value.intention === null ? I.sampleSize(p, 7) : p.filter(
98
+ (a) => a.intention.includes(l.value.intention)
99
+ );
100
+ });
101
+ G(async () => {
102
+ await d.readTemplates();
103
+ });
104
+ function P() {
105
+ r.onOk(void 0), c.close();
106
+ }
107
+ function V() {
108
+ const p = [t("connect.templateDialog.remyPrompt")];
109
+ r.campaignType && p.push(
110
+ t("connect.templateDialog.remyCampaignType", {
111
+ type: t(`connect.templateDialog.campaignType.${r.campaignType}`)
112
+ })
113
+ ), l.value.intention && p.push(
114
+ t("connect.templateDialog.remyGoal", {
115
+ goal: t(`connect.templateDialog.intention.${l.value.intention}`)
116
+ })
117
+ ), c.close(), L.activate({
118
+ prompt: p.join(" "),
119
+ forceNewConversation: !0
120
+ });
121
+ }
122
+ function $() {
123
+ const p = l.value.template;
124
+ r.onOk(d.templates.find((a) => a._id === p)), c.close();
125
+ }
126
+ return (p, a) => {
127
+ const v = _("FmChip"), y = _("FmListItem"), B = _("FmList"), E = _("FmCard"), b = _("FmButton"), z = _("FmSpacer");
128
+ return u(), C(E, { class: "h-[534px] max-w-6xl" }, {
129
+ default: f(() => [
130
+ s("div", re, [
131
+ r.campaignType ? F("", !0) : (u(), h("div", pe, [
132
+ m(B, null, {
133
+ default: f(() => [
134
+ m(y, {
135
+ class: w([{
136
+ "bg-fm-color-system-warning-100": o(l).intention === null
137
+ }, "rounded-sm"]),
138
+ onClick: a[0] || (a[0] = (i) => {
139
+ o(l).intention = null, o(l).template = null;
140
+ })
141
+ }, {
142
+ append: f(() => [
143
+ m(v, {
144
+ label: o(t)("connect.templateDialog.hot"),
145
+ variant: "critical"
146
+ }, null, 8, ["label"])
147
+ ]),
148
+ default: f(() => [
149
+ k(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
150
+ ]),
151
+ _: 1
152
+ }, 8, ["class"]),
153
+ (u(!0), h(O, null, A(o(U).options, (i, D) => (u(), C(y, {
154
+ key: D,
155
+ class: w(["rounded-sm", {
156
+ "bg-fm-color-system-warning-100": o(l).intention === i
157
+ }]),
158
+ style: { padding: "8px 16px" },
159
+ onClick: (x) => {
160
+ o(l).intention = i, o(l).template = null;
161
+ }
162
+ }, {
163
+ default: f(() => [
164
+ k(g(o(t)(`connect.templateDialog.intention.${i}`)), 1)
165
+ ]),
166
+ _: 2
167
+ }, 1032, ["class", "onClick"]))), 128))
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])),
172
+ s("div", me, [
173
+ s("div", ue, [
174
+ s("div", de, g(r.campaignType ? o(t)(`connect.templateDialog.campaignType.${r.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
175
+ s("div", fe, g(o(t)("connect.templateDialog.subtitle")), 1)
176
+ ]),
177
+ s("div", ge, [
178
+ m(Q, { json: o(R) }, null, 8, ["json"]),
179
+ s("div", _e, [
180
+ (u(!0), h(O, null, A(o(R), (i, D) => (u(), C(E, {
181
+ key: D,
182
+ variant: "outlined",
183
+ class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
184
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(l).template === i._id.toString()
185
+ }]),
186
+ onClick: (x) => o(l).template = i._id.toString()
187
+ }, {
188
+ default: f(() => {
189
+ var x, S;
190
+ return [
191
+ s("div", ye, [
192
+ m(ce, {
193
+ type: (S = (x = i.defaultValue) == null ? void 0 : x.campaign) == null ? void 0 : S.type
194
+ }, null, 8, ["type"])
195
+ ]),
196
+ s("div", Ce, g(o(n)(i.name_locale, i.name)), 1),
197
+ s("p", ve, g(o(n)(i.description_locale, i.description ?? "")), 1)
198
+ ];
199
+ }),
200
+ _: 2
201
+ }, 1032, ["class", "onClick"]))), 128))
202
+ ])
203
+ ]),
204
+ s("div", be, [
205
+ m(b, {
206
+ class: "sm:w-full xs:w-full",
207
+ variant: "plain",
208
+ label: o(t)("connect.templateDialog.customCampaign"),
209
+ size: "md",
210
+ onClick: P
211
+ }, null, 8, ["label"]),
212
+ r.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
213
+ r.campaignType
214
+ ) ? (u(), C(b, {
215
+ key: 0,
216
+ class: "sm:w-full xs:w-full",
217
+ variant: "tertiary",
218
+ label: o(t)("connect.templateDialog.askRemy"),
219
+ size: "md",
220
+ onClick: V
221
+ }, {
222
+ default: f(() => [
223
+ s("span", xe, [
224
+ a[2] || (a[2] = s("img", {
225
+ src: H,
226
+ alt: "",
227
+ class: "w-[20px] h-[20px]"
228
+ }, null, -1)),
229
+ k(" " + g(o(t)("connect.templateDialog.askRemy")), 1)
230
+ ])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])) : F("", !0),
234
+ m(z, { class: "sm:hidden xs:hidden" }),
235
+ m(b, {
236
+ class: "sm:w-full xs:w-full",
237
+ variant: "tertiary",
238
+ label: o(t)("connect.templateDialog.cancel"),
239
+ size: "md",
240
+ onClick: a[1] || (a[1] = (i) => o(c).close())
241
+ }, null, 8, ["label"]),
242
+ m(b, {
243
+ class: "sm:w-full xs:w-full",
244
+ variant: "primary",
245
+ label: o(t)("connect.templateDialog.start"),
246
+ size: "md",
247
+ disabled: !o(l).template,
248
+ onClick: $
249
+ }, null, 8, ["label", "disabled"])
250
+ ])
251
+ ])
252
+ ])
253
+ ]),
254
+ _: 1
255
+ });
256
+ };
257
+ }
258
+ }), Ve = (e, t) => ({
259
+ open: async (n) => {
260
+ t.open({
261
+ title: "",
262
+ dialogComponent: De,
263
+ dialogComponentProps: {
264
+ campaignType: e,
265
+ onOk: async (c) => (console.debug(c, "selected template"), await n(c))
266
+ },
267
+ overlay: !0
268
+ });
269
+ }
270
+ });
271
+ export {
272
+ Le as c,
273
+ Pe as p,
274
+ Ve as u
275
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-cPPWotJe.js";
1
+ import { e as a } from "./index-CBd91xYU.js";
2
2
  const n = {
3
3
  [a.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
4
4
  [a.F_COUNTRY.enum.SG]: "Asia/Singapore",
@@ -1,5 +1,5 @@
1
- import "./index-oIo5Cful.js";
2
- import { s as u } from "./index-CsYTLmPa.js";
1
+ import "./index-DZrX13oF.js";
2
+ import { s as u } from "./index-C43KoLej.js";
3
3
  function i(l) {
4
4
  var c, f;
5
5
  const e = (c = l.metadata) == null ? void 0 : c.operator, t = typeof e == "string" ? e : [e == null ? void 0 : e.name, e == null ? void 0 : e.phoneNumber, e == null ? void 0 : e.email].filter(Boolean).join(" / ") || (e == null ? void 0 : e.uid);
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
2
- import "./index-Yw4M7v7m.js";
3
- import { R as i } from "./index-Br2SLVsn.js";
4
- import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js";
5
- import { l as e, C as d } from "./index-C-46QHFh.js";
6
- import { i as n } from "./plugins-DGI9Fkiu.js";
2
+ import "./index-BiPRZRyE.js";
3
+ import { R as i } from "./rule-builder-DZOASGFD.js";
4
+ import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js";
5
+ import { c as e, C as d } from "./index-Ba1t5vQv.js";
6
+ import { i as n } from "./plugins-D7Xjefvk.js";
7
7
  const L = /* @__PURE__ */ m({
8
8
  __name: "BillRuleGroup",
9
9
  props: {
@@ -62,7 +62,7 @@ const L = /* @__PURE__ */ m({
62
62
  }, null, 8, ["model-value"]);
63
63
  };
64
64
  }
65
- }), R = {
65
+ }), _ = {
66
66
  [e.enum.BILL_COMPLETED]: {
67
67
  get name() {
68
68
  return n.global.t(
@@ -201,13 +201,13 @@ const L = /* @__PURE__ */ m({
201
201
  const o = d[t];
202
202
  return [
203
203
  t,
204
- (o == null ? void 0 : o.map((a) => R[a]).filter((a) => !a.hidden)) ?? []
204
+ (o == null ? void 0 : o.map((a) => _[a]).filter((a) => !a.hidden)) ?? []
205
205
  ];
206
206
  })
207
207
  );
208
208
  export {
209
209
  C as T,
210
210
  L as _,
211
- O as a,
212
- R as b
211
+ _ as a,
212
+ O as b
213
213
  };
@@ -1,8 +1,8 @@
1
- import { u as b } from "./vue-i18n-Bqlt_-jA.js";
1
+ import { u as b } from "./vue-i18n-Cby9s0nj.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-DGI9Fkiu.js";
4
- import { S as o, g as c, d as M } from "./index-cPPWotJe.js";
5
- import { u as y } from "./loading-DhpcQgdj.js";
3
+ import { c as k, p as I } from "./plugins-D7Xjefvk.js";
4
+ import { S as o, g as c, b as M } from "./index-CBd91xYU.js";
5
+ import { u as y } from "./loading-DkqEFbrR.js";
6
6
  const l = (e) => M(`businesses/${e}/marketing-materials`), v = {
7
7
  async createMarketingMaterial(e) {
8
8
  const t = o.getBusinessId();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
2
2
  import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
3
- import { l as E } from "./lodash-r4AR7GJC.js";
3
+ import { l as E } from "./lodash-BxU_5gPB.js";
4
4
  const R = { class: "" }, A = {
5
5
  key: 0,
6
6
  class: "w-full flex flex-col gap-16 items-center py-16"
@@ -1,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { c as f } from "./plugins-DGI9Fkiu.js";
2
+ import { c as f } from "./plugins-D7Xjefvk.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;