@feedmepos/mf-connect 0.1.98-beta.34 → 0.1.98-beta.35

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 (110) hide show
  1. package/dist/{App-BR2UXO7l.js → App-CqaJHgau.js} +8 -8
  2. package/dist/{AuditLogs-BBD1wTXb.js → AuditLogs-BdR9OVOd.js} +9 -9
  3. package/dist/{Bin-DwrHg3SM.js → Bin-BXMPsU3x.js} +8 -8
  4. package/dist/{Broadcast-CDD_5WRc.js → Broadcast-CmmLPNMe.js} +11 -11
  5. package/dist/{CampaignAnalytic-RrQKMFge.js → CampaignAnalytic-BXpq7M5j.js} +6 -6
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqJ4eBqz.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dv-lJAyh.js} +6 -6
  7. package/dist/{Card-DtNiiVL5.js → Card-D_60uhz0.js} +18 -18
  8. package/dist/{Collections-DmHTGdZr.js → Collections-BUR8UbWY.js} +8 -8
  9. package/dist/{Credit-XUkEFWyO.js → Credit-CVbU_TMj.js} +12 -12
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1flbVc5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCZiCYr9.js} +31 -31
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B9RTx5e6.js → EffectSheet.vue_vue_type_style_index_0_lang-iEKX05mw.js} +6 -6
  12. package/dist/{Experience-8FQBl3Jk.js → Experience-Ck2M-J2g.js} +12 -12
  13. package/dist/{FileSaver.min-CJx_XKAF.js → FileSaver.min-CHkVhcqY.js} +1 -1
  14. package/dist/{Game-DtG-3-20.js → Game-B1GLhR4y.js} +13 -13
  15. package/dist/{Grab-D-d1UWrd.js → Grab-C8yffsg9.js} +9 -9
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CKScubJr.js → ImageInput.vue_vue_type_script_setup_true_lang-NSqGo812.js} +1 -1
  17. package/dist/{Index-CQFVY2_M.js → Index-BvzqRh6J.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BWaMK57y.js → LocationPicker.vue_vue_type_script_setup_true_lang-NEy6lnMG.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyANZcR6.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DdvNQjfa.js} +1 -1
  20. package/dist/{LoyaltyDashboard-hdaNCbqS.js → LoyaltyDashboard-DsVNm8mL.js} +7 -7
  21. package/dist/MainLayout-BLo_y7Wl.js +143 -0
  22. package/dist/{Marketing-CjmMZIjz.js → Marketing-D8LE0dFg.js} +7 -6
  23. package/dist/{MarketingMaterialEdit-C1W9eMIl.js → MarketingMaterialEdit-DWboUJCm.js} +15 -14
  24. package/dist/{Member-BNH1jrcb.js → Member-C7nigajy.js} +11 -11
  25. package/dist/{MemberList-BqINyMhD.js → MemberList-COssCE97.js} +25 -25
  26. package/dist/{MemberTransactions-0ajNUHJh.js → MemberTransactions-BooMDIrY.js} +1 -1
  27. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CwJaBsFN.js → MessageInput.vue_vue_type_script_setup_true_lang-C7LS41aV.js} +10 -10
  28. package/dist/{Mission-CjKBQ4hb.js → Mission-jMMVYxMI.js} +13 -13
  29. package/dist/{Overview-AX_6SxrE.js → Overview-5IgR3ElV.js} +3 -3
  30. package/dist/{Overview-CKnshNlU.js → Overview-kuDgwU9Z.js} +18 -18
  31. package/dist/{Point-ggQx_C1t.js → Point-CJMmaqkj.js} +12 -12
  32. package/dist/{Promotion-2eipp2Ey.js → Promotion-9FpcaJ-8.js} +13 -13
  33. package/dist/{Queue-Dt8Qh-VK.js → Queue-DPno9gJc.js} +10 -10
  34. package/dist/{Record-Ykk-3IbY.js → Record-BUPEdtLI.js} +9 -9
  35. package/dist/{Review-Bc7rBVWg.js → Review-B-17X1CT.js} +2 -2
  36. package/dist/{ReviewFacebookCallback-BqCM0C5t.js → ReviewFacebookCallback-BpihFmAo.js} +5 -5
  37. package/dist/{ReviewGoogleCallback-AusPx9Qd.js → ReviewGoogleCallback-H8y-GHMs.js} +5 -5
  38. package/dist/{Reward-BBuWaXxY.js → Reward-Bs9OcpGp.js} +16 -16
  39. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BmFszOzd.js → RewardGroup.vue_vue_type_script_setup_true_lang-CNR-bSY4.js} +11 -11
  40. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BmebXPla.js → RuleGroup.vue_vue_type_script_setup_true_lang-B156DWBm.js} +14 -14
  41. package/dist/{Segment-BRzfoGuE.js → Segment-BAEVLJWe.js} +24 -24
  42. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-ll1Zl1NM.js → SelectItems.vue_vue_type_script_setup_true_lang-C4p2WhU_.js} +2 -2
  43. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xYvyDS15.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-VPcoluL2.js} +12 -12
  44. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-1_KEGmQS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DCZCBVUV.js} +4 -4
  45. package/dist/{Setting-Dqd70ZVG.js → Setting-Bxzemc_i.js} +14 -14
  46. package/dist/{SettingAdvertisements-k0WfcX1K.js → SettingAdvertisements-Bq5Nj-7g.js} +12 -12
  47. package/dist/{Settings-BJtDdCkJ.js → Settings-Dl14KrA3.js} +5 -5
  48. package/dist/{Store-Ob71BJHB.js → Store-Ckk7ONrC.js} +21 -21
  49. package/dist/{StoreRewards-DJ3Ugt_h.js → StoreRewards-DWt0tOBO.js} +15 -15
  50. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CazJrfSC.js → StoreTransactions.vue_vue_type_script_setup_true_lang-xgewGqHC.js} +20 -20
  51. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DVDxB8wn.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CxO8-hfQ.js} +2 -2
  52. package/dist/{Tier-rtR9s70b.js → Tier-BGichFvr.js} +24 -24
  53. package/dist/{Title-Cj96AOQB.js → Title-BoiH2bwi.js} +21 -21
  54. package/dist/{Transaction-oyGtjd_T.js → Transaction-BCzVBGIQ.js} +2 -2
  55. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-SPHicnDN.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B13fFa9-.js} +6 -6
  56. package/dist/{Voucher-B5N-YGJK.js → Voucher-D01l2UpI.js} +14 -14
  57. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-der0dPTi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BzFo4eJ1.js} +12 -12
  58. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-YICmUY9J.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6R6aD3P.js} +2 -2
  59. package/dist/{app-DM6oVZsM.js → app-DCKRZQHI.js} +95 -60
  60. package/dist/app.js +1 -1
  61. package/dist/{business-BGKVouFN.js → business-BUmH9R9Z.js} +1 -1
  62. package/dist/{campaign-u9WwQFI9.js → campaign-DCxMD9wy.js} +7 -7
  63. package/dist/{campaign-lNt9Yuxj.js → campaign-DziZ_ncB.js} +2 -2
  64. package/dist/{campaign.fn-Cadt9swf.js → campaign.fn-CVpF9VNv.js} +20 -20
  65. package/dist/{collection.fn-RLwjpdkT.js → collection.fn-D90tDPPN.js} +2 -2
  66. package/dist/{duplicateCampaign-QMgpeHWr.js → duplicateCampaign-BLuH95JA.js} +2 -2
  67. package/dist/{effect-CqtFAMMC.js → effect-xHEoLaEP.js} +1 -1
  68. package/dist/{email-addresses-h8wGPJ7R.js → email-addresses-BlWSr5OG.js} +2 -2
  69. package/dist/{export-DY3Hegrb.js → export-BiteohUZ.js} +3 -3
  70. package/dist/{helper-DPKh_ZjU.js → helper-DwikjeAb.js} +1 -1
  71. package/dist/{index-C-AVWuWN.js → index-4MoMIQKU.js} +2 -2
  72. package/dist/{index-BSZynXOw.js → index-6Q2a-iIg.js} +1 -1
  73. package/dist/{index-BzhAfqFB.js → index-B5YxrxBq.js} +6 -6
  74. package/dist/{index-CJQKTuIk.js → index-BBesdsbR.js} +1 -1
  75. package/dist/{index-ogxSJTLh.js → index-BEOrkTh4.js} +2 -2
  76. package/dist/{index-DkNqohh9.js → index-BNgjLSst.js} +6 -6
  77. package/dist/{index-oM-xH8hF.js → index-BZZw9P0v.js} +1 -1
  78. package/dist/{index-oVSJYEzS.js → index-C7nM9-t1.js} +1 -1
  79. package/dist/{index-2iE9rOed.js → index-CO7WyZET.js} +1 -1
  80. package/dist/{index-DNAHL9AU.js → index-C_rgRMOU.js} +2 -2
  81. package/dist/{index-BkQrvkOb.js → index-Cfq0T-Sj.js} +2 -2
  82. package/dist/{index-D7gOjsR0.js → index-CzWNTjVV.js} +3 -3
  83. package/dist/{index-DQ1APEdi.js → index-D6RAcFO9.js} +1 -1
  84. package/dist/{index-DqX1Vli-.js → index-Dflcm25v.js} +1 -1
  85. package/dist/{index-CTOeD7L9.js → index-DsWwcw7I.js} +1 -1
  86. package/dist/{index.esm2017-CG7XIwEp.js → index.esm2017-B7poMYvt.js} +1 -1
  87. package/dist/{loading-4amdJgCm.js → loading-Gjvzrct4.js} +1 -1
  88. package/dist/{lodash-DGzcyEFQ.js → lodash-CQv019Zx.js} +1 -1
  89. package/dist/{membership-Pu5_24FL.js → membership-CQbwq9K0.js} +2 -2
  90. package/dist/{money-bExnxIDJ.js → money-CDKZllU7.js} +1 -1
  91. package/dist/{number-CfKE2tk7.js → number-P2zwEePr.js} +1 -1
  92. package/dist/{objectid-Ku2j_Y91.js → objectid-ChvkzZZU.js} +10 -10
  93. package/dist/{plugins-BiRxH8HH.js → plugins-Bl2dwd-E.js} +3 -3
  94. package/dist/remy-Qz_pNsUS.js +13 -0
  95. package/dist/{reward-CTrFirP6.js → reward-CLdMOMr9.js} +1 -1
  96. package/dist/{rule-Bpp0MdS0.js → rule-CmilJYpZ.js} +3 -3
  97. package/dist/{rule-builder-DgUulIzK.js → rule-builder-0I_YItLy.js} +1 -1
  98. package/dist/{template-Dh3E1B5P.js → template-DOCGAtJ4.js} +6 -6
  99. package/dist/{timezone-cJCD0TZs.js → timezone-o30_VQEy.js} +1 -1
  100. package/dist/{transaction.fn-Dd-nFQlz.js → transaction.fn-TDv-1n0A.js} +1 -1
  101. package/dist/{trigger-CzJeib_t.js → trigger-Dr7DJyvR.js} +5 -5
  102. package/dist/useMarketingMaterialActions-Bv_H75tb.js +96 -0
  103. package/dist/{usePagination-B_aAFhhT.js → usePagination-oWLFrU__.js} +1 -1
  104. package/dist/{user-Bi_keaVG.js → user-6R8l_BO4.js} +1 -1
  105. package/dist/{vue-i18n-Smvd1GuG.js → vue-i18n-D-4w-jd1.js} +227 -227
  106. package/dist/{xlsx-hKexV5wm.js → xlsx-D9INjD8q.js} +440 -440
  107. package/dist/{zod-Bik7Qsx7.js → zod-Cf6USRe8.js} +1 -1
  108. package/package.json +1 -1
  109. package/dist/MainLayout-IoBUK1t1.js +0 -41
  110. package/dist/useMarketingMaterialActions-DRPPq_f7.js +0 -107
