@feedmepos/mf-connect 0.1.98-beta.87 → 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/dist/{App-DZzCW6yw.js → App-D4hRwK-o.js} +10 -10
- package/dist/{AuditLogs-C5s1oYtj.js → AuditLogs-D_PrLKVP.js} +13 -13
- package/dist/{Bin-B1e-qVtO.js → Bin-DF_1hlo5.js} +8 -8
- package/dist/{Broadcast-CwO5ut-E.js → Broadcast-D81xkQ0B.js} +12 -12
- package/dist/{CampaignAnalytic-B1KXy3dl.js → CampaignAnalytic-960oR5Nw.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DS8RAeUt.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-WOfSfATi.js} +8 -8
- package/dist/{Card-BK-p9FW9.js → Card-nF9lexRS.js} +23 -23
- package/dist/{Collections-CTF-r_mV.js → Collections-CJbGLkwm.js} +8 -8
- package/dist/{Credit-DR2AvPrI.js → Credit-tfInnpDW.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CixW7_65.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CAPxB3r7.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D53ghi_e.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM2UlBtj.js} +35 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BNCvFw9v.js → EffectSheet.vue_vue_type_style_index_0_lang-BfrzJxWQ.js} +6 -6
- package/dist/{Experience-BzPvYJ0N.js → Experience-2uX3ESg5.js} +13 -13
- package/dist/{FileSaver.min-BBi03O9S.js → FileSaver.min-DqWpgesn.js} +1 -1
- package/dist/{Game-DNdM6BpR.js → Game-BQtHns1v.js} +13 -13
- package/dist/{GiftCardSetup-yVVt1hCK.js → GiftCardSetup-B4I83SkJ.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C_REykTp.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DujMhaOh.js} +7 -7
- package/dist/{Goals-RyNCRCoT.js → Goals-DSkXACjH.js} +4 -4
- package/dist/{Grab-COgtKEHg.js → Grab-ArpQ-7LU.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DueG1yQj.js → ImageInput.vue_vue_type_script_setup_true_lang-GdfKNEdQ.js} +1 -1
- package/dist/{Index-CW5ib46F.js → Index-Bb8k7ofl.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dbk0uqyl.js → LocationPicker.vue_vue_type_script_setup_true_lang-tHLWrX4C.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-s19mfQze.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C5E_mvcD.js} +1 -1
- package/dist/{LoyaltyDashboard-CJW9sSpM.js → LoyaltyDashboard-C-U8HulY.js} +15 -15
- package/dist/{MainLayout-DJrtcFYj.js → MainLayout-TV3HyBYh.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-fXA-ixLQ.js → MainLayout.vue_vue_type_script_setup_true_lang-lO1k_OLo.js} +3 -3
- package/dist/{Marketing-DJD3MCP0.js → Marketing-CWe_R_3E.js} +4 -4
- package/dist/MarketingMaterialEdit-TGP6o6Vv.js +1037 -0
- package/dist/{Member-B9_6dgmX.js → Member-DDZ8TLLZ.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B6PrfIdK.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CweUf6Iv.js} +24 -24
- package/dist/{MemberImportHistory-daeSSL3G.js → MemberImportHistory-Til1afm1.js} +7 -7
- package/dist/{MemberList-DpMvv6MH.js → MemberList-uoSeAZlO.js} +14 -14
- package/dist/{MemberTransactions-CekjmOnU.js → MemberTransactions-MxJWI1es.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cgb0WN3L.js → MessageInput.vue_vue_type_script_setup_true_lang-B4H67Tvb.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DKJH_z31.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DhHMIgza.js} +1 -1
- package/dist/{Mission-B3YYFaqK.js → Mission-C_hcFlzC.js} +14 -14
- package/dist/{Overview-B3VtDXAN.js → Overview-B3ugdY_2.js} +4 -4
- package/dist/{Overview-DcLRK3qr.js → Overview-Bxe-Kfci.js} +21 -21
- package/dist/{Point-rE75hllY.js → Point-BBVTyXIL.js} +14 -14
- package/dist/{Promotion-CldXbf59.js → Promotion-D-44JTkv.js} +14 -14
- package/dist/{Queue-Im8WyRKY.js → Queue-BNjlzhJ_.js} +13 -13
- package/dist/{Record-DmP7Q885.js → Record-C34UZ1q6.js} +9 -9
- package/dist/{Review-DDaoANvS.js → Review-C4iuNBR7.js} +2 -2
- package/dist/{ReviewFacebookCallback-6fQq9t2y.js → ReviewFacebookCallback-Bsp6WSaQ.js} +5 -5
- package/dist/{ReviewGoogleCallback-DDmUWLd9.js → ReviewGoogleCallback-Ddqe1tZZ.js} +5 -5
- package/dist/{Reward-BzL-toJQ.js → Reward-CjybtjcT.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CrQvlB_E.js → RewardGroup.vue_vue_type_script_setup_true_lang-Do_obBgC.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Dk8kqDSk.js → RuleGroup.vue_vue_type_script_setup_true_lang-BiGexpsh.js} +15 -15
- package/dist/{Segment-BweG5YWo.js → Segment-BU5W9wBQ.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BfFtD5TS.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Buih6X5R.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsgQ1kqK.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DN-VwmTf.js} +4 -4
- package/dist/{Setting-MW6B10tv.js → Setting-BsCkMHQZ.js} +14 -14
- package/dist/{SettingAdvertisements-DP-Wm3vC.js → SettingAdvertisements-CTTFCozw.js} +12 -12
- package/dist/{Settings-CczrlaKr.js → Settings-D3_nrJff.js} +5 -5
- package/dist/{Store-C9pYfjIe.js → Store-DRWKc7Q7.js} +27 -27
- package/dist/{StoreRewards-DecpygTj.js → StoreRewards-_4iqQsak.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cw63xJWj.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Db4fakO6.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B_t4xibZ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CAO3Ycxn.js} +2 -2
- package/dist/{Tier-D7dHj_zA.js → Tier-Cj_4Z8PG.js} +27 -27
- package/dist/{Title-DqEvTcqS.js → Title-Bjg44PZP.js} +23 -23
- package/dist/{Transaction-Z4qjSyBB.js → Transaction-DbehbwRK.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D9X2-IIl.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DeMdcwb2.js} +6 -6
- package/dist/{Voucher-BY8YGlpM.js → Voucher-DARWiV1M.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-3j_0rbsk.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-Oo1KHYLi.js → WhatsappBot-MSJq0pE4.js} +229 -221
- package/dist/WhatsappBotLogs-CEyUngzi.js +372 -0
- package/dist/{WhatsappBotSettings-DL1f_qXt.js → WhatsappBotSettings-NIE8NeN4.js} +5 -5
- package/dist/{WhatsappBotTickets-CerGACm5.js → WhatsappBotTickets-OCmEkzeD.js} +3 -3
- package/dist/{WhatsappLayout-B2DrnLNS.js → WhatsappLayout-DLPLalle.js} +3 -3
- 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-0cvPcwm5.js → ZodTextField.vue_vue_type_script_setup_true_lang-HVcTakep.js} +2 -2
- package/dist/{app-bGZlAIpq.js → app-CsPUjtBR.js} +529 -391
- package/dist/app.js +1 -1
- package/dist/{base.export-COcyNfbe.js → base.export-CSSDz0q9.js} +2 -2
- package/dist/{business-DTPgRJRn.js → business-BwGS0vma.js} +1 -1
- package/dist/{campaign-cm9TQ4dw.js → campaign-Bw44Blhh.js} +8 -8
- package/dist/{campaign-Cg6Z_tME.js → campaign-CwfENerv.js} +2 -2
- package/dist/{campaign.fn-CS5nJBxQ.js → campaign.fn-Bx7g_BvU.js} +2 -2
- package/dist/{collection.fn-BYzmqREp.js → collection.fn-Ba8-HPHO.js} +2 -2
- package/dist/{currency-Dtmbe1s9.js → currency-CO5xQCxT.js} +1 -1
- package/dist/{duplicateCampaign-DFarTXOQ.js → duplicateCampaign-C2FQFuzl.js} +2 -2
- package/dist/{effect-DAGCCFgZ.js → effect-BUxZHyCk.js} +1 -1
- package/dist/{email-addresses-Dw4rkWem.js → email-addresses-CfdqSZi6.js} +2 -2
- package/dist/{feature-flag-3dM_IVQU.js → feature-flag-DpIT0Nh2.js} +1 -1
- package/dist/{helper-C-LQhPI2.js → helper-miVbMaVy.js} +1 -1
- package/dist/{index-DXR3e2yE.js → index-BC30mczi.js} +9 -9
- package/dist/{index-CpqSrwMX.js → index-Bshl0e-c.js} +2 -2
- package/dist/{index-lSJu-_m2.js → index-CMGEBPm-.js} +2 -2
- package/dist/{index-CJMFN-JV.js → index-CNX6rFiO.js} +3 -3
- package/dist/{index-BagVZkdk.js → index-CW07TXqO.js} +2 -2
- package/dist/{index-DGpe4auo.js → index-CYVDCxVj.js} +1 -1
- package/dist/{index-B1kMvJbU.js → index-Co3X9LyE.js} +1 -1
- package/dist/{index-BeW-BxcE.js → index-CxzJwolN.js} +1 -1
- package/dist/{index-BoDbRee_.js → index-CyMrx8XA.js} +1 -1
- package/dist/{index-CMSKFejw.js → index-D6RtVzN9.js} +2 -2
- package/dist/{index-DzelXsaZ.js → index-DIOb3eOI.js} +14 -14
- package/dist/{index-9V_mKS4w.js → index-DSwOhkYZ.js} +2 -2
- package/dist/{index-DKm7rszt.js → index-DgnQ18-j.js} +1 -1
- package/dist/{index-B3T_0jO2.js → index-Dy7VtHTZ.js} +3 -3
- package/dist/{index-8c7H1u7j.js → index-L7SBt-2D.js} +19 -13
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-DGp5iEyx.js → index-Se-R3ekJ.js} +2 -2
- package/dist/{index-B3IhN22s.js → index-bJ2Ur1Yd.js} +1 -1
- package/dist/{index-xtTYwD-W.js → index-gP-EJA-Y.js} +2 -2
- package/dist/{index-C6iTrQ-p.js → index-mBHnjwCf.js} +10 -10
- package/dist/{index-DTDGCVKV.js → index-nZUfIfsn.js} +4 -4
- package/dist/{index.esm2017-Bm5C6Wxi.js → index.esm2017-DlOLsAJL.js} +1 -1
- package/dist/{loading-DoiqPnnv.js → loading-BEDz7eTi.js} +1 -1
- package/dist/{lodash-CrTM0DQe.js → lodash-Bx7d35Zs.js} +1 -1
- package/dist/{member-import-_VaTYOMn.js → member-import-D4zgQyJX.js} +1 -1
- package/dist/{membership-Dm8t6-K5.js → membership-VJBDeKcE.js} +2 -2
- package/dist/{money-D0kv1vnT.js → money-Dh0agFMv.js} +1 -1
- package/dist/{number-BymDKXn2.js → number-D2coZpxW.js} +1 -1
- package/dist/{objectid-CC_whd1t.js → objectid-DVSB63oC.js} +13 -13
- package/dist/{onboarding-P6c1Ebh4.js → onboarding-CLwhjKAL.js} +3 -3
- package/dist/{onboardingSetup-Ca4782qf.js → onboardingSetup-78evK8yB.js} +2 -2
- package/dist/{plugins-BN9qJUUc.js → plugins-CKViI6Y3.js} +3 -3
- package/dist/{MarketingMaterialEdit-NlZLrI0D.js → remy-icon-BhUGu2NI.js} +2 -1034
- package/dist/{reward-dfKI7Nq1.js → reward-Drd9EaxJ.js} +1 -1
- package/dist/{rule-Cu-_boGe.js → rule-Dr21X2h0.js} +10 -10
- package/dist/{template-D2qwGN2m.js → template-yVg3lQKo.js} +6 -6
- package/dist/{timezone-DjMsHrhm.js → timezone-CGlmgCYo.js} +1 -1
- package/dist/{transaction.fn-Bj5yz8tS.js → transaction.fn-outAFFwM.js} +2 -2
- package/dist/{trigger-CFjJj6Ri.js → trigger-C1GL_8pm.js} +7 -7
- package/dist/{useMarketingMaterialActions-Dx8ZTmHW.js → useMarketingMaterialActions-D8MIFnMy.js} +3 -3
- package/dist/{usePagination-CN2auZK8.js → usePagination-Dlx9q4a8.js} +1 -1
- package/dist/useWhatsappAccount-1Yy7aaA9.js +62 -0
- package/dist/{user-CL05OSdb.js → user-BtORKvTK.js} +1 -1
- package/dist/{vue-i18n-CJMFzslC.js → vue-i18n-CkZqjA2G.js} +415 -415
- package/dist/{xlsx-BoSbkiXt.js → xlsx-HAQ29LQq.js} +440 -440
- package/dist/{zod-6X3ups5P.js → zod-DByiKRxr.js} +1 -1
- package/package.json +1 -1
- package/dist/WhatsappAccount-SPlDi9BN.js +0 -342
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DYXAJ35J.js +0 -97
- 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-Dx8ZTmHW.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
|
+
};
|