@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.81

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 (170) hide show
  1. package/dist/{App-DsB2o1oB.js → App-CKdnfhUE.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-vN-szmrB.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-FIyWozvZ.js} +8 -8
  4. package/dist/Broadcast-CV_euppF.js +306 -0
  5. package/dist/CampaignAnalytic-Dlovlsh3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fd_0aPzZ.js} +8 -5
  7. package/dist/Card-ZgfOZ7sV.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-DZmHKbZn.js} +14 -13
  9. package/dist/Credit-DGsbEvMw.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cj89MnB0.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CcIiEV2Z.js} +36 -36
  13. package/dist/Experience-DlJycdKe.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DVGF0TBc.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-q2X_SSup.js +356 -0
  17. package/dist/GiftCardSetup-BLDm3RfC.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CBC5AGR-.js +424 -0
  19. package/dist/Goals-CD8vdUPQ.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-KDYktOCn.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi1YY1x.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BT4esMkG.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRCrx3DA.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3G4alTX.js} +1 -1
  25. package/dist/LoyaltyDashboard-CzmwuzTw.js +2911 -0
  26. package/dist/MainLayout-CVYfxfuS.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-sDWWcaL5.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DHmI38Lo.js} +15 -14
  29. package/dist/Member-sdcMiTmr.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DqchRq6h.js +1281 -0
  31. package/dist/MemberImportHistory-Df_5SiGn.js +187 -0
  32. package/dist/MemberList-BGoClGZE.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-qR38yGk5.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-D4yY57Vo.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Co9oeOFx.js +40 -0
  36. package/dist/Mission-DSyqYeI6.js +363 -0
  37. package/dist/{Overview-DOJj4XvO.js → Overview-BDM8Lxfv.js} +23 -20
  38. package/dist/Overview-sLhLv5Oa.js +1316 -0
  39. package/dist/Point-DO5Z5sOL.js +297 -0
  40. package/dist/Promotion-BXm1Dxlv.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-C4kEj_Bp.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-iKUy-nn3.js} +9 -9
  43. package/dist/Review-D-3-BRON.js +45 -0
  44. package/dist/ReviewFacebookCallback-SLzE3D7c.js +238 -0
  45. package/dist/ReviewGoogleCallback-DntrtfGB.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-CNQS6F2m.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-D0ZNJilO.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-Bi58A7cw.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CToVAWKO.js} +4 -4
  52. package/dist/Setting-CixcOp_l.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-DkPNDfxz.js} +12 -12
  54. package/dist/Settings-bD_DkKI0.js +230 -0
  55. package/dist/Store-BvnsumDX.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CKPnV_j3.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-k46T2rql.js +1319 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-IknvTIMG.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CiKGy-Do.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-CNFamvkQ.js} +41 -37
  61. package/dist/Transaction-C8SnyFML.js +45 -0
  62. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DQrTH7cz.js} +26 -26
  63. package/dist/Voucher-9Q-GHuvD.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-6mF0RH.js} +118 -124
  65. package/dist/WhatsappAccount-DRKJVs0I.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DGOPGiGH.js +96 -0
  67. package/dist/WhatsappBot-muUmTIyY.js +441 -0
  68. package/dist/WhatsappBotSettings-DUjKwiv6.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-7tSuZ_C3.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-CQnX8TXq.js} +50951 -42514
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-CwCY41wr.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DGYo03yh.js} +5 -5
  75. package/dist/campaign-BFhMhQWk.js +400 -0
  76. package/dist/campaign-BmVMseCM.js +100 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/campaign.fn-DHdhR9C8.js +776 -0
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-CYrQd8Th.js +26 -0
  81. package/dist/currency-B7wFZjCM.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-C62eVSKZ.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-XVC0SyM1.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DUWzbknH.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-Bw_KFook.js} +1 -1
  87. package/dist/index-B88wz0DA.js +53 -0
  88. package/dist/{index-iMPtFp54.js → index-BHPcqvxB.js} +10 -9
  89. package/dist/{index-HXiYGO4_.js → index-BL01AAGF.js} +6343 -7693
  90. package/dist/index-BpcakDLo.js +32438 -0
  91. package/dist/{index-VlFWaBrg.js → index-Bu0rl1Jm.js} +1 -1
  92. package/dist/{index-BpI-BI4H.js → index-C0WVYJgp.js} +4 -4
  93. package/dist/index-C5a9ZaAM.js +151 -0
  94. package/dist/{index-CsoBDon4.js → index-CRX2b_-n.js} +1590 -1523
  95. package/dist/{index-CIBPhxlC.js → index-CSaO5mCs.js} +105 -123
  96. package/dist/{index-hlyg-wxV.js → index-CX2tKi6X.js} +1 -1
  97. package/dist/index-C_H8jFYf.js +2743 -0
  98. package/dist/{index-BoYEqLif.js → index-CmJ4UtbH.js} +1517 -263
  99. package/dist/index-CoaZuwwm.js +172 -0
  100. package/dist/{index-Bf6jNZit.js → index-CsZ7_Qzf.js} +24 -9
  101. package/dist/index-D5D85re4.js +902 -0
  102. package/dist/index-D89ye2yV.js +74 -0
  103. package/dist/index-DHRVhERM.js +14550 -0
  104. package/dist/index-DKabvlsg.js +69 -0
  105. package/dist/{index-CoHWpylO.js → index-DlFjUct2.js} +2140 -2557
  106. package/dist/index-XCHxkJPE.js +137 -0
  107. package/dist/index-o2Ga_qaX.js +39 -0
  108. package/dist/index-z0K48rtR.js +54 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-cOXL--fX.js} +164 -164
  110. package/dist/{loading-CSXr0Yqz.js → loading-BlfJuA-h.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CFkpI5Sp.js} +1 -1
  112. package/dist/member-import-B4ihDPgR.js +188 -0
  113. package/dist/membership-CyNEU3ld.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-B0QV3AtE.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-DJ7EhoTu.js} +1 -1
  116. package/dist/objectid-DZ8o9_J4.js +145 -0
  117. package/dist/onboarding-BhMbuIRK.js +131 -0
  118. package/dist/onboardingSetup-BZMYTun6.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C7hEP98r.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-D4975Y4s.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-BfSrqM9Z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-CTCYJKDu.js} +6 -6
  125. package/dist/timezone-hBjTK85u.js +20 -0
  126. package/dist/transaction.fn-1iGyAGZA.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-CdJikvw9.js} +17 -17
  128. package/dist/useMarketingMaterialActions-R1rDbIr8.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-CqSRHo9z.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-C8i4TfQt.js} +1 -1
  131. package/dist/vue-i18n-CiJ_kNkt.js +2365 -0
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-DGiPalb9.js} +440 -440
  133. package/dist/{zod-CgigfJar.js → zod-CKl6yP5K.js} +1 -1
  134. package/package.json +10 -6
  135. package/dist/Broadcast-C9akM-TB.js +0 -266
  136. package/dist/Card-DRkIYs0M.js +0 -910
  137. package/dist/Credit-V5YA_hGx.js +0 -260
  138. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  139. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  140. package/dist/Experience-WTWy5yY6.js +0 -259
  141. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  142. package/dist/Game-BwOfTCW5.js +0 -330
  143. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  144. package/dist/MainLayout-Du5kZOtA.js +0 -41
  145. package/dist/Member-DUV_vbPI.js +0 -280
  146. package/dist/MemberList-Ye4nOk-i.js +0 -1601
  147. package/dist/Mission-BBmCGpt8.js +0 -334
  148. package/dist/Point-Bzg6hi6o.js +0 -262
  149. package/dist/Promotion-BMXIp_ef.js +0 -397
  150. package/dist/Review-CYNPPxYU.js +0 -1141
  151. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  152. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  153. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
  154. package/dist/Setting-jHAjccod.js +0 -2047
  155. package/dist/Store-Cu-hKmVa.js +0 -1996
  156. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  157. package/dist/Transaction-D7DO3dKQ.js +0 -39
  158. package/dist/Voucher-Cq-n1CaC.js +0 -421
  159. package/dist/campaign--MjoY1Mn.js +0 -219
  160. package/dist/campaign-DHBuP4UA.js +0 -277
  161. package/dist/campaign.fn-Bd34dVnx.js +0 -776
  162. package/dist/export-CjB7qxZ9.js +0 -97
  163. package/dist/index-BIAjmMga.js +0 -85
  164. package/dist/index-Bm0QPucw.js +0 -67
  165. package/dist/index-Bv4MBLQ5.js +0 -52
  166. package/dist/index-hbyCVNa7.js +0 -30289
  167. package/dist/membership-CfredTm3.js +0 -255
  168. package/dist/objectid-Dg4ZodlT.js +0 -145
  169. package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
  170. package/dist/vue-i18n-BcYh6_51.js +0 -2365
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
2
- import { u as J } from "./campaign--MjoY1Mn.js";
2
+ import { u as J } from "./campaign-BmVMseCM.js";
3
3
  import { useDialog as M } from "@feedmepos/ui-library";
