@feedmepos/mf-connect 0.1.128-dev → 0.1.128-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 (149) hide show
  1. package/dist/{App-CPSC0ccq.js → App-DFXou0ZK.js} +215 -223
  2. package/dist/{Bin-Cn7sCPql.js → Bin-ril4yEp7.js} +8 -8
  3. package/dist/{Broadcast-bR7HAyV2.js → Broadcast-CcseZmao.js} +21 -22
  4. package/dist/{CampaignAnalytic-Dnpw_Jwo.js → CampaignAnalytic-DaJ5a6G1.js} +6 -6
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsmgbhtH.js} +10 -9
  6. package/dist/{Card-BE3Y0KHF.js → Card-D7sTDXgf.js} +23 -23
  7. package/dist/{Collections-CLSp9Uah.js → Collections-C6d4vkox.js} +185 -197
  8. package/dist/{Credit-DgMyKROt.js → Credit-B9JCYQYi.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CwD5dRnJ.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cteezb57.js +3638 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js → EffectSheet.vue_vue_type_style_index_0_lang-BMxA26t5.js} +33 -33
  12. package/dist/{Experience-CCeRbvIe.js → Experience-pBNjY5aC.js} +31 -32
  13. package/dist/{FileSaver.min-D8Rw2VVN.js → FileSaver.min-BdA7jj3J.js} +1 -1
  14. package/dist/{Game-CYGg8vWQ.js → Game-Ba1LqaLj.js} +18 -19
  15. package/dist/{GiftCardSetup-rzea90xr.js → GiftCardSetup-DteySO0t.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DxFGFA_U.js} +128 -140
  17. package/dist/{Goals-BnZfK7a3.js → Goals-D4rLwe3y.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js → ImageInput.vue_vue_type_script_setup_true_lang-C-1uplPm.js} +1 -1
  19. package/dist/{Index-DjZi_lVg.js → Index-DZ9bEViq.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js → LocationPicker.vue_vue_type_script_setup_true_lang-DS3y4uib.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BTHmofSe.js} +1 -1
  22. package/dist/{LoyaltyDashboard-C3TZSSQz.js → LoyaltyDashboard-CBMyLX7W.js} +14 -14
  23. package/dist/{MainLayout-uNGpBpJi.js → MainLayout-B3-DumYs.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js → MainLayout.vue_vue_type_script_setup_true_lang-BWOWZMYx.js} +3 -3
  25. package/dist/{Marketing-SXmxcw3-.js → Marketing-CJiu6eP4.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-DK0tjHpF.js → MarketingMaterialEdit-BuHpXGwZ.js} +211 -214
  27. package/dist/{Member-BFSwupq6.js → Member-AOxxLQ-x.js} +7 -7
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-cGglvqwB.js +1308 -0
  29. package/dist/{MemberImportHistory-z12l_IAQ.js → MemberImportHistory-o-ruPMEe.js} +7 -7
  30. package/dist/{MemberList-DfN7ur0J.js → MemberList-BkX_jgos.js} +105 -103
  31. package/dist/{MemberTransactions-Bntt4bRR.js → MemberTransactions-Bnc3BWr5.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js → MessageInput.vue_vue_type_script_setup_true_lang-DoUw4U88.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BHprSEKu.js} +1 -1
  34. package/dist/{Mission-CvpeYVjB.js → Mission-D80DxR7z.js} +21 -22
  35. package/dist/{Overview-BtTkltlY.js → Overview-9gdETQLU.js} +144 -145
  36. package/dist/{Overview-BkaFC5La.js → Overview-jb3HWI09.js} +21 -21
  37. package/dist/{Point-CpNAFABM.js → Point-Pf_s2Ggb.js} +21 -22
  38. package/dist/{Promotion-B_vD_9UF.js → Promotion-BjjugEKH.js} +131 -137
  39. package/dist/{Queue-D5jDhI0f.js → Queue-CVWdBEvK.js} +46 -46
  40. package/dist/{Record-EsNXzy4D.js → Record-BS9lp0Cs.js} +9 -9
  41. package/dist/{Review-ByMrkymf.js → Review-1MRQGLAX.js} +2 -2
  42. package/dist/ReviewFacebookCallback-DuuQxEIK.js +238 -0
  43. package/dist/{ReviewGoogleCallback-BzU-hUy5.js → ReviewGoogleCallback-8kzG-TMh.js} +5 -5
  44. package/dist/{Reward-kxAuVGDE.js → Reward-UPonEShz.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js → RewardGroup.vue_vue_type_script_setup_true_lang-CW-EEgDZ.js} +14 -14
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BmTEULNC.js +1884 -0
  47. package/dist/{Segment-C5SJs7al.js → Segment-BsNstBo-.js} +307 -304
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-3uc5TjrH.js} +15 -15
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CKc0Q7pK.js} +4 -4
  50. package/dist/{Setting-zmlu3QcR.js → Setting-BD-fl3v8.js} +17 -17
  51. package/dist/{SettingAdvertisements-DewXGZoE.js → SettingAdvertisements-DG1btpAQ.js} +12 -12
  52. package/dist/Settings-LPdO0Djy.js +179 -0
  53. package/dist/{Store-CiTwDcgr.js → Store-CQe1YA-D.js} +29 -29
  54. package/dist/{StoreRewards-DaOJxsVm.js → StoreRewards-C7z5eJc4.js} +15 -15
  55. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CvX_M1KW.js} +25 -25
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DmeOGncB.js +142 -0
  57. package/dist/{Tier-lNI7GWMP.js → Tier-BBb_E8_V.js} +688 -2583
  58. package/dist/{Title-CDxDztnl.js → Title-CjJaca4P.js} +95 -96
  59. package/dist/{Transaction-CcsUvIns.js → Transaction-Dn-EPCom.js} +2 -2
  60. package/dist/{Upselling-BDirPkWX.js → Upselling-DB8HU6B_.js} +3 -3
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BG2o3Nip.js} +26 -26
  62. package/dist/{Voucher-CJDo5U_P.js → Voucher-Cwg3WelV.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CRz0wdSO.js} +12 -12
  64. package/dist/{WhatsappAccount-CQBti7RJ.js → WhatsappAccount--SMCex1D.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BpZ0_NtK.js} +1 -1
  66. package/dist/{WhatsappBot-91lIlikm.js → WhatsappBot-2BTZU0cI.js} +7 -7
  67. package/dist/{WhatsappBotLogs-PQTwT8e5.js → WhatsappBotLogs-nGIYzZCU.js} +5 -5
  68. package/dist/{WhatsappBotSettings-CUES9UL-.js → WhatsappBotSettings-DBx7ezqA.js} +5 -5
  69. package/dist/{WhatsappLayout-pZGYJj0J.js → WhatsappLayout-DK2idBeB.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-B-pAId0k.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js → ZodTextField.vue_vue_type_script_setup_true_lang-DYpCPJDx.js} +2 -2
  72. package/dist/{app--pRyBODF.js → app-DjtVpjOD.js} +3522 -4286
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-CSdCmt-6.js → base.export-Dc9I7xbt.js} +2 -2
  75. package/dist/business-C0Ej4JRP.js +82 -0
  76. package/dist/{campaign-CwQjWU63.js → campaign-BNgMmhg6.js} +94 -121
  77. package/dist/{campaign-t9ubUkjB.js → campaign-U8KBANd_.js} +25 -31
  78. package/dist/{campaign.enum-Damu7hgo.js → campaign.enum-mYG3oWwU.js} +2 -3
  79. package/dist/campaign.fn-BaBPV7He.js +776 -0
  80. package/dist/{collectible.enum-C8LbgIQ7.js → collectible.enum-BtBBkbIB.js} +1 -1
  81. package/dist/{collection.fn-BV7pDqa5.js → collection.fn-lFr9HoHC.js} +2 -2
  82. package/dist/{currency-pS0xeJA6.js → currency-B6GBpIWb.js} +1 -1
  83. package/dist/{effect-B532leFF.js → effect-DmzU8TpX.js} +1 -1
  84. package/dist/{email-addresses-CKkT_5O5.js → email-addresses-s_oiQY8W.js} +2 -2
  85. package/dist/{feature-flag-25oDCLLB.js → feature-flag-CRbNgxfa.js} +84 -84
  86. package/dist/google-C3S8u0mT.js +4 -0
  87. package/dist/{helper-DxOj04aq.js → helper-0o3cPptM.js} +1 -1
  88. package/dist/{index-BViMt33t.js → index-B6BmfoiZ.js} +1 -1
  89. package/dist/{index-BLRv_4gJ.js → index-BECZ4ORu.js} +1 -1
  90. package/dist/{index-uCkkfjE3.js → index-BMG5fllq.js} +4 -4
  91. package/dist/{index-ClD2-18P.js → index-BXi5bQbd.js} +6 -19
  92. package/dist/{index-DqQ1q8sX.js → index-Bql1JMH9.js} +19 -26
  93. package/dist/{index-DBT1f1M3.js → index-BvoYHJ0i.js} +2 -2
  94. package/dist/{index-CBYY3VEG.js → index-C9MKLJzw.js} +2614 -2700
  95. package/dist/{index-C_qmnOKQ.js → index-CPByCjHI.js} +9 -9
  96. package/dist/{index-DSAEs8u0.js → index-CZWCtODZ.js} +1 -1
  97. package/dist/{index-BCgTcZ7c.js → index-CigqpRCP.js} +252 -609
  98. package/dist/{index-BFJ2FmB4.js → index-Cnl3vaVR.js} +2 -2
  99. package/dist/{index-DVlo0TO9.js → index-CxxWGkQz.js} +23 -23
  100. package/dist/{index-BX6lcJDB.js → index-DLcl6mHQ.js} +1 -1
  101. package/dist/{index-DEENB4la.js → index-DMgSW1aH.js} +664 -664
  102. package/dist/{index-DBzCfWxW.js → index-DNx-iJd1.js} +2 -2
  103. package/dist/{index-ip2EqUEW.js → index-DQLDjCeb.js} +1 -1
  104. package/dist/{index-B3sR1LMa.js → index-DXV_Kdhp.js} +7 -7
  105. package/dist/{index-DiYuhtNS.js → index-Df5CnMjC.js} +4 -4
  106. package/dist/{index-Diw9710S.js → index-DphGTJkl.js} +4 -4
  107. package/dist/{index-BHnMLtU2.js → index-NOeUp1Wc.js} +235 -381
  108. package/dist/{index-C6pr4oIv.js → index-NhHbOATm.js} +1243 -1315
  109. package/dist/{index-C7wVaeC1.js → index-iEzy3892.js} +1 -1
  110. package/dist/{index.esm2017-DRrIFPLo.js → index.esm2017-DpKkF6uX.js} +57 -57
  111. package/dist/{loading--SZI7Tpo.js → loading-nQaPRntd.js} +1 -1
  112. package/dist/{lodash-BZqvXM_P.js → lodash-B6558zRv.js} +1 -1
  113. package/dist/{member-import-Bmt1OdRW.js → member-import-DWDpO4uU.js} +2 -2
  114. package/dist/{membership-BTFpH7Mg.js → membership-BY1-idAv.js} +3 -3
  115. package/dist/{money-BVtlYyxo.js → money-DE62jPYV.js} +1 -1
  116. package/dist/{number-DrOdGSrF.js → number-C9mUt-Ac.js} +1 -1
  117. package/dist/objectid-DyUyXFvt.js +145 -0
  118. package/dist/{onboarding-BjcSBC8v.js → onboarding-OTAVtlNj.js} +25 -25
  119. package/dist/{onboardingSetup-Dcv8i8qd.js → onboardingSetup-DhwhJk-r.js} +2 -2
  120. package/dist/{plugins-Iw52rJ1s.js → plugins-CpxP-Bn_.js} +3 -3
  121. package/dist/{reward-DF9tE7iA.js → reward-yx-Ttob3.js} +1 -1
  122. package/dist/{rule-rCPhlgAq.js → rule-C_T37PuL.js} +492 -572
  123. package/dist/rule-builder-WoEQdgK2.js +102 -0
  124. package/dist/style.css +1 -1
  125. package/dist/template-AnoXsK9Y.js +275 -0
  126. package/dist/{transaction.fn-Cp3ylqFD.js → transaction.fn-4IcKHgri.js} +2 -2
  127. package/dist/{trigger-O6JvCms4.js → trigger-8zSNA5H1.js} +9 -9
  128. package/dist/{useMarketingMaterialActions-Cnadk3AO.js → useMarketingMaterialActions-CXjA7dhm.js} +4 -4
  129. package/dist/{usePagination-C5lSxdqt.js → usePagination-BECgW_Yq.js} +1 -1
  130. package/dist/{user-B7iv0TRE.js → user-Czn9R1f-.js} +1 -1
  131. package/dist/vue-i18n-BJWf_QrH.js +2365 -0
  132. package/dist/{xlsx-DTJ6bUKL.js → xlsx-3kbv63FT.js} +440 -440
  133. package/dist/{zod-cIIx_Ng9.js → zod-DMdtnaR4.js} +1 -1
  134. package/package.json +3 -7
  135. package/dist/AuditLogs-CgrYStwa.js +0 -2016
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +0 -4584
  137. package/dist/Grab-BRbn6ffm.js +0 -301
  138. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +0 -1322
  139. package/dist/ReviewFacebookCallback-BDl6NBkw.js +0 -225
  140. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +0 -1923
  141. package/dist/Settings-5HU_uY6B.js +0 -286
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +0 -7007
  143. package/dist/business-BtEfH8Mt.js +0 -83
  144. package/dist/campaign.fn-D3_OzyyQ.js +0 -776
  145. package/dist/duplicateCampaign-19CDT2kM.js +0 -51
  146. package/dist/google-BQK68wbe.js +0 -5
  147. package/dist/objectid-DdJFC6TI.js +0 -145
  148. package/dist/template-v1F1rvUU.js +0 -227
  149. package/dist/vue-i18n-CYFvlTTS.js +0 -2365
