@xylabs/sdk-react 2.7.17 → 2.7.21

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.
Files changed (955) hide show
  1. package/dist/esm2017/index.d.ts +1 -0
  2. package/dist/esm2017/index.js +1982 -0
  3. package/dist/esm2017/index.js.map +1 -0
  4. package/dist/esm2017/index.node.d.ts +1 -0
  5. package/dist/esm2017/src/BoxlikeComponentProps.d.ts +41 -0
  6. package/dist/esm2017/src/BusyProps.d.ts +13 -0
  7. package/dist/esm2017/src/Margin.d.ts +2 -0
  8. package/dist/esm2017/src/Padding.d.ts +2 -0
  9. package/dist/esm2017/src/calcSpacing.d.ts +4 -0
  10. package/dist/esm2017/src/components/AppBarEx/AppBarEx.d.ts +4 -0
  11. package/dist/esm2017/src/components/AppBarEx/AppBarEx.stories.d.ts +6 -0
  12. package/dist/esm2017/src/components/AppBarEx/AppBarExProps.d.ts +8 -0
  13. package/dist/esm2017/src/components/AppBarEx/index.d.ts +4 -0
  14. package/dist/esm2017/src/components/Background.d.ts +7 -0
  15. package/dist/esm2017/src/components/BasePage/BasePage.d.ts +4 -0
  16. package/dist/esm2017/src/components/BasePage/BasePage.stories.d.ts +6 -0
  17. package/dist/esm2017/src/components/BasePage/BasePageProps.d.ts +17 -0
  18. package/dist/esm2017/src/components/BasePage/index.d.ts +4 -0
  19. package/dist/esm2017/src/components/Breadcrumbs/BreadcrumbsEx.d.ts +4 -0
  20. package/dist/esm2017/src/components/Breadcrumbs/BreadcrumbsEx.stories.d.ts +7 -0
  21. package/dist/esm2017/src/components/Breadcrumbs/BreadcrumbsExProps.d.ts +8 -0
  22. package/dist/esm2017/src/components/Breadcrumbs/index.d.ts +2 -0
  23. package/dist/esm2017/src/components/BusyCircularProgress.d.ts +10 -0
  24. package/dist/esm2017/src/components/BusyLinearProgress.d.ts +9 -0
  25. package/dist/esm2017/src/components/ButtonEx/ButtonEx.d.ts +4 -0
  26. package/dist/esm2017/src/components/ButtonEx/ButtonEx.stories.d.ts +8 -0
  27. package/dist/esm2017/src/components/ButtonEx/ButtonExBase.d.ts +4 -0
  28. package/dist/esm2017/src/components/ButtonEx/ButtonExProps.d.ts +10 -0
  29. package/dist/esm2017/src/components/ButtonEx/ButtonExTo.d.ts +4 -0
  30. package/dist/esm2017/src/components/ButtonEx/index.d.ts +2 -0
  31. package/dist/esm2017/src/components/CookieConsent/CookieConsent.d.ts +4 -0
  32. package/dist/esm2017/src/components/CookieConsent/CookieConsent.stories.d.ts +7 -0
  33. package/dist/esm2017/src/components/CookieConsent/CookieConsentBody.d.ts +4 -0
  34. package/dist/esm2017/src/components/CookieConsent/CookieConsentProps.d.ts +7 -0
  35. package/dist/esm2017/src/components/CookieConsent/index.d.ts +3 -0
  36. package/dist/esm2017/src/components/CoverProgress.d.ts +10 -0
  37. package/dist/esm2017/src/components/Errors/ErrorViewer.d.ts +4 -0
  38. package/dist/esm2017/src/components/Errors/ErrorViewer.stories.d.ts +6 -0
  39. package/dist/esm2017/src/components/Errors/ErrorViewerProps.d.ts +5 -0
  40. package/dist/esm2017/src/components/Errors/ErrorsViewer.d.ts +4 -0
  41. package/dist/esm2017/src/components/Errors/ErrorsViewer.stories.d.ts +6 -0
  42. package/dist/esm2017/src/components/Errors/ErrorsViewerProps.d.ts +6 -0
  43. package/dist/esm2017/src/components/Errors/index.d.ts +3 -0
  44. package/dist/esm2017/src/components/EthAccount/EthAccount.d.ts +4 -0
  45. package/dist/esm2017/src/components/EthAccount/EthAccount.stories.d.ts +11 -0
  46. package/dist/esm2017/src/components/EthAccount/EthAccountProps.d.ts +17 -0
  47. package/dist/esm2017/src/components/EthAccount/index.d.ts +4 -0
  48. package/dist/esm2017/src/components/EthBlock.d.ts +6 -0
  49. package/dist/esm2017/src/components/Experiments/Experiment.d.ts +6 -0
  50. package/dist/esm2017/src/components/Experiments/Experiments.d.ts +10 -0
  51. package/dist/esm2017/src/components/Experiments/index.d.ts +3 -0
  52. package/dist/esm2017/src/components/FlexBox/BusyBox.d.ts +10 -0
  53. package/dist/esm2017/src/components/FlexBox/BusyBox.stories.d.ts +10 -0
  54. package/dist/esm2017/src/components/FlexBox/FlexCol.d.ts +5 -0
  55. package/dist/esm2017/src/components/FlexBox/FlexCol.stories.d.ts +8 -0
  56. package/dist/esm2017/src/components/FlexBox/FlexRow.d.ts +7 -0
  57. package/dist/esm2017/src/components/FlexBox/FlexRow.stories.d.ts +10 -0
  58. package/dist/esm2017/src/components/FlexBox/index.d.ts +3 -0
  59. package/dist/esm2017/src/components/HoverScale.d.ts +6 -0
  60. package/dist/esm2017/src/components/Identicon.d.ts +14 -0
  61. package/dist/esm2017/src/components/InvertableThemeProvider/InvertableTheme.d.ts +5 -0
  62. package/dist/esm2017/src/components/InvertableThemeProvider/InvertableThemeContext.d.ts +4 -0
  63. package/dist/esm2017/src/components/InvertableThemeProvider/InvertableThemeProvider.d.ts +4 -0
  64. package/dist/esm2017/src/components/InvertableThemeProvider/InvertableThemeProvider.stories.d.ts +6 -0
  65. package/dist/esm2017/src/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +9 -0
  66. package/dist/esm2017/src/components/InvertableThemeProvider/index.d.ts +4 -0
  67. package/dist/esm2017/src/components/LinkEx/LinkToEx.d.ts +8 -0
  68. package/dist/esm2017/src/components/LinkEx/index.d.ts +2 -0
  69. package/dist/esm2017/src/components/NumberStatus/NumberStatus.d.ts +4 -0
  70. package/dist/esm2017/src/components/NumberStatus/NumberStatus.stories.d.ts +14 -0
  71. package/dist/esm2017/src/components/NumberStatus/NumberStatusProps.d.ts +13 -0
  72. package/dist/esm2017/src/components/NumberStatus/index.d.ts +2 -0
  73. package/dist/esm2017/src/components/QuickTipButton/QuickTipButton.d.ts +4 -0
  74. package/dist/esm2017/src/components/QuickTipButton/QuickTipButton.stories.d.ts +6 -0
  75. package/dist/esm2017/src/components/QuickTipButton/index.d.ts +2 -0
  76. package/dist/esm2017/src/components/RedirectWithQuery.d.ts +8 -0
  77. package/dist/esm2017/src/components/RichResult/RichResult.d.ts +7 -0
  78. package/dist/esm2017/src/components/RichResult/index.d.ts +3 -0
  79. package/dist/esm2017/src/components/RichResult/jsonld/Action.d.ts +24 -0
  80. package/dist/esm2017/src/components/RichResult/jsonld/ActionStatusType.d.ts +7 -0
  81. package/dist/esm2017/src/components/RichResult/jsonld/AdministrativeArea.d.ts +3 -0
  82. package/dist/esm2017/src/components/RichResult/jsonld/AggrigateRating.d.ts +8 -0
  83. package/dist/esm2017/src/components/RichResult/jsonld/Article.d.ts +14 -0
  84. package/dist/esm2017/src/components/RichResult/jsonld/Base.d.ts +4 -0
  85. package/dist/esm2017/src/components/RichResult/jsonld/Brand.d.ts +11 -0
  86. package/dist/esm2017/src/components/RichResult/jsonld/Class.d.ts +7 -0
  87. package/dist/esm2017/src/components/RichResult/jsonld/ContactPoint.d.ts +19 -0
  88. package/dist/esm2017/src/components/RichResult/jsonld/ContactPointOption.d.ts +5 -0
  89. package/dist/esm2017/src/components/RichResult/jsonld/Country.d.ts +3 -0
  90. package/dist/esm2017/src/components/RichResult/jsonld/CreativeWork.d.ts +122 -0
  91. package/dist/esm2017/src/components/RichResult/jsonld/DateTime.d.ts +2 -0
  92. package/dist/esm2017/src/components/RichResult/jsonld/EntryPoint.d.ts +13 -0
  93. package/dist/esm2017/src/components/RichResult/jsonld/Enumeration.d.ts +7 -0
  94. package/dist/esm2017/src/components/RichResult/jsonld/GeoShape.d.ts +15 -0
  95. package/dist/esm2017/src/components/RichResult/jsonld/GeospatialGeometry.d.ts +15 -0
  96. package/dist/esm2017/src/components/RichResult/jsonld/ImageObject.d.ts +9 -0
  97. package/dist/esm2017/src/components/RichResult/jsonld/Intangible.d.ts +3 -0
  98. package/dist/esm2017/src/components/RichResult/jsonld/Integer.d.ts +2 -0
  99. package/dist/esm2017/src/components/RichResult/jsonld/ItemAvailability.d.ts +21 -0
  100. package/dist/esm2017/src/components/RichResult/jsonld/Language.d.ts +3 -0
  101. package/dist/esm2017/src/components/RichResult/jsonld/Map.d.ts +6 -0
  102. package/dist/esm2017/src/components/RichResult/jsonld/MapCategoryType.d.ts +7 -0
  103. package/dist/esm2017/src/components/RichResult/jsonld/MediaObject.d.ts +10 -0
  104. package/dist/esm2017/src/components/RichResult/jsonld/MobileApplication.d.ts +6 -0
  105. package/dist/esm2017/src/components/RichResult/jsonld/Offer.d.ts +64 -0
  106. package/dist/esm2017/src/components/RichResult/jsonld/Organization.d.ts +77 -0
  107. package/dist/esm2017/src/components/RichResult/jsonld/Person.d.ts +71 -0
  108. package/dist/esm2017/src/components/RichResult/jsonld/Photograph.d.ts +3 -0
  109. package/dist/esm2017/src/components/RichResult/jsonld/Place.d.ts +42 -0
  110. package/dist/esm2017/src/components/RichResult/jsonld/PostalAddress.d.ts +12 -0
  111. package/dist/esm2017/src/components/RichResult/jsonld/Product.d.ts +56 -0
  112. package/dist/esm2017/src/components/RichResult/jsonld/Property.d.ts +10 -0
  113. package/dist/esm2017/src/components/RichResult/jsonld/PropertyValue.d.ts +16 -0
  114. package/dist/esm2017/src/components/RichResult/jsonld/QualitativeValue.d.ts +15 -0
  115. package/dist/esm2017/src/components/RichResult/jsonld/QuantitativeValue.d.ts +15 -0
  116. package/dist/esm2017/src/components/RichResult/jsonld/Rating.d.ts +10 -0
  117. package/dist/esm2017/src/components/RichResult/jsonld/Review.d.ts +10 -0
  118. package/dist/esm2017/src/components/RichResult/jsonld/Service.d.ts +38 -0
  119. package/dist/esm2017/src/components/RichResult/jsonld/SoftwareApplication.d.ts +28 -0
  120. package/dist/esm2017/src/components/RichResult/jsonld/StructuredValue.d.ts +3 -0
  121. package/dist/esm2017/src/components/RichResult/jsonld/Text.d.ts +2 -0
  122. package/dist/esm2017/src/components/RichResult/jsonld/Thing.d.ts +22 -0
  123. package/dist/esm2017/src/components/RichResult/jsonld/Time.d.ts +2 -0
  124. package/dist/esm2017/src/components/RichResult/jsonld/URL.d.ts +2 -0
  125. package/dist/esm2017/src/components/RichResult/jsonld/VirtualLocation.d.ts +3 -0
  126. package/dist/esm2017/src/components/RichResult/jsonld/index.d.ts +48 -0
  127. package/dist/esm2017/src/components/ScrollToTop.d.ts +1 -0
  128. package/dist/esm2017/src/components/ScrollToTopButton.d.ts +7 -0
  129. package/dist/esm2017/src/components/TokenAmount/TokenAmount.d.ts +4 -0
  130. package/dist/esm2017/src/components/TokenAmount/TokenAmount.stories.d.ts +12 -0
  131. package/dist/esm2017/src/components/TokenAmount/TokenAmountProps.d.ts +14 -0
  132. package/dist/esm2017/src/components/TokenAmount/index.d.ts +4 -0
  133. package/dist/esm2017/src/components/dialogs/ErrorDialog.d.ts +8 -0
  134. package/dist/esm2017/src/components/dialogs/ErrorDialog.stories.d.ts +6 -0
  135. package/dist/esm2017/src/components/dialogs/MessageDialog.d.ts +7 -0
  136. package/dist/esm2017/src/components/dialogs/MessageDialog.stories.d.ts +6 -0
  137. package/dist/esm2017/src/components/dialogs/index.d.ts +3 -0
  138. package/dist/esm2017/src/components/index.d.ts +23 -0
  139. package/dist/esm2017/src/contexts/CookieConsent/Context.d.ts +8 -0
  140. package/dist/esm2017/src/contexts/CookieConsent/Loader.d.ts +3 -0
  141. package/dist/esm2017/src/contexts/CookieConsent/index.d.ts +4 -0
  142. package/dist/esm2017/src/contexts/CookieConsent/use.d.ts +7 -0
  143. package/dist/esm2017/src/contexts/Ethers/Context.d.ts +19 -0
  144. package/dist/esm2017/src/contexts/Ethers/Infura.d.ts +7 -0
  145. package/dist/esm2017/src/contexts/Ethers/Loader.d.ts +6 -0
  146. package/dist/esm2017/src/contexts/Ethers/MetaMask.d.ts +6 -0
  147. package/dist/esm2017/src/contexts/Ethers/MyEtherWallet.d.ts +6 -0
  148. package/dist/esm2017/src/contexts/Ethers/Opera.d.ts +6 -0
  149. package/dist/esm2017/src/contexts/Ethers/Trust.d.ts +6 -0
  150. package/dist/esm2017/src/contexts/Ethers/index.d.ts +2 -0
  151. package/dist/esm2017/src/contexts/NetworkSettings/Context.d.ts +9 -0
  152. package/dist/esm2017/src/contexts/NetworkSettings/Loader.d.ts +6 -0
  153. package/dist/esm2017/src/contexts/NetworkSettings/index.d.ts +3 -0
  154. package/dist/esm2017/src/contexts/UserEvents/Context.d.ts +7 -0
  155. package/dist/esm2017/src/contexts/UserEvents/index.d.ts +2 -0
  156. package/dist/esm2017/src/contexts/index.d.ts +4 -0
  157. package/dist/esm2017/src/hooks/index.d.ts +7 -0
  158. package/dist/esm2017/src/hooks/useBreakpoint.d.ts +1 -0
  159. package/dist/esm2017/src/hooks/useMediaQuery.d.ts +2 -0
  160. package/dist/esm2017/src/hooks/useMounted.d.ts +1 -0
  161. package/dist/esm2017/src/hooks/useNavigateToEthAddress.d.ts +5 -0
  162. package/dist/esm2017/src/hooks/useSpacing.d.ts +1 -0
  163. package/dist/esm2017/src/hooks/useWebP.d.ts +1 -0
  164. package/dist/esm2017/src/hooks/useWindowSize.d.ts +6 -0
  165. package/dist/esm2017/src/index.d.ts +4 -0
  166. package/dist/esm2017/src/lib/ComponentSizes.d.ts +2 -0
  167. package/dist/esm2017/src/lib/Tracking/Drip/BaseEvent.d.ts +12 -0
  168. package/dist/esm2017/src/lib/Tracking/Drip/CustomEvent.d.ts +4 -0
  169. package/dist/esm2017/src/lib/Tracking/Drip/Data/Base.d.ts +6 -0
  170. package/dist/esm2017/src/lib/Tracking/Drip/Data/CustomFields.d.ts +4 -0
  171. package/dist/esm2017/src/lib/Tracking/Drip/Data/Identify.d.ts +14 -0
  172. package/dist/esm2017/src/lib/Tracking/Drip/Data/Result.d.ts +7 -0
  173. package/dist/esm2017/src/lib/Tracking/Drip/Data/StandardFields.d.ts +12 -0
  174. package/dist/esm2017/src/lib/Tracking/Drip/Data/index.d.ts +2 -0
  175. package/dist/esm2017/src/lib/Tracking/Drip/StandardEvents.d.ts +6 -0
  176. package/dist/esm2017/src/lib/Tracking/Drip/index.d.ts +5 -0
  177. package/dist/esm2017/src/lib/Tracking/Facebook/BaseEvent.d.ts +8 -0
  178. package/dist/esm2017/src/lib/Tracking/Facebook/CustomEvent.d.ts +5 -0
  179. package/dist/esm2017/src/lib/Tracking/Facebook/Fbq.d.ts +10 -0
  180. package/dist/esm2017/src/lib/Tracking/Facebook/StandardEvent.d.ts +5 -0
  181. package/dist/esm2017/src/lib/Tracking/Facebook/StandardEvents.d.ts +61 -0
  182. package/dist/esm2017/src/lib/Tracking/Facebook/StandardProperties.d.ts +15 -0
  183. package/dist/esm2017/src/lib/Tracking/Facebook/UserEventHandler.d.ts +8 -0
  184. package/dist/esm2017/src/lib/Tracking/Facebook/index.d.ts +8 -0
  185. package/dist/esm2017/src/lib/Tracking/Google/BaseEvent.d.ts +13 -0
  186. package/dist/esm2017/src/lib/Tracking/Google/CustomEvent.d.ts +4 -0
  187. package/dist/esm2017/src/lib/Tracking/Google/DataLayer.d.ts +9 -0
  188. package/dist/esm2017/src/lib/Tracking/Google/Gtag.d.ts +19 -0
  189. package/dist/esm2017/src/lib/Tracking/Google/Gtm.d.ts +10 -0
  190. package/dist/esm2017/src/lib/Tracking/Google/StandardEvent.d.ts +4 -0
  191. package/dist/esm2017/src/lib/Tracking/Google/StandardEvents.d.ts +151 -0
  192. package/dist/esm2017/src/lib/Tracking/Google/UserEventHandler.d.ts +8 -0
  193. package/dist/esm2017/src/lib/Tracking/Google/index.d.ts +7 -0
  194. package/dist/esm2017/src/lib/Tracking/Reddit/BaseEvent.d.ts +8 -0
  195. package/dist/esm2017/src/lib/Tracking/Reddit/CustomEvent.d.ts +5 -0
  196. package/dist/esm2017/src/lib/Tracking/Reddit/Rdt.d.ts +8 -0
  197. package/dist/esm2017/src/lib/Tracking/Reddit/StandardEvent.d.ts +5 -0
  198. package/dist/esm2017/src/lib/Tracking/Reddit/StandardEvents.d.ts +12 -0
  199. package/dist/esm2017/src/lib/Tracking/Reddit/StandardProperties.d.ts +4 -0
  200. package/dist/esm2017/src/lib/Tracking/Reddit/index.d.ts +4 -0
  201. package/dist/esm2017/src/lib/Tracking/Referrer.d.ts +13 -0
  202. package/dist/esm2017/src/lib/Tracking/Snapchat/BaseEvent.d.ts +6 -0
  203. package/dist/esm2017/src/lib/Tracking/Snapchat/Snaptr.d.ts +8 -0
  204. package/dist/esm2017/src/lib/Tracking/Snapchat/StandardEvent.d.ts +6 -0
  205. package/dist/esm2017/src/lib/Tracking/Snapchat/StandardEvents.d.ts +33 -0
  206. package/dist/esm2017/src/lib/Tracking/Snapchat/StandardProperties.d.ts +15 -0
  207. package/dist/esm2017/src/lib/Tracking/Snapchat/UserProperties.d.ts +7 -0
  208. package/dist/esm2017/src/lib/Tracking/Snapchat/index.d.ts +6 -0
  209. package/dist/esm2017/src/lib/Tracking/Tiktok/BaseEvent.d.ts +8 -0
  210. package/dist/esm2017/src/lib/Tracking/Tiktok/CustomEvent.d.ts +5 -0
  211. package/dist/esm2017/src/lib/Tracking/Tiktok/StandardEvent.d.ts +5 -0
  212. package/dist/esm2017/src/lib/Tracking/Tiktok/StandardEvents.d.ts +19 -0
  213. package/dist/esm2017/src/lib/Tracking/Tiktok/StandardProperties.d.ts +4 -0
  214. package/dist/esm2017/src/lib/Tracking/Tiktok/Ttq.d.ts +8 -0
  215. package/dist/esm2017/src/lib/Tracking/Tiktok/index.d.ts +4 -0
  216. package/dist/esm2017/src/lib/Tracking/Xy/BaseEvent.d.ts +6 -0
  217. package/dist/esm2017/src/lib/Tracking/Xy/CustomEvent.d.ts +4 -0
  218. package/dist/esm2017/src/lib/Tracking/Xy/StandardEvent.d.ts +4 -0
  219. package/dist/esm2017/src/lib/Tracking/Xy/UserEventHandler.d.ts +8 -0
  220. package/dist/esm2017/src/lib/Tracking/Xy/index.d.ts +4 -0
  221. package/dist/esm2017/src/lib/Tracking/XyoUserEventHandler.d.ts +10 -0
  222. package/dist/esm2017/src/lib/Tracking/index.d.ts +10 -0
  223. package/dist/esm2017/src/lib/getApiStage.d.ts +2 -0
  224. package/dist/esm2017/src/lib/global.d.ts +2 -0
  225. package/dist/esm2017/src/lib/index.d.ts +10 -0
  226. package/dist/esm2017/src/lib/isLocalHost.d.ts +2 -0
  227. package/dist/esm2017/src/lib/profile.d.ts +9 -0
  228. package/dist/esm2017/src/lib/safeLocalStorage.d.ts +3 -0
  229. package/dist/esm2017/src/lib/safeSessionStorage.d.ts +3 -0
  230. package/dist/esm2017/src/lib/useAsyncEffect.d.ts +5 -0
  231. package/dist/esm2017/src/mergeBoxlikeStyles.d.ts +4 -0
  232. package/dist/esm5/index.d.ts +1 -0
  233. package/dist/esm5/index.js +2569 -0
  234. package/dist/esm5/index.js.map +1 -0
  235. package/dist/esm5/index.node.d.ts +1 -0
  236. package/dist/esm5/src/BoxlikeComponentProps.d.ts +41 -0
  237. package/dist/esm5/src/BusyProps.d.ts +13 -0
  238. package/dist/esm5/src/Margin.d.ts +2 -0
  239. package/dist/esm5/src/Padding.d.ts +2 -0
  240. package/dist/esm5/src/calcSpacing.d.ts +4 -0
  241. package/dist/esm5/src/components/AppBarEx/AppBarEx.d.ts +4 -0
  242. package/dist/esm5/src/components/AppBarEx/AppBarEx.stories.d.ts +6 -0
  243. package/dist/esm5/src/components/AppBarEx/AppBarExProps.d.ts +8 -0
  244. package/dist/esm5/src/components/AppBarEx/index.d.ts +4 -0
  245. package/dist/esm5/src/components/Background.d.ts +7 -0
  246. package/dist/esm5/src/components/BasePage/BasePage.d.ts +4 -0
  247. package/dist/esm5/src/components/BasePage/BasePage.stories.d.ts +6 -0
  248. package/dist/esm5/src/components/BasePage/BasePageProps.d.ts +17 -0
  249. package/dist/esm5/src/components/BasePage/index.d.ts +4 -0
  250. package/dist/esm5/src/components/Breadcrumbs/BreadcrumbsEx.d.ts +4 -0
  251. package/dist/esm5/src/components/Breadcrumbs/BreadcrumbsEx.stories.d.ts +7 -0
  252. package/dist/esm5/src/components/Breadcrumbs/BreadcrumbsExProps.d.ts +8 -0
  253. package/dist/esm5/src/components/Breadcrumbs/index.d.ts +2 -0
  254. package/dist/esm5/src/components/BusyCircularProgress.d.ts +10 -0
  255. package/dist/esm5/src/components/BusyLinearProgress.d.ts +9 -0
  256. package/dist/esm5/src/components/ButtonEx/ButtonEx.d.ts +4 -0
  257. package/dist/esm5/src/components/ButtonEx/ButtonEx.stories.d.ts +8 -0
  258. package/dist/esm5/src/components/ButtonEx/ButtonExBase.d.ts +4 -0
  259. package/dist/esm5/src/components/ButtonEx/ButtonExProps.d.ts +10 -0
  260. package/dist/esm5/src/components/ButtonEx/ButtonExTo.d.ts +4 -0
  261. package/dist/esm5/src/components/ButtonEx/index.d.ts +2 -0
  262. package/dist/esm5/src/components/CookieConsent/CookieConsent.d.ts +4 -0
  263. package/dist/esm5/src/components/CookieConsent/CookieConsent.stories.d.ts +7 -0
  264. package/dist/esm5/src/components/CookieConsent/CookieConsentBody.d.ts +4 -0
  265. package/dist/esm5/src/components/CookieConsent/CookieConsentProps.d.ts +7 -0
  266. package/dist/esm5/src/components/CookieConsent/index.d.ts +3 -0
  267. package/dist/esm5/src/components/CoverProgress.d.ts +10 -0
  268. package/dist/esm5/src/components/Errors/ErrorViewer.d.ts +4 -0
  269. package/dist/esm5/src/components/Errors/ErrorViewer.stories.d.ts +6 -0
  270. package/dist/esm5/src/components/Errors/ErrorViewerProps.d.ts +5 -0
  271. package/dist/esm5/src/components/Errors/ErrorsViewer.d.ts +4 -0
  272. package/dist/esm5/src/components/Errors/ErrorsViewer.stories.d.ts +6 -0
  273. package/dist/esm5/src/components/Errors/ErrorsViewerProps.d.ts +6 -0
  274. package/dist/esm5/src/components/Errors/index.d.ts +3 -0
  275. package/dist/esm5/src/components/EthAccount/EthAccount.d.ts +4 -0
  276. package/dist/esm5/src/components/EthAccount/EthAccount.stories.d.ts +11 -0
  277. package/dist/esm5/src/components/EthAccount/EthAccountProps.d.ts +17 -0
  278. package/dist/esm5/src/components/EthAccount/index.d.ts +4 -0
  279. package/dist/esm5/src/components/EthBlock.d.ts +6 -0
  280. package/dist/esm5/src/components/Experiments/Experiment.d.ts +6 -0
  281. package/dist/esm5/src/components/Experiments/Experiments.d.ts +10 -0
  282. package/dist/esm5/src/components/Experiments/index.d.ts +3 -0
  283. package/dist/esm5/src/components/FlexBox/BusyBox.d.ts +10 -0
  284. package/dist/esm5/src/components/FlexBox/BusyBox.stories.d.ts +10 -0
  285. package/dist/esm5/src/components/FlexBox/FlexCol.d.ts +5 -0
  286. package/dist/esm5/src/components/FlexBox/FlexCol.stories.d.ts +8 -0
  287. package/dist/esm5/src/components/FlexBox/FlexRow.d.ts +7 -0
  288. package/dist/esm5/src/components/FlexBox/FlexRow.stories.d.ts +10 -0
  289. package/dist/esm5/src/components/FlexBox/index.d.ts +3 -0
  290. package/dist/esm5/src/components/HoverScale.d.ts +6 -0
  291. package/dist/esm5/src/components/Identicon.d.ts +14 -0
  292. package/dist/esm5/src/components/InvertableThemeProvider/InvertableTheme.d.ts +5 -0
  293. package/dist/esm5/src/components/InvertableThemeProvider/InvertableThemeContext.d.ts +4 -0
  294. package/dist/esm5/src/components/InvertableThemeProvider/InvertableThemeProvider.d.ts +4 -0
  295. package/dist/esm5/src/components/InvertableThemeProvider/InvertableThemeProvider.stories.d.ts +6 -0
  296. package/dist/esm5/src/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +9 -0
  297. package/dist/esm5/src/components/InvertableThemeProvider/index.d.ts +4 -0
  298. package/dist/esm5/src/components/LinkEx/LinkToEx.d.ts +8 -0
  299. package/dist/esm5/src/components/LinkEx/index.d.ts +2 -0
  300. package/dist/esm5/src/components/NumberStatus/NumberStatus.d.ts +4 -0
  301. package/dist/esm5/src/components/NumberStatus/NumberStatus.stories.d.ts +14 -0
  302. package/dist/esm5/src/components/NumberStatus/NumberStatusProps.d.ts +13 -0
  303. package/dist/esm5/src/components/NumberStatus/index.d.ts +2 -0
  304. package/dist/esm5/src/components/QuickTipButton/QuickTipButton.d.ts +4 -0
  305. package/dist/esm5/src/components/QuickTipButton/QuickTipButton.stories.d.ts +6 -0
  306. package/dist/esm5/src/components/QuickTipButton/index.d.ts +2 -0
  307. package/dist/esm5/src/components/RedirectWithQuery.d.ts +8 -0
  308. package/dist/esm5/src/components/RichResult/RichResult.d.ts +7 -0
  309. package/dist/esm5/src/components/RichResult/index.d.ts +3 -0
  310. package/dist/esm5/src/components/RichResult/jsonld/Action.d.ts +24 -0
  311. package/dist/esm5/src/components/RichResult/jsonld/ActionStatusType.d.ts +7 -0
  312. package/dist/esm5/src/components/RichResult/jsonld/AdministrativeArea.d.ts +3 -0
  313. package/dist/esm5/src/components/RichResult/jsonld/AggrigateRating.d.ts +8 -0
  314. package/dist/esm5/src/components/RichResult/jsonld/Article.d.ts +14 -0
  315. package/dist/esm5/src/components/RichResult/jsonld/Base.d.ts +4 -0
  316. package/dist/esm5/src/components/RichResult/jsonld/Brand.d.ts +11 -0
  317. package/dist/esm5/src/components/RichResult/jsonld/Class.d.ts +7 -0
  318. package/dist/esm5/src/components/RichResult/jsonld/ContactPoint.d.ts +19 -0
  319. package/dist/esm5/src/components/RichResult/jsonld/ContactPointOption.d.ts +5 -0
  320. package/dist/esm5/src/components/RichResult/jsonld/Country.d.ts +3 -0
  321. package/dist/esm5/src/components/RichResult/jsonld/CreativeWork.d.ts +122 -0
  322. package/dist/esm5/src/components/RichResult/jsonld/DateTime.d.ts +2 -0
  323. package/dist/esm5/src/components/RichResult/jsonld/EntryPoint.d.ts +13 -0
  324. package/dist/esm5/src/components/RichResult/jsonld/Enumeration.d.ts +7 -0
  325. package/dist/esm5/src/components/RichResult/jsonld/GeoShape.d.ts +15 -0
  326. package/dist/esm5/src/components/RichResult/jsonld/GeospatialGeometry.d.ts +15 -0
  327. package/dist/esm5/src/components/RichResult/jsonld/ImageObject.d.ts +9 -0
  328. package/dist/esm5/src/components/RichResult/jsonld/Intangible.d.ts +3 -0
  329. package/dist/esm5/src/components/RichResult/jsonld/Integer.d.ts +2 -0
  330. package/dist/esm5/src/components/RichResult/jsonld/ItemAvailability.d.ts +21 -0
  331. package/dist/esm5/src/components/RichResult/jsonld/Language.d.ts +3 -0
  332. package/dist/esm5/src/components/RichResult/jsonld/Map.d.ts +6 -0
  333. package/dist/esm5/src/components/RichResult/jsonld/MapCategoryType.d.ts +7 -0
  334. package/dist/esm5/src/components/RichResult/jsonld/MediaObject.d.ts +10 -0
  335. package/dist/esm5/src/components/RichResult/jsonld/MobileApplication.d.ts +6 -0
  336. package/dist/esm5/src/components/RichResult/jsonld/Offer.d.ts +64 -0
  337. package/dist/esm5/src/components/RichResult/jsonld/Organization.d.ts +77 -0
  338. package/dist/esm5/src/components/RichResult/jsonld/Person.d.ts +71 -0
  339. package/dist/esm5/src/components/RichResult/jsonld/Photograph.d.ts +3 -0
  340. package/dist/esm5/src/components/RichResult/jsonld/Place.d.ts +42 -0
  341. package/dist/esm5/src/components/RichResult/jsonld/PostalAddress.d.ts +12 -0
  342. package/dist/esm5/src/components/RichResult/jsonld/Product.d.ts +56 -0
  343. package/dist/esm5/src/components/RichResult/jsonld/Property.d.ts +10 -0
  344. package/dist/esm5/src/components/RichResult/jsonld/PropertyValue.d.ts +16 -0
  345. package/dist/esm5/src/components/RichResult/jsonld/QualitativeValue.d.ts +15 -0
  346. package/dist/esm5/src/components/RichResult/jsonld/QuantitativeValue.d.ts +15 -0
  347. package/dist/esm5/src/components/RichResult/jsonld/Rating.d.ts +10 -0
  348. package/dist/esm5/src/components/RichResult/jsonld/Review.d.ts +10 -0
  349. package/dist/esm5/src/components/RichResult/jsonld/Service.d.ts +38 -0
  350. package/dist/esm5/src/components/RichResult/jsonld/SoftwareApplication.d.ts +28 -0
  351. package/dist/esm5/src/components/RichResult/jsonld/StructuredValue.d.ts +3 -0
  352. package/dist/esm5/src/components/RichResult/jsonld/Text.d.ts +2 -0
  353. package/dist/esm5/src/components/RichResult/jsonld/Thing.d.ts +22 -0
  354. package/dist/esm5/src/components/RichResult/jsonld/Time.d.ts +2 -0
  355. package/dist/esm5/src/components/RichResult/jsonld/URL.d.ts +2 -0
  356. package/dist/esm5/src/components/RichResult/jsonld/VirtualLocation.d.ts +3 -0
  357. package/dist/esm5/src/components/RichResult/jsonld/index.d.ts +48 -0
  358. package/dist/esm5/src/components/ScrollToTop.d.ts +1 -0
  359. package/dist/esm5/src/components/ScrollToTopButton.d.ts +7 -0
  360. package/dist/esm5/src/components/TokenAmount/TokenAmount.d.ts +4 -0
  361. package/dist/esm5/src/components/TokenAmount/TokenAmount.stories.d.ts +12 -0
  362. package/dist/esm5/src/components/TokenAmount/TokenAmountProps.d.ts +14 -0
  363. package/dist/esm5/src/components/TokenAmount/index.d.ts +4 -0
  364. package/dist/esm5/src/components/dialogs/ErrorDialog.d.ts +8 -0
  365. package/dist/esm5/src/components/dialogs/ErrorDialog.stories.d.ts +6 -0
  366. package/dist/esm5/src/components/dialogs/MessageDialog.d.ts +7 -0
  367. package/dist/esm5/src/components/dialogs/MessageDialog.stories.d.ts +6 -0
  368. package/dist/esm5/src/components/dialogs/index.d.ts +3 -0
  369. package/dist/esm5/src/components/index.d.ts +23 -0
  370. package/dist/esm5/src/contexts/CookieConsent/Context.d.ts +8 -0
  371. package/dist/esm5/src/contexts/CookieConsent/Loader.d.ts +3 -0
  372. package/dist/esm5/src/contexts/CookieConsent/index.d.ts +4 -0
  373. package/dist/esm5/src/contexts/CookieConsent/use.d.ts +7 -0
  374. package/dist/esm5/src/contexts/Ethers/Context.d.ts +19 -0
  375. package/dist/esm5/src/contexts/Ethers/Infura.d.ts +7 -0
  376. package/dist/esm5/src/contexts/Ethers/Loader.d.ts +6 -0
  377. package/dist/esm5/src/contexts/Ethers/MetaMask.d.ts +6 -0
  378. package/dist/esm5/src/contexts/Ethers/MyEtherWallet.d.ts +6 -0
  379. package/dist/esm5/src/contexts/Ethers/Opera.d.ts +6 -0
  380. package/dist/esm5/src/contexts/Ethers/Trust.d.ts +6 -0
  381. package/dist/esm5/src/contexts/Ethers/index.d.ts +2 -0
  382. package/dist/esm5/src/contexts/NetworkSettings/Context.d.ts +9 -0
  383. package/dist/esm5/src/contexts/NetworkSettings/Loader.d.ts +6 -0
  384. package/dist/esm5/src/contexts/NetworkSettings/index.d.ts +3 -0
  385. package/dist/esm5/src/contexts/UserEvents/Context.d.ts +7 -0
  386. package/dist/esm5/src/contexts/UserEvents/index.d.ts +2 -0
  387. package/dist/esm5/src/contexts/index.d.ts +4 -0
  388. package/dist/esm5/src/hooks/index.d.ts +7 -0
  389. package/dist/esm5/src/hooks/useBreakpoint.d.ts +1 -0
  390. package/dist/esm5/src/hooks/useMediaQuery.d.ts +2 -0
  391. package/dist/esm5/src/hooks/useMounted.d.ts +1 -0
  392. package/dist/esm5/src/hooks/useNavigateToEthAddress.d.ts +5 -0
  393. package/dist/esm5/src/hooks/useSpacing.d.ts +1 -0
  394. package/dist/esm5/src/hooks/useWebP.d.ts +1 -0
  395. package/dist/esm5/src/hooks/useWindowSize.d.ts +6 -0
  396. package/dist/esm5/src/index.d.ts +4 -0
  397. package/dist/esm5/src/lib/ComponentSizes.d.ts +2 -0
  398. package/dist/esm5/src/lib/Tracking/Drip/BaseEvent.d.ts +12 -0
  399. package/dist/esm5/src/lib/Tracking/Drip/CustomEvent.d.ts +4 -0
  400. package/dist/esm5/src/lib/Tracking/Drip/Data/Base.d.ts +6 -0
  401. package/dist/esm5/src/lib/Tracking/Drip/Data/CustomFields.d.ts +4 -0
  402. package/dist/esm5/src/lib/Tracking/Drip/Data/Identify.d.ts +14 -0
  403. package/dist/esm5/src/lib/Tracking/Drip/Data/Result.d.ts +7 -0
  404. package/dist/esm5/src/lib/Tracking/Drip/Data/StandardFields.d.ts +12 -0
  405. package/dist/esm5/src/lib/Tracking/Drip/Data/index.d.ts +2 -0
  406. package/dist/esm5/src/lib/Tracking/Drip/StandardEvents.d.ts +6 -0
  407. package/dist/esm5/src/lib/Tracking/Drip/index.d.ts +5 -0
  408. package/dist/esm5/src/lib/Tracking/Facebook/BaseEvent.d.ts +8 -0
  409. package/dist/esm5/src/lib/Tracking/Facebook/CustomEvent.d.ts +5 -0
  410. package/dist/esm5/src/lib/Tracking/Facebook/Fbq.d.ts +10 -0
  411. package/dist/esm5/src/lib/Tracking/Facebook/StandardEvent.d.ts +5 -0
  412. package/dist/esm5/src/lib/Tracking/Facebook/StandardEvents.d.ts +61 -0
  413. package/dist/esm5/src/lib/Tracking/Facebook/StandardProperties.d.ts +15 -0
  414. package/dist/esm5/src/lib/Tracking/Facebook/UserEventHandler.d.ts +8 -0
  415. package/dist/esm5/src/lib/Tracking/Facebook/index.d.ts +8 -0
  416. package/dist/esm5/src/lib/Tracking/Google/BaseEvent.d.ts +13 -0
  417. package/dist/esm5/src/lib/Tracking/Google/CustomEvent.d.ts +4 -0
  418. package/dist/esm5/src/lib/Tracking/Google/DataLayer.d.ts +9 -0
  419. package/dist/esm5/src/lib/Tracking/Google/Gtag.d.ts +19 -0
  420. package/dist/esm5/src/lib/Tracking/Google/Gtm.d.ts +10 -0
  421. package/dist/esm5/src/lib/Tracking/Google/StandardEvent.d.ts +4 -0
  422. package/dist/esm5/src/lib/Tracking/Google/StandardEvents.d.ts +151 -0
  423. package/dist/esm5/src/lib/Tracking/Google/UserEventHandler.d.ts +8 -0
  424. package/dist/esm5/src/lib/Tracking/Google/index.d.ts +7 -0
  425. package/dist/esm5/src/lib/Tracking/Reddit/BaseEvent.d.ts +8 -0
  426. package/dist/esm5/src/lib/Tracking/Reddit/CustomEvent.d.ts +5 -0
  427. package/dist/esm5/src/lib/Tracking/Reddit/Rdt.d.ts +8 -0
  428. package/dist/esm5/src/lib/Tracking/Reddit/StandardEvent.d.ts +5 -0
  429. package/dist/esm5/src/lib/Tracking/Reddit/StandardEvents.d.ts +12 -0
  430. package/dist/esm5/src/lib/Tracking/Reddit/StandardProperties.d.ts +4 -0
  431. package/dist/esm5/src/lib/Tracking/Reddit/index.d.ts +4 -0
  432. package/dist/esm5/src/lib/Tracking/Referrer.d.ts +13 -0
  433. package/dist/esm5/src/lib/Tracking/Snapchat/BaseEvent.d.ts +6 -0
  434. package/dist/esm5/src/lib/Tracking/Snapchat/Snaptr.d.ts +8 -0
  435. package/dist/esm5/src/lib/Tracking/Snapchat/StandardEvent.d.ts +6 -0
  436. package/dist/esm5/src/lib/Tracking/Snapchat/StandardEvents.d.ts +33 -0
  437. package/dist/esm5/src/lib/Tracking/Snapchat/StandardProperties.d.ts +15 -0
  438. package/dist/esm5/src/lib/Tracking/Snapchat/UserProperties.d.ts +7 -0
  439. package/dist/esm5/src/lib/Tracking/Snapchat/index.d.ts +6 -0
  440. package/dist/esm5/src/lib/Tracking/Tiktok/BaseEvent.d.ts +8 -0
  441. package/dist/esm5/src/lib/Tracking/Tiktok/CustomEvent.d.ts +5 -0
  442. package/dist/esm5/src/lib/Tracking/Tiktok/StandardEvent.d.ts +5 -0
  443. package/dist/esm5/src/lib/Tracking/Tiktok/StandardEvents.d.ts +19 -0
  444. package/dist/esm5/src/lib/Tracking/Tiktok/StandardProperties.d.ts +4 -0
  445. package/dist/esm5/src/lib/Tracking/Tiktok/Ttq.d.ts +8 -0
  446. package/dist/esm5/src/lib/Tracking/Tiktok/index.d.ts +4 -0
  447. package/dist/esm5/src/lib/Tracking/Xy/BaseEvent.d.ts +6 -0
  448. package/dist/esm5/src/lib/Tracking/Xy/CustomEvent.d.ts +4 -0
  449. package/dist/esm5/src/lib/Tracking/Xy/StandardEvent.d.ts +4 -0
  450. package/dist/esm5/src/lib/Tracking/Xy/UserEventHandler.d.ts +8 -0
  451. package/dist/esm5/src/lib/Tracking/Xy/index.d.ts +4 -0
  452. package/dist/esm5/src/lib/Tracking/XyoUserEventHandler.d.ts +10 -0
  453. package/dist/esm5/src/lib/Tracking/index.d.ts +10 -0
  454. package/dist/esm5/src/lib/getApiStage.d.ts +2 -0
  455. package/dist/esm5/src/lib/global.d.ts +2 -0
  456. package/dist/esm5/src/lib/index.d.ts +10 -0
  457. package/dist/esm5/src/lib/isLocalHost.d.ts +2 -0
  458. package/dist/esm5/src/lib/profile.d.ts +9 -0
  459. package/dist/esm5/src/lib/safeLocalStorage.d.ts +3 -0
  460. package/dist/esm5/src/lib/safeSessionStorage.d.ts +3 -0
  461. package/dist/esm5/src/lib/useAsyncEffect.d.ts +5 -0
  462. package/dist/esm5/src/mergeBoxlikeStyles.d.ts +4 -0
  463. package/dist/hooks/index.d.ts +7 -6
  464. package/dist/hooks/index.js +7 -6
  465. package/dist/hooks/index.js.map +1 -1
  466. package/dist/hooks/useBreakpoint.d.ts +1 -2
  467. package/dist/hooks/useBreakpoint.js +1 -2
  468. package/dist/hooks/useBreakpoint.js.map +1 -1
  469. package/dist/hooks/useMounted.d.ts +1 -2
  470. package/dist/hooks/useMounted.js +1 -2
  471. package/dist/hooks/useMounted.js.map +1 -1
  472. package/dist/hooks/useNavigateToEthAddress.d.ts +1 -2
  473. package/dist/hooks/useNavigateToEthAddress.js +1 -2
  474. package/dist/hooks/useNavigateToEthAddress.js.map +1 -1
  475. package/dist/hooks/useSpacing.d.ts +1 -0
  476. package/dist/hooks/useSpacing.js +6 -0
  477. package/dist/hooks/useSpacing.js.map +1 -0
  478. package/dist/hooks/useWebP.d.ts +1 -0
  479. package/dist/hooks/useWebP.js +38 -0
  480. package/dist/hooks/useWebP.js.map +1 -0
  481. package/dist/hooks/useWindowSize.d.ts +2 -2
  482. package/dist/hooks/useWindowSize.js +1 -2
  483. package/dist/hooks/useWindowSize.js.map +1 -1
  484. package/dist/node/index.d.ts +1 -0
  485. package/dist/node/index.js +2659 -0
  486. package/dist/node/index.js.map +1 -0
  487. package/dist/node/index.node.d.ts +1 -0
  488. package/dist/node/src/BoxlikeComponentProps.d.ts +41 -0
  489. package/dist/node/src/BusyProps.d.ts +13 -0
  490. package/dist/node/src/Margin.d.ts +2 -0
  491. package/dist/node/src/Padding.d.ts +2 -0
  492. package/dist/node/src/calcSpacing.d.ts +4 -0
  493. package/dist/node/src/components/AppBarEx/AppBarEx.d.ts +4 -0
  494. package/dist/node/src/components/AppBarEx/AppBarEx.stories.d.ts +6 -0
  495. package/dist/node/src/components/AppBarEx/AppBarExProps.d.ts +8 -0
  496. package/dist/node/src/components/AppBarEx/index.d.ts +4 -0
  497. package/dist/node/src/components/Background.d.ts +7 -0
  498. package/dist/node/src/components/BasePage/BasePage.d.ts +4 -0
  499. package/dist/node/src/components/BasePage/BasePage.stories.d.ts +6 -0
  500. package/dist/node/src/components/BasePage/BasePageProps.d.ts +17 -0
  501. package/dist/node/src/components/BasePage/index.d.ts +4 -0
  502. package/dist/node/src/components/Breadcrumbs/BreadcrumbsEx.d.ts +4 -0
  503. package/dist/node/src/components/Breadcrumbs/BreadcrumbsEx.stories.d.ts +7 -0
  504. package/dist/node/src/components/Breadcrumbs/BreadcrumbsExProps.d.ts +8 -0
  505. package/dist/node/src/components/Breadcrumbs/index.d.ts +2 -0
  506. package/dist/node/src/components/BusyCircularProgress.d.ts +10 -0
  507. package/dist/node/src/components/BusyLinearProgress.d.ts +9 -0
  508. package/dist/node/src/components/ButtonEx/ButtonEx.d.ts +4 -0
  509. package/dist/node/src/components/ButtonEx/ButtonEx.stories.d.ts +8 -0
  510. package/dist/node/src/components/ButtonEx/ButtonExBase.d.ts +4 -0
  511. package/dist/node/src/components/ButtonEx/ButtonExProps.d.ts +10 -0
  512. package/dist/node/src/components/ButtonEx/ButtonExTo.d.ts +4 -0
  513. package/dist/node/src/components/ButtonEx/index.d.ts +2 -0
  514. package/dist/node/src/components/CookieConsent/CookieConsent.d.ts +4 -0
  515. package/dist/node/src/components/CookieConsent/CookieConsent.stories.d.ts +7 -0
  516. package/dist/node/src/components/CookieConsent/CookieConsentBody.d.ts +4 -0
  517. package/dist/node/src/components/CookieConsent/CookieConsentProps.d.ts +7 -0
  518. package/dist/node/src/components/CookieConsent/index.d.ts +3 -0
  519. package/dist/node/src/components/CoverProgress.d.ts +10 -0
  520. package/dist/node/src/components/Errors/ErrorViewer.d.ts +4 -0
  521. package/dist/node/src/components/Errors/ErrorViewer.stories.d.ts +6 -0
  522. package/dist/node/src/components/Errors/ErrorViewerProps.d.ts +5 -0
  523. package/dist/node/src/components/Errors/ErrorsViewer.d.ts +4 -0
  524. package/dist/node/src/components/Errors/ErrorsViewer.stories.d.ts +6 -0
  525. package/dist/node/src/components/Errors/ErrorsViewerProps.d.ts +6 -0
  526. package/dist/node/src/components/Errors/index.d.ts +3 -0
  527. package/dist/node/src/components/EthAccount/EthAccount.d.ts +4 -0
  528. package/dist/node/src/components/EthAccount/EthAccount.stories.d.ts +11 -0
  529. package/dist/node/src/components/EthAccount/EthAccountProps.d.ts +17 -0
  530. package/dist/node/src/components/EthAccount/index.d.ts +4 -0
  531. package/dist/node/src/components/EthBlock.d.ts +6 -0
  532. package/dist/node/src/components/Experiments/Experiment.d.ts +6 -0
  533. package/dist/node/src/components/Experiments/Experiments.d.ts +10 -0
  534. package/dist/node/src/components/Experiments/index.d.ts +3 -0
  535. package/dist/node/src/components/FlexBox/BusyBox.d.ts +10 -0
  536. package/dist/node/src/components/FlexBox/BusyBox.stories.d.ts +10 -0
  537. package/dist/node/src/components/FlexBox/FlexCol.d.ts +5 -0
  538. package/dist/node/src/components/FlexBox/FlexCol.stories.d.ts +8 -0
  539. package/dist/node/src/components/FlexBox/FlexRow.d.ts +7 -0
  540. package/dist/node/src/components/FlexBox/FlexRow.stories.d.ts +10 -0
  541. package/dist/node/src/components/FlexBox/index.d.ts +3 -0
  542. package/dist/node/src/components/HoverScale.d.ts +6 -0
  543. package/dist/node/src/components/Identicon.d.ts +14 -0
  544. package/dist/node/src/components/InvertableThemeProvider/InvertableTheme.d.ts +5 -0
  545. package/dist/node/src/components/InvertableThemeProvider/InvertableThemeContext.d.ts +4 -0
  546. package/dist/node/src/components/InvertableThemeProvider/InvertableThemeProvider.d.ts +4 -0
  547. package/dist/node/src/components/InvertableThemeProvider/InvertableThemeProvider.stories.d.ts +6 -0
  548. package/dist/node/src/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +9 -0
  549. package/dist/node/src/components/InvertableThemeProvider/index.d.ts +4 -0
  550. package/dist/node/src/components/LinkEx/LinkToEx.d.ts +8 -0
  551. package/dist/node/src/components/LinkEx/index.d.ts +2 -0
  552. package/dist/node/src/components/NumberStatus/NumberStatus.d.ts +4 -0
  553. package/dist/node/src/components/NumberStatus/NumberStatus.stories.d.ts +14 -0
  554. package/dist/node/src/components/NumberStatus/NumberStatusProps.d.ts +13 -0
  555. package/dist/node/src/components/NumberStatus/index.d.ts +2 -0
  556. package/dist/node/src/components/QuickTipButton/QuickTipButton.d.ts +4 -0
  557. package/dist/node/src/components/QuickTipButton/QuickTipButton.stories.d.ts +6 -0
  558. package/dist/node/src/components/QuickTipButton/index.d.ts +2 -0
  559. package/dist/node/src/components/RedirectWithQuery.d.ts +8 -0
  560. package/dist/node/src/components/RichResult/RichResult.d.ts +7 -0
  561. package/dist/node/src/components/RichResult/index.d.ts +3 -0
  562. package/dist/node/src/components/RichResult/jsonld/Action.d.ts +24 -0
  563. package/dist/node/src/components/RichResult/jsonld/ActionStatusType.d.ts +7 -0
  564. package/dist/node/src/components/RichResult/jsonld/AdministrativeArea.d.ts +3 -0
  565. package/dist/node/src/components/RichResult/jsonld/AggrigateRating.d.ts +8 -0
  566. package/dist/node/src/components/RichResult/jsonld/Article.d.ts +14 -0
  567. package/dist/node/src/components/RichResult/jsonld/Base.d.ts +4 -0
  568. package/dist/node/src/components/RichResult/jsonld/Brand.d.ts +11 -0
  569. package/dist/node/src/components/RichResult/jsonld/Class.d.ts +7 -0
  570. package/dist/node/src/components/RichResult/jsonld/ContactPoint.d.ts +19 -0
  571. package/dist/node/src/components/RichResult/jsonld/ContactPointOption.d.ts +5 -0
  572. package/dist/node/src/components/RichResult/jsonld/Country.d.ts +3 -0
  573. package/dist/node/src/components/RichResult/jsonld/CreativeWork.d.ts +122 -0
  574. package/dist/node/src/components/RichResult/jsonld/DateTime.d.ts +2 -0
  575. package/dist/node/src/components/RichResult/jsonld/EntryPoint.d.ts +13 -0
  576. package/dist/node/src/components/RichResult/jsonld/Enumeration.d.ts +7 -0
  577. package/dist/node/src/components/RichResult/jsonld/GeoShape.d.ts +15 -0
  578. package/dist/node/src/components/RichResult/jsonld/GeospatialGeometry.d.ts +15 -0
  579. package/dist/node/src/components/RichResult/jsonld/ImageObject.d.ts +9 -0
  580. package/dist/node/src/components/RichResult/jsonld/Intangible.d.ts +3 -0
  581. package/dist/node/src/components/RichResult/jsonld/Integer.d.ts +2 -0
  582. package/dist/node/src/components/RichResult/jsonld/ItemAvailability.d.ts +21 -0
  583. package/dist/node/src/components/RichResult/jsonld/Language.d.ts +3 -0
  584. package/dist/node/src/components/RichResult/jsonld/Map.d.ts +6 -0
  585. package/dist/node/src/components/RichResult/jsonld/MapCategoryType.d.ts +7 -0
  586. package/dist/node/src/components/RichResult/jsonld/MediaObject.d.ts +10 -0
  587. package/dist/node/src/components/RichResult/jsonld/MobileApplication.d.ts +6 -0
  588. package/dist/node/src/components/RichResult/jsonld/Offer.d.ts +64 -0
  589. package/dist/node/src/components/RichResult/jsonld/Organization.d.ts +77 -0
  590. package/dist/node/src/components/RichResult/jsonld/Person.d.ts +71 -0
  591. package/dist/node/src/components/RichResult/jsonld/Photograph.d.ts +3 -0
  592. package/dist/node/src/components/RichResult/jsonld/Place.d.ts +42 -0
  593. package/dist/node/src/components/RichResult/jsonld/PostalAddress.d.ts +12 -0
  594. package/dist/node/src/components/RichResult/jsonld/Product.d.ts +56 -0
  595. package/dist/node/src/components/RichResult/jsonld/Property.d.ts +10 -0
  596. package/dist/node/src/components/RichResult/jsonld/PropertyValue.d.ts +16 -0
  597. package/dist/node/src/components/RichResult/jsonld/QualitativeValue.d.ts +15 -0
  598. package/dist/node/src/components/RichResult/jsonld/QuantitativeValue.d.ts +15 -0
  599. package/dist/node/src/components/RichResult/jsonld/Rating.d.ts +10 -0
  600. package/dist/node/src/components/RichResult/jsonld/Review.d.ts +10 -0
  601. package/dist/node/src/components/RichResult/jsonld/Service.d.ts +38 -0
  602. package/dist/node/src/components/RichResult/jsonld/SoftwareApplication.d.ts +28 -0
  603. package/dist/node/src/components/RichResult/jsonld/StructuredValue.d.ts +3 -0
  604. package/dist/node/src/components/RichResult/jsonld/Text.d.ts +2 -0
  605. package/dist/node/src/components/RichResult/jsonld/Thing.d.ts +22 -0
  606. package/dist/node/src/components/RichResult/jsonld/Time.d.ts +2 -0
  607. package/dist/node/src/components/RichResult/jsonld/URL.d.ts +2 -0
  608. package/dist/node/src/components/RichResult/jsonld/VirtualLocation.d.ts +3 -0
  609. package/dist/node/src/components/RichResult/jsonld/index.d.ts +48 -0
  610. package/dist/node/src/components/ScrollToTop.d.ts +1 -0
  611. package/dist/node/src/components/ScrollToTopButton.d.ts +7 -0
  612. package/dist/node/src/components/TokenAmount/TokenAmount.d.ts +4 -0
  613. package/dist/node/src/components/TokenAmount/TokenAmount.stories.d.ts +12 -0
  614. package/dist/node/src/components/TokenAmount/TokenAmountProps.d.ts +14 -0
  615. package/dist/node/src/components/TokenAmount/index.d.ts +4 -0
  616. package/dist/node/src/components/dialogs/ErrorDialog.d.ts +8 -0
  617. package/dist/node/src/components/dialogs/ErrorDialog.stories.d.ts +6 -0
  618. package/dist/node/src/components/dialogs/MessageDialog.d.ts +7 -0
  619. package/dist/node/src/components/dialogs/MessageDialog.stories.d.ts +6 -0
  620. package/dist/node/src/components/dialogs/index.d.ts +3 -0
  621. package/dist/node/src/components/index.d.ts +23 -0
  622. package/dist/node/src/contexts/CookieConsent/Context.d.ts +8 -0
  623. package/dist/node/src/contexts/CookieConsent/Loader.d.ts +3 -0
  624. package/dist/node/src/contexts/CookieConsent/index.d.ts +4 -0
  625. package/dist/node/src/contexts/CookieConsent/use.d.ts +7 -0
  626. package/dist/node/src/contexts/Ethers/Context.d.ts +19 -0
  627. package/dist/node/src/contexts/Ethers/Infura.d.ts +7 -0
  628. package/dist/node/src/contexts/Ethers/Loader.d.ts +6 -0
  629. package/dist/node/src/contexts/Ethers/MetaMask.d.ts +6 -0
  630. package/dist/node/src/contexts/Ethers/MyEtherWallet.d.ts +6 -0
  631. package/dist/node/src/contexts/Ethers/Opera.d.ts +6 -0
  632. package/dist/node/src/contexts/Ethers/Trust.d.ts +6 -0
  633. package/dist/node/src/contexts/Ethers/index.d.ts +2 -0
  634. package/dist/node/src/contexts/NetworkSettings/Context.d.ts +9 -0
  635. package/dist/node/src/contexts/NetworkSettings/Loader.d.ts +6 -0
  636. package/dist/node/src/contexts/NetworkSettings/index.d.ts +3 -0
  637. package/dist/node/src/contexts/UserEvents/Context.d.ts +7 -0
  638. package/dist/node/src/contexts/UserEvents/index.d.ts +2 -0
  639. package/dist/node/src/contexts/index.d.ts +4 -0
  640. package/dist/node/src/hooks/index.d.ts +7 -0
  641. package/dist/node/src/hooks/useBreakpoint.d.ts +1 -0
  642. package/dist/node/src/hooks/useMediaQuery.d.ts +2 -0
  643. package/dist/node/src/hooks/useMounted.d.ts +1 -0
  644. package/dist/node/src/hooks/useNavigateToEthAddress.d.ts +5 -0
  645. package/dist/node/src/hooks/useSpacing.d.ts +1 -0
  646. package/dist/node/src/hooks/useWebP.d.ts +1 -0
  647. package/dist/node/src/hooks/useWindowSize.d.ts +6 -0
  648. package/dist/node/src/index.d.ts +4 -0
  649. package/dist/node/src/lib/ComponentSizes.d.ts +2 -0
  650. package/dist/node/src/lib/Tracking/Drip/BaseEvent.d.ts +12 -0
  651. package/dist/node/src/lib/Tracking/Drip/CustomEvent.d.ts +4 -0
  652. package/dist/node/src/lib/Tracking/Drip/Data/Base.d.ts +6 -0
  653. package/dist/node/src/lib/Tracking/Drip/Data/CustomFields.d.ts +4 -0
  654. package/dist/node/src/lib/Tracking/Drip/Data/Identify.d.ts +14 -0
  655. package/dist/node/src/lib/Tracking/Drip/Data/Result.d.ts +7 -0
  656. package/dist/node/src/lib/Tracking/Drip/Data/StandardFields.d.ts +12 -0
  657. package/dist/node/src/lib/Tracking/Drip/Data/index.d.ts +2 -0
  658. package/dist/node/src/lib/Tracking/Drip/StandardEvents.d.ts +6 -0
  659. package/dist/node/src/lib/Tracking/Drip/index.d.ts +5 -0
  660. package/dist/node/src/lib/Tracking/Facebook/BaseEvent.d.ts +8 -0
  661. package/dist/node/src/lib/Tracking/Facebook/CustomEvent.d.ts +5 -0
  662. package/dist/node/src/lib/Tracking/Facebook/Fbq.d.ts +10 -0
  663. package/dist/node/src/lib/Tracking/Facebook/StandardEvent.d.ts +5 -0
  664. package/dist/node/src/lib/Tracking/Facebook/StandardEvents.d.ts +61 -0
  665. package/dist/node/src/lib/Tracking/Facebook/StandardProperties.d.ts +15 -0
  666. package/dist/node/src/lib/Tracking/Facebook/UserEventHandler.d.ts +8 -0
  667. package/dist/node/src/lib/Tracking/Facebook/index.d.ts +8 -0
  668. package/dist/node/src/lib/Tracking/Google/BaseEvent.d.ts +13 -0
  669. package/dist/node/src/lib/Tracking/Google/CustomEvent.d.ts +4 -0
  670. package/dist/node/src/lib/Tracking/Google/DataLayer.d.ts +9 -0
  671. package/dist/node/src/lib/Tracking/Google/Gtag.d.ts +19 -0
  672. package/dist/node/src/lib/Tracking/Google/Gtm.d.ts +10 -0
  673. package/dist/node/src/lib/Tracking/Google/StandardEvent.d.ts +4 -0
  674. package/dist/node/src/lib/Tracking/Google/StandardEvents.d.ts +151 -0
  675. package/dist/node/src/lib/Tracking/Google/UserEventHandler.d.ts +8 -0
  676. package/dist/node/src/lib/Tracking/Google/index.d.ts +7 -0
  677. package/dist/node/src/lib/Tracking/Reddit/BaseEvent.d.ts +8 -0
  678. package/dist/node/src/lib/Tracking/Reddit/CustomEvent.d.ts +5 -0
  679. package/dist/node/src/lib/Tracking/Reddit/Rdt.d.ts +8 -0
  680. package/dist/node/src/lib/Tracking/Reddit/StandardEvent.d.ts +5 -0
  681. package/dist/node/src/lib/Tracking/Reddit/StandardEvents.d.ts +12 -0
  682. package/dist/node/src/lib/Tracking/Reddit/StandardProperties.d.ts +4 -0
  683. package/dist/node/src/lib/Tracking/Reddit/index.d.ts +4 -0
  684. package/dist/node/src/lib/Tracking/Referrer.d.ts +13 -0
  685. package/dist/node/src/lib/Tracking/Snapchat/BaseEvent.d.ts +6 -0
  686. package/dist/node/src/lib/Tracking/Snapchat/Snaptr.d.ts +8 -0
  687. package/dist/node/src/lib/Tracking/Snapchat/StandardEvent.d.ts +6 -0
  688. package/dist/node/src/lib/Tracking/Snapchat/StandardEvents.d.ts +33 -0
  689. package/dist/node/src/lib/Tracking/Snapchat/StandardProperties.d.ts +15 -0
  690. package/dist/node/src/lib/Tracking/Snapchat/UserProperties.d.ts +7 -0
  691. package/dist/node/src/lib/Tracking/Snapchat/index.d.ts +6 -0
  692. package/dist/node/src/lib/Tracking/Tiktok/BaseEvent.d.ts +8 -0
  693. package/dist/node/src/lib/Tracking/Tiktok/CustomEvent.d.ts +5 -0
  694. package/dist/node/src/lib/Tracking/Tiktok/StandardEvent.d.ts +5 -0
  695. package/dist/node/src/lib/Tracking/Tiktok/StandardEvents.d.ts +19 -0
  696. package/dist/node/src/lib/Tracking/Tiktok/StandardProperties.d.ts +4 -0
  697. package/dist/node/src/lib/Tracking/Tiktok/Ttq.d.ts +8 -0
  698. package/dist/node/src/lib/Tracking/Tiktok/index.d.ts +4 -0
  699. package/dist/node/src/lib/Tracking/Xy/BaseEvent.d.ts +6 -0
  700. package/dist/node/src/lib/Tracking/Xy/CustomEvent.d.ts +4 -0
  701. package/dist/node/src/lib/Tracking/Xy/StandardEvent.d.ts +4 -0
  702. package/dist/node/src/lib/Tracking/Xy/UserEventHandler.d.ts +8 -0
  703. package/dist/node/src/lib/Tracking/Xy/index.d.ts +4 -0
  704. package/dist/node/src/lib/Tracking/XyoUserEventHandler.d.ts +10 -0
  705. package/dist/node/src/lib/Tracking/index.d.ts +10 -0
  706. package/dist/node/src/lib/getApiStage.d.ts +2 -0
  707. package/dist/node/src/lib/global.d.ts +2 -0
  708. package/dist/node/src/lib/index.d.ts +10 -0
  709. package/dist/node/src/lib/isLocalHost.d.ts +2 -0
  710. package/dist/node/src/lib/profile.d.ts +9 -0
  711. package/dist/node/src/lib/safeLocalStorage.d.ts +3 -0
  712. package/dist/node/src/lib/safeSessionStorage.d.ts +3 -0
  713. package/dist/node/src/lib/useAsyncEffect.d.ts +5 -0
  714. package/dist/node/src/mergeBoxlikeStyles.d.ts +4 -0
  715. package/dist/node-esm/index.d.ts +1 -0
  716. package/dist/node-esm/index.js +1982 -0
  717. package/dist/node-esm/index.js.map +1 -0
  718. package/dist/node-esm/index.node.d.ts +1 -0
  719. package/dist/node-esm/package.json +1 -0
  720. package/dist/node-esm/src/BoxlikeComponentProps.d.ts +41 -0
  721. package/dist/node-esm/src/BusyProps.d.ts +13 -0
  722. package/dist/node-esm/src/Margin.d.ts +2 -0
  723. package/dist/node-esm/src/Padding.d.ts +2 -0
  724. package/dist/node-esm/src/calcSpacing.d.ts +4 -0
  725. package/dist/node-esm/src/components/AppBarEx/AppBarEx.d.ts +4 -0
  726. package/dist/node-esm/src/components/AppBarEx/AppBarEx.stories.d.ts +6 -0
  727. package/dist/node-esm/src/components/AppBarEx/AppBarExProps.d.ts +8 -0
  728. package/dist/node-esm/src/components/AppBarEx/index.d.ts +4 -0
  729. package/dist/node-esm/src/components/Background.d.ts +7 -0
  730. package/dist/node-esm/src/components/BasePage/BasePage.d.ts +4 -0
  731. package/dist/node-esm/src/components/BasePage/BasePage.stories.d.ts +6 -0
  732. package/dist/node-esm/src/components/BasePage/BasePageProps.d.ts +17 -0
  733. package/dist/node-esm/src/components/BasePage/index.d.ts +4 -0
  734. package/dist/node-esm/src/components/Breadcrumbs/BreadcrumbsEx.d.ts +4 -0
  735. package/dist/node-esm/src/components/Breadcrumbs/BreadcrumbsEx.stories.d.ts +7 -0
  736. package/dist/node-esm/src/components/Breadcrumbs/BreadcrumbsExProps.d.ts +8 -0
  737. package/dist/node-esm/src/components/Breadcrumbs/index.d.ts +2 -0
  738. package/dist/node-esm/src/components/BusyCircularProgress.d.ts +10 -0
  739. package/dist/node-esm/src/components/BusyLinearProgress.d.ts +9 -0
  740. package/dist/node-esm/src/components/ButtonEx/ButtonEx.d.ts +4 -0
  741. package/dist/node-esm/src/components/ButtonEx/ButtonEx.stories.d.ts +8 -0
  742. package/dist/node-esm/src/components/ButtonEx/ButtonExBase.d.ts +4 -0
  743. package/dist/node-esm/src/components/ButtonEx/ButtonExProps.d.ts +10 -0
  744. package/dist/node-esm/src/components/ButtonEx/ButtonExTo.d.ts +4 -0
  745. package/dist/node-esm/src/components/ButtonEx/index.d.ts +2 -0
  746. package/dist/node-esm/src/components/CookieConsent/CookieConsent.d.ts +4 -0
  747. package/dist/node-esm/src/components/CookieConsent/CookieConsent.stories.d.ts +7 -0
  748. package/dist/node-esm/src/components/CookieConsent/CookieConsentBody.d.ts +4 -0
  749. package/dist/node-esm/src/components/CookieConsent/CookieConsentProps.d.ts +7 -0
  750. package/dist/node-esm/src/components/CookieConsent/index.d.ts +3 -0
  751. package/dist/node-esm/src/components/CoverProgress.d.ts +10 -0
  752. package/dist/node-esm/src/components/Errors/ErrorViewer.d.ts +4 -0
  753. package/dist/node-esm/src/components/Errors/ErrorViewer.stories.d.ts +6 -0
  754. package/dist/node-esm/src/components/Errors/ErrorViewerProps.d.ts +5 -0
  755. package/dist/node-esm/src/components/Errors/ErrorsViewer.d.ts +4 -0
  756. package/dist/node-esm/src/components/Errors/ErrorsViewer.stories.d.ts +6 -0
  757. package/dist/node-esm/src/components/Errors/ErrorsViewerProps.d.ts +6 -0
  758. package/dist/node-esm/src/components/Errors/index.d.ts +3 -0
  759. package/dist/node-esm/src/components/EthAccount/EthAccount.d.ts +4 -0
  760. package/dist/node-esm/src/components/EthAccount/EthAccount.stories.d.ts +11 -0
  761. package/dist/node-esm/src/components/EthAccount/EthAccountProps.d.ts +17 -0
  762. package/dist/node-esm/src/components/EthAccount/index.d.ts +4 -0
  763. package/dist/node-esm/src/components/EthBlock.d.ts +6 -0
  764. package/dist/node-esm/src/components/Experiments/Experiment.d.ts +6 -0
  765. package/dist/node-esm/src/components/Experiments/Experiments.d.ts +10 -0
  766. package/dist/node-esm/src/components/Experiments/index.d.ts +3 -0
  767. package/dist/node-esm/src/components/FlexBox/BusyBox.d.ts +10 -0
  768. package/dist/node-esm/src/components/FlexBox/BusyBox.stories.d.ts +10 -0
  769. package/dist/node-esm/src/components/FlexBox/FlexCol.d.ts +5 -0
  770. package/dist/node-esm/src/components/FlexBox/FlexCol.stories.d.ts +8 -0
  771. package/dist/node-esm/src/components/FlexBox/FlexRow.d.ts +7 -0
  772. package/dist/node-esm/src/components/FlexBox/FlexRow.stories.d.ts +10 -0
  773. package/dist/node-esm/src/components/FlexBox/index.d.ts +3 -0
  774. package/dist/node-esm/src/components/HoverScale.d.ts +6 -0
  775. package/dist/node-esm/src/components/Identicon.d.ts +14 -0
  776. package/dist/node-esm/src/components/InvertableThemeProvider/InvertableTheme.d.ts +5 -0
  777. package/dist/node-esm/src/components/InvertableThemeProvider/InvertableThemeContext.d.ts +4 -0
  778. package/dist/node-esm/src/components/InvertableThemeProvider/InvertableThemeProvider.d.ts +4 -0
  779. package/dist/node-esm/src/components/InvertableThemeProvider/InvertableThemeProvider.stories.d.ts +6 -0
  780. package/dist/node-esm/src/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +9 -0
  781. package/dist/node-esm/src/components/InvertableThemeProvider/index.d.ts +4 -0
  782. package/dist/node-esm/src/components/LinkEx/LinkToEx.d.ts +8 -0
  783. package/dist/node-esm/src/components/LinkEx/index.d.ts +2 -0
  784. package/dist/node-esm/src/components/NumberStatus/NumberStatus.d.ts +4 -0
  785. package/dist/node-esm/src/components/NumberStatus/NumberStatus.stories.d.ts +14 -0
  786. package/dist/node-esm/src/components/NumberStatus/NumberStatusProps.d.ts +13 -0
  787. package/dist/node-esm/src/components/NumberStatus/index.d.ts +2 -0
  788. package/dist/node-esm/src/components/QuickTipButton/QuickTipButton.d.ts +4 -0
  789. package/dist/node-esm/src/components/QuickTipButton/QuickTipButton.stories.d.ts +6 -0
  790. package/dist/node-esm/src/components/QuickTipButton/index.d.ts +2 -0
  791. package/dist/node-esm/src/components/RedirectWithQuery.d.ts +8 -0
  792. package/dist/node-esm/src/components/RichResult/RichResult.d.ts +7 -0
  793. package/dist/node-esm/src/components/RichResult/index.d.ts +3 -0
  794. package/dist/node-esm/src/components/RichResult/jsonld/Action.d.ts +24 -0
  795. package/dist/node-esm/src/components/RichResult/jsonld/ActionStatusType.d.ts +7 -0
  796. package/dist/node-esm/src/components/RichResult/jsonld/AdministrativeArea.d.ts +3 -0
  797. package/dist/node-esm/src/components/RichResult/jsonld/AggrigateRating.d.ts +8 -0
  798. package/dist/node-esm/src/components/RichResult/jsonld/Article.d.ts +14 -0
  799. package/dist/node-esm/src/components/RichResult/jsonld/Base.d.ts +4 -0
  800. package/dist/node-esm/src/components/RichResult/jsonld/Brand.d.ts +11 -0
  801. package/dist/node-esm/src/components/RichResult/jsonld/Class.d.ts +7 -0
  802. package/dist/node-esm/src/components/RichResult/jsonld/ContactPoint.d.ts +19 -0
  803. package/dist/node-esm/src/components/RichResult/jsonld/ContactPointOption.d.ts +5 -0
  804. package/dist/node-esm/src/components/RichResult/jsonld/Country.d.ts +3 -0
  805. package/dist/node-esm/src/components/RichResult/jsonld/CreativeWork.d.ts +122 -0
  806. package/dist/node-esm/src/components/RichResult/jsonld/DateTime.d.ts +2 -0
  807. package/dist/node-esm/src/components/RichResult/jsonld/EntryPoint.d.ts +13 -0
  808. package/dist/node-esm/src/components/RichResult/jsonld/Enumeration.d.ts +7 -0
  809. package/dist/node-esm/src/components/RichResult/jsonld/GeoShape.d.ts +15 -0
  810. package/dist/node-esm/src/components/RichResult/jsonld/GeospatialGeometry.d.ts +15 -0
  811. package/dist/node-esm/src/components/RichResult/jsonld/ImageObject.d.ts +9 -0
  812. package/dist/node-esm/src/components/RichResult/jsonld/Intangible.d.ts +3 -0
  813. package/dist/node-esm/src/components/RichResult/jsonld/Integer.d.ts +2 -0
  814. package/dist/node-esm/src/components/RichResult/jsonld/ItemAvailability.d.ts +21 -0
  815. package/dist/node-esm/src/components/RichResult/jsonld/Language.d.ts +3 -0
  816. package/dist/node-esm/src/components/RichResult/jsonld/Map.d.ts +6 -0
  817. package/dist/node-esm/src/components/RichResult/jsonld/MapCategoryType.d.ts +7 -0
  818. package/dist/node-esm/src/components/RichResult/jsonld/MediaObject.d.ts +10 -0
  819. package/dist/node-esm/src/components/RichResult/jsonld/MobileApplication.d.ts +6 -0
  820. package/dist/node-esm/src/components/RichResult/jsonld/Offer.d.ts +64 -0
  821. package/dist/node-esm/src/components/RichResult/jsonld/Organization.d.ts +77 -0
  822. package/dist/node-esm/src/components/RichResult/jsonld/Person.d.ts +71 -0
  823. package/dist/node-esm/src/components/RichResult/jsonld/Photograph.d.ts +3 -0
  824. package/dist/node-esm/src/components/RichResult/jsonld/Place.d.ts +42 -0
  825. package/dist/node-esm/src/components/RichResult/jsonld/PostalAddress.d.ts +12 -0
  826. package/dist/node-esm/src/components/RichResult/jsonld/Product.d.ts +56 -0
  827. package/dist/node-esm/src/components/RichResult/jsonld/Property.d.ts +10 -0
  828. package/dist/node-esm/src/components/RichResult/jsonld/PropertyValue.d.ts +16 -0
  829. package/dist/node-esm/src/components/RichResult/jsonld/QualitativeValue.d.ts +15 -0
  830. package/dist/node-esm/src/components/RichResult/jsonld/QuantitativeValue.d.ts +15 -0
  831. package/dist/node-esm/src/components/RichResult/jsonld/Rating.d.ts +10 -0
  832. package/dist/node-esm/src/components/RichResult/jsonld/Review.d.ts +10 -0
  833. package/dist/node-esm/src/components/RichResult/jsonld/Service.d.ts +38 -0
  834. package/dist/node-esm/src/components/RichResult/jsonld/SoftwareApplication.d.ts +28 -0
  835. package/dist/node-esm/src/components/RichResult/jsonld/StructuredValue.d.ts +3 -0
  836. package/dist/node-esm/src/components/RichResult/jsonld/Text.d.ts +2 -0
  837. package/dist/node-esm/src/components/RichResult/jsonld/Thing.d.ts +22 -0
  838. package/dist/node-esm/src/components/RichResult/jsonld/Time.d.ts +2 -0
  839. package/dist/node-esm/src/components/RichResult/jsonld/URL.d.ts +2 -0
  840. package/dist/node-esm/src/components/RichResult/jsonld/VirtualLocation.d.ts +3 -0
  841. package/dist/node-esm/src/components/RichResult/jsonld/index.d.ts +48 -0
  842. package/dist/node-esm/src/components/ScrollToTop.d.ts +1 -0
  843. package/dist/node-esm/src/components/ScrollToTopButton.d.ts +7 -0
  844. package/dist/node-esm/src/components/TokenAmount/TokenAmount.d.ts +4 -0
  845. package/dist/node-esm/src/components/TokenAmount/TokenAmount.stories.d.ts +12 -0
  846. package/dist/node-esm/src/components/TokenAmount/TokenAmountProps.d.ts +14 -0
  847. package/dist/node-esm/src/components/TokenAmount/index.d.ts +4 -0
  848. package/dist/node-esm/src/components/dialogs/ErrorDialog.d.ts +8 -0
  849. package/dist/node-esm/src/components/dialogs/ErrorDialog.stories.d.ts +6 -0
  850. package/dist/node-esm/src/components/dialogs/MessageDialog.d.ts +7 -0
  851. package/dist/node-esm/src/components/dialogs/MessageDialog.stories.d.ts +6 -0
  852. package/dist/node-esm/src/components/dialogs/index.d.ts +3 -0
  853. package/dist/node-esm/src/components/index.d.ts +23 -0
  854. package/dist/node-esm/src/contexts/CookieConsent/Context.d.ts +8 -0
  855. package/dist/node-esm/src/contexts/CookieConsent/Loader.d.ts +3 -0
  856. package/dist/node-esm/src/contexts/CookieConsent/index.d.ts +4 -0
  857. package/dist/node-esm/src/contexts/CookieConsent/use.d.ts +7 -0
  858. package/dist/node-esm/src/contexts/Ethers/Context.d.ts +19 -0
  859. package/dist/node-esm/src/contexts/Ethers/Infura.d.ts +7 -0
  860. package/dist/node-esm/src/contexts/Ethers/Loader.d.ts +6 -0
  861. package/dist/node-esm/src/contexts/Ethers/MetaMask.d.ts +6 -0
  862. package/dist/node-esm/src/contexts/Ethers/MyEtherWallet.d.ts +6 -0
  863. package/dist/node-esm/src/contexts/Ethers/Opera.d.ts +6 -0
  864. package/dist/node-esm/src/contexts/Ethers/Trust.d.ts +6 -0
  865. package/dist/node-esm/src/contexts/Ethers/index.d.ts +2 -0
  866. package/dist/node-esm/src/contexts/NetworkSettings/Context.d.ts +9 -0
  867. package/dist/node-esm/src/contexts/NetworkSettings/Loader.d.ts +6 -0
  868. package/dist/node-esm/src/contexts/NetworkSettings/index.d.ts +3 -0
  869. package/dist/node-esm/src/contexts/UserEvents/Context.d.ts +7 -0
  870. package/dist/node-esm/src/contexts/UserEvents/index.d.ts +2 -0
  871. package/dist/node-esm/src/contexts/index.d.ts +4 -0
  872. package/dist/node-esm/src/hooks/index.d.ts +7 -0
  873. package/dist/node-esm/src/hooks/useBreakpoint.d.ts +1 -0
  874. package/dist/node-esm/src/hooks/useMediaQuery.d.ts +2 -0
  875. package/dist/node-esm/src/hooks/useMounted.d.ts +1 -0
  876. package/dist/node-esm/src/hooks/useNavigateToEthAddress.d.ts +5 -0
  877. package/dist/node-esm/src/hooks/useSpacing.d.ts +1 -0
  878. package/dist/node-esm/src/hooks/useWebP.d.ts +1 -0
  879. package/dist/node-esm/src/hooks/useWindowSize.d.ts +6 -0
  880. package/dist/node-esm/src/index.d.ts +4 -0
  881. package/dist/node-esm/src/lib/ComponentSizes.d.ts +2 -0
  882. package/dist/node-esm/src/lib/Tracking/Drip/BaseEvent.d.ts +12 -0
  883. package/dist/node-esm/src/lib/Tracking/Drip/CustomEvent.d.ts +4 -0
  884. package/dist/node-esm/src/lib/Tracking/Drip/Data/Base.d.ts +6 -0
  885. package/dist/node-esm/src/lib/Tracking/Drip/Data/CustomFields.d.ts +4 -0
  886. package/dist/node-esm/src/lib/Tracking/Drip/Data/Identify.d.ts +14 -0
  887. package/dist/node-esm/src/lib/Tracking/Drip/Data/Result.d.ts +7 -0
  888. package/dist/node-esm/src/lib/Tracking/Drip/Data/StandardFields.d.ts +12 -0
  889. package/dist/node-esm/src/lib/Tracking/Drip/Data/index.d.ts +2 -0
  890. package/dist/node-esm/src/lib/Tracking/Drip/StandardEvents.d.ts +6 -0
  891. package/dist/node-esm/src/lib/Tracking/Drip/index.d.ts +5 -0
  892. package/dist/node-esm/src/lib/Tracking/Facebook/BaseEvent.d.ts +8 -0
  893. package/dist/node-esm/src/lib/Tracking/Facebook/CustomEvent.d.ts +5 -0
  894. package/dist/node-esm/src/lib/Tracking/Facebook/Fbq.d.ts +10 -0
  895. package/dist/node-esm/src/lib/Tracking/Facebook/StandardEvent.d.ts +5 -0
  896. package/dist/node-esm/src/lib/Tracking/Facebook/StandardEvents.d.ts +61 -0
  897. package/dist/node-esm/src/lib/Tracking/Facebook/StandardProperties.d.ts +15 -0
  898. package/dist/node-esm/src/lib/Tracking/Facebook/UserEventHandler.d.ts +8 -0
  899. package/dist/node-esm/src/lib/Tracking/Facebook/index.d.ts +8 -0
  900. package/dist/node-esm/src/lib/Tracking/Google/BaseEvent.d.ts +13 -0
  901. package/dist/node-esm/src/lib/Tracking/Google/CustomEvent.d.ts +4 -0
  902. package/dist/node-esm/src/lib/Tracking/Google/DataLayer.d.ts +9 -0
  903. package/dist/node-esm/src/lib/Tracking/Google/Gtag.d.ts +19 -0
  904. package/dist/node-esm/src/lib/Tracking/Google/Gtm.d.ts +10 -0
  905. package/dist/node-esm/src/lib/Tracking/Google/StandardEvent.d.ts +4 -0
  906. package/dist/node-esm/src/lib/Tracking/Google/StandardEvents.d.ts +151 -0
  907. package/dist/node-esm/src/lib/Tracking/Google/UserEventHandler.d.ts +8 -0
  908. package/dist/node-esm/src/lib/Tracking/Google/index.d.ts +7 -0
  909. package/dist/node-esm/src/lib/Tracking/Reddit/BaseEvent.d.ts +8 -0
  910. package/dist/node-esm/src/lib/Tracking/Reddit/CustomEvent.d.ts +5 -0
  911. package/dist/node-esm/src/lib/Tracking/Reddit/Rdt.d.ts +8 -0
  912. package/dist/node-esm/src/lib/Tracking/Reddit/StandardEvent.d.ts +5 -0
  913. package/dist/node-esm/src/lib/Tracking/Reddit/StandardEvents.d.ts +12 -0
  914. package/dist/node-esm/src/lib/Tracking/Reddit/StandardProperties.d.ts +4 -0
  915. package/dist/node-esm/src/lib/Tracking/Reddit/index.d.ts +4 -0
  916. package/dist/node-esm/src/lib/Tracking/Referrer.d.ts +13 -0
  917. package/dist/node-esm/src/lib/Tracking/Snapchat/BaseEvent.d.ts +6 -0
  918. package/dist/node-esm/src/lib/Tracking/Snapchat/Snaptr.d.ts +8 -0
  919. package/dist/node-esm/src/lib/Tracking/Snapchat/StandardEvent.d.ts +6 -0
  920. package/dist/node-esm/src/lib/Tracking/Snapchat/StandardEvents.d.ts +33 -0
  921. package/dist/node-esm/src/lib/Tracking/Snapchat/StandardProperties.d.ts +15 -0
  922. package/dist/node-esm/src/lib/Tracking/Snapchat/UserProperties.d.ts +7 -0
  923. package/dist/node-esm/src/lib/Tracking/Snapchat/index.d.ts +6 -0
  924. package/dist/node-esm/src/lib/Tracking/Tiktok/BaseEvent.d.ts +8 -0
  925. package/dist/node-esm/src/lib/Tracking/Tiktok/CustomEvent.d.ts +5 -0
  926. package/dist/node-esm/src/lib/Tracking/Tiktok/StandardEvent.d.ts +5 -0
  927. package/dist/node-esm/src/lib/Tracking/Tiktok/StandardEvents.d.ts +19 -0
  928. package/dist/node-esm/src/lib/Tracking/Tiktok/StandardProperties.d.ts +4 -0
  929. package/dist/node-esm/src/lib/Tracking/Tiktok/Ttq.d.ts +8 -0
  930. package/dist/node-esm/src/lib/Tracking/Tiktok/index.d.ts +4 -0
  931. package/dist/node-esm/src/lib/Tracking/Xy/BaseEvent.d.ts +6 -0
  932. package/dist/node-esm/src/lib/Tracking/Xy/CustomEvent.d.ts +4 -0
  933. package/dist/node-esm/src/lib/Tracking/Xy/StandardEvent.d.ts +4 -0
  934. package/dist/node-esm/src/lib/Tracking/Xy/UserEventHandler.d.ts +8 -0
  935. package/dist/node-esm/src/lib/Tracking/Xy/index.d.ts +4 -0
  936. package/dist/node-esm/src/lib/Tracking/XyoUserEventHandler.d.ts +10 -0
  937. package/dist/node-esm/src/lib/Tracking/index.d.ts +10 -0
  938. package/dist/node-esm/src/lib/getApiStage.d.ts +2 -0
  939. package/dist/node-esm/src/lib/global.d.ts +2 -0
  940. package/dist/node-esm/src/lib/index.d.ts +10 -0
  941. package/dist/node-esm/src/lib/isLocalHost.d.ts +2 -0
  942. package/dist/node-esm/src/lib/profile.d.ts +9 -0
  943. package/dist/node-esm/src/lib/safeLocalStorage.d.ts +3 -0
  944. package/dist/node-esm/src/lib/safeSessionStorage.d.ts +3 -0
  945. package/dist/node-esm/src/lib/useAsyncEffect.d.ts +5 -0
  946. package/dist/node-esm/src/mergeBoxlikeStyles.d.ts +4 -0
  947. package/package.json +17 -10
  948. package/rollup.config.js +4 -0
  949. package/src/hooks/index.ts +7 -7
  950. package/src/hooks/useBreakpoint.ts +1 -3
  951. package/src/hooks/useMounted.tsx +1 -3
  952. package/src/hooks/useNavigateToEthAddress.ts +1 -3
  953. package/src/hooks/useSpacing.tsx +6 -0
  954. package/src/hooks/useWebP.tsx +32 -0
  955. package/src/hooks/useWindowSize.ts +1 -3
