@feedmepos/mf-connect 0.1.125-dev → 0.1.125-prod
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-lOnYYWzx.js → App-VvS6HIoz.js} +216 -224
- package/dist/{Bin-Dk0rAESN.js → Bin-dVF9Q1iu.js} +8 -8
- package/dist/{Broadcast-BBNpuceo.js → Broadcast-BIZbCshz.js} +21 -22
- package/dist/{CampaignAnalytic-BgROt0Yu.js → CampaignAnalytic-Ci8Ryoig.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CMgvX7Qs.js} +9 -8
- package/dist/{Card-fSEJaQmL.js → Card-CZkmyXaw.js} +22 -22
- package/dist/{Collections-DVM1dOOo.js → Collections-Inv8osLz.js} +185 -197
- package/dist/{Credit-CNDYRDiK.js → Credit-C0sAkt2c.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BiJ_wHig.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B28ds81U.js +3493 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js → EffectSheet.vue_vue_type_style_index_0_lang-BU1c2K1g.js} +33 -33
- package/dist/{Experience-Bqfx1Gjq.js → Experience-BNEfKjkq.js} +31 -32
- package/dist/{FileSaver.min-B4Jv2-PR.js → FileSaver.min-C5THVA6m.js} +1 -1
- package/dist/{Game-DmbJYYaC.js → Game-S9z8ZBF3.js} +18 -19
- package/dist/{GiftCardSetup-DHxDI5hU.js → GiftCardSetup-nVMJLp50.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DC2QB9kR.js} +7 -7
- package/dist/{Goals-B-3PoUlx.js → Goals-Do6Z0FfW.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js → ImageInput.vue_vue_type_script_setup_true_lang-CFb4EUQ5.js} +1 -1
- package/dist/{Index-vfYiu7G1.js → Index-CLVDmWRo.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js → LocationPicker.vue_vue_type_script_setup_true_lang-CZwKWjn6.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CGPZUYnY.js} +1 -1
- package/dist/{LoyaltyDashboard-CHEIpAHw.js → LoyaltyDashboard-B_HpEQdz.js} +15 -15
- package/dist/{MainLayout-Cf1lEoHL.js → MainLayout-uQfsgnnu.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js → MainLayout.vue_vue_type_script_setup_true_lang-DNPmnCA8.js} +3 -3
- package/dist/{Marketing-BBF8mHSo.js → Marketing-DPWybdMq.js} +4 -4
- package/dist/{MarketingMaterialEdit-COTHaH08.js → MarketingMaterialEdit-BfBgdPyz.js} +211 -214
- package/dist/{Member-BEyxcsNI.js → Member-Bkt3UPXA.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-EIc8nFZ0.js} +47 -39
- package/dist/{MemberImportHistory-zs8VJsoI.js → MemberImportHistory-DbzrfaI6.js} +7 -7
- package/dist/{MemberList-2-qKmm5p.js → MemberList-CAxUgRRp.js} +105 -103
- package/dist/{MemberTransactions-DOsMBs30.js → MemberTransactions-DDGkVcHw.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js → MessageInput.vue_vue_type_script_setup_true_lang-C2D5J4Ja.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-2f1SFptj.js} +1 -1
- package/dist/{Mission-Bo7tuR13.js → Mission-CTa5syv8.js} +21 -22
- package/dist/{Overview-BrGVMqE1.js → Overview-CD6Q9DJm.js} +20 -20
- package/dist/{Overview-CnoidK6U.js → Overview-DLXj9lo5.js} +144 -145
- package/dist/{Point-DJ2-HEmx.js → Point-ktWnL8q5.js} +21 -22
- package/dist/{Promotion-D7Q3EY3d.js → Promotion-hqaOxx8q.js} +131 -137
- package/dist/{Queue-CLXhXQeU.js → Queue-BE-fU8IM.js} +45 -45
- package/dist/{Record-CCF7K-pJ.js → Record-BEFt0lae.js} +9 -9
- package/dist/{Review-BZH_tGDe.js → Review-DcLFxegb.js} +2 -2
- package/dist/ReviewFacebookCallback-6BapqO6b.js +238 -0
- package/dist/{ReviewGoogleCallback-eHLJko2f.js → ReviewGoogleCallback-CQ1awmJH.js} +5 -5
- package/dist/{Reward-ea05o2qi.js → Reward-eZLQ_qzv.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js → RewardGroup.vue_vue_type_script_setup_true_lang-DT4cU2lr.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CdWm80id.js +1884 -0
- package/dist/{Segment-z3BAGTqr.js → Segment-C1Xbqlcv.js} +306 -303
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C_1xj3Cl.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DwejRzlR.js} +4 -4
- package/dist/{Setting-D0nKTgej.js → Setting-Cg21mqEc.js} +17 -17
- package/dist/{SettingAdvertisements-BUGsMAdi.js → SettingAdvertisements-CA6x_w-6.js} +12 -12
- package/dist/Settings-CbrC5bN2.js +179 -0
- package/dist/{Store-CbhAyr1j.js → Store-CFDsun8N.js} +28 -28
- package/dist/{StoreRewards-DHt64JEN.js → StoreRewards-BhURDAsS.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JkpE5XsA.js} +24 -24
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DzMfetDA.js +142 -0
- package/dist/{Tier-CH5DwMYW.js → Tier-B4iofOYH.js} +687 -2582
- package/dist/{Title-DNLw_rOp.js → Title-3YNx77l4.js} +94 -95
- package/dist/{Transaction-DCuU6B7G.js → Transaction-CX9SxMEG.js} +2 -2
- package/dist/{Upselling-DBsfEEvV.js → Upselling-CznVPMJC.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BZVdb3An.js} +26 -26
- package/dist/{Voucher-BVztDyI0.js → Voucher-7Hl1LPrh.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dFJXQsFv.js} +12 -12
- package/dist/{WhatsappAccount-CobyTNkp.js → WhatsappAccount-DQbkWBel.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CvqJzTXs.js} +1 -1
- package/dist/{WhatsappBot-xc4QD061.js → WhatsappBot-B0nZTeT7.js} +6 -6
- package/dist/{WhatsappBotLogs-eiDWJkN7.js → WhatsappBotLogs-DujpGQWa.js} +6 -6
- package/dist/{WhatsappBotSettings-D4cMFn3z.js → WhatsappBotSettings-CfhMycMW.js} +4 -4
- package/dist/{WhatsappLayout-C8DejCWo.js → WhatsappLayout-b1gwbBm0.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DiQnP4cp.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js → ZodTextField.vue_vue_type_script_setup_true_lang-Cidk_OlM.js} +2 -2
- package/dist/{app-Bik4hlr7.js → app-C5LDuXmt.js} +3517 -4271
- package/dist/app.js +3 -4
- package/dist/{base.export-BRw8QzdM.js → base.export-BBrPA7Jg.js} +2 -2
- package/dist/{business-Dv2S3X12.js → business-ClZ-GkSj.js} +1 -1
- package/dist/{campaign-witQNfmZ.js → campaign-B-h5N3HR.js} +94 -121
- package/dist/{campaign-CNDBsfeQ.js → campaign-DefEj7jV.js} +25 -31
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-C5ZXEU8C.js +776 -0
- package/dist/{collection.fn-C0Dx5_1j.js → collection.fn-DZ0ViZdo.js} +2 -2
- package/dist/{currency-lP50Csky.js → currency-C0Qn4nj3.js} +1 -1
- package/dist/{effect-6bi20cxS.js → effect-CJHdpc35.js} +1 -1
- package/dist/{email-addresses-BmujKG-l.js → email-addresses-CipYiyL4.js} +2 -2
- package/dist/{feature-flag-DdxBiP1p.js → feature-flag-BBsHJnnj.js} +84 -84
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DSmzzBjW.js → helper-Cn8vgyK3.js} +1 -1
- package/dist/{index-2JiR1s6M.js → index-0Ub4nEKy.js} +1 -1
- package/dist/{index-CRd8uD-d.js → index-B2r_X6DR.js} +1 -1
- package/dist/{index-DGctCMca.js → index-BAvmo8cc.js} +23 -23
- package/dist/{index-CFhazRum.js → index-BREObqqd.js} +1242 -1314
- package/dist/{index-Cei8qPkg.js → index-BcjArc8W.js} +234 -380
- package/dist/{index-83SeIfhc.js → index-BcwGxZje.js} +251 -608
- package/dist/{index-BYlnybS9.js → index-BkXjF7ZI.js} +2 -2
- package/dist/{index-BNdhRCyN.js → index-BzLz01zb.js} +4 -4
- package/dist/{index-CEscBR6G.js → index-C5o2Pc_f.js} +2613 -2699
- package/dist/{index-DMT5xoCz.js → index-CWs0a5Bx.js} +3 -3
- package/dist/{index-D-Ln1G1Y.js → index-CZ3CQEXM.js} +1 -1
- package/dist/{index-DGz2Y25B.js → index-CazcZ2A4.js} +2 -2
- package/dist/{index-CCVnmv0l.js → index-DBqf8mMi.js} +6 -19
- package/dist/{index-CdQGmMRo.js → index-DKg5PbUy.js} +2 -2
- package/dist/{index-CH1MpmvS.js → index-DLKFoHdk.js} +8 -8
- package/dist/{index-B0Ddw1na.js → index-DYMRcL11.js} +197 -197
- package/dist/{index-373LDTQ7.js → index-Wm89O5a0.js} +1 -1
- package/dist/{index-BTud0ICl.js → index-auS6xhgf.js} +1 -1
- package/dist/{index-DjlmY7Od.js → index-sntP2S4R.js} +7 -7
- package/dist/{index-BD3HIAoL.js → index-xn_PXhGL.js} +1 -1
- package/dist/{index.esm2017-BcULj0z4.js → index.esm2017-ePnKsRWd.js} +57 -57
- package/dist/{loading-DmCJ1FiL.js → loading-DyfvdnK3.js} +1 -1
- package/dist/{lodash-FEhiisF1.js → lodash-OSOEHuHV.js} +1 -1
- package/dist/{member-import-BLxPVKon.js → member-import-DyKhgdl1.js} +1 -1
- package/dist/{membership-Dq3LSd35.js → membership-E97L9c1m.js} +2 -2
- package/dist/{money-D2RIG9zm.js → money-BizInVDg.js} +1 -1
- package/dist/{number-D87ngEVu.js → number-BLjNuAXB.js} +1 -1
- package/dist/objectid-CfbfYlrU.js +145 -0
- package/dist/{onboarding-YlSAcar0.js → onboarding-BVOkoMd2.js} +25 -25
- package/dist/{onboardingSetup-qgS6ktSi.js → onboardingSetup-WWZ5x3uC.js} +2 -2
- package/dist/{plugins-B3B_2EiB.js → plugins-BFwgESNo.js} +3 -3
- package/dist/{reward-BtEe_1ZU.js → reward-BOldgYfT.js} +1 -1
- package/dist/{rule-PmdBF8Cb.js → rule-CffnxtCw.js} +492 -572
- package/dist/rule-builder-dOQCz1XZ.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-CbHOOFuo.js +275 -0
- package/dist/{timezone-DPnmvzUK.js → timezone-CDbzzKWe.js} +1 -1
- package/dist/{transaction.fn-BavSYDYI.js → transaction.fn-CM89jnhJ.js} +2 -2
- package/dist/{trigger-CsIScoNI.js → trigger-BUKAiVxy.js} +9 -9
- package/dist/{useMarketingMaterialActions-CHBfA7iR.js → useMarketingMaterialActions-D-AWVN4e.js} +4 -4
- package/dist/{usePagination-DXPBbII4.js → usePagination-3kKtIKVu.js} +1 -1
- package/dist/{user-B8js0aIx.js → user-CHb8XZ5i.js} +1 -1
- package/dist/vue-i18n-CqhxVhhE.js +2365 -0
- package/dist/{xlsx-CYugHPG9.js → xlsx-BR-cAoRJ.js} +1 -1
- package/dist/{zod-BEFViLGC.js → zod-dX5GDNHW.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-C5aMzrhF.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js +0 -4439
- package/dist/Grab-BRfVvqAr.js +0 -301
- package/dist/ReviewFacebookCallback-Bs-oiDMC.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js +0 -1923
- package/dist/Settings-C2loJXla.js +0 -286
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js +0 -7007
- package/dist/campaign.fn-Dr4w5BrO.js +0 -776
- package/dist/duplicateCampaign-BfLxdQWg.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-CuPXVpKE.js +0 -145
- package/dist/template-D6wO9_aV.js +0 -227
- package/dist/vue-i18n-R6DAeTzc.js +0 -2365
|
@@ -1,141 +1,133 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as
|
|
1
|
+
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as B, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as P, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Ae, 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 { u as gn, l as _n } from "./feature-flag-
|
|
7
|
-
import "./index-
|
|
8
|
-
import { components as
|
|
9
|
-
import { u as Tt } from "./vue-i18n-
|
|
10
|
-
import { m as yn } from "./index-
|
|
11
|
-
import { C as Xe } from "./timezone-
|
|
12
|
-
import { u as wn } from "./onboarding-
|
|
13
|
-
import { R as
|
|
14
|
-
import { J as
|
|
15
|
-
import { r as Le, L as
|
|
5
|
+
import { u as mn } from "./business-ClZ-GkSj.js";
|
|
6
|
+
import { u as gn, l as _n } from "./feature-flag-BBsHJnnj.js";
|
|
7
|
+
import "./index-0Ub4nEKy.js";
|
|
8
|
+
import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Tt } from "./vue-i18n-CqhxVhhE.js";
|
|
10
|
+
import { m as yn } from "./index-Wm89O5a0.js";
|
|
11
|
+
import { C as Xe } from "./timezone-CDbzzKWe.js";
|
|
12
|
+
import { u as wn } from "./onboarding-BVOkoMd2.js";
|
|
13
|
+
import { R as p, g as Tn, A as kn, a as Qe } from "./app-C5LDuXmt.js";
|
|
14
|
+
import { J as bn } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
+
import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as Pn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Cn, j as Nn, k as Et, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-ePnKsRWd.js";
|
|
16
16
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
17
|
-
import { S as tt, c as Vn } from "./index-
|
|
18
|
-
const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" },
|
|
17
|
+
import { S as tt, c as Vn } from "./index-sntP2S4R.js";
|
|
18
|
+
const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, jn = /* @__PURE__ */ xe({
|
|
19
19
|
__name: "NavigationTab",
|
|
20
20
|
setup(n) {
|
|
21
21
|
const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
|
|
22
22
|
{
|
|
23
23
|
label: e("connect.navigation.analytic"),
|
|
24
|
-
value:
|
|
24
|
+
value: p["$connect-ANALYTIC"]
|
|
25
25
|
},
|
|
26
|
-
{ label: "Upselling", value:
|
|
26
|
+
{ label: "Upselling", value: p["$connect-UPSELLING"] },
|
|
27
27
|
{
|
|
28
28
|
label: e("connect.navigation.campaign"),
|
|
29
|
-
value:
|
|
29
|
+
value: p["$connect-CAMPAIGN"],
|
|
30
30
|
children: [
|
|
31
31
|
{
|
|
32
32
|
label: e("connect.navigation.promotion"),
|
|
33
|
-
value:
|
|
33
|
+
value: p["$connect-CAMPAIGN_PROMOTION"]
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
label: e("connect.navigation.voucher"),
|
|
37
|
-
value:
|
|
37
|
+
value: p["$connect-CAMPAIGN_VOUCHER"]
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
label: e("connect.navigation.broadcast"),
|
|
41
|
-
value:
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: e("connect.navigation.grab"),
|
|
45
|
-
value: f["$connect-CAMPAIGN_GRAB"]
|
|
41
|
+
value: p["$connect-CAMPAIGN_BROADCAST"]
|
|
46
42
|
}
|
|
47
43
|
]
|
|
48
44
|
},
|
|
49
45
|
{
|
|
50
46
|
label: e("connect.navigation.program"),
|
|
51
|
-
value:
|
|
47
|
+
value: p["$connect-PROGRAM"],
|
|
52
48
|
children: [
|
|
53
49
|
{
|
|
54
50
|
label: e("connect.navigation.tier"),
|
|
55
|
-
value:
|
|
51
|
+
value: p["$connect-PROGRAM_TIER"]
|
|
56
52
|
},
|
|
57
53
|
{
|
|
58
54
|
label: e("connect.navigation.title"),
|
|
59
|
-
value:
|
|
55
|
+
value: p["$connect-PROGRAM_TITLE"]
|
|
60
56
|
},
|
|
61
57
|
{
|
|
62
58
|
label: e("connect.navigation.experience"),
|
|
63
|
-
value:
|
|
59
|
+
value: p["$connect-PROGRAM_EXPERIENCE"]
|
|
64
60
|
},
|
|
65
61
|
{
|
|
66
62
|
label: e("connect.navigation.point"),
|
|
67
|
-
value:
|
|
68
|
-
badge: () => U(
|
|
63
|
+
value: p["$connect-PROGRAM_POINT"],
|
|
64
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
69
65
|
},
|
|
70
66
|
{
|
|
71
67
|
label: e("connect.navigation.credit"),
|
|
72
|
-
value:
|
|
68
|
+
value: p["$connect-PROGRAM_CREDIT"]
|
|
73
69
|
},
|
|
74
70
|
{
|
|
75
71
|
label: e("connect.navigation.game"),
|
|
76
|
-
value:
|
|
77
|
-
badge: () => U(
|
|
72
|
+
value: p["$connect-PROGRAM_GAME"],
|
|
73
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
78
74
|
},
|
|
79
75
|
{
|
|
80
76
|
label: "Mission",
|
|
81
|
-
value:
|
|
77
|
+
value: p["$connect-PROGRAM_MISSION"]
|
|
82
78
|
}
|
|
83
79
|
]
|
|
84
80
|
},
|
|
85
81
|
{
|
|
86
82
|
label: e("connect.navigation.loyalty"),
|
|
87
|
-
value:
|
|
83
|
+
value: p["$connect-LOYALTY"],
|
|
88
84
|
children: [
|
|
89
85
|
{
|
|
90
86
|
label: e("connect.navigation.member"),
|
|
91
|
-
value:
|
|
87
|
+
value: p["$connect-LOYALTY_MEMBER_LIST"]
|
|
92
88
|
},
|
|
93
89
|
{
|
|
94
90
|
label: e("connect.navigation.segments"),
|
|
95
|
-
value:
|
|
96
|
-
badge: () => U(
|
|
91
|
+
value: p["$connect-LOYALTY_SEGMENT"],
|
|
92
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
97
93
|
},
|
|
98
94
|
{
|
|
99
95
|
label: e("connect.navigation.card"),
|
|
100
|
-
value:
|
|
101
|
-
badge: () => U(
|
|
96
|
+
value: p["$connect-LOYALTY_CARD"],
|
|
97
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
102
98
|
}
|
|
103
99
|
]
|
|
104
100
|
},
|
|
105
101
|
{
|
|
106
102
|
label: e("connect.navigation.whatsappBot"),
|
|
107
|
-
value:
|
|
108
|
-
badge: () => U(
|
|
103
|
+
value: p["$connect-WHATSAPP"],
|
|
104
|
+
badge: () => U(j.FmPill, { variant: "beta" })
|
|
109
105
|
},
|
|
110
106
|
{
|
|
111
107
|
label: e("connect.navigation.referral"),
|
|
112
|
-
value:
|
|
113
|
-
badge: () => U(
|
|
108
|
+
value: p["$connect-REFERRAL"],
|
|
109
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
114
110
|
},
|
|
115
111
|
{
|
|
116
112
|
label: e("connect.navigation.store"),
|
|
117
|
-
value:
|
|
113
|
+
value: p["$connect-STORE"]
|
|
118
114
|
},
|
|
119
115
|
{
|
|
120
116
|
label: e("connect.navigation.transaction"),
|
|
121
|
-
value:
|
|
117
|
+
value: p["$connect-TRANSACTION"]
|
|
122
118
|
},
|
|
123
119
|
{
|
|
124
120
|
label: e("connect.navigation.marketingMaterials"),
|
|
125
|
-
value:
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: e("connect.navigation.auditLogs"),
|
|
129
|
-
value: f["$connect-AUDIT_LOGS"]
|
|
121
|
+
value: p["$connect-MARKETING"]
|
|
130
122
|
},
|
|
131
123
|
{
|
|
132
124
|
label: e("connect.navigation.review"),
|
|
133
|
-
value:
|
|
125
|
+
value: p["$connect-REVIEW"]
|
|
134
126
|
},
|
|
135
127
|
{
|
|
136
128
|
label: e("connect.navigation.goals"),
|
|
137
|
-
value:
|
|
138
|
-
badge: () => i.goalsRemaining > 0 ? U(
|
|
129
|
+
value: p["$connect-GOALS"],
|
|
130
|
+
badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
|
|
139
131
|
variant: "numeric",
|
|
140
132
|
inline: !0,
|
|
141
133
|
value: i.goalsRemaining
|
|
@@ -143,47 +135,47 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
143
135
|
},
|
|
144
136
|
{
|
|
145
137
|
label: e("connect.navigation.setting"),
|
|
146
|
-
value:
|
|
138
|
+
value: p["$connect-SETTING"]
|
|
147
139
|
},
|
|
148
140
|
{
|
|
149
141
|
label: e("connect.navigation.bin"),
|
|
150
|
-
value:
|
|
142
|
+
value: p["$connect-BIN"]
|
|
151
143
|
}
|
|
152
|
-
], c =
|
|
144
|
+
], c = B(
|
|
153
145
|
() => o.filter(
|
|
154
|
-
(
|
|
146
|
+
(f) => (f.value !== p["$connect-WHATSAPP"] || r() === "on") && (f.value !== p["$connect-UPSELLING"] || Tn() !== void 0)
|
|
155
147
|
)
|
|
156
|
-
), a = yt(), l = wt(), d = o.reduce((
|
|
157
|
-
const
|
|
158
|
-
return console.log(`[MF] Timezone set to: ${Xe[
|
|
148
|
+
), a = yt(), l = wt(), d = o.reduce((f, w) => [...(w.children ?? []).map((h) => h.value), ...f, w.value], []), m = ge(), v = B(() => {
|
|
149
|
+
const f = m.currentCountry.value || "MY";
|
|
150
|
+
return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
|
|
159
151
|
});
|
|
160
152
|
ie(
|
|
161
153
|
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
162
154
|
// whose identity never changes, so watching it directly fired once via
|
|
163
155
|
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
164
156
|
() => l.matched,
|
|
165
|
-
(
|
|
166
|
-
const h =
|
|
157
|
+
(f) => {
|
|
158
|
+
const h = f.map((_) => _.name).reverse().find((_) => d.includes(_));
|
|
167
159
|
h && (s.value = h);
|
|
168
160
|
},
|
|
169
161
|
{ immediate: !0 }
|
|
170
162
|
), ie(
|
|
171
163
|
[() => {
|
|
172
|
-
var
|
|
173
|
-
return (
|
|
164
|
+
var f;
|
|
165
|
+
return (f = m.currentBusiness.value) == null ? void 0 : f._id;
|
|
174
166
|
}, () => l.name, t],
|
|
175
|
-
([
|
|
176
|
-
|
|
167
|
+
([f]) => {
|
|
168
|
+
f && i.read(t.value, f);
|
|
177
169
|
},
|
|
178
170
|
{ immediate: !0 }
|
|
179
171
|
);
|
|
180
|
-
async function y(
|
|
181
|
-
await a.push({ name:
|
|
172
|
+
async function y(f) {
|
|
173
|
+
await a.push({ name: f });
|
|
182
174
|
}
|
|
183
|
-
return (
|
|
175
|
+
return (f, w) => {
|
|
184
176
|
var _;
|
|
185
177
|
const h = ee("FmCollapsibleTabs");
|
|
186
|
-
return
|
|
178
|
+
return W(), me("div", $n, [
|
|
187
179
|
R(h, {
|
|
188
180
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
189
181
|
"model-value": (_ = g(s)) == null ? void 0 : _.toString(),
|
|
@@ -191,27 +183,27 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
191
183
|
"onUpdate:modelValue": y
|
|
192
184
|
}, null, 8, ["model-value", "items"]),
|
|
193
185
|
I("div", Hn, [
|
|
194
|
-
I("div", null, "Timezone: " +
|
|
195
|
-
I("div", null, "(UTC" +
|
|
186
|
+
I("div", null, "Timezone: " + P(g(v).split("/")[1].replace("_", " ")), 1),
|
|
187
|
+
I("div", null, "(UTC" + P(g(yn).tz(g(v)).format("Z")) + ")", 1)
|
|
196
188
|
])
|
|
197
189
|
]);
|
|
198
190
|
};
|
|
199
191
|
}
|
|
200
192
|
}), St = "feedme_connect_marketing_promo_hidden";
|
|
201
|
-
function
|
|
193
|
+
function Wn() {
|
|
202
194
|
try {
|
|
203
195
|
return localStorage.getItem(St) !== null;
|
|
204
196
|
} catch {
|
|
205
197
|
return !1;
|
|
206
198
|
}
|
|
207
199
|
}
|
|
208
|
-
function
|
|
200
|
+
function Bn() {
|
|
209
201
|
try {
|
|
210
202
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
211
203
|
} catch {
|
|
212
204
|
}
|
|
213
205
|
}
|
|
214
|
-
const
|
|
206
|
+
const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
|
|
215
207
|
__name: "AiMarketingPromoDialog",
|
|
216
208
|
setup(n) {
|
|
217
209
|
let e = !1;
|
|
@@ -219,9 +211,9 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
219
211
|
{ key: "completeContent", icon: "layers" },
|
|
220
212
|
{ key: "realContext", icon: "storefront" },
|
|
221
213
|
{ key: "socialFormat", icon: "aspect_ratio" }
|
|
222
|
-
], a =
|
|
223
|
-
var
|
|
224
|
-
const y = ((
|
|
214
|
+
], a = B(() => {
|
|
215
|
+
var f;
|
|
216
|
+
const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
|
|
225
217
|
return kn(
|
|
226
218
|
[
|
|
227
219
|
{
|
|
@@ -231,45 +223,45 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
231
223
|
],
|
|
232
224
|
y
|
|
233
225
|
).granted;
|
|
234
|
-
}), l =
|
|
226
|
+
}), l = B(
|
|
235
227
|
() => s.value === "MY" && a.value
|
|
236
228
|
);
|
|
237
229
|
let d = !1;
|
|
238
230
|
ie(
|
|
239
231
|
l,
|
|
240
232
|
(y) => {
|
|
241
|
-
d || !y || (d = !0, !(
|
|
233
|
+
d || !y || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
|
|
242
234
|
},
|
|
243
235
|
{ immediate: !0 }
|
|
244
236
|
);
|
|
245
237
|
async function m() {
|
|
246
|
-
o.value = !1, await i.push({ name:
|
|
238
|
+
o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
|
|
247
239
|
}
|
|
248
240
|
function v() {
|
|
249
|
-
|
|
241
|
+
Bn(), o.value = !1;
|
|
250
242
|
}
|
|
251
|
-
return (y,
|
|
252
|
-
const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"),
|
|
253
|
-
return
|
|
243
|
+
return (y, f) => {
|
|
244
|
+
const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), b = ee("FmDialog");
|
|
245
|
+
return W(), Oe(b, {
|
|
254
246
|
modelValue: o.value,
|
|
255
|
-
"onUpdate:modelValue":
|
|
247
|
+
"onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
|
|
256
248
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
257
249
|
"max-width": "min(860px, calc(100% - 48px))",
|
|
258
250
|
"max-height": "90vh",
|
|
259
251
|
"dismiss-away": ""
|
|
260
252
|
}, {
|
|
261
253
|
"dialog-header": Z(() => [
|
|
262
|
-
I("div",
|
|
254
|
+
I("div", Gn, [
|
|
263
255
|
I("div", zn, [
|
|
264
256
|
R(w, {
|
|
265
257
|
name: "auto_awesome",
|
|
266
258
|
size: "sm",
|
|
267
259
|
color: "primary"
|
|
268
260
|
}),
|
|
269
|
-
I("span", qn,
|
|
261
|
+
I("span", qn, P(g(t)("connect.marketing.whatsNew.badge")), 1)
|
|
270
262
|
]),
|
|
271
|
-
I("h1", Kn,
|
|
272
|
-
I("p", Jn,
|
|
263
|
+
I("h1", Kn, P(g(t)("connect.marketing.whatsNew.title")), 1),
|
|
264
|
+
I("p", Jn, P(g(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
273
265
|
])
|
|
274
266
|
]),
|
|
275
267
|
"dialog-footer": Z(() => [
|
|
@@ -289,13 +281,13 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
289
281
|
onClick: v
|
|
290
282
|
}, null, 8, ["label"])
|
|
291
283
|
]),
|
|
292
|
-
I("div", si,
|
|
284
|
+
I("div", si, P(g(t)("connect.marketing.whatsNew.footnote")), 1)
|
|
293
285
|
])
|
|
294
286
|
]),
|
|
295
287
|
default: Z(() => [
|
|
296
288
|
I("div", Yn, [
|
|
297
289
|
I("div", Xn, [
|
|
298
|
-
(
|
|
290
|
+
(W(), me(It, null, ln(c, (T) => R(h, {
|
|
299
291
|
key: T.key,
|
|
300
292
|
variant: "outlined",
|
|
301
293
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
@@ -308,8 +300,8 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
308
300
|
color: "primary"
|
|
309
301
|
}, null, 8, ["name"])
|
|
310
302
|
]),
|
|
311
|
-
I("div", Zn,
|
|
312
|
-
I("div", ei,
|
|
303
|
+
I("div", Zn, P(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
|
|
304
|
+
I("div", ei, P(g(t)(
|
|
313
305
|
`connect.marketing.whatsNew.benefits.${T.key}.description`
|
|
314
306
|
)), 1)
|
|
315
307
|
]),
|
|
@@ -328,7 +320,7 @@ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
328
320
|
color: "primary"
|
|
329
321
|
})
|
|
330
322
|
]),
|
|
331
|
-
I("p", ni,
|
|
323
|
+
I("p", ni, P(g(t)("connect.marketing.whatsNew.callout")), 1)
|
|
332
324
|
]),
|
|
333
325
|
_: 1
|
|
334
326
|
})
|
|
@@ -362,7 +354,7 @@ function Rt() {
|
|
|
362
354
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
363
355
|
};
|
|
364
356
|
}
|
|
365
|
-
const li = Rt,
|
|
357
|
+
const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
|
|
366
358
|
/**
|
|
367
359
|
* @license
|
|
368
360
|
* Copyright 2020 Google LLC
|
|
@@ -379,12 +371,12 @@ const li = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
|
379
371
|
* See the License for the specific language governing permissions and
|
|
380
372
|
* limitations under the License.
|
|
381
373
|
*/
|
|
382
|
-
const _e = new
|
|
374
|
+
const _e = new En("@firebase/auth");
|
|
383
375
|
function ui(n, ...e) {
|
|
384
|
-
_e.logLevel <=
|
|
376
|
+
_e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
|
|
385
377
|
}
|
|
386
378
|
function de(n, ...e) {
|
|
387
|
-
_e.logLevel <=
|
|
379
|
+
_e.logLevel <= Et.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
|
|
388
380
|
}
|
|
389
381
|
/**
|
|
390
382
|
* @license
|
|
@@ -405,24 +397,24 @@ function de(n, ...e) {
|
|
|
405
397
|
function L(n, ...e) {
|
|
406
398
|
throw He(n, ...e);
|
|
407
399
|
}
|
|
408
|
-
function
|
|
400
|
+
function E(n, ...e) {
|
|
409
401
|
return He(n, ...e);
|
|
410
402
|
}
|
|
411
|
-
function
|
|
403
|
+
function At(n, e, t) {
|
|
412
404
|
const i = Object.assign(Object.assign({}, li()), { [e]: t });
|
|
413
405
|
return new Fe("auth", "Firebase", i).create(e, {
|
|
414
406
|
appName: n.name
|
|
415
407
|
});
|
|
416
408
|
}
|
|
417
409
|
function H(n) {
|
|
418
|
-
return
|
|
410
|
+
return At(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
419
411
|
}
|
|
420
412
|
function He(n, ...e) {
|
|
421
413
|
if (typeof n != "string") {
|
|
422
414
|
const t = e[0], i = [...e.slice(1)];
|
|
423
415
|
return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
|
|
424
416
|
}
|
|
425
|
-
return
|
|
417
|
+
return Pt.create(n, ...e);
|
|
426
418
|
}
|
|
427
419
|
function u(n, e, ...t) {
|
|
428
420
|
if (!n)
|
|
@@ -484,7 +476,7 @@ function hi() {
|
|
|
484
476
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
485
477
|
// installed which overwrites the native navigator.onLine value and
|
|
486
478
|
// defines navigator.connection.
|
|
487
|
-
(di() ||
|
|
479
|
+
(di() || Pn() || "connection" in navigator) ? navigator.onLine : !0;
|
|
488
480
|
}
|
|
489
481
|
function fi() {
|
|
490
482
|
if (typeof navigator > "u")
|
|
@@ -538,7 +530,7 @@ class ae {
|
|
|
538
530
|
* See the License for the specific language governing permissions and
|
|
539
531
|
* limitations under the License.
|
|
540
532
|
*/
|
|
541
|
-
function
|
|
533
|
+
function je(n, e) {
|
|
542
534
|
M(n.emulator, "Emulator should always be set here");
|
|
543
535
|
const { url: t } = n.emulator;
|
|
544
536
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
@@ -752,7 +744,7 @@ async function Nt(n, e, t) {
|
|
|
752
744
|
throw ue(n, "user-disabled", o);
|
|
753
745
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
754
746
|
if (l)
|
|
755
|
-
throw
|
|
747
|
+
throw At(n, d, l);
|
|
756
748
|
L(n, d);
|
|
757
749
|
}
|
|
758
750
|
} catch (r) {
|
|
@@ -769,12 +761,12 @@ async function Ot(n, e, t, i, r = {}) {
|
|
|
769
761
|
}
|
|
770
762
|
function Lt(n, e, t, i) {
|
|
771
763
|
const r = `${e}${t}?${i}`;
|
|
772
|
-
return n.config.emulator ?
|
|
764
|
+
return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
773
765
|
}
|
|
774
766
|
class gi {
|
|
775
767
|
constructor(e) {
|
|
776
768
|
this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
|
|
777
|
-
this.timer = setTimeout(() => i(
|
|
769
|
+
this.timer = setTimeout(() => i(E(
|
|
778
770
|
this.auth,
|
|
779
771
|
"network-request-failed"
|
|
780
772
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -790,7 +782,7 @@ function ue(n, e, t) {
|
|
|
790
782
|
appName: n.name
|
|
791
783
|
};
|
|
792
784
|
t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
|
|
793
|
-
const r =
|
|
785
|
+
const r = E(n, e, i);
|
|
794
786
|
return r.customData._tokenResponse = t, r;
|
|
795
787
|
}
|
|
796
788
|
/**
|
|
@@ -841,7 +833,7 @@ function ne(n) {
|
|
|
841
833
|
}
|
|
842
834
|
}
|
|
843
835
|
async function vi(n, e = !1) {
|
|
844
|
-
const t = X(n), i = await t.getIdToken(e), r =
|
|
836
|
+
const t = X(n), i = await t.getIdToken(e), r = We(i);
|
|
845
837
|
u(
|
|
846
838
|
r && r.exp && r.auth_time && r.iat,
|
|
847
839
|
t.auth,
|
|
@@ -862,7 +854,7 @@ async function vi(n, e = !1) {
|
|
|
862
854
|
function Ce(n) {
|
|
863
855
|
return Number(n) * 1e3;
|
|
864
856
|
}
|
|
865
|
-
function
|
|
857
|
+
function We(n) {
|
|
866
858
|
const [e, t, i] = n.split(".");
|
|
867
859
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
868
860
|
return de("JWT malformed, contained fewer than 3 sections"), null;
|
|
@@ -874,7 +866,7 @@ function je(n) {
|
|
|
874
866
|
}
|
|
875
867
|
}
|
|
876
868
|
function it(n) {
|
|
877
|
-
const e =
|
|
869
|
+
const e = We(n);
|
|
878
870
|
return u(
|
|
879
871
|
e,
|
|
880
872
|
"internal-error"
|
|
@@ -1110,7 +1102,7 @@ async function ki(n, e) {
|
|
|
1110
1102
|
refreshToken: t.refresh_token
|
|
1111
1103
|
};
|
|
1112
1104
|
}
|
|
1113
|
-
async function
|
|
1105
|
+
async function bi(n, e) {
|
|
1114
1106
|
return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
|
|
1115
1107
|
}
|
|
1116
1108
|
/**
|
|
@@ -1280,7 +1272,7 @@ class N {
|
|
|
1280
1272
|
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
|
|
1281
1273
|
}
|
|
1282
1274
|
async delete() {
|
|
1283
|
-
if (
|
|
1275
|
+
if (A(this.auth.app))
|
|
1284
1276
|
return Promise.reject(H(this.auth));
|
|
1285
1277
|
const e = await this.getIdToken();
|
|
1286
1278
|
return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
@@ -1311,7 +1303,7 @@ class N {
|
|
|
1311
1303
|
}
|
|
1312
1304
|
static _fromJSON(e, t) {
|
|
1313
1305
|
var i, r, s, o, c, a, l, d;
|
|
1314
|
-
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0,
|
|
1306
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1315
1307
|
u(
|
|
1316
1308
|
T && Ye,
|
|
1317
1309
|
e,
|
|
@@ -1334,22 +1326,22 @@ class N {
|
|
|
1334
1326
|
e,
|
|
1335
1327
|
"internal-error"
|
|
1336
1328
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1337
|
-
), D(y, e.name), D(
|
|
1338
|
-
const
|
|
1329
|
+
), D(y, e.name), D(f, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(b, e.name);
|
|
1330
|
+
const Pe = new N({
|
|
1339
1331
|
uid: T,
|
|
1340
1332
|
auth: e,
|
|
1341
1333
|
email: v,
|
|
1342
1334
|
emailVerified: Ke,
|
|
1343
1335
|
displayName: m,
|
|
1344
1336
|
isAnonymous: Je,
|
|
1345
|
-
photoURL:
|
|
1337
|
+
photoURL: f,
|
|
1346
1338
|
phoneNumber: y,
|
|
1347
1339
|
tenantId: w,
|
|
1348
1340
|
stsTokenManager: on,
|
|
1349
1341
|
createdAt: _,
|
|
1350
|
-
lastLoginAt:
|
|
1342
|
+
lastLoginAt: b
|
|
1351
1343
|
});
|
|
1352
|
-
return Re && Array.isArray(Re) && (
|
|
1344
|
+
return Re && Array.isArray(Re) && (Pe.providerData = Re.map((an) => Object.assign({}, an))), h && (Pe._redirectEventId = h), Pe;
|
|
1353
1345
|
}
|
|
1354
1346
|
/**
|
|
1355
1347
|
* Initialize a User from an idToken server response
|
|
@@ -1573,9 +1565,9 @@ function ot(n) {
|
|
|
1573
1565
|
return "Silk";
|
|
1574
1566
|
if (Ht(e))
|
|
1575
1567
|
return "Blackberry";
|
|
1576
|
-
if (
|
|
1568
|
+
if (jt(e))
|
|
1577
1569
|
return "Webos";
|
|
1578
|
-
if (
|
|
1570
|
+
if (Be(e))
|
|
1579
1571
|
return "Safari";
|
|
1580
1572
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1581
1573
|
return "Chrome";
|
|
@@ -1591,7 +1583,7 @@ function ot(n) {
|
|
|
1591
1583
|
function xt(n = k()) {
|
|
1592
1584
|
return /firefox\//i.test(n);
|
|
1593
1585
|
}
|
|
1594
|
-
function
|
|
1586
|
+
function Be(n = k()) {
|
|
1595
1587
|
const e = n.toLowerCase();
|
|
1596
1588
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1597
1589
|
}
|
|
@@ -1607,21 +1599,21 @@ function $t(n = k()) {
|
|
|
1607
1599
|
function Ht(n = k()) {
|
|
1608
1600
|
return /blackberry/i.test(n);
|
|
1609
1601
|
}
|
|
1610
|
-
function
|
|
1602
|
+
function jt(n = k()) {
|
|
1611
1603
|
return /webos/i.test(n);
|
|
1612
1604
|
}
|
|
1613
1605
|
function ke(n = k()) {
|
|
1614
1606
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1615
1607
|
}
|
|
1616
|
-
function
|
|
1608
|
+
function Ei(n = k()) {
|
|
1617
1609
|
var e;
|
|
1618
1610
|
return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1619
1611
|
}
|
|
1620
1612
|
function Si() {
|
|
1621
1613
|
return Mn() && document.documentMode === 10;
|
|
1622
1614
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return ke(n) || $t(n) ||
|
|
1615
|
+
function Wt(n = k()) {
|
|
1616
|
+
return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1625
1617
|
}
|
|
1626
1618
|
function Ri() {
|
|
1627
1619
|
try {
|
|
@@ -1646,7 +1638,7 @@ function Ri() {
|
|
|
1646
1638
|
* See the License for the specific language governing permissions and
|
|
1647
1639
|
* limitations under the License.
|
|
1648
1640
|
*/
|
|
1649
|
-
function
|
|
1641
|
+
function Bt(n, e = []) {
|
|
1650
1642
|
let t;
|
|
1651
1643
|
switch (n) {
|
|
1652
1644
|
case "Browser":
|
|
@@ -1677,7 +1669,7 @@ function Gt(n, e = []) {
|
|
|
1677
1669
|
* See the License for the specific language governing permissions and
|
|
1678
1670
|
* limitations under the License.
|
|
1679
1671
|
*/
|
|
1680
|
-
class
|
|
1672
|
+
class Pi {
|
|
1681
1673
|
constructor(e) {
|
|
1682
1674
|
this.auth = e, this.queue = [];
|
|
1683
1675
|
}
|
|
@@ -1732,7 +1724,7 @@ class Ai {
|
|
|
1732
1724
|
* See the License for the specific language governing permissions and
|
|
1733
1725
|
* limitations under the License.
|
|
1734
1726
|
*/
|
|
1735
|
-
async function
|
|
1727
|
+
async function Ai(n, e = {}) {
|
|
1736
1728
|
return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
|
|
1737
1729
|
}
|
|
1738
1730
|
/**
|
|
@@ -1841,7 +1833,7 @@ class Ni {
|
|
|
1841
1833
|
*/
|
|
1842
1834
|
class Oi {
|
|
1843
1835
|
constructor(e, t, i, r) {
|
|
1844
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new
|
|
1836
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Pi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Pt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
|
|
1845
1837
|
}
|
|
1846
1838
|
_initializeWithPersistence(e, t) {
|
|
1847
1839
|
return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -1885,7 +1877,7 @@ class Oi {
|
|
|
1885
1877
|
}
|
|
1886
1878
|
async initializeCurrentUser(e) {
|
|
1887
1879
|
var t;
|
|
1888
|
-
if (
|
|
1880
|
+
if (A(this.app)) {
|
|
1889
1881
|
const o = this.app.settings.authIdToken;
|
|
1890
1882
|
return o ? new Promise((c) => {
|
|
1891
1883
|
setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
|
|
@@ -1941,7 +1933,7 @@ class Oi {
|
|
|
1941
1933
|
this._deleted = !0;
|
|
1942
1934
|
}
|
|
1943
1935
|
async updateCurrentUser(e) {
|
|
1944
|
-
if (
|
|
1936
|
+
if (A(this.app))
|
|
1945
1937
|
return Promise.reject(H(this));
|
|
1946
1938
|
const t = e ? X(e) : null;
|
|
1947
1939
|
return t && u(
|
|
@@ -1963,14 +1955,14 @@ class Oi {
|
|
|
1963
1955
|
});
|
|
1964
1956
|
}
|
|
1965
1957
|
async signOut() {
|
|
1966
|
-
return
|
|
1958
|
+
return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
1967
1959
|
null,
|
|
1968
1960
|
/* skipBeforeStateCallbacks */
|
|
1969
1961
|
!0
|
|
1970
1962
|
));
|
|
1971
1963
|
}
|
|
1972
1964
|
setPersistence(e) {
|
|
1973
|
-
return
|
|
1965
|
+
return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
|
|
1974
1966
|
await this.assertedPersistence.setPersistence(O(e));
|
|
1975
1967
|
});
|
|
1976
1968
|
}
|
|
@@ -1986,7 +1978,7 @@ class Oi {
|
|
|
1986
1978
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
1987
1979
|
}
|
|
1988
1980
|
async _updatePasswordPolicy() {
|
|
1989
|
-
const e = await
|
|
1981
|
+
const e = await Ai(this), t = new Ni(e);
|
|
1990
1982
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
1991
1983
|
}
|
|
1992
1984
|
_getPersistence() {
|
|
@@ -2026,7 +2018,7 @@ class Oi {
|
|
|
2026
2018
|
token: e,
|
|
2027
2019
|
idToken: t
|
|
2028
2020
|
};
|
|
2029
|
-
this.tenantId != null && (i.tenantId = this.tenantId), await
|
|
2021
|
+
this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
|
|
2030
2022
|
}
|
|
2031
2023
|
}
|
|
2032
2024
|
toJSON() {
|
|
@@ -2139,7 +2131,7 @@ class Oi {
|
|
|
2139
2131
|
), this.persistenceManager;
|
|
2140
2132
|
}
|
|
2141
2133
|
_logFramework(e) {
|
|
2142
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
2134
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
|
|
2143
2135
|
}
|
|
2144
2136
|
_getFrameworks() {
|
|
2145
2137
|
return this.frameworks;
|
|
@@ -2172,12 +2164,12 @@ class Oi {
|
|
|
2172
2164
|
return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
2173
2165
|
}
|
|
2174
2166
|
}
|
|
2175
|
-
function
|
|
2167
|
+
function be(n) {
|
|
2176
2168
|
return X(n);
|
|
2177
2169
|
}
|
|
2178
2170
|
class at {
|
|
2179
2171
|
constructor(e) {
|
|
2180
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
2172
|
+
this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
|
|
2181
2173
|
}
|
|
2182
2174
|
get next() {
|
|
2183
2175
|
return u(
|
|
@@ -2204,7 +2196,7 @@ class at {
|
|
|
2204
2196
|
* See the License for the specific language governing permissions and
|
|
2205
2197
|
* limitations under the License.
|
|
2206
2198
|
*/
|
|
2207
|
-
let
|
|
2199
|
+
let Ge = {
|
|
2208
2200
|
async loadJS() {
|
|
2209
2201
|
throw new Error("Unable to load external scripts");
|
|
2210
2202
|
},
|
|
@@ -2213,13 +2205,13 @@ let Be = {
|
|
|
2213
2205
|
gapiScript: ""
|
|
2214
2206
|
};
|
|
2215
2207
|
function Li(n) {
|
|
2216
|
-
|
|
2208
|
+
Ge = n;
|
|
2217
2209
|
}
|
|
2218
2210
|
function Mi(n) {
|
|
2219
|
-
return
|
|
2211
|
+
return Ge.loadJS(n);
|
|
2220
2212
|
}
|
|
2221
2213
|
function Ui() {
|
|
2222
|
-
return
|
|
2214
|
+
return Ge.gapiScript;
|
|
2223
2215
|
}
|
|
2224
2216
|
function Di(n) {
|
|
2225
2217
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -2241,7 +2233,7 @@ function Di(n) {
|
|
|
2241
2233
|
* limitations under the License.
|
|
2242
2234
|
*/
|
|
2243
2235
|
function xi(n, e) {
|
|
2244
|
-
const t =
|
|
2236
|
+
const t = bt(n, "auth");
|
|
2245
2237
|
if (t.isInitialized()) {
|
|
2246
2238
|
const r = t.getImmediate(), s = t.getOptions();
|
|
2247
2239
|
if (On(s, e ?? {}))
|
|
@@ -2259,7 +2251,7 @@ function Fi(n, e) {
|
|
|
2259
2251
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
2260
2252
|
}
|
|
2261
2253
|
function Vi(n, e, t) {
|
|
2262
|
-
const i =
|
|
2254
|
+
const i = be(n);
|
|
2263
2255
|
u(
|
|
2264
2256
|
i._canInitEmulator,
|
|
2265
2257
|
i,
|
|
@@ -2271,7 +2263,7 @@ function Vi(n, e, t) {
|
|
|
2271
2263
|
"invalid-emulator-scheme"
|
|
2272
2264
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2273
2265
|
);
|
|
2274
|
-
const r = !1, s =
|
|
2266
|
+
const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
|
|
2275
2267
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2276
2268
|
host: o,
|
|
2277
2269
|
port: c,
|
|
@@ -2279,12 +2271,12 @@ function Vi(n, e, t) {
|
|
|
2279
2271
|
options: Object.freeze({ disableWarnings: r })
|
|
2280
2272
|
}), Hi();
|
|
2281
2273
|
}
|
|
2282
|
-
function
|
|
2274
|
+
function Gt(n) {
|
|
2283
2275
|
const e = n.indexOf(":");
|
|
2284
2276
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2285
2277
|
}
|
|
2286
2278
|
function $i(n) {
|
|
2287
|
-
const e =
|
|
2279
|
+
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2288
2280
|
if (!t)
|
|
2289
2281
|
return { host: "", port: null };
|
|
2290
2282
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2386,14 +2378,14 @@ async function Y(n, e) {
|
|
|
2386
2378
|
* See the License for the specific language governing permissions and
|
|
2387
2379
|
* limitations under the License.
|
|
2388
2380
|
*/
|
|
2389
|
-
const
|
|
2390
|
-
class
|
|
2381
|
+
const ji = "http://localhost";
|
|
2382
|
+
class G extends zt {
|
|
2391
2383
|
constructor() {
|
|
2392
2384
|
super(...arguments), this.pendingToken = null;
|
|
2393
2385
|
}
|
|
2394
2386
|
/** @internal */
|
|
2395
2387
|
static _fromParams(e) {
|
|
2396
|
-
const t = new
|
|
2388
|
+
const t = new G(e.providerId, e.signInMethod);
|
|
2397
2389
|
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) : L(
|
|
2398
2390
|
"argument-error"
|
|
2399
2391
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -2424,7 +2416,7 @@ class B extends zt {
|
|
|
2424
2416
|
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
2425
2417
|
if (!i || !r)
|
|
2426
2418
|
return null;
|
|
2427
|
-
const o = new
|
|
2419
|
+
const o = new G(i, r);
|
|
2428
2420
|
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;
|
|
2429
2421
|
}
|
|
2430
2422
|
/** @internal */
|
|
@@ -2444,7 +2436,7 @@ class B extends zt {
|
|
|
2444
2436
|
}
|
|
2445
2437
|
buildRequest() {
|
|
2446
2438
|
const e = {
|
|
2447
|
-
requestUri:
|
|
2439
|
+
requestUri: ji,
|
|
2448
2440
|
returnSecureToken: !0
|
|
2449
2441
|
};
|
|
2450
2442
|
if (this.pendingToken)
|
|
@@ -2580,7 +2572,7 @@ class x extends ce {
|
|
|
2580
2572
|
* @param accessToken - Facebook access token.
|
|
2581
2573
|
*/
|
|
2582
2574
|
static credential(e) {
|
|
2583
|
-
return
|
|
2575
|
+
return G._fromParams({
|
|
2584
2576
|
providerId: x.PROVIDER_ID,
|
|
2585
2577
|
signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
|
|
2586
2578
|
accessToken: e
|
|
@@ -2652,7 +2644,7 @@ class F extends ce {
|
|
|
2652
2644
|
* @param accessToken - Google access token.
|
|
2653
2645
|
*/
|
|
2654
2646
|
static credential(e, t) {
|
|
2655
|
-
return
|
|
2647
|
+
return G._fromParams({
|
|
2656
2648
|
providerId: F.PROVIDER_ID,
|
|
2657
2649
|
signInMethod: F.GOOGLE_SIGN_IN_METHOD,
|
|
2658
2650
|
idToken: e,
|
|
@@ -2720,7 +2712,7 @@ class V extends ce {
|
|
|
2720
2712
|
* @param accessToken - Github access token.
|
|
2721
2713
|
*/
|
|
2722
2714
|
static credential(e) {
|
|
2723
|
-
return
|
|
2715
|
+
return G._fromParams({
|
|
2724
2716
|
providerId: V.PROVIDER_ID,
|
|
2725
2717
|
signInMethod: V.GITHUB_SIGN_IN_METHOD,
|
|
2726
2718
|
accessToken: e
|
|
@@ -2785,7 +2777,7 @@ class $ extends ce {
|
|
|
2785
2777
|
* @param secret - Twitter secret.
|
|
2786
2778
|
*/
|
|
2787
2779
|
static credential(e, t) {
|
|
2788
|
-
return
|
|
2780
|
+
return G._fromParams({
|
|
2789
2781
|
providerId: $.PROVIDER_ID,
|
|
2790
2782
|
signInMethod: $.TWITTER_SIGN_IN_METHOD,
|
|
2791
2783
|
oauthToken: e,
|
|
@@ -2906,7 +2898,7 @@ function Kt(n, e, t, i) {
|
|
|
2906
2898
|
throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
|
|
2907
2899
|
});
|
|
2908
2900
|
}
|
|
2909
|
-
async function
|
|
2901
|
+
async function Wi(n, e, t = !1) {
|
|
2910
2902
|
const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2911
2903
|
return z._forOperation(n, "link", i);
|
|
2912
2904
|
}
|
|
@@ -2926,9 +2918,9 @@ async function ji(n, e, t = !1) {
|
|
|
2926
2918
|
* See the License for the specific language governing permissions and
|
|
2927
2919
|
* limitations under the License.
|
|
2928
2920
|
*/
|
|
2929
|
-
async function
|
|
2921
|
+
async function Bi(n, e, t = !1) {
|
|
2930
2922
|
const { auth: i } = n;
|
|
2931
|
-
if (
|
|
2923
|
+
if (A(i.app))
|
|
2932
2924
|
return Promise.reject(H(i));
|
|
2933
2925
|
const r = "reauthenticate";
|
|
2934
2926
|
try {
|
|
@@ -2939,7 +2931,7 @@ async function Gi(n, e, t = !1) {
|
|
|
2939
2931
|
"internal-error"
|
|
2940
2932
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2941
2933
|
);
|
|
2942
|
-
const o =
|
|
2934
|
+
const o = We(s.idToken);
|
|
2943
2935
|
u(
|
|
2944
2936
|
o,
|
|
2945
2937
|
i,
|
|
@@ -2977,8 +2969,8 @@ async function Gi(n, e, t = !1) {
|
|
|
2977
2969
|
* See the License for the specific language governing permissions and
|
|
2978
2970
|
* limitations under the License.
|
|
2979
2971
|
*/
|
|
2980
|
-
async function
|
|
2981
|
-
if (
|
|
2972
|
+
async function Gi(n, e, t = !1) {
|
|
2973
|
+
if (A(n.app))
|
|
2982
2974
|
return Promise.reject(H(n));
|
|
2983
2975
|
const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
|
|
2984
2976
|
return t || await n._updateCurrentUser(s.user), s;
|
|
@@ -3019,9 +3011,9 @@ async function zi(n, e) {
|
|
|
3019
3011
|
* limitations under the License.
|
|
3020
3012
|
*/
|
|
3021
3013
|
async function qi(n, e) {
|
|
3022
|
-
if (
|
|
3014
|
+
if (A(n.app))
|
|
3023
3015
|
return Promise.reject(H(n));
|
|
3024
|
-
const t =
|
|
3016
|
+
const t = be(n), i = await zi(t, {
|
|
3025
3017
|
token: e,
|
|
3026
3018
|
returnSecureToken: !0
|
|
3027
3019
|
}), r = await z._fromIdTokenResponse(t, "signIn", i);
|
|
@@ -3093,7 +3085,7 @@ class Jt {
|
|
|
3093
3085
|
*/
|
|
3094
3086
|
function Yi() {
|
|
3095
3087
|
const n = k();
|
|
3096
|
-
return
|
|
3088
|
+
return Be(n) || ke(n);
|
|
3097
3089
|
}
|
|
3098
3090
|
const Xi = 1e3, Qi = 10;
|
|
3099
3091
|
class Yt extends Jt {
|
|
@@ -3102,7 +3094,7 @@ class Yt extends Jt {
|
|
|
3102
3094
|
() => window.localStorage,
|
|
3103
3095
|
"LOCAL"
|
|
3104
3096
|
/* PersistenceType.LOCAL */
|
|
3105
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling =
|
|
3097
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
|
|
3106
3098
|
}
|
|
3107
3099
|
forAllChangedKeys(e) {
|
|
3108
3100
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3260,7 +3252,7 @@ function er(n) {
|
|
|
3260
3252
|
* See the License for the specific language governing permissions and
|
|
3261
3253
|
* limitations under the License.
|
|
3262
3254
|
*/
|
|
3263
|
-
class
|
|
3255
|
+
class Ee {
|
|
3264
3256
|
constructor(e) {
|
|
3265
3257
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
3266
3258
|
}
|
|
@@ -3274,7 +3266,7 @@ class be {
|
|
|
3274
3266
|
const t = this.receivers.find((r) => r.isListeningto(e));
|
|
3275
3267
|
if (t)
|
|
3276
3268
|
return t;
|
|
3277
|
-
const i = new
|
|
3269
|
+
const i = new Ee(e);
|
|
3278
3270
|
return this.receivers.push(i), i;
|
|
3279
3271
|
}
|
|
3280
3272
|
isListeningto(e) {
|
|
@@ -3328,7 +3320,7 @@ class be {
|
|
|
3328
3320
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
3329
3321
|
}
|
|
3330
3322
|
}
|
|
3331
|
-
|
|
3323
|
+
Ee.receivers = [];
|
|
3332
3324
|
/**
|
|
3333
3325
|
* @license
|
|
3334
3326
|
* Copyright 2020 Google LLC
|
|
@@ -3609,7 +3601,7 @@ class nn {
|
|
|
3609
3601
|
* As the worker we should listen to events from the main window.
|
|
3610
3602
|
*/
|
|
3611
3603
|
async initializeReceiver() {
|
|
3612
|
-
this.receiver =
|
|
3604
|
+
this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
3613
3605
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
3614
3606
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
3615
3607
|
"keyChanged"
|
|
@@ -3800,7 +3792,7 @@ class qe extends zt {
|
|
|
3800
3792
|
}
|
|
3801
3793
|
}
|
|
3802
3794
|
function fr(n) {
|
|
3803
|
-
return
|
|
3795
|
+
return Gi(n.auth, new qe(n), n.bypassAuthState);
|
|
3804
3796
|
}
|
|
3805
3797
|
function pr(n) {
|
|
3806
3798
|
const { auth: e, user: t } = n;
|
|
@@ -3809,7 +3801,7 @@ function pr(n) {
|
|
|
3809
3801
|
e,
|
|
3810
3802
|
"internal-error"
|
|
3811
3803
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3812
|
-
),
|
|
3804
|
+
), Bi(t, new qe(n), n.bypassAuthState);
|
|
3813
3805
|
}
|
|
3814
3806
|
async function mr(n) {
|
|
3815
3807
|
const { auth: e, user: t } = n;
|
|
@@ -3818,7 +3810,7 @@ async function mr(n) {
|
|
|
3818
3810
|
e,
|
|
3819
3811
|
"internal-error"
|
|
3820
3812
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3821
|
-
),
|
|
3813
|
+
), Wi(t, new qe(n), n.bypassAuthState);
|
|
3822
3814
|
}
|
|
3823
3815
|
/**
|
|
3824
3816
|
* @license
|
|
@@ -3945,7 +3937,7 @@ class q extends rn {
|
|
|
3945
3937
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
|
|
3946
3938
|
this.reject(t);
|
|
3947
3939
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
|
|
3948
|
-
t || this.reject(
|
|
3940
|
+
t || this.reject(E(
|
|
3949
3941
|
this.auth,
|
|
3950
3942
|
"web-storage-unsupported"
|
|
3951
3943
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -3957,7 +3949,7 @@ class q extends rn {
|
|
|
3957
3949
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
3958
3950
|
}
|
|
3959
3951
|
cancel() {
|
|
3960
|
-
this.reject(
|
|
3952
|
+
this.reject(E(
|
|
3961
3953
|
this.auth,
|
|
3962
3954
|
"cancelled-popup-request"
|
|
3963
3955
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -3972,7 +3964,7 @@ class q extends rn {
|
|
|
3972
3964
|
if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
|
|
3973
3965
|
this.pollId = window.setTimeout(
|
|
3974
3966
|
() => {
|
|
3975
|
-
this.pollId = null, this.reject(
|
|
3967
|
+
this.pollId = null, this.reject(E(
|
|
3976
3968
|
this.auth,
|
|
3977
3969
|
"popup-closed-by-user"
|
|
3978
3970
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -4069,9 +4061,9 @@ function Tr(n) {
|
|
|
4069
4061
|
return he(_r, n.config.apiKey, n.name);
|
|
4070
4062
|
}
|
|
4071
4063
|
async function kr(n, e, t = !1) {
|
|
4072
|
-
if (
|
|
4064
|
+
if (A(n.app))
|
|
4073
4065
|
return Promise.reject(H(n));
|
|
4074
|
-
const i =
|
|
4066
|
+
const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
|
|
4075
4067
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4076
4068
|
}
|
|
4077
4069
|
/**
|
|
@@ -4090,8 +4082,8 @@ async function kr(n, e, t = !1) {
|
|
|
4090
4082
|
* See the License for the specific language governing permissions and
|
|
4091
4083
|
* limitations under the License.
|
|
4092
4084
|
*/
|
|
4093
|
-
const
|
|
4094
|
-
class
|
|
4085
|
+
const br = 10 * 60 * 1e3;
|
|
4086
|
+
class Er {
|
|
4095
4087
|
constructor(e) {
|
|
4096
4088
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
4097
4089
|
}
|
|
@@ -4113,7 +4105,7 @@ class br {
|
|
|
4113
4105
|
var i;
|
|
4114
4106
|
if (e.error && !sn(e)) {
|
|
4115
4107
|
const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
|
|
4116
|
-
t.onError(
|
|
4108
|
+
t.onError(E(this.auth, r));
|
|
4117
4109
|
} else
|
|
4118
4110
|
t.onAuthEvent(e);
|
|
4119
4111
|
}
|
|
@@ -4122,7 +4114,7 @@ class br {
|
|
|
4122
4114
|
return t.filter.includes(e.type) && i;
|
|
4123
4115
|
}
|
|
4124
4116
|
hasEventBeenHandled(e) {
|
|
4125
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
4117
|
+
return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
|
|
4126
4118
|
}
|
|
4127
4119
|
saveEventToCache(e) {
|
|
4128
4120
|
this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -4181,7 +4173,7 @@ async function Rr(n, e = {}) {
|
|
|
4181
4173
|
* See the License for the specific language governing permissions and
|
|
4182
4174
|
* limitations under the License.
|
|
4183
4175
|
*/
|
|
4184
|
-
const
|
|
4176
|
+
const Pr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
|
|
4185
4177
|
async function Cr(n) {
|
|
4186
4178
|
if (n.config.emulator)
|
|
4187
4179
|
return;
|
|
@@ -4204,9 +4196,9 @@ function Nr(n) {
|
|
|
4204
4196
|
const o = new URL(n);
|
|
4205
4197
|
return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
|
|
4206
4198
|
}
|
|
4207
|
-
if (!
|
|
4199
|
+
if (!Ar.test(t))
|
|
4208
4200
|
return !1;
|
|
4209
|
-
if (
|
|
4201
|
+
if (Pr.test(n))
|
|
4210
4202
|
return i === n;
|
|
4211
4203
|
const r = n.replace(/\./g, "\\.");
|
|
4212
4204
|
return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
|
|
@@ -4246,7 +4238,7 @@ function Lr(n) {
|
|
|
4246
4238
|
e(gapi.iframes.getContext());
|
|
4247
4239
|
},
|
|
4248
4240
|
ontimeout: () => {
|
|
4249
|
-
ft(), t(
|
|
4241
|
+
ft(), t(E(
|
|
4250
4242
|
n,
|
|
4251
4243
|
"network-request-failed"
|
|
4252
4244
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4262,7 +4254,7 @@ function Lr(n) {
|
|
|
4262
4254
|
else {
|
|
4263
4255
|
const c = Di("iframefcb");
|
|
4264
4256
|
return S()[c] = () => {
|
|
4265
|
-
gapi.load ? o() : t(
|
|
4257
|
+
gapi.load ? o() : t(E(
|
|
4266
4258
|
n,
|
|
4267
4259
|
"network-request-failed"
|
|
4268
4260
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4316,7 +4308,7 @@ function $r(n) {
|
|
|
4316
4308
|
"auth-domain-config-required"
|
|
4317
4309
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4318
4310
|
);
|
|
4319
|
-
const t = e.emulator ?
|
|
4311
|
+
const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
|
|
4320
4312
|
apiKey: e.apiKey,
|
|
4321
4313
|
appName: n.name,
|
|
4322
4314
|
v: se
|
|
@@ -4343,7 +4335,7 @@ async function Hr(n) {
|
|
|
4343
4335
|
// Prevent iframe from closing on mouse out.
|
|
4344
4336
|
setHideOnLeave: !1
|
|
4345
4337
|
});
|
|
4346
|
-
const o =
|
|
4338
|
+
const o = E(
|
|
4347
4339
|
n,
|
|
4348
4340
|
"network-request-failed"
|
|
4349
4341
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4374,12 +4366,12 @@ async function Hr(n) {
|
|
|
4374
4366
|
* See the License for the specific language governing permissions and
|
|
4375
4367
|
* limitations under the License.
|
|
4376
4368
|
*/
|
|
4377
|
-
const
|
|
4369
|
+
const jr = {
|
|
4378
4370
|
location: "yes",
|
|
4379
4371
|
resizable: "yes",
|
|
4380
4372
|
statusbar: "yes",
|
|
4381
4373
|
toolbar: "no"
|
|
4382
|
-
},
|
|
4374
|
+
}, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
|
|
4383
4375
|
class pt {
|
|
4384
4376
|
constructor(e) {
|
|
4385
4377
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4392,18 +4384,18 @@ class pt {
|
|
|
4392
4384
|
}
|
|
4393
4385
|
}
|
|
4394
4386
|
}
|
|
4395
|
-
function qr(n, e, t, i =
|
|
4387
|
+
function qr(n, e, t, i = Wr, r = Br) {
|
|
4396
4388
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4397
4389
|
let c = "";
|
|
4398
|
-
const a = Object.assign(Object.assign({},
|
|
4390
|
+
const a = Object.assign(Object.assign({}, jr), {
|
|
4399
4391
|
width: i.toString(),
|
|
4400
4392
|
height: r.toString(),
|
|
4401
4393
|
top: s,
|
|
4402
4394
|
left: o
|
|
4403
4395
|
}), l = k().toLowerCase();
|
|
4404
|
-
t && (c = Ft(l) ?
|
|
4405
|
-
const d = Object.entries(a).reduce((v, [y,
|
|
4406
|
-
if (
|
|
4396
|
+
t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
|
|
4397
|
+
const d = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
|
|
4398
|
+
if (Ei(l) && c !== "_self")
|
|
4407
4399
|
return Kr(e || "", c), new pt(null);
|
|
4408
4400
|
const m = window.open(e || "", c, d);
|
|
4409
4401
|
u(
|
|
@@ -4478,7 +4470,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4478
4470
|
return `${Qr(n)}?${oe(c).slice(1)}${l}`;
|
|
4479
4471
|
}
|
|
4480
4472
|
function Qr({ config: n }) {
|
|
4481
|
-
return n.emulator ?
|
|
4473
|
+
return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
|
|
4482
4474
|
}
|
|
4483
4475
|
/**
|
|
4484
4476
|
* @license
|
|
@@ -4527,7 +4519,7 @@ class Zr {
|
|
|
4527
4519
|
}), i;
|
|
4528
4520
|
}
|
|
4529
4521
|
async initAndGetManager(e) {
|
|
4530
|
-
const t = await Hr(e), i = new
|
|
4522
|
+
const t = await Hr(e), i = new Er(e);
|
|
4531
4523
|
return t.register("authEvent", (r) => (u(
|
|
4532
4524
|
r == null ? void 0 : r.authEvent,
|
|
4533
4525
|
e,
|
|
@@ -4554,7 +4546,7 @@ class Zr {
|
|
|
4554
4546
|
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
|
|
4555
4547
|
}
|
|
4556
4548
|
get _shouldInitProactively() {
|
|
4557
|
-
return
|
|
4549
|
+
return Wt() || Be() || ke();
|
|
4558
4550
|
}
|
|
4559
4551
|
}
|
|
4560
4552
|
const es = Zr;
|
|
@@ -4655,7 +4647,7 @@ function is(n) {
|
|
|
4655
4647
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4656
4648
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4657
4649
|
apiScheme: "https",
|
|
4658
|
-
sdkClientVersion:
|
|
4650
|
+
sdkClientVersion: Bt(n)
|
|
4659
4651
|
}, l = new Oi(i, r, s, a);
|
|
4660
4652
|
return Fi(l, t), l;
|
|
4661
4653
|
},
|
|
@@ -4672,7 +4664,7 @@ function is(n) {
|
|
|
4672
4664
|
})), Ze(new et(
|
|
4673
4665
|
"auth-internal",
|
|
4674
4666
|
(e) => {
|
|
4675
|
-
const t =
|
|
4667
|
+
const t = be(e.getProvider(
|
|
4676
4668
|
"auth"
|
|
4677
4669
|
/* _ComponentName.AUTH */
|
|
4678
4670
|
).getImmediate());
|
|
@@ -4716,7 +4708,7 @@ const os = (n) => async (e) => {
|
|
|
4716
4708
|
}));
|
|
4717
4709
|
};
|
|
4718
4710
|
function as(n = Nn()) {
|
|
4719
|
-
const e =
|
|
4711
|
+
const e = bt(n, "auth");
|
|
4720
4712
|
if (e.isInitialized())
|
|
4721
4713
|
return e.getImmediate();
|
|
4722
4714
|
const t = xi(n, {
|
|
@@ -4746,7 +4738,7 @@ Li({
|
|
|
4746
4738
|
return new Promise((e, t) => {
|
|
4747
4739
|
const i = document.createElement("script");
|
|
4748
4740
|
i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
|
|
4749
|
-
const s =
|
|
4741
|
+
const s = E(
|
|
4750
4742
|
"internal-error"
|
|
4751
4743
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4752
4744
|
);
|
|
@@ -4762,15 +4754,15 @@ is(
|
|
|
4762
4754
|
"Browser"
|
|
4763
4755
|
/* ClientPlatform.BROWSER */
|
|
4764
4756
|
);
|
|
4765
|
-
var ls = { firebase: { apiKey: "
|
|
4757
|
+
var ls = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, us = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
4766
4758
|
const ds = {
|
|
4767
4759
|
key: 2,
|
|
4768
4760
|
class: "h-full w-full"
|
|
4769
4761
|
}, hs = ["src"], Cs = /* @__PURE__ */ xe({
|
|
4770
4762
|
__name: "App",
|
|
4771
4763
|
setup(n) {
|
|
4772
|
-
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c =
|
|
4773
|
-
() => o.name ===
|
|
4764
|
+
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = B(
|
|
4765
|
+
() => o.name === p["$connect-UPSELLING"]
|
|
4774
4766
|
), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
|
|
4775
4767
|
ie(
|
|
4776
4768
|
() => {
|
|
@@ -4782,25 +4774,25 @@ const ds = {
|
|
|
4782
4774
|
},
|
|
4783
4775
|
{ immediate: !0 }
|
|
4784
4776
|
);
|
|
4785
|
-
const m = te(!1), v =
|
|
4786
|
-
const h = e.currentCountry.value || "MY", _ = tt.getIdToken(),
|
|
4787
|
-
return `${us.marketingV1Portal}/b/${
|
|
4777
|
+
const m = te(!1), v = B(() => i.version), y = B(() => {
|
|
4778
|
+
const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), b = d.value._id;
|
|
4779
|
+
return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
|
|
4788
4780
|
});
|
|
4789
|
-
async function
|
|
4781
|
+
async function f() {
|
|
4790
4782
|
if (Dn().length) {
|
|
4791
4783
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4792
4784
|
return;
|
|
4793
4785
|
}
|
|
4794
|
-
const h = xn(ls.firebase), _ = await fn.getCustomToken(),
|
|
4795
|
-
await qi(
|
|
4786
|
+
const h = xn(ls.firebase), _ = await fn.getCustomToken(), b = as();
|
|
4787
|
+
await qi(b, _), Fn(h), console.log("initFirebase", h);
|
|
4796
4788
|
}
|
|
4797
4789
|
const w = async () => {
|
|
4798
|
-
m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(
|
|
4790
|
+
m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(jn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
|
|
4799
4791
|
};
|
|
4800
4792
|
return un(() => {
|
|
4801
4793
|
if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
|
|
4802
|
-
const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0],
|
|
4803
|
-
h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"),
|
|
4794
|
+
const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
|
|
4795
|
+
h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4804
4796
|
}
|
|
4805
4797
|
d.value != null && (console.log("App mounted, forceRerender"), w());
|
|
4806
4798
|
}), ie(
|
|
@@ -4808,11 +4800,11 @@ const ds = {
|
|
|
4808
4800
|
async (h, _) => {
|
|
4809
4801
|
console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
|
|
4810
4802
|
}
|
|
4811
|
-
), (h, _) => (
|
|
4812
|
-
g(m) && (g(v) === "v2" || g(c)) ? (
|
|
4813
|
-
g(m) && g(v) === "v2" && g(a) ? (
|
|
4814
|
-
g(m) && g(v) !== "v2" && !g(c) ? (
|
|
4815
|
-
R(
|
|
4803
|
+
), (h, _) => (W(), me(It, null, [
|
|
4804
|
+
g(m) && (g(v) === "v2" || g(c)) ? (W(), Oe(g(hn), { key: 0 })) : Ae("", !0),
|
|
4805
|
+
g(m) && g(v) === "v2" && g(a) ? (W(), Oe(oi, { key: 1 })) : Ae("", !0),
|
|
4806
|
+
g(m) && g(v) !== "v2" && !g(c) ? (W(), me("div", ds, [
|
|
4807
|
+
R(bn, {
|
|
4816
4808
|
json: { url: g(y) }
|
|
4817
4809
|
}, null, 8, ["json"]),
|
|
4818
4810
|
I("iframe", {
|
|
@@ -4822,7 +4814,7 @@ const ds = {
|
|
|
4822
4814
|
width: "100%",
|
|
4823
4815
|
src: g(y)
|
|
4824
4816
|
}, null, 8, hs)
|
|
4825
|
-
])) :
|
|
4817
|
+
])) : Ae("", !0)
|
|
4826
4818
|
], 64));
|
|
4827
4819
|
}
|
|
4828
4820
|
});
|