@@ -0,0 +1,143 @@
1
+ import { defineComponent as u, openBlock as s, createElementBlock as p, createVNode as r, unref as e, ref as b, computed as y, watch as V, resolveComponent as i, createElementVNode as o, toDisplayString as w, createTextVNode as j, createCommentVNode as m, normalizeClass as z, createBlock as x, withDirectives as N, vShow as R } from "vue";
2
+ import { _ as E, S as P } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-DdvNQjfa.js";
3
+ import { u as $ } from "./vue-i18n-D-4w-jd1.js";
4
+ import { useCoreStore as D } from "@feedmepos/mf-common";
5
+ import { A as G, a as v } from "./app-DCKRZQHI.js";
6
+ import { u as H } from "./remy-Qz_pNsUS.js";
7
+ import { u as k } from "./app-wDQR6dpb.js";
8
+ import { useRoute as L } from "vue-router";
9
+ const T = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, O = /* @__PURE__ */ u({
10
+ __name: "Splash",
11
+ setup(_) {
12
+ return (t, n) => (s(), p("div", T, [
13
+ r(E, {
14
+ class: "flex-1",
15
+ json: e(P),
16
+ width: 100,
17
+ height: 100
18
+ }, null, 8, ["json"])
19
+ ]));
20
+ }
21
+ }), S = "feedme_connect_marketing_promo_bar_hidden";
22
+ function U() {
23
+ try {
24
+ return localStorage.getItem(S) !== null;
25
+ } catch {
26
+ return !1;
27
+ }
28
+ }
29
+ function Y() {
30
+ try {
31
+ localStorage.setItem(S, (/* @__PURE__ */ new Date()).toISOString());
32
+ } catch {
33
+ }
34
+ }
35
+ const q = {
36
+ key: 0,
37
+ class: "sticky top-0 z-20 flex w-full items-center gap-12 border-b border-fm-color-neutral-gray-100 bg-fm-color-primary-oats px-24 py-8 xs:px-12"
38
+ }, J = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-8" }, K = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, Q = { class: "fm-typo-en-body-md-600" }, W = { class: "flex shrink-0 items-center gap-8" }, X = ["aria-label"], Z = /* @__PURE__ */ u({
39
+ __name: "AiMarketingPromoBar",
40
+ setup(_) {
41
+ const { t } = $(), n = H(), { sessionUser: f, currentCountry: d } = D(), a = b(!1), B = y(() => {
42
+ var l;
43
+ const c = ((l = f.value) == null ? void 0 : l.permissions) ?? [];
44
+ return G(
45
+ [
46
+ {
47
+ action: v.Action.manage,
48
+ subject: v.Subject.Business.crm_marketingMaterial
49
+ }
50
+ ],
51
+ c
52
+ ).granted;
53
+ }), C = y(
54
+ () => d.value === "MY" && B.value
55
+ );
56
+ let h = !1;
57
+ V(
58
+ C,
59
+ (c) => {
60
+ h || !c || (h = !0, !U() && (a.value = !0));
61
+ },
62
+ { immediate: !0 }
63
+ );
64
+ function M() {
65
+ n.activate({
66
+ command: "generateMarketingMaterial",
67
+ fullscreen: !0,
68
+ forceNewConversation: !0
69
+ });
70
+ }
71
+ function A() {
72
+ Y(), a.value = !1;
73
+ }
74
+ return (c, l) => {
75
+ const g = i("FmIcon"), F = i("FmChip"), I = i("FmButton");
76
+ return a.value ? (s(), p("div", q, [
77
+ o("div", J, [
78
+ r(g, {
79
+ name: "stars",
80
+ size: "sm",
81
+ color: "primary"
82
+ }),
83
+ o("span", K, [
84
+ o("span", Q, w(e(t)("connect.marketing.promoBar.new")), 1),
85
+ j(" " + w(e(t)("connect.marketing.promoBar.message")), 1)
86
+ ]),
87
+ r(F, {
88
+ label: e(t)("connect.marketing.promoBar.credits"),
89
+ variant: "info",
90
+ compact: ""
91
+ }, null, 8, ["label"])
92
+ ]),
93
+ o("div", W, [
94
+ r(I, {
95
+ class: "px-16 py-2 rounded-xl",
96
+ variant: "primary",
97
+ size: "sm",
98
+ label: e(t)("connect.marketing.promoBar.cta"),
99
+ "append-icon": "arrow_forward",
100
+ onClick: M
101
+ }, null, 8, ["label"]),
102
+ o("button", {
103
+ type: "button",
104
+ class: "flex h-32 w-32 items-center justify-center",
105
+ "aria-label": e(t)("connect.marketing.promoBar.close"),
106
+ onClick: A
107
+ }, [
108
+ r(g, {
109
+ name: "close",
110
+ size: "sm",
111
+ color: "neutral-gray-400"
112
+ })
113
+ ], 8, X)
114
+ ])
115
+ ])) : m("", !0);
116
+ };
117
+ }
118
+ }), ie = /* @__PURE__ */ u({
119
+ __name: "MainLayout",
120
+ setup(_) {
121
+ const t = L(), n = b(t.query.showHeader !== "false");
122
+ return (f, d) => {
123
+ const a = i("RouterView");
124
+ return s(), p("div", {
125
+ class: z([
126
+ "bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
127
+ e(n) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
128
+ ])
129
+ }, [
130
+ e(k)().isGlobalLoading == !0 ? (s(), x(O, { key: 0 })) : m("", !0),
131
+ N(o("div", null, [
132
+ e(n) ? (s(), x(Z, { key: 0 })) : m("", !0),
133
+ r(a)
134
+ ], 512), [
135
+ [R, e(k)().isGlobalLoading == !1]
136
+ ])
137
+ ], 2);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ ie as default
143
+ };
@@ -1,10 +1,11 @@
1
1
  import { defineComponent as b, resolveComponent as v, openBlock as s, createBlock as N, unref as c, ref as f, watch as R, createElementBlock as d, createVNode as i, withCtx as S, createElementVNode as n, toDisplayString as w, withModifiers as T, createStaticVNode as U, computed as L, onMounted as P, nextTick as H, onUnmounted as V, Fragment as I, renderList as B, createCommentVNode as j } from "vue";
2
2
  import { _ as D } from "./campaign-CpzFl8Vr.js";
3
- import { u as M } from "./vue-i18n-Smvd1GuG.js";
4
- import { u as O, a as G, m as q } from "./useMarketingMaterialActions-DRPPq_f7.js";
3
+ import { u as M } from "./vue-i18n-D-4w-jd1.js";
4
+ import { u as G, m as q } from "./useMarketingMaterialActions-Bv_H75tb.js";
5
+ import { u as O } from "./remy-Qz_pNsUS.js";
5
6
  import { useRouter as z } from "vue-router";
6
- import "./index-DQ1APEdi.js";
7
- import { R as K } from "./app-DM6oVZsM.js";
7
+ import "./index-D6RAcFO9.js";
8
+ import { R as K } from "./app-DCKRZQHI.js";
8
9
  const Z = /* @__PURE__ */ b({
9
10
  __name: "GenerateMaterialButton",
10
11
  setup(l) {
@@ -135,7 +136,7 @@ const Z = /* @__PURE__ */ b({
135
136
  }, le = { class: "fm-typo-en-title-sm-800 text-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 xs:w-full text-center" }, se = {
136
137
  key: 1,
137
138
  class: "px-24 xs:px-12 flex flex-col gap-y-24 xs:gap-y-16 pt-24 xs:pt-16"
138
- }, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, ve = /* @__PURE__ */ b({
139
+ }, ie = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-16" }, E = 20, _e = /* @__PURE__ */ b({
139
140
  __name: "Marketing",
140
141
  setup(l) {
141
142
  const { t: r } = M(), u = O(), a = f([]), t = f(!0), e = f(!0), m = f(null), _ = f(null);
@@ -231,5 +232,5 @@ const Z = /* @__PURE__ */ b({
231
232
  }
232
233
  });
233
234
  export {
234
- ve as default
235
+ _e as default
235
236
  };