@feedmepos/mf-connect 0.1.113-beta.3 → 0.1.114-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.
- package/dist/{App-YfpYV7C0.js → App-CIWTDYuZ.js} +11 -11
- package/dist/{AuditLogs-kD0_HO_p.js → AuditLogs-BluLDXu9.js} +12 -12
- package/dist/{Bin-Dr-Xp3pn.js → Bin-jS6pM4L3.js} +8 -8
- package/dist/{Broadcast-CEbHu2xA.js → Broadcast-DBqsSZ0S.js} +12 -12
- package/dist/{CampaignAnalytic-DDiGxPwp.js → CampaignAnalytic-DJrjXD4H.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CzwigRLi.js} +8 -8
- package/dist/{Card-BUnwg0eM.js → Card-B10nLilL.js} +22 -22
- package/dist/{Collections-CKyBkKq2.js → Collections-BN42A73p.js} +8 -8
- package/dist/{Credit-CJOXWLV1.js → Credit-0SS26HGE.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B3wozBFs.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js} +35 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js → EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js} +6 -6
- package/dist/{Experience-C_Am5CTY.js → Experience-D7qPzsrc.js} +13 -13
- package/dist/{FileSaver.min-CueAGbjq.js → FileSaver.min-BKWoklMK.js} +1 -1
- package/dist/{Game-B6GO_LVU.js → Game-BoYMwfog.js} +13 -13
- package/dist/{GiftCardSetup-CVLDDpI2.js → GiftCardSetup-B87O0xzo.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B3uGbEFY.js} +7 -7
- package/dist/{Goals-BX-sMV2V.js → Goals-CVxf3xCA.js} +4 -4
- package/dist/{Grab-Bh335Srh.js → Grab-mGL1Mue_.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js → ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js} +1 -1
- package/dist/{Index-CyXRbwcm.js → Index-Dptuy-6c.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js → LocationPicker.vue_vue_type_script_setup_true_lang-Cjc4UeKz.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bh0ari3f.js} +1 -1
- package/dist/{LoyaltyDashboard-DrTq8oiu.js → LoyaltyDashboard-BxhI6RAE.js} +15 -15
- package/dist/{MainLayout-KbKkpX5n.js → MainLayout-YfDxvZXl.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js → MainLayout.vue_vue_type_script_setup_true_lang-BgXpznbi.js} +3 -3
- package/dist/{Marketing-DQT1MWQg.js → Marketing-C2cVJacf.js} +4 -4
- package/dist/{MarketingMaterialEdit-fSqr53-M.js → MarketingMaterialEdit-DkOEy_L-.js} +6 -6
- package/dist/{Member-DwDUCzlv.js → Member-DufbKDOh.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CU8EmBxy.js} +23 -23
- package/dist/{MemberImportHistory-D4ezvJGZ.js → MemberImportHistory-DlFN-uQl.js} +7 -7
- package/dist/{MemberList-DFieV7Qk.js → MemberList-B344n8I4.js} +14 -14
- package/dist/{MemberTransactions-BPOXyAuC.js → MemberTransactions-BS7H640M.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js → MessageInput.vue_vue_type_script_setup_true_lang-CxDtXvwd.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js} +1 -1
- package/dist/{Mission-nErb05Es.js → Mission-D2ed_oKn.js} +14 -14
- package/dist/{Overview-DuJr_hAg.js → Overview-CLh_T6YY.js} +4 -4
- package/dist/{Overview-7G31a7B-.js → Overview-DJa-hXDC.js} +20 -20
- package/dist/{Point-PWDLemD4.js → Point-DAPeg1VD.js} +14 -14
- package/dist/{Promotion-N80Tj8M6.js → Promotion-CPPCMMFl.js} +14 -14
- package/dist/{Queue-M7ZpgiMT.js → Queue-BcPwCRcM.js} +12 -12
- package/dist/{Record-NhxrdvWv.js → Record-C5XKn--g.js} +9 -9
- package/dist/{Review-DiAaAzIG.js → Review-Cc51luIv.js} +2 -2
- package/dist/{ReviewFacebookCallback-JdyxFbNl.js → ReviewFacebookCallback-BSGInFB8.js} +5 -5
- package/dist/{ReviewGoogleCallback-BXbI3Bsh.js → ReviewGoogleCallback-C1gY4vcP.js} +5 -5
- package/dist/{Reward-yTaOqOT8.js → Reward-k1R3hLiF.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js → RewardGroup.vue_vue_type_script_setup_true_lang-BGbbGVK4.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js → RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js} +14 -14
- package/dist/{Segment-DE9Bcd6R.js → Segment-DsBnIvje.js} +25 -25
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CMKpvXN-.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js} +4 -4
- package/dist/{Setting-C0JAxIRT.js → Setting-BRueNgc4.js} +14 -14
- package/dist/{SettingAdvertisements-DxueyKU8.js → SettingAdvertisements-BrVcQyhF.js} +12 -12
- package/dist/{Settings-Cs46AcxZ.js → Settings-fOvXd29Z.js} +5 -5
- package/dist/{Store-DqQae9nE.js → Store-rrh2pIHH.js} +26 -26
- package/dist/{StoreRewards-JxSUsOzJ.js → StoreRewards-D-jivVKr.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CvQXsZbH.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js} +2 -2
- package/dist/{Tier-DWhgWush.js → Tier-DJiLtw3M.js} +26 -26
- package/dist/{Title-DUNeMdz8.js → Title-s0bzA7yZ.js} +22 -22
- package/dist/{Transaction-DAv-LVhC.js → Transaction-CQ-CJ_eh.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Bfy8SZH1.js} +6 -6
- package/dist/{Voucher-uLTq9RSK.js → Voucher-9vydRET7.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dq7veRL5.js} +12 -12
- package/dist/{WhatsappAccount-BpXQ4q0P.js → WhatsappAccount-D12Hvzfl.js} +52 -51
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js} +1 -1
- package/dist/WhatsappBot-o5b_0CnB.js +629 -0
- package/dist/{WhatsappBotLogs-DDN4H_bv.js → WhatsappBotLogs-CK_V_iT5.js} +39 -39
- package/dist/WhatsappBotSettings-BooibLUg.js +694 -0
- package/dist/{WhatsappLayout-DSnq84Uo.js → WhatsappLayout-bOyNHGUI.js} +3 -3
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js → ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js} +2 -2
- package/dist/{app-Devzv4gO.js → app-DV3e2LkD.js} +342 -267
- package/dist/app.js +1 -1
- package/dist/{base.export-CCSMkvAm.js → base.export-DQUUtGmy.js} +2 -2
- package/dist/{business-BjAmUqNA.js → business-BZ0boE-5.js} +1 -1
- package/dist/{campaign-C5c47GqT.js → campaign-CsfFq2S-.js} +8 -8
- package/dist/{campaign-CTe-T5Gd.js → campaign-DMrtYWcs.js} +2 -2
- package/dist/{campaign.fn-DxAO8A5b.js → campaign.fn-C-CdNNdR.js} +185 -185
- package/dist/{collection.fn-C9l-OtNt.js → collection.fn-C-rryKSc.js} +2 -2
- package/dist/{currency-mwm4AWXK.js → currency-BOd9iVZV.js} +1 -1
- package/dist/{duplicateCampaign-BbC4AwQ1.js → duplicateCampaign-ey_rW0Bz.js} +2 -2
- package/dist/{effect-D8ba9z0K.js → effect-BP6Hkxmj.js} +1 -1
- package/dist/{email-addresses-BR5J6_Jz.js → email-addresses-CO61QAq0.js} +2 -2
- package/dist/{feature-flag-C-5NdFW8.js → feature-flag-Bq1SgbYC.js} +1 -1
- package/dist/{feature-flag-CNcU4_3r.js → feature-flag-lvPP0ED-.js} +1 -1
- package/dist/{helper-D9cEaMIv.js → helper-BRpts-M-.js} +1 -1
- package/dist/{index-OvnHt5x5.js → index-03WIXl-H.js} +2 -2
- package/dist/{index-BfoDdVQS.js → index-B0RavybO.js} +2 -2
- package/dist/{index-BvY2hQac.js → index-BDNkoALK.js} +1 -1
- package/dist/{index-CmzjBrHR.js → index-BV5aPSYo.js} +8 -8
- package/dist/{index-B_gzo75q.js → index-Bk20uvPY.js} +1 -1
- package/dist/{index-Drmh0FT-.js → index-Bn19rfby.js} +3 -3
- package/dist/{index-DwTBiVts.js → index-Cj-eugzc.js} +1 -1
- package/dist/{index-DtcUCknS.js → index-CoROn5OA.js} +2 -2
- package/dist/{index-DnepoNWn.js → index-CrBhcMaL.js} +3 -3
- package/dist/{index-CZfqqrVu.js → index-CsBjAM3E.js} +1 -1
- package/dist/{index-yGSko6Eq.js → index-D1t4_KaG.js} +1 -1
- package/dist/{index-B7HH6vKF.js → index-D3wGTCWf.js} +2 -2
- package/dist/{index-D34iYRdc.js → index-D41kjcrZ.js} +4 -4
- package/dist/{index-B1jP-_Z_.js → index-DIZLkVe0.js} +10 -10
- package/dist/{index-Ct6YjTIW.js → index-DucKyzrD.js} +2 -2
- package/dist/{index-D4k1G2oE.js → index-R5WS21OL.js} +1 -1
- package/dist/{index-BFaZp6Et.js → index-VYI0zWNC.js} +2 -2
- package/dist/{index-0H82-X0n.js → index-ZRE89TKq.js} +1 -1
- package/dist/{index-Byg4ztr-.js → index-_Cj-bsd_.js} +14 -14
- package/dist/{index-VqAbYyHH.js → index-mToWKHVs.js} +2 -2
- package/dist/{index.esm2017-DLb2VyCT.js → index.esm2017-B_Sag8Pg.js} +76 -76
- package/dist/{loading-CUNk5u1d.js → loading-C5fVI0ry.js} +1 -1
- package/dist/{lodash-BJXravls.js → lodash-COo8_xCU.js} +1 -1
- package/dist/{member-import-DjYoddBi.js → member-import-I_pKwUfF.js} +1 -1
- package/dist/{membership-ByJUFP8f.js → membership-BgfH9Kva.js} +2 -2
- package/dist/{money-Bf2IEMJJ.js → money-Cr07YDlV.js} +1 -1
- package/dist/{number-CRBHrRUL.js → number-DFsj0dkh.js} +1 -1
- package/dist/objectid-Cu89BzwI.js +145 -0
- package/dist/{onboarding-CQ3lw7eY.js → onboarding-DlkJCm-5.js} +3 -3
- package/dist/{onboardingSetup-CsdZKGFk.js → onboardingSetup-BEhVj613.js} +2 -2
- package/dist/{plugins-iTZLbJGy.js → plugins-CPTtiKqf.js} +3 -3
- package/dist/{reward-DTN6JpEd.js → reward-DqY0mQ_5.js} +1 -1
- package/dist/{rule-BYACNQOL.js → rule-mJJ48eKw.js} +9 -9
- package/dist/{template--Vr0PCjB.js → template-C1QftpDG.js} +6 -6
- package/dist/{timezone-DwzjOED-.js → timezone-BBgBHels.js} +1 -1
- package/dist/{transaction.fn-DapYe3n7.js → transaction.fn-Sr0hj3kY.js} +2 -2
- package/dist/{trigger-D8r76yb0.js → trigger-PUP0mwKM.js} +7 -7
- package/dist/{useMarketingMaterialActions-CdMmibPE.js → useMarketingMaterialActions-faslwaHd.js} +3 -3
- package/dist/{usePagination-BRcQJkO1.js → usePagination-Be6nIQ9y.js} +1 -1
- package/dist/{user-vBZFKqXQ.js → user-DBSYzG_9.js} +1 -1
- package/dist/{vue-i18n-Cw6fF11e.js → vue-i18n-C6c2jsH3.js} +409 -409
- package/dist/{xlsx-Muy_Rjhk.js → xlsx-Bfo19lFv.js} +224 -224
- package/dist/{zod-CCPTOeUz.js → zod-CihbDg3N.js} +1 -1
- package/package.json +1 -1
- package/dist/WhatsappBot-DB4NRZMd.js +0 -589
- package/dist/WhatsappBotSettings-Bkv1VNwF.js +0 -387
- package/dist/WhatsappBotTickets-DAKgnE6T.js +0 -162
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +0 -195
- package/dist/objectid-58gyOvdR.js +0 -145
- package/dist/useWhatsappAccount-BOJ8fz84.js +0 -62
package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, mergeModels as S, useModel as U, computed as W, ref as l, watch as j, onBeforeUnmount as P, resolveComponent as v, openBlock as r, createBlock as $, withCtx as N, createElementVNode as e, toDisplayString as t, unref as n, createElementBlock as d, createVNode as G, createTextVNode as C, Fragment as z, renderList as H, createCommentVNode as F } from "vue";
|
|
2
|
-
import { u as J } from "./vue-i18n-Cw6fF11e.js";
|
|
3
|
-
import { b as K } from "./browser-BSAOEeIM.js";
|
|
4
|
-
import { S as O, a as I } from "./index-OvnHt5x5.js";
|
|
5
|
-
import { w as Q } from "./index-0H82-X0n.js";
|
|
6
|
-
import { u as X } from "./useWhatsappAccount-BOJ8fz84.js";
|
|
7
|
-
const Y = { class: "min-w-0 flex flex-col" }, Z = { class: "text-[18px] leading-[24px] font-semibold" }, ee = { class: "text-[13px] leading-[18px] text-fm-color-typo-secondary break-words" }, oe = {
|
|
8
|
-
key: 0,
|
|
9
|
-
role: "status",
|
|
10
|
-
class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
11
|
-
}, te = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "py-[40px] flex flex-col items-center text-center gap-[16px]"
|
|
14
|
-
}, ne = {
|
|
15
|
-
role: "alert",
|
|
16
|
-
class: "text-[14px] text-fm-color-typo-error"
|
|
17
|
-
}, ae = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "grid grid-cols-[minmax(0,1fr)_226px] xs:grid-cols-1 gap-[32px] p-[8px] xs:p-[0px]"
|
|
20
|
-
}, se = { class: "min-w-0 flex flex-col gap-[20px] text-[14px] leading-[20px]" }, ie = { class: "text-fm-color-typo-secondary" }, le = { class: "flex flex-col gap-[10px]" }, re = { class: "text-[12px] leading-[16px] font-semibold uppercase tracking-[0.06em] text-fm-color-typo-secondary" }, ce = { class: "flex flex-col gap-[10px]" }, pe = { class: "flex flex-col gap-[6px]" }, ue = {
|
|
21
|
-
id: "whatsapp-group-invite-link-label",
|
|
22
|
-
class: "font-medium text-fm-color-typo-secondary"
|
|
23
|
-
}, de = { class: "flex items-center gap-[8px] border border-fm-color-neutral-gray-200 rounded-[8px] pl-[12px] pr-[4px] py-[4px]" }, fe = {
|
|
24
|
-
id: "whatsapp-group-invite-link",
|
|
25
|
-
role: "textbox",
|
|
26
|
-
"aria-readonly": "true",
|
|
27
|
-
"aria-labelledby": "whatsapp-group-invite-link-label",
|
|
28
|
-
tabindex: "0",
|
|
29
|
-
class: "flex-1 min-w-0 h-[32px] overflow-x-auto overflow-y-hidden whitespace-nowrap text-[13px] leading-[32px] font-mono bg-fm-color-neutral-white rounded-[4px] focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
|
|
30
|
-
}, xe = ["disabled"], me = {
|
|
31
|
-
key: 0,
|
|
32
|
-
role: "status",
|
|
33
|
-
class: "sr-only"
|
|
34
|
-
}, he = {
|
|
35
|
-
key: 1,
|
|
36
|
-
role: "alert",
|
|
37
|
-
class: "text-[12px] leading-[16px] text-fm-color-typo-error"
|
|
38
|
-
}, ve = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, ge = { class: "flex flex-col items-center gap-[12px] w-[226px] xs:justify-self-center" }, _e = { class: "border border-fm-color-neutral-gray-100 rounded-[12px] overflow-hidden" }, ye = ["src", "alt"], we = ["href"], Le = /* @__PURE__ */ M({
|
|
39
|
-
__name: "WhatsappNotificationGroupDialog",
|
|
40
|
-
props: /* @__PURE__ */ S({
|
|
41
|
-
account: {}
|
|
42
|
-
}, {
|
|
43
|
-
modelValue: { type: Boolean, required: !0 },
|
|
44
|
-
modelModifiers: {}
|
|
45
|
-
}),
|
|
46
|
-
emits: ["update:modelValue"],
|
|
47
|
-
setup(L) {
|
|
48
|
-
const g = L, _ = U(L, "modelValue"), { t: o } = J(), m = W(() => O.getBusinessId() ?? ""), { name: T, phoneNumber: D } = X(() => g.account), i = l(), y = l(""), w = l(!1), c = l(""), p = l(!1), f = l(!1), x = l("");
|
|
49
|
-
let u, b;
|
|
50
|
-
function B() {
|
|
51
|
-
u == null || u.abort(), clearTimeout(b), p.value = !1, f.value = !1;
|
|
52
|
-
}
|
|
53
|
-
async function V() {
|
|
54
|
-
B();
|
|
55
|
-
const a = new AbortController();
|
|
56
|
-
u = a, w.value = !0, c.value = "", x.value = "", i.value = void 0, y.value = "";
|
|
57
|
-
try {
|
|
58
|
-
if (!m.value)
|
|
59
|
-
throw new Error(o("connect.whatsappBot.errors.selectBusiness"));
|
|
60
|
-
const s = await Q.getNotificationGroup(
|
|
61
|
-
m.value,
|
|
62
|
-
g.account.clientId,
|
|
63
|
-
a.signal
|
|
64
|
-
);
|
|
65
|
-
if (a.signal.aborted) return;
|
|
66
|
-
const k = await K.toDataURL(s.inviteLink, {
|
|
67
|
-
width: 224,
|
|
68
|
-
margin: 2,
|
|
69
|
-
errorCorrectionLevel: "M"
|
|
70
|
-
});
|
|
71
|
-
if (a.signal.aborted) return;
|
|
72
|
-
i.value = s, y.value = k;
|
|
73
|
-
} catch (s) {
|
|
74
|
-
if (a.signal.aborted) return;
|
|
75
|
-
s instanceof I && s.status === 409 ? c.value = o("connect.whatsappBot.notificationGroup.notReady") : s instanceof I && s.status === 404 ? c.value = o("connect.whatsappBot.errors.accountNotFound") : c.value = m.value ? o("connect.whatsappBot.errors.loadGroup") : o("connect.whatsappBot.errors.selectBusiness");
|
|
76
|
-
} finally {
|
|
77
|
-
a.signal.aborted || (w.value = !1);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
async function q() {
|
|
81
|
-
if (!i.value || !u || f.value) return;
|
|
82
|
-
const a = u;
|
|
83
|
-
f.value = !0, p.value = !1, x.value = "", clearTimeout(b);
|
|
84
|
-
try {
|
|
85
|
-
if (await navigator.clipboard.writeText(i.value.inviteLink), a.signal.aborted) return;
|
|
86
|
-
p.value = !0, b = setTimeout(() => {
|
|
87
|
-
p.value = !1;
|
|
88
|
-
}, 2e3);
|
|
89
|
-
} catch {
|
|
90
|
-
a.signal.aborted || (x.value = o("connect.whatsappBot.errors.copyGroupLink"));
|
|
91
|
-
} finally {
|
|
92
|
-
a.signal.aborted || (f.value = !1);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return j(
|
|
96
|
-
[_, m, () => g.account.clientId],
|
|
97
|
-
([a]) => {
|
|
98
|
-
a ? V() : B();
|
|
99
|
-
},
|
|
100
|
-
{ immediate: !0 }
|
|
101
|
-
), P(B), (a, s) => {
|
|
102
|
-
const k = v("FmCircularProgress"), A = v("FmButton"), E = v("FmIcon"), R = v("FmDialog");
|
|
103
|
-
return r(), $(R, {
|
|
104
|
-
modelValue: _.value,
|
|
105
|
-
"onUpdate:modelValue": s[0] || (s[0] = (h) => _.value = h),
|
|
106
|
-
"min-width": "min(720px, calc(100% - 32px))",
|
|
107
|
-
"max-width": "720px",
|
|
108
|
-
"max-height": "90vh",
|
|
109
|
-
"dismiss-away": ""
|
|
110
|
-
}, {
|
|
111
|
-
"dialog-header": N(() => [
|
|
112
|
-
e("div", Y, [
|
|
113
|
-
e("h2", Z, t(n(o)("connect.whatsappBot.notificationGroup.dialogTitle")), 1),
|
|
114
|
-
e("p", ee, t(n(T)) + " · " + t(n(D)), 1)
|
|
115
|
-
])
|
|
116
|
-
]),
|
|
117
|
-
default: N(() => [
|
|
118
|
-
w.value ? (r(), d("div", oe, [
|
|
119
|
-
G(k),
|
|
120
|
-
C(" " + t(n(o)("connect.whatsappBot.notificationGroup.loading")), 1)
|
|
121
|
-
])) : c.value ? (r(), d("div", te, [
|
|
122
|
-
e("p", ne, t(c.value), 1),
|
|
123
|
-
G(A, {
|
|
124
|
-
label: n(o)("connect.whatsappBot.tryAgain"),
|
|
125
|
-
"prepend-icon": "refresh",
|
|
126
|
-
onClick: V
|
|
127
|
-
}, null, 8, ["label"])
|
|
128
|
-
])) : i.value ? (r(), d("div", ae, [
|
|
129
|
-
e("div", se, [
|
|
130
|
-
e("p", ie, t(n(o)("connect.whatsappBot.notificationGroup.scanDescription")), 1),
|
|
131
|
-
e("div", le, [
|
|
132
|
-
e("h3", re, t(n(o)("connect.whatsappBot.notificationGroup.postsTitle")), 1),
|
|
133
|
-
e("ul", ce, [
|
|
134
|
-
(r(), d(z, null, H(["unanswered", "staffRequests", "humanRequests"], (h) => e("li", {
|
|
135
|
-
key: h,
|
|
136
|
-
class: "flex gap-[10px]"
|
|
137
|
-
}, [
|
|
138
|
-
s[1] || (s[1] = e("span", {
|
|
139
|
-
"aria-hidden": "true",
|
|
140
|
-
class: "w-[6px] h-[6px] rounded-full bg-fm-color-primary shrink-0 mt-[7px]"
|
|
141
|
-
}, null, -1)),
|
|
142
|
-
C(" " + t(n(o)(`connect.whatsappBot.notificationGroup.posts.${h}`)), 1)
|
|
143
|
-
])), 64))
|
|
144
|
-
])
|
|
145
|
-
]),
|
|
146
|
-
e("div", pe, [
|
|
147
|
-
e("span", ue, t(n(o)("connect.whatsappBot.notificationGroup.inviteLink")), 1),
|
|
148
|
-
e("div", de, [
|
|
149
|
-
e("div", fe, t(i.value.inviteLink), 1),
|
|
150
|
-
e("button", {
|
|
151
|
-
type: "button",
|
|
152
|
-
disabled: f.value,
|
|
153
|
-
class: "shrink-0 h-[32px] px-[12px] rounded-[6px] bg-fm-color-neutral-gray-100 text-[13px] font-semibold hover:bg-fm-color-neutral-gray-200 disabled:opacity-50 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary",
|
|
154
|
-
onClick: q
|
|
155
|
-
}, t(n(o)(
|
|
156
|
-
`connect.whatsappBot.notificationGroup.${p.value ? "copied" : "copy"}`
|
|
157
|
-
)), 9, xe)
|
|
158
|
-
]),
|
|
159
|
-
p.value ? (r(), d("span", me, t(n(o)("connect.whatsappBot.notificationGroup.copied")), 1)) : F("", !0),
|
|
160
|
-
x.value ? (r(), d("p", he, t(x.value), 1)) : F("", !0),
|
|
161
|
-
e("p", ve, t(n(o)("connect.whatsappBot.notificationGroup.shareNote")), 1)
|
|
162
|
-
])
|
|
163
|
-
]),
|
|
164
|
-
e("div", ge, [
|
|
165
|
-
e("div", _e, [
|
|
166
|
-
e("img", {
|
|
167
|
-
src: y.value,
|
|
168
|
-
alt: n(o)("connect.whatsappBot.notificationGroup.qrAlt"),
|
|
169
|
-
width: "224",
|
|
170
|
-
height: "224"
|
|
171
|
-
}, null, 8, ye)
|
|
172
|
-
]),
|
|
173
|
-
e("a", {
|
|
174
|
-
href: i.value.inviteLink,
|
|
175
|
-
target: "_blank",
|
|
176
|
-
rel: "noopener noreferrer",
|
|
177
|
-
class: "w-full h-[40px] flex items-center justify-center gap-[6px] rounded-full bg-fm-color-primary text-fm-color-typo-white text-[14px] font-semibold no-underline hover:opacity-90 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary focus-visible:ring-offset-[2px]"
|
|
178
|
-
}, [
|
|
179
|
-
C(t(n(o)("connect.whatsappBot.notificationGroup.openWhatsapp")) + " ", 1),
|
|
180
|
-
G(E, {
|
|
181
|
-
name: "open_in_new",
|
|
182
|
-
size: "sm"
|
|
183
|
-
})
|
|
184
|
-
], 8, we)
|
|
185
|
-
])
|
|
186
|
-
])) : F("", !0)
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["modelValue"]);
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
export {
|
|
194
|
-
Le as _
|
|
195
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./app-Devzv4gO.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_remy_vue_client: "0.2.0-beta.14", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", 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", npm_config__buxkaizhe_registry: "https://registry.npmjs.org", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.8.1", 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: "^5.5.1", npm_package_dependencies_ua_parser_js: "^2.0.3", 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: "1771", ACTIONS_ORCHESTRATION_ID: "e730b914-4c47-85a7-b7b7-57beb4a27912.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: "20261012.334.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__feedmepos_custom_attributes: "0.0.1-rc.4", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^14.1.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13018", GITHUB_WORKFLOW: "[CD:dev] connect-portal (mf-connect)", _: "/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: "39562571991", 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: "ae8fc9014102e2b5beee6229fb35ec2a358ad7e2", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", 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/[DEV] deploy-mf-connect.yml@refs/heads/dev", 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_8fc79972-3748-40ce-b930-b7cabad6f36c", INVOCATION_ID: "7601fe449ea541b9b8a9d187fc29483d", 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: "440", GITHUB_TRIGGERING_ACTOR: "qaijunse", 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", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000212821", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", 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", 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.113-beta.3", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", npm_package_dependencies_ckeditor5: "^44.3.0", npm_package_dependencies_htmlparser2: "10.1.0", npm_lifecycle_event: "build:mf:dev", 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", npm_config__feedmepos_registry: "https://npm.pkg.github.com", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "ae8fc9014102e2b5beee6229fb35ec2a358ad7e2", 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/dev", GITHUB_ACTOR: "qaijunse", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", 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: "push", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", 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_b52de0e6-ec7a-46d8-af71-f4c5c5357f56", 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: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", IMPORT_FILES_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "feedmedev.vip", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedmedev.cc/", VOUCHER_APP_URL: "https://voucher.feedmedev.cc/", FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee" } }, a = Math.floor(Math.random() * 16777215), i = 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
|
-
a >> 16 & 255,
|
|
120
|
-
a >> 8 & 255,
|
|
121
|
-
a & 255,
|
|
122
|
-
c >> 8 & 255,
|
|
123
|
-
c & 255,
|
|
124
|
-
_ >> 16 & 255,
|
|
125
|
-
_ >> 8 & 255,
|
|
126
|
-
_ & 255
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
function f() {
|
|
131
|
-
return i = (i + 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 R = /* @__PURE__ */ l(g);
|
|
143
|
-
export {
|
|
144
|
-
R as O
|
|
145
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { computed as t, toValue as g, ref as w, watch as y } from "vue";
|
|
2
|
-
import { u as N } from "./vue-i18n-Cw6fF11e.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
|
-
};
|