@feedmepos/mf-connect 0.1.98-beta.87 → 0.1.98-beta.88
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-Dx5r7IoA.js} +10 -10
- package/dist/{AuditLogs-C5s1oYtj.js → AuditLogs-CyufGhnM.js} +13 -13
- package/dist/{Bin-B1e-qVtO.js → Bin-j6jSLfP8.js} +8 -8
- package/dist/{Broadcast-CwO5ut-E.js → Broadcast-DAKDPNrT.js} +12 -12
- package/dist/{CampaignAnalytic-B1KXy3dl.js → CampaignAnalytic-DzN658FL.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DS8RAeUt.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2zS-70M.js} +8 -8
- package/dist/{Card-BK-p9FW9.js → Card-D_aP-MCP.js} +23 -23
- package/dist/{Collections-CTF-r_mV.js → Collections-BQFRmLQu.js} +8 -8
- package/dist/{Credit-DR2AvPrI.js → Credit-RVdfqS5E.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CixW7_65.js → DateRangeChip.vue_vue_type_script_setup_true_lang-6k5Jrwza.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D53ghi_e.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D3T4EcsV.js} +35 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BNCvFw9v.js → EffectSheet.vue_vue_type_style_index_0_lang-t4yA5I6T.js} +6 -6
- package/dist/{Experience-BzPvYJ0N.js → Experience-B-qChtuk.js} +13 -13
- package/dist/{FileSaver.min-BBi03O9S.js → FileSaver.min-i_ASegfo.js} +1 -1
- package/dist/{Game-DNdM6BpR.js → Game-0gjw_e_v.js} +13 -13
- package/dist/{GiftCardSetup-yVVt1hCK.js → GiftCardSetup-CDStUPjA.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C_REykTp.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DUlYVE6s.js} +7 -7
- package/dist/{Goals-RyNCRCoT.js → Goals-Bs8ukFYX.js} +4 -4
- package/dist/{Grab-COgtKEHg.js → Grab-DZbspH5d.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DueG1yQj.js → ImageInput.vue_vue_type_script_setup_true_lang-REaDjE4m.js} +1 -1
- package/dist/{Index-CW5ib46F.js → Index-DCnbVrZX.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dbk0uqyl.js → LocationPicker.vue_vue_type_script_setup_true_lang-TlllBN0r.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-s19mfQze.js → LottieAnimation.vue_vue_type_script_setup_true_lang-j3aS9fHn.js} +1 -1
- package/dist/{LoyaltyDashboard-CJW9sSpM.js → LoyaltyDashboard-lVYol_GG.js} +15 -15
- package/dist/{MainLayout-DJrtcFYj.js → MainLayout-BSNLoZIl.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-fXA-ixLQ.js → MainLayout.vue_vue_type_script_setup_true_lang-BJibAGiQ.js} +3 -3
- package/dist/{Marketing-DJD3MCP0.js → Marketing-C3NhpovL.js} +4 -4
- package/dist/MarketingMaterialEdit-NGYT6zO1.js +1037 -0
- package/dist/{Member-B9_6dgmX.js → Member-CMVo4SUA.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B6PrfIdK.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-_T9sNt3o.js} +24 -24
- package/dist/{MemberImportHistory-daeSSL3G.js → MemberImportHistory-imo7MynB.js} +7 -7
- package/dist/{MemberList-DpMvv6MH.js → MemberList-BV767u7i.js} +14 -14
- package/dist/{MemberTransactions-CekjmOnU.js → MemberTransactions-SPHoAuOn.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cgb0WN3L.js → MessageInput.vue_vue_type_script_setup_true_lang-DAN-mRnq.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DKJH_z31.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bfqc0he-.js} +1 -1
- package/dist/{Mission-B3YYFaqK.js → Mission-uX3JpGH7.js} +14 -14
- package/dist/{Overview-DcLRK3qr.js → Overview-5umdDsEx.js} +21 -21
- package/dist/{Overview-B3VtDXAN.js → Overview-CSg6QKKN.js} +4 -4
- package/dist/{Point-rE75hllY.js → Point-CAbbFRg9.js} +14 -14
- package/dist/{Promotion-CldXbf59.js → Promotion-BRFj7WQk.js} +14 -14
- package/dist/{Queue-Im8WyRKY.js → Queue-C4M7ZpVI.js} +13 -13
- package/dist/{Record-DmP7Q885.js → Record-BxT5XoBO.js} +9 -9
- package/dist/{Review-DDaoANvS.js → Review-CHPIfgPL.js} +2 -2
- package/dist/{ReviewFacebookCallback-6fQq9t2y.js → ReviewFacebookCallback--Gwl-NFn.js} +5 -5
- package/dist/{ReviewGoogleCallback-DDmUWLd9.js → ReviewGoogleCallback-B2DpiSEJ.js} +5 -5
- package/dist/{Reward-BzL-toJQ.js → Reward-CPTUPSdY.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CrQvlB_E.js → RewardGroup.vue_vue_type_script_setup_true_lang-BftO8Q_G.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Dk8kqDSk.js → RuleGroup.vue_vue_type_script_setup_true_lang-Czy5iR79.js} +15 -15
- package/dist/{Segment-BweG5YWo.js → Segment-Ccy3922g.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BfFtD5TS.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Ba2dM8Hu.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsgQ1kqK.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DXbPCyxy.js} +4 -4
- package/dist/{Setting-MW6B10tv.js → Setting-BQ79yg3Y.js} +14 -14
- package/dist/{SettingAdvertisements-DP-Wm3vC.js → SettingAdvertisements-1VxBya8w.js} +12 -12
- package/dist/{Settings-CczrlaKr.js → Settings-BPYFU1Z2.js} +5 -5
- package/dist/{Store-C9pYfjIe.js → Store-Ba6e-Tv2.js} +27 -27
- package/dist/{StoreRewards-DecpygTj.js → StoreRewards-DucxrbFq.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cw63xJWj.js → StoreTransactions.vue_vue_type_script_setup_true_lang-sKTjo20l.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B_t4xibZ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-5Jk5bn8S.js} +2 -2
- package/dist/{Tier-D7dHj_zA.js → Tier-Dp8K5STf.js} +27 -27
- package/dist/{Title-DqEvTcqS.js → Title-C7356Wca.js} +23 -23
- package/dist/{Transaction-Z4qjSyBB.js → Transaction-Bz7Na-QZ.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D9X2-IIl.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DlN9W5f6.js} +6 -6
- package/dist/{Voucher-BY8YGlpM.js → Voucher-DvShzdkn.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-3j_0rbsk.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkODIJud.js} +12 -12
- package/dist/WhatsappAccount-BlxRf51Y.js +158 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bv8UfCi2.js +39 -0
- package/dist/{WhatsappBot-Oo1KHYLi.js → WhatsappBot-C9U2WUHU.js} +229 -221
- package/dist/WhatsappBotLogs-CGzNd3St.js +372 -0
- package/dist/{WhatsappBotSettings-DL1f_qXt.js → WhatsappBotSettings-cwG5VcJm.js} +5 -5
- package/dist/{WhatsappBotTickets-CerGACm5.js → WhatsappBotTickets-Dy_cskUn.js} +3 -3
- package/dist/{WhatsappLayout-B2DrnLNS.js → WhatsappLayout-BdsOFE6k.js} +3 -3
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CPbX0x-1.js +195 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-0cvPcwm5.js → ZodTextField.vue_vue_type_script_setup_true_lang-DJpBVNvI.js} +2 -2
- package/dist/{app-bGZlAIpq.js → app-Cet6VKse.js} +529 -391
- package/dist/app.js +1 -1
- package/dist/{base.export-COcyNfbe.js → base.export-Ct_WM9vF.js} +2 -2
- package/dist/{business-DTPgRJRn.js → business-CZaMst5Y.js} +1 -1
- package/dist/{campaign-Cg6Z_tME.js → campaign-ClV5DsJC.js} +2 -2
- package/dist/{campaign-cm9TQ4dw.js → campaign-DH_64I9n.js} +8 -8
- package/dist/{campaign.fn-CS5nJBxQ.js → campaign.fn-CgYLx3Yn.js} +31 -31
- package/dist/{collection.fn-BYzmqREp.js → collection.fn-CN6z02sg.js} +2 -2
- package/dist/{currency-Dtmbe1s9.js → currency-6MMefirN.js} +1 -1
- package/dist/{duplicateCampaign-DFarTXOQ.js → duplicateCampaign-53FLiS7I.js} +2 -2
- package/dist/{effect-DAGCCFgZ.js → effect-CecWD8_D.js} +1 -1
- package/dist/{email-addresses-Dw4rkWem.js → email-addresses-BysweccE.js} +2 -2
- package/dist/{feature-flag-3dM_IVQU.js → feature-flag-a6HMsjQt.js} +1 -1
- package/dist/{helper-C-LQhPI2.js → helper-CvQzVRRE.js} +1 -1
- package/dist/{index-9V_mKS4w.js → index-1NtqALS3.js} +2 -2
- package/dist/{index-CMSKFejw.js → index-BHZS6uNO.js} +2 -2
- package/dist/{index-BeW-BxcE.js → index-BSv0XJnI.js} +1 -1
- package/dist/{index-lSJu-_m2.js → index-BVBiOgKj.js} +2 -2
- package/dist/{index-B3T_0jO2.js → index-Be1lBBo6.js} +3 -3
- package/dist/{index-DGp5iEyx.js → index-C20T1vHa.js} +2 -2
- package/dist/{index-CJMFN-JV.js → index-CEGAjYen.js} +3 -3
- package/dist/{index-DKm7rszt.js → index-CL3WTQU7.js} +1 -1
- package/dist/{index-xtTYwD-W.js → index-Ci19Ai7j.js} +2 -2
- package/dist/{index-B3IhN22s.js → index-CkqSKgRv.js} +1 -1
- package/dist/{index-DXR3e2yE.js → index-Cl-eh97O.js} +9 -9
- package/dist/{index-C6iTrQ-p.js → index-DNTcAVOJ.js} +10 -10
- package/dist/{index-DGpe4auo.js → index-DT1CHez9.js} +1 -1
- package/dist/{index-DTDGCVKV.js → index-DatrUxlv.js} +4 -4
- package/dist/{index-BoDbRee_.js → index-Do--_H6A.js} +1 -1
- package/dist/{index-DzelXsaZ.js → index-DqiZsZiF.js} +14 -14
- package/dist/{index-B1kMvJbU.js → index-KWIqWmW6.js} +1 -1
- package/dist/{index-8c7H1u7j.js → index-R2lwYKpa.js} +19 -13
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-CpqSrwMX.js → index-isqcizln.js} +2 -2
- package/dist/{index-BagVZkdk.js → index-zDO9O2rZ.js} +2 -2
- package/dist/{index.esm2017-Bm5C6Wxi.js → index.esm2017-B5g0NU0O.js} +1 -1
- package/dist/{loading-DoiqPnnv.js → loading-28disU0q.js} +1 -1
- package/dist/{lodash-CrTM0DQe.js → lodash-YMwutbJp.js} +1 -1
- package/dist/{member-import-_VaTYOMn.js → member-import-C-pRwO4I.js} +1 -1
- package/dist/{membership-Dm8t6-K5.js → membership-VXUT4z2L.js} +2 -2
- package/dist/{money-D0kv1vnT.js → money-BwImsV6O.js} +1 -1
- package/dist/{number-BymDKXn2.js → number-_XqeU1Jv.js} +1 -1
- package/dist/{objectid-CC_whd1t.js → objectid-CcWEcqSn.js} +2 -2
- package/dist/{onboarding-P6c1Ebh4.js → onboarding-Dr6req6b.js} +3 -3
- package/dist/{onboardingSetup-Ca4782qf.js → onboardingSetup-CisDdDpD.js} +2 -2
- package/dist/{plugins-BN9qJUUc.js → plugins-Gg2FTZVp.js} +3 -3
- package/dist/{MarketingMaterialEdit-NlZLrI0D.js → remy-icon-BhUGu2NI.js} +2 -1034
- package/dist/{reward-dfKI7Nq1.js → reward-Z0oqkk5o.js} +1 -1
- package/dist/{rule-Cu-_boGe.js → rule-hGRQgJcm.js} +10 -10
- package/dist/{template-D2qwGN2m.js → template-7qVZzrMe.js} +6 -6
- package/dist/{timezone-DjMsHrhm.js → timezone-D_QFV7o6.js} +1 -1
- package/dist/{transaction.fn-Bj5yz8tS.js → transaction.fn-B4i8JoYo.js} +2 -2
- package/dist/{trigger-CFjJj6Ri.js → trigger-UabH2ymJ.js} +7 -7
- package/dist/{useMarketingMaterialActions-Dx8ZTmHW.js → useMarketingMaterialActions-CHKa3LeZ.js} +3 -3
- package/dist/{usePagination-CN2auZK8.js → usePagination-DoMeCJsI.js} +1 -1
- package/dist/useWhatsappAccount-EynS6i3q.js +62 -0
- package/dist/{user-CL05OSdb.js → user-Jn5KfI7B.js} +1 -1
- package/dist/{vue-i18n-CJMFzslC.js → vue-i18n-DlhyzRtL.js} +157 -157
- package/dist/{xlsx-BoSbkiXt.js → xlsx-BVxOiFks.js} +440 -440
- package/dist/{zod-6X3ups5P.js → zod-AVGnOFCI.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-isqcizln.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-VXUT4z2L.js";
|
|
5
|
+
import { R as K, i as he } from "./index-DNTcAVOJ.js";
|
|
6
|
+
import "./index-DatrUxlv.js";
|
|
7
|
+
import "./index-Be1lBBo6.js";
|
|
8
|
+
import "./index-DqiZsZiF.js";
|
|
9
|
+
import "./index-C20T1vHa.js";
|
|
10
|
+
import "./index-RwNlbTO8.js";
|
|
11
|
+
import "./index-DT1CHez9.js";
|
|
12
|
+
import { u as Ge } from "./business-CZaMst5Y.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-ClV5DsJC.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-DNTcAVOJ.js";
|
|
5
|
+
import { _ as G } from "./lodash-YMwutbJp.js";
|
|
6
|
+
import { C as H } from "./campaign-DH_64I9n.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-DlhyzRtL.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D3T4EcsV.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-DatrUxlv.js";
|
|
2
|
+
import { s as u } from "./index-KWIqWmW6.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-isqcizln.js";
|
|
3
|
+
import { R as i } from "./index-DNTcAVOJ.js";
|
|
4
|
+
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Czy5iR79.js";
|
|
5
|
+
import { l as e, C as d } from "./index-DqiZsZiF.js";
|
|
6
|
+
import { i as n } from "./plugins-Gg2FTZVp.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-CHKa3LeZ.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-BVBiOgKj.js";
|
|
2
|
+
import { u as w } from "./vue-i18n-DlhyzRtL.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-Gg2FTZVp.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-YMwutbJp.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-DlhyzRtL.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
|
+
};
|