@feedmepos/mf-connect 0.1.117-dev → 0.1.118-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 (146) hide show
  1. package/dist/{App-BpcsgH7K.js → App-BHcTqLff.js} +89 -97
  2. package/dist/{Bin-Cm0wjQeR.js → Bin-DWhXJmHo.js} +8 -8
  3. package/dist/{Broadcast-BoJaHqnO.js → Broadcast-Ct1DL8Pd.js} +21 -22
  4. package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
  6. package/dist/{Card-BfkMcFaG.js → Card-B7DwrAPH.js} +23 -23
  7. package/dist/{Collections-RXmxQbII.js → Collections-BJw4JJq_.js} +185 -197
  8. package/dist/{Credit-CsRPM1jv.js → Credit-BteIGXkp.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +3496 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +30 -30
  12. package/dist/{Experience-BC8Pj-v9.js → Experience-C_VQVfJX.js} +31 -32
  13. package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-CMiQUZQE.js} +1 -1
  14. package/dist/{Game-DJXNHFBs.js → Game-BiHMrMBF.js} +18 -19
  15. package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-DtJIm6oI.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
  17. package/dist/{Goals-DSZwKpds.js → Goals-B7VjLMDT.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
  19. package/dist/{Index-Cbi0bquE.js → Index-D_DIHKZG.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
  22. package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
  23. package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-CfYgoXLS.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +3 -3
  25. package/dist/{Marketing-B7cZGsO-.js → Marketing-B6TCrwaR.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-Bu3a9NGj.js} +211 -214
  27. package/dist/{Member-BGTrRVdq.js → Member-X51KrYXV.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +48 -40
  29. package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-CHd9fx7E.js} +7 -7
  30. package/dist/{MemberList-EjY5dgwt.js → MemberList-D4L3bSlw.js} +105 -103
  31. package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CEgjfhnX.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
  34. package/dist/{Mission-BFHYb4aT.js → Mission-BEVtvY0-.js} +21 -22
  35. package/dist/{Overview-d5U37aot.js → Overview-4QRkldza.js} +144 -145
  36. package/dist/{Overview-BVNyQxFL.js → Overview-DVoXXZ16.js} +21 -21
  37. package/dist/{Point-CXkqH02Z.js → Point-BJmebaL9.js} +21 -22
  38. package/dist/{Promotion-DdxNvlOO.js → Promotion-DWZZBofu.js} +131 -137
  39. package/dist/{Queue-C96oNKyP.js → Queue-DLdsyhCT.js} +46 -46
  40. package/dist/{Record-Bj2e2Y4i.js → Record-QOD3XELf.js} +9 -9
  41. package/dist/{Review-CJK5S1oI.js → Review-CKmhyuqj.js} +2 -2
  42. package/dist/ReviewFacebookCallback-C6DlaJ_j.js +238 -0
  43. package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
  44. package/dist/{Reward-Dh2YI0Xb.js → Reward-DftoZfPN.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +14 -14
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +1884 -0
  47. package/dist/{Segment-FYvtCkqH.js → Segment-URdB0lnl.js} +307 -304
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +15 -15
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
  50. package/dist/{Setting-CUAWjCqa.js → Setting-BDIHH2Wk.js} +148 -159
  51. package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
  52. package/dist/Settings-9gaegvYJ.js +179 -0
  53. package/dist/{Store-BAXwiyvx.js → Store-CV0kYncl.js} +29 -29
  54. package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-30kSkAZ_.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +1265 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +142 -0
  57. package/dist/{Tier-BmAOzRHL.js → Tier-DiQSC3iv.js} +688 -2576
  58. package/dist/{Title-DMxiUg30.js → Title-DixxpjAg.js} +95 -96
  59. package/dist/{Transaction-CF6hXEpN.js → Transaction-DQK4LUGD.js} +2 -2
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +26 -26
  61. package/dist/{Voucher-DrtITxq-.js → Voucher-CSVlk_Hr.js} +19 -19
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +12 -12
  63. package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-CQYbv2Ew.js} +66 -64
  64. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js} +1 -1
  65. package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DdO9Bfvh.js} +324 -322
  66. package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-CjjWJGND.js} +11 -11
  67. package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-DYGx-kRr.js} +287 -288
  68. package/dist/{WhatsappLayout-DeQTPuF6.js → WhatsappLayout-B6k_79Kl.js} +3 -3
  69. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
  70. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
  71. package/dist/{app-BjdLqYQq.js → app-CqQeNnGq.js} +3382 -4110
  72. package/dist/app.js +3 -4
  73. package/dist/{base.export-B68z5BF6.js → base.export-Dls5LQeu.js} +2 -2
  74. package/dist/{business-D9fgkHxb.js → business-gvLSQklz.js} +1 -1
  75. package/dist/{campaign-Dw_ujovr.js → campaign-BqazvOUj.js} +94 -121
  76. package/dist/{campaign-eMaPX8r6.js → campaign-Cd6GmA4U.js} +25 -31
  77. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  78. package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-C0oMb1fs.js} +99 -99
  79. package/dist/{collection.fn-CCOWtB-c.js → collection.fn-CERMsFPh.js} +2 -2
  80. package/dist/{currency-CTLKReFC.js → currency-IkiKiNg1.js} +1 -1
  81. package/dist/{effect-CTI1ZH57.js → effect-j_T62HBN.js} +1 -1
  82. package/dist/{email-addresses-B74e3bnB.js → email-addresses-CN1kPlEj.js} +2 -2
  83. package/dist/{feature-flag-DVdEaChJ.js → feature-flag-DDfyOLsv.js} +88 -88
  84. package/dist/google-C3S8u0mT.js +4 -0
  85. package/dist/{helper-as9K-piK.js → helper-DVUe13eh.js} +1 -1
  86. package/dist/{index-BW7FoVEA.js → index-9RBtEPPj.js} +1 -1
  87. package/dist/{index-Czg-2Ni0.js → index-BmIfGArh.js} +3 -3
  88. package/dist/{index-DKI8401o.js → index-BvkqHehI.js} +7 -7
  89. package/dist/{index-B0h0iYWP.js → index-BvoOJdfc.js} +2 -2
  90. package/dist/{index-CWLOcQ6j.js → index-C-IajuP1.js} +9 -9
  91. package/dist/{index-3LjKJhQa.js → index-COuLtOaw.js} +1 -1
  92. package/dist/{index-QHqcSN2q.js → index-CPyK4a5J.js} +4 -4
  93. package/dist/{index-BbVbqe4Y.js → index-CWGbeg5X.js} +6 -19
  94. package/dist/{index-CHU3UePP.js → index-C_SaKemI.js} +1 -1
  95. package/dist/{index-BEKMTiFb.js → index-Cjy0SXCn.js} +197 -197
  96. package/dist/{index-C5V6u2Qd.js → index-DALsfLV7.js} +2613 -2699
  97. package/dist/{index-CQxkDpX0.js → index-DMiaWY0s.js} +581 -682
  98. package/dist/{index-B_wRpO02.js → index-D_1pnadB.js} +15 -29
  99. package/dist/{index-TAoQpeLQ.js → index-DzbVgUEP.js} +1 -1
  100. package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
  101. package/dist/{index-wsCCqwdr.js → index-UJHdDEG1.js} +2 -2
  102. package/dist/{index-DcZiikOH.js → index-ep_Kxxid.js} +2 -2
  103. package/dist/{index-BhTrG89b.js → index-fNYUguDQ.js} +232 -389
  104. package/dist/{index-Ba719MYq.js → index-jS16KX9p.js} +1 -1
  105. package/dist/{index-Ckz6u3ac.js → index-k7FFxt_M.js} +2 -2
  106. package/dist/{index-8mBfDn3M.js → index-lzQ6ehOk.js} +251 -608
  107. package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-vJKhLfdu.js} +177 -177
  108. package/dist/{loading-x6IScY4K.js → loading-jZV2Dm--.js} +1 -1
  109. package/dist/{lodash-nwnDizYo.js → lodash-C2pLek0l.js} +1 -1
  110. package/dist/{member-import-C-b01Tyd.js → member-import-BKI7soRD.js} +1 -1
  111. package/dist/{membership-DfarOMtO.js → membership-smdlFpPr.js} +2 -2
  112. package/dist/{money-CFn-jR4W.js → money-5XyTnYwW.js} +1 -1
  113. package/dist/{number-CSlyDL2x.js → number-DHU9qJJQ.js} +1 -1
  114. package/dist/objectid-jT5g6pGt.js +145 -0
  115. package/dist/{onboarding-DyaFaaF2.js → onboarding-C_5pyGx-.js} +25 -25
  116. package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
  117. package/dist/{plugins-DEHr0UOe.js → plugins-D1Ru-da5.js} +3 -3
  118. package/dist/{reward-Du_Pv-4p.js → reward-BqPl68Xk.js} +1 -1
  119. package/dist/{rule-DfqmQTVK.js → rule-WBrRXwL-.js} +492 -572
  120. package/dist/rule-builder-DAlSbaWh.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-DDquG4Xc.js +236 -0
  123. package/dist/{timezone-_4tabIaK.js → timezone-O4qrCDcK.js} +1 -1
  124. package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-CY_F8Nb8.js} +2 -2
  125. package/dist/{trigger-Dipr6btC.js → trigger-D-vySeIB.js} +8 -8
  126. package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-kA6SLHy_.js} +4 -4
  127. package/dist/{usePagination-D6RZ18zS.js → usePagination-AYE_RJH2.js} +1 -1
  128. package/dist/{user-BCexQj3Q.js → user-DJcMkYXP.js} +1 -1
  129. package/dist/vue-i18n-kXHiDb_1.js +2365 -0
  130. package/dist/{xlsx-BTxt_Jg6.js → xlsx--s3hBdDk.js} +224 -224
  131. package/dist/{zod-T4wMYjWT.js → zod-IpHRbxaJ.js} +1 -1
  132. package/package.json +2 -6
  133. package/dist/AuditLogs-BNnUiVnD.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +0 -4442
  135. package/dist/Grab-DDc7e-AC.js +0 -301
  136. package/dist/ReviewFacebookCallback-ChG7TRy5.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +0 -1923
  138. package/dist/Settings-D2gFPvmW.js +0 -286
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +0 -1319
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +0 -7007
  141. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
  142. package/dist/duplicateCampaign-BcpBfUGL.js +0 -51
  143. package/dist/google-BQK68wbe.js +0 -5
  144. package/dist/objectid-zcT6ESET.js +0 -145
  145. package/dist/template-CcbNF4PF.js +0 -188
  146. package/dist/vue-i18n-DXvyTCZf.js +0 -2365
