@feedmepos/mf-connect 0.1.124-prod → 0.1.125-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 (147) hide show
  1. package/dist/{App-DMh2xABv.js → App-lOnYYWzx.js} +224 -216
  2. package/dist/AuditLogs-C5aMzrhF.js +2016 -0
  3. package/dist/{Bin-C_pkPgIo.js → Bin-Dk0rAESN.js} +8 -8
  4. package/dist/{Broadcast-6ZJzdY0b.js → Broadcast-BBNpuceo.js} +22 -21
  5. package/dist/{CampaignAnalytic-CLd5ecQe.js → CampaignAnalytic-BgROt0Yu.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js} +9 -10
  7. package/dist/{Card-CkS8F43U.js → Card-fSEJaQmL.js} +23 -23
  8. package/dist/{Collections-BA9I-dDz.js → Collections-DVM1dOOo.js} +197 -185
  9. package/dist/{Credit-CXm0A-qe.js → Credit-CNDYRDiK.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js → EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js} +33 -33
  13. package/dist/{Experience-Bq4ykqTJ.js → Experience-Bqfx1Gjq.js} +32 -31
  14. package/dist/{FileSaver.min-BtBxrIBi.js → FileSaver.min-B4Jv2-PR.js} +1 -1
  15. package/dist/{Game-DpLFmP-G.js → Game-DmbJYYaC.js} +19 -18
  16. package/dist/{GiftCardSetup-BqOqEUim.js → GiftCardSetup-DHxDI5hU.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js} +7 -7
  18. package/dist/{Goals-DMlNeiUc.js → Goals-B-3PoUlx.js} +4 -4
  19. package/dist/Grab-BRfVvqAr.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js → ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js} +1 -1
  21. package/dist/{Index-Cw07jj0k.js → Index-vfYiu7G1.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js → LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js} +1 -1
  24. package/dist/{LoyaltyDashboard-DzSiK6M7.js → LoyaltyDashboard-CHEIpAHw.js} +15 -15
  25. package/dist/{MainLayout-1EF680_j.js → MainLayout-Cf1lEoHL.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js → MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js} +3 -3
  27. package/dist/{Marketing-T-epFsvG.js → Marketing-BBF8mHSo.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-CVhPfyEp.js → MarketingMaterialEdit-COTHaH08.js} +214 -211
  29. package/dist/{Member-BUZOPyQR.js → Member-BEyxcsNI.js} +7 -7
  30. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js} +40 -48
  31. package/dist/{MemberImportHistory-DGz9i6L7.js → MemberImportHistory-zs8VJsoI.js} +7 -7
  32. package/dist/{MemberList-CNdSrzBa.js → MemberList-2-qKmm5p.js} +103 -105
  33. package/dist/{MemberTransactions-CdQMuQsd.js → MemberTransactions-DOsMBs30.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js → MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js} +1 -1
  36. package/dist/{Mission-CYxgMBPt.js → Mission-Bo7tuR13.js} +22 -21
  37. package/dist/{Overview-DSm8AfDB.js → Overview-BrGVMqE1.js} +21 -21
  38. package/dist/{Overview-qZ1KKw9D.js → Overview-CnoidK6U.js} +145 -144
  39. package/dist/{Point-BGlbT9OK.js → Point-DJ2-HEmx.js} +22 -21
  40. package/dist/{Promotion-CtlrUFa8.js → Promotion-D7Q3EY3d.js} +137 -131
  41. package/dist/{Queue-Dc_z9MKc.js → Queue-CLXhXQeU.js} +46 -46
  42. package/dist/{Record-DVKrhFwJ.js → Record-CCF7K-pJ.js} +9 -9
  43. package/dist/{Review-Bh8Tw_QU.js → Review-BZH_tGDe.js} +2 -2
  44. package/dist/ReviewFacebookCallback-Bs-oiDMC.js +225 -0
  45. package/dist/{ReviewGoogleCallback-CsSCz_C5.js → ReviewGoogleCallback-eHLJko2f.js} +5 -5
  46. package/dist/{Reward-DY1Q3m1w.js → Reward-ea05o2qi.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js → RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js} +14 -14
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js +1923 -0
  49. package/dist/{Segment-D6LchJFl.js → Segment-z3BAGTqr.js} +304 -307
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js} +4 -4
  52. package/dist/{Setting-UkdSKiUb.js → Setting-D0nKTgej.js} +17 -17
  53. package/dist/{SettingAdvertisements-DK97gcus.js → SettingAdvertisements-BUGsMAdi.js} +12 -12
  54. package/dist/Settings-C2loJXla.js +286 -0
  55. package/dist/{Store-2VVStL5_.js → Store-CbhAyr1j.js} +29 -29
  56. package/dist/{StoreRewards-f3Pyb9hu.js → StoreRewards-DHt64JEN.js} +15 -15
  57. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js} +25 -25
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js +7007 -0
  59. package/dist/{Tier-D4Of9P17.js → Tier-CH5DwMYW.js} +2583 -688
  60. package/dist/{Title-Cg6X9UkB.js → Title-DNLw_rOp.js} +96 -95
  61. package/dist/{Transaction-LJbjQnj_.js → Transaction-DCuU6B7G.js} +2 -2
  62. package/dist/{Upselling-B-VwbtjT.js → Upselling-DBsfEEvV.js} +3 -3
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js} +26 -26
  64. package/dist/{Voucher-BJG6VKXt.js → Voucher-BVztDyI0.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js} +12 -12
  66. package/dist/{WhatsappAccount-Dc1fJWWj.js → WhatsappAccount-CobyTNkp.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js} +1 -1
  68. package/dist/{WhatsappBot-Coq1WP96.js → WhatsappBot-xc4QD061.js} +6 -6
  69. package/dist/WhatsappBotLogs-eiDWJkN7.js +509 -0
  70. package/dist/{WhatsappBotSettings-fNRFecJX.js → WhatsappBotSettings-D4cMFn3z.js} +65 -65
  71. package/dist/{WhatsappLayout-x9Ovpu6e.js → WhatsappLayout-C8DejCWo.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js} +2 -2
  74. package/dist/{app-BMFxxLUm.js → app-Bik4hlr7.js} +4310 -3520
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-LmQ51u5f.js → base.export-BRw8QzdM.js} +2 -2
  77. package/dist/{business-DZWViiMC.js → business-Dv2S3X12.js} +1 -1
  78. package/dist/{campaign-C9xvGyrL.js → campaign-CNDBsfeQ.js} +31 -25
  79. package/dist/{campaign-DZDGbR4W.js → campaign-witQNfmZ.js} +121 -94
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/{campaign.fn-OVkj0QLu.js → campaign.fn-Dr4w5BrO.js} +105 -105
  82. package/dist/{collection.fn-DrNrla0B.js → collection.fn-C0Dx5_1j.js} +2 -2
  83. package/dist/{currency-BZv2gSlF.js → currency-lP50Csky.js} +1 -1
  84. package/dist/duplicateCampaign-BfLxdQWg.js +51 -0
  85. package/dist/{effect-CvumfBMY.js → effect-6bi20cxS.js} +1 -1
  86. package/dist/{email-addresses-79tPeI4j.js → email-addresses-BmujKG-l.js} +2 -2
  87. package/dist/{feature-flag-CYXnrECh.js → feature-flag-DdxBiP1p.js} +84 -84
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-DFjsyjri.js → helper-DSmzzBjW.js} +1 -1
  90. package/dist/{index-Bnane9cm.js → index-2JiR1s6M.js} +1 -1
  91. package/dist/{index-CNzQ3FLi.js → index-373LDTQ7.js} +1 -1
  92. package/dist/{index-C6Rx7pjc.js → index-83SeIfhc.js} +608 -251
  93. package/dist/{index-CA7oIW_T.js → index-B0Ddw1na.js} +197 -197
  94. package/dist/index-BD3HIAoL.js +86 -0
  95. package/dist/{index-C43KoLej.js → index-BNdhRCyN.js} +4 -4
  96. package/dist/{index-CcCiEG6N.js → index-BTud0ICl.js} +1 -1
  97. package/dist/{index-B_8PAyia.js → index-BYlnybS9.js} +2 -2
  98. package/dist/{index-_-nCOZ1D.js → index-CCVnmv0l.js} +19 -6
  99. package/dist/{index-BiPRZRyE.js → index-CEscBR6G.js} +2699 -2613
  100. package/dist/{index-DZrX13oF.js → index-CFhazRum.js} +1314 -1242
  101. package/dist/{index-I9lmcd2w.js → index-CH-uRaZH.js} +56 -53
  102. package/dist/{index-Bt-n8QuD.js → index-CH1MpmvS.js} +9 -9
  103. package/dist/{index-CAWnce4u.js → index-CRd8uD-d.js} +1 -1
  104. package/dist/{index-DWZzsJHU.js → index-CdQGmMRo.js} +2 -2
  105. package/dist/{index-Ba1t5vQv.js → index-Cei8qPkg.js} +380 -234
  106. package/dist/{index-C6ZTa-eq.js → index-D-Ln1G1Y.js} +1 -1
  107. package/dist/{index-MhAbTpBy.js → index-DGctCMca.js} +23 -23
  108. package/dist/{index-CW4rNV1_.js → index-DGz2Y25B.js} +2 -2
  109. package/dist/{index-C5bC2n8X.js → index-DMT5xoCz.js} +3 -3
  110. package/dist/{index-CBd91xYU.js → index-DjlmY7Od.js} +7 -7
  111. package/dist/{index.esm2017-DtTjnHHc.js → index.esm2017-BcULj0z4.js} +57 -57
  112. package/dist/{loading-DkqEFbrR.js → loading-DmCJ1FiL.js} +1 -1
  113. package/dist/{lodash-BxU_5gPB.js → lodash-FEhiisF1.js} +1 -1
  114. package/dist/{member-import-B3NBqSF6.js → member-import-BLxPVKon.js} +22 -13
  115. package/dist/{membership-Dr5BxoL-.js → membership-Dq3LSd35.js} +2 -2
  116. package/dist/{money-D58xuACG.js → money-D2RIG9zm.js} +1 -1
  117. package/dist/{number-C9CiD5ci.js → number-D87ngEVu.js} +1 -1
  118. package/dist/objectid-CuPXVpKE.js +145 -0
  119. package/dist/{onboarding-BssUSfGQ.js → onboarding-YlSAcar0.js} +25 -25
  120. package/dist/{onboardingSetup-Dc_lD-K8.js → onboardingSetup-qgS6ktSi.js} +2 -2
  121. package/dist/{plugins-D7Xjefvk.js → plugins-B3B_2EiB.js} +3 -3
  122. package/dist/{reward-CACqYkQp.js → reward-BtEe_1ZU.js} +1 -1
  123. package/dist/{rule-BRaTrwKz.js → rule-PmdBF8Cb.js} +572 -492
  124. package/dist/style.css +1 -1
  125. package/dist/template-D6wO9_aV.js +227 -0
  126. package/dist/{timezone-CgVEOC5i.js → timezone-DPnmvzUK.js} +1 -1
  127. package/dist/{transaction.fn-C64l_ja_.js → transaction.fn-BavSYDYI.js} +2 -2
  128. package/dist/{trigger-d2RIqXLt.js → trigger-CsIScoNI.js} +9 -9
  129. package/dist/{useMarketingMaterialActions-Drf2MY9h.js → useMarketingMaterialActions-CHBfA7iR.js} +4 -4
  130. package/dist/{usePagination-IUw34YLE.js → usePagination-DXPBbII4.js} +1 -1
  131. package/dist/{user-ClGyYHyS.js → user-B8js0aIx.js} +1 -1
  132. package/dist/vue-i18n-R6DAeTzc.js +2365 -0
  133. package/dist/{xlsx-HvtVSofi.js → xlsx-CYugHPG9.js} +1 -1
  134. package/dist/{zod-IPdjFU_b.js → zod-BEFViLGC.js} +1 -1
  135. package/package.json +6 -2
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js +0 -3493
  137. package/dist/ReviewFacebookCallback-ZZ0pxplM.js +0 -238
  138. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js +0 -1884
  139. package/dist/Settings-BFcVswDS.js +0 -179
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CCWNzg4p.js +0 -142
  141. package/dist/WhatsappBotLogs-EH9PQVn9.js +0 -372
  142. package/dist/google-C3S8u0mT.js +0 -4
  143. package/dist/index-C-pVo6PI.js +0 -74
  144. package/dist/objectid-CgTtbB6Q.js +0 -145
  145. package/dist/rule-builder-DZOASGFD.js +0 -102
  146. package/dist/template-DdeVPIBt.js +0 -275
  147. package/dist/vue-i18n-Cby9s0nj.js +0 -2365
