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

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 (149) hide show
  1. package/dist/{App-BOQIQ8Jz.js → App-C7BnLHSt.js} +502 -493
  2. package/dist/AuditLogs-BPKQdFga.js +2016 -0
  3. package/dist/{Bin-BethwelP.js → Bin-Bq7yY0I2.js} +8 -8
  4. package/dist/{Broadcast-CHIXRBHf.js → Broadcast-D52rPmVl.js} +22 -21
  5. package/dist/{CampaignAnalytic-BaEeAhnr.js → CampaignAnalytic-DpiWtzIp.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYo7Rpes.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js} +8 -9
  7. package/dist/{Card-C075nS85.js → Card-BQc7vud2.js} +22 -22
  8. package/dist/{Collections-BsQ_kcoJ.js → Collections--VzkneGp.js} +197 -185
  9. package/dist/{Credit-BsZlyp-x.js → Credit-DhfAcw-p.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CcytVckH.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Da4snauu.js → EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js} +16 -16
  13. package/dist/{Experience-B9iubxQ5.js → Experience-CUwbHfo5.js} +32 -31
  14. package/dist/{FileSaver.min-1XYUiJrd.js → FileSaver.min-DvZpiwMd.js} +1 -1
  15. package/dist/{Game-B3ZTJcjj.js → Game-CI5-y0JJ.js} +19 -18
  16. package/dist/{GiftCardSetup-DpLDBOS2.js → GiftCardSetup-CGacqQ0j.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-hNbexVdE.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js} +7 -7
  18. package/dist/{Goals--dysejOz.js → Goals-fqJY9iMx.js} +4 -4
  19. package/dist/Grab-CAx1cCE4.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BI1EQciE.js → ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js} +1 -1
  21. package/dist/{Index-v2J17JTP.js → Index-CT1Gnjsv.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B1vTvUTW.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dz0VI7PT.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js} +1 -1
  24. package/dist/{LoyaltyDashboard-BI_khH0P.js → LoyaltyDashboard-IJIDEBWf.js} +15 -15
  25. package/dist/{MainLayout-On2p0hEA.js → MainLayout-BMghr-wf.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DSdJORyW.js → MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js} +3 -3
  27. package/dist/{Marketing-Pqa4USnd.js → Marketing-Ckr9cp3w.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-IRRsEF8W.js → MarketingMaterialEdit-BIZnE8CY.js} +214 -211
  29. package/dist/{Member-p1zyrY20.js → Member-d1nPxr74.js} +7 -7
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +1281 -0
  31. package/dist/{MemberImportHistory-BwkJJj_u.js → MemberImportHistory-CxX9iYhV.js} +7 -7
  32. package/dist/{MemberList-Ci8K7HI4.js → MemberList-DUzYpxhj.js} +103 -105
  33. package/dist/{MemberTransactions-D8xLWGcw.js → MemberTransactions-BFM3ybeo.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CvCuVDR-.js → MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DzrAjDGZ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js} +1 -1
  36. package/dist/{Mission-JpI-0kHJ.js → Mission-De9BF5wb.js} +22 -21
  37. package/dist/{Overview-92S0hiOS.js → Overview-DeHo3gef.js} +145 -144
  38. package/dist/{Overview-BXCQnl4x.js → Overview-Pmxqv6qp.js} +20 -20
  39. package/dist/{Point-krrZWESo.js → Point-DE_Cc85N.js} +22 -21
  40. package/dist/{Promotion-BjlFWrMI.js → Promotion-cZDzgho4.js} +137 -131
  41. package/dist/{Queue-FW3I2guh.js → Queue-DmDbrtTk.js} +45 -45
  42. package/dist/{Record-Hj3_FQp6.js → Record-uxNNOvmK.js} +9 -9
  43. package/dist/{Review-CBL5Wga7.js → Review-CIIn_Bdx.js} +2 -2
  44. package/dist/ReviewFacebookCallback-CO6FxHzc.js +225 -0
  45. package/dist/{ReviewGoogleCallback-CAqc1gmT.js → ReviewGoogleCallback-B7kmGwb_.js} +5 -5
  46. package/dist/{Reward-UN-LYZPR.js → Reward-Bj1snFu8.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C4deW4H6.js → RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js} +13 -13
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js +1923 -0
  49. package/dist/{Segment-D9ehFadR.js → Segment-BgJgWa6C.js} +303 -306
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D7PbDKI7.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js} +14 -14
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DWXfOk-I.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js} +4 -4
  52. package/dist/Setting-DpEI72mW.js +574 -0
  53. package/dist/{SettingAdvertisements-BNWTSQ14.js → SettingAdvertisements-vdUtIXwC.js} +12 -12
  54. package/dist/Settings-C6yJ1WEB.js +286 -0
  55. package/dist/{Store-vRzLqmIu.js → Store-DgltT0RA.js} +28 -28
  56. package/dist/{StoreRewards-DitATf4s.js → StoreRewards-BXH_5cYL.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +1319 -0
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js +7007 -0
  59. package/dist/{Tier-B0JGxXei.js → Tier-CqfHGUX0.js} +2575 -687
  60. package/dist/{Title-DBLK191p.js → Title-B5VnUNiS.js} +95 -94
  61. package/dist/{Transaction-CUthGjH1.js → Transaction-BZh1Q9Lj.js} +2 -2
  62. package/dist/Upselling-Cf24ub-9.js +1055 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CUCR6aEY.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js} +26 -26
  64. package/dist/{Voucher-DsyOteEs.js → Voucher-CZJdV2Ok.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Ddbutv4Y.js → VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js} +12 -12
  66. package/dist/{WhatsappAccount-PWKWg15w.js → WhatsappAccount-DsRilNC5.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-HUSiUfoc.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js} +1 -1
  68. package/dist/{WhatsappBot-CMFcJj1b.js → WhatsappBot-CpzMaTss.js} +6 -6
  69. package/dist/{WhatsappBotLogs-CVOw3VxD.js → WhatsappBotLogs-DRF8VufQ.js} +6 -6
  70. package/dist/{WhatsappBotSettings-ouG9rSoI.js → WhatsappBotSettings-DSUPGC-p.js} +4 -4
  71. package/dist/{WhatsappLayout-CHtKQYog.js → WhatsappLayout-BCWYcQmD.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-B0tpwJ9B.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CEytppMm.js → ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js} +2 -2
  74. package/dist/{app-CZGZKKye.js → app-BQeODViN.js} +14861 -15017
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-Cxm_LrqA.js → base.export-kSFLDDoC.js} +2 -2
  77. package/dist/{business-CieIljvm.js → business-EP-Do3Ew.js} +1 -1
  78. package/dist/{campaign-DhN6zKES.js → campaign-BjnUPowX.js} +34 -28
  79. package/dist/{campaign-DWClF3jI.js → campaign-C8GgaCub.js} +121 -94
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/campaign.fn-DQ--gL4B.js +776 -0
  82. package/dist/{collection.fn-Cep8tuk5.js → collection.fn-BhXecwh5.js} +2 -2
  83. package/dist/{currency-DhwsYY32.js → currency-CGMNh1Q_.js} +1 -1
  84. package/dist/duplicateCampaign-icqF8Na9.js +51 -0
  85. package/dist/{effect-BwOOpJRh.js → effect-Bc6oGIWd.js} +1 -1
  86. package/dist/{email-addresses-DZB2oj9y.js → email-addresses-B3KWfUMk.js} +25 -25
  87. package/dist/{feature-flag-BSpbhSMn.js → feature-flag-HhjvSuDm.js} +171 -185
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-D_4T4gbM.js → helper-D1BYvcED.js} +1 -1
  90. package/dist/{index-DgCpTG1m.js → index-BIBcfAw5.js} +1 -1
  91. package/dist/{index-BpnjNIh1.js → index-BkevK_Hp.js} +1 -1
  92. package/dist/{index-D5OOlgos.js → index-Br2SLVsn.js} +608 -251
  93. package/dist/{index-BYipoHQc.js → index-Bunp1bt_.js} +1 -1
  94. package/dist/{index-BDKVZZR0.js → index-C-46QHFh.js} +380 -234
  95. package/dist/{index-MCyDYhZI.js → index-C3MK8Twg.js} +1 -1
  96. package/dist/{index-DVir0ptH.js → index-CsYTLmPa.js} +4 -4
  97. package/dist/{index-Dh815w-7.js → index-D2TnjKPP.js} +23 -23
  98. package/dist/{index-CyYV4eem.js → index-DCC3pLug.js} +19 -6
  99. package/dist/{index-X5Gzu80O.js → index-DOSuhtdE.js} +1 -1
  100. package/dist/{index-FrOuWhLi.js → index-DeqpfWLa.js} +3 -3
  101. package/dist/{index-Df4ox2zj.js → index-DiCgGQoC.js} +2 -2
  102. package/dist/{index-tUxF4g8G.js → index-GQv1_jaJ.js} +2 -2
  103. package/dist/{index-rcMo_-nr.js → index-Ptcqv0W6.js} +2 -2
  104. package/dist/{index-CY88cQHU.js → index-VLFerh-X.js} +10 -10
  105. package/dist/{index-DcTRgcug.js → index-VyoufKYY.js} +1 -1
  106. package/dist/{index-BtN3vRvA.js → index-Yw4M7v7m.js} +2699 -2614
  107. package/dist/{index-DcO1O6fl.js → index-cPPWotJe.js} +10 -10
  108. package/dist/{index-FKxe6jKI.js → index-gMrtUwSD.js} +316 -316
  109. package/dist/{index-CIJKKs_J.js → index-oIo5Cful.js} +533 -462
  110. package/dist/{index.esm2017-DSF7lxrn.js → index.esm2017-DUZpLdEB.js} +93 -93
  111. package/dist/{loading-B4qq_74t.js → loading-DhpcQgdj.js} +1 -1
  112. package/dist/{lodash-BuScZ_TM.js → lodash-r4AR7GJC.js} +1 -1
  113. package/dist/{member-import-DyM1Xskc.js → member-import-CogEef9H.js} +1 -1
  114. package/dist/{membership-C77S6FIb.js → membership-BQFkjRjs.js} +2 -2
  115. package/dist/{money-Dcr44NhN.js → money-Ifqd4pyC.js} +1 -1
  116. package/dist/{number-C2u_79r4.js → number-C9Tw_Ncm.js} +1 -1
  117. package/dist/objectid-D7dqM1a3.js +145 -0
  118. package/dist/{onboarding-Chxkor1U.js → onboarding-D4dm_rxU.js} +36 -36
  119. package/dist/{onboardingSetup-BvL9lW9U.js → onboardingSetup-DtNZUoRr.js} +2 -2
  120. package/dist/{plugins-dnLWrrhC.js → plugins-DGI9Fkiu.js} +3 -3
  121. package/dist/{reward-DVHKTXQL.js → reward-DTtejZqM.js} +1 -1
  122. package/dist/{rule-IYgreBdC.js → rule-C4N3ce3c.js} +572 -492
  123. package/dist/style.css +1 -1
  124. package/dist/template-YhWRyNGp.js +227 -0
  125. package/dist/{timezone-Cdp7cU32.js → timezone-5rYhX7XZ.js} +1 -1
  126. package/dist/{transaction.fn-kl4EZybB.js → transaction.fn-Ba_U7HdT.js} +2 -2
  127. package/dist/{trigger-C1m8eupI.js → trigger-B8I1aO6Y.js} +9 -9
  128. package/dist/{useMarketingMaterialActions-m5OLWGoL.js → useMarketingMaterialActions-CTOFHmlL.js} +4 -4
  129. package/dist/{usePagination-DX82vEDi.js → usePagination-3wAPVCOp.js} +1 -1
  130. package/dist/{user-DBndrlMY.js → user-Ds4DW_-Y.js} +1 -1
  131. package/dist/vue-i18n-Bqlt_-jA.js +2365 -0
  132. package/dist/{xlsx-ColLmoRB.js → xlsx-xlOCvuAq.js} +166 -166
  133. package/dist/{zod-CHmP8TTi.js → zod-GVNjvrpT.js} +1 -1
  134. package/package.json +6 -2
  135. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-qX_uFelR.js +0 -3493
  136. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DyvEDRBE.js +0 -1308
  137. package/dist/ReviewFacebookCallback-31bFMGu3.js +0 -238
  138. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BbzRH7BF.js +0 -1884
  139. package/dist/Setting-DGoNxCsO.js +0 -578
  140. package/dist/Settings-CQ67orRm.js +0 -179
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DEP0FuoM.js +0 -1297
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DndMZr1k.js +0 -142
  143. package/dist/Upselling-CZLmpsdx.js +0 -200
  144. package/dist/campaign.fn-CKTsVS5U.js +0 -776
  145. package/dist/google-C3S8u0mT.js +0 -4
  146. package/dist/objectid-nYLSIO_I.js +0 -145
  147. package/dist/rule-builder-QC_xPC4L.js +0 -102
  148. package/dist/template-COvkfF2w.js +0 -275
  149. package/dist/vue-i18n-FBUIkfn5.js +0 -2365
