everest-npm-features 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/ArrowDropDown-DRUQbGft.js +8 -0
  2. package/dist/ArrowRight-t-YgAHUn.js +8 -0
  3. package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
  4. package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
  5. package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
  6. package/dist/Cancel-BMPJ8ZAg.js +11 -0
  7. package/dist/CardContent-DEA5pnhr.js +141 -0
  8. package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
  9. package/dist/Close-mXCsZSxZ.js +8 -0
  10. package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
  11. package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
  12. package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
  13. package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
  14. package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
  15. package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
  16. package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
  17. package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
  18. package/dist/FormControlLabel-BMeMEwyK.js +738 -0
  19. package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
  20. package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
  21. package/dist/Grid2-B0mJbwjl.js +374 -0
  22. package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
  23. package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
  24. package/dist/Info-CkE3Gsf2.js +8 -0
  25. package/dist/InputAdornment-DZJP9Njd.js +169 -0
  26. package/dist/ListItemIcon-JAntieDc.js +82 -0
  27. package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
  28. package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
  29. package/dist/Paper-L8ipwfkc.js +183 -0
  30. package/dist/PlayArrow-D_p2nwO8.js +21 -0
  31. package/dist/Portal-DxdKGEvu.js +86 -0
  32. package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
  33. package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
  34. package/dist/Stack-CkCveRRR.js +174 -0
  35. package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
  36. package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/assets/index.css +1 -1
  39. package/dist/assets/index10.css +1 -0
  40. package/dist/assets/index2.css +1 -1
  41. package/dist/assets/index3.css +1 -0
  42. package/dist/assets/index4.css +1 -0
  43. package/dist/assets/index5.css +1 -0
  44. package/dist/assets/index6.css +1 -0
  45. package/dist/assets/index7.css +1 -0
  46. package/dist/assets/index8.css +1 -0
  47. package/dist/assets/index9.css +1 -0
  48. package/dist/assets/{withThemeProvider.css → main.css} +1 -1
  49. package/dist/assets/styles.css +1 -1
  50. package/dist/assets/styles3.css +1 -0
  51. package/dist/auth-DDk8JxR-.js +46 -0
  52. package/dist/axios-BEX6n2A7.js +796 -0
  53. package/dist/bank-BvPXd5sM.js +23 -0
  54. package/dist/components/Account/index.d.ts +4 -0
  55. package/dist/components/Account/index.js +310 -0
  56. package/dist/components/History/index.d.ts +2 -0
  57. package/dist/components/History/index.js +804 -0
  58. package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
  59. package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
  60. package/dist/components/Profile/documents.js +19 -14
  61. package/dist/components/Profile/index.js +128 -135
  62. package/dist/components/Receive/index.js +25 -23
  63. package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
  64. package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
  65. package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
  66. package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
  67. package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
  68. package/dist/components/RocketRamp/Buy/form.js +26 -0
  69. package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
  70. package/dist/components/RocketRamp/Buy/index.js +31 -0
  71. package/dist/components/RocketRamp/Buy/types.d.ts +33 -0
  72. package/dist/components/RocketRamp/Buy/types.js +1 -0
  73. package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
  74. package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
  75. package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
  76. package/dist/components/RocketRamp/Dashboard/index.js +36 -0
  77. package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
  78. package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
  79. package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
  80. package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
  81. package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
  82. package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
  83. package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
  84. package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
  85. package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
  86. package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
  87. package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
  88. package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
  89. package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
  90. package/dist/components/RocketRamp/SignIn/index.js +82 -0
  91. package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
  92. package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
  93. package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
  94. package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
  95. package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
  96. package/dist/components/RocketRamp/SignIn/types.js +1 -0
  97. package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
  98. package/dist/components/RocketRamp/SignUp/email.js +70 -0
  99. package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
  100. package/dist/components/RocketRamp/SignUp/index.js +163 -0
  101. package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
  102. package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
  103. package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
  104. package/dist/components/RocketRamp/SignUp/summary.js +57 -0
  105. package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
  106. package/dist/components/RocketRamp/SignUp/types.js +1 -0
  107. package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
  108. package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
  109. package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
  110. package/dist/components/RocketRamp/Transactions/index.js +38 -0
  111. package/dist/components/Send/index.js +62 -51
  112. package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
  113. package/dist/components/Shared/ConnectWallet/index.js +25364 -0
  114. package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
  115. package/dist/components/Shared/HistoryItem/index.js +120 -0
  116. package/dist/components/Shared/Keyboard/keyboard.js +3 -3
  117. package/dist/components/Shared/TokenModal/index.d.ts +10 -0
  118. package/dist/components/Shared/TokenModal/index.js +104 -0
  119. package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
  120. package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
  121. package/dist/components/Shared/addBank.d.ts +2 -0
  122. package/dist/components/Shared/addBank.js +172 -0
  123. package/dist/components/Shared/button.js +1 -1
  124. package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
  125. package/dist/components/Shared/connectPlaidBank.js +57 -0
  126. package/dist/components/Shared/incode.js +34 -32
  127. package/dist/components/Shared/inputField.js +1 -1
  128. package/dist/components/Shared/noData.d.ts +4 -0
  129. package/dist/components/Shared/noData.js +14 -0
  130. package/dist/components/Shared/pin.js +3 -3
  131. package/dist/components/Shared/step.js +2 -2
  132. package/dist/components/Shared/tooltip.d.ts +4 -0
  133. package/dist/components/Shared/tooltip.js +2107 -0
  134. package/dist/components/Shared/transition.js +1 -1
  135. package/dist/components/SignIn/index.js +26 -24
  136. package/dist/components/SignUp/index.js +108 -348
  137. package/dist/components/SignUp/pin.js +116 -844
  138. package/dist/components/SignUp/privacy.js +3 -3
  139. package/dist/components/SignUp/terms.js +3 -3
  140. package/dist/components/SignUp/types.d.ts +0 -1
  141. package/dist/components/SignUp/userInfo.js +4 -4
  142. package/dist/components/Stake/gems/index.d.ts +2 -0
  143. package/dist/components/Stake/gems/index.js +214 -0
  144. package/dist/components/Stake/id/index.d.ts +2 -0
  145. package/dist/components/Stake/id/index.js +233 -0
  146. package/dist/components/Stake/index.d.ts +5 -0
  147. package/dist/components/Stake/index.js +346 -0
  148. package/dist/components/Swap/index.d.ts +2 -0
  149. package/dist/components/Swap/index.js +489 -0
  150. package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
  151. package/dist/components/SwapAndUniSwap/index.js +43 -0
  152. package/dist/components/WalletPortfolio/index.js +191 -263
  153. package/dist/components/WalletPortfolio/tokenRow.js +8 -5
  154. package/dist/constants-SKm7VF9k.js +3982 -0
  155. package/dist/countries-BVn1FubK.js +1925 -0
  156. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  157. package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
  158. package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
  159. package/dist/data/countries.json.d.ts +1925 -0
  160. package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
  161. package/dist/dividerClasses-SUAUDDqL.js +10 -0
  162. package/dist/{documents-CL4Ajr_B.js → documents-7w9u2Oig.js} +123 -122
  163. package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
  164. package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
  165. package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
  166. package/dist/generic-token-B_ptO5yb.js +4 -0
  167. package/dist/hoc/withThemeProvider.js +33 -32
  168. package/dist/hooks/useDialog/index.js +4 -4
  169. package/dist/hooks/useSnackBar.js +63 -60
  170. package/dist/icons/buyIcon.d.ts +2 -0
  171. package/dist/icons/buyIcon.js +19 -0
  172. package/dist/icons/canceledBuyIcon.d.ts +2 -0
  173. package/dist/icons/canceledBuyIcon.js +34 -0
  174. package/dist/icons/canceledRedeemIcon.d.ts +2 -0
  175. package/dist/icons/canceledRedeemIcon.js +35 -0
  176. package/dist/icons/failedBuyIcon.d.ts +2 -0
  177. package/dist/icons/failedBuyIcon.js +48 -0
  178. package/dist/icons/failedRedeemIcon.d.ts +2 -0
  179. package/dist/icons/failedRedeemIcon.js +48 -0
  180. package/dist/icons/pendingBuyIcon.d.ts +2 -0
  181. package/dist/icons/pendingBuyIcon.js +38 -0
  182. package/dist/icons/pendingRedeemIcon.d.ts +2 -0
  183. package/dist/icons/pendingRedeemIcon.js +34 -0
  184. package/dist/icons/redeemIcon.d.ts +2 -0
  185. package/dist/icons/redeemIcon.js +19 -0
  186. package/dist/index-B8QKlEgj.js +37095 -0
  187. package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
  188. package/dist/index-BhmBCie8.js +796 -0
  189. package/dist/index-C3FYdQkQ.js +4050 -0
  190. package/dist/index-CrajlEO_.js +576 -0
  191. package/dist/index-TElEjliR.js +9 -0
  192. package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
  193. package/dist/index-ceeCtFuh.js +136 -0
  194. package/dist/index.esm-BsMAMhYW.js +237 -0
  195. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  196. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  197. package/dist/main.d.ts +99 -0
  198. package/dist/main.js +34 -12
  199. package/dist/moment-h96o7c8I.js +2578 -0
  200. package/dist/order-CO4ra5N-.js +27 -0
  201. package/dist/ownerWindow-C-760D__.js +7 -0
  202. package/dist/providers/metaMask.d.ts +6 -0
  203. package/dist/providers/metaMask.js +24 -0
  204. package/dist/react-redux-B4BZippc.js +255 -0
  205. package/dist/react-webcam-B3cXh1XT.js +267 -0
  206. package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
  207. package/dist/rr-primary-logo-CqI24c8v.js +4 -0
  208. package/dist/stake-DHpsHQbJ.js +17 -0
  209. package/dist/store.d.ts +66 -0
  210. package/dist/store.js +1 -0
  211. package/dist/styled-BTIMwpiX.js +5 -0
  212. package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
  213. package/dist/styles.module-O5VVND5e.js +22 -0
  214. package/dist/tokenRow-CgnPD-4U.js +206 -0
  215. package/dist/useControlled-BYdyS7Pn.js +31 -0
  216. package/dist/useFormControl-CfmEP6sW.js +18 -0
  217. package/dist/useSlot-DaP6eodX.js +50 -0
  218. package/dist/useTheme-BghcbbEW.js +9 -0
  219. package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
  220. package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
  221. package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
  222. package/dist/useTimeout-D29bZ7Gz.js +56 -0
  223. package/dist/user-CeKqBfJU.js +24 -0
  224. package/dist/util/constants.d.ts +48 -0
  225. package/dist/util/constants.js +69 -21
  226. package/dist/util/conversions.js +54 -22271
  227. package/dist/util/functions.d.ts +5 -0
  228. package/dist/util/functions.js +81 -24
  229. package/dist/util/regex.d.ts +3 -0
  230. package/dist/util/regex.js +6 -0
  231. package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
  232. package/dist/wallet-BtAQ78cv.js +35 -0
  233. package/dist/web3-u4qDZYpo.js +22328 -0
  234. package/package.json +8 -3
  235. package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
  236. package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
  237. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  238. package/dist/auth-Cj5FKr_m.js +0 -19
  239. package/dist/axios-xPiQW9EP.js +0 -118114
  240. package/dist/defaultTheme-OIfL8Ia7.js +0 -5
  241. package/dist/dividerClasses-Z7VLlu5C.js +0 -10
  242. package/dist/index-DKTkUdik.js +0 -6
  243. package/dist/react-redux-VW99uJjf.js +0 -5908
  244. package/dist/react-webcam-Cov1TP0q.js +0 -639
  245. package/dist/styled-Da6GnxEE.js +0 -5
  246. package/dist/tokenRow-Cdd_jFjp.js +0 -206
  247. package/dist/useFormControl-Bo6Tf_xo.js +0 -46
  248. package/dist/useSlot-CURNJ3JC.js +0 -306
  249. package/dist/useTheme-DWRMvRU8.js +0 -9
  250. package/dist/useTimeout-lr7ryrda.js +0 -75
