@streamlayer/react-ui 1.26.0 → 1.27.0
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/lib/app/app/Advertisement/index.d.ts +1 -0
- package/lib/app/app/Advertisement/index.js +125 -92
- package/lib/app/app/Banner/index.d.ts +6 -0
- package/lib/app/app/Banner/index.js +6 -0
- package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
- package/lib/app/app/Features/Gamification/Question.js +79 -50
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
- package/lib/app/app/Features/Gamification/Tabs.js +12 -12
- package/lib/app/app/Features/Gamification/index.d.ts +3 -0
- package/lib/app/app/Features/Gamification/index.js +56 -52
- package/lib/app/app/Features/index.d.ts +1 -0
- package/lib/app/app/Features/index.js +6 -4
- package/lib/app/app/InApp/index.d.ts +1 -0
- package/lib/app/app/InApp/index.js +44 -17
- package/lib/app/app/Insight/index.d.ts +3 -0
- package/lib/app/app/Insight/index.js +33 -30
- package/lib/app/app/Layout/index.d.ts +17 -0
- package/lib/app/app/Layout/index.js +105 -0
- package/lib/app/app/Layout/styles.d.ts +12 -0
- package/lib/app/app/Layout/styles.js +64 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/app/Notifications/styles.d.ts +18 -2
- package/lib/app/app/index.d.ts +1 -0
- package/lib/app/app/index.js +91 -85
- package/lib/app/app/story/index.js +56 -58
- package/lib/app/app/story/promotion/index.js +31 -36
- package/lib/app/app/story/promotion/styles.d.ts +3 -1
- package/lib/app/app/story/promotion/video.js +63 -81
- package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
- package/lib/app/app/story/styles.d.ts +5 -1
- package/lib/app/app/story/styles.js +36 -16
- package/lib/app/app/story/video.d.ts +5 -1
- package/lib/app/app/story/video.js +70 -33
- package/lib/app/app/useApp.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
- package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
- package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
- package/lib/app/masters/Features/Gamification/Question.js +19 -17
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/masters/Notifications/styles.d.ts +18 -2
- package/lib/app/masters/masters.d.ts +4 -1
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/tgl/styles.d.ts +3 -1
- package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
- package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
- package/lib/app/webos/Advertisement/index.js +119 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
- package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
- package/lib/app/webos/Question/index.d.ts +9 -0
- package/lib/app/webos/Question/index.js +56 -0
- package/lib/app/webos/index.d.ts +24 -0
- package/lib/app/webos/index.js +65 -0
- package/lib/app/webos/story.d.ts +9 -0
- package/lib/app/webos/story.js +74 -0
- package/lib/app/webos/styles.js +4 -0
- package/lib/app/webos/ui/Layout/index.js +78 -0
- package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
- package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
- package/lib/app/webos/ui/Sidebar/index.js +176 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
- package/lib/app/webos/ui/insight/index.d.ts +9 -0
- package/lib/app/webos/ui/insight/index.js +100 -0
- package/lib/app/webos/ui/insight/styles.d.ts +12 -0
- package/lib/app/webos/ui/insight/styles.js +51 -0
- package/lib/app/webos/useTvButton.d.ts +9 -0
- package/lib/app/webos/useTvButton.js +23 -0
- package/lib/assets/style.css +1 -1
- package/lib/hooks/analytics.d.ts +14 -0
- package/lib/hooks/showIn.d.ts +9 -0
- package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
- package/lib/hooks/useKeyboardNavigation.js +74 -0
- package/lib/index-T1iiS0ZO.js +17 -0
- package/lib/ui/advertisement/banner/index.d.ts +3 -0
- package/lib/ui/advertisement/banner/index.js +29 -17
- package/lib/ui/advertisement/banner/styles.d.ts +5 -1
- package/lib/ui/advertisement/index.d.ts +4 -1
- package/lib/ui/advertisement/index.js +56 -44
- package/lib/ui/advertisement/notification/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/index.js +50 -34
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
- package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
- package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
- package/lib/ui/advertisement/notification/styles.d.ts +18 -1
- package/lib/ui/advertisement/notification/styles.js +48 -33
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
- package/lib/ui/advertisement/overlay/index.d.ts +4 -1
- package/lib/ui/advertisement/overlay/index.js +135 -77
- package/lib/ui/gamification/detail/header/index.d.ts +2 -0
- package/lib/ui/gamification/detail/header/index.js +19 -16
- package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
- package/lib/ui/gamification/detail/header/styles.js +1 -1
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
- package/lib/ui/gamification/detail/sponsor/index.js +25 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
- package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
- package/lib/ui/gamification/points/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
- package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
- package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
- package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
- package/lib/ui/gamification/question/styles.d.ts +26 -4
- package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
- package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
- package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
- package/lib/ui/gamification/vote/index.d.ts +3 -1
- package/lib/ui/gamification/vote/index.js +160 -130
- package/lib/ui/gamification/vote/insight-details/index.js +8 -7
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/styles.d.ts +29 -4
- package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
- package/lib/ui/gamification/vote/vote-option/index.js +72 -64
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +80 -79
- package/lib/ui/modal/index.js +12 -17
- package/lib/ui/questions/insight/index.d.ts +4 -1
- package/lib/ui/questions/insight/index.js +29 -26
- package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -0
- package/lib/ui/questions/twitter/index.js +27 -19
- package/lib/ui/theme/constants.d.ts +2 -0
- package/lib/ui/theme/constants.js +2 -0
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/ui/theme/utils.d.ts +10 -0
- package/lib/ui/theme/utils.js +77 -0
- package/lib/ui/video-player/index.d.ts +10 -2
- package/lib/ui/video-player/index.js +189 -110
- package/lib/ui/video-player/styles.d.ts +36 -0
- package/lib/ui/video-player/styles.js +59 -11
- package/lib/utils/common.d.ts +6 -0
- package/lib/utils/createDemo.d.ts +12 -0
- package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
- package/lib/utils/debug/components/copyLogs.d.ts +1 -0
- package/lib/utils/debug/components/developer.d.ts +14 -0
- package/lib/utils/debug/components/envToggle.d.ts +6 -0
- package/lib/utils/debug/components/eventInput.d.ts +8 -0
- package/lib/utils/debug/components/sdkKey.d.ts +6 -0
- package/lib/utils/debug/components/styles.d.ts +1 -0
- package/lib/utils/debug/index.d.ts +36 -0
- package/lib/utils/debug/storage.d.ts +14 -0
- package/lib/utils/decorators/container.d.ts +6 -0
- package/lib/utils/decorators/container.js +5 -5
- package/lib/utils/decorators/masters.d.ts +2 -0
- package/lib/utils/decorators/styles.d.ts +2 -0
- package/lib/utils/login.d.ts +3 -0
- package/lib/utils/storage.d.ts +14 -0
- package/package.json +27 -20
- package/lib/app/tvos/Advertisement.js +0 -88
- package/lib/app/tvos/AdvertisementUI.js +0 -40
- package/lib/app/tvos/index.d.ts +0 -16
- package/lib/app/tvos/index.js +0 -23
- package/lib/app/tvos/story.d.ts +0 -6
- package/lib/app/tvos/story.js +0 -34
- package/lib/app/tvos/styles.js +0 -4
- package/lib/app/tvos/ui/Layout/index.js +0 -76
- package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
- package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
- package/lib/app/tvos/ui/Sidebar/index.js +0 -114
- /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const CloseIcon:
|
|
3
|
+
export declare const CloseIcon: {
|
|
4
|
+
__wyw_meta: unknown;
|
|
5
|
+
} & import('react').FC<{
|
|
6
|
+
name: keyof typeof import('../../../icons').icons;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
4
10
|
export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const TypeIcon:
|
|
11
|
+
export declare const TypeIcon: {
|
|
12
|
+
__wyw_meta: unknown;
|
|
13
|
+
} & import('react').FC<{
|
|
14
|
+
name: keyof typeof import('../../../icons').icons;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
className?: string;
|
|
17
|
+
}>;
|
|
6
18
|
export declare const TypeName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
7
19
|
export declare const Question: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
20
|
export declare const AnswerButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
@@ -2,9 +2,27 @@ export declare const QuestionItem: import('@linaria/react').StyledComponent<impo
|
|
|
2
2
|
export declare const QuestionCaption: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const QuestionBody: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
4
|
export declare const QuestionAction: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const QuestionActionIcon:
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare const QuestionActionIcon: {
|
|
6
|
+
__wyw_meta: unknown;
|
|
7
|
+
} & import('react').FC<{
|
|
8
|
+
name: keyof typeof import('../../icons').icons;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const QuestionCheckIcon: {
|
|
13
|
+
__wyw_meta: unknown;
|
|
14
|
+
} & import('react').FC<{
|
|
15
|
+
name: keyof typeof import('../../icons').icons;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
className?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const QuestionTypeIcon: {
|
|
20
|
+
__wyw_meta: unknown;
|
|
21
|
+
} & import('react').FC<{
|
|
22
|
+
name: keyof typeof import('../../icons').icons;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
className?: string;
|
|
25
|
+
}>;
|
|
8
26
|
export declare const QuestionTypeLabel: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
27
|
export declare const QuestionContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
28
|
export declare const QuestionSubject: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -14,4 +32,8 @@ export declare const QuestionTypeTitle: import('@linaria/react').StyledComponent
|
|
|
14
32
|
export declare const ExpiredQuestion: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
15
33
|
export declare const PlayButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
16
34
|
export declare const SkeletonContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
17
|
-
export declare const SkeletonButton:
|
|
35
|
+
export declare const SkeletonButton: {
|
|
36
|
+
__wyw_meta: unknown;
|
|
37
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
38
|
+
as?: React.ElementType;
|
|
39
|
+
}>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const Icon:
|
|
4
|
+
export declare const Icon: {
|
|
5
|
+
__wyw_meta: unknown;
|
|
6
|
+
} & import('react').FC<{
|
|
7
|
+
name: keyof typeof import('../../../icons').icons;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
export declare const ShowInContainer:
|
|
1
|
+
export declare const ShowInContainer: {
|
|
2
|
+
__wyw_meta: unknown;
|
|
3
|
+
} & import('react').FC<{
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
hiding?: boolean;
|
|
9
|
+
onAnimationEnd?: React.AnimationEventHandler;
|
|
10
|
+
} & {
|
|
11
|
+
animate?: boolean;
|
|
12
|
+
}>;
|
|
2
13
|
export declare const FeedbackContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
14
|
export declare const ShowAnimation: import('@linaria/core').LinariaClassName;
|
|
4
15
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const IconPrediction:
|
|
16
|
+
export declare const IconPrediction: {
|
|
17
|
+
__wyw_meta: unknown;
|
|
18
|
+
} & import('react').FC<{
|
|
19
|
+
name: keyof typeof import('../../../icons').icons;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
className?: string;
|
|
22
|
+
}>;
|
|
6
23
|
export declare const FeedbackIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
24
|
export declare const FeedbackHeader: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
25
|
export declare const FeedbackTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type FeedbackAlertProps = {
|
|
3
|
+
icon?: 'icon-correct';
|
|
4
|
+
title: string;
|
|
5
|
+
description: React.ReactElement | string;
|
|
6
|
+
additionalDescription?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const FeedbackAlert: React.FC<FeedbackAlertProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Container as c, Icon as l, Title as d, Description as m, AdditionalDescription as s } from "./styles.js";
|
|
3
|
+
const x = ({ icon: e, title: i, description: t, additionalDescription: n }) => /* @__PURE__ */ o(c, { children: [
|
|
4
|
+
e && /* @__PURE__ */ r(l, { name: e }),
|
|
5
|
+
/* @__PURE__ */ r(d, { children: i }),
|
|
6
|
+
/* @__PURE__ */ r(m, { children: t }),
|
|
7
|
+
n && /* @__PURE__ */ r(s, { children: n })
|
|
8
|
+
] });
|
|
9
|
+
export {
|
|
10
|
+
x as FeedbackAlert
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const AdditionalDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const Icon: {
|
|
6
|
+
__wyw_meta: unknown;
|
|
7
|
+
} & import('react').FC<{
|
|
8
|
+
name: keyof typeof import('../../../icons').icons;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
import { SvgIcon as o } from "../../../icons/index.js";
|
|
3
|
+
const t = /* @__PURE__ */ s("div")({
|
|
4
|
+
name: "Container",
|
|
5
|
+
class: "c1hygj0s",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), a = /* @__PURE__ */ s("div")({
|
|
8
|
+
name: "Title",
|
|
9
|
+
class: "t1r84tez",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
12
|
+
name: "Description",
|
|
13
|
+
class: "d1aj1a7k",
|
|
14
|
+
propsAsIs: !1
|
|
15
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
16
|
+
name: "AdditionalDescription",
|
|
17
|
+
class: "ax09ezs",
|
|
18
|
+
propsAsIs: !1
|
|
19
|
+
}), n = () => o, p = /* @__PURE__ */ s(n())({
|
|
20
|
+
name: "Icon",
|
|
21
|
+
class: "inkrac",
|
|
22
|
+
propsAsIs: !0
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
r as AdditionalDescription,
|
|
26
|
+
t as Container,
|
|
27
|
+
c as Description,
|
|
28
|
+
p as Icon,
|
|
29
|
+
a as Title
|
|
30
|
+
};
|
|
@@ -3,8 +3,10 @@ interface VoteProps {
|
|
|
3
3
|
openedQuestion: ExtendedQuestion;
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
vote: (questionId: string, answerId: string) => void;
|
|
6
|
-
close: () => void;
|
|
6
|
+
close: (questionId?: string) => void;
|
|
7
7
|
isEarlyPrediction?: boolean;
|
|
8
|
+
mastersApp?: boolean;
|
|
9
|
+
webos?: boolean;
|
|
8
10
|
}
|
|
9
11
|
export declare const VoteSkeleton: React.FC;
|
|
10
12
|
export declare const Vote: React.FC<VoteProps>;
|
|
@@ -1,196 +1,226 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useHideTransition as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { QuestionType as
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { Alert as
|
|
7
|
-
import { Feedback as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { jsx as i, jsxs as m, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { useHideTransition as St } from "../../../hooks/showIn.js";
|
|
3
|
+
import { useRef as M, useState as u, useEffect as p, useCallback as R, useMemo as w } from "react";
|
|
4
|
+
import { AdUnit as xt, QuestionType as n, QuestionStatus as B } from "@streamlayer/sdk-web-types";
|
|
5
|
+
import { Skeleton as q } from "../../skeleton/index.js";
|
|
6
|
+
import { Alert as Dt } from "./alert/index.js";
|
|
7
|
+
import { Feedback as rt } from "./feedback/index.js";
|
|
8
|
+
import { FeedbackAlert as Et } from "./feedbackAlert/index.js";
|
|
9
|
+
import { Container as it, Content as ot, Options as st, QuestionScrollContainer as Nt, TopShadow as kt, EarlyPrediction as Pt, EarlyPredictionIcon as Lt, Title as bt, OptionsWrap as Wt, BottomShadow as Yt, SponsorLogo as Mt, SponsorIcon as Bt, AlertContainer as nt } from "./styles.js";
|
|
10
|
+
import { VotingOption as qt } from "./vote-option/index.js";
|
|
11
|
+
import { WinBar as jt } from "./win-bar/index.js";
|
|
12
|
+
const Ft = (e, T) => {
|
|
12
13
|
switch (e) {
|
|
13
14
|
case "already_voted":
|
|
14
|
-
return
|
|
15
|
+
return T === n.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally.";
|
|
15
16
|
default:
|
|
16
17
|
return "Something went wrong, please try again";
|
|
17
18
|
}
|
|
18
|
-
},
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
] }) }),
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
}, te = () => /* @__PURE__ */ i(it, { children: /* @__PURE__ */ m(ot, { children: [
|
|
20
|
+
/* @__PURE__ */ i(q, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
|
|
21
|
+
/* @__PURE__ */ i(q, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
|
|
22
|
+
/* @__PURE__ */ i(st, { children: Array.from({ length: 5 }).map((e, T) => /* @__PURE__ */ i(q, { loading: !0, style: { height: "44px" } }, T)) })
|
|
23
|
+
] }) }), ee = ({
|
|
24
|
+
openedQuestion: e,
|
|
25
|
+
isLoading: T,
|
|
26
|
+
vote: j,
|
|
27
|
+
close: F,
|
|
28
|
+
isEarlyPrediction: a,
|
|
29
|
+
mastersApp: at,
|
|
30
|
+
webos: ct
|
|
31
|
+
}) => {
|
|
32
|
+
var tt, et;
|
|
33
|
+
const H = e.subject, r = e.type, v = e.status, f = (tt = e.options) == null ? void 0 : tt.options, I = e.marketClosed, O = e.id, U = M(), S = M(), g = at ? !1 : (e == null ? void 0 : e.adUnit) === xt.STANDART, [V, _] = u(!1), [x, lt] = u(!1), [y, $] = u(!0), [d, ft] = u(!1), [k, ut] = u(!1), [z, P] = u(""), [D, mt] = u(""), [E, G] = u(!1), [dt, Tt] = u(!1), [J, ht] = u(!1), { runAnimation: A, finished: K } = St();
|
|
25
34
|
p(() => {
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
|
|
35
|
+
K && F(O);
|
|
36
|
+
}, [F, K]), p(() => {
|
|
37
|
+
r === n.PREDICTION ? I && $(!1) : v === B.RESOLVED && $(!1);
|
|
29
38
|
}, []);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
}, []),
|
|
33
|
-
|
|
34
|
-
}, [
|
|
39
|
+
const It = R((s) => {
|
|
40
|
+
lt(s), _(!0);
|
|
41
|
+
}, []), gt = R(() => {
|
|
42
|
+
a && _(!1);
|
|
43
|
+
}, [a]), L = M(!1), X = R(() => {
|
|
44
|
+
S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
45
|
+
ht(!0), A({ delay: 5500 });
|
|
46
|
+
}, 4e3);
|
|
47
|
+
}, [A]), Z = R(
|
|
35
48
|
async (s) => {
|
|
36
|
-
if (!
|
|
49
|
+
if (!L.current && (L.current = !0, O)) {
|
|
37
50
|
const l = s.currentTarget.value;
|
|
38
|
-
|
|
51
|
+
P(l);
|
|
39
52
|
try {
|
|
40
|
-
await
|
|
41
|
-
} catch (
|
|
42
|
-
|
|
53
|
+
await j(O, l), g && X();
|
|
54
|
+
} catch (C) {
|
|
55
|
+
mt(Ft(C.message, r)), P(""), console.error("Error while voting", C), L.current = !1;
|
|
43
56
|
}
|
|
44
57
|
}
|
|
45
58
|
},
|
|
46
|
-
[
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
}, [
|
|
59
|
+
[r, O, P, j, g, X]
|
|
60
|
+
), At = R(() => {
|
|
61
|
+
ft(!0), A({ delay: 3500 });
|
|
62
|
+
}, [A]), Ct = R(() => {
|
|
63
|
+
ut(!0), A({ delay: 3500 });
|
|
64
|
+
}, [A]), t = e == null ? void 0 : e.answers.find((s) => s.youVoted === !0), c = w(
|
|
52
65
|
() => !!(e != null && e.answers.find((s) => s.correct === !0)),
|
|
53
66
|
[e]
|
|
54
|
-
), o =
|
|
67
|
+
), o = w(
|
|
55
68
|
() => e == null ? void 0 : e.answers.find((s) => s.correct === !0),
|
|
56
69
|
[e]
|
|
57
70
|
);
|
|
58
71
|
p(() => {
|
|
59
|
-
t &&
|
|
72
|
+
t && V && !dt && (U.current = setTimeout(Ct, 1e4), Tt(!0));
|
|
60
73
|
}, [t]), p(() => () => {
|
|
61
|
-
clearTimeout(
|
|
74
|
+
clearTimeout(U.current), clearTimeout(S.current);
|
|
62
75
|
}, []);
|
|
63
|
-
const
|
|
76
|
+
const b = w(() => e ? e.answers.map((s) => {
|
|
64
77
|
var l;
|
|
65
78
|
return {
|
|
66
79
|
...s,
|
|
67
80
|
questionVoted: !!t,
|
|
68
|
-
youSelected:
|
|
69
|
-
isLoading:
|
|
70
|
-
hasCorrectAnswer:
|
|
81
|
+
youSelected: z === s.id,
|
|
82
|
+
isLoading: T,
|
|
83
|
+
hasCorrectAnswer: c,
|
|
71
84
|
questionType: e.type,
|
|
72
85
|
answerTimeExpired: d,
|
|
73
|
-
questionStatus:
|
|
86
|
+
questionStatus: v,
|
|
74
87
|
imageMode: (l = e.appearance) == null ? void 0 : l.images,
|
|
75
|
-
onVote:
|
|
88
|
+
onVote: Z
|
|
76
89
|
};
|
|
77
90
|
}) : [], [
|
|
78
|
-
|
|
91
|
+
c,
|
|
79
92
|
d,
|
|
80
|
-
|
|
93
|
+
T,
|
|
81
94
|
e,
|
|
82
95
|
t,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
v,
|
|
97
|
+
Z,
|
|
98
|
+
z
|
|
86
99
|
]);
|
|
87
100
|
p(() => {
|
|
88
|
-
const s =
|
|
89
|
-
|
|
90
|
-
}, [
|
|
91
|
-
const
|
|
92
|
-
if (
|
|
101
|
+
const s = b.some(({ percentageDecimal: C }) => C !== 0), l = t && r === n.PREDICTION;
|
|
102
|
+
D && (a || !s || I && l) && G(!0);
|
|
103
|
+
}, [b, D, a, I, r, t]);
|
|
104
|
+
const Q = f && (f.case === "trivia" || f.case === "prediction") ? f.value : void 0, h = v === B.RESOLVED && r === n.TRIVIA && !t && !y, W = r === n.TRIVIA && x, Y = w(() => g ? !1 : r === n.PREDICTION ? a ? !1 : !!(t && !c || t && c && (o != null && o.youVoted)) : !0, [r, t, c, o, a, g]), Rt = w(() => {
|
|
105
|
+
if (r === n.PREDICTION && t && (!c || c && (o != null && o.youVoted)))
|
|
93
106
|
return t.points;
|
|
94
107
|
if (!(h || d))
|
|
95
108
|
return t ? t.correct ? t.pointsEarned : 0 : o == null ? void 0 : o.points;
|
|
96
|
-
}, [d, t, o, h,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
}, [d, t, o, h, r, c]), wt = w(() => r === n.PREDICTION && t ? c ? c && (o != null && o.youVoted) ? "You won" : "" : "To win" : h || d ? "Time expired" : r === n.POLL ? "Time remaining" : t ? "You won" : "To win", [d, r, t, h, c, o]), vt = !Y || Y && r === n.PREDICTION && V && !E, Vt = (r === n.TRIVIA || r === n.PREDICTION) && t && c && (o == null ? void 0 : o.youVoted), yt = t || h || W || r === n.TRIVIA && v === B.RESOLVED && y, pt = !a && (d || k) || J, Ot = () => {
|
|
110
|
+
const s = () => r === n.TRIVIA ? t != null && t.correct ? `That's correct!
|
|
111
|
+
You chose wisely.` : `So close!
|
|
112
|
+
Better luck next time.` : r === n.POLL ? `Thanks for answering.
|
|
113
|
+
Please stay tuned for the next question.` : r === n.PREDICTION ? "Stay tuned to see if your prediction was correct." : "", l = () => r === n.TRIVIA ? `Your Pick: ${o == null ? void 0 : o.text}` : r === n.POLL || r === n.PREDICTION ? `Your Pick: ${t == null ? void 0 : t.text}` : "", C = () => r === n.TRIVIA && (f == null ? void 0 : f.case) === "trivia" ? f == null ? void 0 : f.value.explanation : r === n.PREDICTION ? H : "";
|
|
114
|
+
return J ? /* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i(
|
|
115
|
+
Et,
|
|
116
|
+
{
|
|
117
|
+
title: s(),
|
|
118
|
+
description: l(),
|
|
119
|
+
...t != null && t.correct || r === n.POLL || r === n.PREDICTION ? { icon: "icon-correct" } : {},
|
|
120
|
+
...r === n.TRIVIA || r === n.PREDICTION ? { additionalDescription: C() } : {}
|
|
121
|
+
}
|
|
122
|
+
) }) : !a && (d || k) ? /* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i(
|
|
123
|
+
Dt,
|
|
124
|
+
{
|
|
125
|
+
icon: "icon-check-circle",
|
|
126
|
+
title: "More to come...",
|
|
127
|
+
description: k ? /* @__PURE__ */ m(N, { children: [
|
|
128
|
+
"Stay tuned for more questions ",
|
|
129
|
+
/* @__PURE__ */ i("br", {}),
|
|
130
|
+
" and insights."
|
|
131
|
+
] }) : /* @__PURE__ */ m(N, { children: [
|
|
132
|
+
"Watch for additional enhanced stream ",
|
|
133
|
+
/* @__PURE__ */ i("br", {}),
|
|
134
|
+
" interactive experience."
|
|
135
|
+
] })
|
|
136
|
+
}
|
|
137
|
+
) }) : null;
|
|
138
|
+
};
|
|
139
|
+
return /* @__PURE__ */ m(Nt, { children: [
|
|
140
|
+
a && /* @__PURE__ */ i(kt, {}),
|
|
141
|
+
/* @__PURE__ */ i(it, { style: a ? { marginTop: "-40px" } : {}, children: /* @__PURE__ */ m(ot, { children: [
|
|
142
|
+
!a && !g && /* @__PURE__ */ i(
|
|
143
|
+
rt,
|
|
102
144
|
{
|
|
103
|
-
feedbackMessages:
|
|
145
|
+
feedbackMessages: Q,
|
|
104
146
|
questionVoted: !!t,
|
|
105
147
|
questionVotedCorrectly: t == null ? void 0 : t.correct,
|
|
106
|
-
questionType:
|
|
107
|
-
hasCorrectAnswer:
|
|
148
|
+
questionType: r,
|
|
149
|
+
hasCorrectAnswer: c,
|
|
108
150
|
showExpiredNotification: h,
|
|
109
|
-
showClosedNotificationTrivia:
|
|
110
|
-
votedInCurrentRender:
|
|
111
|
-
votedAfterQuestionClosed:
|
|
112
|
-
enteredAnActiveQuestion:
|
|
113
|
-
marketClosed:
|
|
114
|
-
percentsAnimated:
|
|
115
|
-
voteErrorMessage:
|
|
151
|
+
showClosedNotificationTrivia: W,
|
|
152
|
+
votedInCurrentRender: V,
|
|
153
|
+
votedAfterQuestionClosed: x,
|
|
154
|
+
enteredAnActiveQuestion: y,
|
|
155
|
+
marketClosed: I,
|
|
156
|
+
percentsAnimated: E,
|
|
157
|
+
voteErrorMessage: D,
|
|
116
158
|
votedAnswer: t
|
|
117
159
|
}
|
|
118
160
|
),
|
|
119
|
-
|
|
120
|
-
|
|
161
|
+
Y && /* @__PURE__ */ i(
|
|
162
|
+
jt,
|
|
121
163
|
{
|
|
122
|
-
title:
|
|
123
|
-
points:
|
|
124
|
-
onTimerExpired:
|
|
164
|
+
title: wt,
|
|
165
|
+
points: Rt,
|
|
166
|
+
onTimerExpired: At,
|
|
125
167
|
questionType: e.type,
|
|
126
|
-
isTimer: !
|
|
168
|
+
isTimer: !T,
|
|
127
169
|
isPlayingTimer: !t,
|
|
128
|
-
animatePoints:
|
|
129
|
-
timerDuration:
|
|
130
|
-
votedInCurrentRender:
|
|
131
|
-
percentsAnimated:
|
|
170
|
+
animatePoints: Vt,
|
|
171
|
+
timerDuration: yt ? 0 : Number(((et = e == null ? void 0 : e.appearance) == null ? void 0 : et.autoHideInterval) || "30"),
|
|
172
|
+
votedInCurrentRender: V,
|
|
173
|
+
percentsAnimated: E
|
|
132
174
|
}
|
|
133
175
|
),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
icon: "icon-check-circle",
|
|
138
|
-
title: "More to come...",
|
|
139
|
-
description: H ? /* @__PURE__ */ f(S, { children: [
|
|
140
|
-
"Stay tuned for more questions ",
|
|
141
|
-
/* @__PURE__ */ r("br", {}),
|
|
142
|
-
" and insights."
|
|
143
|
-
] }) : /* @__PURE__ */ f(S, { children: [
|
|
144
|
-
"Watch for additional enhanced stream ",
|
|
145
|
-
/* @__PURE__ */ r("br", {}),
|
|
146
|
-
" interactive experience."
|
|
147
|
-
] })
|
|
148
|
-
}
|
|
149
|
-
) }) : /* @__PURE__ */ f(S, { children: [
|
|
150
|
-
i && /* @__PURE__ */ f(wt, { children: [
|
|
151
|
-
/* @__PURE__ */ r(At, { name: "iconEarlyPrediction" }),
|
|
176
|
+
pt ? Ot() : /* @__PURE__ */ m(N, { children: [
|
|
177
|
+
a && /* @__PURE__ */ m(Pt, { children: [
|
|
178
|
+
/* @__PURE__ */ i(Lt, { name: "iconEarlyPrediction" }),
|
|
152
179
|
"EARLY PREDICTION"
|
|
153
180
|
] }),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
156
|
-
|
|
181
|
+
/* @__PURE__ */ i(bt, { style: vt ? { marginTop: 0 } : {}, children: H }),
|
|
182
|
+
a && /* @__PURE__ */ i(
|
|
183
|
+
rt,
|
|
157
184
|
{
|
|
158
|
-
feedbackMessages:
|
|
185
|
+
feedbackMessages: Q,
|
|
159
186
|
questionVoted: !!t,
|
|
160
187
|
questionVotedCorrectly: t == null ? void 0 : t.correct,
|
|
161
|
-
questionType:
|
|
162
|
-
hasCorrectAnswer:
|
|
188
|
+
questionType: r,
|
|
189
|
+
hasCorrectAnswer: c,
|
|
163
190
|
showExpiredNotification: h,
|
|
164
|
-
showClosedNotificationTrivia:
|
|
165
|
-
votedInCurrentRender:
|
|
166
|
-
votedAfterQuestionClosed:
|
|
167
|
-
enteredAnActiveQuestion:
|
|
168
|
-
marketClosed:
|
|
169
|
-
percentsAnimated:
|
|
170
|
-
voteErrorMessage:
|
|
171
|
-
isEarlyPrediction:
|
|
191
|
+
showClosedNotificationTrivia: W,
|
|
192
|
+
votedInCurrentRender: V,
|
|
193
|
+
votedAfterQuestionClosed: x,
|
|
194
|
+
enteredAnActiveQuestion: y,
|
|
195
|
+
marketClosed: I,
|
|
196
|
+
percentsAnimated: E,
|
|
197
|
+
voteErrorMessage: D,
|
|
198
|
+
isEarlyPrediction: a,
|
|
172
199
|
correctAnswer: o,
|
|
173
200
|
votedAnswer: t,
|
|
174
|
-
onAnimationEnd:
|
|
201
|
+
onAnimationEnd: gt
|
|
175
202
|
}
|
|
176
203
|
),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
|
|
204
|
+
/* @__PURE__ */ m(Wt, { children: [
|
|
205
|
+
/* @__PURE__ */ i(st, { children: b.sort((s, l) => s.id > l.id ? 1 : -1).map((s, l) => /* @__PURE__ */ i(
|
|
206
|
+
qt,
|
|
180
207
|
{
|
|
181
208
|
...s,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
209
|
+
firstOption: l === 0,
|
|
210
|
+
markThatVoted: It,
|
|
211
|
+
onPercentsAnimated: () => G(!0),
|
|
212
|
+
votedAfterQuestionClosed: x,
|
|
213
|
+
enteredAnActiveQuestion: y,
|
|
214
|
+
marketClosed: I,
|
|
215
|
+
isEarlyPrediction: a,
|
|
216
|
+
isAd: g,
|
|
217
|
+
webos: ct
|
|
188
218
|
},
|
|
189
219
|
s.id
|
|
190
220
|
)) }),
|
|
191
|
-
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
221
|
+
a && /* @__PURE__ */ m(N, { children: [
|
|
222
|
+
/* @__PURE__ */ i(Yt, {}),
|
|
223
|
+
/* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(Bt, { name: "mastersLogoWhite" }) })
|
|
194
224
|
] })
|
|
195
225
|
] })
|
|
196
226
|
] })
|
|
@@ -198,6 +228,6 @@ const Dt = (e, u) => {
|
|
|
198
228
|
] });
|
|
199
229
|
};
|
|
200
230
|
export {
|
|
201
|
-
|
|
202
|
-
|
|
231
|
+
ee as Vote,
|
|
232
|
+
te as VoteSkeleton
|
|
203
233
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as b, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { InsightContentTV as e } from "../../../../app/webos/ui/insight/index.js";
|
|
3
|
+
import { InsightContent as m } from "../../../questions/insight/index.js";
|
|
4
|
+
import { Container as k, WebLinkBtn as h, WebLinkIcon as c } from "./styles.js";
|
|
5
|
+
const x = ({ instantView: r, ...o }) => /* @__PURE__ */ b(k, { children: [
|
|
6
|
+
o.webos ? /* @__PURE__ */ l(e, { instantView: r, ...o, isDetail: !0 }) : /* @__PURE__ */ l(m, { instantView: r, ...o, isDetail: !0 }),
|
|
7
|
+
(r == null ? void 0 : r.webLink) && /* @__PURE__ */ b(h, { href: r == null ? void 0 : r.webLink.url, target: "_blank", "data-a": "web-link", children: [
|
|
7
8
|
r == null ? void 0 : r.webLink.label,
|
|
8
9
|
/* @__PURE__ */ l(c, { name: "icon-external-link" })
|
|
9
10
|
] })
|
|
10
11
|
] });
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
x as InsightDetails
|
|
13
14
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const WebLinkBtn: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const WebLinkIcon:
|
|
3
|
+
export declare const WebLinkIcon: {
|
|
4
|
+
__wyw_meta: unknown;
|
|
5
|
+
} & import('react').FC<{
|
|
6
|
+
name: keyof typeof import('../../../icons').icons;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|