@@ -1,372 +0,0 @@
1
- import { defineComponent as T, resolveComponent as k, openBlock as l, createElementBlock as d, createElementVNode as s, toDisplayString as i, unref as u, createVNode as _, computed as w, Fragment as M, renderList as V, createCommentVNode as $, normalizeClass as ee, createTextVNode as P, createBlock as I, ref as b, watch as G, onBeforeUnmount as te, withCtx as O } from "vue";
2
- import { u as E } from "./vue-i18n-Cby9s0nj.js";
3
- import { useCoreStore as oe } from "@feedmepos/mf-common";
4
- import { S as ne } from "./index-CBd91xYU.js";
5
- import { w as ae } from "./index-C-pVo6PI.js";
6
- import { _ as se } from "./remy-icon-BhUGu2NI.js";
7
- import { _ as le } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js";
8
- import { C as U } from "./timezone-CgVEOC5i.js";
9
- import { m as re } from "./index-CNzQ3FLi.js";
10
- const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-[12px] rounded-br-[4px] bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary" }, ie = { class: "flex items-center gap-[4px] min-h-[28px] px-[10px] py-[4px] text-[11px] font-medium cursor-pointer list-none rounded-[12px] focus-visible:outline-fm-color-primary" }, pe = { class: "flex-1 group-open:hidden" }, ue = { class: "flex-1 hidden group-open:inline" }, me = { class: "px-[10px] pt-[2px] pb-[8px] text-[13px] leading-[18px] whitespace-pre-wrap break-words" }, de = /* @__PURE__ */ T({
11
- __name: "ThoughtBubble",
12
- props: {
13
- text: {}
14
- },
15
- setup(m) {
16
- const { t: v } = E();
17
- return (n, g) => {
18
- const c = k("FmIcon");
19
- return l(), d("details", ce, [
20
- s("summary", ie, [
21
- g[0] || (g[0] = s("img", {
22
- src: se,
23
- alt: "",
24
- "aria-hidden": "true",
25
- class: "w-[16px] h-[16px] shrink-0"
26
- }, null, -1)),
27
- s("span", pe, i(u(v)("connect.whatsappBot.logs.thought")), 1),
28
- s("span", ue, i(u(v)("connect.whatsappBot.logs.hideThought")), 1),
29
- _(c, {
30
- name: "keyboard_arrow_down",
31
- size: "sm",
32
- class: "transition-transform group-open:rotate-180"
33
- })
34
- ]),
35
- s("p", me, i(m.text), 1)
36
- ]);
37
- };
38
- }
39
- }), xe = { class: "border border-fm-color-neutral-gray-100 rounded-[16px] bg-fm-color-neutral-white overflow-hidden" }, fe = { class: "flex items-center gap-[10px] px-[16px] py-[10px] border-b border-fm-color-neutral-gray-100 flex-wrap" }, he = {
40
- "aria-hidden": "true",
41
- class: "w-[28px] h-[28px] rounded-full bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary text-[12px] font-semibold flex items-center justify-center shrink-0"
42
- }, ve = { class: "min-w-0 flex-1" }, ge = { class: "text-[14px] font-semibold leading-[20px] break-words" }, ye = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary break-words" }, _e = ["datetime"], we = { class: "flex flex-col gap-[10px] px-[16px] py-[12px]" }, be = {
43
- key: 0,
44
- class: "self-end text-[12px] leading-[16px] text-fm-color-typo-tertiary"
45
- }, ke = {
46
- key: 0,
47
- class: "text-[11px] text-fm-color-typo-tertiary"
48
- }, Be = ["datetime"], Ce = ["title", "onClick"], Fe = { class: "w-[24px] h-[24px] rounded-full bg-fm-color-secondary-plum/10 text-fm-color-secondary-plum flex items-center justify-center shrink-0" }, Ae = { class: "flex flex-col min-w-0" }, Ne = { class: "text-[13px] leading-[18px] font-semibold" }, $e = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary whitespace-pre-wrap break-words" }, Ie = /* @__PURE__ */ T({
49
- __name: "WhatsappLogConversation",
50
- props: {
51
- conversation: {},
52
- accountName: {},
53
- timezone: {}
54
- },
55
- emits: ["notificationGroup"],
56
- setup(m, { emit: v }) {
57
- const n = m, g = v, { t: c, locale: t } = E(), o = w(
58
- () => n.conversation.customerName || n.conversation.phoneNumber || c("connect.whatsappBot.logs.unknownCustomer")
59
- ), p = w(
60
- () => n.conversation.customerName ? n.conversation.customerName.trim().split(/\s+/).slice(0, 2).map((f) => Array.from(f)[0]).join("").toLocaleUpperCase(t.value) : "?"
61
- ), A = w(
62
- () => new Intl.DateTimeFormat(t.value, {
63
- dateStyle: "medium",
64
- timeStyle: "short",
65
- timeZone: n.timezone
66
- })
67
- ), y = w(
68
- () => new Intl.DateTimeFormat(t.value, {
69
- hour: "2-digit",
70
- minute: "2-digit",
71
- hour12: !1,
72
- timeZone: n.timezone
73
- })
74
- );
75
- function h(f) {
76
- var B;
77
- return (B = f.reaction) != null && B.removed ? c("connect.whatsappBot.logs.reactionRemoved") : f.text ? f.text : c("connect.whatsappBot.logs.mediaMessage", { type: f.messageType });
78
- }
79
- return (f, B) => {
80
- const N = k("FmIcon");
81
- return l(), d("article", xe, [
82
- s("header", fe, [
83
- s("div", he, i(p.value), 1),
84
- s("div", ve, [
85
- s("h2", ge, i(o.value), 1),
86
- s("p", ye, i(m.conversation.phoneNumber || u(c)("connect.whatsappBot.phoneUnavailable")) + " · " + i(u(c)("connect.whatsappBot.logs.via", { name: m.accountName })), 1)
87
- ]),
88
- s("time", {
89
- datetime: m.conversation.lastCreatedAt,
90
- class: "text-[12px] text-fm-color-typo-tertiary tabular-nums"
91
- }, i(A.value.format(new Date(m.conversation.lastCreatedAt))), 9, _e)
92
- ]),
93
- s("ol", we, [
94
- (l(!0), d(M, null, V(m.conversation.logs, (r) => (l(), d("li", {
95
- key: r.id,
96
- class: "flex flex-col gap-[4px] min-w-0"
97
- }, [
98
- r.type === "message" ? (l(), d(M, { key: 0 }, [
99
- r.isFromMe && !r.isFromBot ? (l(), d("span", be, i(u(c)("connect.whatsappBot.logs.sentByStaff")), 1)) : $("", !0),
100
- s("div", {
101
- class: ee([
102
- "px-[10px] py-[6px] text-[14px] leading-[20px] whitespace-pre-wrap break-words min-w-0",
103
- r.isFromMe ? "self-end max-w-[80%] bg-fm-color-primary-oats rounded-[12px] rounded-br-[4px]" : "self-start max-w-[75%] bg-[#F7F7F7] rounded-[12px] rounded-bl-[4px]"
104
- ])
105
- }, [
106
- P(i(h(r)) + " ", 1),
107
- r.isEdit ? (l(), d("span", ke, " (" + i(u(c)("connect.whatsappBot.logs.edited")) + ") ", 1)) : $("", !0),
108
- s("time", {
109
- datetime: r.timestamp,
110
- class: "float-right mt-[6px] ml-[10px] text-[11px] leading-[14px] text-fm-color-typo-tertiary tabular-nums"
111
- }, i(y.value.format(new Date(r.timestamp))), 9, Be)
112
- ], 2)
113
- ], 64)) : r.type === "thought" ? (l(), I(de, {
114
- key: 1,
115
- text: r.text
116
- }, null, 8, ["text"])) : r.type === "escalate" ? (l(), d("button", {
117
- key: 2,
118
- type: "button",
119
- title: u(c)("connect.whatsappBot.logs.openNotificationGroup"),
120
- class: "self-end flex items-start gap-[8px] max-w-[80%] py-[8px] pr-[12px] pl-[8px] border border-fm-color-neutral-gray-200 rounded-[8px] text-left hover:bg-fm-color-neutral-gray-100/50 focus-visible:outline-fm-color-primary",
121
- onClick: (C) => g("notificationGroup", r.clientId)
122
- }, [
123
- s("span", Fe, [
124
- _(N, {
125
- name: "group",
126
- size: "sm"
127
- })
128
- ]),
129
- s("span", Ae, [
130
- s("span", Ne, i(u(c)("connect.whatsappBot.logs.escalated")), 1),
131
- s("span", $e, i(u(c)("connect.whatsappBot.logs.reason", {
132
- reason: r.reason
133
- })), 1)
134
- ])
135
- ], 8, Ce)) : $("", !0)
136
- ]))), 128))
137
- ])
138
- ]);
139
- };
140
- }
141
- });
142
- function Me(m, v) {
143
- const n = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), c = [...m].sort(
144
- (t, o) => Date.parse(t.createdAt) - Date.parse(o.createdAt) || W(t) - W(o) || t.id.localeCompare(o.id)
145
- );
146
- for (const t of c) {
147
- const o = JSON.stringify([
148
- t.accountLid || t.clientId,
149
- t.chatJid
150
- ]), p = g.get(o) ?? { name: "", phone: "" };
151
- t.customerName && (p.name = t.customerName), t.phoneNumber && (p.phone = t.phoneNumber), g.set(o, p);
152
- const A = re.tz(t.createdAt, v).format("YYYY-MM-DD"), y = `${o}:${A}`, h = n.get(y);
153
- h ? (h.logs.push(t), h.lastCreatedAt = t.createdAt, h.clientId = t.clientId) : n.set(y, {
154
- id: y,
155
- clientId: t.clientId,
156
- chatJid: t.chatJid,
157
- customerName: "",
158
- phoneNumber: "",
159
- createdAt: t.createdAt,
160
- lastCreatedAt: t.createdAt,
161
- logs: [t]
162
- });
163
- }
164
- for (const t of n.values()) {
165
- const o = t.logs[0], p = g.get(
166
- JSON.stringify([o.accountLid || o.clientId, o.chatJid])
167
- );
168
- t.customerName = (p == null ? void 0 : p.name) ?? "", t.phoneNumber = (p == null ? void 0 : p.phone) ?? "";
169
- }
170
- return [...n.values()].sort(
171
- (t, o) => Date.parse(o.lastCreatedAt) - Date.parse(t.lastCreatedAt)
172
- );
173
- }
174
- function W(m) {
175
- return m.type === "thought" ? 1 : m.type === "escalate" ? 2 : m.isFromMe ? 3 : 0;
176
- }
177
- const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex items-center gap-[8px] flex-wrap" }, Le = { class: "max-h-[240px] overflow-y-auto" }, ze = {
178
- key: 0,
179
- role: "alert",
180
- class: "text-[14px] text-fm-color-typo-error"
181
- }, Ve = {
182
- key: 1,
183
- class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
184
- }, Te = {
185
- key: 2,
186
- class: "flex items-center gap-[12px] flex-wrap"
187
- }, Ee = {
188
- role: "alert",
189
- class: "text-[14px] text-fm-color-typo-error"
190
- }, Je = {
191
- key: 3,
192
- class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[8px]"
193
- }, Ye = { class: "text-[20px] font-semibold" }, je = { class: "max-w-[420px] text-[14px] leading-[20px] text-fm-color-typo-secondary" }, Ge = {
194
- key: 4,
195
- class: "mx-auto w-full min-w-0 flex flex-col gap-[12px]"
196
- }, qe = /* @__PURE__ */ T({
197
- __name: "WhatsappBotLogs",
198
- props: {
199
- accounts: {}
200
- },
201
- setup(m) {
202
- const v = m, { t: n } = E(), g = oe(), c = w(() => ne.getBusinessId() ?? ""), t = w(
203
- () => U[g.currentCountry.value || "MY"] ?? U.MY
204
- ), o = b([]), p = b(""), A = b([]), y = b([]), h = b(!0), f = b(""), B = b(), N = b(!1), r = b("");
205
- let C;
206
- function S(a) {
207
- var F;
208
- const e = (F = v.accounts.find(
209
- (L) => L.clientId === a
210
- )) == null ? void 0 : F.account;
211
- return (e == null ? void 0 : e.businessName) || (e == null ? void 0 : e.name) || (e == null ? void 0 : e.phoneNumber) || n("connect.whatsappBot.logs.unknownAccount", { id: a.slice(-6) });
212
- }
213
- const Z = w(
214
- () => [
215
- .../* @__PURE__ */ new Set([
216
- ...v.accounts.map((a) => a.clientId),
217
- ...y.value,
218
- ...o.value
219
- ])
220
- ].map((a) => ({ clientId: a, label: S(a) }))
221
- ), J = w(() => {
222
- const a = p.value.trim().toLocaleLowerCase();
223
- return Z.value.filter(
224
- (e) => e.label.toLocaleLowerCase().includes(a)
225
- );
226
- }), R = w(() => {
227
- const a = o.value;
228
- let e = n("connect.whatsappBot.logs.allAccounts");
229
- return a.length === 1 ? e = S(a[0]) : a.length > 1 && (e = n("connect.whatsappBot.logs.selectedAccounts", {
230
- count: a.length
231
- })), n("connect.whatsappBot.logs.accountFilter", { name: e });
232
- }), Y = w(
233
- () => Me(A.value, t.value)
234
- );
235
- function H(a) {
236
- o.value = o.value.includes(a) ? o.value.filter((e) => e !== a) : [...o.value, a];
237
- }
238
- function K(a) {
239
- r.value = "";
240
- const e = v.accounts.find(
241
- (F) => F.clientId === a
242
- );
243
- if (!e) {
244
- r.value = n("connect.whatsappBot.errors.accountNotFound");
245
- return;
246
- }
247
- B.value = e, N.value = !0;
248
- }
249
- async function D() {
250
- C == null || C.abort();
251
- const a = new AbortController();
252
- C = a, h.value = !0, f.value = "", A.value = [];
253
- try {
254
- if (!c.value)
255
- throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
256
- const e = await ae.listLogs(
257
- c.value,
258
- o.value.length ? { clientIds: o.value.join(",") } : {},
259
- a.signal
260
- );
261
- if (a.signal.aborted) return;
262
- A.value = e.logs, y.value = [
263
- .../* @__PURE__ */ new Set([
264
- ...y.value,
265
- ...e.logs.map((F) => F.clientId)
266
- ])
267
- ];
268
- } catch (e) {
269
- a.signal.aborted || (f.value = e instanceof Error ? e.message : n("connect.whatsappBot.logs.loadError"));
270
- } finally {
271
- a.signal.aborted || (h.value = !1);
272
- }
273
- }
274
- return G(c, () => {
275
- o.value = [], p.value = "", y.value = [], N.value = !1, B.value = void 0, r.value = "";
276
- }), G(
277
- [c, () => o.value.join(",")],
278
- () => void D(),
279
- { immediate: !0 }
280
- ), te(() => C == null ? void 0 : C.abort()), (a, e) => {
281
- const F = k("FmChip"), L = k("FmSearch"), Q = k("FmMenuDivider"), z = k("FmMenuItem"), X = k("FmMenu"), j = k("FmButton"), q = k("FmCircularProgress");
282
- return l(), d(M, null, [
283
- s("section", Se, [
284
- s("div", De, [
285
- _(X, {
286
- "close-on-click": !1,
287
- width: 280
288
- }, {
289
- "menu-button": O(() => [
290
- _(F, {
291
- label: R.value,
292
- "right-icon": "keyboard_arrow_down",
293
- class: "text-fm-color-typo-secondary cursor-pointer"
294
- }, null, 8, ["label"])
295
- ]),
296
- default: O(() => [
297
- _(L, {
298
- modelValue: p.value,
299
- "onUpdate:modelValue": e[0] || (e[0] = (x) => p.value = x),
300
- placeholder: u(n)("connect.whatsappBot.logs.searchAccounts")
301
- }, null, 8, ["modelValue", "placeholder"]),
302
- _(Q),
303
- _(z, {
304
- label: u(n)("connect.whatsappBot.logs.allAccounts"),
305
- "model-value": !o.value.length,
306
- "has-checkbox": "",
307
- onClick: e[1] || (e[1] = (x) => o.value = [])
308
- }, null, 8, ["label", "model-value"]),
309
- s("div", Le, [
310
- (l(!0), d(M, null, V(J.value, (x) => (l(), I(z, {
311
- key: x.clientId,
312
- label: x.label,
313
- "model-value": o.value.includes(x.clientId),
314
- "has-checkbox": "",
315
- onClick: (Oe) => H(x.clientId)
316
- }, null, 8, ["label", "model-value", "onClick"]))), 128)),
317
- J.value.length ? $("", !0) : (l(), I(z, {
318
- key: 0,
319
- label: u(n)("connect.whatsappBot.logs.noMatchingAccounts"),
320
- disabled: ""
321
- }, null, 8, ["label"]))
322
- ])
323
- ]),
324
- _: 1
325
- }),
326
- _(j, {
327
- variant: "plain",
328
- "prepend-icon": "refresh",
329
- label: u(n)("connect.whatsappBot.logs.refresh"),
330
- disabled: h.value,
331
- class: "ml-auto",
332
- onClick: e[2] || (e[2] = (x) => D())
333
- }, null, 8, ["label", "disabled"])
334
- ]),
335
- r.value ? (l(), d("p", ze, i(r.value), 1)) : $("", !0),
336
- h.value ? (l(), d("output", Ve, [
337
- _(q),
338
- P(" " + i(u(n)("connect.whatsappBot.logs.loading")), 1)
339
- ])) : f.value ? (l(), d("div", Te, [
340
- s("p", Ee, i(f.value), 1),
341
- _(j, {
342
- variant: "secondary",
343
- "prepend-icon": "refresh",
344
- label: u(n)("connect.whatsappBot.tryAgain"),
345
- onClick: e[3] || (e[3] = (x) => D())
346
- }, null, 8, ["label"])
347
- ])) : Y.value.length ? (l(), d("div", Ge, [
348
- (l(!0), d(M, null, V(Y.value, (x) => (l(), I(Ie, {
349
- key: x.id,
350
- conversation: x,
351
- "account-name": S(x.clientId),
352
- timezone: t.value,
353
- onNotificationGroup: K
354
- }, null, 8, ["conversation", "account-name", "timezone"]))), 128))
355
- ])) : (l(), d("div", Je, [
356
- s("h2", Ye, i(u(n)("connect.whatsappBot.logs.emptyTitle")), 1),
357
- s("p", je, i(u(n)("connect.whatsappBot.logs.emptyDescription")), 1)
358
- ]))
359
- ]),
360
- B.value ? (l(), I(le, {
361
- key: 0,
362
- modelValue: N.value,
363
- "onUpdate:modelValue": e[4] || (e[4] = (x) => N.value = x),
364
- account: B.value
365
- }, null, 8, ["modelValue", "account"])) : $("", !0)
366
- ], 64);
367
- };
368
- }
369
- });
370
- export {
371
- qe as default
372
- };
@@ -1,4 +0,0 @@
1
- const l = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3e%3cpath%20fill='%23EA4335'%20d='M24%209.5c3.14%200%205.95%201.08%208.17%202.86l6.08-6.08C34.46%203.1%2029.5%201%2024%201%2014.82%201%206.96%206.48%203.22%2014.44l7.08%205.5C12.08%2013.66%2017.58%209.5%2024%209.5z'/%3e%3cpath%20fill='%234285F4'%20d='M46.52%2024.5c0-1.64-.15-3.22-.42-4.74H24v8.98h12.7c-.55%202.96-2.2%205.46-4.68%207.14l7.18%205.58C43.18%2037.36%2046.52%2031.38%2046.52%2024.5z'/%3e%3cpath%20fill='%23FBBC05'%20d='M10.3%2028.56A14.56%2014.56%200%200%201%209.5%2024c0-1.58.27-3.1.76-4.52l-7.08-5.5A23.94%2023.94%200%200%200%200%2024c0%203.86.92%207.5%202.56%2010.72l7.74-6.16z'/%3e%3cpath%20fill='%2334A853'%20d='M24%2047c5.5%200%2010.12-1.82%2013.48-4.94l-7.18-5.58c-1.82%201.22-4.14%201.94-6.3%201.94-6.42%200-11.92-4.16-13.7-9.86l-7.74%206.16C6.96%2041.52%2014.82%2047%2024%2047z'/%3e%3cpath%20fill='none'%20d='M0%200h48v48H0z'/%3e%3c/svg%3e";
2
- export {
3
- l as g
4
- };
@@ -1,74 +0,0 @@
1
- import { g as r, h as c, i, j as g, k as p, l, m as d } from "./index-I9lmcd2w.js";
2
- import { g as n, b as u } from "./index-CBd91xYU.js";
3
- const s = (t) => u(`businesses/${encodeURIComponent(t)}/whatsapp`), y = {
4
- async listLogs(t, e, a) {
5
- const o = r.parse(e);
6
- return c.parse(
7
- n(await s(t).get("/logs", { params: o, signal: a }))
8
- );
9
- },
10
- async removeExcludedAccount(t, e, a) {
11
- await s(t).delete(
12
- `/excluded-accounts/${encodeURIComponent(e)}`,
13
- { signal: a }
14
- );
15
- },
16
- async getSettings(t, e) {
17
- return i.parse(
18
- n(await s(t).get("/settings", { signal: e }))
19
- );
20
- },
21
- async saveSettings(t, e, a) {
22
- const o = g.parse(e);
23
- return i.parse(
24
- n(await s(t).put("/settings", o, { signal: a }))
25
- );
26
- },
27
- async listClients(t, e) {
28
- return p.array().parse(
29
- n(await s(t).get("/clients", { signal: e }))
30
- );
31
- },
32
- async getClient(t, e, a) {
33
- return p.parse(
34
- n(
35
- await s(t).get(
36
- `/clients/${encodeURIComponent(e)}`,
37
- { signal: a }
38
- )
39
- )
40
- );
41
- },
42
- async deleteClient(t, e, a) {
43
- await s(t).delete(
44
- `/clients/${encodeURIComponent(e)}`,
45
- {
46
- signal: a
47
- }
48
- );
49
- },
50
- async createClient(t, e) {
51
- return l.parse(
52
- n(
53
- await s(t).post(
54
- "/clients",
55
- {},
56
- { signal: e, timeout: 5e4 }
57
- )
58
- )
59
- );
60
- },
61
- async getNotificationGroup(t, e, a) {
62
- return d.parse(
63
- n(
64
- await s(t).get(
65
- `/clients/${encodeURIComponent(e)}/notification-group`,
66
- { signal: a, timeout: 5e4 }
67
- )
68
- )
69
- );
70
- }
71
- };
72
- export {
73
- y as w
74
- };
@@ -1,145 +0,0 @@
1
- import { b as l } from "./app-BMFxxLUm.js";
2
- var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5cc62f4f-1879-44dc-a522-c9ca6632a168", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", npm_package_devDependencies_vitest: "^2.1.9", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.20.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5cc62f4f-1879-44dc-a522-c9ca6632a168", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_dependencies_moment_timezone: "^0.6.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.29.31", npm_package_dependencies_fabric: "^6.4.2", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1869", ACTIONS_ORCHESTRATION_ID: "9220bb86-39e0-445d-9f09-8a4bc0430973.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.10.13", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261101.186.1", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", npm_package_devDependencies__playwright_test: "^1.62.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_5cc62f4f-1879-44dc-a522-c9ca6632a168", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:15839", GITHUB_WORKFLOW: "Publish mf-connect - production", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_css_tree: "3.2.1", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_dependencies_sanitize_html: "2.17.4", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "41762859397", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "40ce93d64e4ec02fd9191a2f8b06d9464a534826", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", npm_package_exports___import: "./dist/app.js", npm_package_dependencies__ckeditor_ckeditor5_vue: "^7.3.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] publish-mf-connect.yml@refs/heads/release/my-upselling-outlets-prod-0124", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_286a50df-8740-4e59-b179-1f6dbecdd04d", INVOCATION_ID: "e5d3aa15c3ef4114a7cd60cb27b4d065", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "64", GITHUB_TRIGGERING_ACTOR: "Tanwyhang", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_test_e2e: "playwright test", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.30", RUNNER_NAME: "GitHub Actions 1000253223", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "release/my-upselling-outlets-prod-0124", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.15.47", npm_lifecycle_script: "vite build --mode fmmf:prod", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest run", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.124-prod", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", npm_package_dependencies_ckeditor5: "^44.3.0", npm_package_dependencies_htmlparser2: "10.1.0", npm_package_dependencies__feedmepos_mf_upselling: "https://registry.npmjs.org/@feedmepos/mf-upselling/-/mf-upselling-0.3.2.tgz", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "40ce93d64e4ec02fd9191a2f8b06d9464a534826", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/release/my-upselling-outlets-prod-0124", GITHUB_ACTOR: "Tanwyhang", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_scripts_test_watch: "vitest", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_5cc62f4f-1879-44dc-a522-c9ca6632a168", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "72087988", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5cc62f4f-1879-44dc-a522-c9ca6632a168", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_5cc62f4f-1879-44dc-a522-c9ca6632a168", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5cc62f4f-1879-44dc-a522-c9ca6632a168", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_dependencies__feedmepos_mf_remy_panel: "0.15.0", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", IMPORT_FILES_STORAGE_BUCKET: "feedme-253402.appspot.com", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedme.cc/", VOUCHER_APP_URL: "https://voucher.feedme.cc/", FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), c = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, d = (() => {
3
- try {
4
- return _Buffer;
5
- } catch {
6
- try {
7
- return Buffer;
8
- } catch {
9
- return null;
10
- }
11
- }
12
- })(), r = function(e) {
13
- return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
14
- }, u = [];
15
- for (var p = 0; p < 256; p++)
16
- u[p] = (p <= 15 ? "0" : "") + p.toString(16);
17
- var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
18
- p = 0;
19
- for (; p < 10; ) s[48 + p] = p++;
20
- for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
21
- function n(e) {
22
- if (!(this instanceof n)) return new n(e);
23
- if (e && (e instanceof n || e._bsontype === "ObjectID"))
24
- return e;
25
- if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
26
- this.id = this.generate(e);
27
- return;
28
- }
29
- var _ = n.isValid(e);
30
- if (!_ && e != null)
31
- throw new Error(
32
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
33
- );
34
- if (_ && typeof e == "string" && e.length === 24)
35
- return n.createFromHexString(e);
36
- if (e != null && e.length === 12)
37
- this.id = e;
38
- else {
39
- if (e != null && typeof e.toHexString == "function")
40
- return e;
41
- throw new Error(
42
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
43
- );
44
- }
45
- }
46
- var g = n;
47
- n.default = n;
48
- n.createFromTime = function(e) {
49
- return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
50
- };
51
- n.createFromHexString = function(e) {
52
- if (typeof e > "u" || e != null && e.length !== 24)
53
- throw new Error(
54
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
55
- );
56
- for (var _ = "", t = 0; t < 24; )
57
- _ += String.fromCharCode(s[e.charCodeAt(t++)] << 4 | s[e.charCodeAt(t++)]);
58
- return new n(_);
59
- };
60
- n.isValid = function(e) {
61
- return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && d && (e.id instanceof d || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && m.test(e.id) : !1;
62
- };
63
- n.prototype = {
64
- constructor: n,
65
- /**
66
- * Return the ObjectID id as a 24 byte hex string representation
67
- *
68
- * @return {String} return the 24 byte hex string representation.
69
- * @api public
70
- */
71
- toHexString: function() {
72
- if (!this.id || !this.id.length)
73
- throw new Error(
74
- "invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
75
- );
76
- if (this.id.length === 24)
77
- return this.id;
78
- if (r(this.id))
79
- return this.id.toString("hex");
80
- for (var e = "", _ = 0; _ < this.id.length; _++)
81
- e += u[this.id.charCodeAt(_)];
82
- return e;
83
- },
84
- /**
85
- * Compares the equality of this ObjectID with `otherID`.
86
- *
87
- * @param {Object} otherId ObjectID instance to compare against.
88
- * @return {Boolean} the result of comparing two ObjectID's
89
- * @api public
90
- */
91
- equals: function(e) {
92
- return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && r(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
93
- },
94
- /**
95
- * Returns the generation date (accurate up to the second) that this ID was generated.
96
- *
97
- * @return {Date} the generation date
98
- * @api public
99
- */
100
- getTimestamp: function() {
101
- var e = /* @__PURE__ */ new Date(), _;
102
- return r(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
103
- },
104
- /**
105
- * Generate a 12 byte id buffer used in ObjectID's
106
- *
107
- * @method
108
- * @param {number} [time] optional parameter allowing to pass in a second based timestamp.
109
- * @return {string} return the 12 byte id buffer string.
110
- */
111
- generate: function(e) {
112
- typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
113
- var _ = f();
114
- return String.fromCharCode(
115
- e >> 24 & 255,
116
- e >> 16 & 255,
117
- e >> 8 & 255,
118
- e & 255,
119
- i >> 16 & 255,
120
- i >> 8 & 255,
121
- i & 255,
122
- c >> 8 & 255,
123
- c & 255,
124
- _ >> 16 & 255,
125
- _ >> 8 & 255,
126
- _ & 255
127
- );
128
- }
129
- };
130
- function f() {
131
- return a = (a + 1) % 16777215;
132
- }
133
- function E(e, _) {
134
- return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
135
- }
136
- var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
137
- n.prototype[h] = function() {
138
- return "ObjectID(" + this + ")";
139
- };
140
- n.prototype.toJSON = n.prototype.toHexString;
141
- n.prototype.toString = n.prototype.toHexString;
142
- const T = /* @__PURE__ */ l(g);
143
- export {
144
- T as O
145
- };