@xylabs/sdk-react 2.9.36 → 2.10.3
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/cjs5/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/cjs5/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/cjs5/contexts/UserEvents/index.d.ts +1 -1
- package/dist/cjs5/index.js +261 -146
- package/dist/cjs5/index.js.map +1 -1
- package/dist/cjs5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/cjs5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/cjs5/lib/Tracking/index.d.ts +1 -0
- package/dist/components/AppBarEx/AppBarEx.js +2 -2
- package/dist/components/AppBarEx/AppBarEx.js.map +1 -1
- package/dist/components/AppBarEx/AppBarEx.stories.js +1 -1
- package/dist/components/AppBarEx/AppBarEx.stories.js.map +1 -1
- package/dist/components/Background.js +2 -1
- package/dist/components/Background.js.map +1 -1
- package/dist/components/BasePage/BasePage.js +2 -2
- package/dist/components/BasePage/BasePage.js.map +1 -1
- package/dist/components/BasePage/BasePage.stories.js +3 -5
- package/dist/components/BasePage/BasePage.stories.js.map +1 -1
- package/dist/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/components/Breadcrumbs/BreadcrumbsEx.js +2 -2
- package/dist/components/Breadcrumbs/BreadcrumbsEx.js.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js.map +1 -1
- package/dist/components/BusyCircularProgress.js +1 -1
- package/dist/components/BusyCircularProgress.js.map +1 -1
- package/dist/components/BusyLinearProgress.js +1 -1
- package/dist/components/BusyLinearProgress.js.map +1 -1
- package/dist/components/ButtonEx/ButtonEx.js +2 -2
- package/dist/components/ButtonEx/ButtonEx.js.map +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js.map +1 -1
- package/dist/components/ButtonEx/ButtonExBase.js +1 -1
- package/dist/components/ButtonEx/ButtonExBase.js.map +1 -1
- package/dist/components/ButtonEx/ButtonExTo.js +1 -1
- package/dist/components/ButtonEx/ButtonExTo.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsent.js +3 -3
- package/dist/components/CookieConsent/CookieConsent.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsent.stories.js +3 -3
- package/dist/components/CookieConsent/CookieConsent.stories.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsentBody.js +2 -2
- package/dist/components/CookieConsent/CookieConsentBody.js.map +1 -1
- package/dist/components/CoverProgress.js +1 -1
- package/dist/components/CoverProgress.js.map +1 -1
- package/dist/components/Errors/ErrorViewer.js +1 -1
- package/dist/components/Errors/ErrorViewer.js.map +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js.map +1 -1
- package/dist/components/Errors/ErrorsViewer.js +1 -1
- package/dist/components/Errors/ErrorsViewer.js.map +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.js +1 -1
- package/dist/components/EthAccount/EthAccount.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js.map +1 -1
- package/dist/components/EthBlock.js +2 -2
- package/dist/components/EthBlock.js.map +1 -1
- package/dist/components/Experiments/Experiment.js +1 -1
- package/dist/components/Experiments/Experiment.js.map +1 -1
- package/dist/components/Experiments/Experiments.stories.js +1 -1
- package/dist/components/Experiments/Experiments.stories.js.map +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.js +4 -4
- package/dist/components/Experiments/ExperimentsDebugger.js.map +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.stories.js +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.stories.js.map +1 -1
- package/dist/components/FlexBox/BusyBox.js +1 -1
- package/dist/components/FlexBox/BusyBox.js.map +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexCol.js +2 -2
- package/dist/components/FlexBox/FlexCol.js.map +1 -1
- package/dist/components/FlexBox/FlexCol.stories.js +2 -2
- package/dist/components/FlexBox/FlexCol.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexRow.js +2 -2
- package/dist/components/FlexBox/FlexRow.js.map +1 -1
- package/dist/components/FlexBox/FlexRow.stories.js +2 -2
- package/dist/components/FlexBox/FlexRow.stories.js.map +1 -1
- package/dist/components/HoverScale.js +1 -1
- package/dist/components/HoverScale.js.map +1 -1
- package/dist/components/Identicon.js +1 -1
- package/dist/components/Identicon.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js +5 -3
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js +4 -4
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js.map +1 -1
- package/dist/components/LinkEx/LinkToEx.js +3 -2
- package/dist/components/LinkEx/LinkToEx.js.map +1 -1
- package/dist/components/MenuEx.js +1 -1
- package/dist/components/MenuEx.js.map +1 -1
- package/dist/components/NumberStatus/NumberStatus.js +1 -1
- package/dist/components/NumberStatus/NumberStatus.js.map +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js.map +1 -1
- package/dist/components/Pixel/PixelDebugger.js +2 -2
- package/dist/components/Pixel/PixelDebugger.js.map +1 -1
- package/dist/components/Pixel/PixelDebugger.stories.js +1 -1
- package/dist/components/Pixel/PixelDebugger.stories.js.map +1 -1
- package/dist/components/Pixel/PixelDebuggerProvider.js +1 -1
- package/dist/components/Pixel/PixelDebuggerProvider.js.map +1 -1
- package/dist/components/Pixel/PixelDebuggerToggle.js +1 -1
- package/dist/components/Pixel/PixelDebuggerToggle.js.map +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.js +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.js.map +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.stories.js +2 -2
- package/dist/components/QuickTipButton/QuickTipButton.stories.js.map +1 -1
- package/dist/components/RedirectWithQuery.js +1 -1
- package/dist/components/RedirectWithQuery.js.map +1 -1
- package/dist/components/RichResult/RichResult.js +1 -1
- package/dist/components/RichResult/RichResult.js.map +1 -1
- package/dist/components/ScrollToTopButton.js +1 -1
- package/dist/components/ScrollToTopButton.js.map +1 -1
- package/dist/components/SelectEx.js +1 -1
- package/dist/components/SelectEx.js.map +1 -1
- package/dist/components/TokenAmount/TokenAmount.js +1 -1
- package/dist/components/TokenAmount/TokenAmount.js.map +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.js +2 -2
- package/dist/components/dialogs/ErrorDialog.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.stories.js +1 -1
- package/dist/components/dialogs/ErrorDialog.stories.js.map +1 -1
- package/dist/components/dialogs/MessageDialog.js +1 -1
- package/dist/components/dialogs/MessageDialog.js.map +1 -1
- package/dist/components/dialogs/MessageDialog.stories.js +1 -1
- package/dist/components/dialogs/MessageDialog.stories.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/CookieConsent/Loader.js +1 -1
- package/dist/contexts/CookieConsent/Loader.js.map +1 -1
- package/dist/contexts/Ethers/Infura.js +1 -1
- package/dist/contexts/Ethers/Infura.js.map +1 -1
- package/dist/contexts/Ethers/Loader.js +6 -6
- package/dist/contexts/Ethers/Loader.js.map +1 -1
- package/dist/contexts/Ethers/MetaMask.js +7 -3
- package/dist/contexts/Ethers/MetaMask.js.map +1 -1
- package/dist/contexts/Ethers/MyEtherWallet.js +7 -3
- package/dist/contexts/Ethers/MyEtherWallet.js.map +1 -1
- package/dist/contexts/Ethers/Opera.js +4 -2
- package/dist/contexts/Ethers/Opera.js.map +1 -1
- package/dist/contexts/Ethers/Trust.js +4 -2
- package/dist/contexts/Ethers/Trust.js.map +1 -1
- package/dist/contexts/NetworkSettings/Loader.js +1 -1
- package/dist/contexts/NetworkSettings/Loader.js.map +1 -1
- package/dist/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/contexts/UserEvents/Provider.js +7 -0
- package/dist/contexts/UserEvents/Provider.js.map +1 -0
- package/dist/contexts/UserEvents/index.d.ts +1 -1
- package/dist/contexts/UserEvents/index.js +1 -1
- package/dist/contexts/UserEvents/index.js.map +1 -1
- package/dist/esm2015/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm2015/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/esm2015/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm2015/index.js +258 -147
- package/dist/esm2015/index.js.map +1 -1
- package/dist/esm2015/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm2015/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm2015/lib/Tracking/index.d.ts +1 -0
- package/dist/esm2017/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm2017/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/esm2017/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm2017/index.js +258 -147
- package/dist/esm2017/index.js.map +1 -1
- package/dist/esm2017/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm2017/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm2017/lib/Tracking/index.d.ts +1 -0
- package/dist/esm5/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm5/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/esm5/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm5/index.js +258 -147
- package/dist/esm5/index.js.map +1 -1
- package/dist/esm5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm5/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm5/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm5/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm5/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm5/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm5/lib/Tracking/index.d.ts +1 -0
- package/dist/hooks/useWebP.js +4 -2
- package/dist/hooks/useWebP.js.map +1 -1
- package/dist/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/lib/Tracking/Facebook/index.js +1 -0
- package/dist/lib/Tracking/Facebook/index.js.map +1 -1
- package/dist/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/lib/Tracking/Tapjoy/BaseEvent.js +16 -0
- package/dist/lib/Tracking/Tapjoy/BaseEvent.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/lib/Tracking/Tapjoy/EF.js +38 -0
- package/dist/lib/Tracking/Tapjoy/EF.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.js +13 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.js +8 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/lib/Tracking/Tapjoy/index.js +4 -0
- package/dist/lib/Tracking/Tapjoy/index.js.map +1 -0
- package/dist/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js +8 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js.map +1 -1
- package/dist/lib/Tracking/index.d.ts +1 -0
- package/dist/lib/Tracking/index.js +1 -0
- package/dist/lib/Tracking/index.js.map +1 -1
- package/dist/node/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/node/contexts/UserEvents/index.d.ts +1 -1
- package/dist/node/index.js +261 -146
- package/dist/node/index.js.map +1 -1
- package/dist/node/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/node/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/node/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/node/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/node/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/node/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/node/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/node/lib/Tracking/index.d.ts +1 -0
- package/dist/node-esm/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node-esm/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/node-esm/contexts/UserEvents/index.d.ts +1 -1
- package/dist/node-esm/index.js +258 -147
- package/dist/node-esm/index.js.map +1 -1
- package/dist/node-esm/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/node-esm/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/node-esm/lib/Tracking/index.d.ts +1 -0
- package/package.json +33 -50
- package/src/components/Background.tsx +1 -0
- package/src/components/BasePage/BasePage.stories.tsx +0 -2
- package/src/components/BasePage/BasePage.tsx +0 -3
- package/src/components/BasePage/BasePageProps.ts +0 -2
- package/src/components/InvertableThemeProvider/InvertableThemeProvider.tsx +1 -0
- package/src/components/LinkEx/LinkToEx.tsx +1 -0
- package/src/components/index.ts +1 -0
- package/src/contexts/Ethers/MetaMask.tsx +2 -0
- package/src/contexts/Ethers/MyEtherWallet.tsx +2 -0
- package/src/contexts/Ethers/Opera.tsx +1 -0
- package/src/contexts/Ethers/Trust.tsx +1 -0
- package/src/contexts/UserEvents/Provider.tsx +17 -0
- package/src/contexts/UserEvents/index.ts +1 -1
- package/src/hooks/useWebP.tsx +2 -1
- package/src/lib/Tracking/Facebook/index.ts +1 -0
- package/src/lib/Tracking/Tapjoy/BaseEvent.ts +19 -0
- package/src/lib/Tracking/Tapjoy/EF.ts +41 -0
- package/src/lib/Tracking/Tapjoy/StandardEvent.ts +11 -0
- package/src/lib/Tracking/Tapjoy/StandardEvents.ts +9 -0
- package/src/lib/Tracking/Tapjoy/index.ts +3 -0
- package/src/lib/Tracking/XyoUserEventHandler.ts +11 -2
- package/src/lib/Tracking/index.ts +1 -0
- package/dist/contexts/UserEvents/Loader.js +0 -6
- package/dist/contexts/UserEvents/Loader.js.map +0 -1
- package/dist/esm5/contexts/UserEvents/Loader.d.ts +0 -7
- package/dist/node/contexts/UserEvents/Loader.d.ts +0 -7
- package/dist/node-esm/contexts/UserEvents/Loader.d.ts +0 -7
- package/src/contexts/UserEvents/Loader.tsx +0 -12
package/dist/cjs5/index.js
CHANGED
|
@@ -68,54 +68,54 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
68
68
|
const BusyCircularProgress = (_a) => {
|
|
69
69
|
var { bgcolor, style, rounded, size, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "size", "opacity"]);
|
|
70
70
|
const theme = material.useTheme();
|
|
71
|
-
return (jsxRuntime.jsx(material.Box, Object.assign({ display: "flex", bgcolor: material.alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), flexGrow: 1, position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "center", alignItems: "center", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsxRuntime.jsx(material.CircularProgress, Object.assign({ size: size }, props)
|
|
71
|
+
return (jsxRuntime.jsx(material.Box, Object.assign({ display: "flex", bgcolor: material.alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), flexGrow: 1, position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "center", alignItems: "center", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsxRuntime.jsx(material.CircularProgress, Object.assign({ size: size }, props)) })));
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
const BusyLinearProgress = (_a) => {
|
|
75
75
|
var { bgcolor, style, rounded, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "opacity"]);
|
|
76
76
|
const theme = material.useTheme();
|
|
77
|
-
return (jsxRuntime.jsx(material.Box, Object.assign({ display: "flex", flexDirection: "column", bgcolor: material.alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "flex-start", alignItems: "stretch", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsxRuntime.jsx(material.LinearProgress, Object.assign({}, props)
|
|
77
|
+
return (jsxRuntime.jsx(material.Box, Object.assign({ display: "flex", flexDirection: "column", bgcolor: material.alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "flex-start", alignItems: "stretch", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsxRuntime.jsx(material.LinearProgress, Object.assign({}, props)) })));
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
const BusyBox = (_a) => {
|
|
81
81
|
var { background, children, component, busyVariant = 'circular', busySize, busyOpacity = 0.85, busyColor, busy, busyCircularProps, busyLinearProps, paper, style } = _a, props = __rest(_a, ["background", "children", "component", "busyVariant", "busySize", "busyOpacity", "busyColor", "busy", "busyCircularProps", "busyLinearProps", "paper", "style"]);
|
|
82
82
|
const theme = material.useTheme();
|
|
83
83
|
return (jsxRuntime.jsxs(material.Box, Object.assign({ component: paper ? material.Paper : component, position: "relative", style: background
|
|
84
|
-
? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (jsxRuntime.jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps)
|
|
84
|
+
? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (jsxRuntime.jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps))) : null, busy && busyVariant === 'circular' ? (jsxRuntime.jsx(BusyCircularProgress, Object.assign({ color: busyColor, opacity: busyOpacity, size: busySize }, busyCircularProps))) : null] })));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const FlexCol = (props) => {
|
|
88
|
-
return jsxRuntime.jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "column", justifyContent: "center" }, props)
|
|
88
|
+
return jsxRuntime.jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "column", justifyContent: "center" }, props));
|
|
89
89
|
};
|
|
90
90
|
const FlexGrowCol = (props) => {
|
|
91
|
-
return jsxRuntime.jsx(FlexCol, Object.assign({ flexGrow: 1 }, props)
|
|
91
|
+
return jsxRuntime.jsx(FlexCol, Object.assign({ flexGrow: 1 }, props));
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
const FlexRow = (props) => {
|
|
95
|
-
return jsxRuntime.jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "row", justifyContent: "center" }, props)
|
|
95
|
+
return jsxRuntime.jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "row", justifyContent: "center" }, props));
|
|
96
96
|
};
|
|
97
97
|
const FlexGrowRow = (props) => {
|
|
98
|
-
return jsxRuntime.jsx(FlexRow, Object.assign({ flexGrow: 1 }, props)
|
|
98
|
+
return jsxRuntime.jsx(FlexRow, Object.assign({ flexGrow: 1 }, props));
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* @deprecated The functionality of Background is now part of FlexBox. Use the 'background' property to enable the background.
|
|
103
103
|
*/
|
|
104
104
|
const Background = (props) => {
|
|
105
|
-
return jsxRuntime.jsx(FlexRow, Object.assign({}, props)
|
|
105
|
+
return jsxRuntime.jsx(FlexRow, Object.assign({}, props));
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
const ErrorViewer = (props) => {
|
|
109
109
|
const { error } = props, boxProps = __rest(props, ["error"]);
|
|
110
110
|
const theme = material.useTheme();
|
|
111
|
-
return (jsxRuntime.jsxs(FlexCol, Object.assign({ color: theme.palette.error.main }, boxProps, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ align: "center", variant: "subtitle1" }, { children: error === null || error === void 0 ? void 0 : error.name })
|
|
111
|
+
return (jsxRuntime.jsxs(FlexCol, Object.assign({ color: theme.palette.error.main }, boxProps, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ align: "center", variant: "subtitle1" }, { children: error === null || error === void 0 ? void 0 : error.name })), jsxRuntime.jsx(material.Typography, Object.assign({ align: "center", variant: "body2" }, { children: error === null || error === void 0 ? void 0 : error.message }))] })));
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
const ErrorsViewer = (props) => {
|
|
115
115
|
const { onRetry, errors } = props, boxProps = __rest(props, ["onRetry", "errors"]);
|
|
116
116
|
return (jsxRuntime.jsxs(FlexGrowCol, Object.assign({ padding: 1 }, boxProps, { children: [errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
|
|
117
117
|
return jsxRuntime.jsx(ErrorViewer, { error: error }, index);
|
|
118
|
-
}), onRetry ? (jsxRuntime.jsx(material.IconButton, Object.assign({ onClick: onRetry }, { children: jsxRuntime.jsx(ai.AiOutlineReload, {}
|
|
118
|
+
}), onRetry ? (jsxRuntime.jsx(material.IconButton, Object.assign({ onClick: onRetry }, { children: jsxRuntime.jsx(ai.AiOutlineReload, {}) }))) : null] })));
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
const CoverProgress = (props) => {
|
|
@@ -123,7 +123,7 @@ const CoverProgress = (props) => {
|
|
|
123
123
|
const { paper = true, open, opacity = 0.25, errors, onRetry } = props;
|
|
124
124
|
const theme = material.useTheme();
|
|
125
125
|
if (open) {
|
|
126
|
-
return (jsxRuntime.jsx(FlexGrowRow, Object.assign({ position: "absolute", margin: -1, top: 0, bottom: 0, right: 0, left: 0, bgcolor: paper ? theme.palette.background.paper : theme.palette.background.default }, { children: ((_a = errors === null || errors === void 0 ? void 0 : errors.length) !== null && _a !== void 0 ? _a : 0) === 0 ? (jsxRuntime.jsx(material.CircularProgress, { style: { opacity } }
|
|
126
|
+
return (jsxRuntime.jsx(FlexGrowRow, Object.assign({ position: "absolute", margin: -1, top: 0, bottom: 0, right: 0, left: 0, bgcolor: paper ? theme.palette.background.paper : theme.palette.background.default }, { children: ((_a = errors === null || errors === void 0 ? void 0 : errors.length) !== null && _a !== void 0 ? _a : 0) === 0 ? (jsxRuntime.jsx(material.CircularProgress, { style: { opacity } })) : (jsxRuntime.jsx(ErrorsViewer, { margin: 1, errors: errors, onRetry: onRetry })) })));
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
};
|
|
@@ -140,7 +140,7 @@ const HoverScale = (props) => {
|
|
|
140
140
|
},
|
|
141
141
|
}));
|
|
142
142
|
const classes = useStyles();
|
|
143
|
-
return (jsxRuntime.jsx(FlexRow, { children: jsxRuntime.jsx(material.Box, Object.assign({ className: classes.zoomdiv }, { children: children })
|
|
143
|
+
return (jsxRuntime.jsx(FlexRow, { children: jsxRuntime.jsx(material.Box, Object.assign({ className: classes.zoomdiv }, { children: children })) }));
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
const range = (n, in_min, in_max, out_min, out_max) => {
|
|
@@ -199,7 +199,7 @@ const Identicon = (_a) => {
|
|
|
199
199
|
react.useEffect(() => {
|
|
200
200
|
updateCanvas(canvas, { bg, className, count, fg, iconPadding, palette, size, value });
|
|
201
201
|
});
|
|
202
|
-
return (jsxRuntime.jsx(FlexRow, Object.assign({}, props, { children: jsxRuntime.jsx("canvas", { className: className, ref: canvas, style: { height: size, width: size } }
|
|
202
|
+
return (jsxRuntime.jsx(FlexRow, Object.assign({}, props, { children: jsxRuntime.jsx("canvas", { className: className, ref: canvas, style: { height: size, width: size } }) })));
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
const RedirectWithQuery = ({ href, to, toOptions }) => {
|
|
@@ -216,7 +216,7 @@ const RedirectWithQuery = ({ href, to, toOptions }) => {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
return jsxRuntime.jsx("div", {}
|
|
219
|
+
return jsxRuntime.jsx("div", {});
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
const ScrollToTopButton = (_a) => {
|
|
@@ -232,16 +232,16 @@ const ScrollToTopButton = (_a) => {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
const theme = material.useTheme();
|
|
235
|
-
return (jsxRuntime.jsx(material.Zoom, Object.assign({ in: trigger }, props, { children: jsxRuntime.jsx(material.Box, Object.assign({ zIndex: 10, position: "fixed", right: theme.spacing(2), bottom: theme.spacing(2), onClick: handleClick, role: "presentation" }, { children: children })
|
|
235
|
+
return (jsxRuntime.jsx(material.Zoom, Object.assign({ in: trigger }, props, { children: jsxRuntime.jsx(material.Box, Object.assign({ zIndex: 10, position: "fixed", right: theme.spacing(2), bottom: theme.spacing(2), onClick: handleClick, role: "presentation" }, { children: children })) })));
|
|
236
236
|
};
|
|
237
237
|
|
|
238
238
|
const AppBarEx = (props) => {
|
|
239
239
|
const { contextToolbar, systemToolbar, container, style } = props, appbarProps = __rest(props, ["contextToolbar", "systemToolbar", "container", "style"]);
|
|
240
240
|
const theme = material.useTheme();
|
|
241
241
|
const AppBarExInner = () => {
|
|
242
|
-
return (jsxRuntime.jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between" }, { children: [contextToolbar !== null && contextToolbar !== void 0 ? contextToolbar : jsxRuntime.jsx(material.Toolbar, {}
|
|
242
|
+
return (jsxRuntime.jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between" }, { children: [contextToolbar !== null && contextToolbar !== void 0 ? contextToolbar : jsxRuntime.jsx(material.Toolbar, {}), systemToolbar !== null && systemToolbar !== void 0 ? systemToolbar : jsxRuntime.jsx(material.Toolbar, {})] })));
|
|
243
243
|
};
|
|
244
|
-
return (jsxRuntime.jsx(material.AppBar, Object.assign({ position: "static", style: Object.assign({ backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex' }, style) }, appbarProps, { children: container ? (jsxRuntime.jsx(material.Container, Object.assign({ maxWidth: container }, { children: jsxRuntime.jsx(AppBarExInner, {}
|
|
244
|
+
return (jsxRuntime.jsx(material.AppBar, Object.assign({ position: "static", style: Object.assign({ backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex' }, style) }, appbarProps, { children: container ? (jsxRuntime.jsx(material.Container, Object.assign({ maxWidth: container }, { children: jsxRuntime.jsx(AppBarExInner, {}) }))) : (jsxRuntime.jsx(AppBarExInner, {})) })));
|
|
245
245
|
};
|
|
246
246
|
|
|
247
247
|
const CookieConsentContext = react.createContext({});
|
|
@@ -263,7 +263,7 @@ const CookieConsentLoader = ({ children }) => {
|
|
|
263
263
|
localStorage.removeItem(CookiesAcceptedLocalStorageName);
|
|
264
264
|
setAccepted(getAcceptedFromLocalStorage());
|
|
265
265
|
};
|
|
266
|
-
return (jsxRuntime.jsx(CookieConsentContext.Provider, Object.assign({ value: { accepted, clearAccepted, setAccepted: setAcceptedHandler, storageName: CookiesAcceptedLocalStorageName } }, { children: children })
|
|
266
|
+
return (jsxRuntime.jsx(CookieConsentContext.Provider, Object.assign({ value: { accepted, clearAccepted, setAccepted: setAcceptedHandler, storageName: CookiesAcceptedLocalStorageName } }, { children: children })));
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
const useCookieConsent = () => {
|
|
@@ -283,7 +283,7 @@ const InfuraEthersLoader = (props) => {
|
|
|
283
283
|
isConnected: true,
|
|
284
284
|
provider,
|
|
285
285
|
signer: null,
|
|
286
|
-
} }, { children: children })
|
|
286
|
+
} }, { children: children })));
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
const getApiStage = () => {
|
|
@@ -404,77 +404,9 @@ class Referrer {
|
|
|
404
404
|
}
|
|
405
405
|
Referrer.storageId = '_coin_referrer';
|
|
406
406
|
|
|
407
|
-
class XyoUserEventHandler extends pixel.UserEventHandler {
|
|
408
|
-
constructor(handlers = []) {
|
|
409
|
-
super();
|
|
410
|
-
this.handlers = handlers;
|
|
411
|
-
}
|
|
412
|
-
testStarted(data) {
|
|
413
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.testStarted(data)));
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
funnelStarted(data) {
|
|
418
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.funnelStarted(data)));
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
viewContent(data) {
|
|
423
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.viewContent(data)));
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
userClick(data) {
|
|
428
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.userClick(data)));
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
407
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
435
408
|
const global = window;
|
|
436
409
|
|
|
437
|
-
class DripBaseEvent {
|
|
438
|
-
constructor(name, param) {
|
|
439
|
-
this.name = name;
|
|
440
|
-
this.param = param;
|
|
441
|
-
this.dcq = this.getDcq();
|
|
442
|
-
this.dcs = this.getDcs();
|
|
443
|
-
}
|
|
444
|
-
send(data) {
|
|
445
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
-
const payload = [this.name];
|
|
447
|
-
if (this.param) {
|
|
448
|
-
payload.push(this.param);
|
|
449
|
-
}
|
|
450
|
-
payload.push(data);
|
|
451
|
-
this.dcq.push(payload);
|
|
452
|
-
yield sdkJs.delay(0);
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
getDcq() {
|
|
456
|
-
if (!global._dcq) {
|
|
457
|
-
throw Error('DCQ not found');
|
|
458
|
-
}
|
|
459
|
-
return global._dcq;
|
|
460
|
-
}
|
|
461
|
-
getDcs() {
|
|
462
|
-
if (!global._dcs) {
|
|
463
|
-
throw Error('DCS not found');
|
|
464
|
-
}
|
|
465
|
-
return global._dcs;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
class DripCustomEvent extends DripBaseEvent {
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
class DripStandardEvents {
|
|
473
|
-
identify() {
|
|
474
|
-
return new DripBaseEvent('identify');
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
410
|
class Fbq {
|
|
479
411
|
constructor(pixelId) {
|
|
480
412
|
this.pixelId = pixelId;
|
|
@@ -593,6 +525,33 @@ class FacebookStandardEvents {
|
|
|
593
525
|
}
|
|
594
526
|
}
|
|
595
527
|
|
|
528
|
+
class FacebookUserEventHandler {
|
|
529
|
+
testStarted(data) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
const event = new FacebookCustomEvent('TestStarted');
|
|
532
|
+
return yield event.send(data);
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
funnelStarted(data) {
|
|
536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
537
|
+
const event = new FacebookCustomEvent('FunnelStarted');
|
|
538
|
+
return yield event.send(data);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
viewContent(data) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
const event = new FacebookCustomEvent('ViewContent');
|
|
544
|
+
return yield event.send(data);
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
userClick(data) {
|
|
548
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
549
|
+
const event = new FacebookCustomEvent('UserClick');
|
|
550
|
+
return yield event.send(data);
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
596
555
|
class Gtag {
|
|
597
556
|
constructor(ga4id, awid, domains) {
|
|
598
557
|
var _a, _b, _c, _d;
|
|
@@ -856,6 +815,79 @@ class GoogleStandardEvents {
|
|
|
856
815
|
}
|
|
857
816
|
}
|
|
858
817
|
|
|
818
|
+
class XyoUserEventHandler extends pixel.UserEventHandler {
|
|
819
|
+
constructor(handlers = []) {
|
|
820
|
+
super();
|
|
821
|
+
this.handlers = handlers !== null && handlers !== void 0 ? handlers : [new FacebookUserEventHandler(), new GoogleUserEventHandler()];
|
|
822
|
+
}
|
|
823
|
+
testStarted(data) {
|
|
824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.testStarted(data)));
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
funnelStarted(data) {
|
|
829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
830
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.funnelStarted(data)));
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
viewContent(data) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
835
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.viewContent(data)));
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
userClick(data) {
|
|
839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
840
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.userClick(data)));
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
static get() {
|
|
844
|
+
var _a;
|
|
845
|
+
this.instance = (_a = this.instance) !== null && _a !== void 0 ? _a : new XyoUserEventHandler();
|
|
846
|
+
return this.instance;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
class DripBaseEvent {
|
|
851
|
+
constructor(name, param) {
|
|
852
|
+
this.name = name;
|
|
853
|
+
this.param = param;
|
|
854
|
+
this.dcq = this.getDcq();
|
|
855
|
+
this.dcs = this.getDcs();
|
|
856
|
+
}
|
|
857
|
+
send(data) {
|
|
858
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
859
|
+
const payload = [this.name];
|
|
860
|
+
if (this.param) {
|
|
861
|
+
payload.push(this.param);
|
|
862
|
+
}
|
|
863
|
+
payload.push(data);
|
|
864
|
+
this.dcq.push(payload);
|
|
865
|
+
yield sdkJs.delay(0);
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
getDcq() {
|
|
869
|
+
if (!global._dcq) {
|
|
870
|
+
throw Error('DCQ not found');
|
|
871
|
+
}
|
|
872
|
+
return global._dcq;
|
|
873
|
+
}
|
|
874
|
+
getDcs() {
|
|
875
|
+
if (!global._dcs) {
|
|
876
|
+
throw Error('DCS not found');
|
|
877
|
+
}
|
|
878
|
+
return global._dcs;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
class DripCustomEvent extends DripBaseEvent {
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
class DripStandardEvents {
|
|
886
|
+
identify() {
|
|
887
|
+
return new DripBaseEvent('identify');
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
859
891
|
class Rdt {
|
|
860
892
|
static init(pixelId) {
|
|
861
893
|
try {
|
|
@@ -1072,6 +1104,69 @@ class SnapchatStandardEvents {
|
|
|
1072
1104
|
}
|
|
1073
1105
|
}
|
|
1074
1106
|
|
|
1107
|
+
class EF {
|
|
1108
|
+
static init() {
|
|
1109
|
+
try {
|
|
1110
|
+
EF.instance = new EF();
|
|
1111
|
+
}
|
|
1112
|
+
catch (ex) {
|
|
1113
|
+
console.error(`EF.init: ${ex}`);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
static getEF() {
|
|
1117
|
+
if (global.EF) {
|
|
1118
|
+
return global.EF;
|
|
1119
|
+
}
|
|
1120
|
+
console.warn('Missing EF');
|
|
1121
|
+
}
|
|
1122
|
+
track(event, data) {
|
|
1123
|
+
switch (event) {
|
|
1124
|
+
case 'Purchase':
|
|
1125
|
+
this.sendConversion(data);
|
|
1126
|
+
break;
|
|
1127
|
+
default:
|
|
1128
|
+
console.error(`EF.track: missing event ${event}`);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
sendConversion(data) {
|
|
1132
|
+
try {
|
|
1133
|
+
//data: have session_id, tracking_id, order_id, amount
|
|
1134
|
+
const ef = EF.getEF();
|
|
1135
|
+
ef.conversion(Object.assign({}, data));
|
|
1136
|
+
}
|
|
1137
|
+
catch (ex) {
|
|
1138
|
+
console.error(`EF.conversion: ${ex}`);
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
class TapjoyBaseEvent {
|
|
1144
|
+
constructor(name) {
|
|
1145
|
+
this.name = name;
|
|
1146
|
+
this.ef = sdkJs.assertEx(EF.instance, 'Missing Tapjoy Eventflow');
|
|
1147
|
+
}
|
|
1148
|
+
send(_data) {
|
|
1149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1150
|
+
yield sdkJs.delay(0);
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
class TapjoyStandardEvent extends TapjoyBaseEvent {
|
|
1156
|
+
send(data) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
this.ef.track(this.name, data);
|
|
1159
|
+
yield sdkJs.delay(0);
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
class TapjoyStandardEvents {
|
|
1165
|
+
purchase() {
|
|
1166
|
+
return new TapjoyStandardEvent('Purchase');
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1075
1170
|
class Ttq {
|
|
1076
1171
|
static init(pixelId) {
|
|
1077
1172
|
try {
|
|
@@ -1300,7 +1395,9 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1300
1395
|
setSigner(signer);
|
|
1301
1396
|
}
|
|
1302
1397
|
}, [ethereum, isConnected, enabled]);
|
|
1303
|
-
useAsyncEffect(
|
|
1398
|
+
useAsyncEffect(
|
|
1399
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1400
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1304
1401
|
if (signer && enabled) {
|
|
1305
1402
|
try {
|
|
1306
1403
|
const localAddress = sdkJs.EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1320,7 +1417,9 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1320
1417
|
}
|
|
1321
1418
|
}), [signer, resetCount, enabled]);
|
|
1322
1419
|
const [chainId, setChainId] = react.useState();
|
|
1323
|
-
useAsyncEffect(
|
|
1420
|
+
useAsyncEffect(
|
|
1421
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1422
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1324
1423
|
var _b;
|
|
1325
1424
|
if (enabled) {
|
|
1326
1425
|
const chainId = (_b = (yield (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _b === void 0 ? void 0 : _b.chainId;
|
|
@@ -1340,7 +1439,7 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1340
1439
|
providerName,
|
|
1341
1440
|
signer: isConnected ? signer : undefined,
|
|
1342
1441
|
walletProvider,
|
|
1343
|
-
} }, { children: children })
|
|
1442
|
+
} }, { children: children })));
|
|
1344
1443
|
};
|
|
1345
1444
|
|
|
1346
1445
|
const MyEtherWalletEthersLoader = (props) => {
|
|
@@ -1387,7 +1486,9 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1387
1486
|
}
|
|
1388
1487
|
setSigner(signer);
|
|
1389
1488
|
}, [ethereum, isConnected]);
|
|
1390
|
-
useAsyncEffect(
|
|
1489
|
+
useAsyncEffect(
|
|
1490
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1491
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1391
1492
|
if (signer) {
|
|
1392
1493
|
try {
|
|
1393
1494
|
const localAddress = sdkJs.EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1406,7 +1507,9 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1406
1507
|
}
|
|
1407
1508
|
}), [signer]);
|
|
1408
1509
|
const [chainId, setChainId] = react.useState();
|
|
1409
|
-
useAsyncEffect(
|
|
1510
|
+
useAsyncEffect(
|
|
1511
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1512
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1410
1513
|
var _b;
|
|
1411
1514
|
const chainId = (_b = (yield (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _b === void 0 ? void 0 : _b.chainId;
|
|
1412
1515
|
if (!isMounted())
|
|
@@ -1424,7 +1527,7 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1424
1527
|
providerName,
|
|
1425
1528
|
signer: isConnected ? signer : undefined,
|
|
1426
1529
|
walletProvider,
|
|
1427
|
-
} }, { children: children })
|
|
1530
|
+
} }, { children: children })));
|
|
1428
1531
|
};
|
|
1429
1532
|
|
|
1430
1533
|
const OperaEthersLoader = (props) => {
|
|
@@ -1439,7 +1542,9 @@ const OperaEthersLoader = (props) => {
|
|
|
1439
1542
|
const [localAddress, setLocalAddress] = react.useState(((_c = (_b = (_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.addresses) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0 ? sdkJs.EthAddress.fromString((_e = (_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.addresses) === null || _e === void 0 ? void 0 : _e[0]) : null);
|
|
1440
1543
|
const chainId = (ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) ? parseInt(ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) : 1;
|
|
1441
1544
|
const isConnected = (_f = ethereum === null || ethereum === void 0 ? void 0 : ethereum.isConnected()) !== null && _f !== void 0 ? _f : false;
|
|
1442
|
-
useAsyncEffect(
|
|
1545
|
+
useAsyncEffect(
|
|
1546
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1547
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1443
1548
|
if (ethereum) {
|
|
1444
1549
|
ethereum.enable();
|
|
1445
1550
|
const operaProvider = new providers.Web3Provider(ethereum);
|
|
@@ -1469,7 +1574,7 @@ const OperaEthersLoader = (props) => {
|
|
|
1469
1574
|
localAddress,
|
|
1470
1575
|
provider,
|
|
1471
1576
|
signer,
|
|
1472
|
-
} }, { children: children })
|
|
1577
|
+
} }, { children: children })));
|
|
1473
1578
|
};
|
|
1474
1579
|
|
|
1475
1580
|
const TrustEthersLoader = (props) => {
|
|
@@ -1482,7 +1587,9 @@ const TrustEthersLoader = (props) => {
|
|
|
1482
1587
|
const signer = trustProvider.getSigner();
|
|
1483
1588
|
const chainId = 1;
|
|
1484
1589
|
const provider = trustProvider;
|
|
1485
|
-
useAsyncEffect(
|
|
1590
|
+
useAsyncEffect(
|
|
1591
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1592
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1486
1593
|
if (signer) {
|
|
1487
1594
|
try {
|
|
1488
1595
|
const localAddress = sdkJs.EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1504,7 +1611,7 @@ const TrustEthersLoader = (props) => {
|
|
|
1504
1611
|
localAddress,
|
|
1505
1612
|
provider,
|
|
1506
1613
|
signer,
|
|
1507
|
-
} }, { children: children })
|
|
1614
|
+
} }, { children: children })));
|
|
1508
1615
|
};
|
|
1509
1616
|
|
|
1510
1617
|
const EthersLoader = (props) => {
|
|
@@ -1513,21 +1620,21 @@ const EthersLoader = (props) => {
|
|
|
1513
1620
|
const global = window;
|
|
1514
1621
|
const { children } = props;
|
|
1515
1622
|
if ((_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.isMetaMask) {
|
|
1516
|
-
return jsxRuntime.jsx(MetaMaskEthersLoader, { children: children }
|
|
1623
|
+
return jsxRuntime.jsx(MetaMaskEthersLoader, { children: children });
|
|
1517
1624
|
}
|
|
1518
1625
|
if ((_b = global.ethereum) === null || _b === void 0 ? void 0 : _b.isTrust) {
|
|
1519
|
-
return jsxRuntime.jsx(TrustEthersLoader, { children: children }
|
|
1626
|
+
return jsxRuntime.jsx(TrustEthersLoader, { children: children });
|
|
1520
1627
|
}
|
|
1521
1628
|
if ((_c = global.ethereum) === null || _c === void 0 ? void 0 : _c.isMew) {
|
|
1522
|
-
return jsxRuntime.jsx(MyEtherWalletEthersLoader, { children: children }
|
|
1629
|
+
return jsxRuntime.jsx(MyEtherWalletEthersLoader, { children: children });
|
|
1523
1630
|
}
|
|
1524
1631
|
if (((_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.providerName) === 'opera') {
|
|
1525
|
-
return jsxRuntime.jsx(OperaEthersLoader, { children: children }
|
|
1632
|
+
return jsxRuntime.jsx(OperaEthersLoader, { children: children });
|
|
1526
1633
|
}
|
|
1527
1634
|
if (global.ethereum) {
|
|
1528
|
-
return jsxRuntime.jsx(OperaEthersLoader, { children: children }
|
|
1635
|
+
return jsxRuntime.jsx(OperaEthersLoader, { children: children });
|
|
1529
1636
|
}
|
|
1530
|
-
return jsxRuntime.jsx(InfuraEthersLoader, { children: children }
|
|
1637
|
+
return jsxRuntime.jsx(InfuraEthersLoader, { children: children });
|
|
1531
1638
|
};
|
|
1532
1639
|
|
|
1533
1640
|
const NetworkSettingsContext = react.createContext({});
|
|
@@ -1539,7 +1646,7 @@ const NetworkSettingsLoader = (props) => {
|
|
|
1539
1646
|
xyFhrMerkleSendAddress: sdkJs.EthAddress.fromString('0x46FEEBDffC8076D9E5fd8a11CF1508810472A79f'),
|
|
1540
1647
|
xyGovernanceAddress: sdkJs.EthAddress.fromString('0x01925d0fFE4a6a6162B51ba611e3D4780Fc2dF42'),
|
|
1541
1648
|
xyStakingConsensusAddress: sdkJs.EthAddress.fromString('0x0242514106114DEaA99Fd81574142c36Edb03B6D'),
|
|
1542
|
-
} }, { children: children })
|
|
1649
|
+
} }, { children: children })));
|
|
1543
1650
|
};
|
|
1544
1651
|
|
|
1545
1652
|
const UserEventsContext = react.createContext({});
|
|
@@ -1550,8 +1657,8 @@ const DebugUserEventsContext = react.createContext({
|
|
|
1550
1657
|
},
|
|
1551
1658
|
});
|
|
1552
1659
|
|
|
1553
|
-
const
|
|
1554
|
-
return jsxRuntime.jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents } }, { children: children })
|
|
1660
|
+
const UserEventsProvider = ({ userEvents, children }) => {
|
|
1661
|
+
return (jsxRuntime.jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children })));
|
|
1555
1662
|
};
|
|
1556
1663
|
|
|
1557
1664
|
const calcSpacing = (theme, values) => {
|
|
@@ -1596,7 +1703,7 @@ const ButtonExBase = (props) => {
|
|
|
1596
1703
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
1597
1704
|
}
|
|
1598
1705
|
};
|
|
1599
|
-
return (jsxRuntime.jsxs(material.Button, Object.assign({ onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? jsxRuntime.jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }
|
|
1706
|
+
return (jsxRuntime.jsxs(material.Button, Object.assign({ onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? jsxRuntime.jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }) : null, busy && busyVariant === 'circular' ? (jsxRuntime.jsx(BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0.5 })) : null, children] })));
|
|
1600
1707
|
};
|
|
1601
1708
|
|
|
1602
1709
|
const ButtonExTo = (_a) => {
|
|
@@ -1608,16 +1715,16 @@ const ButtonExTo = (_a) => {
|
|
|
1608
1715
|
navigate(to, toOptions);
|
|
1609
1716
|
}
|
|
1610
1717
|
};
|
|
1611
|
-
return jsxRuntime.jsx(ButtonExBase, Object.assign({ onClick: localOnClick }, props)
|
|
1718
|
+
return jsxRuntime.jsx(ButtonExBase, Object.assign({ onClick: localOnClick }, props));
|
|
1612
1719
|
};
|
|
1613
1720
|
|
|
1614
1721
|
const ButtonEx = (_a) => {
|
|
1615
1722
|
var { to } = _a, props = __rest(_a, ["to"]);
|
|
1616
1723
|
if (to) {
|
|
1617
|
-
return jsxRuntime.jsx(ButtonExTo, Object.assign({ to: to }, props)
|
|
1724
|
+
return jsxRuntime.jsx(ButtonExTo, Object.assign({ to: to }, props));
|
|
1618
1725
|
}
|
|
1619
1726
|
else {
|
|
1620
|
-
return jsxRuntime.jsx(ButtonExBase, Object.assign({}, props)
|
|
1727
|
+
return jsxRuntime.jsx(ButtonExBase, Object.assign({}, props));
|
|
1621
1728
|
}
|
|
1622
1729
|
};
|
|
1623
1730
|
|
|
@@ -1653,22 +1760,22 @@ const CookieConsentBody = (_a) => {
|
|
|
1653
1760
|
}, acceptOnTimer);
|
|
1654
1761
|
}
|
|
1655
1762
|
if (!storageName) {
|
|
1656
|
-
return (jsxRuntime.jsx(FlexRow, Object.assign({ justifyContent: "center", paddingY: 2 }, props, { children: jsxRuntime.jsx(material.Typography, Object.assign({ color: "error", variant: "body1" }, { children: "Missing CookieConsentContext" })
|
|
1763
|
+
return (jsxRuntime.jsx(FlexRow, Object.assign({ justifyContent: "center", paddingY: 2 }, props, { children: jsxRuntime.jsx(material.Typography, Object.assign({ color: "error", variant: "body1" }, { children: "Missing CookieConsentContext" })) })));
|
|
1657
1764
|
}
|
|
1658
|
-
return accepted ? null : (jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between" }, props, { children: [jsxRuntime.jsxs(material.Typography, Object.assign({ variant: "body2", margin: 2 }, { children: ['This site uses ', jsxRuntime.jsx(material.Link, Object.assign({ href: "https://cookiesandyou.com/", rel: "noopener noreferrer", target: "_blank" }, { children: "cookies" })
|
|
1765
|
+
return accepted ? null : (jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between" }, props, { children: [jsxRuntime.jsxs(material.Typography, Object.assign({ variant: "body2", margin: 2 }, { children: ['This site uses ', jsxRuntime.jsx(material.Link, Object.assign({ href: "https://cookiesandyou.com/", rel: "noopener noreferrer", target: "_blank" }, { children: "cookies" })), ' and ', jsxRuntime.jsx(material.Link, Object.assign({ href: "https://policies.google.com/technologies/partner-sites", rel: "noopener noreferrer", target: "_blank" }, { children: "Google\u00A0tools" })), ' to analyze traffic and for ads measurement purposes.'] })), jsxRuntime.jsx(ButtonEx, Object.assign({ variant: "contained", color: "secondary", onClick: onAcceptClick, margin: 2 }, { children: "Accept" }))] })));
|
|
1659
1766
|
};
|
|
1660
1767
|
|
|
1661
1768
|
const CookieConsent = (props) => {
|
|
1662
1769
|
const { storageName } = useCookieConsent();
|
|
1663
1770
|
const Inner = () => {
|
|
1664
1771
|
const { accepted } = useCookieConsent();
|
|
1665
|
-
return accepted ? null : (jsxRuntime.jsx(CookieConsentBody, Object.assign({ background: true, paper: true, position: "fixed", bottom: 0, maxWidth: "100vw", width: "100%", zIndex: 1000 }, props)
|
|
1772
|
+
return accepted ? null : (jsxRuntime.jsx(CookieConsentBody, Object.assign({ background: true, paper: true, position: "fixed", bottom: 0, maxWidth: "100vw", width: "100%", zIndex: 1000 }, props)));
|
|
1666
1773
|
};
|
|
1667
1774
|
//if not inside a context, make a context
|
|
1668
1775
|
if (!storageName) {
|
|
1669
|
-
return (jsxRuntime.jsx(CookieConsentLoader, { children: jsxRuntime.jsx(Inner, {}
|
|
1776
|
+
return (jsxRuntime.jsx(CookieConsentLoader, { children: jsxRuntime.jsx(Inner, {}) }));
|
|
1670
1777
|
}
|
|
1671
|
-
return jsxRuntime.jsx(Inner, {}
|
|
1778
|
+
return jsxRuntime.jsx(Inner, {});
|
|
1672
1779
|
};
|
|
1673
1780
|
|
|
1674
1781
|
const InvertableThemeContext = react.createContext({
|
|
@@ -1687,7 +1794,9 @@ const resolveThemeColors = (options) => {
|
|
|
1687
1794
|
},
|
|
1688
1795
|
});
|
|
1689
1796
|
};
|
|
1690
|
-
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1797
|
+
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1798
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
1799
|
+
darkTheme, darkOptions, lightOptions, }) => {
|
|
1691
1800
|
var _a, _b, _c;
|
|
1692
1801
|
const parentContext = react.useContext(InvertableThemeContext);
|
|
1693
1802
|
const clonedOptions = cloneDeep__default["default"]((_a = options !== null && options !== void 0 ? options : parentContext.options) !== null && _a !== void 0 ? _a : {});
|
|
@@ -1707,9 +1816,9 @@ const InvertableThemeProvider = ({ options, children, dark, resolve = false, sco
|
|
|
1707
1816
|
}
|
|
1708
1817
|
const theme = noResponsiveFonts ? styles$1.createTheme(themeOptions) : material.responsiveFontSizes(styles$1.createTheme(themeOptions));
|
|
1709
1818
|
const Provider = () => {
|
|
1710
|
-
return (jsxRuntime.jsx(InvertableThemeContext.Provider, Object.assign({ value: { darkOptions: clonedDarkOptions, lightOptions: clonedLightOptions, options: clonedOptions } }, { children: jsxRuntime.jsx(material.ThemeProvider, Object.assign({ theme: theme }, { children: children })
|
|
1819
|
+
return (jsxRuntime.jsx(InvertableThemeContext.Provider, Object.assign({ value: { darkOptions: clonedDarkOptions, lightOptions: clonedLightOptions, options: clonedOptions } }, { children: jsxRuntime.jsx(material.ThemeProvider, Object.assign({ theme: theme }, { children: children })) })));
|
|
1711
1820
|
};
|
|
1712
|
-
return scoped ? (jsxRuntime.jsx(material.ScopedCssBaseline, { children: jsxRuntime.jsx(Provider, {}
|
|
1821
|
+
return scoped ? (jsxRuntime.jsx(material.ScopedCssBaseline, { children: jsxRuntime.jsx(Provider, {}) })) : (jsxRuntime.jsx(Provider, {}));
|
|
1713
1822
|
};
|
|
1714
1823
|
|
|
1715
1824
|
// The point of this component it to return to the top of the page on any router navigate
|
|
@@ -1722,10 +1831,10 @@ const ScrollToTop = () => {
|
|
|
1722
1831
|
};
|
|
1723
1832
|
|
|
1724
1833
|
const BasePage = (_a) => {
|
|
1725
|
-
var { disableGutters, children, beta, container, hideFooter, appFooter, appBar, cookieConsent,
|
|
1834
|
+
var { disableGutters, children, beta, container, hideFooter, appFooter, appBar, cookieConsent, hideAppBar, noindex = false, scrollToTopButton = false, title } = _a, props = __rest(_a, ["disableGutters", "children", "beta", "container", "hideFooter", "appFooter", "appBar", "cookieConsent", "hideAppBar", "noindex", "scrollToTopButton", "title"]);
|
|
1726
1835
|
const theme = material.useTheme();
|
|
1727
1836
|
const scrollToTopAnchorId = 'scroll-to-top-anchor';
|
|
1728
|
-
return (jsxRuntime.jsxs(FlexCol, Object.assign({ justifyContent: "flex-start", color: theme.palette.text.primary, alignItems: "stretch", width: "100%", maxWidth: "100vw", minHeight: "100vh" }, props, { children: [jsxRuntime.jsx(ScrollToTop, {}
|
|
1837
|
+
return (jsxRuntime.jsxs(FlexCol, Object.assign({ justifyContent: "flex-start", color: theme.palette.text.primary, alignItems: "stretch", width: "100%", maxWidth: "100vw", minHeight: "100vh" }, props, { children: [jsxRuntime.jsx(ScrollToTop, {}), jsxRuntime.jsx(reactHelmet.Helmet, Object.assign({ title: title }, { children: noindex ? jsxRuntime.jsx("meta", { content: "noindex", name: "robots" }) : null })), scrollToTopButton ? jsxRuntime.jsx("div", { id: scrollToTopAnchorId }) : null, hideAppBar ? null : appBar, beta ? (jsxRuntime.jsx(FlexRow, Object.assign({ margin: 1, position: "absolute", top: 0, left: 0, bgcolor: "#cccccc88", paddingX: 1, style: { opacity: 0.5 } }, { children: jsxRuntime.jsx(material.Typography, Object.assign({ variant: "body2" }, { children: "Important: This page is a Beta page. It is possible that some information may not be correct." })) }))) : null, container ? (jsxRuntime.jsx(material.Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1 }, maxWidth: container, disableGutters: disableGutters }, { children: children }))) : (children), hideFooter ? null : jsxRuntime.jsx("footer", { children: appFooter }), cookieConsent !== null && cookieConsent !== void 0 ? cookieConsent : (jsxRuntime.jsx(material.ScopedCssBaseline, { children: jsxRuntime.jsx(InvertableThemeProvider, Object.assign({ invert: true }, { children: jsxRuntime.jsx(CookieConsent, { borderRadius: 0 }) })) })), scrollToTopButton ? (jsxRuntime.jsx(ScrollToTopButton, Object.assign({ anchorId: scrollToTopAnchorId }, { children: jsxRuntime.jsx(material.Fab, Object.assign({ "aria-label": "scroll to top", color: "secondary", size: "small" }, { children: jsxRuntime.jsx(iconsMaterial.KeyboardArrowUp, {}) })) }))) : null] })));
|
|
1729
1838
|
};
|
|
1730
1839
|
|
|
1731
1840
|
const getPartialPath = (pathParts, index) => {
|
|
@@ -1746,8 +1855,8 @@ const BreadcrumbsEx = (_a) => {
|
|
|
1746
1855
|
sdkJs.assertEx(pathParts.length - 1 === (titles === null || titles === void 0 ? void 0 : titles.length), `Path/Title length mismatch: ${JSON.stringify(titles)} with ${JSON.stringify(pathParts)}`);
|
|
1747
1856
|
return (jsxRuntime.jsxs(material.Breadcrumbs, Object.assign({ separator: separator }, props, { children: [pathParts.map((_pathPart, index) => {
|
|
1748
1857
|
const path = getPartialPath(pathParts, index);
|
|
1749
|
-
return (jsxRuntime.jsx(material.Link, Object.assign({ title: index > 0 ? titles === null || titles === void 0 ? void 0 : titles[index - 1] : 'COIN', color: index === pathParts.length - 1 ? 'textPrimary' : 'inherit', component: reactRouterDom.Link, to: path }, { children: index > 0 ? (titles === null || titles === void 0 ? void 0 : titles[index - 1]) : (jsxRuntime.jsx(FlexRow, { children: typeof logo === 'string' ? jsxRuntime.jsx("img", { src: logo }
|
|
1750
|
-
}), children] })
|
|
1858
|
+
return (jsxRuntime.jsx(material.Link, Object.assign({ title: index > 0 ? titles === null || titles === void 0 ? void 0 : titles[index - 1] : 'COIN', color: index === pathParts.length - 1 ? 'textPrimary' : 'inherit', component: reactRouterDom.Link, to: path }, { children: index > 0 ? (titles === null || titles === void 0 ? void 0 : titles[index - 1]) : (jsxRuntime.jsx(FlexRow, { children: typeof logo === 'string' ? jsxRuntime.jsx("img", { src: logo }) : logo })) }), path));
|
|
1859
|
+
}), children] })));
|
|
1751
1860
|
};
|
|
1752
1861
|
|
|
1753
1862
|
const toAxiosError = (error) => {
|
|
@@ -1764,12 +1873,12 @@ const ErrorDialogOpen = (_a) => {
|
|
|
1764
1873
|
};
|
|
1765
1874
|
const axiosError = toAxiosError(error);
|
|
1766
1875
|
const message = (_b = error.message) !== null && _b !== void 0 ? _b : error.toString();
|
|
1767
|
-
return (jsxRuntime.jsxs(material.Dialog, Object.assign({}, props, { children: [jsxRuntime.jsx(material.DialogTitle, { children: title }
|
|
1876
|
+
return (jsxRuntime.jsxs(material.Dialog, Object.assign({}, props, { children: [jsxRuntime.jsx(material.DialogTitle, { children: title }), jsxRuntime.jsx(material.DialogContent, { children: jsxRuntime.jsx(FlexRow, { children: jsxRuntime.jsx(material.Typography, Object.assign({ color: "error" }, { children: axiosError ? `${message} [${(_c = axiosError === null || axiosError === void 0 ? void 0 : axiosError.code) !== null && _c !== void 0 ? _c : 'Connection Failure'}]` : `${message}` })) }) }), jsxRuntime.jsx(material.DialogActions, { children: jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", minWidth: "300px" }, { children: [jsxRuntime.jsx(ButtonEx, Object.assign({ onClick: onCloseClicked, variant: "text" }, { children: "Close" })), jsxRuntime.jsx(ButtonEx, Object.assign({ onClick: onRetryClicked, variant: "text" }, { children: "Retry" }))] })) })] })));
|
|
1768
1877
|
};
|
|
1769
1878
|
const ErrorDialog = (_a) => {
|
|
1770
1879
|
var { open, error } = _a, props = __rest(_a, ["open", "error"]);
|
|
1771
1880
|
if (error) {
|
|
1772
|
-
return jsxRuntime.jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props)
|
|
1881
|
+
return jsxRuntime.jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props));
|
|
1773
1882
|
}
|
|
1774
1883
|
else {
|
|
1775
1884
|
return null;
|
|
@@ -1778,7 +1887,7 @@ const ErrorDialog = (_a) => {
|
|
|
1778
1887
|
|
|
1779
1888
|
const MessageDialog = (_a) => {
|
|
1780
1889
|
var { onOk, onCancel, children, title } = _a, props = __rest(_a, ["onOk", "onCancel", "children", "title"]);
|
|
1781
|
-
return (jsxRuntime.jsxs(material.Dialog, Object.assign({}, props, { children: [jsxRuntime.jsx(material.DialogTitle, { children: title }
|
|
1890
|
+
return (jsxRuntime.jsxs(material.Dialog, Object.assign({}, props, { children: [jsxRuntime.jsx(material.DialogTitle, { children: title }), jsxRuntime.jsx(material.DialogContent, { children: jsxRuntime.jsx(FlexCol, Object.assign({ alignItems: "stretch" }, { children: children })) }), jsxRuntime.jsx(material.DialogActions, { children: jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%" }, { children: [jsxRuntime.jsx(material.Button, Object.assign({ onClick: onCancel, variant: "text" }, { children: "Cancel" })), jsxRuntime.jsx(material.Button, Object.assign({ onClick: onOk, variant: "text" }, { children: "Ok" }))] })) })] })));
|
|
1782
1891
|
};
|
|
1783
1892
|
|
|
1784
1893
|
const useBreakpoint = () => {
|
|
@@ -1918,14 +2027,16 @@ const useUserEvents = () => {
|
|
|
1918
2027
|
let supportsWebP = undefined;
|
|
1919
2028
|
const useWebP = (webp, alt) => {
|
|
1920
2029
|
const [img, setImg] = react.useState();
|
|
1921
|
-
useAsyncEffect(
|
|
2030
|
+
useAsyncEffect(
|
|
2031
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2032
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1922
2033
|
if (supportsWebP === undefined) {
|
|
1923
2034
|
supportsWebP = yield getSupportsWebP();
|
|
1924
2035
|
}
|
|
1925
2036
|
if (mounted()) {
|
|
1926
2037
|
setImg(supportsWebP ? webp : alt);
|
|
1927
2038
|
}
|
|
1928
|
-
}), [
|
|
2039
|
+
}), [alt, webp]);
|
|
1929
2040
|
return img;
|
|
1930
2041
|
};
|
|
1931
2042
|
const getSupportsWebP = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1977,12 +2088,12 @@ const EthAccount = (_a) => {
|
|
|
1977
2088
|
? addressToDisplay.toString()
|
|
1978
2089
|
: addressToDisplay.toShortString();
|
|
1979
2090
|
// Note: We use the all zero address for spacing in case it is
|
|
1980
|
-
return (jsxRuntime.jsx(ButtonEx, Object.assign({ onClick: onClickLocal, title: `0x${address === null || address === void 0 ? void 0 : address.toHex()}` }, props, { children: jsxRuntime.jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between", alignItems: "center" }, { children: [icon && address ? jsxRuntime.jsx(Identicon, { size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }
|
|
2091
|
+
return (jsxRuntime.jsx(ButtonEx, Object.assign({ onClick: onClickLocal, title: `0x${address === null || address === void 0 ? void 0 : address.toHex()}` }, props, { children: jsxRuntime.jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between", alignItems: "center" }, { children: [icon && address ? jsxRuntime.jsx(Identicon, { size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }) : null, iconOnly ? null : (jsxRuntime.jsxs(FlexRow, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily, visibility: address ? 'inherit' : 'hidden' }, { children: testToDisplay })), address ? null : (jsxRuntime.jsx(material.Typography, Object.assign({ position: "absolute", marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily }, { children: "-- --" })))] })), isLocalAddress ? jsxRuntime.jsx(FlexRow, Object.assign({ marginLeft: 0.5 }, { children: "(You)" })) : null] })) })));
|
|
1981
2092
|
};
|
|
1982
2093
|
|
|
1983
2094
|
const Experiment = (props) => {
|
|
1984
2095
|
const { children } = props;
|
|
1985
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children }
|
|
2096
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
|
|
1986
2097
|
};
|
|
1987
2098
|
|
|
1988
2099
|
const OutcomesLocalStorageKey = 'outcomes';
|
|
@@ -2083,7 +2194,7 @@ const ExperimentsDebugger = (_a) => {
|
|
|
2083
2194
|
const sumUpVariants = (items) => items.reduce((acc, curr) => acc + curr.weight, 0);
|
|
2084
2195
|
const experimentEntries = Object.entries(experiments);
|
|
2085
2196
|
if (!experiments || !experimentEntries.length) {
|
|
2086
|
-
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle1" }, { children: "No Experiments loaded" })
|
|
2197
|
+
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle1" }, { children: "No Experiments loaded" })), jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle2" }, { children: "Visit a page with an experiment to load the data" }))] })));
|
|
2087
2198
|
}
|
|
2088
2199
|
return (jsxRuntime.jsx(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: Object.entries(experiments).map((data) => {
|
|
2089
2200
|
const [name, experiment] = data;
|
|
@@ -2095,22 +2206,22 @@ const ExperimentsDebugger = (_a) => {
|
|
|
2095
2206
|
value: index === 0 ? weight : sumUpVariants(experiment.variants.slice(0, index + 1)),
|
|
2096
2207
|
})),
|
|
2097
2208
|
];
|
|
2098
|
-
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", paddingX: 4, marginBottom: 4 }, props, { children: [jsxRuntime.jsxs(FlexRow, { children: [name, ":\u00A0", outcome] }
|
|
2209
|
+
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", paddingX: 4, marginBottom: 4 }, props, { children: [jsxRuntime.jsxs(FlexRow, { children: [name, ":\u00A0", outcome] }), jsxRuntime.jsx(FlexRow, { children: jsxRuntime.jsx(material.Slider, { "aria-label": `Experiment ${name}`, defaultValue: outcome, value: outcome, marks: marks, onChange: (e, value) => {
|
|
2099
2210
|
const truncated = Number((Array.isArray(value) ? value[0] : value).toFixed(2));
|
|
2100
2211
|
outcomes[name] = truncated;
|
|
2101
2212
|
// Spread operator triggers rerender
|
|
2102
2213
|
setOutcomes(Object.assign({}, outcomes));
|
|
2103
|
-
} }
|
|
2104
|
-
}) })
|
|
2214
|
+
} }) })] }), `experiment-${name}`));
|
|
2215
|
+
}) })));
|
|
2105
2216
|
};
|
|
2106
2217
|
|
|
2107
2218
|
const LinkEx = (_a) => {
|
|
2108
2219
|
var { to } = _a, props = __rest(_a, ["to"]);
|
|
2109
2220
|
if (to) {
|
|
2110
|
-
return jsxRuntime.jsx(material.Link, Object.assign({ component: reactRouterDom.Link, to: to }, props)
|
|
2221
|
+
return jsxRuntime.jsx(material.Link, Object.assign({ component: reactRouterDom.Link, to: to }, props));
|
|
2111
2222
|
}
|
|
2112
2223
|
else {
|
|
2113
|
-
return jsxRuntime.jsx(material.Link, Object.assign({}, props)
|
|
2224
|
+
return jsxRuntime.jsx(material.Link, Object.assign({}, props));
|
|
2114
2225
|
}
|
|
2115
2226
|
};
|
|
2116
2227
|
/** @deprecated use LinkEx instead */
|
|
@@ -2120,7 +2231,7 @@ const MenuEx = (_a) => {
|
|
|
2120
2231
|
var { MenuListProps = {}, mode = 'light', colorize } = _a, props = __rest(_a, ["MenuListProps", "mode", "colorize"]);
|
|
2121
2232
|
const theme = material.useTheme();
|
|
2122
2233
|
const colorizeMenuListProps = colorize ? { sx: { backgroundColor: theme.palette[colorize][mode] } } : {};
|
|
2123
|
-
return jsxRuntime.jsx(material.Menu, Object.assign({ MenuListProps: merge__default["default"](MenuListProps, colorizeMenuListProps) }, props)
|
|
2234
|
+
return jsxRuntime.jsx(material.Menu, Object.assign({ MenuListProps: merge__default["default"](MenuListProps, colorizeMenuListProps) }, props));
|
|
2124
2235
|
};
|
|
2125
2236
|
|
|
2126
2237
|
const NumberStatus = (_a) => {
|
|
@@ -2132,7 +2243,7 @@ const NumberStatus = (_a) => {
|
|
|
2132
2243
|
const bgColorBottom = (_c = palette === null || palette === void 0 ? void 0 : palette.main) !== null && _c !== void 0 ? _c : theme.palette.background.default;
|
|
2133
2244
|
const sizePixels = size === 'large' ? 96 : size === 'small' ? 64 : 80;
|
|
2134
2245
|
const calcFontSize = fontSize !== null && fontSize !== void 0 ? fontSize : sizePixels * 0.2;
|
|
2135
|
-
return (jsxRuntime.jsx(ButtonEx, Object.assign({ size: size, padding: 0, style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0, overflow: rounded ? 'hidden' : undefined }, style) }, props, { children: jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", height: sizePixels, width: autoWidth ? '100%' : sizePixels, busy: value === undefined && !error }, { children: [jsxRuntime.jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorTop, color: theme.palette.getContrastText(bgColorTop), fontSize: calcFontSize, fontFamily: "Source Code Pro,monospace", alignItems: "center", height: sizePixels * 0.75 }, { children: numeral__default["default"](value).format(format) })
|
|
2246
|
+
return (jsxRuntime.jsx(ButtonEx, Object.assign({ size: size, padding: 0, style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0, overflow: rounded ? 'hidden' : undefined }, style) }, props, { children: jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", height: sizePixels, width: autoWidth ? '100%' : sizePixels, busy: value === undefined && !error }, { children: [jsxRuntime.jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorTop, color: theme.palette.getContrastText(bgColorTop), fontSize: calcFontSize, fontFamily: "Source Code Pro,monospace", alignItems: "center", height: sizePixels * 0.75 }, { children: numeral__default["default"](value).format(format) })), jsxRuntime.jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorBottom, borderTop: "1px", color: theme.palette.getContrastText(bgColorBottom), fontSize: sizePixels * 0.12, fontFamily: theme.typography.fontFamily, height: sizePixels * 0.25 }, { children: title }))] })) })));
|
|
2136
2247
|
};
|
|
2137
2248
|
|
|
2138
2249
|
const Portal = ({ children, className, el = 'div', target = 'body' }) => {
|
|
@@ -2192,35 +2303,35 @@ const PixelDebugger = () => {
|
|
|
2192
2303
|
backgroundColor: 'rgba(18, 18, 18, .70)',
|
|
2193
2304
|
overflowY: 'auto',
|
|
2194
2305
|
width: '100%',
|
|
2195
|
-
}, color: theme.palette.primary.main }, { children: jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", sx: { flexFlow: 'column', maxHeight: 400 } }, { children: [jsxRuntime.jsx(FlexCol, Object.assign({ alignItems: "stretch", sx: { flex: '0 1 auto' } }, { children: jsxRuntime.jsx(ButtonEx, Object.assign({ variant: "text", onClick: () => setDisplayEvents(!displayEvents) }, { children: "XY Pixel Debugger" })
|
|
2306
|
+
}, color: theme.palette.primary.main }, { children: jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", sx: { flexFlow: 'column', maxHeight: 400 } }, { children: [jsxRuntime.jsx(FlexCol, Object.assign({ alignItems: "stretch", sx: { flex: '0 1 auto' } }, { children: jsxRuntime.jsx(ButtonEx, Object.assign({ variant: "text", onClick: () => setDisplayEvents(!displayEvents) }, { children: "XY Pixel Debugger" })) })), displayEvents && !!events.length && (jsxRuntime.jsx(FlexCol, Object.assign({ alignItems: "stretch", alignContent: "start", padding: 2, sx: { cursor: 'pointer', flex: '1 1 auto', overflowY: 'auto', userSelect: 'none' } }, { children: events.map((e, index) => (jsxRuntime.jsx(PixelEventDetails, Object.assign({ events: events, index: index }, e), `${e.event}-${index}`))) }))), displayEvents && !events.length && jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle2" }, { children: "No Events" }))] })) })) })) })) }));
|
|
2196
2307
|
};
|
|
2197
2308
|
const PixelEventDetails = ({ event, fields, index, events, }) => {
|
|
2198
2309
|
const [isOpen, setIsOpen] = react.useState(false);
|
|
2199
|
-
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", marginBottom: 0.5, onClick: () => setIsOpen(!isOpen) }, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle2" }, { children: event })
|
|
2310
|
+
return (jsxRuntime.jsxs(FlexCol, Object.assign({ alignItems: "stretch", marginBottom: 0.5, onClick: () => setIsOpen(!isOpen) }, { children: [jsxRuntime.jsx(material.Typography, Object.assign({ variant: "subtitle2" }, { children: event })), isOpen && (jsxRuntime.jsx(material.Typography, Object.assign({ marginBottom: 0.5, variant: "caption" }, { children: JSON.stringify(fields, null, 2) }))), events[index + 1] && jsxRuntime.jsx(material.Divider, {})] })));
|
|
2200
2311
|
};
|
|
2201
2312
|
|
|
2202
2313
|
const PixelDebuggerProvider = ({ children }) => {
|
|
2203
2314
|
const [isDebugging, setIsDebugging] = useLocalStorage('isDebuggingPixel', false);
|
|
2204
|
-
return (jsxRuntime.jsx(DebugUserEventsContext.Provider, Object.assign({ value: { isDebugging, setIsDebugging } }, { children: children })
|
|
2315
|
+
return (jsxRuntime.jsx(DebugUserEventsContext.Provider, Object.assign({ value: { isDebugging, setIsDebugging } }, { children: children })));
|
|
2205
2316
|
};
|
|
2206
2317
|
|
|
2207
2318
|
const PixelDebuggerToggle = (_a) => {
|
|
2208
2319
|
var props = __rest(_a, []);
|
|
2209
2320
|
const { setIsDebugging, isDebugging } = react.useContext(DebugUserEventsContext);
|
|
2210
|
-
return (jsxRuntime.jsx(FlexRow, Object.assign({}, props, { children: jsxRuntime.jsxs(material.FormControl, { children: [jsxRuntime.jsx(material.FormLabel, { children: "Enable Debugger" }
|
|
2321
|
+
return (jsxRuntime.jsx(FlexRow, Object.assign({}, props, { children: jsxRuntime.jsxs(material.FormControl, { children: [jsxRuntime.jsx(material.FormLabel, { children: "Enable Debugger" }), jsxRuntime.jsx(material.Switch, { checked: isDebugging, onClick: () => setIsDebugging(!isDebugging) })] }) })));
|
|
2211
2322
|
};
|
|
2212
2323
|
|
|
2213
2324
|
const QuickTipButton = (_a) => {
|
|
2214
2325
|
var { title, children } = _a, props = __rest(_a, ["title", "children"]);
|
|
2215
2326
|
const [messageOpen, setMessageOpen] = react.useState(false);
|
|
2216
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(material.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: jsxRuntime.jsx(ai.AiOutlineQuestionCircle, { size: 16 }
|
|
2327
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(material.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: jsxRuntime.jsx(ai.AiOutlineQuestionCircle, { size: 16 }) })), jsxRuntime.jsx(MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }))] }));
|
|
2217
2328
|
};
|
|
2218
2329
|
|
|
2219
2330
|
const RichResult = (props) => {
|
|
2220
2331
|
const { thing } = props;
|
|
2221
2332
|
const thingWithContext = thing;
|
|
2222
2333
|
thingWithContext['@context'] = 'https://schema.org';
|
|
2223
|
-
return jsxRuntime.jsx("script", Object.assign({ type: "application/ld+json" }, { children: JSON.stringify(thingWithContext) })
|
|
2334
|
+
return jsxRuntime.jsx("script", Object.assign({ type: "application/ld+json" }, { children: JSON.stringify(thingWithContext) }));
|
|
2224
2335
|
};
|
|
2225
2336
|
|
|
2226
2337
|
exports.ActionStatusType = void 0;
|
|
@@ -2273,7 +2384,7 @@ const SelectEx = (_a) => {
|
|
|
2273
2384
|
const colorizeMenuProps = colorize
|
|
2274
2385
|
? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } }
|
|
2275
2386
|
: {};
|
|
2276
|
-
return jsxRuntime.jsx(material.Select, Object.assign({ MenuProps: merge__default["default"](MenuProps, colorizeMenuProps) }, props)
|
|
2387
|
+
return jsxRuntime.jsx(material.Select, Object.assign({ MenuProps: merge__default["default"](MenuProps, colorizeMenuProps) }, props));
|
|
2277
2388
|
};
|
|
2278
2389
|
|
|
2279
2390
|
var img = "data:image/svg+xml,%3csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 238'%3e%3cdefs%3e%3cstyle%3e.cls-1%7bfill:%23999%3b%7d%3c/style%3e%3c/defs%3e%3ctitle%3eicon_gray%3c/title%3e%3cpath class='cls-1' d='M74.5%2c28.33%2c21.29%2c120.5%2c74.5%2c212.67H180.94l1.76-3%2c51.46-89.13L180.94%2c28.33ZM84.65%2c40.54h78.83L111.65%2c56.93a15.85%2c15.85%2c0%2c0%2c1%2c2%2c5l59.66-18.81L185.22%2c101a20.12%2c20.12%2c0%2c0%2c1%2c5.36-.78l-10-47.91%2c37.87%2c65.53h-7.62a24.21%2c24.21%2c0%2c0%2c1%2c.15%2c2.68%2c23.29%2c23.29%2c0%2c0%2c1-.15%2c2.68h7.62l-39.1%2c67.75%2c10.92-50.13A20.57%2c20.57%2c0%2c0%2c1%2c185%2c140l-12.88%2c59-58.37-19.53a17.61%2c17.61%2c0%2c0%2c1-1.7%2c5l47.5%2c15.92H84.65l4-6.85A20.17%2c20.17%2c0%2c0%2c1%2c83.93%2c191L80%2c197.78%2c42.67%2c133.13l37%2c32.66a20.52%2c20.52%2c0%2c0%2c1%2c3.6-4L36.69%2c120.66%2c85%2c77.79a17.45%2c17.45%2c0%2c0%2c1-3.19-4.32l-39.46%2c35L80%2c43.22l5.56%2c9.69A17.51%2c17.51%2c0%2c0%2c1%2c90.12%2c50Zm28.24%2c31.17a16.15%2c16.15%2c0%2c0%2c1-2.68%2c4.64l62%2c35.81a19.74%2c19.74%2c0%2c0%2c1%2c2.83-4.54Zm-20%2c10.51v75.33a18%2c18%2c0%2c0%2c1%2c2.47-.16%2c17.18%2c17.18%2c0%2c0%2c1%2c2.89.21v-75a11.21%2c11.21%2c0%2c0%2c1-1.29%2c0%2c17.57%2c17.57%2c0%2c0%2c1-4.07-.47Zm79.34%2c46.63-62.08%2c35.81a18.45%2c18.45%2c0%2c0%2c1%2c2.68%2c4.68l62.23-36a19.68%2c19.68%2c0%2c0%2c1-2.83-4.53Z'/%3e%3cpath class='cls-1' d='M97%2c48.58a17.06%2c17.06%2c0%2c1%2c0%2c17%2c17%2c17.08%2c17.08%2c0%2c0%2c0-17-17Zm0%2c5.36a11.7%2c11.7%2c0%2c1%2c1-11.7%2c11.69A11.65%2c11.65%2c0%2c0%2c1%2c97%2c53.94Z'/%3e%3cpath class='cls-1' d='M95.37%2c157.39a18.73%2c18.73%2c0%2c1%2c0%2c18.7%2c18.7%2c18.74%2c18.74%2c0%2c0%2c0-18.7-18.7Zm0%2c5.31A13.4%2c13.4%2c0%2c1%2c1%2c82%2c176.09a13.37%2c13.37%2c0%2c0%2c1%2c13.4-13.39Z'/%3e%3cpath class='cls-1' d='M190.73%2c100.2A20.3%2c20.3%2c0%2c1%2c0%2c211%2c120.5a20.34%2c20.34%2c0%2c0%2c0-20.3-20.3Zm0%2c5.36a14.94%2c14.94%2c0%2c1%2c1-14.94%2c14.94%2c14.88%2c14.88%2c0%2c0%2c1%2c14.94-14.94Z'/%3e%3c/svg%3e";
|
|
@@ -2291,7 +2402,7 @@ const TokenAmount = (_a) => {
|
|
|
2291
2402
|
var { textFontFamily = '"Source Code Pro",monospace', textColor, statusColor, style, amount, places = -18, logo, label, onButtonClick } = _a, props = __rest(_a, ["textFontFamily", "textColor", "statusColor", "style", "amount", "places", "logo", "label", "onButtonClick"]);
|
|
2292
2403
|
const adjustedAmount = amount ? base10Shift(amount, places).toNumber() : undefined;
|
|
2293
2404
|
const amountString = adjustedAmount ? Math.trunc(adjustedAmount).toLocaleString() : '-';
|
|
2294
|
-
return (jsxRuntime.jsx(ButtonEx, Object.assign({ style: Object.assign({ backgroundColor: statusColor }, style), variant: "outlined", onClick: onButtonClick }, props, { children: jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", busy: amount === undefined, busySize: 16 }, { children: [jsxRuntime.jsxs(FlexRow, { children: [logo ? jsxRuntime.jsx("img", { src: img, height: 24 }
|
|
2405
|
+
return (jsxRuntime.jsx(ButtonEx, Object.assign({ style: Object.assign({ backgroundColor: statusColor }, style), variant: "outlined", onClick: onButtonClick }, props, { children: jsxRuntime.jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", busy: amount === undefined, busySize: 16 }, { children: [jsxRuntime.jsxs(FlexRow, { children: [logo ? jsxRuntime.jsx("img", { src: img, height: 24 }) : null, label ? (jsxRuntime.jsx(material.Typography, Object.assign({ marginRight: 1, marginLeft: logo ? 1 : 0, noWrap: true, fontFamily: textFontFamily, variant: "caption" }, { children: label }))) : null] }), jsxRuntime.jsx(material.Typography, Object.assign({ color: textColor, noWrap: true, fontFamily: textFontFamily, variant: "body1", style: { textTransform: 'none' } }, { children: amountString }))] })) })));
|
|
2295
2406
|
};
|
|
2296
2407
|
|
|
2297
2408
|
Object.defineProperty(exports, 'useMediaQuery', {
|
|
@@ -2312,6 +2423,7 @@ exports.CoverProgress = CoverProgress;
|
|
|
2312
2423
|
exports.DebugUserEventsContext = DebugUserEventsContext;
|
|
2313
2424
|
exports.DripCustomEvent = DripCustomEvent;
|
|
2314
2425
|
exports.DripStandardEvents = DripStandardEvents;
|
|
2426
|
+
exports.EF = EF;
|
|
2315
2427
|
exports.ErrorDialog = ErrorDialog;
|
|
2316
2428
|
exports.EthAccount = EthAccount;
|
|
2317
2429
|
exports.EthersContext = EthersContext;
|
|
@@ -2321,6 +2433,7 @@ exports.Experiments = Experiments;
|
|
|
2321
2433
|
exports.ExperimentsDebugger = ExperimentsDebugger;
|
|
2322
2434
|
exports.FacebookCustomEvent = FacebookCustomEvent;
|
|
2323
2435
|
exports.FacebookStandardEvents = FacebookStandardEvents;
|
|
2436
|
+
exports.FacebookUserEventHandler = FacebookUserEventHandler;
|
|
2324
2437
|
exports.Fbq = Fbq;
|
|
2325
2438
|
exports.FlexCol = FlexCol;
|
|
2326
2439
|
exports.FlexGrowCol = FlexGrowCol;
|
|
@@ -2358,12 +2471,14 @@ exports.ScrollToTopButton = ScrollToTopButton;
|
|
|
2358
2471
|
exports.SelectEx = SelectEx;
|
|
2359
2472
|
exports.SnapTr = SnapTr;
|
|
2360
2473
|
exports.SnapchatStandardEvents = SnapchatStandardEvents;
|
|
2474
|
+
exports.TapjoyStandardEvent = TapjoyStandardEvent;
|
|
2475
|
+
exports.TapjoyStandardEvents = TapjoyStandardEvents;
|
|
2361
2476
|
exports.TiktokCustomEvent = TiktokCustomEvent;
|
|
2362
2477
|
exports.TiktokStandardEvents = TiktokStandardEvents;
|
|
2363
2478
|
exports.TokenAmount = TokenAmount;
|
|
2364
2479
|
exports.Ttq = Ttq;
|
|
2365
2480
|
exports.UserEventsContext = UserEventsContext;
|
|
2366
|
-
exports.
|
|
2481
|
+
exports.UserEventsProvider = UserEventsProvider;
|
|
2367
2482
|
exports.XyBaseEvent = XyBaseEvent;
|
|
2368
2483
|
exports.XyCustomEvent = XyCustomEvent;
|
|
2369
2484
|
exports.XyUserEventHandler = XyUserEventHandler;
|