@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,195 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
|
|
2
|
-
import { Z as d } from "./zod-
|
|
3
|
-
import { u as V } from "./vue-i18n-
|
|
2
|
+
import { Z as d } from "./zod-CCPTOeUz.js";
|
|
3
|
+
import { u as V } from "./vue-i18n-Cw6fF11e.js";
|
|
4
4
|
const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-fm-color-typo-tertiary"
|