@@ -0,0 +1,27 @@
1
+ import { O as t, w as E, x as a, y as s, z as R, B as o } from "./constants-SKm7VF9k.js";
2
+ const T = (e) => ({
3
+ type: R,
4
+ payload: e
5
+ }), p = (e) => ({
6
+ type: t,
7
+ payload: e
8
+ }), y = () => ({
9
+ type: E
10
+ }), _ = (e) => ({
11
+ type: a,
12
+ payload: e
13
+ }), d = (e) => ({
14
+ type: s,
15
+ payload: e
16
+ }), S = (e) => ({
17
+ type: o,
18
+ payload: e
19
+ });
20
+ export {
21
+ y as a,
22
+ p as b,
23
+ _ as c,
24
+ d,
25
+ S as e,
26
+ T as o
27
+ };
@@ -0,0 +1,7 @@
1
+ import { o as n } from "./utils-EFg3So7T.js";
2
+ function t(o) {
3
+ return n(o).defaultView || window;
4
+ }
5
+ export {
6
+ t as o
7
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface MetaMaskProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ declare const MetaMaskProvider: ({ children }: MetaMaskProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default MetaMaskProvider;
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { y as r } from "../index-B8QKlEgj.js";
3
+ const a = ({ children: e }) => /* @__PURE__ */ o(
4
+ r,
5
+ {
6
+ debug: !1,
7
+ sdkOptions: {
8
+ logging: {
9
+ developerMode: !1
10
+ },
11
+ extensionOnly: !0,
12
+ preferDesktop: !0,
13
+ dappMetadata: {
14
+ name: "Everest",
15
+ url: window.location.href,
16
+ iconUrl: "https://www.everest.org/logo.svg"
17
+ }
18
+ },
19
+ children: e
20
+ }
21
+ );
22
+ export {
23
+ a as default
24
+ };
@@ -0,0 +1,255 @@
1
+ import * as L from "react";
2
+ import I from "react";
3
+ var M = { exports: {} }, b = {};
4
+ /**
5
+ * @license React
6
+ * use-sync-external-store-with-selector.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var j;
14
+ function P() {
15
+ if (j) return b;
16
+ j = 1;
17
+ var e = I;
18
+ function t(d, n) {
19
+ return d === n && (d !== 0 || 1 / d === 1 / n) || d !== d && n !== n;
20
+ }
21
+ var r = typeof Object.is == "function" ? Object.is : t, u = e.useSyncExternalStore, E = e.useRef, m = e.useEffect, x = e.useMemo, C = e.useDebugValue;
22
+ return b.useSyncExternalStoreWithSelector = function(d, n, i, _, c) {
23
+ var s = E(null);
24
+ if (s.current === null) {
25
+ var f = { hasValue: !1, value: null };
26
+ s.current = f;
27
+ } else f = s.current;
28
+ s = x(function() {
29
+ function S(l) {
30
+ if (!w) {
31
+ if (w = !0, y = l, l = _(l), c !== void 0 && f.hasValue) {
32
+ var v = f.value;
33
+ if (c(v, l)) return a = v;
34
+ }
35
+ return a = l;
36
+ }
37
+ if (v = a, r(y, l)) return v;
38
+ var g = _(l);
39
+ return c !== void 0 && c(v, g) ? v : (y = l, a = g);
40
+ }
41
+ var w = !1, y, a, p = i === void 0 ? null : i;
42
+ return [function() {
43
+ return S(n());
44
+ }, p === null ? void 0 : function() {
45
+ return S(p());
46
+ }];
47
+ }, [n, i, _, c]);
48
+ var o = u(d, s[0], s[1]);
49
+ return m(function() {
50
+ f.hasValue = !0, f.value = o;
51
+ }, [o]), C(o), o;
52
+ }, b;
53
+ }
54
+ var N = {};
55
+ /**
56
+ * @license React
57
+ * use-sync-external-store-with-selector.development.js
58
+ *
59
+ * Copyright (c) Facebook, Inc. and its affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */
64
+ var H;
65
+ function $() {
66
+ return H || (H = 1, process.env.NODE_ENV !== "production" && function() {
67
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
68
+ var e = I;
69
+ function t(n, i) {
70
+ return n === i && (n !== 0 || 1 / n === 1 / i) || n !== n && i !== i;
71
+ }
72
+ var r = typeof Object.is == "function" ? Object.is : t, u = e.useSyncExternalStore, E = e.useRef, m = e.useEffect, x = e.useMemo, C = e.useDebugValue;
73
+ function d(n, i, _, c, s) {
74
+ var f = E(null), o;
75
+ f.current === null ? (o = {
76
+ hasValue: !1,
77
+ value: null
78
+ }, f.current = o) : o = f.current;
79
+ var S = x(function() {
80
+ var p = !1, l, v, g = function(R) {
81
+ if (!p) {
82
+ p = !0, l = R;
83
+ var V = c(R);
84
+ if (s !== void 0 && o.hasValue) {
85
+ var D = o.value;
86
+ if (s(D, V))
87
+ return v = D, D;
88
+ }
89
+ return v = V, V;
90
+ }
91
+ var Y = l, T = v;
92
+ if (r(Y, R))
93
+ return T;
94
+ var k = c(R);
95
+ return s !== void 0 && s(T, k) ? T : (l = R, v = k, k);
96
+ }, A = _ === void 0 ? null : _, q = function() {
97
+ return g(i());
98
+ }, F = A === null ? void 0 : function() {
99
+ return g(A());
100
+ };
101
+ return [q, F];
102
+ }, [i, _, c, s]), w = S[0], y = S[1], a = u(n, w, y);
103
+ return m(function() {
104
+ o.hasValue = !0, o.value = a;
105
+ }, [a]), C(a), a;
106
+ }
107
+ N.useSyncExternalStoreWithSelector = d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
108
+ }()), N;
109
+ }
110
+ process.env.NODE_ENV === "production" ? M.exports = P() : M.exports = $();
111
+ var J = M.exports, h = (
112
+ // prettier-ignore
113
+ // @ts-ignore
114
+ "default" in L ? L.default : L
115
+ ), z = Symbol.for("react-redux-context"), G = typeof globalThis < "u" ? globalThis : (
116
+ /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
117
+ {}
118
+ );
119
+ function Q() {
120
+ if (!h.createContext)
121
+ return {};
122
+ const e = G[z] ?? (G[z] = /* @__PURE__ */ new Map());
123
+ let t = e.get(h.createContext);
124
+ return t || (t = h.createContext(
125
+ null
126
+ ), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(h.createContext, t)), t;
127
+ }
128
+ var O = /* @__PURE__ */ Q(), X = () => {
129
+ throw new Error("uSES not initialized!");
130
+ };
131
+ function W(e = O) {
132
+ return function() {
133
+ const r = h.useContext(e);
134
+ if (process.env.NODE_ENV !== "production" && !r)
135
+ throw new Error(
136
+ "could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
137
+ );
138
+ return r;
139
+ };
140
+ }
141
+ var K = /* @__PURE__ */ W(), B = X, Z = (e) => {
142
+ B = e;
143
+ }, ee = (e, t) => e === t;
144
+ function te(e = O) {
145
+ const t = e === O ? K : W(e), r = (u, E = {}) => {
146
+ const { equalityFn: m = ee, devModeChecks: x = {} } = typeof E == "function" ? { equalityFn: E } : E;
147
+ if (process.env.NODE_ENV !== "production") {
148
+ if (!u)
149
+ throw new Error("You must pass a selector to useSelector");
150
+ if (typeof u != "function")
151
+ throw new Error("You must pass a function as a selector to useSelector");
152
+ if (typeof m != "function")
153
+ throw new Error(
154
+ "You must pass a function as an equality function to useSelector"
155
+ );
156
+ }
157
+ const {
158
+ store: C,
159
+ subscription: d,
160
+ getServerState: n,
161
+ stabilityCheck: i,
162
+ identityFunctionCheck: _
163
+ } = t(), c = h.useRef(!0), s = h.useCallback(
164
+ {
165
+ [u.name](o) {
166
+ const S = u(o);
167
+ if (process.env.NODE_ENV !== "production") {
168
+ const {
169
+ identityFunctionCheck: w,
170
+ stabilityCheck: y
171
+ } = {
172
+ stabilityCheck: i,
173
+ identityFunctionCheck: _,
174
+ ...x
175
+ };
176
+ if (y === "always" || y === "once" && c.current) {
177
+ const a = u(o);
178
+ if (!m(S, a)) {
179
+ let p;
180
+ try {
181
+ throw new Error();
182
+ } catch (l) {
183
+ ({ stack: p } = l);
184
+ }
185
+ console.warn(
186
+ "Selector " + (u.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
187
+ Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,
188
+ {
189
+ state: o,
190
+ selected: S,
191
+ selected2: a,
192
+ stack: p
193
+ }
194
+ );
195
+ }
196
+ }
197
+ if ((w === "always" || w === "once" && c.current) && S === o) {
198
+ let a;
199
+ try {
200
+ throw new Error();
201
+ } catch (p) {
202
+ ({ stack: a } = p);
203
+ }
204
+ console.warn(
205
+ "Selector " + (u.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
206
+ Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
207
+ { stack: a }
208
+ );
209
+ }
210
+ c.current && (c.current = !1);
211
+ }
212
+ return S;
213
+ }
214
+ }[u.name],
215
+ [u, i, x.stabilityCheck]
216
+ ), f = B(
217
+ d.addNestedSub,
218
+ C.getState,
219
+ n || C.getState,
220
+ s,
221
+ m
222
+ );
223
+ return h.useDebugValue(f), f;
224
+ };
225
+ return Object.assign(r, {
226
+ withTypes: () => r
227
+ }), r;
228
+ }
229
+ var ie = /* @__PURE__ */ te(), re = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ne = typeof navigator < "u" && navigator.product === "ReactNative";
230
+ re || ne ? h.useLayoutEffect : h.useEffect;
231
+ function U(e = O) {
232
+ const t = e === O ? K : (
233
+ // @ts-ignore
234
+ W(e)
235
+ ), r = () => {
236
+ const { store: u } = t();
237
+ return u;
238
+ };
239
+ return Object.assign(r, {
240
+ withTypes: () => r
241
+ }), r;
242
+ }
243
+ var oe = /* @__PURE__ */ U();
244
+ function ue(e = O) {
245
+ const t = e === O ? oe : U(e), r = () => t().dispatch;
246
+ return Object.assign(r, {
247
+ withTypes: () => r
248
+ }), r;
249
+ }
250
+ var ce = /* @__PURE__ */ ue();
251
+ Z(J.useSyncExternalStoreWithSelector);
252
+ export {
253
+ ie as a,
254
+ ce as u
255
+ };
@@ -0,0 +1,267 @@
1
+ import { c as j, g as x } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import E from "react";
3
+ var b = { exports: {} };
4
+ (function(O, W) {
5
+ (function(m, g) {
6
+ O.exports = g(E);
7
+ })(j, function(U) {
8
+ return (
9
+ /******/
10
+ function(m) {
11
+ var g = {};
12
+ function u(n) {
13
+ if (g[n])
14
+ return g[n].exports;
15
+ var a = g[n] = {
16
+ /******/
17
+ i: n,
18
+ /******/
19
+ l: !1,
20
+ /******/
21
+ exports: {}
22
+ /******/
23
+ };
24
+ return m[n].call(a.exports, a, a.exports, u), a.l = !0, a.exports;
25
+ }
26
+ return u.m = m, u.c = g, u.d = function(n, a, p) {
27
+ u.o(n, a) || Object.defineProperty(n, a, { enumerable: !0, get: p });
28
+ }, u.r = function(n) {
29
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
30
+ }, u.t = function(n, a) {
31
+ if (a & 1 && (n = u(n)), a & 8 || a & 4 && typeof n == "object" && n && n.__esModule) return n;
32
+ var p = /* @__PURE__ */ Object.create(null);
33
+ if (u.r(p), Object.defineProperty(p, "default", { enumerable: !0, value: n }), a & 2 && typeof n != "string") for (var S in n) u.d(p, S, (function(M) {
34
+ return n[M];
35
+ }).bind(null, S));
36
+ return p;
37
+ }, u.n = function(n) {
38
+ var a = n && n.__esModule ? (
39
+ /******/
40
+ function() {
41
+ return n.default;
42
+ }
43
+ ) : (
44
+ /******/
45
+ function() {
46
+ return n;
47
+ }
48
+ );
49
+ return u.d(a, "a", a), a;
50
+ }, u.o = function(n, a) {
51
+ return Object.prototype.hasOwnProperty.call(n, a);
52
+ }, u.p = "", u(u.s = "./src/react-webcam.tsx");
53
+ }({
54
+ /***/
55
+ "./src/react-webcam.tsx": (
56
+ /*!******************************!*\
57
+ !*** ./src/react-webcam.tsx ***!
58
+ \******************************/
59
+ /*! exports provided: default */
60
+ /***/
61
+ function(m, g, u) {
62
+ u.r(g);
63
+ var n = u(
64
+ /*! react */
65
+ "react"
66
+ ), a = /* @__PURE__ */ function() {
67
+ var f = function(o, e) {
68
+ return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
69
+ t.__proto__ = i;
70
+ } || function(t, i) {
71
+ for (var r in i) i.hasOwnProperty(r) && (t[r] = i[r]);
72
+ }, f(o, e);
73
+ };
74
+ return function(o, e) {
75
+ f(o, e);
76
+ function t() {
77
+ this.constructor = o;
78
+ }
79
+ o.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
80
+ };
81
+ }(), p = function() {
82
+ return p = Object.assign || function(f) {
83
+ for (var o, e = 1, t = arguments.length; e < t; e++) {
84
+ o = arguments[e];
85
+ for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (f[i] = o[i]);
86
+ }
87
+ return f;
88
+ }, p.apply(this, arguments);
89
+ }, S = function(f, o) {
90
+ var e = {};
91
+ for (var t in f) Object.prototype.hasOwnProperty.call(f, t) && o.indexOf(t) < 0 && (e[t] = f[t]);
92
+ if (f != null && typeof Object.getOwnPropertySymbols == "function")
93
+ for (var i = 0, t = Object.getOwnPropertySymbols(f); i < t.length; i++)
94
+ o.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(f, t[i]) && (e[t[i]] = f[t[i]]);
95
+ return e;
96
+ };
97
+ (function() {
98
+ typeof window > "u" || (navigator.mediaDevices === void 0 && (navigator.mediaDevices = {}), navigator.mediaDevices.getUserMedia === void 0 && (navigator.mediaDevices.getUserMedia = function(o) {
99
+ var e = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
100
+ return e ? new Promise(function(t, i) {
101
+ e.call(navigator, o, t, i);
102
+ }) : Promise.reject(new Error("getUserMedia is not implemented in this browser"));
103
+ }));
104
+ })();
105
+ function M() {
106
+ return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
107
+ }
108
+ var _ = (
109
+ /** @class */
110
+ function(f) {
111
+ a(o, f);
112
+ function o(e) {
113
+ var t = f.call(this, e) || this;
114
+ return t.canvas = null, t.ctx = null, t.requestUserMediaId = 0, t.unmounted = !1, t.state = {
115
+ hasUserMedia: !1
116
+ }, t;
117
+ }
118
+ return o.prototype.componentDidMount = function() {
119
+ var e = this, t = e.state, i = e.props;
120
+ if (this.unmounted = !1, !M()) {
121
+ i.onUserMediaError("getUserMedia not supported");
122
+ return;
123
+ }
124
+ t.hasUserMedia || this.requestUserMedia(), i.children && typeof i.children != "function" && console.warn("children must be a function");
125
+ }, o.prototype.componentDidUpdate = function(e) {
126
+ var t = this.props;
127
+ if (!M()) {
128
+ t.onUserMediaError("getUserMedia not supported");
129
+ return;
130
+ }
131
+ var i = JSON.stringify(e.audioConstraints) !== JSON.stringify(t.audioConstraints), r = JSON.stringify(e.videoConstraints) !== JSON.stringify(t.videoConstraints), h = e.minScreenshotWidth !== t.minScreenshotWidth, c = e.minScreenshotHeight !== t.minScreenshotHeight;
132
+ (r || h || c) && (this.canvas = null, this.ctx = null), (i || r) && (this.stopAndCleanup(), this.requestUserMedia());
133
+ }, o.prototype.componentWillUnmount = function() {
134
+ this.unmounted = !0, this.stopAndCleanup();
135
+ }, o.stopMediaStream = function(e) {
136
+ e && (e.getVideoTracks && e.getAudioTracks ? (e.getVideoTracks().map(function(t) {
137
+ e.removeTrack(t), t.stop();
138
+ }), e.getAudioTracks().map(function(t) {
139
+ e.removeTrack(t), t.stop();
140
+ })) : e.stop());
141
+ }, o.prototype.stopAndCleanup = function() {
142
+ var e = this.state;
143
+ e.hasUserMedia && (o.stopMediaStream(this.stream), e.src && window.URL.revokeObjectURL(e.src));
144
+ }, o.prototype.getScreenshot = function(e) {
145
+ var t = this, i = t.state, r = t.props;
146
+ if (!i.hasUserMedia)
147
+ return null;
148
+ var h = this.getCanvas(e);
149
+ return h && h.toDataURL(r.screenshotFormat, r.screenshotQuality);
150
+ }, o.prototype.getCanvas = function(e) {
151
+ var t = this, i = t.state, r = t.props;
152
+ if (!this.video || !i.hasUserMedia || !this.video.videoHeight)
153
+ return null;
154
+ if (!this.ctx) {
155
+ var h = this.video.videoWidth, c = this.video.videoHeight;
156
+ if (!this.props.forceScreenshotSourceSize) {
157
+ var d = h / c;
158
+ h = r.minScreenshotWidth || this.video.clientWidth, c = h / d, r.minScreenshotHeight && c < r.minScreenshotHeight && (c = r.minScreenshotHeight, h = c * d);
159
+ }
160
+ this.canvas = document.createElement("canvas"), this.canvas.width = (e == null ? void 0 : e.width) || h, this.canvas.height = (e == null ? void 0 : e.height) || c, this.ctx = this.canvas.getContext("2d");
161
+ }
162
+ var v = this, l = v.ctx, s = v.canvas;
163
+ return l && s && (s.width = (e == null ? void 0 : e.width) || s.width, s.height = (e == null ? void 0 : e.height) || s.height, r.mirrored && (l.translate(s.width, 0), l.scale(-1, 1)), l.imageSmoothingEnabled = r.imageSmoothing, l.drawImage(this.video, 0, 0, (e == null ? void 0 : e.width) || s.width, (e == null ? void 0 : e.height) || s.height), r.mirrored && (l.scale(-1, 1), l.translate(-s.width, 0))), s;
164
+ }, o.prototype.requestUserMedia = function() {
165
+ var e = this, t = this.props, i = function(c, d) {
166
+ var v = {
167
+ video: typeof d < "u" ? d : !0
168
+ };
169
+ t.audio && (v.audio = typeof c < "u" ? c : !0), e.requestUserMediaId++;
170
+ var l = e.requestUserMediaId;
171
+ navigator.mediaDevices.getUserMedia(v).then(function(s) {
172
+ e.unmounted || l !== e.requestUserMediaId ? o.stopMediaStream(s) : e.handleUserMedia(null, s);
173
+ }).catch(function(s) {
174
+ e.handleUserMedia(s);
175
+ });
176
+ };
177
+ if ("mediaDevices" in navigator)
178
+ i(t.audioConstraints, t.videoConstraints);
179
+ else {
180
+ var r = function(c) {
181
+ return { optional: [{ sourceId: c }] };
182
+ }, h = function(c) {
183
+ var d = c.deviceId;
184
+ return typeof d == "string" ? d : Array.isArray(d) && d.length > 0 ? d[0] : typeof d == "object" && d.ideal ? d.ideal : null;
185
+ };
186
+ MediaStreamTrack.getSources(function(c) {
187
+ var d = null, v = null;
188
+ c.forEach(function(y) {
189
+ y.kind === "audio" ? d = y.id : y.kind === "video" && (v = y.id);
190
+ });
191
+ var l = h(t.audioConstraints);
192
+ l && (d = l);
193
+ var s = h(t.videoConstraints);
194
+ s && (v = s), i(r(d), r(v));
195
+ });
196
+ }
197
+ }, o.prototype.handleUserMedia = function(e, t) {
198
+ var i = this.props;
199
+ if (e || !t) {
200
+ this.setState({ hasUserMedia: !1 }), i.onUserMediaError(e);
201
+ return;
202
+ }
203
+ this.stream = t;
204
+ try {
205
+ this.video && (this.video.srcObject = t), this.setState({ hasUserMedia: !0 });
206
+ } catch {
207
+ this.setState({
208
+ hasUserMedia: !0,
209
+ src: window.URL.createObjectURL(t)
210
+ });
211
+ }
212
+ i.onUserMedia(t);
213
+ }, o.prototype.render = function() {
214
+ var e = this, t = this, i = t.state, r = t.props, h = r.audio;
215
+ r.forceScreenshotSourceSize;
216
+ var c = r.disablePictureInPicture;
217
+ r.onUserMedia, r.onUserMediaError, r.screenshotFormat, r.screenshotQuality, r.minScreenshotWidth, r.minScreenshotHeight, r.audioConstraints, r.videoConstraints, r.imageSmoothing;
218
+ var d = r.mirrored, v = r.style, l = v === void 0 ? {} : v, s = r.children, y = S(r, ["audio", "forceScreenshotSourceSize", "disablePictureInPicture", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), w = d ? p(p({}, l), { transform: (l.transform || "") + " scaleX(-1)" }) : l, C = {
219
+ getScreenshot: this.getScreenshot.bind(this)
220
+ };
221
+ return n.createElement(
222
+ n.Fragment,
223
+ null,
224
+ n.createElement("video", p({ autoPlay: !0, disablePictureInPicture: c, src: i.src, muted: !h, playsInline: !0, ref: function(P) {
225
+ e.video = P;
226
+ }, style: w }, y)),
227
+ s && s(C)
228
+ );
229
+ }, o.defaultProps = {
230
+ audio: !1,
231
+ disablePictureInPicture: !1,
232
+ forceScreenshotSourceSize: !1,
233
+ imageSmoothing: !0,
234
+ mirrored: !1,
235
+ onUserMedia: function() {
236
+ },
237
+ onUserMediaError: function() {
238
+ },
239
+ screenshotFormat: "image/webp",
240
+ screenshotQuality: 0.92
241
+ }, o;
242
+ }(n.Component)
243
+ );
244
+ g.default = _;
245
+ }
246
+ ),
247
+ /***/
248
+ react: (
249
+ /*!**************************************************************************************!*\
250
+ !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
251
+ \**************************************************************************************/
252
+ /*! no static exports found */
253
+ /***/
254
+ function(m, g) {
255
+ m.exports = U;
256
+ }
257
+ )
258
+ /******/
259
+ }).default
260
+ );
261
+ });
262
+ })(b);
263
+ var I = b.exports;
264
+ const k = /* @__PURE__ */ x(I);
265
+ export {
266
+ k as W
267
+ };
@@ -0,0 +1,80 @@
1
+ import { c as l } from "./DefaultPropsProvider-DmUB0SYC.js";
2
+ function O(s) {
3
+ return typeof s == "string";
4
+ }
5
+ function A(s, c, e) {
6
+ return s === void 0 || O(s) ? c : {
7
+ ...c,
8
+ ownerState: {
9
+ ...c.ownerState,
10
+ ...e
11
+ }
12
+ };
13
+ }
14
+ function k(s, c = []) {
15
+ if (s === void 0)
16
+ return {};
17
+ const e = {};
18
+ return Object.keys(s).filter((n) => n.match(/^on[A-Z]/) && typeof s[n] == "function" && !c.includes(n)).forEach((n) => {
19
+ e[n] = s[n];
20
+ }), e;
21
+ }
22
+ function a(s) {
23
+ if (s === void 0)
24
+ return {};
25
+ const c = {};
26
+ return Object.keys(s).filter((e) => !(e.match(/^on[A-Z]/) && typeof s[e] == "function")).forEach((e) => {
27
+ c[e] = s[e];
28
+ }), c;
29
+ }
30
+ function R(s) {
31
+ const {
32
+ getSlotProps: c,
33
+ additionalProps: e,
34
+ externalSlotProps: n,
35
+ externalForwardedProps: t,
36
+ className: i
37
+ } = s;
38
+ if (!c) {
39
+ const g = l(e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), h = {
40
+ ...e == null ? void 0 : e.style,
41
+ ...t == null ? void 0 : t.style,
42
+ ...n == null ? void 0 : n.style
43
+ }, m = {
44
+ ...e,
45
+ ...t,
46
+ ...n
47
+ };
48
+ return g.length > 0 && (m.className = g), Object.keys(h).length > 0 && (m.style = h), {
49
+ props: m,
50
+ internalRef: void 0
51
+ };
52
+ }
53
+ const v = k({
54
+ ...t,
55
+ ...n
56
+ }), E = a(n), H = a(t), f = c(v), y = l(f == null ? void 0 : f.className, e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), N = {
57
+ ...f == null ? void 0 : f.style,
58
+ ...e == null ? void 0 : e.style,
59
+ ...t == null ? void 0 : t.style,
60
+ ...n == null ? void 0 : n.style
61
+ }, u = {
62
+ ...f,
63
+ ...e,
64
+ ...H,
65
+ ...E
66
+ };
67
+ return y.length > 0 && (u.className = y), Object.keys(N).length > 0 && (u.style = N), {
68
+ props: u,
69
+ internalRef: f.ref
70
+ };
71
+ }
72
+ function W(s, c, e) {
73
+ return typeof s == "function" ? s(c, e) : s;
74
+ }
75
+ export {
76
+ A as a,
77
+ k as e,
78
+ R as m,
79
+ W as r
80
+ };