@stakekit/widget 0.0.275 → 0.0.277
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/bundle/Codec-DJMwdgB9.js +1 -0
- package/dist/bundle/{MaybeAsync-Ckzmgrqr.js → MaybeAsync-DQF5lNPa.js} +1 -1
- package/dist/bundle/{build-BMMgmQqw.js → build-CcaOMxqz.js} +1 -1
- package/dist/bundle/{build-BNPMa-vT.js → build-Dzd_3NK0.js} +1 -1
- package/dist/bundle/{cardano-connector-DKXfujiC.js → cardano-connector-Vvgvc_SR.js} +2 -2
- package/dist/bundle/cosmos-connector-meta-Ck8JH12i.js +1 -0
- package/dist/bundle/{createConnector-BrxGIkT7.js → createConnector-pbKKdb_k.js} +2 -2
- package/dist/bundle/{images-BMN9-6Cl.js → images-qNtx67Rl.js} +1 -1
- package/dist/bundle/index.bundle.css +1 -1
- package/dist/bundle/index.bundle.js +52 -52
- package/dist/bundle/{ledger-connector-DmvRDcyN.js → ledger-connector-C4GRsXg2.js} +2 -2
- package/dist/bundle/{ledger-live-connector-meta-DDQWxYWw.js → ledger-live-connector-meta-DbuxO2yY.js} +1 -1
- package/dist/bundle/{misc-BLlpZ6ih.js → misc-BtIN6y6p.js} +1 -1
- package/dist/bundle/safe-connector-Bwgtw9lc.js +1 -0
- package/dist/bundle/solana-connector-CaIkxhTb.js +1 -0
- package/dist/bundle/{substrate-connector-BKHfZY_J.js → substrate-connector-BDRBscm1.js} +1 -1
- package/dist/bundle/{ton-connector-BRAeK9Od.js → ton-connector-CnNKzHtr.js} +2 -2
- package/dist/bundle/{transaction-ixhTmhET.js → transaction-DB7k-q8u.js} +1 -1
- package/dist/bundle/{tron-connector-Cr2j2DtV.js → tron-connector-C5KUqegL.js} +2 -2
- package/dist/bundle/tx-DygTArs0.js +1 -0
- package/dist/bundle/{wallet-manager-B2J-l9Hd.js → wallet-manager-C9fisl4Y.js} +2 -2
- package/dist/package/{Codec-Byh8iois.js → Codec-Bae2iyFH.js} +1 -1
- package/dist/package/{MaybeAsync-BZLAl2bE.js → MaybeAsync-DXWsPM9n.js} +1 -1
- package/dist/package/{build-jVm_Imk7.js → build-CYy6v80s.js} +1 -1
- package/dist/package/{build-BxgetfN5.js → build-GgZW6uL5.js} +2 -2
- package/dist/package/{cardano-connector-DPlMH8wa.js → cardano-connector-CchOT0g5.js} +3 -3
- package/dist/package/{cosmos-connector-meta-MR5we2DB.js → cosmos-connector-meta-Dtfahon-.js} +2 -2
- package/dist/package/{createConnector-c-2Ie22W.js → createConnector-D-p8-Ebj.js} +1 -10
- package/dist/package/{images-0ZMBvxwm.js → images-B0-tGuTw.js} +1 -1
- package/dist/package/index.package.css +1335 -1265
- package/dist/package/index.package.js +5253 -5246
- package/dist/package/{ledger-connector-Cf6yV8eL.js → ledger-connector-BhbNzz5z.js} +5 -5
- package/dist/package/{ledger-live-connector-meta-CIDYYFrg.js → ledger-live-connector-meta-C4-iTYoS.js} +3 -3
- package/dist/package/{misc-Erb32S3W.js → misc-DFHb1ynZ.js} +1 -1
- package/dist/package/{safe-connector-B8DuxkSp.js → safe-connector-CAgz56zm.js} +2 -2
- package/dist/package/{solana-connector-BgSU_Au0.js → solana-connector-C4-3zQ0W.js} +2 -2
- package/dist/package/{substrate-connector-CfrmkJYW.js → substrate-connector-WYvMgtq6.js} +2 -2
- package/dist/package/{ton-connector-tEtLRW28.js → ton-connector-DGVU07fk.js} +4 -4
- package/dist/package/{transaction-BaxD0vuC.js → transaction-BhfOz9qC.js} +2 -2
- package/dist/package/{tron-connector-DGBu9r65.js → tron-connector-Bx8ow-to.js} +4 -4
- package/dist/package/tx-DQaheDj7.js +3 -0
- package/dist/package/{wallet-manager-D5jYaNnr.js → wallet-manager-Bf0VaUFt.js} +10 -10
- package/dist/types/components/atoms/box/index.d.ts +3 -3
- package/dist/types/components/atoms/button/styles.css.d.ts +3 -0
- package/dist/types/components/atoms/divider/styles.css.d.ts +1 -3
- package/dist/types/components/atoms/max-button/styles.css.d.ts +2 -8
- package/dist/types/components/atoms/select-modal/styles.css.d.ts +1 -9
- package/dist/types/components/atoms/token-icon/network-icon-image/index.d.ts +2 -1
- package/dist/types/components/molecules/estimated-reward-amounts/index.d.ts +6 -0
- package/dist/types/components/molecules/summary-item/index.css.d.ts +21 -15
- package/dist/types/domain/types/yields.d.ts +1 -2
- package/dist/types/hooks/api/use-dashboard-yield-catalog.d.ts +1 -2
- package/dist/types/hooks/api/use-multi-yields.d.ts +4 -2
- package/dist/types/hooks/api/use-yield-summaries.d.ts +0 -5
- package/dist/types/pages/complete/hooks/use-complete.hook.d.ts +2 -0
- package/dist/types/pages/complete/state/index.d.ts +2 -0
- package/dist/types/pages/components/page-cta.d.ts +11 -0
- package/dist/types/pages/details/activity-page/components/activity-filters/styles.css.d.ts +1 -1
- package/dist/types/pages/details/earn-page/components/select-token-section/styles.css.d.ts +6 -2
- package/dist/types/pages/details/earn-page/components/select-yield-section/styles.css.d.ts +1 -0
- package/dist/types/pages/details/earn-page/state/types.d.ts +7 -6
- package/dist/types/pages/details/earn-page/state/use-get-init-yield.d.ts +3 -1
- package/dist/types/pages/details/earn-page/state/use-init-yield.d.ts +3 -1
- package/dist/types/pages/review/hooks/use-action-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-pending-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-stake-review.hook.d.ts +6 -0
- package/dist/types/pages/review/hooks/use-unstake-review.hook.d.ts +2 -0
- package/dist/types/pages/review/pages/common-page/common.page.d.ts +7 -1
- package/dist/types/pages/review/pages/common-page/components/review-top-section.d.ts +5 -1
- package/dist/types/pages/steps/hooks/use-steps.hook.d.ts +2 -0
- package/dist/types/pages-dashboard/common/components/styles.css.d.ts +2 -4
- package/dist/types/pages-dashboard/common/components/tabs/styles.css.d.ts +8 -7
- package/dist/types/pages-dashboard/overview/earn-details/earn-details-formatters.d.ts +2 -0
- package/dist/types/pages-dashboard/overview/earn-page/styles.css.d.ts +4 -8
- package/dist/types/pages-dashboard/overview/positions/styles.css.d.ts +3 -1
- package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts +0 -4
- package/dist/types/providers/theme-wrapper.d.ts +7 -0
- package/dist/types/styles/theme/atoms.css.d.ts +3 -3
- package/dist/types/styles/theme/contract.css.d.ts +7 -0
- package/dist/types/styles/theme/properties.d.ts +21 -0
- package/dist/types/styles/theme/themes.d.ts +14 -0
- package/dist/types/styles/tokens/colors/contract.d.ts +7 -0
- package/dist/types/translation/resources.d.ts +4 -0
- package/dist/types/utils/formatters.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/website/assets/Codec-C8kGgbSv.js +1 -0
- package/dist/website/assets/{basic-AvmmQyRT.js → basic-CjEpjfzf.js} +1 -1
- package/dist/website/assets/{basic-B4L21H7R.js → basic-pwmIJ5Ws.js} +1 -1
- package/dist/website/assets/{browser-CD2gtnKg.js → browser-CCqMUd7Y.js} +1 -1
- package/dist/website/assets/{build-CEL1SZmV.js → build-B7EKreOf.js} +1 -1
- package/dist/website/assets/{build-DWB27dsZ.js → build-BJXYN5Yd.js} +1 -1
- package/dist/website/assets/{cardano-connector-BNJvqm1_.js → cardano-connector-Cpx-YJd6.js} +2 -2
- package/dist/website/assets/{core-NRhVeH3P.js → core-CJ6UoY0G.js} +2 -2
- package/dist/website/assets/{createConnector-BcHSC56W.js → createConnector-mvBxgXDZ.js} +2 -2
- package/dist/website/assets/{dist-CH4nKZqs.js → dist-BTQzphBJ.js} +1 -1
- package/dist/website/assets/{dist-DRLRXyTA.js → dist-DUXhuB4w.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +1 -0
- package/dist/website/assets/{esm-CX7v7VH6.js → esm-CU6m2Mgh.js} +1 -1
- package/dist/website/assets/{exports-CZja-uIB.js → exports-C-Rr_VQ2.js} +1 -1
- package/dist/website/assets/index-DOaPAEx0.css +1 -0
- package/dist/website/assets/index-STnzu3ZH.js +2044 -0
- package/dist/website/assets/{index.es-C4PtkNtC.js → index.es-DfIWVmF0.js} +2 -2
- package/dist/website/assets/{ledger-connector-CQI9gS0Q.js → ledger-connector-BL2CqkDZ.js} +2 -2
- package/dist/website/assets/{receive-D87X5CO9.js → receive-DbQB8Kb0.js} +1 -1
- package/dist/website/assets/{registry-DFrHgvrU.js → registry-DQZCfZdW.js} +1 -1
- package/dist/website/assets/safe-connector-DpMirNdU.js +1 -0
- package/dist/website/assets/{socials-DlOk7Wls.js → socials-CVEdW2YA.js} +1 -1
- package/dist/website/assets/solana-connector-D8iHz3KE.js +1 -0
- package/dist/website/assets/{substrate-connector-DfJfljNz.js → substrate-connector-DzMk8xI3.js} +1 -1
- package/dist/website/assets/{ton-connector-DA1-w57X.js → ton-connector-DkGy3-Cc.js} +2 -2
- package/dist/website/assets/{tron-connector-BTe1GdWY.js → tron-connector-CK8wKQTX.js} +3 -3
- package/dist/website/assets/tx-4iZZqojA.js +1 -0
- package/dist/website/assets/{wallet-manager-pYzGZQVw.js → wallet-manager-_pvCvRVJ.js} +4 -4
- package/dist/website/assets/{wui-qr-code-BgRoILGj.js → wui-qr-code-DvTvu_mf.js} +1 -1
- package/dist/website/index.html +4 -4
- package/package.json +1 -1
- package/dist/bundle/Codec-FOvoaP2K.js +0 -1
- package/dist/bundle/cosmos-connector-meta-DO5i3lCd.js +0 -1
- package/dist/bundle/safe-connector-BgDwaGsX.js +0 -1
- package/dist/bundle/solana-connector-h5iUra8H.js +0 -1
- package/dist/bundle/tx-C-_PyHR9.js +0 -1
- package/dist/package/tx-DpCUKNN4.js +0 -3
- package/dist/types/hooks/api/use-token-list-yields.d.ts +0 -16
- package/dist/types/pages/components/footer-outlet/context.d.ts +0 -20
- package/dist/types/pages/components/footer-outlet/index.d.ts +0 -1
- package/dist/types/pages/components/footer-outlet/styles.css.d.ts +0 -1
- package/dist/types/pages-dashboard/common/components/footer-outlet/index.d.ts +0 -1
- package/dist/website/assets/Codec-D4K5RIsS.js +0 -1
- package/dist/website/assets/en_US-IFPOGBSL-DcKUUZBp.js +0 -1
- package/dist/website/assets/index-BEIkkHR9.js +0 -2044
- package/dist/website/assets/index-BmH6Rgkr.css +0 -1
- package/dist/website/assets/safe-connector-D5A7hhAW.js +0 -1
- package/dist/website/assets/solana-connector-C1qGbaG8.js +0 -1
- package/dist/website/assets/tx-zX2fdmDi.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PageCta } from "../../components/page-cta";
|
|
1
2
|
export declare const usePendingActionReview: () => {
|
|
2
3
|
integrationData: import("purify-ts/Maybe").Maybe<import("../../../domain/types/yields").Yield>;
|
|
3
4
|
title: import("purify-ts/Maybe").Maybe<string>;
|
|
@@ -29,4 +30,5 @@ export declare const usePendingActionReview: () => {
|
|
|
29
30
|
};
|
|
30
31
|
isGasCheckWarning: boolean;
|
|
31
32
|
gasCheckLoading: boolean;
|
|
33
|
+
cta: PageCta;
|
|
32
34
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
|
+
import type { PageCta } from "../../components/page-cta";
|
|
2
3
|
export declare const useStakeReview: () => {
|
|
3
4
|
token: import("purify-ts/Maybe").Maybe<import("../../../domain/types/tokens").TokenDto>;
|
|
4
5
|
amount: string;
|
|
5
6
|
fee: string;
|
|
6
7
|
interestRate: string;
|
|
8
|
+
estimatedRewardAmounts: import("purify-ts/Maybe").Maybe<{
|
|
9
|
+
earnYearly: string;
|
|
10
|
+
earnMonthly: string;
|
|
11
|
+
}>;
|
|
7
12
|
yieldType: string;
|
|
8
13
|
rewardToken: import("purify-ts/Maybe").Maybe<{
|
|
9
14
|
logoUri: string;
|
|
@@ -102,4 +107,5 @@ export declare const useStakeReview: () => {
|
|
|
102
107
|
kycProviderName: string | null;
|
|
103
108
|
kycStatusIsChecking: boolean;
|
|
104
109
|
onKycStatusRefresh: () => Promise<import("@tanstack/react-query").QueryObserverResult<import("../../../generated/api/yield").KycStatusResponseDto, Error>>;
|
|
110
|
+
cta: PageCta;
|
|
105
111
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
|
+
import type { PageCta } from "../../components/page-cta";
|
|
2
3
|
export declare const useUnstakeActionReview: () => {
|
|
3
4
|
integrationData: import("purify-ts/Maybe").Maybe<import("../../../domain/types/yields").Yield>;
|
|
4
5
|
title: Maybe<string>;
|
|
@@ -55,4 +56,5 @@ export declare const useUnstakeActionReview: () => {
|
|
|
55
56
|
kycProviderName: string | null;
|
|
56
57
|
kycStatusIsChecking: boolean;
|
|
57
58
|
onKycStatusRefresh: () => Promise<import("@tanstack/react-query").QueryObserverResult<import("../../../generated/api/yield").KycStatusResponseDto, Error>>;
|
|
59
|
+
cta: PageCta;
|
|
58
60
|
};
|
|
@@ -3,6 +3,7 @@ import type { ComponentProps, ReactNode } from "react";
|
|
|
3
3
|
import type { RewardTokenDetails } from "../../../../components/molecules/reward-token-details";
|
|
4
4
|
import type { TokenDto, YieldTokenDto } from "../../../../domain/types/tokens";
|
|
5
5
|
import { MetaInfo } from "../../../components/meta-info";
|
|
6
|
+
import { type PageCta } from "../../../components/page-cta";
|
|
6
7
|
import type { FeesBps } from "../../types";
|
|
7
8
|
import ReviewTopSection from "./components/review-top-section";
|
|
8
9
|
export type MetaInfoProps = {
|
|
@@ -19,6 +20,10 @@ type ReviewPageProps = {
|
|
|
19
20
|
metadata: ComponentProps<typeof ReviewTopSection>["metadata"];
|
|
20
21
|
info: ReactNode;
|
|
21
22
|
rewardTokenDetailsProps: Maybe<ComponentProps<typeof RewardTokenDetails>>;
|
|
23
|
+
estimatedRewardAmounts?: Maybe<{
|
|
24
|
+
earnYearly: string;
|
|
25
|
+
earnMonthly: string;
|
|
26
|
+
}>;
|
|
22
27
|
isGasCheckError: boolean;
|
|
23
28
|
loading?: boolean;
|
|
24
29
|
depositFee: Maybe<FeesBps>;
|
|
@@ -27,6 +32,7 @@ type ReviewPageProps = {
|
|
|
27
32
|
commissionFee: Maybe<string>;
|
|
28
33
|
notice?: ReactNode;
|
|
29
34
|
feeConfigLoading?: boolean;
|
|
35
|
+
cta: PageCta;
|
|
30
36
|
} & MetaInfoProps;
|
|
31
|
-
export declare const ReviewPage: ({ fee, title, token, metadata, info, rewardTokenDetailsProps, isGasCheckError, loading, depositFee, managementFee, performanceFee, feeConfigLoading, commissionFee, notice, ...rest }: ReviewPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const ReviewPage: ({ fee, title, token, metadata, info, rewardTokenDetailsProps, estimatedRewardAmounts, isGasCheckError, loading, depositFee, managementFee, performanceFee, feeConfigLoading, commissionFee, notice, cta, ...rest }: ReviewPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
38
|
export {};
|
|
@@ -9,6 +9,10 @@ type Props = {
|
|
|
9
9
|
metadata: Maybe<ComponentProps<typeof TokenIcon>["metadata"]>;
|
|
10
10
|
info: ReactNode;
|
|
11
11
|
rewardTokenDetailsProps?: Maybe<ComponentProps<typeof RewardTokenDetails>>;
|
|
12
|
+
estimatedRewardAmounts?: Maybe<{
|
|
13
|
+
earnYearly: string;
|
|
14
|
+
earnMonthly: string;
|
|
15
|
+
}>;
|
|
12
16
|
};
|
|
13
|
-
declare const ReviewTopSection: ({ title, token, metadata, info, rewardTokenDetailsProps, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const ReviewTopSection: ({ title, token, metadata, info, rewardTokenDetailsProps, estimatedRewardAmounts, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export default ReviewTopSection;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ActionDto } from "../../../domain/types/action";
|
|
2
2
|
import type { TokenDto, YieldTokenDto } from "../../../domain/types/tokens";
|
|
3
3
|
import type { useProvidersDetails } from "../../../hooks/use-provider-details";
|
|
4
|
+
import type { PageCta } from "../../components/page-cta";
|
|
4
5
|
export declare const useSteps: ({ inputToken, session, onSignSuccess, providersDetails, }: {
|
|
5
6
|
onSignSuccess?: () => void;
|
|
6
7
|
session: ActionDto;
|
|
@@ -20,6 +21,7 @@ export declare const useSteps: ({ inputToken, session, onSignSuccess, providersD
|
|
|
20
21
|
done: boolean;
|
|
21
22
|
};
|
|
22
23
|
}[];
|
|
24
|
+
cta: PageCta;
|
|
23
25
|
};
|
|
24
26
|
export declare enum TxStateEnum {
|
|
25
27
|
SIGN_IDLE = 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const wrapper: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
default: {
|
|
4
|
-
borderRadius: "
|
|
4
|
+
borderRadius: "14px";
|
|
5
5
|
};
|
|
6
6
|
utila: {
|
|
7
7
|
borderRadius: "14px";
|
|
@@ -42,8 +42,6 @@ export declare const tabPageContainer: import("@vanilla-extract/recipes").Runtim
|
|
|
42
42
|
export declare const tabPageDivider: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
43
43
|
variant: {
|
|
44
44
|
default: string[];
|
|
45
|
-
utila:
|
|
46
|
-
background: "#e4e4e7";
|
|
47
|
-
}[];
|
|
45
|
+
utila: string[];
|
|
48
46
|
};
|
|
49
47
|
}>;
|
|
@@ -3,7 +3,7 @@ export declare const tabsGroupDivider: string;
|
|
|
3
3
|
export declare const tab: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
4
|
variant: {
|
|
5
5
|
default: {
|
|
6
|
-
borderRadius: "
|
|
6
|
+
borderRadius: "8px";
|
|
7
7
|
padding: "8px 16px";
|
|
8
8
|
}[];
|
|
9
9
|
utila: {
|
|
@@ -22,9 +22,7 @@ export declare const tab: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
22
22
|
export declare const tabBorder: string;
|
|
23
23
|
export declare const tabContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
24
24
|
variant: {
|
|
25
|
-
default: {
|
|
26
|
-
minWidth: "74px";
|
|
27
|
-
};
|
|
25
|
+
default: {};
|
|
28
26
|
utila: {};
|
|
29
27
|
porto: {};
|
|
30
28
|
finery: {
|
|
@@ -37,12 +35,13 @@ export declare const tabText: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
37
35
|
selected: {};
|
|
38
36
|
};
|
|
39
37
|
variant: {
|
|
40
|
-
default: {
|
|
38
|
+
default: (string | {
|
|
39
|
+
fontSize: "14px";
|
|
40
|
+
})[];
|
|
41
41
|
utila: (string | {
|
|
42
42
|
fontSize: "14px";
|
|
43
43
|
})[];
|
|
44
44
|
porto: (string | {
|
|
45
|
-
color: "#87899C";
|
|
46
45
|
fontSize: "14px";
|
|
47
46
|
})[];
|
|
48
47
|
};
|
|
@@ -51,7 +50,9 @@ export declare const tabsContainer: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
51
50
|
variant: {
|
|
52
51
|
default: {
|
|
53
52
|
gap: "4px";
|
|
54
|
-
padding: "
|
|
53
|
+
padding: "8px";
|
|
54
|
+
paddingLeft: "24px";
|
|
55
|
+
paddingRight: "24px";
|
|
55
56
|
};
|
|
56
57
|
utila: {
|
|
57
58
|
gap: "4px";
|
|
@@ -5,6 +5,7 @@ export declare const formatNetworkName: (network: string) => string;
|
|
|
5
5
|
export declare const formatDisplayTokenSymbol: (yieldDto: Yield) => string;
|
|
6
6
|
export declare const formatRewardRateLabel: (yieldDto: Yield, t: TFunction) => string;
|
|
7
7
|
export declare const formatRewardRate: (effectiveRewardRate: ReturnType<typeof getEffectiveYieldRewardRateDetails>, yieldDto: Yield) => string | null;
|
|
8
|
+
export declare const formatMinStakeLabel: (yieldDto: Yield, t: TFunction) => string;
|
|
8
9
|
export declare const formatMinStake: (yieldDto: Yield, t: TFunction) => {
|
|
9
10
|
kpiPrimaryEligible: boolean;
|
|
10
11
|
value: string;
|
|
@@ -16,6 +17,7 @@ export declare const formatProviderStatus: (status: string | null | undefined) =
|
|
|
16
17
|
export declare const formatProviderWebsite: (website: string) => string;
|
|
17
18
|
export declare const formatProviderWebsiteHref: (website: string) => string;
|
|
18
19
|
export declare const formatRewardTokenLabel: (yieldDto: Yield) => string;
|
|
20
|
+
export declare const formatPricePerShare: (yieldDto: Yield) => string | null;
|
|
19
21
|
export declare const formatCooldownDays: (days: number, t: TFunction) => string;
|
|
20
22
|
export declare const formatRewardClaiming: (yieldDto: Yield, t: TFunction) => string;
|
|
21
23
|
export declare const formatOptionalDays: (days: number | undefined, t: TFunction) => string | null;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
export declare const container: string;
|
|
2
2
|
export declare const changeButton: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
3
|
variant: {
|
|
4
|
-
default:
|
|
5
|
-
utila:
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
porto: {
|
|
9
|
-
color: "#AB95FF";
|
|
10
|
-
};
|
|
4
|
+
default: string;
|
|
5
|
+
utila: string;
|
|
6
|
+
porto: string;
|
|
11
7
|
finery: {};
|
|
12
8
|
};
|
|
13
9
|
}>;
|
|
14
10
|
export declare const selectTokenTitleContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
15
11
|
variant: {
|
|
16
|
-
default:
|
|
12
|
+
default: string;
|
|
17
13
|
utila: string;
|
|
18
14
|
porto: string;
|
|
19
15
|
};
|
|
@@ -11,7 +11,9 @@ export declare const sectionHeader: string;
|
|
|
11
11
|
export declare const sectionTitle: string;
|
|
12
12
|
export declare const positionsTitle: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
13
13
|
variant: {
|
|
14
|
-
default:
|
|
14
|
+
default: {
|
|
15
|
+
fontSize: "16px";
|
|
16
|
+
};
|
|
15
17
|
utila: {
|
|
16
18
|
fontSize: "16px";
|
|
17
19
|
};
|
package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export declare const shouldInitializePositionDetailsStakeState: ({ positionYieldId, selectedEarnYieldId, }: {
|
|
2
|
-
positionYieldId: string | null;
|
|
3
|
-
selectedEarnYieldId: string | null;
|
|
4
|
-
}) => boolean;
|
|
5
1
|
export declare const PositionDetailsStakeActions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import type { PropsWithChildren } from "react";
|
|
2
|
+
import { lightTheme } from "../styles/theme/themes";
|
|
3
|
+
import type { RecursivePartial } from "../types/utils";
|
|
4
|
+
import type { SettingsContextType } from "./settings/types";
|
|
5
|
+
export declare const getThemeOverrides: ({ baseTheme, variant, }: {
|
|
6
|
+
baseTheme: typeof lightTheme;
|
|
7
|
+
variant: SettingsContextType["variant"];
|
|
8
|
+
}) => RecursivePartial<typeof lightTheme>;
|
|
2
9
|
export declare const ThemeWrapper: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,9 +14,9 @@ export declare const atoms: ((props: {
|
|
|
14
14
|
readonly borderWidth?: 1 | 2 | 3 | 0.5 | undefined;
|
|
15
15
|
readonly borderStyle?: "solid" | undefined;
|
|
16
16
|
readonly overflowWrap?: "normal" | "break-word" | "anywhere" | undefined;
|
|
17
|
-
readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
18
|
-
readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
19
|
-
readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
17
|
+
readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
18
|
+
readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
19
|
+
readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
readonly display?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | {
|
|
22
22
|
mobile?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | undefined;
|
|
@@ -12,6 +12,7 @@ export declare const vars: {
|
|
|
12
12
|
backgroundMuted: `var(--${string})`;
|
|
13
13
|
tokenSelectBackground: `var(--${string})`;
|
|
14
14
|
tokenSelectHoverBackground: `var(--${string})`;
|
|
15
|
+
tokenSelectBorder: `var(--${string})`;
|
|
15
16
|
tokenSelect: `var(--${string})`;
|
|
16
17
|
skeletonLoaderBase: `var(--${string})`;
|
|
17
18
|
skeletonLoaderHighlight: `var(--${string})`;
|
|
@@ -40,6 +41,12 @@ export declare const vars: {
|
|
|
40
41
|
disabledButtonBackground: `var(--${string})`;
|
|
41
42
|
dashboardDetailsSectionBackground: `var(--${string})`;
|
|
42
43
|
summaryItemBackground: `var(--${string})`;
|
|
44
|
+
summaryLabelStakedBackground: `var(--${string})`;
|
|
45
|
+
summaryLabelStakedColor: `var(--${string})`;
|
|
46
|
+
summaryLabelApyBackground: `var(--${string})`;
|
|
47
|
+
summaryLabelApyColor: `var(--${string})`;
|
|
48
|
+
summaryLabelAvailableBackground: `var(--${string})`;
|
|
49
|
+
summaryLabelAvailableColor: `var(--${string})`;
|
|
43
50
|
connectKit: {
|
|
44
51
|
accentColor: `var(--${string})`;
|
|
45
52
|
accentColorForeground: `var(--${string})`;
|
|
@@ -88,6 +88,7 @@ export declare const unresponsiveProperties: {
|
|
|
88
88
|
backgroundMuted: `var(--${string})`;
|
|
89
89
|
tokenSelectBackground: `var(--${string})`;
|
|
90
90
|
tokenSelectHoverBackground: `var(--${string})`;
|
|
91
|
+
tokenSelectBorder: `var(--${string})`;
|
|
91
92
|
tokenSelect: `var(--${string})`;
|
|
92
93
|
skeletonLoaderBase: `var(--${string})`;
|
|
93
94
|
skeletonLoaderHighlight: `var(--${string})`;
|
|
@@ -116,6 +117,12 @@ export declare const unresponsiveProperties: {
|
|
|
116
117
|
disabledButtonBackground: `var(--${string})`;
|
|
117
118
|
dashboardDetailsSectionBackground: `var(--${string})`;
|
|
118
119
|
summaryItemBackground: `var(--${string})`;
|
|
120
|
+
summaryLabelStakedBackground: `var(--${string})`;
|
|
121
|
+
summaryLabelStakedColor: `var(--${string})`;
|
|
122
|
+
summaryLabelApyBackground: `var(--${string})`;
|
|
123
|
+
summaryLabelApyColor: `var(--${string})`;
|
|
124
|
+
summaryLabelAvailableBackground: `var(--${string})`;
|
|
125
|
+
summaryLabelAvailableColor: `var(--${string})`;
|
|
119
126
|
connectKit: {
|
|
120
127
|
accentColor: `var(--${string})`;
|
|
121
128
|
accentColorForeground: `var(--${string})`;
|
|
@@ -162,6 +169,7 @@ export declare const unresponsiveProperties: {
|
|
|
162
169
|
backgroundMuted: `var(--${string})`;
|
|
163
170
|
tokenSelectBackground: `var(--${string})`;
|
|
164
171
|
tokenSelectHoverBackground: `var(--${string})`;
|
|
172
|
+
tokenSelectBorder: `var(--${string})`;
|
|
165
173
|
tokenSelect: `var(--${string})`;
|
|
166
174
|
skeletonLoaderBase: `var(--${string})`;
|
|
167
175
|
skeletonLoaderHighlight: `var(--${string})`;
|
|
@@ -190,6 +198,12 @@ export declare const unresponsiveProperties: {
|
|
|
190
198
|
disabledButtonBackground: `var(--${string})`;
|
|
191
199
|
dashboardDetailsSectionBackground: `var(--${string})`;
|
|
192
200
|
summaryItemBackground: `var(--${string})`;
|
|
201
|
+
summaryLabelStakedBackground: `var(--${string})`;
|
|
202
|
+
summaryLabelStakedColor: `var(--${string})`;
|
|
203
|
+
summaryLabelApyBackground: `var(--${string})`;
|
|
204
|
+
summaryLabelApyColor: `var(--${string})`;
|
|
205
|
+
summaryLabelAvailableBackground: `var(--${string})`;
|
|
206
|
+
summaryLabelAvailableColor: `var(--${string})`;
|
|
193
207
|
connectKit: {
|
|
194
208
|
accentColor: `var(--${string})`;
|
|
195
209
|
accentColorForeground: `var(--${string})`;
|
|
@@ -236,6 +250,7 @@ export declare const unresponsiveProperties: {
|
|
|
236
250
|
backgroundMuted: `var(--${string})`;
|
|
237
251
|
tokenSelectBackground: `var(--${string})`;
|
|
238
252
|
tokenSelectHoverBackground: `var(--${string})`;
|
|
253
|
+
tokenSelectBorder: `var(--${string})`;
|
|
239
254
|
tokenSelect: `var(--${string})`;
|
|
240
255
|
skeletonLoaderBase: `var(--${string})`;
|
|
241
256
|
skeletonLoaderHighlight: `var(--${string})`;
|
|
@@ -264,6 +279,12 @@ export declare const unresponsiveProperties: {
|
|
|
264
279
|
disabledButtonBackground: `var(--${string})`;
|
|
265
280
|
dashboardDetailsSectionBackground: `var(--${string})`;
|
|
266
281
|
summaryItemBackground: `var(--${string})`;
|
|
282
|
+
summaryLabelStakedBackground: `var(--${string})`;
|
|
283
|
+
summaryLabelStakedColor: `var(--${string})`;
|
|
284
|
+
summaryLabelApyBackground: `var(--${string})`;
|
|
285
|
+
summaryLabelApyColor: `var(--${string})`;
|
|
286
|
+
summaryLabelAvailableBackground: `var(--${string})`;
|
|
287
|
+
summaryLabelAvailableColor: `var(--${string})`;
|
|
267
288
|
connectKit: {
|
|
268
289
|
accentColor: `var(--${string})`;
|
|
269
290
|
accentColorForeground: `var(--${string})`;
|
|
@@ -12,6 +12,7 @@ export declare const lightTheme: {
|
|
|
12
12
|
backgroundMuted: string;
|
|
13
13
|
tokenSelectBackground: string;
|
|
14
14
|
tokenSelectHoverBackground: string;
|
|
15
|
+
tokenSelectBorder: string;
|
|
15
16
|
tokenSelect: string;
|
|
16
17
|
skeletonLoaderBase: string;
|
|
17
18
|
skeletonLoaderHighlight: string;
|
|
@@ -40,6 +41,12 @@ export declare const lightTheme: {
|
|
|
40
41
|
disabledButtonBackground: string;
|
|
41
42
|
dashboardDetailsSectionBackground: string;
|
|
42
43
|
summaryItemBackground: string;
|
|
44
|
+
summaryLabelStakedBackground: string;
|
|
45
|
+
summaryLabelStakedColor: string;
|
|
46
|
+
summaryLabelApyBackground: string;
|
|
47
|
+
summaryLabelApyColor: string;
|
|
48
|
+
summaryLabelAvailableBackground: string;
|
|
49
|
+
summaryLabelAvailableColor: string;
|
|
43
50
|
} & {
|
|
44
51
|
connectKit: import("../tokens/connect-kit").ConnectKitTheme["colors"];
|
|
45
52
|
};
|
|
@@ -232,6 +239,7 @@ export declare const darkTheme: {
|
|
|
232
239
|
backgroundMuted: string;
|
|
233
240
|
tokenSelectBackground: string;
|
|
234
241
|
tokenSelectHoverBackground: string;
|
|
242
|
+
tokenSelectBorder: string;
|
|
235
243
|
tokenSelect: string;
|
|
236
244
|
skeletonLoaderBase: string;
|
|
237
245
|
skeletonLoaderHighlight: string;
|
|
@@ -260,6 +268,12 @@ export declare const darkTheme: {
|
|
|
260
268
|
disabledButtonBackground: string;
|
|
261
269
|
dashboardDetailsSectionBackground: string;
|
|
262
270
|
summaryItemBackground: string;
|
|
271
|
+
summaryLabelStakedBackground: string;
|
|
272
|
+
summaryLabelStakedColor: string;
|
|
273
|
+
summaryLabelApyBackground: string;
|
|
274
|
+
summaryLabelApyColor: string;
|
|
275
|
+
summaryLabelAvailableBackground: string;
|
|
276
|
+
summaryLabelAvailableColor: string;
|
|
263
277
|
} & {
|
|
264
278
|
connectKit: import("../tokens/connect-kit").ConnectKitTheme["colors"];
|
|
265
279
|
};
|
|
@@ -12,6 +12,7 @@ declare const baseColorsContract: {
|
|
|
12
12
|
backgroundMuted: string;
|
|
13
13
|
tokenSelectBackground: string;
|
|
14
14
|
tokenSelectHoverBackground: string;
|
|
15
|
+
tokenSelectBorder: string;
|
|
15
16
|
tokenSelect: string;
|
|
16
17
|
skeletonLoaderBase: string;
|
|
17
18
|
skeletonLoaderHighlight: string;
|
|
@@ -40,6 +41,12 @@ declare const baseColorsContract: {
|
|
|
40
41
|
disabledButtonBackground: string;
|
|
41
42
|
dashboardDetailsSectionBackground: string;
|
|
42
43
|
summaryItemBackground: string;
|
|
44
|
+
summaryLabelStakedBackground: string;
|
|
45
|
+
summaryLabelStakedColor: string;
|
|
46
|
+
summaryLabelApyBackground: string;
|
|
47
|
+
summaryLabelApyColor: string;
|
|
48
|
+
summaryLabelAvailableBackground: string;
|
|
49
|
+
summaryLabelAvailableColor: string;
|
|
43
50
|
};
|
|
44
51
|
export declare const colorsContract: typeof baseColorsContract & {
|
|
45
52
|
connectKit: ConnectKitTheme["colors"];
|
|
@@ -274,6 +274,7 @@ export declare const localResources: {
|
|
|
274
274
|
tvl: string;
|
|
275
275
|
risk: string;
|
|
276
276
|
min_stake: string;
|
|
277
|
+
minimum_subscription: string;
|
|
277
278
|
status: string;
|
|
278
279
|
active: string;
|
|
279
280
|
kyc: string;
|
|
@@ -288,6 +289,7 @@ export declare const localResources: {
|
|
|
288
289
|
network: string;
|
|
289
290
|
provider: string;
|
|
290
291
|
reward_token: string;
|
|
292
|
+
price_per_share: string;
|
|
291
293
|
type: string;
|
|
292
294
|
reward_schedule: string;
|
|
293
295
|
cooldown: string;
|
|
@@ -1591,6 +1593,7 @@ export declare const localResources: {
|
|
|
1591
1593
|
tvl: string;
|
|
1592
1594
|
risk: string;
|
|
1593
1595
|
min_stake: string;
|
|
1596
|
+
minimum_subscription: string;
|
|
1594
1597
|
status: string;
|
|
1595
1598
|
active: string;
|
|
1596
1599
|
kyc: string;
|
|
@@ -1605,6 +1608,7 @@ export declare const localResources: {
|
|
|
1605
1608
|
network: string;
|
|
1606
1609
|
provider: string;
|
|
1607
1610
|
reward_token: string;
|
|
1611
|
+
price_per_share: string;
|
|
1608
1612
|
type: string;
|
|
1609
1613
|
reward_schedule: string;
|
|
1610
1614
|
cooldown: string;
|
|
@@ -23,4 +23,5 @@ export declare const getFeesInUSD: ({ amount, prices, token, }: {
|
|
|
23
23
|
}) => string;
|
|
24
24
|
export declare const formatCompactNumber: (value: string | number | null | undefined) => string;
|
|
25
25
|
export declare const formatCompactUsd: (value: string | number | null | undefined) => string;
|
|
26
|
+
export declare const humanizePendingActionType: (type: string) => string;
|
|
26
27
|
export declare const capitalizeFirstLetters: (text: string) => string;
|
|
@@ -3,7 +3,6 @@ import type { Networks } from "../domain/types/chains/networks";
|
|
|
3
3
|
export declare const formatNumber: (number: string | BigNumber | number, decimals?: number) => string;
|
|
4
4
|
export declare const defaultFormattedNumber: (number: string | BigNumber | number) => string;
|
|
5
5
|
export declare const APToPercentage: (ap: number) => string;
|
|
6
|
-
export declare const getBackgroundColor: (stringInput: string) => string;
|
|
7
6
|
export declare const isIframe: () => boolean;
|
|
8
7
|
export declare const isLedgerDappBrowserProvider: () => boolean;
|
|
9
8
|
export declare const getNetworkLogo: (network: Networks) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,U as t,W as n}from"./createConnector-mvBxgXDZ.js";var r=e=>e,i={LT:`LT`,EQ:`EQ`,GT:`GT`},a=(e,t)=>e>t?i.GT:e<t?i.LT:i.EQ,o=e=>{switch(e){case i.LT:return-1;case i.EQ:return 0;case i.GT:return 1}},s=(e,t)=>typeof t==`bigint`?t.toString():t,c=e=>typeof e==`object`&&!!e&&!Array.isArray(e),l=(e,t)=>{let n=``;switch(typeof t){case`undefined`:n=`undefined`;break;case`object`:n=t===null?`null`:Array.isArray(t)?`an array with value `+JSON.stringify(t,s):`an object with value `+JSON.stringify(t,s);break;case`boolean`:n=`a boolean`;break;case`symbol`:n=`a symbol`;break;case`function`:n=`a function`;break;case`bigint`:n=`a bigint with value ${t.toString()}`}return n||=`a ${typeof t} with value ${JSON.stringify(t,s)}`,`Expected ${e}, but received ${n}`},u=e=>(Object.keys(e).length===1&&e.oneOf?.length===1&&typeof e.oneOf[0]==`object`&&(Object.assign(e,e.oneOf[0]),delete e.oneOf),e),d=e=>{if(Array.isArray(e.oneOf))for(let t=0;t<e.oneOf.length;t++){let n=e.oneOf[t];if(typeof n==`object`&&n.oneOf)return e.oneOf.splice(t,1),e.oneOf.push(...n.oneOf),f(e)}return e},f=e=>(d(e),u(e),e),p={interface(e){let r=Object.keys(e),i=i=>{if(!c(i))return t(l(`an object`,i));let a={};for(let n of r){if(!Object.prototype.hasOwnProperty.call(i,n)&&!e[n]._isOptional)return t(`Problem with property "${n}": it does not exist in received object ${JSON.stringify(i,s)}`);let r=e[n].decode(i[n]);if(r.isLeft())return t(`Problem with the value of property "${n}": ${r.extract()}`);let o=r.extract();o!==void 0&&(a[n]=o)}return n(a)};return{decode:i,encode:t=>{let n={};for(let i of r)n[i]=e[i].encode(t[i]);return n},unsafeDecode:e=>i(e).mapLeft(Error).unsafeCoerce(),schema:()=>r.reduce((t,n)=>(e[n]._isOptional||t.required.push(n),t.properties[n]=f(e[n].schema()),t),{type:`object`,properties:{},required:[]})}},custom({decode:e,encode:t,schema:n}){return{decode:e,encode:t,unsafeDecode:t=>e(t).mapLeft(Error).unsafeCoerce(),schema:n??(()=>({}))}}},m=p.custom({decode:e=>typeof e==`string`?n(e):t(l(`a string`,e)),encode:r,schema:()=>({type:`string`})}),h=p.custom({decode:e=>typeof e==`number`?n(e):t(l(`a number`,e)),encode:r,schema:()=>({type:`number`})});p.custom({decode:e=>e===null?n(e):t(l(`a null`,e)),encode:r,schema:()=>({type:`null`})});var g=p.custom({decode:e=>e===void 0?n(e):t(l(`an undefined`,e)),encode:r}),_=e=>({...b([e,g]),schema:e.schema,_isOptional:!0}),v=p.custom({decode:e=>typeof e==`boolean`?n(e):t(l(`a boolean`,e)),encode:r,schema:()=>({type:`boolean`})}),y=p.custom({decode:n,encode:r,schema:()=>({})}),b=n=>p.custom({decode:e=>{let r=[];for(let t of n){let n=t.decode(e);if(n.isRight())return n;r.push(n.extract())}return t(`One of the following problems occured: ${r.map((e,t)=>`(${t}) ${e}`).join(`, `)}`)},encode:t=>{for(let r of n)if(e.encase(()=>r.encode(t)).mapLeft(e=>``).chain(r.decode).isRight())return r.encode(t);return t},schema:()=>({oneOf:n.map(e=>e.schema())})}),x=e=>p.custom({decode:r=>{if(Array.isArray(r)){let i=[];for(let n=0;n<r.length;n++){let a=e.decode(r[n]);if(a.isRight())i.push(a.extract());else return t(`Problem with the value at index ${n}: ${a.extract()}`)}return n(i)}else return t(l(`an array`,r))},encode:t=>t.map(e.encode),schema:()=>({type:`array`,items:e.schema()})}),S=p.custom({decode:e=>m.decode(e).chain(r=>isFinite(+r)?n(r):t(l(`a number`,e))),encode:r,schema:h.schema}),C=(e,r)=>p.custom({decode:i=>{let a={},o=e===h?S:e;if(!c(i))return t(l(`an object`,i));for(let e of Object.keys(i))if(Object.prototype.hasOwnProperty.call(i,e)){let n=o.decode(e),s=r.decode(i[e]);if(n.isRight()&&s.isRight())a[n.extract()]=s.extract();else if(n.isLeft())return t(`Problem with key type of property "${e}": ${n.extract()}`);else if(s.isLeft())return t(`Problem with the value of property "${e}": ${s.extract()}`)}return n(a)},encode:t=>{let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[e.encode(i)]=r.encode(t[i]));return n},schema:()=>({type:`object`,additionalProperties:r.schema()})});p.custom({decode:e=>m.decode(e).mapLeft(e=>`Problem with date string: ${e}`).chain(e=>Number.isNaN(Date.parse(e))?t(`Expected a valid date string, but received a string that cannot be parsed`):n(new Date(e))),encode:e=>e.toISOString(),schema:()=>({type:`string`,format:`date-time`})});export{b as a,m as c,o as d,h as i,y as l,x as n,_ as o,v as r,C as s,p as t,a as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as e}from"./chunk-CzyJ72yW.js";import{i as t,l as n,o as r,t as i}from"./lit-element-CPGuB_v8.js";import"./lit-CVrrzrGA.js";import{a,o,s,t as c}from"./class-map-BhcOy3ep.js";import"./class-map-fHNEycfA.js";import{n as l,t as u}from"./ref-CQce-LA_.js";import"./ref-Cjfeo2-0.js";import{t as ee}from"./browser-
|
|
1
|
+
import{s as e}from"./chunk-CzyJ72yW.js";import{i as t,l as n,o as r,t as i}from"./lit-element-CPGuB_v8.js";import"./lit-CVrrzrGA.js";import{a,o,s,t as c}from"./class-map-BhcOy3ep.js";import"./class-map-fHNEycfA.js";import{n as l,t as u}from"./ref-CQce-LA_.js";import"./ref-Cjfeo2-0.js";import{t as ee}from"./browser-CCqMUd7Y.js";import{A as d,C as f,E as te,F as ne,O as p,S as m,T as h,_ as re,a as g,b as ie,g as _,i as ae,j as oe,k as v,n as y,p as se,r as b,s as x,u as ce,x as S,y as C}from"./ConstantsUtil-BucnOgVd.js";import"./wui-text-D1LKVPJb.js";import{n as le,t as ue}from"./ConnectorUtil-Dbdhp6gz.js";var de=n`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as e}from"./chunk-CzyJ72yW.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,h as u,i as d,j as f,k as ee,n as p,o as m,p as te,r as ne,t as h,u as re,x as g,y as _}from"./exports-CHrRDjNC.js";import{i as v,l as y,o as ie,t as b}from"./lit-element-CPGuB_v8.js";import"./lit-CDbVcvTE.js";import{d as ae,f as oe}from"./index-
|
|
1
|
+
import{s as e}from"./chunk-CzyJ72yW.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,h as u,i as d,j as f,k as ee,n as p,o as m,p as te,r as ne,t as h,u as re,x as g,y as _}from"./exports-CHrRDjNC.js";import{i as v,l as y,o as ie,t as b}from"./lit-element-CPGuB_v8.js";import"./lit-CDbVcvTE.js";import{d as ae,f as oe}from"./index-STnzu3ZH.js";import{a as x,o as S,s as C,t as se}from"./class-map-BhcOy3ep.js";import{n as ce,t as le}from"./ref-CQce-LA_.js";import{t as ue}from"./browser-CCqMUd7Y.js";import"./wui-text-C_lTk8eD.js";var de=y`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-CzyJ72yW.js";import{i as t}from"./index-
|
|
1
|
+
import{t as e}from"./chunk-CzyJ72yW.js";import{i as t}from"./index-STnzu3ZH.js";var n=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),r=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),i=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),a=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),o=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),s=e((e=>{var t=r().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),c=e((e=>{var t=r().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),l=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),u=e((e=>{var t=i(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),d=e((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),f=e((e=>{var t=d();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),p=e(((e,t)=>{var n=f();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),m=e((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),h=e((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
2
2
|
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),g=e((e=>{var t=m(),n=h();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),_=e((e=>{var t=r(),n=u(),a=i(),o=g(),s=m(),c=7973,l=t.getBCHDigit(c);function d(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function f(e,t){return o.getCharCountIndicator(e,t)+4}function p(e,t){let n=0;return e.forEach(function(e){let r=f(e.mode,t);n+=r+e.getBitsLength()}),n}function h(t,n){for(let r=1;r<=40;r++)if(p(t,r)<=e.getCapacity(r,n,o.MIXED))return r}e.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,i){if(!s.isValid(e))throw Error(`Invalid QR Code version`);i===void 0&&(i=o.BYTE);let a=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(i===o.MIXED)return a;let c=a-f(i,e);switch(i){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,r=a.from(t,a.M);if(Array.isArray(e)){if(e.length>1)return h(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return d(n.mode,n.getLength(),r)},e.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-l>=0;)n^=c<<t.getBCHDigit(n)-l;return e<<12|n}})),v=e((e=>{var t=r(),n=1335,i=21522,a=t.getBCHDigit(n);e.getEncodedBits=function(e,r){let o=e.bit<<3|r,s=o<<10;for(;t.getBCHDigit(s)-a>=0;)s^=n<<t.getBCHDigit(s)-a;return(o<<10|s)^i}})),y=e(((e,t)=>{var n=g();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),b=e(((e,t)=>{var n=g(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),x=e(((e,t)=>{t.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}})),S=e(((e,t)=>{var n=x(),r=g();function i(e){this.mode=r.BYTE,typeof e==`string`&&(e=n(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return e*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=i})),C=e(((e,t)=>{var n=g(),i=r();function a(e){this.mode=n.KANJI,this.data=e}a.getBitsLength=function(e){return e*13},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
3
3
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=a})),w=e((e=>{var n=g(),i=y(),a=b(),o=S(),s=C(),c=h(),l=r(),u=t();function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){let t=f(c.NUMERIC,n.NUMERIC,e),r=f(c.ALPHANUMERIC,n.ALPHANUMERIC,e),i,a;return l.isKanjiModeEnabled()?(i=f(c.BYTE,n.BYTE,e),a=f(c.KANJI,n.KANJI,e)):(i=f(c.BYTE_KANJI,n.BYTE,e),a=[]),t.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function m(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return a.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return o.getBitsLength(e)}}function _(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function v(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}function x(e,t){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=m(r[o].lastCount+l.length,l.mode)-m(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=m(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,t))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function w(e,t){let r,c=n.getBestModeForData(e);if(r=n.from(t,c),r!==n.BYTE&&r.bit<c.bit)throw Error(`"`+e+`" cannot be encoded with mode `+n.toString(r)+`.
|
|
4
4
|
Suggested mode is: `+n.toString(c));switch(r===n.KANJI&&!l.isKanjiModeEnabled()&&(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new a(e);case n.KANJI:return new s(e);case n.BYTE:return new o(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(w(t,null)):t.data&&e.push(w(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=x(v(p(t,l.isKanjiModeEnabled())),n),i=u.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(_(a))},e.rawSplit=function(t){return e.fromArray(p(t,l.isKanjiModeEnabled()))}})),T=e((e=>{var t=r(),n=i(),d=a(),f=o(),m=s(),h=c(),y=l(),b=u(),x=p(),S=_(),C=v(),T=g(),E=w();function D(e,t){let n=e.size,r=h.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function O(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function k(e,t){let n=m.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function A(e,t){let n=e.size,r=S.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function j(e,t,n){let r=e.size,i=C.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function M(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function N(e,n,r){let i=new d;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),T.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(t.getSymbolTotalCodewords(e)-b.getTotalCodewordsCount(e,n))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let o=(a-i.getLengthInBits())/8;for(let e=0;e<o;e++)i.put(e%2?17:236,8);return P(i,e,n)}function P(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-b.getTotalCodewordsCount(n,r),o=b.getBlocksCount(n,r),s=o-i%o,c=Math.floor(i/o),l=Math.floor(a/o),u=l+1,d=c-l,f=new x(d),p=0,m=Array(o),h=Array(o),g=0,_=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?l:u;m[e]=_.slice(p,p+t),h[e]=f.encode(m[e]),p+=t,g=Math.max(g,t)}let v=new Uint8Array(i),y=0,S,C;for(S=0;S<g;S++)for(C=0;C<o;C++)S<m[C].length&&(v[y++]=m[C][S]);for(S=0;S<d;S++)for(C=0;C<o;C++)v[y++]=h[C][S];return v}function F(e,n,r,i){let a;if(Array.isArray(e))a=E.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=E.rawSplit(e);t=S.getBestVersionForData(n,r)}a=E.fromString(e,t||40)}else throw Error(`Invalid data`);let o=S.getBestVersionForData(a,r);if(!o)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=o;else if(n<o)throw Error(`
|