@@ -0,0 +1,236 @@
1
+ import { p as B, i as w } from "./plugins-D1Ru-da5.js";
2
+ import { _ as O } from "./lodash-C2pLek0l.js";
3
+ import { defineComponent as I, openBlock as d, createBlock as b, resolveDynamicComponent as $, unref as o, ref as z, computed as M, onMounted as Y, resolveComponent as f, withCtx as _, createElementVNode as s, createElementBlock as D, createVNode as r, normalizeClass as T, createTextVNode as F, toDisplayString as g, Fragment as R, renderList as L, createCommentVNode as j } from "vue";
4
+ import { u as W } from "./campaign-Cd6GmA4U.js";
5
+ import { useDialog as q } from "@feedmepos/ui-library";
6
+ import { F as G } from "./index-lzQ6ehOk.js";
7
+ import { C as H } from "./campaign-BqazvOUj.js";
8
+ import { J } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as U } from "./vue-i18n-kXHiDb_1.js";
10
+ import { u as K } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js";
11
+ function Se(e) {
12
+ return B.confirm(
13
+ w.global.t("connect.common.duplicate.confirmMessage", { name: e }),
14
+ w.global.t("connect.common.duplicate.title"),
15
+ w.global.t("connect.common.duplicate.proceed")
16
+ );
17
+ }
18
+ const Q = ["LOYALTY", "NO_REWARD"], X = {
19
+ GAME: [(e) => {
20
+ var t;
21
+ return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
22
+ }],
23
+ MISSION: [
24
+ (e) => e == null ? void 0 : e.rewards,
25
+ (e) => {
26
+ var t;
27
+ return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
28
+ }
29
+ ],
30
+ REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
31
+ };
32
+ function Z(e, t) {
33
+ e && e.forEach((n) => {
34
+ t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
35
+ });
36
+ }
37
+ function ee(e) {
38
+ e._id = void 0;
39
+ }
40
+ function te(e, t) {
41
+ e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, t || (e.campaign.collectible = void 0));
42
+ }
43
+ function oe(e, t) {
44
+ e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
45
+ }
46
+ function ne(e) {
47
+ const t = X[(e == null ? void 0 : e.type) ?? ""];
48
+ t && t.forEach((n) => {
49
+ Z(n(e), Q);
50
+ });
51
+ }
52
+ function Fe(e, t = {}) {
53
+ const n = O.cloneDeep(e), { keepCollectible: c = !1 } = t, p = n.campaign;
54
+ return ee(n), te(n, c), oe(n, c), ne(p), n;
55
+ }
56
+ const le = /* @__PURE__ */ I({
57
+ __name: "CampaignChip",
58
+ props: {
59
+ type: { type: String, required: !0 }
60
+ },
61
+ setup(e) {
62
+ const n = H[e.type];
63
+ return (c, p) => (d(), b($(o(n).chip())));
64
+ }
65
+ }), ie = { class: "flex flex-nowrap gap-x-2 grow h-full" }, se = {
66
+ key: 0,
67
+ class: "p-8 w-1/4"
68
+ }, ce = { class: "flex flex-col grow p-24" }, ae = { class: "space-y-4" }, re = { class: "fm-typo-en-title-sm-800" }, pe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, me = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, de = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ue = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, fe = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex gap-4 items-end justify-end py-8" }, ye = /* @__PURE__ */ I({
69
+ __name: "TemplateDialog",
70
+ props: {
71
+ campaignType: {
72
+ type: String,
73
+ default: () => {
74
+ }
75
+ },
76
+ onOk: {
77
+ type: Function,
78
+ required: !0
79
+ }
80
+ },
81
+ setup(e) {
82
+ const { t } = U(), { getLocaleText: n } = K(), c = q(), p = W(), m = e, i = z({
83
+ intention: null,
84
+ template: null
85
+ }), k = M(() => {
86
+ const u = (p.templates ?? []).filter(
87
+ () => !0
88
+ //t.intention && t.intention.length > 0
89
+ );
90
+ return m.campaignType ? u.filter(
91
+ (a) => {
92
+ var C, y;
93
+ return ((y = (C = a.defaultValue) == null ? void 0 : C.campaign) == null ? void 0 : y.type) === m.campaignType;
94
+ }
95
+ ) : i.value.intention === null ? O.sampleSize(u, 7) : u.filter(
96
+ (a) => a.intention.includes(i.value.intention)
97
+ );
98
+ });
99
+ Y(async () => {
100
+ await p.readTemplates();
101
+ });
102
+ function A() {
103
+ m.onOk(void 0), c.close();
104
+ }
105
+ function N() {
106
+ const u = i.value.template;
107
+ m.onOk(p.templates.find((a) => a._id === u)), c.close();
108
+ }
109
+ return (u, a) => {
110
+ const C = f("FmChip"), y = f("FmListItem"), P = f("FmList"), E = f("FmCard"), x = f("FmButton"), V = f("FmSpacer");
111
+ return d(), b(E, { class: "h-[534px] max-w-6xl" }, {
112
+ default: _(() => [
113
+ s("div", ie, [
114
+ m.campaignType ? j("", !0) : (d(), D("div", se, [
115
+ r(P, null, {
116
+ default: _(() => [
117
+ r(y, {
118
+ class: T([{
119
+ "bg-fm-color-system-warning-100": o(i).intention === null
120
+ }, "rounded-sm"]),
121
+ onClick: a[0] || (a[0] = (l) => {
122
+ o(i).intention = null, o(i).template = null;
123
+ })
124
+ }, {
125
+ append: _(() => [
126
+ r(C, {
127
+ label: o(t)("connect.templateDialog.hot"),
128
+ variant: "critical"
129
+ }, null, 8, ["label"])
130
+ ]),
131
+ default: _(() => [
132
+ F(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
133
+ ]),
134
+ _: 1
135
+ }, 8, ["class"]),
136
+ (d(!0), D(R, null, L(o(G).options, (l, h) => (d(), b(y, {
137
+ key: h,
138
+ class: T(["rounded-sm", {
139
+ "bg-fm-color-system-warning-100": o(i).intention === l
140
+ }]),
141
+ style: { padding: "8px 16px" },
142
+ onClick: (v) => {
143
+ o(i).intention = l, o(i).template = null;
144
+ }
145
+ }, {
146
+ default: _(() => [
147
+ F(g(o(t)(`connect.templateDialog.intention.${l}`)), 1)
148
+ ]),
149
+ _: 2
150
+ }, 1032, ["class", "onClick"]))), 128))
151
+ ]),
152
+ _: 1
153
+ })
154
+ ])),
155
+ s("div", ce, [
156
+ s("div", ae, [
157
+ s("div", re, g(m.campaignType ? o(t)(`connect.templateDialog.campaignType.${m.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
158
+ s("div", pe, g(o(t)("connect.templateDialog.subtitle")), 1)
159
+ ]),
160
+ s("div", me, [
161
+ r(J, { json: o(k) }, null, 8, ["json"]),
162
+ s("div", de, [
163
+ (d(!0), D(R, null, L(o(k), (l, h) => (d(), b(E, {
164
+ key: h,
165
+ variant: "outlined",
166
+ class: T(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
167
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(i).template === l._id.toString()
168
+ }]),
169
+ onClick: (v) => o(i).template = l._id.toString()
170
+ }, {
171
+ default: _(() => {
172
+ var v, S;
173
+ return [
174
+ s("div", ue, [
175
+ r(le, {
176
+ type: (S = (v = l.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : S.type
177
+ }, null, 8, ["type"])
178
+ ]),
179
+ s("div", fe, g(o(n)(l.name_locale, l.name)), 1),
180
+ s("p", _e, g(o(n)(l.description_locale, l.description ?? "")), 1)
181
+ ];
182
+ }),
183
+ _: 2
184
+ }, 1032, ["class", "onClick"]))), 128))
185
+ ])
186
+ ]),
187
+ s("div", ge, [
188
+ r(x, {
189
+ class: "sm:w-full xs:w-full",
190
+ variant: "plain",
191
+ label: o(t)("connect.templateDialog.customCampaign"),
192
+ size: "md",
193
+ onClick: A
194
+ }, null, 8, ["label"]),
195
+ r(V, { class: "sm:hidden xs:hidden" }),
196
+ r(x, {
197
+ class: "sm:w-full xs:w-full",
198
+ variant: "tertiary",
199
+ label: o(t)("connect.templateDialog.cancel"),
200
+ size: "md",
201
+ onClick: a[1] || (a[1] = (l) => o(c).close())
202
+ }, null, 8, ["label"]),
203
+ r(x, {
204
+ class: "sm:w-full xs:w-full",
205
+ variant: "primary",
206
+ label: o(t)("connect.templateDialog.start"),
207
+ size: "md",
208
+ disabled: !o(i).template,
209
+ onClick: N
210
+ }, null, 8, ["label", "disabled"])
211
+ ])
212
+ ])
213
+ ])
214
+ ]),
215
+ _: 1
216
+ });
217
+ };
218
+ }
219
+ }), Re = (e, t) => ({
220
+ open: async (n) => {
221
+ t.open({
222
+ title: "",
223
+ dialogComponent: ye,
224
+ dialogComponentProps: {
225
+ campaignType: e,
226
+ onOk: async (c) => (console.debug(c, "selected template"), await n(c))
227
+ },
228
+ overlay: !0
229
+ });
230
+ }
231
+ });
232
+ export {
233
+ Se as c,
234
+ Fe as p,
235
+ Re as u
236
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-DKI8401o.js";
1
+ import { e as a } from "./index-BvkqHehI.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-CQxkDpX0.js";
2
- import { s as u } from "./index-QHqcSN2q.js";
1
+ import "./index-DMiaWY0s.js";
2
+ import { s as u } from "./index-CPyK4a5J.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-C5V6u2Qd.js";
3
- import { R as i } from "./index-8mBfDn3M.js";
4
- import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js";
5
- import { c as e, C as d } from "./index-BhTrG89b.js";
6
- import { i as n } from "./plugins-DEHr0UOe.js";
2
+ import "./index-DALsfLV7.js";
3
+ import { R as i } from "./rule-builder-DAlSbaWh.js";
4
+ import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js";
5
+ import { c as e, C as d } from "./index-fNYUguDQ.js";
6
+ import { i as n } from "./plugins-D1Ru-da5.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
- R as a,
211
+ _ as a,
212
212
  O as b
213
213
  };
@@ -1,8 +1,8 @@
1
- import { u as b } from "./vue-i18n-DXvyTCZf.js";
1
+ import { u as b } from "./vue-i18n-kXHiDb_1.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-DEHr0UOe.js";
4
- import { S as o, g as c, b as M } from "./index-DKI8401o.js";
5
- import { u as y } from "./loading-x6IScY4K.js";
3
+ import { c as k, p as I } from "./plugins-D1Ru-da5.js";
4
+ import { S as o, g as c, b as M } from "./index-BvkqHehI.js";
5
+ import { u as y } from "./loading-jZV2Dm--.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-nwnDizYo.js";
3
+ import { l as E } from "./lodash-C2pLek0l.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-DEHr0UOe.js";
2
+ import { c as f } from "./plugins-D1Ru-da5.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;