@feedmepos/mf-connect 0.1.119-prod → 0.1.120-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 (146) hide show
  1. package/dist/{App-BN2LKM3u.js → App-Dw3rnEq4.js} +147 -135
  2. package/dist/AuditLogs-DhXCWAPt.js +2016 -0
  3. package/dist/{Bin-DpQ1atb7.js → Bin-CUr1xsO9.js} +8 -8
  4. package/dist/{Broadcast-c1ZyYClI.js → Broadcast-_XJq6IJN.js} +22 -21
  5. package/dist/{CampaignAnalytic-w1hIlc2r.js → CampaignAnalytic-DqaUuRKr.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VIKZyXYe.js} +8 -9
  7. package/dist/{Card-De53Xgbe.js → Card-D-jdr-yk.js} +22 -22
  8. package/dist/{Collections-BL2RD3FU.js → Collections-BkD4tNm-.js} +197 -185
  9. package/dist/{Credit-2KvFFcwR.js → Credit-BetxSEVi.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B38KWvjh.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjrUbq3p.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js → EffectSheet.vue_vue_type_style_index_0_lang-ZUyAIXG8.js} +30 -30
  13. package/dist/{Experience-Cb0jHtVo.js → Experience-BFA5Z-vR.js} +32 -31
  14. package/dist/{FileSaver.min-UDgZF_Cv.js → FileSaver.min-8JbG2mJ3.js} +1 -1
  15. package/dist/{Game-BnysxSMs.js → Game-U5KLh4hO.js} +19 -18
  16. package/dist/{GiftCardSetup-s1OR6xQq.js → GiftCardSetup-Co-IZAGp.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BEpn_v0p.js} +7 -7
  18. package/dist/{Goals-BAieLPzR.js → Goals-BjfIo1eJ.js} +4 -4
  19. package/dist/Grab-BqMAyeT4.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js → ImageInput.vue_vue_type_script_setup_true_lang-BS_4suKR.js} +1 -1
  21. package/dist/{Index-DnX16GAE.js → Index-B6vsJrc1.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js → LocationPicker.vue_vue_type_script_setup_true_lang-BnKkTFya.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BekFDJxs.js} +1 -1
  24. package/dist/{LoyaltyDashboard-D8g6OSbC.js → LoyaltyDashboard-0jJUfdtM.js} +15 -15
  25. package/dist/{MainLayout-DWABjpQn.js → MainLayout-DCJfGVVF.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js → MainLayout.vue_vue_type_script_setup_true_lang-CRkbPnQq.js} +16 -16
  27. package/dist/{Marketing-Dagatr0y.js → Marketing-DsZoY2Ef.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-DYVzNDpM.js → MarketingMaterialEdit-BMJ2yjL0.js} +214 -211
  29. package/dist/{Member-DAxdEF_Z.js → Member-Bi7EuVUS.js} +7 -7
  30. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CXXKlmiR.js} +39 -47
  31. package/dist/{MemberImportHistory-2gx6FnLh.js → MemberImportHistory-CXnIaEaw.js} +7 -7
  32. package/dist/{MemberList-By_gGl-J.js → MemberList-C1CdR6m8.js} +103 -105
  33. package/dist/{MemberTransactions-BEF-4ZNp.js → MemberTransactions-BhSWE28t.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js → MessageInput.vue_vue_type_script_setup_true_lang-DqkkAHPc.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-D6h_DlFU.js} +1 -1
  36. package/dist/{Mission-jg15lBxo.js → Mission-DZgMAkA4.js} +22 -21
  37. package/dist/{Overview-BFKLTAk1.js → Overview-BtV1gIgD.js} +145 -144
  38. package/dist/{Overview-C7WfdzfV.js → Overview-o0WZa6xE.js} +20 -20
  39. package/dist/{Point-dv9WgWTQ.js → Point-BdeI3vOp.js} +22 -21
  40. package/dist/{Promotion-mFPF_8jO.js → Promotion-eYwTP1qU.js} +137 -131
  41. package/dist/{Queue-BQoR_M5H.js → Queue-C72lnZ0G.js} +45 -45
  42. package/dist/{Record-1JZ1N5iX.js → Record-D1lHOQjk.js} +9 -9
  43. package/dist/{Review-B52AxCeT.js → Review-CbXC2Up5.js} +2 -2
  44. package/dist/ReviewFacebookCallback-BckFN6Dh.js +225 -0
  45. package/dist/{ReviewGoogleCallback-DO6SVFIC.js → ReviewGoogleCallback-CdBzIoTM.js} +5 -5
  46. package/dist/{Reward-Cp4jPAB0.js → Reward-hov1NEKT.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js → RewardGroup.vue_vue_type_script_setup_true_lang-C65e4Bjf.js} +13 -13
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-04yLkHZC.js +1923 -0
  49. package/dist/{Segment-DaKw0YXF.js → Segment-CLl-iQEV.js} +303 -306
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-cNl8HWu7.js} +14 -14
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW40ulZz.js} +4 -4
  52. package/dist/{Setting-DveUrt8J.js → Setting-DUQnhLNq.js} +159 -148
  53. package/dist/{SettingAdvertisements-QRXOMNnM.js → SettingAdvertisements-BSn0-F2x.js} +12 -12
  54. package/dist/Settings-D_YrG-1N.js +286 -0
  55. package/dist/{Store-DjdXRw3V.js → Store-CDYO-NC0.js} +28 -28
  56. package/dist/{StoreRewards-CjlGrc9E.js → StoreRewards-DJh59Fob.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DZGywP7T.js +1319 -0
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-YIWh91VO.js +7007 -0
  59. package/dist/{Tier-D74Oh2np.js → Tier-BW6W3yBu.js} +2575 -687
  60. package/dist/{Title-CeeviOW8.js → Title-B2eCIHuR.js} +95 -94
  61. package/dist/{Transaction-CWdw0ITl.js → Transaction-DPoCHqkz.js} +2 -2
  62. package/dist/Upselling-Bc8sJPTF.js +1013 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B5aLnMyK.js} +26 -26
  64. package/dist/{Voucher-C0nNXMtv.js → Voucher-B6nQmBiS.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BdPZ41yo.js} +12 -12
  66. package/dist/{WhatsappAccount-CoLSjCQ2.js → WhatsappAccount-Ciq2u7nb.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-tkb0lN-h.js} +1 -1
  68. package/dist/{WhatsappBot-kLb3kUav.js → WhatsappBot-BYpVe09e.js} +6 -6
  69. package/dist/{WhatsappBotLogs-jcYaHs0t.js → WhatsappBotLogs-CgHw2yge.js} +6 -6
  70. package/dist/{WhatsappBotSettings-B6jJD61h.js → WhatsappBotSettings-BwpFbl7Z.js} +4 -4
  71. package/dist/{WhatsappLayout-C24bIjI2.js → WhatsappLayout-CwpwPh6N.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DO9SPgkB.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js → ZodTextField.vue_vue_type_script_setup_true_lang-C2jWAGpk.js} +2 -2
  74. package/dist/{app-C06bAZj3.js → app-vKvoaMkb.js} +4181 -3401
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-CgNRhKu8.js → base.export-ohC--hGH.js} +2 -2
  77. package/dist/{business-D23Dt1x4.js → business-28bym_1L.js} +1 -1
  78. package/dist/{campaign-DfEvGigm.js → campaign-DMboDbth.js} +121 -94
  79. package/dist/{campaign-FVcbXtrP.js → campaign-DgPBKJb-.js} +34 -28
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/campaign.fn-CFGvGCnh.js +776 -0
  82. package/dist/{collection.fn-DC1AMI9o.js → collection.fn-D1_zLTmc.js} +2 -2
  83. package/dist/{currency-Bra2RJK4.js → currency-DMOuxF-S.js} +1 -1
  84. package/dist/duplicateCampaign-DUktLBHE.js +51 -0
  85. package/dist/{effect-EL4V3pAu.js → effect-B5u1fe_H.js} +1 -1
  86. package/dist/{email-addresses-Ddtf1x_y.js → email-addresses-DlCCiXKC.js} +2 -2
  87. package/dist/{feature-flag-umACX47C.js → feature-flag-CjzcqKbW.js} +70 -70
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-DqDOnLCf.js → helper-B6jcRgk4.js} +1 -1
  90. package/dist/{index-ByVPdKdB.js → index-B2wPJtZQ.js} +682 -581
  91. package/dist/{index-B2lqC_hH.js → index-Bf8aQe9s.js} +1 -1
  92. package/dist/{index-C6p9Lsvf.js → index-BoxhFA0T.js} +1 -1
  93. package/dist/{index-TDCPGtW3.js → index-BuuNZzmf.js} +389 -232
  94. package/dist/{index-C3hAzzS2.js → index-CNc35JQ-.js} +29 -15
  95. package/dist/{index-C3lk4GHF.js → index-CQJRkES4.js} +4 -4
  96. package/dist/{index-BTjhdlN_.js → index-CYyJd65t.js} +1 -1
  97. package/dist/{index-CEh6ryp2.js → index-CuqYl8B1.js} +19 -6
  98. package/dist/{index-BroF2fC8.js → index-CxKq67I1.js} +608 -251
  99. package/dist/{index-DK9zxpDu.js → index-D2ZgTMnz.js} +3 -3
  100. package/dist/{index-Bvk61_w_.js → index-DAJ0XegF.js} +1 -1
  101. package/dist/{index-pfmx-Gor.js → index-DCKK1jWV.js} +2 -2
  102. package/dist/{index-B3U3KZl0.js → index-DEixqEZl.js} +2 -2
  103. package/dist/{index-iVbjwKxc.js → index-DLxrYNl3.js} +10 -10
  104. package/dist/{index-LjoAs_nX.js → index-DPwp9uUi.js} +10 -10
  105. package/dist/{index-rcfcslIC.js → index-DYkwpfhH.js} +197 -197
  106. package/dist/{index-BkKu2G2c.js → index-DfRs6Yvh.js} +2 -2
  107. package/dist/{index-BzwwXWpZ.js → index-EJ2519DL.js} +1 -1
  108. package/dist/{index-B_BmgKrh.js → index-hbfWGXN8.js} +2699 -2613
  109. package/dist/{index-DuCJtx1m.js → index-wOCVa2Eh.js} +1 -1
  110. package/dist/{index.esm2017-DCuQPCX2.js → index.esm2017-C3o6d_kv.js} +111 -111
  111. package/dist/{loading-CQm1DKWE.js → loading-Dbol8f8F.js} +1 -1
  112. package/dist/{lodash-C2wVbAap.js → lodash-FYmuGFr2.js} +1 -1
  113. package/dist/{member-import-BLEmTRso.js → member-import-FmqKKCXM.js} +1 -1
  114. package/dist/{membership-XycnxPEW.js → membership-CMsYIvf9.js} +2 -2
  115. package/dist/{money-DY_QGzd1.js → money-DMsQ8s71.js} +1 -1
  116. package/dist/{number-BHthf4qF.js → number-D_xzX-4k.js} +1 -1
  117. package/dist/objectid-Wc5m2Orq.js +145 -0
  118. package/dist/{onboarding-BOJw54Fn.js → onboarding-k2Qm1tTl.js} +36 -36
  119. package/dist/{onboardingSetup-Cf2u1tXu.js → onboardingSetup-DJeJJn0h.js} +2 -2
  120. package/dist/{plugins-DKQeoL_e.js → plugins-lVdrZkVB.js} +3 -3
  121. package/dist/{reward-D4RIYSpl.js → reward-BoH6x-Iu.js} +1 -1
  122. package/dist/{rule-Ba-s0L_w.js → rule-4QLYlkQ-.js} +572 -492
  123. package/dist/style.css +1 -1
  124. package/dist/template-DLUzJbvo.js +224 -0
  125. package/dist/{timezone-CAc8xi1h.js → timezone-BV11O4o0.js} +1 -1
  126. package/dist/{transaction.fn-Cp2hnhyU.js → transaction.fn-5ws2MHHG.js} +2 -2
  127. package/dist/{trigger-3ebhNBX7.js → trigger-DHq8ksaN.js} +9 -9
  128. package/dist/{useMarketingMaterialActions-6URv8neP.js → useMarketingMaterialActions-DhBVUMSG.js} +4 -4
  129. package/dist/{usePagination-C-fyMmiy.js → usePagination-t6nU2p5V.js} +1 -1
  130. package/dist/{user-T-iXTrYV.js → user-KJLOr9ee.js} +1 -1
  131. package/dist/vue-i18n-DCq2tYAx.js +2365 -0
  132. package/dist/{xlsx-B8OqaJfb.js → xlsx-BkxKl6H8.js} +224 -224
  133. package/dist/{zod-DZkNj425.js → zod-CLLw9flE.js} +1 -1
  134. package/package.json +8 -3
  135. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +0 -3493
  136. package/dist/ReviewFacebookCallback-ihTdiI8V.js +0 -238
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +0 -1884
  138. package/dist/Settings-D9D-mkBa.js +0 -179
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +0 -1265
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +0 -142
  141. package/dist/campaign.fn-0MNUj1fZ.js +0 -776
  142. package/dist/google-C3S8u0mT.js +0 -4
  143. package/dist/objectid-CPCAqIiC.js +0 -145
  144. package/dist/rule-builder-D0B0DPao.js +0 -102
  145. package/dist/template-B40I16Yg.js +0 -236
  146. package/dist/vue-i18n-DzsxJorb.js +0 -2365