@@ -0,0 +1,1982 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { useTheme, Box, alpha, CircularProgress, LinearProgress, Paper, Typography, IconButton, useScrollTrigger, Zoom, AppBar, Container, Toolbar, Button, Link, responsiveFontSizes, ScopedCssBaseline, ThemeProvider, Fab, Breadcrumbs, Dialog, DialogTitle, DialogContent, DialogActions, useMediaQuery } from '@mui/material';
3
+ export { useMediaQuery } from '@mui/material';
4
+ import { AiOutlineReload, AiOutlineQuestionCircle } from 'react-icons/ai';
5
+ import { makeStyles, createStyles } from '@mui/styles';
6
+ import md5 from 'md5';
7
+ import React, { useRef, useEffect, createContext, useState, useContext } from 'react';
8
+ import { useNavigate, useLocation, Link as Link$1 } from 'react-router-dom';
9
+ import { KeyboardArrowUp } from '@mui/icons-material';
10
+ import { Helmet } from 'react-helmet';
11
+ import { InfuraProvider, Web3Provider } from '@ethersproject/providers';
12
+ import { getApiStage as getApiStage$1, delay, assertEx, EthAddress, BigNumber } from '@xylabs/sdk-js';
13
+ import { UserEventHandler, XyPixel } from '@xylabs/pixel';
14
+ import { parse, stringify } from 'query-string';
15
+ import { createTheme } from '@mui/material/styles';
16
+ import clone from 'lodash/clone';
17
+ import numeral from 'numeral';
18
+
19
+ /*! *****************************************************************************
20
+ Copyright (c) Microsoft Corporation.
21
+
22
+ Permission to use, copy, modify, and/or distribute this software for any
23
+ purpose with or without fee is hereby granted.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
26
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
29
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
30
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31
+ PERFORMANCE OF THIS SOFTWARE.
32
+ ***************************************************************************** */
33
+
34
+ function __rest(s, e) {
35
+ var t = {};
36
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37
+ t[p] = s[p];
38
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
39
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
41
+ t[p[i]] = s[p[i]];
42
+ }
43
+ return t;
44
+ }
45
+
46
+ const BusyCircularProgress = (_a) => {
47
+ var { bgcolor, style, rounded, size, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "size", "opacity"]);
48
+ const theme = useTheme();
49
+ return (jsx(Box, Object.assign({ display: "flex", bgcolor: 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: jsx(CircularProgress, Object.assign({ size: size }, props), void 0) }), void 0));
50
+ };
51
+
52
+ const BusyLinearProgress = (_a) => {
53
+ var { bgcolor, style, rounded, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "opacity"]);
54
+ const theme = useTheme();
55
+ return (jsx(Box, Object.assign({ display: "flex", flexDirection: "column", bgcolor: 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: jsx(LinearProgress, Object.assign({}, props), void 0) }), void 0));
56
+ };
57
+
58
+ const BusyBox = (_a) => {
59
+ 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"]);
60
+ const theme = useTheme();
61
+ return (jsxs(Box, Object.assign({ component: paper ? Paper : component, position: "relative", style: background
62
+ ? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps), void 0)) : null, busy && busyVariant === 'circular' ? (jsx(BusyCircularProgress, Object.assign({ color: busyColor, opacity: busyOpacity, size: busySize }, busyCircularProps), void 0)) : null] }), void 0));
63
+ };
64
+
65
+ const FlexCol = (props) => {
66
+ return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "column", justifyContent: "center" }, props), void 0);
67
+ };
68
+ const FlexGrowCol = (props) => {
69
+ return jsx(FlexCol, Object.assign({ flexGrow: 1 }, props), void 0);
70
+ };
71
+
72
+ const FlexRow = (props) => {
73
+ return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "row", justifyContent: "center" }, props), void 0);
74
+ };
75
+ const FlexGrowRow = (props) => {
76
+ return jsx(FlexRow, Object.assign({ flexGrow: 1 }, props), void 0);
77
+ };
78
+
79
+ /**
80
+ * @deprecated The functionality of Background is now part of FlexBox. Use the 'background' property to enable the background.
81
+ */
82
+ const Background = (props) => {
83
+ return jsx(FlexRow, Object.assign({}, props), void 0);
84
+ };
85
+
86
+ const ErrorViewer = (props) => {
87
+ const { error } = props, boxProps = __rest(props, ["error"]);
88
+ const theme = useTheme();
89
+ return (jsxs(FlexCol, Object.assign({ color: theme.palette.error.main }, boxProps, { children: [jsx(Typography, Object.assign({ align: "center", variant: "subtitle1" }, { children: error === null || error === void 0 ? void 0 : error.name }), void 0), jsx(Typography, Object.assign({ align: "center", variant: "body2" }, { children: error === null || error === void 0 ? void 0 : error.message }), void 0)] }), void 0));
90
+ };
91
+
92
+ const ErrorsViewer = (props) => {
93
+ const { onRetry, errors } = props, boxProps = __rest(props, ["onRetry", "errors"]);
94
+ return (jsxs(FlexGrowCol, Object.assign({ padding: 1 }, boxProps, { children: [errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
95
+ return jsx(ErrorViewer, { error: error }, index);
96
+ }), onRetry ? (jsx(IconButton, Object.assign({ onClick: onRetry }, { children: jsx(AiOutlineReload, {}, void 0) }), void 0)) : null] }), void 0));
97
+ };
98
+
99
+ const CoverProgress = (props) => {
100
+ var _a;
101
+ const { paper = true, open, opacity = 0.25, errors, onRetry } = props;
102
+ const theme = useTheme();
103
+ if (open) {
104
+ return (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 ? (jsx(CircularProgress, { style: { opacity } }, void 0)) : (jsx(ErrorsViewer, { margin: 1, errors: errors, onRetry: onRetry }, void 0)) }), void 0));
105
+ }
106
+ return null;
107
+ };
108
+
109
+ const HoverScale = (props) => {
110
+ const { children, scale = 1.1 } = props;
111
+ const useStyles = makeStyles(() => createStyles({
112
+ zoomdiv: {
113
+ '&:hover': {
114
+ transform: `scale(${scale})`,
115
+ transitionDuration: '0.2s',
116
+ transitionTimingFunction: 'ease',
117
+ },
118
+ },
119
+ }));
120
+ const classes = useStyles();
121
+ return (jsx(FlexRow, { children: jsx(Box, Object.assign({ className: classes.zoomdiv }, { children: children }), void 0) }, void 0));
122
+ };
123
+
124
+ const range = (n, in_min, in_max, out_min, out_max) => {
125
+ return ((n - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min;
126
+ };
127
+ const updateCanvas = (canvas, props) => {
128
+ const { value = '', size = 400, bg = 'transparent', count = 5, palette, iconPadding = 0 } = props;
129
+ let { fg } = props;
130
+ const hash = md5(value);
131
+ const block = Math.floor(size / count);
132
+ const hashcolor = hash.slice(0, 6);
133
+ const current = canvas.current;
134
+ if (!current) {
135
+ return;
136
+ }
137
+ if (palette && palette.length) {
138
+ const index = Math.floor(range(parseInt(hash.slice(-3), 16), 0, 4095, 0, palette.length));
139
+ fg = palette[index];
140
+ }
141
+ current.width = block * count + iconPadding;
142
+ current.height = block * count + iconPadding;
143
+ const arr = hash.split('').map((el) => {
144
+ const parsedEl = parseInt(el, 16);
145
+ if (parsedEl < 8) {
146
+ return 0;
147
+ }
148
+ else {
149
+ return 1;
150
+ }
151
+ });
152
+ const map = [];
153
+ map[0] = map[4] = arr.slice(0, 5);
154
+ map[1] = map[3] = arr.slice(5, 10);
155
+ map[2] = arr.slice(10, 15);
156
+ const ctx = current.getContext('2d');
157
+ if (ctx) {
158
+ ctx.imageSmoothingEnabled = false;
159
+ ctx.clearRect(0, 0, current.width, current.height);
160
+ map.forEach((row, i) => {
161
+ row.forEach((el, j) => {
162
+ if (el) {
163
+ ctx.fillStyle = fg ? fg : '#' + hashcolor;
164
+ ctx.fillRect(block * i + iconPadding, block * j + iconPadding, block - iconPadding, block - iconPadding);
165
+ }
166
+ else {
167
+ ctx.fillStyle = bg;
168
+ ctx.fillRect(block * i + iconPadding, block * j + iconPadding, block - iconPadding, block - iconPadding);
169
+ }
170
+ });
171
+ });
172
+ }
173
+ };
174
+ const Identicon = (_a) => {
175
+ var { size = 400, className = 'identicon', bg, count, fg, iconPadding, palette, value } = _a, props = __rest(_a, ["size", "className", "bg", "count", "fg", "iconPadding", "palette", "value"]);
176
+ const canvas = useRef(null);
177
+ useEffect(() => {
178
+ updateCanvas(canvas, { bg, className, count, fg, iconPadding, palette, size, value });
179
+ });
180
+ return (jsx(FlexRow, Object.assign({}, props, { children: jsx("canvas", { className: className, ref: canvas, style: { height: size, width: size } }, void 0) }), void 0));
181
+ };
182
+
183
+ const RedirectWithQuery = ({ to, toOptions }) => {
184
+ const newPath = `${to}${document.location.search}`;
185
+ const navigate = useNavigate();
186
+ const { pathname } = useLocation();
187
+ useEffect(() => {
188
+ if (newPath !== pathname) {
189
+ navigate(newPath, Object.assign({ replace: true }, toOptions));
190
+ }
191
+ });
192
+ return jsx("div", {}, void 0);
193
+ };
194
+
195
+ const ScrollToTopButton = (_a) => {
196
+ var { children, anchorId } = _a, props = __rest(_a, ["children", "anchorId"]);
197
+ const trigger = useScrollTrigger({
198
+ disableHysteresis: true,
199
+ threshold: 100,
200
+ });
201
+ const handleClick = (event) => {
202
+ const anchor = (event.target.ownerDocument || document).querySelector(`#${anchorId}`);
203
+ if (anchor) {
204
+ anchor.scrollIntoView({ behavior: 'smooth', block: 'center' });
205
+ }
206
+ };
207
+ const theme = useTheme();
208
+ return (jsx(Zoom, Object.assign({ in: trigger }, props, { children: jsx(Box, Object.assign({ zIndex: 10, position: "fixed", right: theme.spacing(2), bottom: theme.spacing(2), onClick: handleClick, role: "presentation" }, { children: children }), void 0) }), void 0));
209
+ };
210
+
211
+ const AppBarEx = (props) => {
212
+ const { contextToolbar, systemToolbar, container, style } = props, appbarProps = __rest(props, ["contextToolbar", "systemToolbar", "container", "style"]);
213
+ const theme = useTheme();
214
+ const AppBarExInner = () => {
215
+ return (jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between" }, { children: [contextToolbar !== null && contextToolbar !== void 0 ? contextToolbar : jsx(Toolbar, {}, void 0), systemToolbar !== null && systemToolbar !== void 0 ? systemToolbar : jsx(Toolbar, {}, void 0)] }), void 0));
216
+ };
217
+ return (jsx(AppBar, Object.assign({ position: "static", style: Object.assign({ backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex' }, style) }, appbarProps, { children: container ? (jsx(Container, Object.assign({ maxWidth: container }, { children: jsx(AppBarExInner, {}, void 0) }), void 0)) : (jsx(AppBarExInner, {}, void 0)) }), void 0));
218
+ };
219
+
220
+ const CookieConsentContext = createContext({});
221
+
222
+ const CookiesAcceptedLocalStorageName = 'CookiesAccepted';
223
+ const CookieConsentLoader = ({ children }) => {
224
+ const getAcceptedFromLocalStorage = () => {
225
+ return localStorage.getItem(CookiesAcceptedLocalStorageName) === 'true';
226
+ };
227
+ const setAcceptedToLocalStorage = (accepted) => {
228
+ localStorage.setItem(CookiesAcceptedLocalStorageName, accepted ? 'true' : 'false');
229
+ };
230
+ const [accepted, setAccepted] = useState(getAcceptedFromLocalStorage());
231
+ const setAcceptedHandler = (accepted) => {
232
+ setAcceptedToLocalStorage(accepted);
233
+ setAccepted(accepted);
234
+ };
235
+ const clearAccepted = () => {
236
+ localStorage.removeItem(CookiesAcceptedLocalStorageName);
237
+ setAccepted(getAcceptedFromLocalStorage());
238
+ };
239
+ return (jsx(CookieConsentContext.Provider, Object.assign({ value: { accepted, clearAccepted, setAccepted: setAcceptedHandler, storageName: CookiesAcceptedLocalStorageName } }, { children: children }), void 0));
240
+ };
241
+
242
+ const useCookieConsent = () => {
243
+ return useContext(CookieConsentContext);
244
+ };
245
+
246
+ const EthersContext = React.createContext({});
247
+
248
+ const infuraKey = '1d9f8053c65a49cfb99fafaa8ef201c0';
249
+ const InfuraEthersLoader = (props) => {
250
+ const { children } = props;
251
+ const chainId = 1;
252
+ const provider = new InfuraProvider(1, infuraKey);
253
+ return (jsx(EthersContext.Provider, Object.assign({ value: {
254
+ busy: false,
255
+ chainId,
256
+ isConnected: true,
257
+ provider,
258
+ signer: null,
259
+ } }, { children: children }), void 0));
260
+ };
261
+
262
+ const getApiStage = () => {
263
+ return getApiStage$1(document.location.hostname);
264
+ };
265
+
266
+ const isLocalhost = !!(window.location.hostname === 'localhost' ||
267
+ // [::1] is the IPv6 localhost address.
268
+ window.location.hostname === '[::1]' ||
269
+ // 127.0.0.0/8 are considered localhost for IPv4.
270
+ window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
271
+
272
+ /* eslint-disable react-hooks/exhaustive-deps */
273
+ function useAsyncEffect(effect, inputs) {
274
+ useEffect(function () {
275
+ let mounted = true;
276
+ const promise = effect(() => {
277
+ return mounted;
278
+ });
279
+ Promise.resolve(promise).then((callback) => {
280
+ if (callback) {
281
+ callback === null || callback === void 0 ? void 0 : callback();
282
+ }
283
+ });
284
+ return function () {
285
+ mounted = false;
286
+ };
287
+ }, inputs !== null && inputs !== void 0 ? inputs : []);
288
+ }
289
+
290
+ let logProfiling = false;
291
+ const enableProfileLogging = (enabled) => {
292
+ logProfiling = enabled;
293
+ };
294
+ const profileResults = [];
295
+ const profileBlock = async (name, closure) => {
296
+ const startTime = Date.now();
297
+ await closure();
298
+ const endTime = Date.now();
299
+ profileResults.push({ endTime, name, startTime });
300
+ if (logProfiling) {
301
+ console.log(`Timed ${name} [${endTime - startTime}ms]`);
302
+ }
303
+ };
304
+
305
+ const getLocalStorageObject = (key, log) => {
306
+ var _a;
307
+ let result = {};
308
+ try {
309
+ result = JSON.parse((_a = localStorage.getItem(key)) !== null && _a !== void 0 ? _a : '{}');
310
+ }
311
+ catch (e) {
312
+ log === null || log === void 0 ? void 0 : log.error('getLocalStorageObject', e);
313
+ }
314
+ return result;
315
+ };
316
+ const setLocalStorageObject = (key, value, log) => {
317
+ try {
318
+ localStorage.setItem(key, JSON.stringify(value));
319
+ }
320
+ catch (e) {
321
+ log === null || log === void 0 ? void 0 : log.error('setLocalStorageObject', e);
322
+ }
323
+ };
324
+
325
+ const getSessionStorageObject = (key, log) => {
326
+ var _a;
327
+ let result = {};
328
+ try {
329
+ result = JSON.parse((_a = sessionStorage.getItem(key)) !== null && _a !== void 0 ? _a : '{}');
330
+ }
331
+ catch (e) {
332
+ log === null || log === void 0 ? void 0 : log.error('getSessionStorageObject', e);
333
+ }
334
+ return result;
335
+ };
336
+ const setSessionStorageObject = (key, value, log) => {
337
+ try {
338
+ sessionStorage.setItem(key, JSON.stringify(value));
339
+ }
340
+ catch (e) {
341
+ log === null || log === void 0 ? void 0 : log.error('setSessionStorageObject', e);
342
+ }
343
+ };
344
+
345
+ class Referrer {
346
+ constructor() {
347
+ var _a, _b;
348
+ this.session = (_a = this.getFromSession()) !== null && _a !== void 0 ? _a : document.referrer;
349
+ sessionStorage.setItem(Referrer.storageId, this.session);
350
+ this.local = (_b = this.getFromLocal()) !== null && _b !== void 0 ? _b : document.referrer;
351
+ localStorage.setItem(Referrer.storageId, this.local);
352
+ }
353
+ getFromLocal() {
354
+ const value = localStorage.getItem(Referrer.storageId);
355
+ if (value && value.length > 0) {
356
+ return value;
357
+ }
358
+ }
359
+ getFromSession() {
360
+ const value = sessionStorage.getItem(Referrer.storageId);
361
+ if (value && value.length > 0) {
362
+ return value;
363
+ }
364
+ }
365
+ toJson() {
366
+ if ((this.local && this.local.length > 0) || (this.session && this.session.length > 0)) {
367
+ return {
368
+ local: this.local,
369
+ session: this.session,
370
+ };
371
+ }
372
+ }
373
+ }
374
+ Referrer.storageId = '_coin_referrer';
375
+
376
+ class XyoUserEventHandler extends UserEventHandler {
377
+ constructor(handlers = []) {
378
+ super();
379
+ this.handlers = handlers;
380
+ }
381
+ async testStarted(data) {
382
+ await Promise.allSettled(this.handlers.map((handler) => handler.testStarted(data)));
383
+ }
384
+ async funnelStarted(data) {
385
+ await Promise.allSettled(this.handlers.map((handler) => handler.funnelStarted(data)));
386
+ }
387
+ async viewContent(data) {
388
+ await Promise.allSettled(this.handlers.map((handler) => handler.viewContent(data)));
389
+ }
390
+ async userClick(data) {
391
+ await Promise.allSettled(this.handlers.map((handler) => handler.userClick(data)));
392
+ }
393
+ }
394
+
395
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
396
+ const global = window;
397
+
398
+ class DripBaseEvent {
399
+ constructor(name, param) {
400
+ this.name = name;
401
+ this.param = param;
402
+ this.dcq = this.getDcq();
403
+ this.dcs = this.getDcs();
404
+ }
405
+ async send(data) {
406
+ const payload = [this.name];
407
+ if (this.param) {
408
+ payload.push(this.param);
409
+ }
410
+ payload.push(data);
411
+ this.dcq.push(payload);
412
+ await delay(0);
413
+ }
414
+ getDcq() {
415
+ if (!global._dcq) {
416
+ throw Error('DCQ not found');
417
+ }
418
+ return global._dcq;
419
+ }
420
+ getDcs() {
421
+ if (!global._dcs) {
422
+ throw Error('DCS not found');
423
+ }
424
+ return global._dcs;
425
+ }
426
+ }
427
+
428
+ class DripCustomEvent extends DripBaseEvent {
429
+ }
430
+
431
+ class DripStandardEvents {
432
+ identify() {
433
+ return new DripBaseEvent('identify');
434
+ }
435
+ }
436
+
437
+ class Fbq {
438
+ constructor(pixelId) {
439
+ this.pixelId = pixelId;
440
+ this.fbq = function () {
441
+ // eslint-disable-next-line prefer-rest-params,prefer-spread
442
+ this.fbq.callMethod ? this.fbq.callMethod.apply(this.fbq, arguments) : this.fbq.queue.push(arguments);
443
+ };
444
+ this.fbq.push = this.fbq;
445
+ this.fbq.loaded = true;
446
+ this.fbq.version = '2.0';
447
+ this.fbq.queue = [];
448
+ //we have to set these to globals because that is where the facebook script looks for them
449
+ global.fbq = this.fbq;
450
+ global._fbq = this.fbq;
451
+ this.fbq('init', pixelId);
452
+ this.fbq('track', 'PageView');
453
+ }
454
+ static init(pixelId) {
455
+ if (!this.instance) {
456
+ this.instance = new Fbq(pixelId);
457
+ }
458
+ return this.instance;
459
+ }
460
+ async track(event, data) {
461
+ this.fbq('track', event, Object.assign({}, data));
462
+ await delay(0);
463
+ }
464
+ async trackCustom(event, data) {
465
+ this.fbq('trackCustom', event, Object.assign({}, data));
466
+ await delay(0);
467
+ }
468
+ }
469
+
470
+ class FacebookBaseEvent {
471
+ constructor(name) {
472
+ this.name = name;
473
+ this.fbq = assertEx(Fbq.instance, 'Missing Fbq');
474
+ }
475
+ async send(_data) {
476
+ await delay(0); //force async to increase reporting odds
477
+ }
478
+ }
479
+
480
+ class FacebookCustomEvent extends FacebookBaseEvent {
481
+ async send(data) {
482
+ this.fbq.trackCustom(this.name, data);
483
+ await delay(0); //force async to increase reporting odds
484
+ }
485
+ }
486
+
487
+ class FacebookStandardEvent extends FacebookBaseEvent {
488
+ async send(data) {
489
+ this.fbq.track(this.name, data);
490
+ await delay(0); //force async to increase reporting odds
491
+ }
492
+ }
493
+
494
+ class FacebookStandardEvents {
495
+ addPaymentInfo() {
496
+ return new FacebookStandardEvent('AddPaymentInfo');
497
+ }
498
+ addToCart() {
499
+ return new FacebookStandardEvent('AddToCart');
500
+ }
501
+ addToWishList() {
502
+ return new FacebookStandardEvent('AddToWishList');
503
+ }
504
+ completedRegistration() {
505
+ return new FacebookStandardEvent('CompleteRegistration');
506
+ }
507
+ contact() {
508
+ return new FacebookStandardEvent('Contact');
509
+ }
510
+ customizeProduct() {
511
+ return new FacebookStandardEvent('CustomizeProduct');
512
+ }
513
+ donate() {
514
+ return new FacebookStandardEvent('Donate');
515
+ }
516
+ findLocation() {
517
+ return new FacebookStandardEvent('FindLocation');
518
+ }
519
+ initiateCheckout() {
520
+ return new FacebookStandardEvent('InitiateCheckout');
521
+ }
522
+ lead() {
523
+ return new FacebookStandardEvent('Lead');
524
+ }
525
+ pageView() {
526
+ return new FacebookStandardEvent('PageView');
527
+ }
528
+ purchase() {
529
+ return new FacebookStandardEvent('Purchase');
530
+ }
531
+ schedule() {
532
+ return new FacebookStandardEvent('Schedule');
533
+ }
534
+ search() {
535
+ return new FacebookStandardEvent('Search');
536
+ }
537
+ startTrial() {
538
+ return new FacebookStandardEvent('StartTrial');
539
+ }
540
+ submitApplication() {
541
+ return new FacebookStandardEvent('SubmitApplication');
542
+ }
543
+ subscribe() {
544
+ return new FacebookStandardEvent('Subscribe');
545
+ }
546
+ viewContent() {
547
+ return new FacebookStandardEvent('ViewContent');
548
+ }
549
+ }
550
+
551
+ class Gtag {
552
+ constructor(ga4id, awid, domains) {
553
+ var _a, _b;
554
+ this.ga4id = ga4id;
555
+ this.awid = awid;
556
+ this.domains = domains;
557
+ global.dataLayer = global.dataLayer || [];
558
+ this.gtag = function () {
559
+ // eslint-disable-next-line prefer-rest-params
560
+ global.dataLayer.push(arguments);
561
+ };
562
+ global.gtag = this.gtag;
563
+ this.gtag('js', new Date());
564
+ this.gtag('config', ga4id);
565
+ //this.gtag('config', awid) - this is configured in the Data Stream in Google Analytics
566
+ const parsedQueryString = parse(document.location.search);
567
+ //we handle the utm_referrer here incase a referrer was forwarded (special.coinapp.co does this)
568
+ sessionStorage.setItem('initialReferrer', decodeURIComponent((_b = (_a = parsedQueryString['utm_referrer']) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : document.referrer));
569
+ delete parsedQueryString['utm_referrer'];
570
+ const remainingSearch = parsedQueryString ? stringify(parsedQueryString) : '';
571
+ sessionStorage.setItem('initialQuery', remainingSearch);
572
+ sessionStorage.setItem('initialPage', document.location.href);
573
+ }
574
+ updatePagePath(page_path) {
575
+ const ga4id = assertEx(this.ga4id, 'Missing GA4ID');
576
+ const pathOnly = page_path.split('?')[0];
577
+ const search = Gtag.getInitialQuery();
578
+ this.gtag('config', ga4id, { page_path: `${pathOnly}${search}` });
579
+ }
580
+ //
581
+ static getInitialQuery() {
582
+ return sessionStorage.getItem('initialQuery') || '';
583
+ }
584
+ static getInitialPage() {
585
+ return sessionStorage.getItem('initialPage') || '';
586
+ }
587
+ static getInitialReferrer() {
588
+ return sessionStorage.getItem('initialReferrer') || '';
589
+ }
590
+ static clearDataLayer() {
591
+ const dataLayer = global.dataLayer;
592
+ dataLayer.length = 0;
593
+ }
594
+ static init(ga4id, awid, domains) {
595
+ if (!this.instance) {
596
+ return this.reinit(ga4id, awid, domains);
597
+ }
598
+ return this.instance;
599
+ }
600
+ static reinit(ga4id, awid, domains) {
601
+ this.instance = new Gtag(ga4id, awid, domains);
602
+ return this.instance;
603
+ }
604
+ static updatePagePath(page_path) {
605
+ const instance = assertEx(this.instance, 'Not initialized');
606
+ return instance.updatePagePath(page_path);
607
+ }
608
+ sendAnalytics(event, data) {
609
+ return new Promise((resolve) => {
610
+ this.gtag('event', event, Object.assign(Object.assign({}, data), { event_callback: () => {
611
+ resolve();
612
+ }, event_timeout: 2000, page_location: Gtag.getInitialPage(), page_referrer: Gtag.getInitialReferrer(), send_to: this.ga4id }));
613
+ });
614
+ }
615
+ sendAdwords(event, data) {
616
+ return new Promise((resolve) => {
617
+ this.gtag('event', 'conversion', Object.assign(Object.assign({}, data), { event_callback: () => {
618
+ resolve();
619
+ }, event_timeout: 2000, send_to: `${this.awid}/${event}` }));
620
+ });
621
+ }
622
+ }
623
+
624
+ class Gtm {
625
+ constructor(containerId) {
626
+ this.containerId = containerId;
627
+ const global = window;
628
+ global.dataLayer = global.dataLayer || [];
629
+ global.dataLayer.push({ event: 'gtm.js', 'gtm.start': new Date().getTime() });
630
+ }
631
+ static getInitialQuery() {
632
+ return sessionStorage.getItem('initialQuery') || '';
633
+ }
634
+ static clearDataLayer() {
635
+ const global = window;
636
+ const dataLayer = global.dataLayer;
637
+ dataLayer.length = 0;
638
+ }
639
+ static init(containerId) {
640
+ if (!this.instance) {
641
+ this.instance = new Gtm(containerId);
642
+ }
643
+ return this.instance;
644
+ }
645
+ send(event, data, eventTimeout = 500) {
646
+ return new Promise((resolve) => {
647
+ var _a;
648
+ const global = window;
649
+ (_a = global.dataLayer) === null || _a === void 0 ? void 0 : _a.push(Object.assign(Object.assign({ event }, data), { eventCallback: () => {
650
+ resolve();
651
+ }, eventTimeout }));
652
+ });
653
+ }
654
+ }
655
+
656
+ class GoogleBaseEvent {
657
+ constructor(name, adwordConversionId) {
658
+ this.name = name;
659
+ this.adwordConversionId = adwordConversionId;
660
+ }
661
+ async send(data) {
662
+ return await this.sendGtag(data);
663
+ }
664
+ async sendGtag(data) {
665
+ await this.gtag().sendAnalytics(this.name, data);
666
+ if (this.adwordConversionId) {
667
+ await this.gtag().sendAdwords(this.adwordConversionId, data);
668
+ }
669
+ }
670
+ async sendGtm(data) {
671
+ await this.gtm().send(this.name, data);
672
+ }
673
+ gtag() {
674
+ return assertEx(Gtag.instance, 'Missing/uninitialized gtag');
675
+ }
676
+ gtm() {
677
+ return assertEx(Gtm.instance, 'Missing/uninitialized gtm');
678
+ }
679
+ }
680
+
681
+ class GoogleCustomEvent extends GoogleBaseEvent {
682
+ }
683
+
684
+ class GoogleUserEventHandler {
685
+ async testStarted(data) {
686
+ const event = new GoogleCustomEvent('TestStarted');
687
+ return await event.send(data);
688
+ }
689
+ async funnelStarted(data) {
690
+ const event = new GoogleCustomEvent('FunnelStarted');
691
+ return await event.send(data);
692
+ }
693
+ async viewContent(data) {
694
+ const event = new GoogleCustomEvent('ViewContent');
695
+ return await event.send(data);
696
+ }
697
+ async userClick(data) {
698
+ const event = new GoogleCustomEvent('UserClick');
699
+ return await event.send(data);
700
+ }
701
+ }
702
+
703
+ class GoogleStandardEvent extends GoogleBaseEvent {
704
+ }
705
+
706
+ class GoogleStandardEvents {
707
+ addPaymentInfo() {
708
+ return new GoogleStandardEvent('add_paymennt_info');
709
+ }
710
+ addShippingInfo() {
711
+ return new GoogleStandardEvent('add_shipping_info');
712
+ }
713
+ addToCart() {
714
+ return new GoogleStandardEvent('add_to_cart');
715
+ }
716
+ addToWishList() {
717
+ return new GoogleStandardEvent('add_to_wishlist');
718
+ }
719
+ beginCheckout() {
720
+ return new GoogleStandardEvent('begin_checkout');
721
+ }
722
+ earnVirtualCurrency() {
723
+ return new GoogleStandardEvent('earn_virtual_currency');
724
+ }
725
+ generateLead() {
726
+ return new GoogleStandardEvent('generate_lead');
727
+ }
728
+ joinGroup() {
729
+ return new GoogleStandardEvent('join_group');
730
+ }
731
+ levelEnd() {
732
+ return new GoogleStandardEvent('level_end');
733
+ }
734
+ levelStart() {
735
+ return new GoogleStandardEvent('level_start');
736
+ }
737
+ levelUp() {
738
+ return new GoogleStandardEvent('level_up');
739
+ }
740
+ login() {
741
+ return new GoogleStandardEvent('login');
742
+ }
743
+ postScore() {
744
+ return new GoogleStandardEvent('post_score');
745
+ }
746
+ purchase() {
747
+ return new GoogleStandardEvent('purchase');
748
+ }
749
+ refund() {
750
+ return new GoogleStandardEvent('refund');
751
+ }
752
+ removeFromCart() {
753
+ return new GoogleStandardEvent('remove_from_cart');
754
+ }
755
+ search() {
756
+ return new GoogleStandardEvent('search');
757
+ }
758
+ selectContent() {
759
+ return new GoogleStandardEvent('select_content');
760
+ }
761
+ selectItem() {
762
+ return new GoogleStandardEvent('select_item');
763
+ }
764
+ selectPromotion() {
765
+ return new GoogleStandardEvent('select_promotion');
766
+ }
767
+ share() {
768
+ return new GoogleStandardEvent('share');
769
+ }
770
+ signUp() {
771
+ return new GoogleStandardEvent('sign_up');
772
+ }
773
+ spendVirtualCurrency() {
774
+ return new GoogleStandardEvent('spend_virtual_currency');
775
+ }
776
+ tutorialBegin() {
777
+ return new GoogleStandardEvent('tutorial_begin');
778
+ }
779
+ tutorialComplete() {
780
+ return new GoogleStandardEvent('tutorial_complete');
781
+ }
782
+ unlockAchievement() {
783
+ return new GoogleStandardEvent('unlock_achievement');
784
+ }
785
+ viewCart() {
786
+ return new GoogleStandardEvent('view_cart');
787
+ }
788
+ viewItem() {
789
+ return new GoogleStandardEvent('view_item');
790
+ }
791
+ viewItemList() {
792
+ return new GoogleStandardEvent('view_item_list');
793
+ }
794
+ viewPromotion() {
795
+ return new GoogleStandardEvent('view_promotion');
796
+ }
797
+ }
798
+
799
+ class Rdt {
800
+ static init(pixelId) {
801
+ try {
802
+ Rdt.instance = new Rdt();
803
+ Rdt.instance.load(pixelId);
804
+ Rdt.instance.track('PageVisit');
805
+ }
806
+ catch (ex) {
807
+ console.error(ex);
808
+ }
809
+ }
810
+ static getRdt() {
811
+ return global.rdt;
812
+ }
813
+ load(id) {
814
+ try {
815
+ Rdt.getRdt()('init', id);
816
+ }
817
+ catch (ex) {
818
+ console.error(ex);
819
+ }
820
+ }
821
+ async track(event, data) {
822
+ try {
823
+ Rdt.getRdt()('track', event, Object.assign({}, data));
824
+ await delay(0);
825
+ }
826
+ catch (ex) {
827
+ console.error(ex);
828
+ }
829
+ }
830
+ }
831
+
832
+ class RedditBaseEvent {
833
+ constructor(name) {
834
+ this.name = name;
835
+ this.rdt = assertEx(Rdt.instance, 'Missing Rdt');
836
+ }
837
+ async send(_data) {
838
+ await delay(0); //force async to increase reporting odds
839
+ }
840
+ }
841
+
842
+ class RedditCustomEvent extends RedditBaseEvent {
843
+ async send(data) {
844
+ this.rdt.track(this.name, data);
845
+ await delay(0); //force async to increase reporting odds
846
+ }
847
+ }
848
+
849
+ class RedditStandardEvent extends RedditBaseEvent {
850
+ async send(data) {
851
+ this.rdt.track(this.name, data);
852
+ await delay(0); //force async to increase reporting odds
853
+ }
854
+ }
855
+
856
+ class RedditStandardEvents {
857
+ pageView() {
858
+ return new RedditStandardEvent('PageView');
859
+ }
860
+ viewContent() {
861
+ return new RedditStandardEvent('ViewContent');
862
+ }
863
+ addToCart() {
864
+ return new RedditStandardEvent('AddToCart');
865
+ }
866
+ addToWishlist() {
867
+ return new RedditStandardEvent('AddToWishlist');
868
+ }
869
+ purchase() {
870
+ return new RedditStandardEvent('Purchase');
871
+ }
872
+ signup() {
873
+ return new RedditStandardEvent('SignUp');
874
+ }
875
+ lead() {
876
+ return new RedditStandardEvent('Lead');
877
+ }
878
+ search() {
879
+ return new RedditStandardEvent('Search');
880
+ }
881
+ }
882
+
883
+ class SnapTr {
884
+ static getSnapTr() {
885
+ return global.snaptr;
886
+ }
887
+ static init(pixelId) {
888
+ this.pixelId = pixelId;
889
+ this.track('PAGE_VIEW');
890
+ }
891
+ static async track(event, data) {
892
+ this.getSnapTr()('init', this.pixelId);
893
+ this.getSnapTr()('track', event, data);
894
+ await delay(0);
895
+ }
896
+ }
897
+
898
+ class SnapchatBaseEvent {
899
+ constructor(name) {
900
+ this.name = name;
901
+ }
902
+ async send(_data) {
903
+ await delay(0); //force async to increase reporting odds
904
+ }
905
+ }
906
+
907
+ class SnapchatStandardEvent extends SnapchatBaseEvent {
908
+ async send(data) {
909
+ await SnapTr.track(this.name, data);
910
+ }
911
+ }
912
+
913
+ class SnapchatStandardEvents {
914
+ pageView() {
915
+ return new SnapchatStandardEvent('PAGE_VIEW');
916
+ }
917
+ signUp() {
918
+ return new SnapchatStandardEvent('SIGN_UP');
919
+ }
920
+ purchase() {
921
+ return new SnapchatStandardEvent('PURCHASE');
922
+ }
923
+ save() {
924
+ return new SnapchatStandardEvent('SAVE');
925
+ }
926
+ startCheckout() {
927
+ return new SnapchatStandardEvent('START_CHECKOUT');
928
+ }
929
+ addCart() {
930
+ return new SnapchatStandardEvent('ADD_CART');
931
+ }
932
+ openApp() {
933
+ return new SnapchatStandardEvent('OPEN_APP');
934
+ }
935
+ viewContent() {
936
+ return new SnapchatStandardEvent('VIEW_CONTENT');
937
+ }
938
+ addBilling() {
939
+ return new SnapchatStandardEvent('ADD_BILLING');
940
+ }
941
+ search() {
942
+ return new SnapchatStandardEvent('SEARCH');
943
+ }
944
+ subscribe() {
945
+ return new SnapchatStandardEvent('SUBSCRIBE');
946
+ }
947
+ adClick() {
948
+ return new SnapchatStandardEvent('AD_CLICK');
949
+ }
950
+ adView() {
951
+ return new SnapchatStandardEvent('AD_VIEW');
952
+ }
953
+ completeTutorial() {
954
+ return new SnapchatStandardEvent('COMPLETE_TUTORIAL');
955
+ }
956
+ invite() {
957
+ return new SnapchatStandardEvent('INVITE');
958
+ }
959
+ login() {
960
+ return new SnapchatStandardEvent('LOGIN');
961
+ }
962
+ share() {
963
+ return new SnapchatStandardEvent('SHARE');
964
+ }
965
+ reserve() {
966
+ return new SnapchatStandardEvent('RESERVE');
967
+ }
968
+ achievementUnlocked() {
969
+ return new SnapchatStandardEvent('ACHIEVEMENT_UNLOCKED');
970
+ }
971
+ addToWishlist() {
972
+ return new SnapchatStandardEvent('ADD_TO_WISHLIST');
973
+ }
974
+ spentCredits() {
975
+ return new SnapchatStandardEvent('SPENT_CREDITS');
976
+ }
977
+ rate() {
978
+ return new SnapchatStandardEvent('RATE');
979
+ }
980
+ startTrial() {
981
+ return new SnapchatStandardEvent('START_TRIAL');
982
+ }
983
+ listView() {
984
+ return new SnapchatStandardEvent('LIST_VIEW');
985
+ }
986
+ custom1() {
987
+ return new SnapchatStandardEvent('CUSTOM_EVENT_1');
988
+ }
989
+ custom2() {
990
+ return new SnapchatStandardEvent('CUSTOM_EVENT_2');
991
+ }
992
+ custom3() {
993
+ return new SnapchatStandardEvent('CUSTOM_EVENT_3');
994
+ }
995
+ custom4() {
996
+ return new SnapchatStandardEvent('CUSTOM_EVENT_4');
997
+ }
998
+ custom5() {
999
+ return new SnapchatStandardEvent('CUSTOM_EVENT_5');
1000
+ }
1001
+ }
1002
+
1003
+ class Ttq {
1004
+ static init(pixelId) {
1005
+ try {
1006
+ Ttq.instance = new Ttq();
1007
+ Ttq.getTtq().load(pixelId);
1008
+ Ttq.page();
1009
+ }
1010
+ catch (ex) {
1011
+ console.error(`Ttq.init: ${ex}`);
1012
+ }
1013
+ }
1014
+ static getTtq() {
1015
+ return global.ttq;
1016
+ }
1017
+ static async page() {
1018
+ try {
1019
+ Ttq.getTtq().page();
1020
+ await delay(0);
1021
+ }
1022
+ catch (ex) {
1023
+ console.error(`Ttq.page: ${ex}`);
1024
+ }
1025
+ }
1026
+ async track(event, data) {
1027
+ try {
1028
+ Ttq.getTtq().track(event, Object.assign({}, data));
1029
+ await delay(0);
1030
+ }
1031
+ catch (ex) {
1032
+ console.error(`Ttq.track: ${ex}`);
1033
+ }
1034
+ }
1035
+ }
1036
+
1037
+ class TiktokBaseEvent {
1038
+ constructor(name) {
1039
+ this.name = name;
1040
+ this.ttq = assertEx(Ttq.instance, 'Missing Ttq');
1041
+ }
1042
+ async send(_data) {
1043
+ await delay(0); //force async to increase reporting odds
1044
+ }
1045
+ }
1046
+
1047
+ class TiktokCustomEvent extends TiktokBaseEvent {
1048
+ async send(data) {
1049
+ this.ttq.track(this.name, data);
1050
+ await delay(0); //force async to increase reporting odds
1051
+ }
1052
+ }
1053
+
1054
+ class TiktokStandardEvent extends TiktokBaseEvent {
1055
+ async send(data) {
1056
+ this.ttq.track(this.name, data);
1057
+ await delay(0); //force async to increase reporting odds
1058
+ }
1059
+ }
1060
+
1061
+ class TiktokStandardEvents {
1062
+ pageView() {
1063
+ return new TiktokStandardEvent('Browse');
1064
+ }
1065
+ viewContent() {
1066
+ return new TiktokStandardEvent('ViewContent');
1067
+ }
1068
+ addToCart() {
1069
+ return new TiktokStandardEvent('AddToCart');
1070
+ }
1071
+ checkout() {
1072
+ return new TiktokStandardEvent('Checkout');
1073
+ }
1074
+ purchase() {
1075
+ return new TiktokStandardEvent('Purchase');
1076
+ }
1077
+ registration() {
1078
+ return new TiktokStandardEvent('Registration');
1079
+ }
1080
+ startCheckout() {
1081
+ return new TiktokStandardEvent('StartCheckout');
1082
+ }
1083
+ addBilling() {
1084
+ return new TiktokStandardEvent('AddBilling');
1085
+ }
1086
+ search() {
1087
+ return new TiktokStandardEvent('Search');
1088
+ }
1089
+ viewForm() {
1090
+ return new TiktokStandardEvent('ViewForm');
1091
+ }
1092
+ clickForm() {
1093
+ return new TiktokStandardEvent('ClickForm');
1094
+ }
1095
+ submitForm() {
1096
+ return new TiktokStandardEvent('SubmitForm');
1097
+ }
1098
+ viewDownloadPage() {
1099
+ return new TiktokStandardEvent('ViewDownloadPage');
1100
+ }
1101
+ clickInDownloadPage() {
1102
+ return new TiktokStandardEvent('ClickInDownloadPage');
1103
+ }
1104
+ clickToDownload() {
1105
+ return new TiktokStandardEvent('ClickToDownload');
1106
+ }
1107
+ clickButton() {
1108
+ return new TiktokStandardEvent('ClickButton');
1109
+ }
1110
+ }
1111
+
1112
+ class XyBaseEvent {
1113
+ constructor(name) {
1114
+ this.name = name;
1115
+ }
1116
+ async send(fields) {
1117
+ await XyPixel.instance.send(this.name, fields);
1118
+ }
1119
+ }
1120
+
1121
+ class XyCustomEvent extends XyBaseEvent {
1122
+ }
1123
+
1124
+ class XyUserEventHandler {
1125
+ async testStarted(data) {
1126
+ const event = new XyCustomEvent('TestStarted');
1127
+ return await event.send(data);
1128
+ }
1129
+ async funnelStarted(data) {
1130
+ const event = new XyCustomEvent('FunnelStarted');
1131
+ return await event.send(data);
1132
+ }
1133
+ async viewContent(data) {
1134
+ const event = new XyCustomEvent('ViewContent');
1135
+ return await event.send(data);
1136
+ }
1137
+ async userClick(data) {
1138
+ const event = new XyCustomEvent('UserClick');
1139
+ return await event.send(data);
1140
+ }
1141
+ }
1142
+
1143
+ const MetaMaskEthersLoader = (props) => {
1144
+ const { children, enabled = true } = props;
1145
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1146
+ const global = window;
1147
+ const ethereum = global.ethereum;
1148
+ const [error, setError] = useState();
1149
+ const [localAddress, setLocalAddress] = useState();
1150
+ const [resetCount, setResetCount] = useState(0);
1151
+ const [providerName, setProviderName] = useState();
1152
+ if (ethereum) {
1153
+ ethereum.autoRefreshOnNetworkChange = false;
1154
+ }
1155
+ const connect = async () => {
1156
+ var _a;
1157
+ await ((_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.enable());
1158
+ return localAddress ? [localAddress.toString()] : [];
1159
+ };
1160
+ const [isConnected, setIsConnected] = useState();
1161
+ useEffect(() => {
1162
+ if (ethereum && enabled) {
1163
+ ethereum.on('accountsChanged', (accounts) => {
1164
+ console.log(`accountsChanged: ${JSON.stringify(accounts)}`);
1165
+ setResetCount(resetCount + 1);
1166
+ if (accounts.length > 0) {
1167
+ setLocalAddress(EthAddress.fromString(accounts[0]));
1168
+ }
1169
+ else {
1170
+ setLocalAddress(undefined);
1171
+ }
1172
+ });
1173
+ ethereum.on('chainChanged', (chainId) => {
1174
+ setResetCount(resetCount + 1);
1175
+ if (chainId) {
1176
+ setChainId(parseInt(chainId));
1177
+ }
1178
+ else {
1179
+ setChainId(undefined);
1180
+ }
1181
+ });
1182
+ }
1183
+ }, [ethereum, resetCount, enabled]);
1184
+ const [walletProvider, setWalletProvider] = useState();
1185
+ const [provider, setProvider] = useState();
1186
+ const [signer, setSigner] = useState();
1187
+ useEffect(() => {
1188
+ if (enabled) {
1189
+ const walletProvider = ethereum ? new Web3Provider(ethereum) : null;
1190
+ let provider = null;
1191
+ let providerName = null;
1192
+ if (walletProvider) {
1193
+ provider = walletProvider;
1194
+ providerName = 'Meta Mask';
1195
+ }
1196
+ else {
1197
+ provider = new InfuraProvider(1, infuraKey);
1198
+ providerName = 'Infura (Default)';
1199
+ }
1200
+ provider = walletProvider !== null && walletProvider !== void 0 ? walletProvider : provider;
1201
+ setProvider(provider);
1202
+ setProviderName(providerName);
1203
+ setWalletProvider(walletProvider);
1204
+ let signer = null;
1205
+ try {
1206
+ signer = walletProvider === null || walletProvider === void 0 ? void 0 : walletProvider.getSigner();
1207
+ }
1208
+ catch (ex) {
1209
+ console.error(ex);
1210
+ }
1211
+ setSigner(signer);
1212
+ }
1213
+ }, [ethereum, isConnected, enabled]);
1214
+ useAsyncEffect(async (isMounted) => {
1215
+ if (signer && enabled) {
1216
+ try {
1217
+ const localAddress = EthAddress.fromString(await signer.getAddress());
1218
+ console.log(`Setting Local Address: ${localAddress}`);
1219
+ if (isMounted()) {
1220
+ setLocalAddress(localAddress);
1221
+ setIsConnected(true);
1222
+ }
1223
+ }
1224
+ catch (ex) {
1225
+ if (isMounted()) {
1226
+ setError(Error(`localAddress: ${ex}`));
1227
+ setLocalAddress(undefined);
1228
+ setIsConnected(false);
1229
+ }
1230
+ }
1231
+ }
1232
+ }, [signer, resetCount, enabled]);
1233
+ const [chainId, setChainId] = useState();
1234
+ useAsyncEffect(async (isMounted) => {
1235
+ var _a;
1236
+ if (enabled) {
1237
+ const chainId = (_a = (await (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _a === void 0 ? void 0 : _a.chainId;
1238
+ if (!isMounted())
1239
+ return;
1240
+ setChainId(chainId);
1241
+ }
1242
+ }, [provider, enabled]);
1243
+ return (jsx(EthersContext.Provider, Object.assign({ value: {
1244
+ busy: false,
1245
+ chainId,
1246
+ connect,
1247
+ error,
1248
+ isConnected,
1249
+ localAddress,
1250
+ provider,
1251
+ providerName,
1252
+ signer: isConnected ? signer : undefined,
1253
+ walletProvider,
1254
+ } }, { children: children }), void 0));
1255
+ };
1256
+
1257
+ const MyEtherWalletEthersLoader = (props) => {
1258
+ const { children } = props;
1259
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1260
+ const global = window;
1261
+ const ethereum = global.ethereum;
1262
+ const [error, setError] = useState();
1263
+ const [localAddress, setLocalAddress] = useState();
1264
+ const [providerName, setProviderName] = useState();
1265
+ if (ethereum) {
1266
+ ethereum.autoRefreshOnNetworkChange = false;
1267
+ }
1268
+ const connect = async () => {
1269
+ var _a;
1270
+ await ((_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.enable());
1271
+ return localAddress ? [localAddress.toString()] : [];
1272
+ };
1273
+ const [isConnected, setIsConnected] = useState();
1274
+ const [walletProvider, setWalletProvider] = useState();
1275
+ const [provider, setProvider] = useState();
1276
+ const [signer, setSigner] = useState();
1277
+ useEffect(() => {
1278
+ const walletProvider = ethereum ? new Web3Provider(ethereum) : null;
1279
+ let provider = null;
1280
+ let providerName = null;
1281
+ if (walletProvider) {
1282
+ provider = walletProvider;
1283
+ providerName = 'MyEtherWallet';
1284
+ }
1285
+ else {
1286
+ provider = new InfuraProvider(1, infuraKey);
1287
+ providerName = 'Infura (Default)';
1288
+ }
1289
+ setProvider(provider);
1290
+ setProviderName(providerName);
1291
+ setWalletProvider(walletProvider);
1292
+ let signer = null;
1293
+ try {
1294
+ signer = walletProvider === null || walletProvider === void 0 ? void 0 : walletProvider.getSigner();
1295
+ }
1296
+ catch (ex) {
1297
+ console.error(ex);
1298
+ }
1299
+ setSigner(signer);
1300
+ }, [ethereum, isConnected]);
1301
+ useAsyncEffect(async (isMounted) => {
1302
+ if (signer) {
1303
+ try {
1304
+ const localAddress = EthAddress.fromString(await signer.getAddress());
1305
+ if (isMounted()) {
1306
+ setLocalAddress(localAddress);
1307
+ setIsConnected(true);
1308
+ }
1309
+ }
1310
+ catch (ex) {
1311
+ if (isMounted()) {
1312
+ setError(Error(`localAddress: ${ex}`));
1313
+ setLocalAddress(undefined);
1314
+ setIsConnected(false);
1315
+ }
1316
+ }
1317
+ }
1318
+ }, [signer]);
1319
+ const [chainId, setChainId] = useState();
1320
+ useAsyncEffect(async (isMounted) => {
1321
+ var _a;
1322
+ const chainId = (_a = (await (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _a === void 0 ? void 0 : _a.chainId;
1323
+ if (!isMounted())
1324
+ return;
1325
+ setChainId(chainId);
1326
+ }, [provider]);
1327
+ return (jsx(EthersContext.Provider, Object.assign({ value: {
1328
+ busy: false,
1329
+ chainId,
1330
+ connect,
1331
+ error,
1332
+ isConnected,
1333
+ localAddress,
1334
+ provider,
1335
+ providerName,
1336
+ signer: isConnected ? signer : undefined,
1337
+ walletProvider,
1338
+ } }, { children: children }), void 0));
1339
+ };
1340
+
1341
+ const OperaEthersLoader = (props) => {
1342
+ var _a, _b, _c, _d, _e, _f;
1343
+ const { children } = props;
1344
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1345
+ const global = window;
1346
+ const ethereum = global.ethereum;
1347
+ const [error, setError] = useState();
1348
+ const [signer, setSigner] = useState();
1349
+ const [provider, setProvider] = useState();
1350
+ const [localAddress, setLocalAddress] = 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 ? EthAddress.fromString((_e = (_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.addresses) === null || _e === void 0 ? void 0 : _e[0]) : null);
1351
+ const chainId = (ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) ? parseInt(ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) : 1;
1352
+ const isConnected = (_f = ethereum === null || ethereum === void 0 ? void 0 : ethereum.isConnected()) !== null && _f !== void 0 ? _f : false;
1353
+ React.useEffect(() => {
1354
+ let cancelled = false;
1355
+ if (ethereum) {
1356
+ ethereum.enable();
1357
+ const operaProvider = new Web3Provider(ethereum);
1358
+ const provider = operaProvider;
1359
+ const signer = operaProvider.getSigner();
1360
+ const load = async () => {
1361
+ try {
1362
+ const localAddress = EthAddress.fromString(await signer.getAddress());
1363
+ ethereum.autoRefreshOnNetworkChange = false;
1364
+ if (!cancelled) {
1365
+ setSigner(signer);
1366
+ setProvider(provider);
1367
+ setLocalAddress(localAddress);
1368
+ }
1369
+ }
1370
+ catch (ex) {
1371
+ if (!cancelled) {
1372
+ setError(Error(`localAddress: ${ex}`));
1373
+ }
1374
+ }
1375
+ };
1376
+ load();
1377
+ }
1378
+ return () => {
1379
+ cancelled = true;
1380
+ };
1381
+ }, [ethereum]);
1382
+ return (jsx(EthersContext.Provider, Object.assign({ value: {
1383
+ busy: false,
1384
+ chainId,
1385
+ error,
1386
+ isConnected,
1387
+ localAddress,
1388
+ provider,
1389
+ signer,
1390
+ } }, { children: children }), void 0));
1391
+ };
1392
+
1393
+ const TrustEthersLoader = (props) => {
1394
+ const { children } = props;
1395
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1396
+ const global = window;
1397
+ const [error, setError] = useState();
1398
+ const [localAddress, setLocalAddress] = useState();
1399
+ const trustProvider = new Web3Provider(global.ethereum);
1400
+ const signer = trustProvider.getSigner();
1401
+ const chainId = 1;
1402
+ const provider = trustProvider;
1403
+ useEffect(() => {
1404
+ let cancelled = false;
1405
+ if (signer) {
1406
+ const load = async () => {
1407
+ try {
1408
+ const localAddress = EthAddress.fromString(await signer.getAddress());
1409
+ if (!cancelled) {
1410
+ setLocalAddress(localAddress);
1411
+ }
1412
+ }
1413
+ catch (ex) {
1414
+ if (!cancelled) {
1415
+ setError(Error(`localAddress: ${ex}`));
1416
+ }
1417
+ }
1418
+ };
1419
+ load();
1420
+ }
1421
+ return () => {
1422
+ cancelled = true;
1423
+ };
1424
+ }, [signer]);
1425
+ return (jsx(EthersContext.Provider, Object.assign({ value: {
1426
+ busy: false,
1427
+ chainId,
1428
+ error,
1429
+ localAddress,
1430
+ provider,
1431
+ signer,
1432
+ } }, { children: children }), void 0));
1433
+ };
1434
+
1435
+ const EthersLoader = (props) => {
1436
+ var _a, _b, _c, _d;
1437
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1438
+ const global = window;
1439
+ const { children } = props;
1440
+ if ((_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.isMetaMask) {
1441
+ return jsx(MetaMaskEthersLoader, { children: children }, void 0);
1442
+ }
1443
+ if ((_b = global.ethereum) === null || _b === void 0 ? void 0 : _b.isTrust) {
1444
+ return jsx(TrustEthersLoader, { children: children }, void 0);
1445
+ }
1446
+ if ((_c = global.ethereum) === null || _c === void 0 ? void 0 : _c.isMew) {
1447
+ return jsx(MyEtherWalletEthersLoader, { children: children }, void 0);
1448
+ }
1449
+ if (((_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.providerName) === 'opera') {
1450
+ return jsx(OperaEthersLoader, { children: children }, void 0);
1451
+ }
1452
+ if (global.ethereum) {
1453
+ return jsx(OperaEthersLoader, { children: children }, void 0);
1454
+ }
1455
+ return jsx(InfuraEthersLoader, { children: children }, void 0);
1456
+ };
1457
+
1458
+ const NetworkSettingsContext = React.createContext({});
1459
+
1460
+ const NetworkSettingsLoader = (props) => {
1461
+ const { children } = props;
1462
+ return (jsx(NetworkSettingsContext.Provider, Object.assign({ value: {
1463
+ xyBondAddress: EthAddress.fromString('0x1a024A698EEBdB86ccf3fCaF2F589839bdc066AD'),
1464
+ xyFhrMerkleSendAddress: EthAddress.fromString('0x46FEEBDffC8076D9E5fd8a11CF1508810472A79f'),
1465
+ xyGovernanceAddress: EthAddress.fromString('0x01925d0fFE4a6a6162B51ba611e3D4780Fc2dF42'),
1466
+ xyStakingConsensusAddress: EthAddress.fromString('0x0242514106114DEaA99Fd81574142c36Edb03B6D'),
1467
+ } }, { children: children }), void 0));
1468
+ };
1469
+
1470
+ const UserEventsContext = React.createContext({});
1471
+
1472
+ const calcSpacing = (theme, values) => {
1473
+ for (let i = 0; i < values.length; i++) {
1474
+ const value = values[i];
1475
+ if (value !== undefined) {
1476
+ if (typeof value === 'string') {
1477
+ return value;
1478
+ }
1479
+ else if (typeof value === 'number') {
1480
+ return theme.spacing(value);
1481
+ }
1482
+ }
1483
+ }
1484
+ };
1485
+
1486
+ const mergeBoxlikeStyles = (theme, props, defaultProps) => {
1487
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { alignContent, alignItems, alignSelf, bgcolor, border, borderColor, display, flexGrow, flexShrink, flexDirection, flexWrap, justifyContent, justifyItems, justifySelf, height, minHeight, minWidth, margin, marginX, marginY, marginTop, marginLeft, marginRight, marginBottom, padding, paddingX, paddingY, paddingTop, paddingLeft, paddingRight, paddingBottom, position, style, width } = _a, rootProps = __rest(_a, ["alignContent", "alignItems", "alignSelf", "bgcolor", "border", "borderColor", "display", "flexGrow", "flexShrink", "flexDirection", "flexWrap", "justifyContent", "justifyItems", "justifySelf", "height", "minHeight", "minWidth", "margin", "marginX", "marginY", "marginTop", "marginLeft", "marginRight", "marginBottom", "padding", "paddingX", "paddingY", "paddingTop", "paddingLeft", "paddingRight", "paddingBottom", "position", "style", "width"]);
1488
+ const mergedStyle = Object.assign({ alignContent,
1489
+ alignItems,
1490
+ alignSelf, backgroundColor: bgcolor, border,
1491
+ borderColor,
1492
+ display,
1493
+ flexDirection,
1494
+ flexGrow,
1495
+ flexShrink,
1496
+ flexWrap,
1497
+ height,
1498
+ justifyContent,
1499
+ justifyItems,
1500
+ justifySelf, marginBottom: calcSpacing(theme, [marginBottom, marginY, margin]), marginLeft: calcSpacing(theme, [marginLeft, marginX, margin]), marginRight: calcSpacing(theme, [marginRight, marginX, margin]), marginTop: calcSpacing(theme, [marginTop, marginY, margin]), minHeight,
1501
+ minWidth, paddingBottom: calcSpacing(theme, [paddingBottom, paddingY, padding]), paddingLeft: calcSpacing(theme, [paddingLeft, paddingX, padding]), paddingRight: calcSpacing(theme, [paddingRight, paddingX, padding]), paddingTop: calcSpacing(theme, [paddingTop, paddingY, padding]), position,
1502
+ width }, style);
1503
+ return Object.assign(Object.assign({}, rootProps), { style: mergedStyle });
1504
+ };
1505
+
1506
+ const ButtonExBase = (props) => {
1507
+ const theme = useTheme();
1508
+ const _a = mergeBoxlikeStyles(theme, props), { busy, busyVariant = 'linear', busyOpacity, onClick, children } = _a, rootProps = __rest(_a, ["busy", "busyVariant", "busyOpacity", "onClick", "children"]);
1509
+ const localOnClick = (event) => {
1510
+ if (!busy) {
1511
+ onClick === null || onClick === void 0 ? void 0 : onClick(event);
1512
+ }
1513
+ };
1514
+ return (jsxs(Button, Object.assign({ onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }, void 0) : null, busy && busyVariant === 'circular' ? (jsx(BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0.5 }, void 0)) : null, children] }), void 0));
1515
+ };
1516
+
1517
+ const ButtonExTo = (_a) => {
1518
+ var { to, toOptions, onClick } = _a, props = __rest(_a, ["to", "toOptions", "onClick"]);
1519
+ const navigate = useNavigate();
1520
+ const localOnClick = (event) => {
1521
+ onClick === null || onClick === void 0 ? void 0 : onClick(event);
1522
+ if (to) {
1523
+ navigate(to, toOptions);
1524
+ }
1525
+ };
1526
+ return jsx(ButtonExBase, Object.assign({ onClick: localOnClick }, props), void 0);
1527
+ };
1528
+
1529
+ const ButtonEx = (_a) => {
1530
+ var { to } = _a, props = __rest(_a, ["to"]);
1531
+ if (to) {
1532
+ return jsx(ButtonExTo, Object.assign({ to: to }, props), void 0);
1533
+ }
1534
+ else {
1535
+ return jsx(ButtonExBase, Object.assign({}, props), void 0);
1536
+ }
1537
+ };
1538
+
1539
+ const CookieConsentBody = (_a) => {
1540
+ var { acceptOnScroll, acceptOnTimer = 0, onAccept } = _a, props = __rest(_a, ["acceptOnScroll", "acceptOnTimer", "onAccept"]);
1541
+ const { accepted, setAccepted, storageName } = useCookieConsent();
1542
+ const onScroll = () => {
1543
+ //hide it one the user has scrolled at least one page
1544
+ if (window.scrollY > window.innerHeight && !accepted) {
1545
+ onAcceptClick();
1546
+ }
1547
+ };
1548
+ useEffect(() => {
1549
+ if (acceptOnScroll) {
1550
+ window.addEventListener('scroll', onScroll);
1551
+ return () => {
1552
+ window.removeEventListener('scroll', onScroll);
1553
+ };
1554
+ }
1555
+ });
1556
+ const onAcceptClick = () => {
1557
+ if (setAccepted) {
1558
+ setAccepted === null || setAccepted === void 0 ? void 0 : setAccepted(true);
1559
+ }
1560
+ else {
1561
+ localStorage.setItem(storageName !== null && storageName !== void 0 ? storageName : 'CookiesAccepted', 'true');
1562
+ }
1563
+ onAccept === null || onAccept === void 0 ? void 0 : onAccept(true);
1564
+ };
1565
+ if (acceptOnTimer > 0 && !accepted) {
1566
+ setTimeout(() => {
1567
+ onAcceptClick();
1568
+ }, acceptOnTimer);
1569
+ }
1570
+ if (!storageName) {
1571
+ return (jsx(FlexRow, Object.assign({ justifyContent: "center", paddingY: 2 }, props, { children: jsx(Typography, Object.assign({ color: "error", variant: "body1" }, { children: "Missing CookieConsentContext" }), void 0) }), void 0));
1572
+ }
1573
+ return accepted ? null : (jsxs(FlexRow, Object.assign({ justifyContent: "space-between" }, props, { children: [jsxs(Typography, Object.assign({ variant: "body2", margin: 2 }, { children: ['This site uses ', jsx(Link, Object.assign({ href: "https://cookiesandyou.com/", rel: "noopener noreferrer", target: "_blank" }, { children: "cookies" }), void 0), ' and ', jsx(Link, Object.assign({ href: "https://policies.google.com/technologies/partner-sites", rel: "noopener noreferrer", target: "_blank" }, { children: "Google\u00A0tools" }), void 0), ' to analyze traffic and for ads measurement purposes.'] }), void 0), jsx(ButtonEx, Object.assign({ variant: "contained", color: "secondary", onClick: onAcceptClick, margin: 2 }, { children: "Accept" }), void 0)] }), void 0));
1574
+ };
1575
+
1576
+ const CookieConsent = (props) => {
1577
+ const { storageName } = useCookieConsent();
1578
+ const Inner = () => {
1579
+ const { accepted } = useCookieConsent();
1580
+ return accepted ? null : (jsx(CookieConsentBody, Object.assign({ background: true, paper: true, position: "fixed", bottom: 0, maxWidth: "100vw", width: "100%", zIndex: 1000 }, props), void 0));
1581
+ };
1582
+ //if not inside a context, make a context
1583
+ if (!storageName) {
1584
+ return (jsx(CookieConsentLoader, { children: jsx(Inner, {}, void 0) }, void 0));
1585
+ }
1586
+ return jsx(Inner, {}, void 0);
1587
+ };
1588
+
1589
+ const InvertableThemeContext = React.createContext({
1590
+ options: {},
1591
+ });
1592
+
1593
+ const InvertableThemeProvider = ({ options, children, dark, scoped = false, invert = false, noResponsiveFonts, }) => {
1594
+ var _a, _b;
1595
+ const contextInvertableTheme = useContext(InvertableThemeContext);
1596
+ const clonedOptions = clone((_a = options !== null && options !== void 0 ? options : contextInvertableTheme.options) !== null && _a !== void 0 ? _a : {});
1597
+ clonedOptions.palette = (_b = clonedOptions.palette) !== null && _b !== void 0 ? _b : {};
1598
+ if (invert) {
1599
+ clonedOptions.palette.mode = clonedOptions.palette.mode === 'dark' ? 'light' : 'dark';
1600
+ }
1601
+ if (dark !== undefined) {
1602
+ clonedOptions.palette.mode = dark ? 'dark' : 'light';
1603
+ }
1604
+ let theme = createTheme(clonedOptions);
1605
+ if (!noResponsiveFonts) {
1606
+ theme = responsiveFontSizes(theme);
1607
+ }
1608
+ return scoped ? (jsx(ScopedCssBaseline, { children: jsx(InvertableThemeContext.Provider, Object.assign({ value: { options: clonedOptions } }, { children: jsx(ThemeProvider, Object.assign({ theme: theme }, { children: children }), void 0) }), void 0) }, void 0)) : (jsx(InvertableThemeContext.Provider, Object.assign({ value: { options: clonedOptions } }, { children: jsx(ThemeProvider, Object.assign({ theme: theme }, { children: children }), void 0) }), void 0));
1609
+ };
1610
+
1611
+ const BasePage = (_a) => {
1612
+ 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"]);
1613
+ const theme = useTheme();
1614
+ const scrollToTopAnchorId = 'scroll-to-top-anchor';
1615
+ return (jsxs(FlexCol, Object.assign({ justifyContent: "flex-start", color: theme.palette.text.primary, alignItems: "stretch", width: "100%", maxWidth: "100vw", minHeight: "100vh" }, props, { children: [jsx(Helmet, Object.assign({ title: title }, { children: noindex ? jsx("meta", { content: "noindex", name: "robots" }, void 0) : null }), void 0), scrollToTopButton ? jsx("div", { id: scrollToTopAnchorId }, void 0) : null, hideAppBar ? null : appBar, beta ? (jsx(FlexRow, Object.assign({ margin: 1, position: "absolute", top: 0, left: 0, bgcolor: "#cccccc88", paddingX: 1, style: { opacity: 0.5 } }, { children: jsx(Typography, Object.assign({ variant: "body2" }, { children: "Important: This page is a Beta page. It is possible that some information may not be correct." }), void 0) }), void 0)) : null, container ? (jsx(Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1 }, maxWidth: container, disableGutters: disableGutters }, { children: children }), void 0)) : (children), hideFooter ? null : jsx("footer", { children: appFooter }, void 0), cookieConsent !== null && cookieConsent !== void 0 ? cookieConsent : (jsx(ScopedCssBaseline, { children: jsx(InvertableThemeProvider, Object.assign({ invert: true }, { children: jsx(CookieConsent, { borderRadius: 0 }, void 0) }), void 0) }, void 0)), scrollToTopButton ? (jsx(ScrollToTopButton, Object.assign({ anchorId: scrollToTopAnchorId }, { children: jsx(Fab, Object.assign({ "aria-label": "scroll to top", color: "secondary", size: "small" }, { children: jsx(KeyboardArrowUp, {}, void 0) }), void 0) }), void 0)) : null] }), void 0));
1616
+ };
1617
+
1618
+ const getPartialPath = (pathParts, index) => {
1619
+ const result = [];
1620
+ for (let i = 0; i <= index; i++) {
1621
+ result.push(`${pathParts[i]}/`);
1622
+ }
1623
+ return result.join('');
1624
+ };
1625
+ const BreadcrumbsEx = (_a) => {
1626
+ var _b;
1627
+ var { titles, path = document.location.pathname, separator = '|', logo, children } = _a, props = __rest(_a, ["titles", "path", "separator", "logo", "children"]);
1628
+ const pathParts = path.split('/');
1629
+ //if the url has a trailing '/', remove the last part
1630
+ if (((_b = pathParts[pathParts.length - 1]) === null || _b === void 0 ? void 0 : _b.length) === 0) {
1631
+ pathParts.pop();
1632
+ }
1633
+ assertEx(pathParts.length - 1 === (titles === null || titles === void 0 ? void 0 : titles.length), `Path/Title length mismatch: ${JSON.stringify(titles)} with ${JSON.stringify(pathParts)}`);
1634
+ return (jsxs(Breadcrumbs, Object.assign({ separator: separator }, props, { children: [pathParts.map((_pathPart, index) => {
1635
+ const path = getPartialPath(pathParts, index);
1636
+ return (jsx(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: Link$1, to: path }, { children: index > 0 ? (titles === null || titles === void 0 ? void 0 : titles[index - 1]) : (jsx(FlexRow, { children: typeof logo === 'string' ? jsx("img", { src: logo }, void 0) : logo }, void 0)) }), path));
1637
+ }), children] }), void 0));
1638
+ };
1639
+
1640
+ const toAxiosError = (error) => {
1641
+ return error.isAxiosError ? error : undefined;
1642
+ };
1643
+ const ErrorDialogOpen = (_a) => {
1644
+ var _b, _c;
1645
+ var { onAction, title = 'Oops. Something went wrong.', error = Error('Unknown Error') } = _a, props = __rest(_a, ["onAction", "title", "error"]);
1646
+ const onCloseClicked = () => {
1647
+ onAction === null || onAction === void 0 ? void 0 : onAction(false);
1648
+ };
1649
+ const onRetryClicked = () => {
1650
+ onAction === null || onAction === void 0 ? void 0 : onAction(true);
1651
+ };
1652
+ const axiosError = toAxiosError(error);
1653
+ const message = (_b = error.message) !== null && _b !== void 0 ? _b : error.toString();
1654
+ return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }, void 0), jsx(DialogContent, { children: jsx(FlexRow, { children: jsx(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}` }), void 0) }, void 0) }, void 0), jsx(DialogActions, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", minWidth: "300px" }, { children: [jsx(ButtonEx, Object.assign({ onClick: onCloseClicked, variant: "text" }, { children: "Close" }), void 0), jsx(ButtonEx, Object.assign({ onClick: onRetryClicked, variant: "text" }, { children: "Retry" }), void 0)] }), void 0) }, void 0)] }), void 0));
1655
+ };
1656
+ const ErrorDialog = (_a) => {
1657
+ var { open, error } = _a, props = __rest(_a, ["open", "error"]);
1658
+ if (error) {
1659
+ return jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props), void 0);
1660
+ }
1661
+ else {
1662
+ return null;
1663
+ }
1664
+ };
1665
+
1666
+ const MessageDialog = (_a) => {
1667
+ var { onOk, onCancel, children, title } = _a, props = __rest(_a, ["onOk", "onCancel", "children", "title"]);
1668
+ return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }, void 0), jsx(DialogContent, { children: jsx(FlexCol, Object.assign({ alignItems: "stretch" }, { children: children }), void 0) }, void 0), jsx(DialogActions, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%" }, { children: [jsx(Button, Object.assign({ onClick: onCancel, variant: "text" }, { children: "Cancel" }), void 0), jsx(Button, Object.assign({ onClick: onOk, variant: "text" }, { children: "Ok" }), void 0)] }), void 0) }, void 0)] }), void 0));
1669
+ };
1670
+
1671
+ const useBreakpoint = () => {
1672
+ const theme = useTheme();
1673
+ const xs = useMediaQuery(theme.breakpoints.only('xs'));
1674
+ const sm = useMediaQuery(theme.breakpoints.only('sm'));
1675
+ const md = useMediaQuery(theme.breakpoints.only('md'));
1676
+ const lg = useMediaQuery(theme.breakpoints.only('lg'));
1677
+ const xl = useMediaQuery(theme.breakpoints.only('xl'));
1678
+ if (xs) {
1679
+ return 'xs';
1680
+ }
1681
+ else if (sm) {
1682
+ return 'sm';
1683
+ }
1684
+ else if (md) {
1685
+ return 'md';
1686
+ }
1687
+ else if (lg) {
1688
+ return 'lg';
1689
+ }
1690
+ else if (xl) {
1691
+ return 'xl';
1692
+ }
1693
+ };
1694
+
1695
+ const useMounted = () => {
1696
+ const [mounted, setMounted] = useState(true);
1697
+ useEffect(() => {
1698
+ setMounted(true);
1699
+ return () => {
1700
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1701
+ setMounted(false);
1702
+ };
1703
+ }, []);
1704
+ return () => {
1705
+ return mounted;
1706
+ };
1707
+ };
1708
+
1709
+ const useNavigateToEthAddress = () => {
1710
+ const navigate = useNavigate();
1711
+ const navigateToEthAddress = (address, event, page, to, toOptions, toEtherScan) => {
1712
+ var _a;
1713
+ const openInEtherScan = toEtherScan || (!to && !page);
1714
+ if (openInEtherScan) {
1715
+ window.open(`https://etherscan.io/address/${address.toString()}`, '_blank');
1716
+ }
1717
+ else {
1718
+ const path = (_a = to === null || to === void 0 ? void 0 : to.toString()) !== null && _a !== void 0 ? _a : `/${page}/${address.toString()}`;
1719
+ if (event.metaKey || toEtherScan) {
1720
+ window.open(path, '_blank');
1721
+ }
1722
+ else {
1723
+ navigate(to !== null && to !== void 0 ? to : path, toOptions);
1724
+ }
1725
+ }
1726
+ };
1727
+ return { navigateToEthAddress };
1728
+ };
1729
+
1730
+ const useSpacing = (value) => {
1731
+ const theme = useTheme();
1732
+ return theme.spacing(typeof value === 'string' ? parseInt(value) : value);
1733
+ };
1734
+
1735
+ let supportsWebP = undefined;
1736
+ const useWebP = (webp, alt) => {
1737
+ const [img, setImg] = useState(supportsWebP === true ? webp : supportsWebP === false ? alt : undefined);
1738
+ useAsyncEffect(async (mounted) => {
1739
+ if (supportsWebP === undefined) {
1740
+ supportsWebP = await getSupportsWebP();
1741
+ if (mounted()) {
1742
+ setImg(supportsWebP ? webp : alt);
1743
+ }
1744
+ }
1745
+ }, [supportsWebP]);
1746
+ return img;
1747
+ };
1748
+ const getSupportsWebP = async () => {
1749
+ return await new Promise((resolve) => {
1750
+ const image = new Image();
1751
+ image.onerror = () => resolve(false);
1752
+ image.onload = () => resolve(image.width === 1);
1753
+ image.src = 'data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=';
1754
+ }).catch(() => false);
1755
+ };
1756
+
1757
+ function useWindowSize() {
1758
+ const [windowSize, setWindowSize] = useState({
1759
+ height: undefined,
1760
+ width: undefined,
1761
+ });
1762
+ useEffect(() => {
1763
+ function handleResize() {
1764
+ setWindowSize({
1765
+ height: window.innerHeight,
1766
+ width: window.innerWidth,
1767
+ });
1768
+ }
1769
+ window.addEventListener('resize', handleResize);
1770
+ handleResize();
1771
+ return () => window.removeEventListener('resize', handleResize);
1772
+ }, []);
1773
+ return windowSize;
1774
+ }
1775
+
1776
+ const EthAccount = (_a) => {
1777
+ var { address, icon = false, iconSize = 16, iconOnly = false, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace', toEtherScan, onButtonClick } = _a, props = __rest(_a, ["address", "icon", "iconSize", "iconOnly", "addressLength", "fontFamily", "toEtherScan", "onButtonClick"]);
1778
+ const { localAddress } = useContext(EthersContext);
1779
+ const theme = useTheme();
1780
+ const large = useMediaQuery(theme.breakpoints.up('md'));
1781
+ const isLocalAddress = address ? (localAddress === null || localAddress === void 0 ? void 0 : localAddress.toString()) === address.toString() : false;
1782
+ const onClickLocal = (event) => {
1783
+ onButtonClick === null || onButtonClick === void 0 ? void 0 : onButtonClick(event);
1784
+ if (toEtherScan && address) {
1785
+ window.open(`https://etherscan.io/address/${address.toString()}`, '_blank');
1786
+ }
1787
+ };
1788
+ const addressToDisplay = assertEx(address !== null && address !== void 0 ? address : EthAddress.fromString('0x00'), 'Bad Eth Address');
1789
+ const testToDisplay = addressLength === 'long'
1790
+ ? addressToDisplay.toString()
1791
+ : addressLength === 'short'
1792
+ ? addressToDisplay.toShortString()
1793
+ : large
1794
+ ? addressToDisplay.toString()
1795
+ : addressToDisplay.toShortString();
1796
+ // Note: We use the all zero address for spacing in case it is
1797
+ return (jsx(ButtonEx, Object.assign({ onClick: onClickLocal, title: `0x${address === null || address === void 0 ? void 0 : address.toHex()}` }, props, { children: jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between", alignItems: "center" }, { children: [icon && address ? jsx(Identicon, { size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }, void 0) : null, iconOnly ? null : (jsxs(FlexRow, { children: [jsx(Typography, Object.assign({ marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily, visibility: address ? 'inherit' : 'hidden' }, { children: testToDisplay }), void 0), address ? null : (jsx(Typography, Object.assign({ position: "absolute", marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily }, { children: "-- --" }), void 0))] }, void 0)), isLocalAddress ? jsx(FlexRow, Object.assign({ marginLeft: 0.5 }, { children: "(You)" }), void 0) : null] }), void 0) }), void 0));
1798
+ };
1799
+
1800
+ const Experiment = (props) => {
1801
+ const { children } = props;
1802
+ return jsx(Fragment, { children: children }, void 0);
1803
+ };
1804
+
1805
+ const defaultLocalStorageKey = 'testData';
1806
+ const experimentsTestData = {};
1807
+ let outcomes = {}; //prevent multi-outcome
1808
+ const saveOutcomes = () => {
1809
+ setLocalStorageObject('outcomes', outcomes);
1810
+ };
1811
+ const loadOutcomes = () => {
1812
+ outcomes = getLocalStorageObject('outcomes');
1813
+ };
1814
+ const mergeData = (data, log) => {
1815
+ const dataArray = [];
1816
+ for (const key in data) {
1817
+ dataArray.push(`${key}-${data[key]}`);
1818
+ }
1819
+ log === null || log === void 0 ? void 0 : log.info('MergeData', dataArray.join('|'));
1820
+ return dataArray.join('|');
1821
+ };
1822
+ const missingKeyError = new Error('Experiment Elements must have Keys');
1823
+ const makeChildrenArray = (children) => {
1824
+ if (Array.isArray(children)) {
1825
+ return children;
1826
+ }
1827
+ else {
1828
+ return [children];
1829
+ }
1830
+ };
1831
+ const buildLocalStorageKey = (localStorageProp) => {
1832
+ return localStorageProp === true
1833
+ ? defaultLocalStorageKey
1834
+ : typeof localStorageProp === 'string'
1835
+ ? localStorageProp !== null && localStorageProp !== void 0 ? localStorageProp : defaultLocalStorageKey
1836
+ : '';
1837
+ };
1838
+ const calcTotalWeight = (childList) => {
1839
+ let totalWeight = 0;
1840
+ for (const child of childList) {
1841
+ totalWeight += child.props.weight;
1842
+ }
1843
+ return totalWeight;
1844
+ };
1845
+ const Experiments = (props) => {
1846
+ var _a, _b;
1847
+ const { name, children, testStarted, localStorageProp = true } = props;
1848
+ const userEventsConntext = useContext(UserEventsContext);
1849
+ const { userEvents } = userEventsConntext;
1850
+ loadOutcomes();
1851
+ const localStorageKey = buildLocalStorageKey(localStorageProp);
1852
+ const childList = makeChildrenArray(children);
1853
+ const totalWeight = calcTotalWeight(childList);
1854
+ const firstTime = outcomes[name] === undefined;
1855
+ let targetWeight = (_a = outcomes[name]) !== null && _a !== void 0 ? _a : Math.random() * totalWeight;
1856
+ outcomes[name] = targetWeight;
1857
+ saveOutcomes();
1858
+ for (const child of childList) {
1859
+ targetWeight -= child.props.weight;
1860
+ if (targetWeight > 0)
1861
+ continue;
1862
+ if (!child.key) {
1863
+ throw missingKeyError;
1864
+ }
1865
+ experimentsTestData[name] = (_b = child.key) === null || _b === void 0 ? void 0 : _b.toString();
1866
+ if (firstTime) {
1867
+ if (localStorageProp !== false) {
1868
+ localStorage.setItem(localStorageKey, mergeData(experimentsTestData));
1869
+ }
1870
+ if (!isLocalhost) {
1871
+ userEvents === null || userEvents === void 0 ? void 0 : userEvents.testStarted({});
1872
+ testStarted === null || testStarted === void 0 ? void 0 : testStarted();
1873
+ }
1874
+ }
1875
+ return child;
1876
+ }
1877
+ throw new Error('Experiment Choice Failed');
1878
+ };
1879
+
1880
+ const LinkToEx = (_a) => {
1881
+ var { to } = _a, props = __rest(_a, ["to"]);
1882
+ return jsx(Link, Object.assign({ component: Link$1, to: to }, props), void 0);
1883
+ };
1884
+
1885
+ const NumberStatus = (_a) => {
1886
+ var _b, _c;
1887
+ var { error, format = '0[.]0a', color = 'primary', title, value, size, fontSize, rounded = false, autoWidth = false, style } = _a, props = __rest(_a, ["error", "format", "color", "title", "value", "size", "fontSize", "rounded", "autoWidth", "style"]);
1888
+ const theme = useTheme();
1889
+ const palette = color === 'inherit' ? undefined : theme.palette[color];
1890
+ const bgColorTop = (_b = palette === null || palette === void 0 ? void 0 : palette.dark) !== null && _b !== void 0 ? _b : theme.palette.background.paper;
1891
+ const bgColorBottom = (_c = palette === null || palette === void 0 ? void 0 : palette.main) !== null && _c !== void 0 ? _c : theme.palette.background.default;
1892
+ const sizePixels = size === 'large' ? 96 : size === 'small' ? 64 : 80;
1893
+ const calcFontSize = fontSize !== null && fontSize !== void 0 ? fontSize : sizePixels * 0.2;
1894
+ return (jsx(ButtonEx, Object.assign({ size: size, padding: 0, style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0, overflow: rounded ? 'hidden' : undefined }, style) }, props, { children: jsxs(FlexCol, Object.assign({ alignItems: "stretch", height: sizePixels, width: autoWidth ? '100%' : sizePixels, busy: value === undefined && !error }, { children: [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(value).format(format) }), void 0), 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 }), void 0)] }), void 0) }), void 0));
1895
+ };
1896
+
1897
+ const QuickTipButton = (_a) => {
1898
+ var { title, children } = _a, props = __rest(_a, ["title", "children"]);
1899
+ const [messageOpen, setMessageOpen] = useState(false);
1900
+ return (jsxs(Fragment, { children: [jsx(IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: jsx(AiOutlineQuestionCircle, { size: 16 }, void 0) }), void 0), jsx(MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }), void 0)] }, void 0));
1901
+ };
1902
+
1903
+ const RichResult = (props) => {
1904
+ const { thing } = props;
1905
+ const thingWithContext = thing;
1906
+ thingWithContext['@context'] = 'https://schema.org';
1907
+ return jsx("script", Object.assign({ type: "application/ld+json" }, { children: JSON.stringify(thingWithContext) }), void 0);
1908
+ };
1909
+
1910
+ var ActionStatusType;
1911
+ (function (ActionStatusType) {
1912
+ ActionStatusType["ActiveActionStatus"] = "ActiveActionStatus";
1913
+ ActionStatusType["CompletedActionStatus"] = "CompletedActionStatus";
1914
+ ActionStatusType["FailedActionStatus"] = "FailedActionStatus";
1915
+ ActionStatusType["PotentialActionStatus"] = "PotentialActionStatus";
1916
+ })(ActionStatusType || (ActionStatusType = {}));
1917
+
1918
+ var ContactPointOption;
1919
+ (function (ContactPointOption) {
1920
+ ContactPointOption["HearingImpairedSupported"] = "HearingImpairedSupported";
1921
+ ContactPointOption["TollFree"] = "TollFree";
1922
+ })(ContactPointOption || (ContactPointOption = {}));
1923
+
1924
+ var ItemAvailability;
1925
+ (function (ItemAvailability) {
1926
+ /** Indicates that the item has been discontinued. */
1927
+ ItemAvailability["Discontinued"] = "https://schema.org/Discontinued";
1928
+ /** Indicates that the item is in stock. */
1929
+ ItemAvailability["InStock"] = "https://schema.org/InStock";
1930
+ /** Indicates that the item is available only at physical locations. */
1931
+ ItemAvailability["InStoreOnly"] = "https://schema.org/InStoreOnly";
1932
+ /** Indicates that the item has limited availability. */
1933
+ ItemAvailability["LimitedAvailability"] = "https://schema.org/LimitedAvailability";
1934
+ /** Indicates that the item is available only online. */
1935
+ ItemAvailability["OnlineOnly"] = "https://schema.org/OnlineOnly";
1936
+ /** Indicates that the item is out of stock. */
1937
+ ItemAvailability["OutOfStock"] = "https://schema.org/OutOfStock";
1938
+ /** Indicates that the item is available for pre-order. */
1939
+ ItemAvailability["PreOrder"] = "https://schema.org/PreOrder";
1940
+ /** Indicates that the item is available for ordering and delivery before general availability. */
1941
+ ItemAvailability["PreSale"] = "https://schema.org/PreSale";
1942
+ /** Indicates that the item has sold out. */
1943
+ ItemAvailability["SoldOut"] = "https://schema.org/SoldOut";
1944
+ })(ItemAvailability || (ItemAvailability = {}));
1945
+
1946
+ var MapCategoryType;
1947
+ (function (MapCategoryType) {
1948
+ MapCategoryType["ParkingMap"] = "ParkingMap";
1949
+ MapCategoryType["SeatingMap"] = "SeatingMap";
1950
+ MapCategoryType["TransitMap"] = "TransitMap";
1951
+ MapCategoryType["VenueMap"] = "VenueMap";
1952
+ })(MapCategoryType || (MapCategoryType = {}));
1953
+
1954
+ // The point of this component it to return to the top of the page on any router navigate
1955
+ const ScrollToTop = () => {
1956
+ const { pathname } = useLocation();
1957
+ useEffect(() => {
1958
+ window.scrollTo(0, 0);
1959
+ }, [pathname]);
1960
+ return null;
1961
+ };
1962
+
1963
+ var xyoLogo = "<svg id=\"Layer_1\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 238\"><defs><style>.cls-1{fill:#999;}</style></defs><title>icon_gray</title><path class=\"cls-1\" d=\"M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z\"/><path class=\"cls-1\" d=\"M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z\"/><path class=\"cls-1\" d=\"M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z\"/><path class=\"cls-1\" d=\"M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z\"/></svg>";
1964
+
1965
+ const base10Shift = (bn, places) => {
1966
+ const factor = new BigNumber(10).pow(new BigNumber(Math.abs(places)));
1967
+ if (places > 0) {
1968
+ return bn.mul(factor);
1969
+ }
1970
+ else {
1971
+ return bn.div(factor);
1972
+ }
1973
+ };
1974
+ const TokenAmount = (_a) => {
1975
+ 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"]);
1976
+ const adjustedAmount = amount ? base10Shift(amount, places).toNumber() : undefined;
1977
+ const amountString = adjustedAmount ? Math.trunc(adjustedAmount).toLocaleString() : '-';
1978
+ return (jsx(ButtonEx, Object.assign({ style: Object.assign({ backgroundColor: statusColor }, style), variant: "outlined", onClick: onButtonClick }, props, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", busy: amount === undefined, busySize: 16 }, { children: [jsxs(FlexRow, { children: [logo ? jsx("img", { src: xyoLogo, height: 24 }, void 0) : null, label ? (jsx(Typography, Object.assign({ marginRight: 1, marginLeft: logo ? 1 : 0, noWrap: true, fontFamily: textFontFamily, variant: "caption" }, { children: label }), void 0)) : null] }, void 0), jsx(Typography, Object.assign({ color: textColor, noWrap: true, fontFamily: textFontFamily, variant: "body1", style: { textTransform: 'none' } }, { children: amountString }), void 0)] }), void 0) }), void 0));
1979
+ };
1980
+
1981
+ export { ActionStatusType, AppBarEx, Background, BasePage, BreadcrumbsEx, BusyBox, ButtonEx, ContactPointOption, CookieConsent, CookieConsentBody, CookieConsentContext, CookieConsentLoader, CoverProgress, DripCustomEvent, DripStandardEvents, ErrorDialog, EthAccount, EthersContext, EthersLoader, Experiment, Experiments, FacebookCustomEvent, FacebookStandardEvents, Fbq, FlexCol, FlexGrowCol, FlexGrowRow, FlexRow, GoogleBaseEvent, GoogleCustomEvent, GoogleStandardEvents, GoogleUserEventHandler, Gtag, Gtm, HoverScale, Identicon, InvertableThemeProvider, ItemAvailability, LinkToEx, MapCategoryType, MessageDialog, NetworkSettingsContext, NetworkSettingsLoader, NumberStatus, QuickTipButton, Rdt, RedditCustomEvent, RedditStandardEvents, RedirectWithQuery, Referrer, RichResult, ScrollToTop, ScrollToTopButton, SnapTr, SnapchatStandardEvents, TiktokCustomEvent, TiktokStandardEvents, TokenAmount, Ttq, UserEventsContext, XyBaseEvent, XyCustomEvent, XyUserEventHandler, XyoUserEventHandler, enableProfileLogging, getApiStage, getLocalStorageObject, getSessionStorageObject, isLocalhost, profileBlock, profileResults, setLocalStorageObject, setSessionStorageObject, useAsyncEffect, useBreakpoint, useCookieConsent, useMounted, useNavigateToEthAddress, useSpacing, useWebP, useWindowSize };
1982
+ //# sourceMappingURL=index.js.map