@feedmepos/mf-connect 0.1.98-beta.86 → 0.1.98-beta.89
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.
- package/README.md +62 -5
- package/dist/{App-C3brXgJH.js → App-D4hRwK-o.js} +586 -569
- package/dist/{AuditLogs-CknggPMD.js → AuditLogs-D_PrLKVP.js} +13 -13
- package/dist/{Bin-BOE-Liwr.js → Bin-DF_1hlo5.js} +8 -8
- package/dist/{Broadcast-BStqQOUT.js → Broadcast-D81xkQ0B.js} +12 -12
- package/dist/{CampaignAnalytic-Dga32CpH.js → CampaignAnalytic-960oR5Nw.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CldyOaCt.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-WOfSfATi.js} +8 -8
- package/dist/{Card-CQxp73o4.js → Card-nF9lexRS.js} +23 -23
- package/dist/{Collections-BRms0YoR.js → Collections-CJbGLkwm.js} +8 -8
- package/dist/{Credit-DW7Vq-01.js → Credit-tfInnpDW.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BXK40fTr.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CAPxB3r7.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bv2r2gFI.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM2UlBtj.js} +35 -36
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-TBjXJglM.js → EffectSheet.vue_vue_type_style_index_0_lang-BfrzJxWQ.js} +6 -6
- package/dist/{Experience-C_H8mmJJ.js → Experience-2uX3ESg5.js} +13 -13
- package/dist/{FileSaver.min-C5N6-O4l.js → FileSaver.min-DqWpgesn.js} +1 -1
- package/dist/{Game-LgNoMtbs.js → Game-BQtHns1v.js} +13 -13
- package/dist/{GiftCardSetup-DmL416w3.js → GiftCardSetup-B4I83SkJ.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DqDerUNT.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DujMhaOh.js} +7 -7
- package/dist/{Goals-D-maM_jj.js → Goals-DSkXACjH.js} +4 -4
- package/dist/{Grab-DKbgjw7e.js → Grab-ArpQ-7LU.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZ3UDnkx.js → ImageInput.vue_vue_type_script_setup_true_lang-GdfKNEdQ.js} +1 -1
- package/dist/{Index-_cZDq1HS.js → Index-Bb8k7ofl.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Chm-x4fo.js → LocationPicker.vue_vue_type_script_setup_true_lang-tHLWrX4C.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Ez1QV7ON.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C5E_mvcD.js} +1 -1
- package/dist/{LoyaltyDashboard-D1B3MjhC.js → LoyaltyDashboard-C-U8HulY.js} +23 -24
- package/dist/MainLayout-TV3HyBYh.js +4 -0
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bf-Kvl5W.js → MainLayout.vue_vue_type_script_setup_true_lang-lO1k_OLo.js} +5 -4
- package/dist/{Marketing-C4apg5nO.js → Marketing-CWe_R_3E.js} +4 -4
- package/dist/MarketingMaterialEdit-TGP6o6Vv.js +1037 -0
- package/dist/{Member-B2W3wm1r.js → Member-DDZ8TLLZ.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-l3edYke6.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CweUf6Iv.js} +24 -24
- package/dist/{MemberImportHistory-C3i6ekKS.js → MemberImportHistory-Til1afm1.js} +7 -7
- package/dist/{MemberList-CsIsMafE.js → MemberList-uoSeAZlO.js} +14 -14
- package/dist/{MemberTransactions-Cdndq5ic.js → MemberTransactions-MxJWI1es.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BtVvv1xd.js → MessageInput.vue_vue_type_script_setup_true_lang-B4H67Tvb.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DwXsAI7F.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DhHMIgza.js} +1 -1
- package/dist/{Mission-Fa1VYYZa.js → Mission-C_hcFlzC.js} +14 -14
- package/dist/{Overview-DSmO8LtX.js → Overview-B3ugdY_2.js} +4 -4
- package/dist/{Overview-oxeTbsQ8.js → Overview-Bxe-Kfci.js} +21 -21
- package/dist/{Point-CWpQn9W_.js → Point-BBVTyXIL.js} +14 -14
- package/dist/{Promotion-CoYdDRod.js → Promotion-D-44JTkv.js} +14 -14
- package/dist/{Queue-Bij3hgY2.js → Queue-BNjlzhJ_.js} +13 -13
- package/dist/{Record-Be2TI_X_.js → Record-C34UZ1q6.js} +9 -9
- package/dist/{Review-C-QnIayC.js → Review-C4iuNBR7.js} +2 -2
- package/dist/{ReviewFacebookCallback-CPyXfHvB.js → ReviewFacebookCallback-Bsp6WSaQ.js} +5 -5
- package/dist/{ReviewGoogleCallback-BPNB0btT.js → ReviewGoogleCallback-Ddqe1tZZ.js} +5 -5
- package/dist/{Reward-RyaVdYyZ.js → Reward-CjybtjcT.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C2ebKu-S.js → RewardGroup.vue_vue_type_script_setup_true_lang-Do_obBgC.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BZ_wN3Gj.js → RuleGroup.vue_vue_type_script_setup_true_lang-BiGexpsh.js} +15 -15
- package/dist/{Segment-CE7Ca2Zo.js → Segment-BU5W9wBQ.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-vODQiSna.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Buih6X5R.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CgI_qWVw.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DN-VwmTf.js} +4 -4
- package/dist/{Setting-BC6ir0DR.js → Setting-BsCkMHQZ.js} +14 -14
- package/dist/{SettingAdvertisements-DLmxEwdG.js → SettingAdvertisements-CTTFCozw.js} +12 -12
- package/dist/{Settings-CF78Ug2K.js → Settings-D3_nrJff.js} +5 -5
- package/dist/{Store-CZTZTO1x.js → Store-DRWKc7Q7.js} +29 -30
- package/dist/{StoreRewards-BdtlvNcm.js → StoreRewards-_4iqQsak.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DSKYWLE_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Db4fakO6.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DsQiBOV4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CAO3Ycxn.js} +2 -2
- package/dist/{Tier-5eUYHhoX.js → Tier-Cj_4Z8PG.js} +27 -27
- package/dist/{Title-ibn2JnRB.js → Title-Bjg44PZP.js} +23 -23
- package/dist/{Transaction-BZzL13MU.js → Transaction-DbehbwRK.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DUv9nFqV.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DeMdcwb2.js} +6 -6
- package/dist/{Voucher-B6qYDcnp.js → Voucher-DARWiV1M.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CI7NwvnH.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BYNjq7K0.js} +12 -12
- package/dist/WhatsappAccount-CBx-FoRb.js +158 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BFUOuRGy.js +39 -0
- package/dist/{WhatsappBot-BhrP6JnO.js → WhatsappBot-MSJq0pE4.js} +229 -221
- package/dist/WhatsappBotLogs-CEyUngzi.js +372 -0
- package/dist/WhatsappBotSettings-NIE8NeN4.js +387 -0
- package/dist/{WhatsappBotTickets-DJnC4c2j.js → WhatsappBotTickets-OCmEkzeD.js} +3 -3
- package/dist/WhatsappLayout-DLPLalle.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-D_bVWePp.js +195 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C2nesHNf.js → ZodTextField.vue_vue_type_script_setup_true_lang-HVcTakep.js} +2 -2
- package/dist/{app-C5bfcrJd.js → app-CsPUjtBR.js} +670 -522
- package/dist/app.js +1 -1
- package/dist/{base.export-0man_ZSH.js → base.export-CSSDz0q9.js} +2 -2
- package/dist/{business-BW09R8w1.js → business-BwGS0vma.js} +5 -5
- package/dist/{campaign-Dxbvq3Zl.js → campaign-Bw44Blhh.js} +8 -8
- package/dist/{campaign-gSM8Uzyl.js → campaign-CwfENerv.js} +2 -2
- package/dist/{campaign.fn-CzNJtky2.js → campaign.fn-Bx7g_BvU.js} +31 -31
- package/dist/{collection.fn-BVUdafur.js → collection.fn-Ba8-HPHO.js} +2 -2
- package/dist/{currency-CcWkcszY.js → currency-CO5xQCxT.js} +1 -1
- package/dist/{duplicateCampaign-DDfAc-AY.js → duplicateCampaign-C2FQFuzl.js} +2 -2
- package/dist/{effect-Dn7anzDq.js → effect-BUxZHyCk.js} +1 -1
- package/dist/{email-addresses-BRRFCqW3.js → email-addresses-CfdqSZi6.js} +2 -2
- package/dist/feature-flag-DpIT0Nh2.js +50 -0
- package/dist/{helper-DPI5b1e1.js → helper-miVbMaVy.js} +1 -1
- package/dist/{index-D9SBKZvv.js → index-BC30mczi.js} +9 -9
- package/dist/{index-ZLyACIvN.js → index-Bshl0e-c.js} +2 -2
- package/dist/{index-_EvVNmhF.js → index-CMGEBPm-.js} +7746 -5975
- package/dist/{index-DtZ450Y-.js → index-CNX6rFiO.js} +3 -3
- package/dist/{index-CeDuysyp.js → index-CW07TXqO.js} +2 -2
- package/dist/{index-Dv9W26wg.js → index-CYVDCxVj.js} +1 -1
- package/dist/{index-Bi4203Wb.js → index-Co3X9LyE.js} +1 -1
- package/dist/{index-DPS6iW7Q.js → index-CxzJwolN.js} +1 -1
- package/dist/{index-D8rPhlZa.js → index-CyMrx8XA.js} +1 -1
- package/dist/{index-KNE2wEbP.js → index-D6RtVzN9.js} +2 -2
- package/dist/{index-CoFJoIox.js → index-DIOb3eOI.js} +14 -14
- package/dist/{index-BsSqDkI8.js → index-DSwOhkYZ.js} +2 -2
- package/dist/{index-U6kp2_A3.js → index-DgnQ18-j.js} +1 -1
- package/dist/{index-BBLmqV8g.js → index-Dy7VtHTZ.js} +3 -3
- package/dist/{index-xLDLoo67.js → index-L7SBt-2D.js} +19 -13
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-BQ-9m3Ro.js → index-Se-R3ekJ.js} +2 -2
- package/dist/{index-BLQbc3Rv.js → index-bJ2Ur1Yd.js} +1 -1
- package/dist/{index-LSYjttVr.js → index-gP-EJA-Y.js} +2 -2
- package/dist/{index-ButxHAMi.js → index-mBHnjwCf.js} +10 -10
- package/dist/{index-sVyIf_p-.js → index-nZUfIfsn.js} +4 -4
- package/dist/{index.esm2017-DQJ6E2gu.js → index.esm2017-DlOLsAJL.js} +1 -1
- package/dist/{loading-DOyd2D4O.js → loading-BEDz7eTi.js} +1 -1
- package/dist/{lodash-BLqC3Cwx.js → lodash-Bx7d35Zs.js} +1 -1
- package/dist/{member-import-x7Vw0b3w.js → member-import-D4zgQyJX.js} +1 -1
- package/dist/{membership-CE9vEP2d.js → membership-VJBDeKcE.js} +2 -2
- package/dist/{money-CX-ZAEDu.js → money-Dh0agFMv.js} +1 -1
- package/dist/{number-CSungdQc.js → number-D2coZpxW.js} +1 -1
- package/dist/{objectid-DwEAf7Cc.js → objectid-DVSB63oC.js} +10 -10
- package/dist/{onboarding-BAJgDH9y.js → onboarding-CLwhjKAL.js} +3 -3
- package/dist/{onboardingSetup-GvIYNiAE.js → onboardingSetup-78evK8yB.js} +2 -2
- package/dist/{plugins-B1AphVoU.js → plugins-CKViI6Y3.js} +3 -3
- package/dist/{MarketingMaterialEdit-Dcjzvwfv.js → remy-icon-BhUGu2NI.js} +2 -1034
- package/dist/{reward-D2zC58M2.js → reward-Drd9EaxJ.js} +1 -1
- package/dist/{rule-CxoPKAlI.js → rule-Dr21X2h0.js} +10 -10
- package/dist/{template-KRS1NbWX.js → template-yVg3lQKo.js} +6 -6
- package/dist/{timezone-CW8sKc69.js → timezone-CGlmgCYo.js} +1 -1
- package/dist/{transaction.fn-Djbx8lHM.js → transaction.fn-outAFFwM.js} +2 -2
- package/dist/{trigger-RkjkEHrL.js → trigger-C1GL_8pm.js} +7 -7
- package/dist/{useMarketingMaterialActions-BUnl-bFY.js → useMarketingMaterialActions-D8MIFnMy.js} +3 -3
- package/dist/{usePagination-vdRzCfJw.js → usePagination-Dlx9q4a8.js} +1 -1
- package/dist/useWhatsappAccount-1Yy7aaA9.js +62 -0
- package/dist/{user-CamDVkKA.js → user-BtORKvTK.js} +1 -1
- package/dist/{vue-i18n-DwgfDwGn.js → vue-i18n-CkZqjA2G.js} +355 -355
- package/dist/{xlsx-DkuYe2Jz.js → xlsx-HAQ29LQq.js} +1 -1
- package/dist/{zod-BDeUQtCa.js → zod-DByiKRxr.js} +1 -1
- package/package.json +1 -1
- package/dist/MainLayout-C115sjz6.js +0 -4
- package/dist/WhatsappAccount-CodbP5kY.js +0 -342
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BAgSc0i4.js +0 -97
- package/dist/WhatsappBotSettings-CjDKw25J.js +0 -394
- package/dist/WhatsappLayout-BgW1ASQE.js +0 -21
- package/dist/feature-flag-D2MJ8eLY.js +0 -18
- package/dist/index-BVdImOs0.js +0 -1775
- package/dist/index-DgkRREfK.js +0 -72
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as Fe, o as Ze } from "./index-
|
|
1
|
+
import { n as Fe, o as Ze } from "./index-Bshl0e-c.js";
|
|
2
2
|
import { h as _ } from "./moment-D7p2TMB-.js";
|
|
3
3
|
import { a as pe, b as N, c as y } from "./tslib.es6-BCqqvLQ_.js";
|
|
4
|
-
import { u as re } from "./membership-
|
|
5
|
-
import { R as K, i as he } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as Ge } from "./business-
|
|
4
|
+
import { u as re } from "./membership-VJBDeKcE.js";
|
|
5
|
+
import { R as K, i as he } from "./index-mBHnjwCf.js";
|
|
6
|
+
import "./index-nZUfIfsn.js";
|
|
7
|
+
import "./index-Dy7VtHTZ.js";
|
|
8
|
+
import "./index-DIOb3eOI.js";
|
|
9
|
+
import "./index-Se-R3ekJ.js";
|
|
10
|
+
import "./index-RwNlbTO8.js";
|
|
11
|
+
import "./index-CYVDCxVj.js";
|
|
12
|
+
import { u as Ge } from "./business-BwGS0vma.js";
|
|
13
13
|
var fe = [
|
|
14
14
|
"MO",
|
|
15
15
|
"TU",
|
|
@@ -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-
|
|
2
|
+
import { u as J } from "./campaign-CwfENerv.js";
|
|
3
3
|
import { useDialog as M } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as A } from "./index-
|
|
5
|
-
import { _ as G } from "./lodash-
|
|
6
|
-
import { C as H } from "./campaign-
|
|
4
|
+
import { F as A } from "./index-mBHnjwCf.js";
|
|
5
|
+
import { _ as G } from "./lodash-Bx7d35Zs.js";
|
|
6
|
+
import { C as H } from "./campaign-Bw44Blhh.js";
|
|
7
7
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
8
|
-
import { u as Q } from "./vue-i18n-
|
|
9
|
-
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as Q } from "./vue-i18n-CkZqjA2G.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM2UlBtj.js";
|
|
10
10
|
const U = /* @__PURE__ */ V({
|
|
11
11
|
__name: "CampaignChip",
|
|
12
12
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { s as u } from "./index-
|
|
1
|
+
import "./index-nZUfIfsn.js";
|
|
2
|
+
import { s as u } from "./index-Co3X9LyE.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-
|
|
3
|
-
import { R as i } from "./index-
|
|
4
|
-
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
6
|
-
import { i as n } from "./plugins-
|
|
2
|
+
import "./index-Bshl0e-c.js";
|
|
3
|
+
import { R as i } from "./index-mBHnjwCf.js";
|
|
4
|
+
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BiGexpsh.js";
|
|
5
|
+
import { l as e, C as d } from "./index-DIOb3eOI.js";
|
|
6
|
+
import { i as n } from "./plugins-CKViI6Y3.js";
|
|
7
7
|
const L = /* @__PURE__ */ m({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
@@ -208,6 +208,6 @@ const L = /* @__PURE__ */ m({
|
|
|
208
208
|
export {
|
|
209
209
|
C as T,
|
|
210
210
|
L as _,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
O as a,
|
|
212
|
+
R as b
|
|
213
213
|
};
|
package/dist/{useMarketingMaterialActions-BUnl-bFY.js → useMarketingMaterialActions-D8MIFnMy.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as o, g as c, b } from "./index-
|
|
2
|
-
import { u as w } from "./vue-i18n-
|
|
1
|
+
import { S as o, g as c, b } from "./index-CMGEBPm-.js";
|
|
2
|
+
import { u as w } from "./vue-i18n-CkZqjA2G.js";
|
|
3
3
|
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as k } from "./plugins-
|
|
4
|
+
import { c as k } from "./plugins-CKViI6Y3.js";
|
|
5
5
|
const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
|
|
6
6
|
async createMarketingMaterial(e) {
|
|
7
7
|
const a = 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-
|
|
3
|
+
import { l as E } from "./lodash-Bx7d35Zs.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"
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { computed as t, toValue as g, ref as w, watch as y } from "vue";
|
|
2
|
+
import { u as N } from "./vue-i18n-CkZqjA2G.js";
|
|
3
|
+
function C(s) {
|
|
4
|
+
const o = s.connectedAt !== null;
|
|
5
|
+
switch (s.status) {
|
|
6
|
+
case "connected":
|
|
7
|
+
return "connected";
|
|
8
|
+
case "disconnected":
|
|
9
|
+
return o ? "disconnected" : void 0;
|
|
10
|
+
case "connecting":
|
|
11
|
+
return o ? "connecting" : void 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const d = [
|
|
15
|
+
"bg-fm-color-primary",
|
|
16
|
+
"bg-fm-color-secondary-plum",
|
|
17
|
+
"bg-fm-color-system-success-400"
|
|
18
|
+
];
|
|
19
|
+
function U(s) {
|
|
20
|
+
const { t: o, locale: v } = N(), c = t(() => g(s)), u = t(
|
|
21
|
+
() => {
|
|
22
|
+
var e, n, a;
|
|
23
|
+
return (a = (n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.profilePicture) == null ? void 0 : a.url;
|
|
24
|
+
}
|
|
25
|
+
), r = w(!1);
|
|
26
|
+
y(u, () => {
|
|
27
|
+
r.value = !1;
|
|
28
|
+
});
|
|
29
|
+
const l = t(
|
|
30
|
+
() => {
|
|
31
|
+
var e, n, a, i, p, m;
|
|
32
|
+
return ((n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.businessName) || ((i = (a = c.value) == null ? void 0 : a.account) == null ? void 0 : i.name) || ((m = (p = c.value) == null ? void 0 : p.account) == null ? void 0 : m.phoneNumber) || o("connect.whatsappBot.unnamedAccount");
|
|
33
|
+
}
|
|
34
|
+
), f = t(
|
|
35
|
+
() => {
|
|
36
|
+
var e, n;
|
|
37
|
+
return ((n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.phoneNumber) || o("connect.whatsappBot.phoneUnavailable");
|
|
38
|
+
}
|
|
39
|
+
), h = t(
|
|
40
|
+
() => l.value.trim().split(/\s+/).slice(0, 2).map((e) => Array.from(e)[0]).join("").toLocaleUpperCase(v.value)
|
|
41
|
+
), b = t(
|
|
42
|
+
() => c.value ? C(c.value) ?? "disconnected" : "disconnected"
|
|
43
|
+
), A = t(
|
|
44
|
+
() => {
|
|
45
|
+
var e;
|
|
46
|
+
return d[parseInt(((e = c.value) == null ? void 0 : e.clientId.slice(-6)) ?? "0", 16) % d.length];
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
return {
|
|
50
|
+
name: l,
|
|
51
|
+
phoneNumber: f,
|
|
52
|
+
initials: h,
|
|
53
|
+
state: b,
|
|
54
|
+
avatarColor: A,
|
|
55
|
+
profilePictureUrl: u,
|
|
56
|
+
profilePictureFailed: r
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
U as u,
|
|
61
|
+
C as w
|
|
62
|
+
};
|