@feedmepos/mf-connect 0.1.111-prod → 0.1.113-beta.3
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 +66 -1
- package/dist/{App-D3pYl3WL.js → App-YfpYV7C0.js} +738 -689
- package/dist/AuditLogs-kD0_HO_p.js +2016 -0
- package/dist/{Bin-DOZqpbYH.js → Bin-Dr-Xp3pn.js} +8 -8
- package/dist/Broadcast-CEbHu2xA.js +306 -0
- package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-DDiGxPwp.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js} +49 -32
- package/dist/Card-BUnwg0eM.js +1086 -0
- package/dist/{Collections-9QK5hbLo.js → Collections-CKyBkKq2.js} +197 -185
- package/dist/{Credit-8Ouy4O9a.js → Credit-CJOXWLV1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js} +32 -32
- package/dist/{Experience-DMh4hR1S.js → Experience-C_Am5CTY.js} +32 -31
- package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-CueAGbjq.js} +1 -1
- package/dist/{Game-CL0TZvg1.js → Game-B6GO_LVU.js} +19 -18
- package/dist/GiftCardSetup-CVLDDpI2.js +748 -0
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js} +7 -7
- package/dist/{Goals-Dz5Vp-lj.js → Goals-BX-sMV2V.js} +4 -4
- package/dist/Grab-Bh335Srh.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js} +1 -1
- package/dist/{Index-kH8aAegB.js → Index-CyXRbwcm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js} +1 -1
- package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-DrTq8oiu.js} +15 -15
- package/dist/MainLayout-KbKkpX5n.js +4 -0
- package/dist/{MainLayout-2BLwDyHQ.js → MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js} +5 -4
- package/dist/{Marketing-C4OnSV-c.js → Marketing-DQT1MWQg.js} +4 -4
- package/dist/MarketingMaterialEdit-fSqr53-M.js +1037 -0
- package/dist/{Member-CT9WwxP0.js → Member-DwDUCzlv.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js} +43 -49
- package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-D4ezvJGZ.js} +7 -7
- package/dist/{MemberList-DgLI4wty.js → MemberList-DFieV7Qk.js} +103 -105
- package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-BPOXyAuC.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js} +4821 -4690
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js} +1 -1
- package/dist/{Mission-CawzGzDu.js → Mission-nErb05Es.js} +22 -21
- package/dist/{Overview-D19oSo24.js → Overview-7G31a7B-.js} +58 -56
- package/dist/{Overview-CAtTlEVa.js → Overview-DuJr_hAg.js} +145 -144
- package/dist/{Point-BPAGmKAj.js → Point-PWDLemD4.js} +22 -21
- package/dist/{Promotion-B0Uf9vjL.js → Promotion-N80Tj8M6.js} +137 -131
- package/dist/{Queue-CJEAFss_.js → Queue-M7ZpgiMT.js} +49 -47
- package/dist/{Record-s6hSQG2P.js → Record-NhxrdvWv.js} +9 -9
- package/dist/{Review-DhNCbAOm.js → Review-DiAaAzIG.js} +2 -2
- package/dist/ReviewFacebookCallback-JdyxFbNl.js +225 -0
- package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-BXbI3Bsh.js} +5 -5
- package/dist/{Reward-BT00QsXL.js → Reward-yTaOqOT8.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js} +26 -24
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js +1923 -0
- package/dist/{Segment-BuGhX9zg.js → Segment-DE9Bcd6R.js} +287 -287
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js} +37 -35
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js} +4 -4
- package/dist/Setting-C0JAxIRT.js +574 -0
- package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-DxueyKU8.js} +12 -12
- package/dist/Settings-Cs46AcxZ.js +286 -0
- package/dist/Store-DqQae9nE.js +2629 -0
- package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-JxSUsOzJ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js +7007 -0
- package/dist/{Tier-OyE8oH2r.js → Tier-DWhgWush.js} +2576 -686
- package/dist/{Title-DAl7CKL_.js → Title-DUNeMdz8.js} +104 -101
- package/dist/Transaction-DAv-LVhC.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js} +26 -26
- package/dist/{Voucher-D2QGWSxs.js → Voucher-uLTq9RSK.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js} +16 -16
- package/dist/WhatsappAccount-BpXQ4q0P.js +158 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js +39 -0
- package/dist/WhatsappBot-DB4NRZMd.js +589 -0
- package/dist/WhatsappBotLogs-DDN4H_bv.js +372 -0
- package/dist/WhatsappBotSettings-Bkv1VNwF.js +387 -0
- package/dist/WhatsappBotTickets-DAKgnE6T.js +162 -0
- package/dist/WhatsappLayout-DSnq84Uo.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +195 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js} +2 -2
- package/dist/{app-QxosLNkH.js → app-Devzv4gO.js} +12854 -9732
- package/dist/app.js +4 -3
- package/dist/base.export-CCSMkvAm.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-CbqG6NXr.js → business-BjAmUqNA.js} +1 -1
- package/dist/campaign-C5c47GqT.js +400 -0
- package/dist/{campaign-Rj7oDBnN.js → campaign-CTe-T5Gd.js} +31 -25
- package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/campaign.fn-DxAO8A5b.js +776 -0
- package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-EbUIyB1X.js → collection.fn-C9l-OtNt.js} +2 -2
- package/dist/currency-mwm4AWXK.js +7 -0
- package/dist/duplicateCampaign-BbC4AwQ1.js +51 -0
- package/dist/{effect-B_91OlcX.js → effect-D8ba9z0K.js} +1 -1
- package/dist/{email-addresses-DXnYZG-e.js → email-addresses-BR5J6_Jz.js} +2 -2
- package/dist/feature-flag-C-5NdFW8.js +868 -0
- package/dist/feature-flag-CNcU4_3r.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-_uhiXya1.js → helper-D9cEaMIv.js} +1 -1
- package/dist/index-0H82-X0n.js +80 -0
- package/dist/{index-Cp7oHMm3.js → index-B1jP-_Z_.js} +691 -229
- package/dist/{index-BZ2b0Pk6.js → index-B7HH6vKF.js} +8 -7
- package/dist/{index-tbo0pMIu.js → index-BFaZp6Et.js} +29 -15
- package/dist/index-B_gzo75q.js +53 -0
- package/dist/{index-DlQJZNwD.js → index-BfoDdVQS.js} +22 -6
- package/dist/{index-CDm0BWa3.js → index-BvY2hQac.js} +1 -1
- package/dist/index-Byg4ztr-.js +902 -0
- package/dist/{index-BWgc2-Qz.js → index-CZfqqrVu.js} +4 -3
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-xuFTeVrb.js → index-CmzjBrHR.js} +11 -9
- package/dist/{index-BBihP1s2.js → index-Ct6YjTIW.js} +2 -2
- package/dist/{index-Df4l6y-S.js → index-D34iYRdc.js} +1900 -2121
- package/dist/{index-DuhRCI0L.js → index-D4k1G2oE.js} +4 -4
- package/dist/{index-uuNGb1nv.js → index-DnepoNWn.js} +8028 -10766
- package/dist/index-Drmh0FT-.js +14571 -0
- package/dist/{index-DlGnYR5y.js → index-DtcUCknS.js} +2700 -2613
- package/dist/{index-C_1iqF1Q.js → index-DwTBiVts.js} +1 -1
- package/dist/{index-CWUmrVo_.js → index-OvnHt5x5.js} +800 -793
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-CzYxnDWP.js → index-VqAbYyHH.js} +11 -6
- package/dist/{index-DzBzClHP.js → index-yGSko6Eq.js} +1 -1
- package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-DLb2VyCT.js} +156 -156
- package/dist/{loading-rIhCiB_S.js → loading-CUNk5u1d.js} +1 -1
- package/dist/{lodash-B6fOjfjd.js → lodash-BJXravls.js} +1 -1
- package/dist/{member-import-CbHn7zss.js → member-import-DjYoddBi.js} +6 -5
- package/dist/{membership-DkJN7jyQ.js → membership-ByJUFP8f.js} +3 -3
- package/dist/{money-ChbDx6Nq.js → money-Bf2IEMJJ.js} +1 -1
- package/dist/{number-9TEd27Ku.js → number-CRBHrRUL.js} +1 -1
- package/dist/objectid-58gyOvdR.js +145 -0
- package/dist/{onboarding-BN3MKVRs.js → onboarding-CQ3lw7eY.js} +25 -25
- package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-CsdZKGFk.js} +2 -2
- package/dist/{plugins-CCibSJZa.js → plugins-iTZLbJGy.js} +3 -3
- package/dist/{MarketingMaterialEdit-DFhpsI2-.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-DjasF-NL.js → reward-DTN6JpEd.js} +1 -1
- package/dist/{rule-DqeChj0e.js → rule-BYACNQOL.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template--Vr0PCjB.js +188 -0
- package/dist/{timezone-D0nC1LDx.js → timezone-DwzjOED-.js} +1 -1
- package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-DapYe3n7.js} +2 -2
- package/dist/{trigger-CxpXoQJO.js → trigger-D8r76yb0.js} +18 -18
- package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-CdMmibPE.js} +3 -3
- package/dist/{usePagination-CrC-1v4L.js → usePagination-BRcQJkO1.js} +1 -1
- package/dist/useWhatsappAccount-BOJ8fz84.js +62 -0
- package/dist/{user-CrylHgF1.js → user-vBZFKqXQ.js} +1 -1
- package/dist/vue-i18n-Cw6fF11e.js +2365 -0
- package/dist/{xlsx-CJNYF7-l.js → xlsx-Muy_Rjhk.js} +440 -440
- package/dist/{zod-Dzn9S95S.js → zod-CCPTOeUz.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-DZ4SP99P.js +0 -271
- package/dist/Card-B5ni027Q.js +0 -911
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js +0 -2430
- package/dist/ReviewFacebookCallback-DeZqcpJo.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js +0 -1882
- package/dist/Setting-BOWPp05N.js +0 -2036
- package/dist/Settings-DekXvE-R.js +0 -179
- package/dist/Store-DpVlMuau.js +0 -1998
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js +0 -142
- package/dist/Transaction-mvKzTgLx.js +0 -39
- package/dist/campaign-Co4Lq-Wz.js +0 -228
- package/dist/campaign.fn-DolD3lYJ.js +0 -776
- package/dist/export-D0hWZSfH.js +0 -97
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-aCuOvuEC.js +0 -45
- package/dist/objectid-CGol1NeA.js +0 -145
- package/dist/rule-builder-DT854ycI.js +0 -102
- package/dist/template-BeCVA0-N.js +0 -236
- package/dist/vue-i18n-BjtkXdmG.js +0 -2365
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as f, computed as b, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as y, createVNode as m, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as u, createCommentVNode as F } from "vue";
|
|
2
|
+
import { _ as T, a as g } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js";
|
|
3
|
+
import { u as C } from "./vue-i18n-Cw6fF11e.js";
|
|
4
|
+
import { useRoute as V, useRouter as q } from "vue-router";
|
|
5
|
+
const B = { class: "px-24 flex flex-col gap-y-32 pb-24" }, $ = /* @__PURE__ */ f({
|
|
6
|
+
__name: "Transaction",
|
|
7
|
+
setup(N) {
|
|
8
|
+
const { t: n } = C(), r = V(), i = q(), a = [
|
|
9
|
+
{
|
|
10
|
+
label: n("connect.transaction.tabs.collection"),
|
|
11
|
+
value: "collection"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: n("connect.transaction.tabs.store"),
|
|
15
|
+
value: "store"
|
|
16
|
+
}
|
|
17
|
+
], c = b(
|
|
18
|
+
() => a.find((e) => e.value === r.query.tab) ?? a[0]
|
|
19
|
+
);
|
|
20
|
+
function p(e) {
|
|
21
|
+
e !== "collection" && e !== "store" || i.replace({ query: { ...r.query, tab: e } });
|
|
22
|
+
}
|
|
23
|
+
return (e, h) => {
|
|
24
|
+
const _ = s("FmPageHead"), d = s("FmTabs");
|
|
25
|
+
return t(), v(y, null, [
|
|
26
|
+
m(_, {
|
|
27
|
+
title: o(n)("connect.transaction.title")
|
|
28
|
+
}, null, 8, ["title"]),
|
|
29
|
+
k("div", B, [
|
|
30
|
+
m(d, {
|
|
31
|
+
"model-value": o(c).value,
|
|
32
|
+
items: a,
|
|
33
|
+
"onUpdate:modelValue": p
|
|
34
|
+
}, null, 8, ["model-value"]),
|
|
35
|
+
(t(), l(x, null, [
|
|
36
|
+
o(c).value == "collection" ? (t(), l(u(T), { key: 0 })) : o(c).value == "store" ? (t(), l(u(g), { key: 1 })) : F("", !0)
|
|
37
|
+
], 1024))
|
|
38
|
+
])
|
|
39
|
+
], 64);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
$ as default
|
|
45
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as y, computed as b, openBlock as i, createBlock as R, unref as l, ref as E, watch as k, resolveComponent as h, createElementBlock as g, createElementVNode as B, Fragment as O, renderList as T, createVNode as V, isRef as U, createCommentVNode as v } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { p as N } from "./plugins-
|
|
6
|
-
import { u as S } from "./membership-
|
|
2
|
+
import "./index-DtcUCknS.js";
|
|
3
|
+
import { a as C, R as e } from "./index-B1jP-_Z_.js";
|
|
4
|
+
import { a as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js";
|
|
5
|
+
import { p as N } from "./plugins-iTZLbJGy.js";
|
|
6
|
+
import { u as S } from "./membership-ByJUFP8f.js";
|
|
7
7
|
import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
8
|
-
import { u as x } from "./vue-i18n-
|
|
8
|
+
import { u as x } from "./vue-i18n-Cw6fF11e.js";
|
|
9
9
|
const A = /* @__PURE__ */ y({
|
|
10
10
|
__name: "SegmentConfigurator",
|
|
11
11
|
props: {
|
|
@@ -15,8 +15,8 @@ const A = /* @__PURE__ */ y({
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:model-value"],
|
|
18
|
-
setup(
|
|
19
|
-
const o =
|
|
18
|
+
setup(a, { emit: f }) {
|
|
19
|
+
const o = a, n = b(() => {
|
|
20
20
|
var s;
|
|
21
21
|
const [u] = C(o.modelValue) ? Object.values(((s = o.modelValue) == null ? void 0 : s.rules) ?? {}) : [null];
|
|
22
22
|
return (u ?? e.constructEntry("user.segment", "_hasAny", [])).conditions._hasAny;
|
|
@@ -24,7 +24,7 @@ const A = /* @__PURE__ */ y({
|
|
|
24
24
|
return (u, c) => (i(), R(j, {
|
|
25
25
|
multiselect: !0,
|
|
26
26
|
items: l(S)().segmentOptions,
|
|
27
|
-
"model-value": l(
|
|
27
|
+
"model-value": l(n),
|
|
28
28
|
"onUpdate:modelValue": c[0] || (c[0] = (s) => r(
|
|
29
29
|
"update:model-value",
|
|
30
30
|
l(e).setRuleToGroup(
|
|
@@ -45,9 +45,9 @@ const A = /* @__PURE__ */ y({
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
emits: ["update:model-value"],
|
|
48
|
-
setup(
|
|
49
|
-
const { t: o } = x(),
|
|
50
|
-
|
|
48
|
+
setup(a, { emit: f }) {
|
|
49
|
+
const { t: o } = x(), n = a, r = f, u = E(
|
|
50
|
+
n.modelValue ? e.getRules(n.modelValue.rules.g_user).length > 0 ? "custom" : e.getRules(n.modelValue.rules.g_segment).length > 0 ? "segment" : "all_users" : "all_users"
|
|
51
51
|
), c = [
|
|
52
52
|
{
|
|
53
53
|
value: "all_users",
|
|
@@ -65,7 +65,7 @@ const A = /* @__PURE__ */ y({
|
|
|
65
65
|
return k(u, async (s, t) => {
|
|
66
66
|
var p;
|
|
67
67
|
if (t != "all_users" && t != s && e.getRules(
|
|
68
|
-
(p =
|
|
68
|
+
(p = n.modelValue) == null ? void 0 : p.rules[t == "custom" ? "g_user" : "g_segment"]
|
|
69
69
|
).length > 0) {
|
|
70
70
|
const d = await N.confirm(
|
|
71
71
|
o("connect.template.rule.audience.confirm_remove"),
|
|
@@ -76,7 +76,7 @@ const A = /* @__PURE__ */ y({
|
|
|
76
76
|
d && r(
|
|
77
77
|
"update:model-value",
|
|
78
78
|
e.setRuleToGroup(
|
|
79
|
-
|
|
79
|
+
n.modelValue ?? e.scaffoldGroup(),
|
|
80
80
|
e.scaffoldGroup(t == "custom" ? "g_user" : "g_segment")
|
|
81
81
|
)
|
|
82
82
|
), u.value = d ? s : t;
|
|
@@ -86,22 +86,22 @@ const A = /* @__PURE__ */ y({
|
|
|
86
86
|
const p = h("FmRadio");
|
|
87
87
|
return i(), g("div", F, [
|
|
88
88
|
B("div", null, [
|
|
89
|
-
(i(), g(O, null, T(c, (
|
|
90
|
-
key:
|
|
91
|
-
value:
|
|
92
|
-
label:
|
|
89
|
+
(i(), g(O, null, T(c, (m) => V(p, {
|
|
90
|
+
key: m.value,
|
|
91
|
+
value: m.value,
|
|
92
|
+
label: m.label,
|
|
93
93
|
modelValue: l(u),
|
|
94
94
|
"onUpdate:modelValue": t[0] || (t[0] = (G) => U(u) ? u.value = G : null)
|
|
95
95
|
}, null, 8, ["value", "label", "modelValue"])), 64))
|
|
96
96
|
]),
|
|
97
97
|
l(u) == "segment" ? (i(), g("div", M, [
|
|
98
98
|
V(A, {
|
|
99
|
-
modelValue: ((d =
|
|
100
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
99
|
+
modelValue: ((d = a.modelValue) == null ? void 0 : d.rules.g_segment) ?? l(e).scaffoldGroup("g_segment"),
|
|
100
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => r(
|
|
101
101
|
"update:model-value",
|
|
102
102
|
l(e).setRuleToGroup(
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
a.modelValue ?? l(e).scaffoldGroup(),
|
|
104
|
+
m,
|
|
105
105
|
"&&"
|
|
106
106
|
)
|
|
107
107
|
))
|
|
@@ -111,12 +111,12 @@ const A = /* @__PURE__ */ y({
|
|
|
111
111
|
key: 1,
|
|
112
112
|
"include-only": "user",
|
|
113
113
|
"trigger-type": "MEMBERSHIP_JOINED",
|
|
114
|
-
"model-value": ((_ =
|
|
115
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
114
|
+
"model-value": ((_ = a.modelValue) == null ? void 0 : _.rules.g_user) ?? l(e).scaffoldGroup("g_user"),
|
|
115
|
+
"onUpdate:modelValue": t[2] || (t[2] = (m) => r(
|
|
116
116
|
"update:model-value",
|
|
117
117
|
l(e).setRuleToGroup(
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
a.modelValue ?? l(e).scaffoldGroup(),
|
|
119
|
+
m,
|
|
120
120
|
"&&"
|
|
121
121
|
)
|
|
122
122
|
))
|
|
@@ -2,26 +2,26 @@ import { defineComponent as le, ref as w, computed as ce, h as m, onMounted as r
|
|
|
2
2
|
import { _ as pe } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as ue, components as d } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as M } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
5
|
-
import { c as de, p as he } from "./plugins-
|
|
5
|
+
import { c as de, p as he } from "./plugins-iTZLbJGy.js";
|
|
6
6
|
import { useCoreStore as ge } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as fe } from "./loading-
|
|
8
|
-
import { u as ye } from "./business-
|
|
9
|
-
import { u as _e } from "./campaign-
|
|
10
|
-
import {
|
|
11
|
-
import { c as be, p as ve
|
|
12
|
-
import "./index-
|
|
13
|
-
import {
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "./index-
|
|
20
|
-
import
|
|
21
|
-
import { i as $ } from "./helper-
|
|
7
|
+
import { u as fe } from "./loading-CUNk5u1d.js";
|
|
8
|
+
import { u as ye } from "./business-BjAmUqNA.js";
|
|
9
|
+
import { u as _e } from "./campaign-CTe-T5Gd.js";
|
|
10
|
+
import { a as Ce, b as B, c as D } from "./campaign-C5c47GqT.js";
|
|
11
|
+
import { c as be, p as ve } from "./duplicateCampaign-BbC4AwQ1.js";
|
|
12
|
+
import "./index-BvY2hQac.js";
|
|
13
|
+
import { u as He } from "./template--Vr0PCjB.js";
|
|
14
|
+
import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js";
|
|
15
|
+
import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js";
|
|
16
|
+
import { u as Ue } from "./vue-i18n-Cw6fF11e.js";
|
|
17
|
+
import { T as Te } from "./trigger-D8r76yb0.js";
|
|
18
|
+
import { u as Ve } from "./onboardingSetup-CsdZKGFk.js";
|
|
19
|
+
import { R as W, W as Pe, S as we } from "./index-B1jP-_Z_.js";
|
|
20
|
+
import "./index-DtcUCknS.js";
|
|
21
|
+
import { i as $ } from "./helper-D9cEaMIv.js";
|
|
22
22
|
import { useRouter as Ne } from "vue-router";
|
|
23
|
-
import { c as C } from "./index-
|
|
24
|
-
import { R } from "./app-
|
|
23
|
+
import { c as C } from "./index-VqAbYyHH.js";
|
|
24
|
+
import { R } from "./app-Devzv4gO.js";
|
|
25
25
|
const Ee = {
|
|
26
26
|
_id: "",
|
|
27
27
|
intention: ["REVISITING", "MEMBER_REWARD"],
|
|
@@ -395,7 +395,7 @@ W.scaffoldGroup(), $("VOUCHER", {
|
|
|
395
395
|
business: null,
|
|
396
396
|
noCampaign: !1
|
|
397
397
|
});
|
|
398
|
-
var xe = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "
|
|
398
|
+
var xe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
399
399
|
const Fe = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, je = { class: "flex gap-8 overflow-x-auto" }, ke = { class: "space-y-8" }, Ie = { class: "flex w-full gap-4 items-center" }, Je = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = { class: "space-y-4" }, Le = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "flex gap-8 items-center" }, Be = { class: "flex flex-col gap-16 text-center" }, De = { class: "fm-typo-en-title-sm-800" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = /* @__PURE__ */ le({
|
|
400
400
|
__name: "Voucher",
|
|
401
401
|
setup($e) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as S, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as T, resolveDynamicComponent as H } from "vue";
|
|
2
|
-
import { u as G } from "./vue-i18n-
|
|
3
|
-
import { c as j } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { C as ee } from "./membership-
|
|
6
|
-
import { Z as x } from "./zod-
|
|
7
|
-
import { S as te } from "./app-
|
|
8
|
-
import { u as le } from "./business-
|
|
2
|
+
import { u as G } from "./vue-i18n-Cw6fF11e.js";
|
|
3
|
+
import { c as j } from "./index-OvnHt5x5.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-DtcUCknS.js";
|
|
5
|
+
import { C as ee } from "./membership-ByJUFP8f.js";
|
|
6
|
+
import { Z as x } from "./zod-CCPTOeUz.js";
|
|
7
|
+
import { S as te } from "./app-Devzv4gO.js";
|
|
8
|
+
import { u as le } from "./business-BjAmUqNA.js";
|
|
9
9
|
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
-
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import {
|
|
13
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { i as re } from "./helper-
|
|
10
|
+
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js";
|
|
12
|
+
import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js";
|
|
14
|
+
import { i as re } from "./helper-D9cEaMIv.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -95,7 +95,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["update:model-value"],
|
|
97
97
|
setup(o, { emit: I }) {
|
|
98
|
-
var b,
|
|
98
|
+
var b, E, _;
|
|
99
99
|
const C = le(), { t: l } = G(), t = o, u = I, h = N(
|
|
100
100
|
() => [
|
|
101
101
|
{
|
|
@@ -135,7 +135,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
const v = L(
|
|
138
|
-
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((
|
|
138
|
+
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((_ = (E = t.modelValue) == null ? void 0 : E.property) != null && _.length) || !1
|
|
139
139
|
);
|
|
140
140
|
return (a, i) => {
|
|
141
141
|
var D, $, X;
|
|
@@ -329,7 +329,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
329
329
|
})
|
|
330
330
|
), u = Y, h = I;
|
|
331
331
|
return (c, n) => {
|
|
332
|
-
var b,
|
|
332
|
+
var b, E, _;
|
|
333
333
|
const P = g("FmTextarea"), v = g("FmHelperText");
|
|
334
334
|
return p(), S(w, null, [
|
|
335
335
|
m(ne, {
|
|
@@ -398,7 +398,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
398
398
|
n[9] || (n[9] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
|
|
399
399
|
e(t).type === "VOUCHER" ? (p(), O(me, {
|
|
400
400
|
key: 1,
|
|
401
|
-
"model-value": ((
|
|
401
|
+
"model-value": ((_ = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : _.map(String)) ?? null,
|
|
402
402
|
type: "select",
|
|
403
403
|
"onUpdate:modelValue": n[5] || (n[5] = (a) => {
|
|
404
404
|
e(t).extras.targetLocation = a;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent as j, computed as A, ref as x, watch as U, onBeforeUnmount as z, resolveComponent as v, openBlock as i, createElementBlock as u, Fragment as F, createElementVNode as o, createVNode as c, unref as e, withCtx as G, createTextVNode as I, toDisplayString as s, normalizeClass as O, createCommentVNode as T, createBlock as W } from "vue";
|
|
2
|
+
import { u as L } from "./vue-i18n-Cw6fF11e.js";
|
|
3
|
+
import { useRoute as D } from "vue-router";
|
|
4
|
+
import { S as H, a as M } from "./index-OvnHt5x5.js";
|
|
5
|
+
import { w as J } from "./index-0H82-X0n.js";
|
|
6
|
+
import { _ as K } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js";
|
|
7
|
+
import { _ as Q } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js";
|
|
8
|
+
import { u as X } from "./useWhatsappAccount-BOJ8fz84.js";
|
|
9
|
+
import { R as Y } from "./app-Devzv4gO.js";
|
|
10
|
+
const Z = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, q = { class: "w-full flex flex-col gap-[24px]" }, ee = {
|
|
11
|
+
key: 0,
|
|
12
|
+
role: "status",
|
|
13
|
+
class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
14
|
+
}, te = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
|
|
17
|
+
}, oe = {
|
|
18
|
+
role: "alert",
|
|
19
|
+
class: "text-[14px] text-fm-color-typo-error"
|
|
20
|
+
}, ne = { class: "flex items-center gap-[16px]" }, re = ["src"], se = { key: 1 }, ae = { class: "min-w-0 flex-1 flex flex-col gap-[2px]" }, le = { class: "text-[24px] leading-[32px] font-semibold tracking-[-0.01em] break-words" }, ie = { class: "flex items-center gap-[10px] flex-wrap text-[14px] text-fm-color-typo-secondary" }, ce = { class: "break-all" }, pe = {
|
|
21
|
+
"aria-labelledby": "notification-group-title",
|
|
22
|
+
class: "border border-fm-color-neutral-gray-100 rounded-[16px] p-[24px] xs:p-[20px] flex items-center gap-[16px] flex-wrap"
|
|
23
|
+
}, ue = {
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
class: "w-[40px] h-[40px] rounded-[8px] shrink-0 self-start bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center"
|
|
26
|
+
}, fe = { class: "min-w-[240px] xs:min-w-0 flex-1 flex flex-col gap-[4px]" }, me = {
|
|
27
|
+
id: "notification-group-title",
|
|
28
|
+
class: "text-[16px] leading-[24px] font-semibold"
|
|
29
|
+
}, de = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary" }, Ce = /* @__PURE__ */ j({
|
|
30
|
+
__name: "WhatsappAccount",
|
|
31
|
+
setup(xe) {
|
|
32
|
+
const { t: n } = L(), w = D(), m = A(() => H.getBusinessId() ?? ""), b = A(
|
|
33
|
+
() => typeof w.params.clientId == "string" ? w.params.clientId : ""
|
|
34
|
+
), r = x(), _ = x(!0), p = x(""), f = x(!1), {
|
|
35
|
+
name: E,
|
|
36
|
+
phoneNumber: N,
|
|
37
|
+
initials: V,
|
|
38
|
+
state: P,
|
|
39
|
+
avatarColor: $,
|
|
40
|
+
profilePictureUrl: B,
|
|
41
|
+
profilePictureFailed: k
|
|
42
|
+
} = X(r);
|
|
43
|
+
let a, h;
|
|
44
|
+
async function g(y = !1) {
|
|
45
|
+
clearTimeout(h), a == null || a.abort();
|
|
46
|
+
const t = new AbortController();
|
|
47
|
+
a = t, y || (_.value = !0, p.value = "");
|
|
48
|
+
try {
|
|
49
|
+
if (!m.value)
|
|
50
|
+
throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
|
|
51
|
+
const l = await J.getClient(
|
|
52
|
+
m.value,
|
|
53
|
+
b.value,
|
|
54
|
+
t.signal
|
|
55
|
+
);
|
|
56
|
+
if (t.signal.aborted) return;
|
|
57
|
+
r.value = l, p.value = "";
|
|
58
|
+
} catch (l) {
|
|
59
|
+
if (t.signal.aborted) return;
|
|
60
|
+
l instanceof M && l.status === 404 ? (f.value = !1, r.value = void 0, p.value = n("connect.whatsappBot.errors.accountNotFound")) : y || (p.value = m.value ? n("connect.whatsappBot.errors.loadAccount") : n("connect.whatsappBot.errors.selectBusiness"));
|
|
61
|
+
} finally {
|
|
62
|
+
t.signal.aborted || (_.value = !1, r.value && (h = setTimeout(() => void g(!0), 1e4)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return U(
|
|
66
|
+
[m, b],
|
|
67
|
+
() => {
|
|
68
|
+
f.value = !1, r.value = void 0, g();
|
|
69
|
+
},
|
|
70
|
+
{ immediate: !0 }
|
|
71
|
+
), z(() => {
|
|
72
|
+
a == null || a.abort(), clearTimeout(h);
|
|
73
|
+
}), (y, t) => {
|
|
74
|
+
const l = v("FmIcon"), R = v("RouterLink"), S = v("FmCircularProgress"), C = v("FmButton");
|
|
75
|
+
return i(), u(F, null, [
|
|
76
|
+
o("div", Z, [
|
|
77
|
+
o("div", q, [
|
|
78
|
+
c(R, {
|
|
79
|
+
to: { name: e(Y)["$connect-WHATSAPP_BOT"] },
|
|
80
|
+
class: "self-start flex items-center gap-[4px] h-[32px] pl-[6px] pr-[10px] -ml-[6px] rounded-[8px] text-[14px] font-medium text-fm-color-typo-secondary no-underline hover:bg-fm-color-neutral-gray-100 hover:text-fm-color-typo-primary focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
|
|
81
|
+
}, {
|
|
82
|
+
default: G(() => [
|
|
83
|
+
c(l, {
|
|
84
|
+
name: "chevron_left",
|
|
85
|
+
size: "sm"
|
|
86
|
+
}),
|
|
87
|
+
I(" " + s(e(n)("connect.navigation.whatsappBot")), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["to"]),
|
|
91
|
+
_.value ? (i(), u("div", ee, [
|
|
92
|
+
c(S),
|
|
93
|
+
I(" " + s(e(n)("connect.whatsappBot.loadingAccount")), 1)
|
|
94
|
+
])) : p.value ? (i(), u("div", te, [
|
|
95
|
+
o("p", oe, s(p.value), 1),
|
|
96
|
+
c(C, {
|
|
97
|
+
label: e(n)("connect.whatsappBot.tryAgain"),
|
|
98
|
+
"prepend-icon": "refresh",
|
|
99
|
+
onClick: t[0] || (t[0] = (d) => g())
|
|
100
|
+
}, null, 8, ["label"])
|
|
101
|
+
])) : r.value ? (i(), u(F, { key: 2 }, [
|
|
102
|
+
o("div", ne, [
|
|
103
|
+
o("div", {
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
class: O(["w-[56px] h-[56px] rounded-full overflow-hidden shrink-0 flex items-center justify-center text-[18px] font-semibold text-fm-color-typo-white", e($)])
|
|
106
|
+
}, [
|
|
107
|
+
e(B) && !e(k) ? (i(), u("img", {
|
|
108
|
+
key: 0,
|
|
109
|
+
src: e(B),
|
|
110
|
+
alt: "",
|
|
111
|
+
class: "w-full h-full object-cover",
|
|
112
|
+
referrerpolicy: "no-referrer",
|
|
113
|
+
onError: t[1] || (t[1] = (d) => k.value = !0)
|
|
114
|
+
}, null, 40, re)) : (i(), u("span", se, s(e(V)), 1))
|
|
115
|
+
], 2),
|
|
116
|
+
o("div", ae, [
|
|
117
|
+
o("h1", le, s(e(E)), 1),
|
|
118
|
+
o("div", ie, [
|
|
119
|
+
o("span", ce, s(e(N)), 1),
|
|
120
|
+
c(K, { state: e(P) }, null, 8, ["state"])
|
|
121
|
+
])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
o("section", pe, [
|
|
125
|
+
o("div", ue, [
|
|
126
|
+
c(l, {
|
|
127
|
+
name: "notifications",
|
|
128
|
+
size: "md"
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
o("div", fe, [
|
|
132
|
+
o("h2", me, s(e(n)("connect.whatsappBot.notificationGroup.title")), 1),
|
|
133
|
+
o("p", de, s(e(n)("connect.whatsappBot.notificationGroup.description")), 1)
|
|
134
|
+
]),
|
|
135
|
+
c(C, {
|
|
136
|
+
variant: "secondary",
|
|
137
|
+
label: e(n)("connect.whatsappBot.notificationGroup.join"),
|
|
138
|
+
"prepend-icon": "group",
|
|
139
|
+
class: "shrink-0",
|
|
140
|
+
onClick: t[2] || (t[2] = (d) => f.value = !0)
|
|
141
|
+
}, null, 8, ["label"])
|
|
142
|
+
])
|
|
143
|
+
], 64)) : T("", !0)
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
146
|
+
r.value ? (i(), W(Q, {
|
|
147
|
+
key: 0,
|
|
148
|
+
modelValue: f.value,
|
|
149
|
+
"onUpdate:modelValue": t[3] || (t[3] = (d) => f.value = d),
|
|
150
|
+
account: r.value
|
|
151
|
+
}, null, 8, ["modelValue", "account"])) : T("", !0)
|
|
152
|
+
], 64);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
Ce as default
|
|
158
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as l, computed as r, openBlock as a, createElementBlock as p, normalizeClass as t, createElementVNode as m, createTextVNode as i, toDisplayString as d, unref as u } from "vue";
|
|
2
|
+
import { u as f } from "./vue-i18n-Cw6fF11e.js";
|
|
3
|
+
const h = /* @__PURE__ */ l({
|
|
4
|
+
__name: "WhatsappAccountStatusLabel",
|
|
5
|
+
props: {
|
|
6
|
+
state: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const s = o, { t: n } = f(), c = {
|
|
10
|
+
connected: {
|
|
11
|
+
label: "connect.whatsappBot.connected",
|
|
12
|
+
pill: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
13
|
+
dot: "bg-fm-color-system-success-400"
|
|
14
|
+
},
|
|
15
|
+
disconnected: {
|
|
16
|
+
label: "connect.whatsappBot.disconnected",
|
|
17
|
+
pill: "text-fm-color-typo-error bg-fm-color-system-error-100",
|
|
18
|
+
dot: "bg-fm-color-system-error-400"
|
|
19
|
+
},
|
|
20
|
+
connecting: {
|
|
21
|
+
label: "connect.whatsappBot.statusConnecting",
|
|
22
|
+
pill: "text-fm-color-typo-warning bg-fm-color-system-warning-100",
|
|
23
|
+
dot: "bg-fm-color-system-warning-400"
|
|
24
|
+
}
|
|
25
|
+
}, e = r(() => c[s.state]);
|
|
26
|
+
return (x, g) => (a(), p("span", {
|
|
27
|
+
class: t(["flex items-center gap-[6px] text-[12px] font-semibold px-[8px] py-[3px] rounded-[6px]", e.value.pill])
|
|
28
|
+
}, [
|
|
29
|
+
m("span", {
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
class: t(["w-[6px] h-[6px] rounded-full", e.value.dot])
|
|
32
|
+
}, null, 2),
|
|
33
|
+
i(" " + d(u(n)(e.value.label)), 1)
|
|
34
|
+
], 2));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
h as _
|
|
39
|
+
};
|