@@ -0,0 +1,275 @@
1
+ import { p as M, i as T } from "./plugins-CpxP-Bn_.js";
2
+ import { _ as I } from "./lodash-B6558zRv.js";
3
+ import { defineComponent as N, openBlock as u, createBlock as C, resolveDynamicComponent as j, unref as o, ref as Y, computed as W, onMounted as G, resolveComponent as _, withCtx as f, createElementVNode as s, createElementBlock as h, createVNode as m, normalizeClass as w, createTextVNode as k, toDisplayString as g, Fragment as O, renderList as A, createCommentVNode as F } from "vue";
4
+ import { _ as H } from "./remy-icon-BhUGu2NI.js";
5
+ import { u as q } from "./campaign-U8KBANd_.js";
6
+ import { useDialog as J } from "@feedmepos/ui-library";
7
+ import { F as U } from "./index-CigqpRCP.js";
8
+ import { C as K } from "./campaign-BNgMmhg6.js";
9
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
10
+ import { u as X } from "./vue-i18n-BJWf_QrH.js";
11
+ import { u as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cteezb57.js";
12
+ import { u as ee } from "./remy-Qz_pNsUS.js";
13
+ function Le(e) {
14
+ return M.confirm(
15
+ T.global.t("connect.common.duplicate.confirmMessage", { name: e }),
16
+ T.global.t("connect.common.duplicate.title"),
17
+ T.global.t("connect.common.duplicate.proceed")
18
+ );
19
+ }
20
+ const te = ["LOYALTY", "NO_REWARD"], oe = {
21
+ GAME: [(e) => {
22
+ var t;
23
+ return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
24
+ }],
25
+ MISSION: [
26
+ (e) => e == null ? void 0 : e.rewards,
27
+ (e) => {
28
+ var t;
29
+ return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
30
+ }
31
+ ],
32
+ REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
33
+ };
34
+ function ne(e, t) {
35
+ e && e.forEach((n) => {
36
+ t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
37
+ });
38
+ }
39
+ function le(e) {
40
+ e._id = void 0;
41
+ }
42
+ function ie(e, t) {
43
+ e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, t || (e.campaign.collectible = void 0));
44
+ }
45
+ function se(e, t) {
46
+ e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
47
+ }
48
+ function ae(e) {
49
+ const t = oe[(e == null ? void 0 : e.type) ?? ""];
50
+ t && t.forEach((n) => {
51
+ ne(n(e), te);
52
+ });
53
+ }
54
+ function Pe(e, t = {}) {
55
+ const n = I.cloneDeep(e), { keepCollectible: c = !1 } = t, d = n.campaign;
56
+ return le(n), ie(n, c), se(n, c), ae(d), n;
57
+ }
58
+ const ce = /* @__PURE__ */ N({
59
+ __name: "CampaignChip",
60
+ props: {
61
+ type: { type: String, required: !0 }
62
+ },
63
+ setup(e) {
64
+ const n = K[e.type];
65
+ return (c, d) => (u(), C(j(o(n).chip())));
66
+ }
67
+ }), re = { class: "flex flex-nowrap gap-x-2 grow h-full" }, pe = {
68
+ key: 0,
69
+ class: "p-8 w-1/4"
70
+ }, me = { class: "flex flex-col grow p-24" }, ue = { class: "space-y-4" }, de = { class: "fm-typo-en-title-sm-800" }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ge = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, _e = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ye = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex gap-4 items-end justify-end py-8" }, xe = { class: "flex items-center gap-8" }, De = /* @__PURE__ */ N({
71
+ __name: "TemplateDialog",
72
+ props: {
73
+ campaignType: {
74
+ type: String,
75
+ default: () => {
76
+ }
77
+ },
78
+ onOk: {
79
+ type: Function,
80
+ required: !0
81
+ }
82
+ },
83
+ setup(e) {
84
+ const { t } = X(), { getLocaleText: n } = Z(), c = J(), d = q(), L = ee(), r = e, l = Y({
85
+ intention: null,
86
+ template: null
87
+ }), R = W(() => {
88
+ const p = (d.templates ?? []).filter(
89
+ () => !0
90
+ //t.intention && t.intention.length > 0
91
+ );
92
+ return r.campaignType ? p.filter(
93
+ (a) => {
94
+ var v, y;
95
+ return ((y = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : y.type) === r.campaignType;
96
+ }
97
+ ) : l.value.intention === null ? I.sampleSize(p, 7) : p.filter(
98
+ (a) => a.intention.includes(l.value.intention)
99
+ );
100
+ });
101
+ G(async () => {
102
+ await d.readTemplates();
103
+ });
104
+ function P() {
105
+ r.onOk(void 0), c.close();
106
+ }
107
+ function V() {
108
+ const p = [t("connect.templateDialog.remyPrompt")];
109
+ r.campaignType && p.push(
110
+ t("connect.templateDialog.remyCampaignType", {
111
+ type: t(`connect.templateDialog.campaignType.${r.campaignType}`)
112
+ })
113
+ ), l.value.intention && p.push(
114
+ t("connect.templateDialog.remyGoal", {
115
+ goal: t(`connect.templateDialog.intention.${l.value.intention}`)
116
+ })
117
+ ), c.close(), L.activate({
118
+ prompt: p.join(" "),
119
+ forceNewConversation: !0
120
+ });
121
+ }
122
+ function $() {
123
+ const p = l.value.template;
124
+ r.onOk(d.templates.find((a) => a._id === p)), c.close();
125
+ }
126
+ return (p, a) => {
127
+ const v = _("FmChip"), y = _("FmListItem"), B = _("FmList"), E = _("FmCard"), b = _("FmButton"), z = _("FmSpacer");
128
+ return u(), C(E, { class: "h-[534px] max-w-6xl" }, {
129
+ default: f(() => [
130
+ s("div", re, [
131
+ r.campaignType ? F("", !0) : (u(), h("div", pe, [
132
+ m(B, null, {
133
+ default: f(() => [
134
+ m(y, {
135
+ class: w([{
136
+ "bg-fm-color-system-warning-100": o(l).intention === null
137
+ }, "rounded-sm"]),
138
+ onClick: a[0] || (a[0] = (i) => {
139
+ o(l).intention = null, o(l).template = null;
140
+ })
141
+ }, {
142
+ append: f(() => [
143
+ m(v, {
144
+ label: o(t)("connect.templateDialog.hot"),
145
+ variant: "critical"
146
+ }, null, 8, ["label"])
147
+ ]),
148
+ default: f(() => [
149
+ k(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
150
+ ]),
151
+ _: 1
152
+ }, 8, ["class"]),
153
+ (u(!0), h(O, null, A(o(U).options, (i, D) => (u(), C(y, {
154
+ key: D,
155
+ class: w(["rounded-sm", {
156
+ "bg-fm-color-system-warning-100": o(l).intention === i
157
+ }]),
158
+ style: { padding: "8px 16px" },
159
+ onClick: (x) => {
160
+ o(l).intention = i, o(l).template = null;
161
+ }
162
+ }, {
163
+ default: f(() => [
164
+ k(g(o(t)(`connect.templateDialog.intention.${i}`)), 1)
165
+ ]),
166
+ _: 2
167
+ }, 1032, ["class", "onClick"]))), 128))
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])),
172
+ s("div", me, [
173
+ s("div", ue, [
174
+ s("div", de, g(r.campaignType ? o(t)(`connect.templateDialog.campaignType.${r.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
175
+ s("div", fe, g(o(t)("connect.templateDialog.subtitle")), 1)
176
+ ]),
177
+ s("div", ge, [
178
+ m(Q, { json: o(R) }, null, 8, ["json"]),
179
+ s("div", _e, [
180
+ (u(!0), h(O, null, A(o(R), (i, D) => (u(), C(E, {
181
+ key: D,
182
+ variant: "outlined",
183
+ class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
184
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(l).template === i._id.toString()
185
+ }]),
186
+ onClick: (x) => o(l).template = i._id.toString()
187
+ }, {
188
+ default: f(() => {
189
+ var x, S;
190
+ return [
191
+ s("div", ye, [
192
+ m(ce, {
193
+ type: (S = (x = i.defaultValue) == null ? void 0 : x.campaign) == null ? void 0 : S.type
194
+ }, null, 8, ["type"])
195
+ ]),
196
+ s("div", Ce, g(o(n)(i.name_locale, i.name)), 1),
197
+ s("p", ve, g(o(n)(i.description_locale, i.description ?? "")), 1)
198
+ ];
199
+ }),
200
+ _: 2
201
+ }, 1032, ["class", "onClick"]))), 128))
202
+ ])
203
+ ]),
204
+ s("div", be, [
205
+ m(b, {
206
+ class: "sm:w-full xs:w-full",
207
+ variant: "plain",
208
+ label: o(t)("connect.templateDialog.customCampaign"),
209
+ size: "md",
210
+ onClick: P
211
+ }, null, 8, ["label"]),
212
+ r.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
213
+ r.campaignType
214
+ ) ? (u(), C(b, {
215
+ key: 0,
216
+ class: "sm:w-full xs:w-full",
217
+ variant: "tertiary",
218
+ label: o(t)("connect.templateDialog.askRemy"),
219
+ size: "md",
220
+ onClick: V
221
+ }, {
222
+ default: f(() => [
223
+ s("span", xe, [
224
+ a[2] || (a[2] = s("img", {
225
+ src: H,
226
+ alt: "",
227
+ class: "w-[20px] h-[20px]"
228
+ }, null, -1)),
229
+ k(" " + g(o(t)("connect.templateDialog.askRemy")), 1)
230
+ ])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])) : F("", !0),
234
+ m(z, { class: "sm:hidden xs:hidden" }),
235
+ m(b, {
236
+ class: "sm:w-full xs:w-full",
237
+ variant: "tertiary",
238
+ label: o(t)("connect.templateDialog.cancel"),
239
+ size: "md",
240
+ onClick: a[1] || (a[1] = (i) => o(c).close())
241
+ }, null, 8, ["label"]),
242
+ m(b, {
243
+ class: "sm:w-full xs:w-full",
244
+ variant: "primary",
245
+ label: o(t)("connect.templateDialog.start"),
246
+ size: "md",
247
+ disabled: !o(l).template,
248
+ onClick: $
249
+ }, null, 8, ["label", "disabled"])
250
+ ])
251
+ ])
252
+ ])
253
+ ]),
254
+ _: 1
255
+ });
256
+ };
257
+ }
258
+ }), Ve = (e, t) => ({
259
+ open: async (n) => {
260
+ t.open({
261
+ title: "",
262
+ dialogComponent: De,
263
+ dialogComponentProps: {
264
+ campaignType: e,
265
+ onOk: async (c) => (console.debug(c, "selected template"), await n(c))
266
+ },
267
+ overlay: !0
268
+ });
269
+ }
270
+ });
271
+ export {
272
+ Le as c,
273
+ Pe as p,
274
+ Ve as u
275
+ };
@@ -1,5 +1,5 @@
1
- import "./index-C6pr4oIv.js";
2
- import { s as u } from "./index-Diw9710S.js";
1
+ import "./index-NhHbOATm.js";
2
+ import { s as u } from "./index-DphGTJkl.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-CBYY3VEG.js";
3
- import { R as i } from "./index-BCgTcZ7c.js";
4
- import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js";
5
- import { l as e, C as d } from "./index-BHnMLtU2.js";
6
- import { i as n } from "./plugins-Iw52rJ1s.js";
2
+ import "./index-C9MKLJzw.js";
3
+ import { R as i } from "./rule-builder-WoEQdgK2.js";
4
+ import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BmTEULNC.js";
5
+ import { c as e, C as d } from "./index-NOeUp1Wc.js";
6
+ import { i as n } from "./plugins-CpxP-Bn_.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-CYFvlTTS.js";
1
+ import { u as b } from "./vue-i18n-BJWf_QrH.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-Iw52rJ1s.js";
4
- import { S as o, g as c, b as M } from "./index-B3sR1LMa.js";
5
- import { u as y } from "./loading--SZI7Tpo.js";
3
+ import { c as k, p as I } from "./plugins-CpxP-Bn_.js";
4
+ import { S as o, g as c, b as M } from "./index-DXV_Kdhp.js";
5
+ import { u as y } from "./loading-nQaPRntd.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-BZqvXM_P.js";
3
+ import { l as E } from "./lodash-B6558zRv.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-Iw52rJ1s.js";
2
+ import { c as f } from "./plugins-CpxP-Bn_.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;