@@ -0,0 +1,224 @@
1
+ import { defineComponent as L, openBlock as m, createBlock as x, resolveDynamicComponent as A, unref as e, ref as B, computed as j, onMounted as M, resolveComponent as g, withCtx as r, createElementVNode as l, createElementBlock as w, createVNode as c, normalizeClass as b, createTextVNode as k, toDisplayString as u, Fragment as S, renderList as I, createCommentVNode as N } from "vue";
2
+ import { _ as q } from "./remy-icon-BhUGu2NI.js";
3
+ import { u as J } from "./campaign-DgPBKJb-.js";
4
+ import { useDialog as G } from "@feedmepos/ui-library";
5
+ import { F as H } from "./index-CxKq67I1.js";
6
+ import { _ as U } from "./lodash-FYmuGFr2.js";
7
+ import { C as K } from "./campaign-DMboDbth.js";
8
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as W } from "./vue-i18n-DCq2tYAx.js";
10
+ import { u as X } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjrUbq3p.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) => (m(), x(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" }, me = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, re = { 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 C, _;
49
+ return ((_ = (C = a.defaultValue) == null ? void 0 : C.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({ prompt: i.join(" ") });
72
+ }
73
+ function E() {
74
+ const i = n.value.template;
75
+ s.onOk(y.templates.find((a) => a._id === i)), p.close();
76
+ }
77
+ return (i, a) => {
78
+ const C = g("FmChip"), _ = g("FmListItem"), P = g("FmList"), F = g("FmCard"), v = g("FmButton"), z = g("FmSpacer");
79
+ return m(), x(F, { class: "h-[534px] max-w-6xl" }, {
80
+ default: r(() => [
81
+ l("div", ee, [
82
+ s.campaignType ? N("", !0) : (m(), w("div", te, [
83
+ c(P, null, {
84
+ default: r(() => [
85
+ c(_, {
86
+ class: b([{
87
+ "bg-fm-color-system-warning-100": e(n).intention === null
88
+ }, "rounded-sm"]),
89
+ onClick: a[0] || (a[0] = (o) => {
90
+ e(n).intention = null, e(n).template = null;
91
+ })
92
+ }, {
93
+ append: r(() => [
94
+ c(C, {
95
+ label: e(t)("connect.templateDialog.hot"),
96
+ variant: "critical"
97
+ }, null, 8, ["label"])
98
+ ]),
99
+ default: r(() => [
100
+ k(u(e(t)("connect.templateDialog.mostPopular")) + " ", 1)
101
+ ]),
102
+ _: 1
103
+ }, 8, ["class"]),
104
+ (m(!0), w(S, null, I(e(H).options, (o, h) => (m(), x(_, {
105
+ key: h,
106
+ class: b(["rounded-sm", {
107
+ "bg-fm-color-system-warning-100": e(n).intention === o
108
+ }]),
109
+ style: { padding: "8px 16px" },
110
+ onClick: (T) => {
111
+ e(n).intention = o, e(n).template = null;
112
+ }
113
+ }, {
114
+ default: r(() => [
115
+ k(u(e(t)(`connect.templateDialog.intention.${o}`)), 1)
116
+ ]),
117
+ _: 2
118
+ }, 1032, ["class", "onClick"]))), 128))
119
+ ]),
120
+ _: 1
121
+ })
122
+ ])),
123
+ l("div", ne, [
124
+ l("div", oe, [
125
+ l("div", le, u(s.campaignType ? e(t)(`connect.templateDialog.campaignType.${s.campaignType}`) : e(t)("connect.templateDialog.templateList")), 1),
126
+ l("div", ae, u(e(t)("connect.templateDialog.subtitle")), 1)
127
+ ]),
128
+ l("div", se, [
129
+ c(Q, { json: e(D) }, null, 8, ["json"]),
130
+ l("div", ie, [
131
+ (m(!0), w(S, null, I(e(D), (o, h) => (m(), x(F, {
132
+ key: h,
133
+ variant: "outlined",
134
+ class: b(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
135
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(n).template === o._id.toString()
136
+ }]),
137
+ onClick: (T) => e(n).template = o._id.toString()
138
+ }, {
139
+ default: r(() => {
140
+ var T, O;
141
+ return [
142
+ l("div", ce, [
143
+ c(Z, {
144
+ type: (O = (T = o.defaultValue) == null ? void 0 : T.campaign) == null ? void 0 : O.type
145
+ }, null, 8, ["type"])
146
+ ]),
147
+ l("div", pe, u(e(d)(o.name_locale, o.name)), 1),
148
+ l("p", me, u(e(d)(o.description_locale, o.description ?? "")), 1)
149
+ ];
150
+ }),
151
+ _: 2
152
+ }, 1032, ["class", "onClick"]))), 128))
153
+ ])
154
+ ]),
155
+ l("div", re, [
156
+ c(v, {
157
+ class: "sm:w-full xs:w-full",
158
+ variant: "plain",
159
+ label: e(t)("connect.templateDialog.customCampaign"),
160
+ size: "md",
161
+ onClick: R
162
+ }, null, 8, ["label"]),
163
+ s.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
164
+ s.campaignType
165
+ ) ? (m(), x(v, {
166
+ key: 0,
167
+ class: "sm:w-full xs:w-full",
168
+ variant: "tertiary",
169
+ label: e(t)("connect.templateDialog.askRemy"),
170
+ size: "md",
171
+ onClick: V
172
+ }, {
173
+ default: r(() => [
174
+ l("span", ue, [
175
+ a[2] || (a[2] = l("img", {
176
+ src: q,
177
+ alt: "",
178
+ class: "w-[20px] h-[20px]"
179
+ }, null, -1)),
180
+ k(" " + u(e(t)("connect.templateDialog.askRemy")), 1)
181
+ ])
182
+ ]),
183
+ _: 1
184
+ }, 8, ["label"])) : N("", !0),
185
+ c(z, { class: "sm:hidden xs:hidden" }),
186
+ c(v, {
187
+ class: "sm:w-full xs:w-full",
188
+ variant: "tertiary",
189
+ label: e(t)("connect.templateDialog.cancel"),
190
+ size: "md",
191
+ onClick: a[1] || (a[1] = (o) => e(p).close())
192
+ }, null, 8, ["label"]),
193
+ c(v, {
194
+ class: "sm:w-full xs:w-full",
195
+ variant: "primary",
196
+ label: e(t)("connect.templateDialog.start"),
197
+ size: "md",
198
+ disabled: !e(n).template,
199
+ onClick: E
200
+ }, null, 8, ["label", "disabled"])
201
+ ])
202
+ ])
203
+ ])
204
+ ]),
205
+ _: 1
206
+ });
207
+ };
208
+ }
209
+ }), ke = (f, t) => ({
210
+ open: async (d) => {
211
+ t.open({
212
+ title: "",
213
+ dialogComponent: de,
214
+ dialogComponentProps: {
215
+ campaignType: f,
216
+ onOk: async (p) => (console.debug(p, "selected template"), await d(p))
217
+ },
218
+ overlay: !0
219
+ });
220
+ }
221
+ });
222
+ export {
223
+ ke as u
224
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-iVbjwKxc.js";
1
+ import { e as a } from "./index-DLxrYNl3.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-ByVPdKdB.js";
2
- import { s as u } from "./index-C3lk4GHF.js";
1
+ import "./index-B2wPJtZQ.js";
2
+ import { s as u } from "./index-CQJRkES4.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-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";
2
+ import "./index-hbfWGXN8.js";
3
+ import { R as i } from "./index-CxKq67I1.js";
4
+ import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-04yLkHZC.js";
5
+ import { l as e, C as d } from "./index-BuuNZzmf.js";
6
+ import { i as n } from "./plugins-lVdrZkVB.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-DzsxJorb.js";
1
+ import { u as b } from "./vue-i18n-DCq2tYAx.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
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";
3
+ import { c as k, p as I } from "./plugins-lVdrZkVB.js";
4
+ import { S as o, g as c, d as M } from "./index-DLxrYNl3.js";
5
+ import { u as y } from "./loading-Dbol8f8F.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-C2wVbAap.js";
3
+ import { l as E } from "./lodash-FYmuGFr2.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-DKQeoL_e.js";
2
+ import { c as f } from "./plugins-lVdrZkVB.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;