@feedmepos/mf-connect 0.1.119-dev → 0.1.119-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-z-u6skb5.js → App-BN2LKM3u.js} +135 -147
  2. package/dist/{Bin-Dh9RAgYi.js → Bin-DpQ1atb7.js} +8 -8
  3. package/dist/{Broadcast-Dg6azPS8.js → Broadcast-c1ZyYClI.js} +21 -22
  4. package/dist/{CampaignAnalytic-CVB4dstO.js → CampaignAnalytic-w1hIlc2r.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js} +9 -8
  6. package/dist/{Card-CY736Ul0.js → Card-De53Xgbe.js} +22 -22
  7. package/dist/{Collections-CdTKWkZZ.js → Collections-BL2RD3FU.js} +185 -197
  8. package/dist/{Credit-CUhEKlMI.js → Credit-2KvFFcwR.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +3493 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js → EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js} +30 -30
  12. package/dist/{Experience-CMp09U-6.js → Experience-Cb0jHtVo.js} +31 -32
  13. package/dist/{FileSaver.min-Bq5McdmK.js → FileSaver.min-UDgZF_Cv.js} +1 -1
  14. package/dist/{Game-Dv5NvG-q.js → Game-BnysxSMs.js} +18 -19
  15. package/dist/{GiftCardSetup-SO2Tk5In.js → GiftCardSetup-s1OR6xQq.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js} +7 -7
  17. package/dist/{Goals-BEwQP4cY.js → Goals-BAieLPzR.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js → ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js} +1 -1
  19. package/dist/{Index-8F2LOWng.js → Index-DnX16GAE.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js → LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js} +1 -1
  22. package/dist/{LoyaltyDashboard-rWm0b8cm.js → LoyaltyDashboard-D8g6OSbC.js} +15 -15
  23. package/dist/{MainLayout-ezbgp2IQ.js → MainLayout-DWABjpQn.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js → MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js} +3 -3
  25. package/dist/{Marketing-DcWF4xVc.js → Marketing-Dagatr0y.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-C1bXj_hU.js → MarketingMaterialEdit-DYVzNDpM.js} +211 -214
  27. package/dist/{Member-CgDZqGsV.js → Member-DAxdEF_Z.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js} +47 -39
  29. package/dist/{MemberImportHistory-DT3QJ5se.js → MemberImportHistory-2gx6FnLh.js} +7 -7
  30. package/dist/{MemberList-Bm05jnbk.js → MemberList-By_gGl-J.js} +105 -103
  31. package/dist/{MemberTransactions-D90tTpdC.js → MemberTransactions-BEF-4ZNp.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js → MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js} +1 -1
  34. package/dist/{Mission-D_l2eJI3.js → Mission-jg15lBxo.js} +21 -22
  35. package/dist/{Overview-BOZBnorP.js → Overview-BFKLTAk1.js} +144 -145
  36. package/dist/{Overview-1AYfTeMD.js → Overview-C7WfdzfV.js} +20 -20
  37. package/dist/{Point-Cqy4XzeG.js → Point-dv9WgWTQ.js} +21 -22
  38. package/dist/{Promotion-9RDNbCgB.js → Promotion-mFPF_8jO.js} +131 -137
  39. package/dist/{Queue-D2Eie_np.js → Queue-BQoR_M5H.js} +45 -45
  40. package/dist/{Record-e4B--FD8.js → Record-1JZ1N5iX.js} +9 -9
  41. package/dist/{Review-DcUpSvc-.js → Review-B52AxCeT.js} +2 -2
  42. package/dist/ReviewFacebookCallback-ihTdiI8V.js +238 -0
  43. package/dist/{ReviewGoogleCallback-JPkamgo2.js → ReviewGoogleCallback-DO6SVFIC.js} +5 -5
  44. package/dist/{Reward-BQJw-R8V.js → Reward-Cp4jPAB0.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js → RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +1884 -0
  47. package/dist/{Segment-Cjdqsqqg.js → Segment-DaKw0YXF.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js} +4 -4
  50. package/dist/{Setting-B3HK4mtx.js → Setting-DveUrt8J.js} +148 -159
  51. package/dist/{SettingAdvertisements-BQFJpdIm.js → SettingAdvertisements-QRXOMNnM.js} +12 -12
  52. package/dist/Settings-D9D-mkBa.js +179 -0
  53. package/dist/{Store-mp1LyXwr.js → Store-DjdXRw3V.js} +28 -28
  54. package/dist/{StoreRewards-DiSB6d7_.js → StoreRewards-CjlGrc9E.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +1265 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +142 -0
  57. package/dist/{Tier-CxaXh96q.js → Tier-D74Oh2np.js} +687 -2575
  58. package/dist/{Title-Byz0TGpi.js → Title-CeeviOW8.js} +94 -95
  59. package/dist/{Transaction-CNXulI3o.js → Transaction-CWdw0ITl.js} +2 -2
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js} +26 -26
  61. package/dist/{Voucher-CVw3E8Y4.js → Voucher-C0nNXMtv.js} +19 -19
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js} +12 -12
  63. package/dist/{WhatsappAccount-5vLzjaIV.js → WhatsappAccount-CoLSjCQ2.js} +6 -6
  64. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js} +1 -1
  65. package/dist/{WhatsappBot-BWJbD7Gk.js → WhatsappBot-kLb3kUav.js} +6 -6
  66. package/dist/{WhatsappBotLogs-C8gpmZyC.js → WhatsappBotLogs-jcYaHs0t.js} +6 -6
  67. package/dist/{WhatsappBotSettings-BvPnKHz-.js → WhatsappBotSettings-B6jJD61h.js} +4 -4
  68. package/dist/{WhatsappLayout-DJXhXeXf.js → WhatsappLayout-C24bIjI2.js} +3 -3
  69. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js} +3 -3
  70. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js → ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js} +2 -2
  71. package/dist/{app-BF1vds2J.js → app-C06bAZj3.js} +10806 -11561
  72. package/dist/app.js +3 -4
  73. package/dist/{base.export-B7FU8J4P.js → base.export-CgNRhKu8.js} +2 -2
  74. package/dist/{business-DkUMhys1.js → business-D23Dt1x4.js} +1 -1
  75. package/dist/{campaign-C9cVkGMF.js → campaign-DfEvGigm.js} +94 -121
  76. package/dist/{campaign-0AgQP43B.js → campaign-FVcbXtrP.js} +28 -34
  77. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  78. package/dist/campaign.fn-0MNUj1fZ.js +776 -0
  79. package/dist/{collection.fn-B_QnW0e3.js → collection.fn-DC1AMI9o.js} +2 -2
  80. package/dist/{currency-XQmondpC.js → currency-Bra2RJK4.js} +1 -1
  81. package/dist/{effect-Mwn1x6qN.js → effect-EL4V3pAu.js} +1 -1
  82. package/dist/{email-addresses-DQQAi6-l.js → email-addresses-Ddtf1x_y.js} +2 -2
  83. package/dist/{feature-flag-B1VMMZMd.js → feature-flag-umACX47C.js} +70 -70
  84. package/dist/google-C3S8u0mT.js +4 -0
  85. package/dist/{helper-D1R8vyjc.js → helper-DqDOnLCf.js} +1 -1
  86. package/dist/{index-Rs75lw-x.js → index-B2lqC_hH.js} +1 -1
  87. package/dist/{index-C9Nbb7wc.js → index-B3U3KZl0.js} +2 -2
  88. package/dist/{index-CRAuAyO3.js → index-BTjhdlN_.js} +1 -1
  89. package/dist/{index-Bm43wR8L.js → index-B_BmgKrh.js} +2613 -2699
  90. package/dist/{index-DMfCzjiA.js → index-BkKu2G2c.js} +2 -2
  91. package/dist/{index-ug7pxPAX.js → index-BroF2fC8.js} +251 -608
  92. package/dist/{index-P8DDRVa3.js → index-Bvk61_w_.js} +1 -1
  93. package/dist/{index-DQnCdGWe.js → index-ByVPdKdB.js} +581 -682
  94. package/dist/{index-Bym-ZIcv.js → index-BzwwXWpZ.js} +1 -1
  95. package/dist/{index-DaUhJ6xV.js → index-C3hAzzS2.js} +15 -29
  96. package/dist/{index-CzE9ZPDV.js → index-C3lk4GHF.js} +4 -4
  97. package/dist/{index-CLlGMbnP.js → index-C6p9Lsvf.js} +1 -1
  98. package/dist/{index-eR9mqPPV.js → index-CEh6ryp2.js} +6 -19
  99. package/dist/{index-mOGrVzUV.js → index-DK9zxpDu.js} +3 -3
  100. package/dist/{index-ytSMcSMt.js → index-DuCJtx1m.js} +1 -1
  101. package/dist/{index-ZYrey0SM.js → index-LjoAs_nX.js} +10 -10
  102. package/dist/{index-BU6CU5MP.js → index-TDCPGtW3.js} +232 -389
  103. package/dist/{index-CPB7j8Wn.js → index-iVbjwKxc.js} +10 -10
  104. package/dist/{index-Cg8Z5eYT.js → index-pfmx-Gor.js} +2 -2
  105. package/dist/{index-D5BwAYuA.js → index-rcfcslIC.js} +197 -197
  106. package/dist/{index.esm2017-Gkctw9Mb.js → index.esm2017-DCuQPCX2.js} +111 -111
  107. package/dist/{loading-kUQqT44G.js → loading-CQm1DKWE.js} +1 -1
  108. package/dist/{lodash-B4AjV7YZ.js → lodash-C2wVbAap.js} +1 -1
  109. package/dist/{member-import-CwDUG5mj.js → member-import-BLEmTRso.js} +1 -1
  110. package/dist/{membership-BI6U8-eM.js → membership-XycnxPEW.js} +2 -2
  111. package/dist/{money-Bum-AbB7.js → money-DY_QGzd1.js} +1 -1
  112. package/dist/{number-uAoNqG-N.js → number-BHthf4qF.js} +1 -1
  113. package/dist/objectid-CPCAqIiC.js +145 -0
  114. package/dist/{onboarding-wtYzQipv.js → onboarding-BOJw54Fn.js} +36 -36
  115. package/dist/{onboardingSetup-DlYM-oqd.js → onboardingSetup-Cf2u1tXu.js} +2 -2
  116. package/dist/{plugins-BGyTPNfc.js → plugins-DKQeoL_e.js} +3 -3
  117. package/dist/{reward-D0xtG-bp.js → reward-D4RIYSpl.js} +1 -1
  118. package/dist/{rule-BAA5-vRj.js → rule-Ba-s0L_w.js} +492 -572
  119. package/dist/rule-builder-D0B0DPao.js +102 -0
  120. package/dist/style.css +1 -1
  121. package/dist/template-B40I16Yg.js +236 -0
  122. package/dist/{timezone-Bbw2OeEP.js → timezone-CAc8xi1h.js} +1 -1
  123. package/dist/{transaction.fn-DZdNjP_E.js → transaction.fn-Cp2hnhyU.js} +2 -2
  124. package/dist/{trigger-BpotFb7G.js → trigger-3ebhNBX7.js} +9 -9
  125. package/dist/{useMarketingMaterialActions-CQ1M0N9c.js → useMarketingMaterialActions-6URv8neP.js} +4 -4
  126. package/dist/{usePagination-qALFI_Td.js → usePagination-C-fyMmiy.js} +1 -1
  127. package/dist/{user-X_94TRIK.js → user-T-iXTrYV.js} +1 -1
  128. package/dist/vue-i18n-DzsxJorb.js +2365 -0
  129. package/dist/{xlsx-DW48eXDT.js → xlsx-B8OqaJfb.js} +224 -224
  130. package/dist/{zod-BAP9II5C.js → zod-DZkNj425.js} +1 -1
  131. package/package.json +3 -8
  132. package/dist/AuditLogs-J0UJ3HJW.js +0 -2016
  133. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +0 -4439
  134. package/dist/Grab-npbL7p7S.js +0 -301
  135. package/dist/ReviewFacebookCallback-BhHdYb4X.js +0 -225
  136. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +0 -1923
  137. package/dist/Settings-DKWkiRuA.js +0 -286
  138. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +0 -1319
  139. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +0 -7007
  140. package/dist/Upselling-Dto64bmE.js +0 -1013
  141. package/dist/campaign.fn-N6rJeDUx.js +0 -776
  142. package/dist/duplicateCampaign-CvQRWP-Z.js +0 -51
  143. package/dist/google-BQK68wbe.js +0 -5
  144. package/dist/objectid-CPTCMH2h.js +0 -145
  145. package/dist/template-DKgW9ul3.js +0 -188
  146. package/dist/vue-i18n-CRFpVnMa.js +0 -2365
