@tesouro/embedded-components-react 0.5.116 → 0.5.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.css +13 -6
- package/dist/index.d.ts +31 -4
- package/dist/index.js +5 -4
- package/dist/lib/MarketingWidget.d.ts +31 -4
- package/dist/lib/MarketingWidget.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
- package/package.json +1 -1
|
@@ -11,37 +11,40 @@ import "../../../shared/feature/dist/index.js";
|
|
|
11
11
|
import { MarketingWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
|
|
12
12
|
import { marketingWidgetTestIds as o } from "./index3.js";
|
|
13
13
|
import { MARKETING_WIDGET_LABELS_EN as s } from "../../ui/dist/index2.js";
|
|
14
|
-
import {
|
|
14
|
+
import { MarketingBenefitIcon as c } from "../../ui/dist/index3.js";
|
|
15
|
+
import { MarketingWidget as l } from "../../ui/dist/index8.js";
|
|
15
16
|
import "../../ui/dist/index.js";
|
|
16
|
-
import { useCallback as
|
|
17
|
-
import { jsx as
|
|
17
|
+
import { useCallback as u, useEffect as d, useState as f } from "react";
|
|
18
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
18
19
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js
|
|
19
|
-
var
|
|
20
|
+
var m = /* @__PURE__ */ new Set([
|
|
20
21
|
"ACTIVE",
|
|
21
22
|
"INACTIVE",
|
|
22
23
|
"INVITED"
|
|
23
24
|
]);
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, [
|
|
29
|
-
let y =
|
|
30
|
-
|
|
31
|
-
}, [
|
|
25
|
+
function h({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
26
|
+
let c = t(), { initResponse: h } = r(), g = e(), [_, v] = f(!1);
|
|
27
|
+
d(() => {
|
|
28
|
+
c(i.Mounted);
|
|
29
|
+
}, [c]);
|
|
30
|
+
let y = u(() => {
|
|
31
|
+
c(i.OpenModal), v(!0);
|
|
32
|
+
}, [c]), b = u(() => {
|
|
32
33
|
v(!1);
|
|
33
|
-
}, []), x =
|
|
34
|
-
|
|
35
|
-
}, [a,
|
|
36
|
-
return !h?.status ||
|
|
34
|
+
}, []), x = u(() => {
|
|
35
|
+
c(i.PrimaryCta), v(!1), a();
|
|
36
|
+
}, [a, c]);
|
|
37
|
+
return !h?.status || m.has(h.status) || g.isSuppressed || !g.isResolved ? null : /* @__PURE__ */ p(l, {
|
|
37
38
|
open: _,
|
|
38
39
|
vspLogo: n.vspLogo,
|
|
39
40
|
bankingText: n.bankingText,
|
|
40
41
|
primaryCaption: n.primaryCaption,
|
|
41
42
|
secondaryCaption: n.secondaryCaption,
|
|
42
43
|
providedByCaption: n.providedByCaption,
|
|
43
|
-
modalPrimaryImg: n.modalPrimaryImg,
|
|
44
44
|
primaryModalHeader: n.primaryModalHeader,
|
|
45
|
+
howItWorksHeader: n.howItWorksHeader,
|
|
46
|
+
howItWorksSteps: n.howItWorksSteps,
|
|
47
|
+
fromDayOneHeader: n.fromDayOneHeader,
|
|
45
48
|
benefits: n.benefits,
|
|
46
49
|
appearance: n.appearance,
|
|
47
50
|
onOpenMarketingModal: y,
|
|
@@ -51,6 +54,7 @@ function m({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
|
51
54
|
testIds: {
|
|
52
55
|
root: o.root,
|
|
53
56
|
learnMoreButton: o.learnMoreButton,
|
|
57
|
+
applyNowButton: o.applyNowButton,
|
|
54
58
|
modal: {
|
|
55
59
|
root: o.modal,
|
|
56
60
|
primaryCtaButton: o.primaryCtaButton
|
|
@@ -58,8 +62,8 @@ function m({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
function
|
|
62
|
-
return /* @__PURE__ */
|
|
65
|
+
function g({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
|
|
66
|
+
return /* @__PURE__ */ p(n, {
|
|
63
67
|
widgetName: a,
|
|
64
68
|
baseUrl: e,
|
|
65
69
|
widgetToken: t,
|
|
@@ -71,11 +75,11 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
71
75
|
uiFramework: l,
|
|
72
76
|
errorFallback: u,
|
|
73
77
|
onError: d,
|
|
74
|
-
analytics:
|
|
75
|
-
disclosuresAcceptance:
|
|
78
|
+
analytics: f,
|
|
79
|
+
disclosuresAcceptance: m,
|
|
76
80
|
providerLabels: g,
|
|
77
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ p(h, { ..._ })
|
|
78
82
|
});
|
|
79
83
|
}
|
|
80
84
|
//#endregion
|
|
81
|
-
export { s as MARKETING_WIDGET_LABELS_EN,
|
|
85
|
+
export { s as MARKETING_WIDGET_LABELS_EN, c as MarketingBenefitIcon, g as MarketingWidget };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MARKETING_WIDGET_LABELS_EN as e } from "./index2.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { MarketingBenefitIcon as t } from "./index3.js";
|
|
3
|
+
import "./index7.js";
|
|
4
|
+
import { MarketingWidget as n } from "./index8.js";
|
|
5
|
+
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
|
+
applyNow: "Apply now",
|
|
3
4
|
learnMore: "Learn more",
|
|
4
|
-
primaryCta: "
|
|
5
|
+
primaryCta: "Start application",
|
|
6
|
+
primaryCtaSubtext: "takes about 5 minutes",
|
|
5
7
|
dismissModalAriaLabel: "Close marketing modal"
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { CheckCircle2 as n } from "lucide-react";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"aria-hidden": !0
|
|
12
|
-
}), /* @__PURE__ */ e("p", {
|
|
13
|
-
className: "ttw:text-sm ttw:text-foreground",
|
|
14
|
-
children: r
|
|
15
|
-
})]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
Sync: "sync",
|
|
4
|
+
Users: "users",
|
|
5
|
+
Document: "document",
|
|
6
|
+
Dollar: "dollar",
|
|
7
|
+
Card: "card"
|
|
8
|
+
};
|
|
18
9
|
//#endregion
|
|
19
|
-
export {
|
|
10
|
+
export { e as MarketingBenefitIcon };
|
|
@@ -1,82 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { MarketingBenefitItem as o } from "./index3.js";
|
|
4
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
import { ArrowRight as l, X as u } from "lucide-react";
|
|
1
|
+
import { MarketingBenefitIcon as e } from "./index3.js";
|
|
2
|
+
import { CreditCard as t, DollarSign as n, FileText as r, RefreshCw as i, Users as a } from "lucide-react";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onOpenChange: (e) => {
|
|
15
|
-
e || _();
|
|
16
|
-
},
|
|
17
|
-
children: /* @__PURE__ */ c(r, {
|
|
18
|
-
"data-testid": b?.root,
|
|
19
|
-
showCloseButton: !1,
|
|
20
|
-
className: "ttw:max-w-[500px] ttw:gap-0 ttw:p-6",
|
|
21
|
-
style: {
|
|
22
|
-
backgroundColor: g.modalBackgroundColor,
|
|
23
|
-
borderRadius: g.borderRadius
|
|
24
|
-
},
|
|
25
|
-
children: [
|
|
26
|
-
/* @__PURE__ */ s(n, {
|
|
27
|
-
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
|
|
28
|
-
onClick: _,
|
|
29
|
-
"aria-label": x.dismissModalAriaLabel,
|
|
30
|
-
children: /* @__PURE__ */ s(u, {
|
|
31
|
-
className: "ttw:size-5",
|
|
32
|
-
"aria-hidden": !0
|
|
33
|
-
})
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ s(i, {
|
|
36
|
-
className: "ttw:mb-2 ttw:text-center ttw:text-[1.35rem] ttw:font-semibold ttw:leading-tight",
|
|
37
|
-
children: m
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ s("p", {
|
|
40
|
-
className: "ttw:mb-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
41
|
-
children: f
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ s("div", {
|
|
44
|
-
className: "ttw:mb-6 ttw:flex ttw:justify-center",
|
|
45
|
-
children: /* @__PURE__ */ s("img", {
|
|
46
|
-
src: p.src,
|
|
47
|
-
alt: p.alt,
|
|
48
|
-
width: 432,
|
|
49
|
-
height: 200,
|
|
50
|
-
className: "ttw:h-[200px] ttw:w-[60%] ttw:rounded-lg ttw:object-cover"
|
|
51
|
-
})
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ s("div", {
|
|
54
|
-
className: "ttw:mb-6 ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
55
|
-
children: h.map((e) => /* @__PURE__ */ s(o, {
|
|
56
|
-
text: e,
|
|
57
|
-
iconColor: g.primaryColor
|
|
58
|
-
}, e))
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ s("div", {
|
|
61
|
-
className: "ttw:flex ttw:justify-center",
|
|
62
|
-
children: /* @__PURE__ */ c(e, {
|
|
63
|
-
type: "button",
|
|
64
|
-
onClick: v,
|
|
65
|
-
className: "ttw:h-auto ttw:w-[83%] ttw:rounded-xl ttw:py-3 ttw:text-base ttw:font-medium ttw:transition-[filter] ttw:hover:brightness-90",
|
|
66
|
-
style: {
|
|
67
|
-
backgroundColor: g.primaryColor,
|
|
68
|
-
color: g.primaryContrastColor
|
|
69
|
-
},
|
|
70
|
-
"data-testid": b?.primaryCtaButton,
|
|
71
|
-
children: [x.primaryCta, /* @__PURE__ */ s(l, {
|
|
72
|
-
className: "ttw:size-4",
|
|
73
|
-
"aria-hidden": !0
|
|
74
|
-
})]
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
]
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
}
|
|
4
|
+
var o = {
|
|
5
|
+
[e.Sync]: i,
|
|
6
|
+
[e.Users]: a,
|
|
7
|
+
[e.Document]: r,
|
|
8
|
+
[e.Dollar]: n,
|
|
9
|
+
[e.Card]: t
|
|
10
|
+
};
|
|
81
11
|
//#endregion
|
|
82
|
-
export {
|
|
12
|
+
export { o as BENEFIT_ICON_COMPONENTS };
|
|
@@ -1,75 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { MarketingWidgetModal as n } from "./index4.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
1
|
+
import { BENEFIT_ICON_COMPONENTS as e } from "./index4.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ a("div", {
|
|
21
|
-
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
22
|
-
children: [/* @__PURE__ */ i("img", {
|
|
23
|
-
src: s.src,
|
|
24
|
-
alt: s.alt,
|
|
25
|
-
height: 40,
|
|
26
|
-
width: s.width,
|
|
27
|
-
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
28
|
-
}), /* @__PURE__ */ i("p", {
|
|
29
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
30
|
-
children: c
|
|
31
|
-
})]
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ i("p", {
|
|
34
|
-
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
-
children: d
|
|
36
|
-
}),
|
|
37
|
-
/* @__PURE__ */ a("div", {
|
|
38
|
-
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
39
|
-
children: [/* @__PURE__ */ i("p", {
|
|
40
|
-
className: "ttw:text-xl ttw:font-semibold",
|
|
41
|
-
style: { color: h.primaryColor },
|
|
42
|
-
children: l
|
|
43
|
-
}), /* @__PURE__ */ i("p", {
|
|
44
|
-
className: "ttw:leading-snug",
|
|
45
|
-
style: { color: h.primaryColor },
|
|
46
|
-
children: u
|
|
47
|
-
})]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ i(e, {
|
|
50
|
-
type: "button",
|
|
51
|
-
"data-testid": b?.learnMoreButton,
|
|
52
|
-
onClick: g,
|
|
53
|
-
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
54
|
-
style: {
|
|
55
|
-
backgroundColor: h.primaryColor,
|
|
56
|
-
color: h.primaryContrastColor
|
|
57
|
-
},
|
|
58
|
-
children: x.learnMore
|
|
59
|
-
})
|
|
60
|
-
]
|
|
61
|
-
}), /* @__PURE__ */ i(n, {
|
|
62
|
-
open: o,
|
|
63
|
-
providedByCaption: d,
|
|
64
|
-
modalPrimaryImg: f,
|
|
65
|
-
primaryModalHeader: p,
|
|
66
|
-
benefits: m,
|
|
67
|
-
appearance: h,
|
|
68
|
-
onClose: _,
|
|
69
|
-
onPrimaryCtaClick: v,
|
|
70
|
-
labels: y,
|
|
71
|
-
testIds: b?.modal
|
|
72
|
-
})] });
|
|
4
|
+
function r({ text: r, icon: i, iconColor: a }) {
|
|
5
|
+
let o = e[i];
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: "ttw:flex ttw:gap-2",
|
|
8
|
+
children: [/* @__PURE__ */ t(o, {
|
|
9
|
+
className: "ttw:mt-0.5 ttw:size-5 ttw:shrink-0",
|
|
10
|
+
style: { color: a },
|
|
11
|
+
"aria-hidden": !0
|
|
12
|
+
}), /* @__PURE__ */ t("p", {
|
|
13
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
14
|
+
children: r
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
73
17
|
}
|
|
74
18
|
//#endregion
|
|
75
|
-
export {
|
|
19
|
+
export { r as MarketingBenefitItem };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js
|
|
3
|
+
function n({ header: n, steps: r, primaryColor: i, primaryContrastColor: a }) {
|
|
4
|
+
return r.length === 0 ? null : /* @__PURE__ */ t("div", {
|
|
5
|
+
className: "ttw:mb-6",
|
|
6
|
+
children: [/* @__PURE__ */ e("p", {
|
|
7
|
+
className: "ttw:mb-3 ttw:text-base ttw:font-semibold",
|
|
8
|
+
style: { color: i },
|
|
9
|
+
children: n
|
|
10
|
+
}), /* @__PURE__ */ e("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col",
|
|
12
|
+
children: r.map((n, o) => {
|
|
13
|
+
let s = o === r.length - 1;
|
|
14
|
+
return /* @__PURE__ */ t("div", {
|
|
15
|
+
className: "ttw:flex ttw:gap-3",
|
|
16
|
+
children: [/* @__PURE__ */ t("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:items-center",
|
|
18
|
+
children: [/* @__PURE__ */ e("div", {
|
|
19
|
+
className: "ttw:flex ttw:size-[23px] ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-xs ttw:font-semibold",
|
|
20
|
+
style: {
|
|
21
|
+
backgroundColor: i,
|
|
22
|
+
color: a
|
|
23
|
+
},
|
|
24
|
+
children: n.number
|
|
25
|
+
}), s ? null : /* @__PURE__ */ e("div", {
|
|
26
|
+
className: "ttw:w-px ttw:flex-1 ttw:bg-border",
|
|
27
|
+
"aria-hidden": !0
|
|
28
|
+
})]
|
|
29
|
+
}), /* @__PURE__ */ t("div", {
|
|
30
|
+
className: s ? "ttw:pb-1" : "ttw:pb-4",
|
|
31
|
+
children: [/* @__PURE__ */ e("p", {
|
|
32
|
+
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
33
|
+
children: n.title
|
|
34
|
+
}), /* @__PURE__ */ e("p", {
|
|
35
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
36
|
+
children: n.description
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
}, n.title);
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { n as MarketingWidgetHowItWorks };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Button as e, Dialog as t, DialogClose as n, DialogContent as r, DialogTitle as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as a } from "./index2.js";
|
|
3
|
+
import { MarketingBenefitItem as o } from "./index5.js";
|
|
4
|
+
import { MarketingWidgetHowItWorks as s } from "./index6.js";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowRight as u, X as d } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js
|
|
8
|
+
function f({ open: f, vspLogo: p, providedByCaption: m, primaryModalHeader: h, howItWorksHeader: g, howItWorksSteps: _, fromDayOneHeader: v, benefits: y, appearance: b, onClose: x, onPrimaryCtaClick: S, labels: C, testIds: w }) {
|
|
9
|
+
let T = {
|
|
10
|
+
...a,
|
|
11
|
+
...C
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ c(t, {
|
|
14
|
+
open: f,
|
|
15
|
+
onOpenChange: (e) => {
|
|
16
|
+
e || x();
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ l(r, {
|
|
19
|
+
"data-testid": w?.root,
|
|
20
|
+
showCloseButton: !1,
|
|
21
|
+
className: "ttw:max-h-[90vh] ttw:max-w-[500px] ttw:gap-0 ttw:overflow-y-auto ttw:p-6",
|
|
22
|
+
style: {
|
|
23
|
+
backgroundColor: b.modalBackgroundColor,
|
|
24
|
+
borderRadius: b.borderRadius
|
|
25
|
+
},
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ c(n, {
|
|
28
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
|
|
29
|
+
onClick: x,
|
|
30
|
+
"aria-label": T.dismissModalAriaLabel,
|
|
31
|
+
children: /* @__PURE__ */ c(d, {
|
|
32
|
+
className: "ttw:size-5",
|
|
33
|
+
"aria-hidden": !0
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ l("div", {
|
|
37
|
+
className: "ttw:mb-6 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-3",
|
|
38
|
+
children: [/* @__PURE__ */ c("img", {
|
|
39
|
+
src: p.src,
|
|
40
|
+
alt: p.alt,
|
|
41
|
+
height: 40,
|
|
42
|
+
width: p.width,
|
|
43
|
+
className: "ttw:h-10 ttw:w-auto ttw:max-w-[120px] ttw:object-contain"
|
|
44
|
+
}), /* @__PURE__ */ l("div", {
|
|
45
|
+
className: "ttw:min-w-0",
|
|
46
|
+
children: [/* @__PURE__ */ c(i, {
|
|
47
|
+
className: "ttw:text-lg ttw:font-semibold ttw:leading-tight",
|
|
48
|
+
children: h
|
|
49
|
+
}), /* @__PURE__ */ c("p", {
|
|
50
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
51
|
+
children: m
|
|
52
|
+
})]
|
|
53
|
+
})]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ c(s, {
|
|
56
|
+
header: g,
|
|
57
|
+
steps: _,
|
|
58
|
+
primaryColor: b.primaryColor,
|
|
59
|
+
primaryContrastColor: b.primaryContrastColor
|
|
60
|
+
}),
|
|
61
|
+
y.length === 0 ? null : /* @__PURE__ */ l("div", {
|
|
62
|
+
className: "ttw:mb-6 ttw:rounded-lg ttw:bg-muted ttw:p-[18px]",
|
|
63
|
+
children: [/* @__PURE__ */ c("p", {
|
|
64
|
+
className: "ttw:mb-3 ttw:text-xs ttw:font-semibold ttw:uppercase ttw:tracking-wide ttw:text-muted-foreground",
|
|
65
|
+
children: v
|
|
66
|
+
}), /* @__PURE__ */ c("div", {
|
|
67
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
68
|
+
children: y.map((e) => /* @__PURE__ */ c(o, {
|
|
69
|
+
text: e.text,
|
|
70
|
+
icon: e.icon,
|
|
71
|
+
iconColor: b.primaryColor
|
|
72
|
+
}, e.text))
|
|
73
|
+
})]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ c("div", {
|
|
76
|
+
className: "ttw:flex ttw:justify-center",
|
|
77
|
+
children: /* @__PURE__ */ c(e, {
|
|
78
|
+
type: "button",
|
|
79
|
+
onClick: S,
|
|
80
|
+
className: "ttw:h-auto ttw:w-full ttw:justify-center ttw:rounded-xl ttw:py-3 ttw:text-base ttw:transition-[filter] ttw:hover:brightness-90",
|
|
81
|
+
style: {
|
|
82
|
+
backgroundColor: b.primaryColor,
|
|
83
|
+
color: b.primaryContrastColor
|
|
84
|
+
},
|
|
85
|
+
"data-testid": w?.primaryCtaButton,
|
|
86
|
+
children: /* @__PURE__ */ l("span", {
|
|
87
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-center ttw:gap-x-2 ttw:whitespace-normal",
|
|
88
|
+
children: [/* @__PURE__ */ l("span", {
|
|
89
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
90
|
+
children: [/* @__PURE__ */ c("span", {
|
|
91
|
+
className: "ttw:font-semibold",
|
|
92
|
+
children: T.primaryCta
|
|
93
|
+
}), /* @__PURE__ */ c(u, {
|
|
94
|
+
className: "ttw:size-4",
|
|
95
|
+
"aria-hidden": !0
|
|
96
|
+
})]
|
|
97
|
+
}), /* @__PURE__ */ c("span", {
|
|
98
|
+
className: "ttw:text-sm ttw:font-normal ttw:opacity-90",
|
|
99
|
+
children: T.primaryCtaSubtext
|
|
100
|
+
})]
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { f as MarketingWidgetModal };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as t } from "./index2.js";
|
|
3
|
+
import { MarketingWidgetModal as n } from "./index7.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js
|
|
6
|
+
function o({ open: o, vspLogo: s, bankingText: c, primaryCaption: l, secondaryCaption: u, providedByCaption: d, primaryModalHeader: f, howItWorksHeader: p, howItWorksSteps: m, fromDayOneHeader: h, benefits: g, appearance: _, onOpenMarketingModal: v, onCloseMarketingModal: y, onPrimaryCtaClick: b, labels: x, testIds: S }) {
|
|
7
|
+
let C = {
|
|
8
|
+
...t,
|
|
9
|
+
...x
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
12
|
+
"data-testid": S?.root,
|
|
13
|
+
className: "ttw:relative ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:overflow-hidden ttw:border ttw:border-border ttw:p-6",
|
|
14
|
+
style: {
|
|
15
|
+
backgroundColor: _.cardBackgroundColor,
|
|
16
|
+
borderRadius: _.borderRadius,
|
|
17
|
+
boxShadow: _.boxShadow
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ a("div", {
|
|
21
|
+
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
22
|
+
children: [/* @__PURE__ */ i("img", {
|
|
23
|
+
src: s.src,
|
|
24
|
+
alt: s.alt,
|
|
25
|
+
height: 40,
|
|
26
|
+
width: s.width,
|
|
27
|
+
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
28
|
+
}), /* @__PURE__ */ i("p", {
|
|
29
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
30
|
+
children: c
|
|
31
|
+
})]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ i("p", {
|
|
34
|
+
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
+
children: d
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ a("div", {
|
|
38
|
+
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
39
|
+
children: [/* @__PURE__ */ i("p", {
|
|
40
|
+
className: "ttw:text-xl ttw:font-semibold",
|
|
41
|
+
style: { color: _.primaryColor },
|
|
42
|
+
children: l
|
|
43
|
+
}), /* @__PURE__ */ i("p", {
|
|
44
|
+
className: "ttw:leading-snug",
|
|
45
|
+
style: { color: _.primaryColor },
|
|
46
|
+
children: u
|
|
47
|
+
})]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ a("div", {
|
|
50
|
+
className: "ttw:flex ttw:flex-wrap ttw:gap-3",
|
|
51
|
+
children: [/* @__PURE__ */ i(e, {
|
|
52
|
+
type: "button",
|
|
53
|
+
"data-testid": S?.applyNowButton,
|
|
54
|
+
onClick: b,
|
|
55
|
+
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
56
|
+
style: {
|
|
57
|
+
backgroundColor: _.primaryColor,
|
|
58
|
+
color: _.primaryContrastColor
|
|
59
|
+
},
|
|
60
|
+
children: C.applyNow
|
|
61
|
+
}), /* @__PURE__ */ i(e, {
|
|
62
|
+
type: "button",
|
|
63
|
+
variant: "outline",
|
|
64
|
+
"data-testid": S?.learnMoreButton,
|
|
65
|
+
onClick: v,
|
|
66
|
+
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light",
|
|
67
|
+
children: C.learnMore
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}), /* @__PURE__ */ i(n, {
|
|
72
|
+
open: o,
|
|
73
|
+
vspLogo: s,
|
|
74
|
+
providedByCaption: d,
|
|
75
|
+
primaryModalHeader: f,
|
|
76
|
+
howItWorksHeader: p,
|
|
77
|
+
howItWorksSteps: m,
|
|
78
|
+
fromDayOneHeader: h,
|
|
79
|
+
benefits: g,
|
|
80
|
+
appearance: _,
|
|
81
|
+
onClose: y,
|
|
82
|
+
onPrimaryCtaClick: b,
|
|
83
|
+
labels: x,
|
|
84
|
+
testIds: S?.modal
|
|
85
|
+
})] });
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { o as MarketingWidget };
|
package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getBankAccountTransactionsQueryKey as e, getBankAccountsQueryKey as t, getReceivablesIdHistoryQueryKey as n, getReceivablesIdQueryKey as r, getReceivablesQueryKey as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js
|
|
5
|
-
var o = ({ client:
|
|
5
|
+
var o = ({ client: e, organizationId: n }) => t({
|
|
6
|
+
client: e,
|
|
7
|
+
headers: a(n)
|
|
8
|
+
}), s = ({ client: t, organizationId: n, bankAccountId: r }) => e({
|
|
6
9
|
client: t,
|
|
7
|
-
headers:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
headers: a(n),
|
|
11
|
+
path: { id: r }
|
|
12
|
+
}), c = ({ client: e, organizationId: t }) => {
|
|
13
|
+
let [n] = i({
|
|
14
|
+
client: e,
|
|
15
|
+
headers: a(t)
|
|
16
|
+
}), r = { ...n };
|
|
17
|
+
return delete r.query, [r];
|
|
18
|
+
}, l = ({ client: e, organizationId: t, receivableId: n }) => r({
|
|
19
|
+
client: e,
|
|
20
|
+
headers: a(t),
|
|
21
|
+
path: { receivable_id: n }
|
|
22
|
+
}), u = ({ client: e, organizationId: t, receivableId: r }) => n({
|
|
23
|
+
client: e,
|
|
24
|
+
headers: a(t),
|
|
21
25
|
path: { receivable_id: r }
|
|
22
|
-
}), u = ({ client: t, organizationId: n, receivableId: i }) => r({
|
|
23
|
-
client: t,
|
|
24
|
-
headers: e(n),
|
|
25
|
-
path: { receivable_id: i }
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { s as bankAccountTransactionsInvalidationKey, o as bankAccountsInvalidationKey, u as receivableHistoryInvalidationKey, l as receivableInvalidationKey, c as receivablesInvalidationKey };
|