4
- import { F as A } from "./index-BoYEqLif.js";
5
- import { _ as G } from "./lodash-Bh7XKI-R.js";
6
- import { C as H } from "./campaign-DHBuP4UA.js";
4
+ import { F as A } from "./index-CmJ4UtbH.js";
5
+ import { _ as G } from "./lodash-CFkpI5Sp.js";
6
+ import { C as H } from "./campaign-BFhMhQWk.js";
7
7
  import { J as K } from "./JsonViewer-v8_C7l5N.js";
8
- import { u as Q } from "./vue-i18n-BcYh6_51.js";
9
- import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js";
8
+ import { u as Q } from "./vue-i18n-CiJ_kNkt.js";
9
+ import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js";
10
10
  const U = /* @__PURE__ */ V({
11
11
  __name: "CampaignChip",
12
12
  props: {
@@ -0,0 +1,20 @@
1
+ import { e as a } from "./index-BpcakDLo.js";
2
+ const n = {
3
+ [a.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
4
+ [a.F_COUNTRY.enum.SG]: "Asia/Singapore",
5
+ JP: "Asia/Tokyo",
6
+ AE: "Asia/Dubai",
7
+ AU: "Australia/Sydney",
8
+ [a.F_COUNTRY.enum.TH]: "Asia/Bangkok",
9
+ [a.F_COUNTRY.enum.ID]: "Asia/Jakarta",
10
+ [a.F_COUNTRY.enum.BN]: "Asia/Brunei",
11
+ [a.F_COUNTRY.enum.MO]: "Asia/Macau",
12
+ [a.F_COUNTRY.enum.MV]: "Indian/Maldives",
13
+ [a.F_COUNTRY.enum.PK]: "Asia/Karachi",
14
+ [a.F_COUNTRY.enum.VN]: "Asia/Ho_Chi_Minh",
15
+ GB: "Europe/London",
16
+ MA: "Africa/Casablanca"
17
+ };
18
+ export {
19
+ n as C
20
+ };
@@ -0,0 +1,71 @@
1
+ import "./index-DlFjUct2.js";
2
+ import { s as u } from "./index-C0WVYJgp.js";
3
+ function i(l) {
4
+ var c, f;
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);
6
+ return [(f = l.metadata) == null ? void 0 : f.remark, t && `Operator: ${t}`].filter(Boolean).join(" | ");
7
+ }
8
+ function m(l) {
9
+ let e = "";
10
+ switch (l) {
11
+ case "PORTAL":
12
+ e = "ADMIN";
13
+ break;
14
+ case "BENEFIT":
15
+ e = "MEMBERSHIP";
16
+ break;
17
+ case "ORDER":
18
+ e = "ORDER";
19
+ break;
20
+ case "BILL":
21
+ e = "SPENDING";
22
+ break;
23
+ case "CASHBACK":
24
+ e = "CASHBACK";
25
+ break;
26
+ case "CYCLE":
27
+ e = "EXPIRED";
28
+ break;
29
+ case "COUNTER_CONSUME":
30
+ e = "COUNTER REDEEM";
31
+ break;
32
+ default:
33
+ e = l;
34
+ break;
35
+ }
36
+ return e;
37
+ }
38
+ function b(l) {
39
+ var e, t, c, f, r, E;
40
+ switch ((e = l == null ? void 0 : l.pf_collectible) == null ? void 0 : e.type) {
41
+ case "VOUCHER":
42
+ return `${(t = l.pf_collectible) == null ? void 0 : t.type} (${(c = l.pf_collectible) == null ? void 0 : c.name})`;
43
+ case "TITLE":
44
+ return `${(f = l.pf_collectible) == null ? void 0 : f.type} (${(r = l.pf_collectible) == null ? void 0 : r.name})`;
45
+ case "POINT":
46
+ return "Experience";
47
+ case "COIN":
48
+ return "Point";
49
+ default:
50
+ return u((E = l == null ? void 0 : l.pf_collectible) == null ? void 0 : E.type);
51
+ }
52
+ }
53
+ function a(l) {
54
+ switch (l) {
55
+ case "ONLINE":
56
+ return "Online";
57
+ case "COIN":
58
+ return "Point";
59
+ default:
60
+ return l;
61
+ }
62
+ }
63
+ const s = {
64
+ getReason: m,
65
+ formattedType: b,
66
+ formattedPaymentType: a,
67
+ formattedRemark: i
68
+ };
69
+ export {
70
+ s as T
71
+ };
@@ -1,10 +1,10 @@
1
- import { defineComponent as c, openBlock as u, createBlock as p, unref as r } from "vue";
2
- import "./index-CsoBDon4.js";
3
- import { R as i } from "./index-BoYEqLif.js";
4
- import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js";
5
- import { m as e, K as d } from "./index-CoHWpylO.js";
6
- import { i as n } from "./plugins-4FlbwoES.js";
7
- const L = /* @__PURE__ */ c({
1
+ import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
2
+ import "./index-CRX2b_-n.js";
3
+ import { R as i } from "./index-CmJ4UtbH.js";
4
+ import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js";
5
+ import { c as e, C as d } from "./index-D5D85re4.js";
6
+ import { i as n } from "./plugins-C7hEP98r.js";
7
+ const L = /* @__PURE__ */ m({
8
8
  __name: "BillRuleGroup",
9
9
  props: {
10
10
  modelValue: {
@@ -22,18 +22,18 @@ const L = /* @__PURE__ */ c({
22
22
  "include-only": "bill",
23
23
  "trigger-type": "BILL_COMPLETED",
24
24
  "model-value": ((g = t.modelValue) == null ? void 0 : g.rules.g_bill) ?? r(i).scaffoldGroup("g_bill"),
25
- "onUpdate:modelValue": l[0] || (l[0] = (m) => a(
25
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => a(
26
26
  "update:model-value",
27
27
  r(i).setRuleToGroup(
28
28
  t.modelValue ?? r(i).scaffoldGroup(),
29
- m,
29
+ c,
30
30
  "&&"
31
31
  )
32
32
  ))
33
33
  }, null, 8, ["model-value"]);
34
34
  };
35
35
  }
36
- }), O = /* @__PURE__ */ c({
36
+ }), O = /* @__PURE__ */ m({
37
37
  __name: "FeedbackRuleGroup",
38
38
  props: {
39
39
  modelValue: {
@@ -51,18 +51,18 @@ const L = /* @__PURE__ */ c({
51
51
  "include-only": "feedback",
52
52
  "trigger-type": "FEEDBACK",
53
53
  "model-value": ((g = t.modelValue) == null ? void 0 : g.rules.g_feedback) ?? r(i).scaffoldGroup("g_feedback"),
54
- "onUpdate:modelValue": l[0] || (l[0] = (m) => a(
54
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => a(
55
55
  "update:model-value",
56
56
  r(i).setRuleToGroup(
57
57
  t.modelValue ?? r(i).scaffoldGroup(),
58
- m,
58
+ c,
59
59
  "&&"
60
60
  )
61
61
  ))
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(
@@ -185,7 +185,7 @@ const L = /* @__PURE__ */ c({
185
185
  value: e.enum.ISSUE_REWARD,
186
186
  hidden: !0
187
187
  }
188
- }, b = Object.fromEntries(
188
+ }, C = Object.fromEntries(
189
189
  [
190
190
  "VOUCHER",
191
191
  "PROMOTION",
@@ -201,13 +201,13 @@ const L = /* @__PURE__ */ c({
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
- b as T,
209
+ C as T,
210
210
  L as _,
211
- _ as a,
211
+ R as a,
212
212
  O as b
213
213
  };
@@ -0,0 +1,96 @@
1
+ import { S as o, g as c, b } from "./index-BpcakDLo.js";
2
+ import { u as w } from "./vue-i18n-CiJ_kNkt.js";
3
+ import { useSnackbar as h } from "@feedmepos/ui-library";
4
+ import { c as k } from "./plugins-C7hEP98r.js";
5
+ const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
6
+ async createMarketingMaterial(e) {
7
+ const a = o.getBusinessId();
8
+ if (!a) throw new Error("Invalid business ID");
9
+ return c(
10
+ await l(a).post("", e)
11
+ );
12
+ },
13
+ async getMarketingMaterial(e) {
14
+ const a = o.getBusinessId();
15
+ if (!a) throw new Error("Invalid business ID");
16
+ return c(
17
+ await l(a).get(`/${e}`)
18
+ );
19
+ },
20
+ async listMarketingMaterials(e = null, a = 20) {
21
+ const s = o.getBusinessId();
22
+ if (!s) throw new Error("Invalid business ID");
23
+ return c(
24
+ await l(s).get("", {
25
+ params: { ...e ? { cursor: e } : {}, limit: a }
26
+ })
27
+ );
28
+ },
29
+ async updateMarketingMaterial(e, a) {
30
+ const s = o.getBusinessId();
31
+ if (!s) throw new Error("Invalid business ID");
32
+ return c(
33
+ await l(s).patch(`/${e}`, a)
34
+ );
35
+ }
36
+ };
37
+ function E() {
38
+ const { t: e } = w(), a = h();
39
+ async function s(n) {
40
+ if (!(n != null && n.imageUrl)) return;
41
+ const { headline: i, caption: g, imageUrl: r } = n;
42
+ if (!navigator.share) {
43
+ a.open({
44
+ message: e("connect.marketing.actions.webShareNotSupported"),
45
+ type: "error"
46
+ });
47
+ return;
48
+ }
49
+ try {
50
+ const t = {
51
+ title: i ?? void 0,
52
+ text: g ?? void 0
53
+ };
54
+ if (navigator.canShare)
55
+ try {
56
+ const d = await (await fetch(r, { mode: "cors", cache: "no-store" })).blob(), f = [new File([d], "marketing-material.jpg", {
57
+ type: d.type || "image/jpeg"
58
+ })];
59
+ navigator.canShare({ files: f }) ? t.files = f : t.url = r;
60
+ } catch (u) {
61
+ console.error("Failed to fetch image for sharing:", u), t.url = r;
62
+ }
63
+ else
64
+ t.url = r;
65
+ await navigator.share(t);
66
+ } catch (t) {
67
+ t.name !== "AbortError" && a.open({
68
+ message: e("connect.marketing.actions.failedToShare", { message: t.message }),
69
+ type: "error"
70
+ });
71
+ }
72
+ }
73
+ async function p(n) {
74
+ if (n)
75
+ try {
76
+ const g = await (await fetch(n, { mode: "cors", cache: "no-store" })).blob(), r = URL.createObjectURL(g), t = document.createElement("a");
77
+ t.href = r, t.download = "marketing-material", t.click(), URL.revokeObjectURL(r);
78
+ } catch (i) {
79
+ console.error("Failed to download image:", i), window.open(n, "_blank");
80
+ }
81
+ }
82
+ async function m(n) {
83
+ n && await k(n, {
84
+ successMessage: e("connect.marketing.actions.imageLinkCopied")
85
+ });
86
+ }
87
+ return {
88
+ shareMaterial: s,
89
+ downloadMaterialImage: p,
90
+ copyMaterialLink: m
91
+ };
92
+ }
93
+ export {
94
+ D as m,
95
+ E as u
96
+ };
@@ -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-Bh7XKI-R.js";
3
+ import { l as E } from "./lodash-CFkpI5Sp.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-4FlbwoES.js";
2
+ import { c as f } from "./plugins-C7hEP98r.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;