@@ -0,0 +1,236 @@
1
+ import { p as B, i as w } from "./plugins-DKQeoL_e.js";
2
+ import { _ as O } from "./lodash-C2wVbAap.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-FVcbXtrP.js";
5
+ import { useDialog as q } from "@feedmepos/ui-library";
6
+ import { F as G } from "./index-BroF2fC8.js";
7
+ import { C as H } from "./campaign-DfEvGigm.js";
8
+ import { J } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as U } from "./vue-i18n-DzsxJorb.js";
10
+ import { u as K } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.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-CPB7j8Wn.js";
1
+ import { e as a } from "./index-iVbjwKxc.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-DQnCdGWe.js";
2
- import { s as u } from "./index-CzE9ZPDV.js";
1
+ import "./index-ByVPdKdB.js";
2
+ import { s as u } from "./index-C3lk4GHF.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-Bm43wR8L.js";
3
- import { R as i } from "./index-ug7pxPAX.js";
4
- import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js";
5
- import { l as e, C as d } from "./index-BU6CU5MP.js";
6
- import { i as n } from "./plugins-BGyTPNfc.js";
2
+ import "./index-B_BmgKrh.js";
3
+ import { R as i } from "./rule-builder-D0B0DPao.js";
4
+ import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js";
5
+ import { c as e, C as d } from "./index-TDCPGtW3.js";
6
+ import { i as n } from "./plugins-DKQeoL_e.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-CRFpVnMa.js";
1
+ import { u as b } from "./vue-i18n-DzsxJorb.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-BGyTPNfc.js";
4
- import { S as o, g as c, d as M } from "./index-CPB7j8Wn.js";
5
- import { u as y } from "./loading-kUQqT44G.js";
3
+ import { c as k, p as I } from "./plugins-DKQeoL_e.js";
4
+ import { S as o, g as c, b as M } from "./index-iVbjwKxc.js";
5
+ import { u as y } from "./loading-CQm1DKWE.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-B4AjV7YZ.js";
3
+ import { l as E } from "./lodash-C2wVbAap.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-BGyTPNfc.js";
2
+ import { c as f } from "./plugins-DKQeoL_e.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;