@@ -0,0 +1,227 @@
1
+ import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as A, unref as e, ref as B, computed as j, onMounted as M, resolveComponent as g, withCtx as m, createElementVNode as l, createElementBlock as h, createVNode as c, normalizeClass as b, createTextVNode as k, toDisplayString as u, Fragment as S, renderList as N, createCommentVNode as I } from "vue";
2
+ import { _ as q } from "./remy-icon-BhUGu2NI.js";
3
+ import { u as J } from "./campaign-BjnUPowX.js";
4
+ import { useDialog as G } from "@feedmepos/ui-library";
5
+ import { F as H } from "./index-Br2SLVsn.js";
6
+ import { _ as U } from "./lodash-r4AR7GJC.js";
7
+ import { C as K } from "./campaign-C8GgaCub.js";
8
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as W } from "./vue-i18n-Bqlt_-jA.js";
10
+ import { u as X } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js";
11
+ import { u as Y } from "./remy-Qz_pNsUS.js";
12
+ const Z = /* @__PURE__ */ L({
13
+ __name: "CampaignChip",
14
+ props: {
15
+ type: { type: String, required: !0 }
16
+ },
17
+ setup(f) {
18
+ const d = K[f.type];
19
+ return (p, y) => (r(), C(A(e(d).chip())));
20
+ }
21
+ }), ee = { class: "flex flex-nowrap gap-x-2 grow h-full" }, te = {
22
+ key: 0,
23
+ class: "p-8 w-1/4"
24
+ }, ne = { class: "flex flex-col grow p-24" }, oe = { class: "space-y-4" }, le = { class: "fm-typo-en-title-sm-800" }, ae = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, se = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ie = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ce = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, pe = { class: "fm-typo-en-title-sm-800" }, re = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, me = { class: "flex gap-4 items-end justify-end py-8" }, ue = { class: "flex items-center gap-8" }, de = /* @__PURE__ */ L({
25
+ __name: "TemplateDialog",
26
+ props: {
27
+ campaignType: {
28
+ type: String,
29
+ default: () => {
30
+ }
31
+ },
32
+ onOk: {
33
+ type: Function,
34
+ required: !0
35
+ }
36
+ },
37
+ setup(f) {
38
+ const { t } = W(), { getLocaleText: d } = X(), p = G(), y = J(), $ = Y(), s = f, n = B({
39
+ intention: null,
40
+ template: null
41
+ }), D = j(() => {
42
+ const i = (y.templates ?? []).filter(
43
+ () => !0
44
+ //t.intention && t.intention.length > 0
45
+ );
46
+ return s.campaignType ? i.filter(
47
+ (a) => {
48
+ var v, _;
49
+ return ((_ = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : _.type) === s.campaignType;
50
+ }
51
+ ) : n.value.intention === null ? U.sampleSize(i, 7) : i.filter(
52
+ (a) => a.intention.includes(n.value.intention)
53
+ );
54
+ });
55
+ M(async () => {
56
+ await y.readTemplates();
57
+ });
58
+ function R() {
59
+ s.onOk(void 0), p.close();
60
+ }
61
+ function V() {
62
+ const i = [t("connect.templateDialog.remyPrompt")];
63
+ s.campaignType && i.push(
64
+ t("connect.templateDialog.remyCampaignType", {
65
+ type: t(`connect.templateDialog.campaignType.${s.campaignType}`)
66
+ })
67
+ ), n.value.intention && i.push(
68
+ t("connect.templateDialog.remyGoal", {
69
+ goal: t(`connect.templateDialog.intention.${n.value.intention}`)
70
+ })
71
+ ), p.close(), $.activate({
72
+ prompt: i.join(" "),
73
+ forceNewConversation: !0
74
+ });
75
+ }
76
+ function E() {
77
+ const i = n.value.template;
78
+ s.onOk(y.templates.find((a) => a._id === i)), p.close();
79
+ }
80
+ return (i, a) => {
81
+ const v = g("FmChip"), _ = g("FmListItem"), P = g("FmList"), F = g("FmCard"), x = g("FmButton"), z = g("FmSpacer");
82
+ return r(), C(F, { class: "h-[534px] max-w-6xl" }, {
83
+ default: m(() => [
84
+ l("div", ee, [
85
+ s.campaignType ? I("", !0) : (r(), h("div", te, [
86
+ c(P, null, {
87
+ default: m(() => [
88
+ c(_, {
89
+ class: b([{
90
+ "bg-fm-color-system-warning-100": e(n).intention === null
91
+ }, "rounded-sm"]),
92
+ onClick: a[0] || (a[0] = (o) => {
93
+ e(n).intention = null, e(n).template = null;
94
+ })
95
+ }, {
96
+ append: m(() => [
97
+ c(v, {
98
+ label: e(t)("connect.templateDialog.hot"),
99
+ variant: "critical"
100
+ }, null, 8, ["label"])
101
+ ]),
102
+ default: m(() => [
103
+ k(u(e(t)("connect.templateDialog.mostPopular")) + " ", 1)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["class"]),
107
+ (r(!0), h(S, null, N(e(H).options, (o, w) => (r(), C(_, {
108
+ key: w,
109
+ class: b(["rounded-sm", {
110
+ "bg-fm-color-system-warning-100": e(n).intention === o
111
+ }]),
112
+ style: { padding: "8px 16px" },
113
+ onClick: (T) => {
114
+ e(n).intention = o, e(n).template = null;
115
+ }
116
+ }, {
117
+ default: m(() => [
118
+ k(u(e(t)(`connect.templateDialog.intention.${o}`)), 1)
119
+ ]),
120
+ _: 2
121
+ }, 1032, ["class", "onClick"]))), 128))
122
+ ]),
123
+ _: 1
124
+ })
125
+ ])),
126
+ l("div", ne, [
127
+ l("div", oe, [
128
+ l("div", le, u(s.campaignType ? e(t)(`connect.templateDialog.campaignType.${s.campaignType}`) : e(t)("connect.templateDialog.templateList")), 1),
129
+ l("div", ae, u(e(t)("connect.templateDialog.subtitle")), 1)
130
+ ]),
131
+ l("div", se, [
132
+ c(Q, { json: e(D) }, null, 8, ["json"]),
133
+ l("div", ie, [
134
+ (r(!0), h(S, null, N(e(D), (o, w) => (r(), C(F, {
135
+ key: w,
136
+ variant: "outlined",
137
+ class: b(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
138
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(n).template === o._id.toString()
139
+ }]),
140
+ onClick: (T) => e(n).template = o._id.toString()
141
+ }, {
142
+ default: m(() => {
143
+ var T, O;
144
+ return [
145
+ l("div", ce, [
146
+ c(Z, {
147
+ type: (O = (T = o.defaultValue) == null ? void 0 : T.campaign) == null ? void 0 : O.type
148
+ }, null, 8, ["type"])
149
+ ]),
150
+ l("div", pe, u(e(d)(o.name_locale, o.name)), 1),
151
+ l("p", re, u(e(d)(o.description_locale, o.description ?? "")), 1)
152
+ ];
153
+ }),
154
+ _: 2
155
+ }, 1032, ["class", "onClick"]))), 128))
156
+ ])
157
+ ]),
158
+ l("div", me, [
159
+ c(x, {
160
+ class: "sm:w-full xs:w-full",
161
+ variant: "plain",
162
+ label: e(t)("connect.templateDialog.customCampaign"),
163
+ size: "md",
164
+ onClick: R
165
+ }, null, 8, ["label"]),
166
+ s.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
167
+ s.campaignType
168
+ ) ? (r(), C(x, {
169
+ key: 0,
170
+ class: "sm:w-full xs:w-full",
171
+ variant: "tertiary",
172
+ label: e(t)("connect.templateDialog.askRemy"),
173
+ size: "md",
174
+ onClick: V
175
+ }, {
176
+ default: m(() => [
177
+ l("span", ue, [
178
+ a[2] || (a[2] = l("img", {
179
+ src: q,
180
+ alt: "",
181
+ class: "w-[20px] h-[20px]"
182
+ }, null, -1)),
183
+ k(" " + u(e(t)("connect.templateDialog.askRemy")), 1)
184
+ ])
185
+ ]),
186
+ _: 1
187
+ }, 8, ["label"])) : I("", !0),
188
+ c(z, { class: "sm:hidden xs:hidden" }),
189
+ c(x, {
190
+ class: "sm:w-full xs:w-full",
191
+ variant: "tertiary",
192
+ label: e(t)("connect.templateDialog.cancel"),
193
+ size: "md",
194
+ onClick: a[1] || (a[1] = (o) => e(p).close())
195
+ }, null, 8, ["label"]),
196
+ c(x, {
197
+ class: "sm:w-full xs:w-full",
198
+ variant: "primary",
199
+ label: e(t)("connect.templateDialog.start"),
200
+ size: "md",
201
+ disabled: !e(n).template,
202
+ onClick: E
203
+ }, null, 8, ["label", "disabled"])
204
+ ])
205
+ ])
206
+ ])
207
+ ]),
208
+ _: 1
209
+ });
210
+ };
211
+ }
212
+ }), ke = (f, t) => ({
213
+ open: async (d) => {
214
+ t.open({
215
+ title: "",
216
+ dialogComponent: de,
217
+ dialogComponentProps: {
218
+ campaignType: f,
219
+ onOk: async (p) => (console.debug(p, "selected template"), await d(p))
220
+ },
221
+ overlay: !0
222
+ });
223
+ }
224
+ });
225
+ export {
226
+ ke as u
227
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-DcO1O6fl.js";
1
+ import { e as a } from "./index-cPPWotJe.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-CIJKKs_J.js";
2
- import { s as u } from "./index-DVir0ptH.js";
1
+ import "./index-oIo5Cful.js";
2
+ import { s as u } from "./index-CsYTLmPa.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-BtN3vRvA.js";
3
- import { R as i } from "./rule-builder-QC_xPC4L.js";
4
- import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BbzRH7BF.js";
5
- import { c as e, C as d } from "./index-BDKVZZR0.js";
6
- import { i as n } from "./plugins-dnLWrrhC.js";
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";
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
- }), _ = {
65
+ }), R = {
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) => _[a]).filter((a) => !a.hidden)) ?? []
204
+ (o == null ? void 0 : o.map((a) => R[a]).filter((a) => !a.hidden)) ?? []
205
205
  ];
206
206
  })
207
207
  );
208
208
  export {
209
209
  C as T,
210
210
  L as _,
211
- _ as a,
212
- O as b
211
+ O as a,
212
+ R as b
213
213
  };
@@ -1,8 +1,8 @@
1
- import { u as b } from "./vue-i18n-FBUIkfn5.js";
1
+ import { u as b } from "./vue-i18n-Bqlt_-jA.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-dnLWrrhC.js";
4
- import { S as o, g as c, b as M } from "./index-DcO1O6fl.js";
5
- import { u as y } from "./loading-B4qq_74t.js";
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";
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-BuScZ_TM.js";
3
+ import { l as E } from "./lodash-r4AR7GJC.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-dnLWrrhC.js";
2
+ import { c as f } from "./plugins-DGI9Fkiu.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;