@feedmepos/mf-connect 0.1.98-beta.74 → 0.1.98-beta.76
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-COUNgNnC.js → App-BpNFuouR.js} +106 -101
- package/dist/{AuditLogs-CY45tdqr.js → AuditLogs-D7vTaaiU.js} +15 -14
- package/dist/{Bin-COrX2Oq4.js → Bin-BDo0Vi0U.js} +8 -8
- package/dist/{Broadcast-BQxJ8Edf.js → Broadcast-Ctz8bCnt.js} +12 -12
- package/dist/{CampaignAnalytic-CSYrBckT.js → CampaignAnalytic-BnxmzdYI.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQUQxU1_.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bt2T2jVi.js} +8 -7
- package/dist/{Card-62iX4uef.js → Card-D9pYLwUX.js} +25 -24
- package/dist/{Collections-BxexBaGi.js → Collections-BP7_jYJY.js} +8 -8
- package/dist/{Credit-B5fLK5ot.js → Credit-D-3Ri1fe.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-C738fOnK.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2k77nhT.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CloubCwR.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-FjKUID8K.js} +38 -36
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-tFwP9_hm.js → EffectSheet.vue_vue_type_style_index_0_lang-tfDnADgu.js} +6 -6
- package/dist/{Experience-BReFp_Dz.js → Experience-CZMQLMe1.js} +13 -13
- package/dist/{FileSaver.min-o09GwL8H.js → FileSaver.min-_0SQsF4z.js} +1 -1
- package/dist/{Game-DTDVEBrO.js → Game-Oy1ys3Vc.js} +13 -13
- package/dist/{GiftCardSetup-CP7Pdqcb.js → GiftCardSetup-DIzgr6Ew.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DzV35QnL.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-gdvTQM25.js} +7 -7
- package/dist/{Goals-BNspliQP.js → Goals-CO8hZIU2.js} +4 -4
- package/dist/{Grab-C3xNIYzE.js → Grab-2mznKLou.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BidKqIgw.js → ImageInput.vue_vue_type_script_setup_true_lang-BaA6OJW8.js} +1 -1
- package/dist/{Index-CRlr03xg.js → Index-BRiQjotA.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-_YyfSHpE.js → LocationPicker.vue_vue_type_script_setup_true_lang-RnhLgDQA.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CMfRL6Ef.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DcHERHsz.js} +1 -1
- package/dist/{LoyaltyDashboard-BQpKd2JC.js → LoyaltyDashboard-A0dEiZD0.js} +15 -15
- package/dist/{MainLayout-BIVZ2S6v.js → MainLayout-CAeP3Geb.js} +3 -3
- package/dist/{Marketing-8SvgFvTs.js → Marketing-iXJhsmSi.js} +4 -4
- package/dist/{MarketingMaterialEdit-DXaM4RKu.js → MarketingMaterialEdit-1s-wm1Sq.js} +6 -6
- package/dist/{Member-DucF8ody.js → Member-Dn-yYonX.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CMQ1b_BI.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-W3-KGb8L.js} +27 -26
- package/dist/{MemberImportHistory-BB-pNBDA.js → MemberImportHistory-DKNbehJf.js} +7 -7
- package/dist/{MemberList-CazaLinm.js → MemberList-BCYfSkeY.js} +14 -14
- package/dist/{MemberTransactions-0PaBQaYk.js → MemberTransactions-0W1jYGG_.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Dv2rIoW2.js → MessageInput.vue_vue_type_script_setup_true_lang-DTBxNZgb.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DWn3ajhn.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DBfJciw7.js} +1 -1
- package/dist/{Mission-DxH1u9Ps.js → Mission-CDZLGBOq.js} +14 -14
- package/dist/{Overview-BcDJv-LJ.js → Overview-CNNlp-sj.js} +4 -4
- package/dist/{Overview-vepmOail.js → Overview-DfPfT1jl.js} +23 -22
- package/dist/{Point-LgZ_UrwI.js → Point-CFYSW-kx.js} +14 -14
- package/dist/{Promotion-CC6Drl2T.js → Promotion-E1MiG5Lb.js} +14 -14
- package/dist/{Queue-CeYuqidN.js → Queue-BlHxfV4T.js} +15 -14
- package/dist/{Record-B17ZYsb5.js → Record-6EVmRgo2.js} +9 -9
- package/dist/{Review-D6yhv3J7.js → Review-BePSVC45.js} +2 -2
- package/dist/{ReviewFacebookCallback-BAB4epr8.js → ReviewFacebookCallback-BJ-jdMEF.js} +5 -5
- package/dist/{ReviewGoogleCallback-CZccpOLv.js → ReviewGoogleCallback-DxJD3of9.js} +5 -5
- package/dist/{Reward-PdgtYMnB.js → Reward-Xzyb9DNA.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CiVHQa5M.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZKTIxMz2.js} +16 -15
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_rUcf5lG.js → RuleGroup.vue_vue_type_script_setup_true_lang-BIO78oG3.js} +17 -16
- package/dist/{Segment-DVK6xqb9.js → Segment-Cagj_3Sq.js} +35 -33
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CiR-d0s-.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dh_ajamB.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkPnwcE1.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bd0GtFww.js} +4 -4
- package/dist/Setting-DHPCKzLm.js +573 -0
- package/dist/{SettingAdvertisements-VUfOdSPw.js → SettingAdvertisements-bfXYN1hv.js} +12 -12
- package/dist/{Settings-B_cbux1z.js → Settings-CpFEG6Dd.js} +5 -5
- package/dist/{Store-BmMCgHeP.js → Store-CIIIti42.js} +30 -28
- package/dist/{StoreRewards-D_TSVQMf.js → StoreRewards-CR4zi9ux.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-qMRV_p8H.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BpXk51-h.js} +45 -44
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DKOE5bcU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CTfox5KD.js} +2 -2
- package/dist/{Tier-BNQ_RmZV.js → Tier-f_UEiHYS.js} +30 -29
- package/dist/{Title-DHicIYnB.js → Title-7XWLideF.js} +25 -24
- package/dist/{Transaction-B57Begy_.js → Transaction-LRL7sbDu.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cw852iqb.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CWtm4qIy.js} +6 -6
- package/dist/{Voucher-DIZfWgdX.js → Voucher-BqVEkMiW.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BhYXVG4z.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DiDpsXqP.js} +12 -12
- package/dist/WhatsappBot-Cu1oY_1Y.js +577 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-RnvpoPAb.js → ZodTextField.vue_vue_type_script_setup_true_lang-ByA_M7mT.js} +2 -2
- package/dist/{app-D59Y5Pmz.js → app-DCe_VQSq.js} +1169 -925
- package/dist/app.js +1 -1
- package/dist/{base.export-Bp2NvmoR.js → base.export-gNtvqhh6.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-CZnoeYYk.js → business-CvopE1wJ.js} +1 -1
- package/dist/{campaign-CXR35buF.js → campaign-CRQDvYX-.js} +9 -9
- package/dist/{campaign-C0od4X1k.js → campaign-D87mJcvH.js} +2 -2
- package/dist/{campaign.enum-DlrjqgBa.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-bEy0au5e.js → campaign.fn-DWNcsYr9.js} +65 -65
- package/dist/{collectible.enum-Czi69PBO.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DzPeFXPq.js → collection.fn-CDPBajL8.js} +2 -2
- package/dist/{currency-DktN5oXx.js → currency-oSov4t8f.js} +1 -1
- package/dist/{duplicateCampaign-Dc_9ZYk5.js → duplicateCampaign-CPMPIPg1.js} +2 -2
- package/dist/{effect-KY41iVGx.js → effect-CeQ-vqGq.js} +1 -1
- package/dist/{email-addresses-CRGGbqZn.js → email-addresses-GNLhUzgZ.js} +2 -2
- package/dist/{helper-BT8y_Hpb.js → helper-CdGkmdxL.js} +1 -1
- package/dist/{index-BZnzbUL3.js → index-BFsnFZkK.js} +11 -10
- package/dist/{index-DiicsY5E.js → index-BhcW_yBW.js} +1 -1
- package/dist/{index-B30DDvin.js → index-CCDx-XqV.js} +8 -7
- package/dist/{index-CMJp7VdE.js → index-CHLqP0Ec.js} +1 -1
- package/dist/{index-11j23Lx1.js → index-CK2gvgpm.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-BzKHBymK.js → index-CaMlQSvW.js} +2 -2
- package/dist/{index-BhJpa8K-.js → index-CbzWLlC9.js} +8027 -10766
- package/dist/{index-BWR1QjWQ.js → index-CfsnVMZ5.js} +18 -17
- package/dist/{index-CTe-H50U.js → index-Ch9ZZ90e.js} +3 -3
- package/dist/{index-ClNPGM0y.js → index-CkHztow_.js} +4 -3
- package/dist/index-Cp2qabkb.js +28 -0
- package/dist/{index-CYgzVl3H.js → index-CqUDkK17.js} +20 -19
- package/dist/{index-0awpDQm_.js → index-CwOnVt6n.js} +108 -62
- package/dist/{index-D2FgYlbx.js → index-CzvnWHo6.js} +1 -1
- package/dist/{index-D-V84VLW.js → index-DXGfSYbL.js} +43 -42
- package/dist/{index-G8qEVB7S.js → index-DtxAUayi.js} +2 -2
- package/dist/{index-377HHaUi.js → index-JSRHjm1v.js} +1 -1
- package/dist/{index-BE8jnf9X.js → index-P6H0Nj1-.js} +1 -1
- package/dist/{index-E4B5H1FX.js → index-ShdxYCbF.js} +2 -2
- package/dist/{index-CTPFlKiY.js → index-V4Fej0RK.js} +4 -4
- package/dist/{index.esm2017-DKzsf5EJ.js → index.esm2017-a1JYIQui.js} +37 -37
- package/dist/{loading-AuVL4WdD.js → loading-DBX3vfS4.js} +1 -1
- package/dist/{lodash-Bm8ZbAXg.js → lodash-BQQbr-v0.js} +1 -1
- package/dist/{member-import-Kq5CMrPF.js → member-import-CM-7fvI2.js} +6 -5
- package/dist/{membership-8f9xLURB.js → membership-DhCbt2tn.js} +3 -3
- package/dist/{money-JRN61MHj.js → money-CqQin-8P.js} +1 -1
- package/dist/{number-Dd6DRScj.js → number-VtG8ZWak.js} +1 -1
- package/dist/{objectid-_tuwJN_b.js → objectid-ByBBguim.js} +9 -9
- package/dist/{onboarding-DOPR1c3u.js → onboarding-CK20C51K.js} +3 -3
- package/dist/{onboardingSetup-DOR-OW92.js → onboardingSetup-B-9izpMN.js} +2 -2
- package/dist/{plugins-DPFr2tq7.js → plugins-B2TWkTg5.js} +3 -3
- package/dist/{reward-B-yDjlsA.js → reward-B4QDE-hp.js} +1 -1
- package/dist/{rule-DRN4bolS.js → rule-CzZo6Z5G.js} +20 -19
- package/dist/{template-7UtS_hVI.js → template-Co9GIfDK.js} +6 -6
- package/dist/{timezone-BmZfPTab.js → timezone-CXb1Of5W.js} +1 -1
- package/dist/{transaction.fn-C9WOWjoC.js → transaction.fn-D1shYDAp.js} +2 -2
- package/dist/{trigger-BDKxlupM.js → trigger-D1iPqyua.js} +5 -5
- package/dist/{useMarketingMaterialActions-DJ7__20D.js → useMarketingMaterialActions-BWrHG4u3.js} +3 -3
- package/dist/{usePagination-Czb6ZvSX.js → usePagination-vGg6slc_.js} +1 -1
- package/dist/{user-C-y46MEn.js → user-BL1FGfP0.js} +1 -1
- package/dist/{vue-i18n-l6QdWh8z.js → vue-i18n-GqQ0e2Uh.js} +357 -357
- package/dist/{xlsx-Dbm5Y1eY.js → xlsx-No9Jac5G.js} +651 -651
- package/dist/{zod-DciqV0cq.js → zod-DCljEP8S.js} +1 -1
- package/package.json +1 -1
- package/dist/Setting-D9x8t85J.js +0 -2047
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as ee, h as
|
|
1
|
+
import { defineComponent as xe, ref as ee, h as U, Comment as cn, computed as ne, watch as pe, resolveComponent as Z, openBlock as W, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
|
|
2
2
|
import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
|
|
3
3
|
import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as pn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as mn } from "./business-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { components as
|
|
8
|
-
import { u as Tt } from "./vue-i18n-
|
|
9
|
-
import { m as vn } from "./index-
|
|
10
|
-
import { C as Xe } from "./timezone-
|
|
11
|
-
import { u as In } from "./onboarding-
|
|
12
|
-
import { R as f, A as yn, a as Qe } from "./app-
|
|
5
|
+
import { u as mn } from "./business-CvopE1wJ.js";
|
|
6
|
+
import "./index-CzvnWHo6.js";
|
|
7
|
+
import { components as j, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
|
|
8
|
+
import { u as Tt } from "./vue-i18n-GqQ0e2Uh.js";
|
|
9
|
+
import { m as vn } from "./index-P6H0Nj1-.js";
|
|
10
|
+
import { C as Xe } from "./timezone-CXb1Of5W.js";
|
|
11
|
+
import { u as In } from "./onboarding-CK20C51K.js";
|
|
12
|
+
import { R as f, A as yn, a as Qe } from "./app-DCe_VQSq.js";
|
|
13
13
|
import { J as wn } from "./JsonViewer-v8_C7l5N.js";
|
|
14
|
-
import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-
|
|
14
|
+
import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-a1JYIQui.js";
|
|
15
15
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
16
|
-
import { S as tt, c as Dn } from "./index-
|
|
16
|
+
import { S as tt, c as Dn } from "./index-DtxAUayi.js";
|
|
17
17
|
const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
|
|
18
18
|
__name: "NavigationTab",
|
|
19
19
|
setup(n) {
|
|
@@ -63,7 +63,7 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
63
63
|
{
|
|
64
64
|
label: e("connect.navigation.point"),
|
|
65
65
|
value: f["$connect-PROGRAM_POINT"],
|
|
66
|
-
badge: () =>
|
|
66
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
label: e("connect.navigation.credit"),
|
|
@@ -72,7 +72,7 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
72
72
|
{
|
|
73
73
|
label: e("connect.navigation.game"),
|
|
74
74
|
value: f["$connect-PROGRAM_GAME"],
|
|
75
|
-
badge: () =>
|
|
75
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
label: "Mission",
|
|
@@ -91,19 +91,24 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
91
91
|
{
|
|
92
92
|
label: e("connect.navigation.segments"),
|
|
93
93
|
value: f["$connect-LOYALTY_SEGMENT"],
|
|
94
|
-
badge: () =>
|
|
94
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
label: e("connect.navigation.card"),
|
|
98
98
|
value: f["$connect-LOYALTY_CARD"],
|
|
99
|
-
badge: () =>
|
|
99
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
100
100
|
}
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
|
+
{
|
|
104
|
+
label: e("connect.navigation.whatsappBot"),
|
|
105
|
+
value: f["$connect-WHATSAPP_BOT"],
|
|
106
|
+
badge: () => U(j.FmPill, { variant: "beta" })
|
|
107
|
+
},
|
|
103
108
|
{
|
|
104
109
|
label: e("connect.navigation.referral"),
|
|
105
110
|
value: f["$connect-REFERRAL"],
|
|
106
|
-
badge: () =>
|
|
111
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
107
112
|
},
|
|
108
113
|
{
|
|
109
114
|
label: e("connect.navigation.store"),
|
|
@@ -128,11 +133,11 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
128
133
|
{
|
|
129
134
|
label: e("connect.navigation.goals"),
|
|
130
135
|
value: f["$connect-GOALS"],
|
|
131
|
-
badge: () => i.goalsRemaining > 0 ?
|
|
136
|
+
badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
|
|
132
137
|
variant: "numeric",
|
|
133
138
|
inline: !0,
|
|
134
139
|
value: i.goalsRemaining
|
|
135
|
-
}) :
|
|
140
|
+
}) : U(cn)
|
|
136
141
|
},
|
|
137
142
|
{
|
|
138
143
|
label: e("connect.navigation.setting"),
|
|
@@ -172,7 +177,7 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
172
177
|
return (h, y) => {
|
|
173
178
|
var p;
|
|
174
179
|
const _ = Z("FmCollapsibleTabs");
|
|
175
|
-
return
|
|
180
|
+
return W(), me("div", xn, [
|
|
176
181
|
S(_, {
|
|
177
182
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
178
183
|
"model-value": (p = g(r)) == null ? void 0 : p.toString(),
|
|
@@ -200,7 +205,7 @@ function Hn() {
|
|
|
200
205
|
} catch {
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" },
|
|
208
|
+
const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Bn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Gn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, zn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, qn = { class: "flex flex-col gap-24 pb-8" }, Kn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Jn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Yn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Qn = { class: "shrink-0" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ei = { class: "flex w-full flex-col gap-12 px-[16px]" }, ti = { class: "flex flex-wrap items-center gap-12" }, ni = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ii = /* @__PURE__ */ xe({
|
|
204
209
|
__name: "AiMarketingPromoDialog",
|
|
205
210
|
setup(n) {
|
|
206
211
|
let e = !1;
|
|
@@ -239,7 +244,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
239
244
|
}
|
|
240
245
|
return (y, _) => {
|
|
241
246
|
const p = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
|
|
242
|
-
return
|
|
247
|
+
return W(), Oe(M, {
|
|
243
248
|
modelValue: o.value,
|
|
244
249
|
"onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
|
|
245
250
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
@@ -255,9 +260,9 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
255
260
|
size: "sm",
|
|
256
261
|
color: "primary"
|
|
257
262
|
}),
|
|
258
|
-
v("span",
|
|
263
|
+
v("span", Bn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
|
|
259
264
|
]),
|
|
260
|
-
v("h1",
|
|
265
|
+
v("h1", Gn, R(g(t)("connect.marketing.whatsNew.title")), 1),
|
|
261
266
|
v("p", zn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
262
267
|
])
|
|
263
268
|
]),
|
|
@@ -284,7 +289,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
284
289
|
default: Q(() => [
|
|
285
290
|
v("div", qn, [
|
|
286
291
|
v("div", Kn, [
|
|
287
|
-
(
|
|
292
|
+
(W(), me(It, null, ln(c, (k) => S(I, {
|
|
288
293
|
key: k.key,
|
|
289
294
|
variant: "outlined",
|
|
290
295
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
@@ -403,7 +408,7 @@ function Pt(n, e, t) {
|
|
|
403
408
|
appName: n.name
|
|
404
409
|
});
|
|
405
410
|
}
|
|
406
|
-
function
|
|
411
|
+
function H(n) {
|
|
407
412
|
return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
408
413
|
}
|
|
409
414
|
function He(n, ...e) {
|
|
@@ -1212,7 +1217,7 @@ class q {
|
|
|
1212
1217
|
* See the License for the specific language governing permissions and
|
|
1213
1218
|
* limitations under the License.
|
|
1214
1219
|
*/
|
|
1215
|
-
function
|
|
1220
|
+
function D(n, e) {
|
|
1216
1221
|
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
|
1217
1222
|
}
|
|
1218
1223
|
class C {
|
|
@@ -1270,7 +1275,7 @@ class C {
|
|
|
1270
1275
|
}
|
|
1271
1276
|
async delete() {
|
|
1272
1277
|
if (A(this.auth.app))
|
|
1273
|
-
return Promise.reject(
|
|
1278
|
+
return Promise.reject(H(this.auth));
|
|
1274
1279
|
const e = await this.getIdToken();
|
|
1275
1280
|
return await ie(this, pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
1276
1281
|
}
|
|
@@ -1313,7 +1318,7 @@ class C {
|
|
|
1313
1318
|
e,
|
|
1314
1319
|
"internal-error"
|
|
1315
1320
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1316
|
-
),
|
|
1321
|
+
), D(m, e.name), D(h, e.name), u(
|
|
1317
1322
|
typeof Ke == "boolean",
|
|
1318
1323
|
e,
|
|
1319
1324
|
"internal-error"
|
|
@@ -1323,7 +1328,7 @@ class C {
|
|
|
1323
1328
|
e,
|
|
1324
1329
|
"internal-error"
|
|
1325
1330
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1326
|
-
),
|
|
1331
|
+
), D(y, e.name), D(_, e.name), D(p, e.name), D(I, e.name), D(T, e.name), D(M, e.name);
|
|
1327
1332
|
const Ae = new C({
|
|
1328
1333
|
uid: k,
|
|
1329
1334
|
auth: e,
|
|
@@ -1564,7 +1569,7 @@ function ot(n) {
|
|
|
1564
1569
|
return "Blackberry";
|
|
1565
1570
|
if (jt(e))
|
|
1566
1571
|
return "Webos";
|
|
1567
|
-
if (
|
|
1572
|
+
if (Be(e))
|
|
1568
1573
|
return "Safari";
|
|
1569
1574
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1570
1575
|
return "Chrome";
|
|
@@ -1580,7 +1585,7 @@ function ot(n) {
|
|
|
1580
1585
|
function xt(n = w()) {
|
|
1581
1586
|
return /firefox\//i.test(n);
|
|
1582
1587
|
}
|
|
1583
|
-
function
|
|
1588
|
+
function Be(n = w()) {
|
|
1584
1589
|
const e = n.toLowerCase();
|
|
1585
1590
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1586
1591
|
}
|
|
@@ -1635,7 +1640,7 @@ function bi() {
|
|
|
1635
1640
|
* See the License for the specific language governing permissions and
|
|
1636
1641
|
* limitations under the License.
|
|
1637
1642
|
*/
|
|
1638
|
-
function
|
|
1643
|
+
function Bt(n, e = []) {
|
|
1639
1644
|
let t;
|
|
1640
1645
|
switch (n) {
|
|
1641
1646
|
case "Browser":
|
|
@@ -1931,7 +1936,7 @@ class Pi {
|
|
|
1931
1936
|
}
|
|
1932
1937
|
async updateCurrentUser(e) {
|
|
1933
1938
|
if (A(this.app))
|
|
1934
|
-
return Promise.reject(
|
|
1939
|
+
return Promise.reject(H(this));
|
|
1935
1940
|
const t = e ? Y(e) : null;
|
|
1936
1941
|
return t && u(
|
|
1937
1942
|
t.auth.config.apiKey === this.config.apiKey,
|
|
@@ -1952,14 +1957,14 @@ class Pi {
|
|
|
1952
1957
|
});
|
|
1953
1958
|
}
|
|
1954
1959
|
async signOut() {
|
|
1955
|
-
return A(this.app) ? Promise.reject(
|
|
1960
|
+
return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
1956
1961
|
null,
|
|
1957
1962
|
/* skipBeforeStateCallbacks */
|
|
1958
1963
|
!0
|
|
1959
1964
|
));
|
|
1960
1965
|
}
|
|
1961
1966
|
setPersistence(e) {
|
|
1962
|
-
return A(this.app) ? Promise.reject(
|
|
1967
|
+
return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
|
|
1963
1968
|
await this.assertedPersistence.setPersistence(N(e));
|
|
1964
1969
|
});
|
|
1965
1970
|
}
|
|
@@ -2128,7 +2133,7 @@ class Pi {
|
|
|
2128
2133
|
), this.persistenceManager;
|
|
2129
2134
|
}
|
|
2130
2135
|
_logFramework(e) {
|
|
2131
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
2136
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
|
|
2132
2137
|
}
|
|
2133
2138
|
_getFrameworks() {
|
|
2134
2139
|
return this.frameworks;
|
|
@@ -2193,7 +2198,7 @@ class at {
|
|
|
2193
2198
|
* See the License for the specific language governing permissions and
|
|
2194
2199
|
* limitations under the License.
|
|
2195
2200
|
*/
|
|
2196
|
-
let
|
|
2201
|
+
let Ge = {
|
|
2197
2202
|
async loadJS() {
|
|
2198
2203
|
throw new Error("Unable to load external scripts");
|
|
2199
2204
|
},
|
|
@@ -2202,13 +2207,13 @@ let Be = {
|
|
|
2202
2207
|
gapiScript: ""
|
|
2203
2208
|
};
|
|
2204
2209
|
function Ci(n) {
|
|
2205
|
-
|
|
2210
|
+
Ge = n;
|
|
2206
2211
|
}
|
|
2207
2212
|
function Ni(n) {
|
|
2208
|
-
return
|
|
2213
|
+
return Ge.loadJS(n);
|
|
2209
2214
|
}
|
|
2210
2215
|
function Oi() {
|
|
2211
|
-
return
|
|
2216
|
+
return Ge.gapiScript;
|
|
2212
2217
|
}
|
|
2213
2218
|
function Li(n) {
|
|
2214
2219
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -2260,7 +2265,7 @@ function Di(n, e, t) {
|
|
|
2260
2265
|
"invalid-emulator-scheme"
|
|
2261
2266
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2262
2267
|
);
|
|
2263
|
-
const r = !1, s =
|
|
2268
|
+
const r = !1, s = Gt(e), { host: o, port: c } = xi(e), a = c === null ? "" : `:${c}`;
|
|
2264
2269
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2265
2270
|
host: o,
|
|
2266
2271
|
port: c,
|
|
@@ -2268,12 +2273,12 @@ function Di(n, e, t) {
|
|
|
2268
2273
|
options: Object.freeze({ disableWarnings: r })
|
|
2269
2274
|
}), Fi();
|
|
2270
2275
|
}
|
|
2271
|
-
function
|
|
2276
|
+
function Gt(n) {
|
|
2272
2277
|
const e = n.indexOf(":");
|
|
2273
2278
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2274
2279
|
}
|
|
2275
2280
|
function xi(n) {
|
|
2276
|
-
const e =
|
|
2281
|
+
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2277
2282
|
if (!t)
|
|
2278
2283
|
return { host: "", port: null };
|
|
2279
2284
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2376,13 +2381,13 @@ async function J(n, e) {
|
|
|
2376
2381
|
* limitations under the License.
|
|
2377
2382
|
*/
|
|
2378
2383
|
const Vi = "http://localhost";
|
|
2379
|
-
class
|
|
2384
|
+
class B extends zt {
|
|
2380
2385
|
constructor() {
|
|
2381
2386
|
super(...arguments), this.pendingToken = null;
|
|
2382
2387
|
}
|
|
2383
2388
|
/** @internal */
|
|
2384
2389
|
static _fromParams(e) {
|
|
2385
|
-
const t = new
|
|
2390
|
+
const t = new B(e.providerId, e.signInMethod);
|
|
2386
2391
|
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
|
|
2387
2392
|
"argument-error"
|
|
2388
2393
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -2413,7 +2418,7 @@ class W extends zt {
|
|
|
2413
2418
|
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
2414
2419
|
if (!i || !r)
|
|
2415
2420
|
return null;
|
|
2416
|
-
const o = new
|
|
2421
|
+
const o = new B(i, r);
|
|
2417
2422
|
return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
|
|
2418
2423
|
}
|
|
2419
2424
|
/** @internal */
|
|
@@ -2549,7 +2554,7 @@ class ae extends qt {
|
|
|
2549
2554
|
* See the License for the specific language governing permissions and
|
|
2550
2555
|
* limitations under the License.
|
|
2551
2556
|
*/
|
|
2552
|
-
class
|
|
2557
|
+
class x extends ae {
|
|
2553
2558
|
constructor() {
|
|
2554
2559
|
super(
|
|
2555
2560
|
"facebook.com"
|
|
@@ -2569,9 +2574,9 @@ class D extends ae {
|
|
|
2569
2574
|
* @param accessToken - Facebook access token.
|
|
2570
2575
|
*/
|
|
2571
2576
|
static credential(e) {
|
|
2572
|
-
return
|
|
2573
|
-
providerId:
|
|
2574
|
-
signInMethod:
|
|
2577
|
+
return B._fromParams({
|
|
2578
|
+
providerId: x.PROVIDER_ID,
|
|
2579
|
+
signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
|
|
2575
2580
|
accessToken: e
|
|
2576
2581
|
});
|
|
2577
2582
|
}
|
|
@@ -2581,7 +2586,7 @@ class D extends ae {
|
|
|
2581
2586
|
* @param userCredential - The user credential.
|
|
2582
2587
|
*/
|
|
2583
2588
|
static credentialFromResult(e) {
|
|
2584
|
-
return
|
|
2589
|
+
return x.credentialFromTaggedObject(e);
|
|
2585
2590
|
}
|
|
2586
2591
|
/**
|
|
2587
2592
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2590,20 +2595,20 @@ class D extends ae {
|
|
|
2590
2595
|
* @param userCredential - The user credential.
|
|
2591
2596
|
*/
|
|
2592
2597
|
static credentialFromError(e) {
|
|
2593
|
-
return
|
|
2598
|
+
return x.credentialFromTaggedObject(e.customData || {});
|
|
2594
2599
|
}
|
|
2595
2600
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2596
2601
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
2597
2602
|
return null;
|
|
2598
2603
|
try {
|
|
2599
|
-
return
|
|
2604
|
+
return x.credential(e.oauthAccessToken);
|
|
2600
2605
|
} catch {
|
|
2601
2606
|
return null;
|
|
2602
2607
|
}
|
|
2603
2608
|
}
|
|
2604
2609
|
}
|
|
2605
|
-
|
|
2606
|
-
|
|
2610
|
+
x.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
|
2611
|
+
x.PROVIDER_ID = "facebook.com";
|
|
2607
2612
|
/**
|
|
2608
2613
|
* @license
|
|
2609
2614
|
* Copyright 2020 Google LLC
|
|
@@ -2620,7 +2625,7 @@ D.PROVIDER_ID = "facebook.com";
|
|
|
2620
2625
|
* See the License for the specific language governing permissions and
|
|
2621
2626
|
* limitations under the License.
|
|
2622
2627
|
*/
|
|
2623
|
-
class
|
|
2628
|
+
class F extends ae {
|
|
2624
2629
|
constructor() {
|
|
2625
2630
|
super(
|
|
2626
2631
|
"google.com"
|
|
@@ -2641,9 +2646,9 @@ class x extends ae {
|
|
|
2641
2646
|
* @param accessToken - Google access token.
|
|
2642
2647
|
*/
|
|
2643
2648
|
static credential(e, t) {
|
|
2644
|
-
return
|
|
2645
|
-
providerId:
|
|
2646
|
-
signInMethod:
|
|
2649
|
+
return B._fromParams({
|
|
2650
|
+
providerId: F.PROVIDER_ID,
|
|
2651
|
+
signInMethod: F.GOOGLE_SIGN_IN_METHOD,
|
|
2647
2652
|
idToken: e,
|
|
2648
2653
|
accessToken: t
|
|
2649
2654
|
});
|
|
@@ -2654,7 +2659,7 @@ class x extends ae {
|
|
|
2654
2659
|
* @param userCredential - The user credential.
|
|
2655
2660
|
*/
|
|
2656
2661
|
static credentialFromResult(e) {
|
|
2657
|
-
return
|
|
2662
|
+
return F.credentialFromTaggedObject(e);
|
|
2658
2663
|
}
|
|
2659
2664
|
/**
|
|
2660
2665
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2663,7 +2668,7 @@ class x extends ae {
|
|
|
2663
2668
|
* @param userCredential - The user credential.
|
|
2664
2669
|
*/
|
|
2665
2670
|
static credentialFromError(e) {
|
|
2666
|
-
return
|
|
2671
|
+
return F.credentialFromTaggedObject(e.customData || {});
|
|
2667
2672
|
}
|
|
2668
2673
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2669
2674
|
if (!e)
|
|
@@ -2672,14 +2677,14 @@ class x extends ae {
|
|
|
2672
2677
|
if (!t && !i)
|
|
2673
2678
|
return null;
|
|
2674
2679
|
try {
|
|
2675
|
-
return
|
|
2680
|
+
return F.credential(t, i);
|
|
2676
2681
|
} catch {
|
|
2677
2682
|
return null;
|
|
2678
2683
|
}
|
|
2679
2684
|
}
|
|
2680
2685
|
}
|
|
2681
|
-
|
|
2682
|
-
|
|
2686
|
+
F.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
2687
|
+
F.PROVIDER_ID = "google.com";
|
|
2683
2688
|
/**
|
|
2684
2689
|
* @license
|
|
2685
2690
|
* Copyright 2020 Google LLC
|
|
@@ -2696,7 +2701,7 @@ x.PROVIDER_ID = "google.com";
|
|
|
2696
2701
|
* See the License for the specific language governing permissions and
|
|
2697
2702
|
* limitations under the License.
|
|
2698
2703
|
*/
|
|
2699
|
-
class
|
|
2704
|
+
class V extends ae {
|
|
2700
2705
|
constructor() {
|
|
2701
2706
|
super(
|
|
2702
2707
|
"github.com"
|
|
@@ -2709,9 +2714,9 @@ class F extends ae {
|
|
|
2709
2714
|
* @param accessToken - Github access token.
|
|
2710
2715
|
*/
|
|
2711
2716
|
static credential(e) {
|
|
2712
|
-
return
|
|
2713
|
-
providerId:
|
|
2714
|
-
signInMethod:
|
|
2717
|
+
return B._fromParams({
|
|
2718
|
+
providerId: V.PROVIDER_ID,
|
|
2719
|
+
signInMethod: V.GITHUB_SIGN_IN_METHOD,
|
|
2715
2720
|
accessToken: e
|
|
2716
2721
|
});
|
|
2717
2722
|
}
|
|
@@ -2721,7 +2726,7 @@ class F extends ae {
|
|
|
2721
2726
|
* @param userCredential - The user credential.
|
|
2722
2727
|
*/
|
|
2723
2728
|
static credentialFromResult(e) {
|
|
2724
|
-
return
|
|
2729
|
+
return V.credentialFromTaggedObject(e);
|
|
2725
2730
|
}
|
|
2726
2731
|
/**
|
|
2727
2732
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2730,20 +2735,20 @@ class F extends ae {
|
|
|
2730
2735
|
* @param userCredential - The user credential.
|
|
2731
2736
|
*/
|
|
2732
2737
|
static credentialFromError(e) {
|
|
2733
|
-
return
|
|
2738
|
+
return V.credentialFromTaggedObject(e.customData || {});
|
|
2734
2739
|
}
|
|
2735
2740
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2736
2741
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
2737
2742
|
return null;
|
|
2738
2743
|
try {
|
|
2739
|
-
return
|
|
2744
|
+
return V.credential(e.oauthAccessToken);
|
|
2740
2745
|
} catch {
|
|
2741
2746
|
return null;
|
|
2742
2747
|
}
|
|
2743
2748
|
}
|
|
2744
2749
|
}
|
|
2745
|
-
|
|
2746
|
-
|
|
2750
|
+
V.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
2751
|
+
V.PROVIDER_ID = "github.com";
|
|
2747
2752
|
/**
|
|
2748
2753
|
* @license
|
|
2749
2754
|
* Copyright 2020 Google LLC
|
|
@@ -2760,7 +2765,7 @@ F.PROVIDER_ID = "github.com";
|
|
|
2760
2765
|
* See the License for the specific language governing permissions and
|
|
2761
2766
|
* limitations under the License.
|
|
2762
2767
|
*/
|
|
2763
|
-
class
|
|
2768
|
+
class $ extends ae {
|
|
2764
2769
|
constructor() {
|
|
2765
2770
|
super(
|
|
2766
2771
|
"twitter.com"
|
|
@@ -2774,9 +2779,9 @@ class V extends ae {
|
|
|
2774
2779
|
* @param secret - Twitter secret.
|
|
2775
2780
|
*/
|
|
2776
2781
|
static credential(e, t) {
|
|
2777
|
-
return
|
|
2778
|
-
providerId:
|
|
2779
|
-
signInMethod:
|
|
2782
|
+
return B._fromParams({
|
|
2783
|
+
providerId: $.PROVIDER_ID,
|
|
2784
|
+
signInMethod: $.TWITTER_SIGN_IN_METHOD,
|
|
2780
2785
|
oauthToken: e,
|
|
2781
2786
|
oauthTokenSecret: t
|
|
2782
2787
|
});
|
|
@@ -2787,7 +2792,7 @@ class V extends ae {
|
|
|
2787
2792
|
* @param userCredential - The user credential.
|
|
2788
2793
|
*/
|
|
2789
2794
|
static credentialFromResult(e) {
|
|
2790
|
-
return
|
|
2795
|
+
return $.credentialFromTaggedObject(e);
|
|
2791
2796
|
}
|
|
2792
2797
|
/**
|
|
2793
2798
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2796,7 +2801,7 @@ class V extends ae {
|
|
|
2796
2801
|
* @param userCredential - The user credential.
|
|
2797
2802
|
*/
|
|
2798
2803
|
static credentialFromError(e) {
|
|
2799
|
-
return
|
|
2804
|
+
return $.credentialFromTaggedObject(e.customData || {});
|
|
2800
2805
|
}
|
|
2801
2806
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2802
2807
|
if (!e)
|
|
@@ -2805,14 +2810,14 @@ class V extends ae {
|
|
|
2805
2810
|
if (!t || !i)
|
|
2806
2811
|
return null;
|
|
2807
2812
|
try {
|
|
2808
|
-
return
|
|
2813
|
+
return $.credential(t, i);
|
|
2809
2814
|
} catch {
|
|
2810
2815
|
return null;
|
|
2811
2816
|
}
|
|
2812
2817
|
}
|
|
2813
2818
|
}
|
|
2814
|
-
|
|
2815
|
-
|
|
2819
|
+
$.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
2820
|
+
$.PROVIDER_ID = "twitter.com";
|
|
2816
2821
|
/**
|
|
2817
2822
|
* @license
|
|
2818
2823
|
* Copyright 2020 Google LLC
|
|
@@ -2918,7 +2923,7 @@ async function $i(n, e, t = !1) {
|
|
|
2918
2923
|
async function Hi(n, e, t = !1) {
|
|
2919
2924
|
const { auth: i } = n;
|
|
2920
2925
|
if (A(i.app))
|
|
2921
|
-
return Promise.reject(
|
|
2926
|
+
return Promise.reject(H(i));
|
|
2922
2927
|
const r = "reauthenticate";
|
|
2923
2928
|
try {
|
|
2924
2929
|
const s = await ie(n, Kt(i, r, e, n), t);
|
|
@@ -2968,7 +2973,7 @@ async function Hi(n, e, t = !1) {
|
|
|
2968
2973
|
*/
|
|
2969
2974
|
async function ji(n, e, t = !1) {
|
|
2970
2975
|
if (A(n.app))
|
|
2971
|
-
return Promise.reject(
|
|
2976
|
+
return Promise.reject(H(n));
|
|
2972
2977
|
const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
|
|
2973
2978
|
return t || await n._updateCurrentUser(s.user), s;
|
|
2974
2979
|
}
|
|
@@ -3007,16 +3012,16 @@ async function Wi(n, e) {
|
|
|
3007
3012
|
* See the License for the specific language governing permissions and
|
|
3008
3013
|
* limitations under the License.
|
|
3009
3014
|
*/
|
|
3010
|
-
async function
|
|
3015
|
+
async function Bi(n, e) {
|
|
3011
3016
|
if (A(n.app))
|
|
3012
|
-
return Promise.reject(
|
|
3017
|
+
return Promise.reject(H(n));
|
|
3013
3018
|
const t = be(n), i = await Wi(t, {
|
|
3014
3019
|
token: e,
|
|
3015
3020
|
returnSecureToken: !0
|
|
3016
3021
|
}), r = await G._fromIdTokenResponse(t, "signIn", i);
|
|
3017
3022
|
return await t._updateCurrentUser(r.user), r;
|
|
3018
3023
|
}
|
|
3019
|
-
function
|
|
3024
|
+
function Gi(n, e, t, i) {
|
|
3020
3025
|
return Y(n).onIdTokenChanged(e, t, i);
|
|
3021
3026
|
}
|
|
3022
3027
|
function zi(n, e, t) {
|
|
@@ -3082,7 +3087,7 @@ class Jt {
|
|
|
3082
3087
|
*/
|
|
3083
3088
|
function qi() {
|
|
3084
3089
|
const n = w();
|
|
3085
|
-
return
|
|
3090
|
+
return Be(n) || ke(n);
|
|
3086
3091
|
}
|
|
3087
3092
|
const Ki = 1e3, Ji = 10;
|
|
3088
3093
|
class Yt extends Jt {
|
|
@@ -4059,7 +4064,7 @@ function Ir(n) {
|
|
|
4059
4064
|
}
|
|
4060
4065
|
async function yr(n, e, t = !1) {
|
|
4061
4066
|
if (A(n.app))
|
|
4062
|
-
return Promise.reject(
|
|
4067
|
+
return Promise.reject(H(n));
|
|
4063
4068
|
const i = be(n), r = lr(i, e), o = await new mr(i, r, t).execute();
|
|
4064
4069
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4065
4070
|
}
|
|
@@ -4381,7 +4386,7 @@ class pt {
|
|
|
4381
4386
|
}
|
|
4382
4387
|
}
|
|
4383
4388
|
}
|
|
4384
|
-
function
|
|
4389
|
+
function Br(n, e, t, i = $r, r = Hr) {
|
|
4385
4390
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4386
4391
|
let c = "";
|
|
4387
4392
|
const a = Object.assign(Object.assign({}, Vr), {
|
|
@@ -4393,7 +4398,7 @@ function Gr(n, e, t, i = $r, r = Hr) {
|
|
|
4393
4398
|
t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Wr, a.scrollbars = "yes");
|
|
4394
4399
|
const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
|
|
4395
4400
|
if (Ti(l) && c !== "_self")
|
|
4396
|
-
return
|
|
4401
|
+
return Gr(e || "", c), new pt(null);
|
|
4397
4402
|
const m = window.open(e || "", c, d);
|
|
4398
4403
|
u(
|
|
4399
4404
|
m,
|
|
@@ -4407,7 +4412,7 @@ function Gr(n, e, t, i = $r, r = Hr) {
|
|
|
4407
4412
|
}
|
|
4408
4413
|
return new pt(m);
|
|
4409
4414
|
}
|
|
4410
|
-
function
|
|
4415
|
+
function Gr(n, e) {
|
|
4411
4416
|
const t = document.createElement("a");
|
|
4412
4417
|
t.href = n, t.target = e;
|
|
4413
4418
|
const i = document.createEvent("MouseEvent");
|
|
@@ -4496,7 +4501,7 @@ class Yr {
|
|
|
4496
4501
|
var s;
|
|
4497
4502
|
L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4498
4503
|
const o = await mt(e, t, i, Me(), r);
|
|
4499
|
-
return
|
|
4504
|
+
return Br(e, o, ze());
|
|
4500
4505
|
}
|
|
4501
4506
|
async _openRedirect(e, t, i, r) {
|
|
4502
4507
|
await this._originValidation(e);
|
|
@@ -4543,7 +4548,7 @@ class Yr {
|
|
|
4543
4548
|
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Rr(e)), this.originValidationPromises[t];
|
|
4544
4549
|
}
|
|
4545
4550
|
get _shouldInitProactively() {
|
|
4546
|
-
return Wt() ||
|
|
4551
|
+
return Wt() || Be() || ke();
|
|
4547
4552
|
}
|
|
4548
4553
|
}
|
|
4549
4554
|
const Xr = Yr;
|
|
@@ -4644,7 +4649,7 @@ function es(n) {
|
|
|
4644
4649
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4645
4650
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4646
4651
|
apiScheme: "https",
|
|
4647
|
-
sdkClientVersion:
|
|
4652
|
+
sdkClientVersion: Bt(n)
|
|
4648
4653
|
}, l = new Pi(i, r, s, a);
|
|
4649
4654
|
return Ui(l, t), l;
|
|
4650
4655
|
},
|
|
@@ -4720,7 +4725,7 @@ function rs(n = An()) {
|
|
|
4720
4725
|
const s = new URL(i, location.origin);
|
|
4721
4726
|
if (location.origin === s.origin) {
|
|
4722
4727
|
const o = is(s.toString());
|
|
4723
|
-
zi(t, o, () => o(t.currentUser)),
|
|
4728
|
+
zi(t, o, () => o(t.currentUser)), Gi(t, (c) => o(c));
|
|
4724
4729
|
}
|
|
4725
4730
|
}
|
|
4726
4731
|
const r = Rn("auth");
|
|
@@ -4768,7 +4773,7 @@ const cs = {
|
|
|
4768
4773
|
return;
|
|
4769
4774
|
}
|
|
4770
4775
|
const p = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
|
|
4771
|
-
await
|
|
4776
|
+
await Bi(T, I), Un(p), console.log("initFirebase", p);
|
|
4772
4777
|
}
|
|
4773
4778
|
const _ = async () => {
|
|
4774
4779
|
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
|
|
@@ -4784,10 +4789,10 @@ const cs = {
|
|
|
4784
4789
|
async (p, I) => {
|
|
4785
4790
|
console.log("Current business changed"), p != null && p._id != I._id && (console.log("forceRerender when business changes", p, I), _());
|
|
4786
4791
|
}
|
|
4787
|
-
), (p, I) => (
|
|
4788
|
-
g(d) && g(m) === "v2" ? (
|
|
4789
|
-
g(d) && g(m) === "v2" && g(c) ? (
|
|
4790
|
-
g(d) && g(m) !== "v2" ? (
|
|
4792
|
+
), (p, I) => (W(), me(It, null, [
|
|
4793
|
+
g(d) && g(m) === "v2" ? (W(), Oe(g(hn), { key: 0 })) : Pe("", !0),
|
|
4794
|
+
g(d) && g(m) === "v2" && g(c) ? (W(), Oe(ii, { key: 1 })) : Pe("", !0),
|
|
4795
|
+
g(d) && g(m) !== "v2" ? (W(), me("div", cs, [
|
|
4791
4796
|
S(wn, {
|
|
4792
4797
|
json: { url: g(h) }
|
|
4793
4798
|
}, null, 8, ["json"]),
|