@prosopo/procaptcha-react 0.2.41 → 0.3.2

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 (72) hide show
  1. package/README.md +3 -9
  2. package/dist/cjs/components/Button.cjs +2 -1
  3. package/dist/cjs/components/CaptchaComponent.cjs +2 -1
  4. package/dist/cjs/components/CaptchaWidget.cjs +2 -1
  5. package/dist/cjs/components/ExtensionAccountSelect.cjs +1 -2
  6. package/dist/cjs/components/Modal.cjs +0 -1
  7. package/dist/cjs/components/Procaptcha.cjs +2 -1
  8. package/dist/cjs/components/ProcaptchaWidget.cjs +82 -143
  9. package/dist/cjs/components/collector.cjs +4 -3
  10. package/dist/cjs/index.cjs +2 -2
  11. package/dist/cjs/web-components/dist/CaptchaPlaceholder.cjs +39 -0
  12. package/dist/cjs/web-components/dist/Checkbox.cjs +55 -0
  13. package/dist/cjs/web-components/dist/Containers.cjs +42 -0
  14. package/dist/cjs/{components → web-components/dist}/LoadingSpinner.cjs +5 -1
  15. package/dist/cjs/web-components/dist/Logo.cjs +16 -0
  16. package/dist/cjs/web-components/dist/LogoWithText.cjs +10 -0
  17. package/dist/cjs/web-components/dist/LogoWithoutText.cjs +10 -0
  18. package/dist/cjs/web-components/dist/WidgetConstants.cjs +12 -0
  19. package/dist/cjs/web-components/dist/index.cjs +22 -0
  20. package/dist/components/Button.d.ts.map +1 -1
  21. package/dist/components/Button.js +1 -1
  22. package/dist/components/Button.js.map +1 -1
  23. package/dist/components/CaptchaComponent.js +1 -1
  24. package/dist/components/CaptchaComponent.js.map +1 -1
  25. package/dist/components/CaptchaWidget.d.ts +1 -1
  26. package/dist/components/CaptchaWidget.d.ts.map +1 -1
  27. package/dist/components/CaptchaWidget.js +1 -1
  28. package/dist/components/CaptchaWidget.js.map +1 -1
  29. package/dist/components/ExtensionAccountSelect.d.ts +0 -1
  30. package/dist/components/ExtensionAccountSelect.d.ts.map +1 -1
  31. package/dist/components/ExtensionAccountSelect.js +0 -1
  32. package/dist/components/ExtensionAccountSelect.js.map +1 -1
  33. package/dist/components/Modal.d.ts.map +1 -1
  34. package/dist/components/Modal.js +0 -1
  35. package/dist/components/Modal.js.map +1 -1
  36. package/dist/components/Procaptcha.d.ts.map +1 -1
  37. package/dist/components/Procaptcha.js +1 -1
  38. package/dist/components/Procaptcha.js.map +1 -1
  39. package/dist/components/ProcaptchaWidget.d.ts +2 -2
  40. package/dist/components/ProcaptchaWidget.d.ts.map +1 -1
  41. package/dist/components/ProcaptchaWidget.js +27 -79
  42. package/dist/components/ProcaptchaWidget.js.map +1 -1
  43. package/dist/components/collector.d.ts +3 -2
  44. package/dist/components/collector.d.ts.map +1 -1
  45. package/dist/components/collector.js +4 -3
  46. package/dist/components/collector.js.map +1 -1
  47. package/dist/components/index.d.ts +1 -1
  48. package/dist/components/index.d.ts.map +1 -1
  49. package/dist/components/index.js +1 -1
  50. package/dist/components/index.js.map +1 -1
  51. package/package.json +8 -7
  52. package/typedoc.config.js +19 -0
  53. package/vite.cjs.config.ts +13 -0
  54. package/dist/cjs/components/CaptchaPlaceholder.cjs +0 -132
  55. package/dist/cjs/components/Checkbox.cjs +0 -56
  56. package/dist/components/CaptchaPlaceholder.d.ts +0 -6
  57. package/dist/components/CaptchaPlaceholder.d.ts.map +0 -1
  58. package/dist/components/CaptchaPlaceholder.js +0 -77
  59. package/dist/components/CaptchaPlaceholder.js.map +0 -1
  60. package/dist/components/Checkbox.d.ts +0 -9
  61. package/dist/components/Checkbox.d.ts.map +0 -1
  62. package/dist/components/Checkbox.js +0 -43
  63. package/dist/components/Checkbox.js.map +0 -1
  64. package/dist/components/LoadingSpinner.d.ts +0 -6
  65. package/dist/components/LoadingSpinner.d.ts.map +0 -1
  66. package/dist/components/LoadingSpinner.js +0 -28
  67. package/dist/components/LoadingSpinner.js.map +0 -1
  68. package/dist/components/theme.d.ts +0 -51
  69. package/dist/components/theme.d.ts.map +0 -1
  70. package/dist/components/theme.js +0 -41
  71. package/dist/components/theme.js.map +0 -1
  72. /package/dist/cjs/{components → web-components/dist}/theme.cjs +0 -0
package/README.md CHANGED
@@ -19,7 +19,7 @@ See the [client example](https://github.com/prosopo/client-example) for a minima
19
19
  in a frontend app.
20
20
 
21
21
  ```jsx
22
- <Procaptcha config={config} callbacks={{ onAccountNotFound, onError, onHuman, onExpired }} />
22
+ <Procaptcha config={config} callbacks={{ onError, onHuman, onExpired }} />
23
23
  ```
24
24
 
25
25
  ### Callbacks
@@ -34,7 +34,6 @@ The captcha event callbacks are defined as follows:
34
34
  */
35
35
  export interface ProcaptchaEvents {
36
36
  onError: (error: Error) => void
37
- onAccountNotFound: (address: string) => void
38
37
  onHuman: (output: ProcaptchaOutput) => void
39
38
  onExtensionNotFound: () => void
40
39
  onExpired: () => void
@@ -60,11 +59,6 @@ object contains the following fields:
60
59
  The `onError` callback is called when an error occurs during the captcha process. The `Error` object is a standard
61
60
  JavaScript error.
62
61
 
63
- ### onAccountNotFound
64
-
65
- The `onAccountNotFound` callback is called when the user's account is not found in the Procaptcha config in
66
- the [`userAccountAddress`](https://github.com/prosopo/captcha/blob/0bb4850adfe2b995dc16f7dd18e6ea844a0b6997/packages/types/src/config/config.ts#L116) field.
67
-
68
62
  ### onExpired
69
63
 
70
64
  The `onExpired` callback is called when the captcha challenge has expired. This can occur if the user takes too long to
@@ -83,7 +77,7 @@ our [React Demo](https://github.com/prosopo/captcha/blob/main/demos/client-examp
83
77
  The Procaptcha component is called as follows:
84
78
 
85
79
  ```tsx
86
- <Procaptcha config={config} callbacks={{ onAccountNotFound, onError, onHuman, onExpired }} />
80
+ <Procaptcha config={config} callbacks={{ onError, onHuman, onExpired }} />
87
81
  ```
88
82
 
89
83
  A config object is required and must contain your SITE_KEY. The callbacks are optional and can be used to handle the
@@ -91,7 +85,7 @@ various Procaptcha events. The following config demonstrates the `PROSOPO_SITE_K
91
85
  environment variables.
92
86
 
93
87
  ```tsx
94
- const config: ProcaptchaConfigOptional = {
88
+ const config: ProcaptchaClientConfigInput = {
95
89
  account: {
96
90
  address: process.env.PROSOPO_SITE_KEY || undefined,
97
91
  },
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("@emotion/react/jsx-runtime");
3
- const theme = require("./theme.cjs");
3
+ require("../web-components/dist/index.cjs");
4
4
  const React = require("react");
5
5
  const index = require("../util/index.cjs");
6
+ const theme = require("../web-components/dist/theme.cjs");
6
7
  const buttonStyleBase = {
7
8
  display: "inline-flex",
8
9
  alignItems: "center",
@@ -3,10 +3,11 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
3
3
  const CaptchaWidget = require("./CaptchaWidget.cjs");
4
4
  const React = require("react");
5
5
  const util = require("@prosopo/util");
6
- const theme = require("./theme.cjs");
6
+ require("../web-components/dist/index.cjs");
7
7
  const common = require("@prosopo/common");
8
8
  const Button = require("./Button.cjs");
9
9
  const index = require("../util/index.cjs");
10
+ const theme = require("../web-components/dist/theme.cjs");
10
11
  const CaptchaComponent = ({
11
12
  challenge,
12
13
  index: index$1,
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("@emotion/react/jsx-runtime");
4
4
  const common = require("@prosopo/common");
5
- const theme = require("./theme.cjs");
5
+ require("../web-components/dist/index.cjs");
6
6
  const React = require("react");
7
+ const theme = require("../web-components/dist/theme.cjs");
7
8
  const getHash = (item) => {
8
9
  if (!item.hash) {
9
10
  throw new common.ProsopoDatasetError("CAPTCHA.MISSING_ITEM_HASH", { context: { item } });
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("@emotion/react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const common = require("@prosopo/common");
@@ -45,4 +45,3 @@ const ExtensionAccountSelect = ({
45
45
  );
46
46
  };
47
47
  exports.ExtensionAccountSelect = ExtensionAccountSelect;
48
- exports.default = ExtensionAccountSelect;
@@ -3,7 +3,6 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const ModalComponent = React.memo((props, nextProps) => {
5
5
  const { show, children } = props;
6
- console.log("rendering modal with show: ", show);
7
6
  const display = show ? "block" : "none";
8
7
  const ModalOuterDivCss = {
9
8
  position: "fixed",
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("@emotion/react/jsx-runtime");
3
- const CaptchaPlaceholder = require("./CaptchaPlaceholder.cjs");
3
+ require("../web-components/dist/index.cjs");
4
4
  const React = require("react");
5
+ const CaptchaPlaceholder = require("../web-components/dist/CaptchaPlaceholder.cjs");
5
6
  const _interopNamespaceDefaultOnly = (e) => Object.freeze(Object.defineProperty({ __proto__: null, default: e }, Symbol.toStringTag, { value: "Module" }));
6
7
  const ProcaptchaWidget = React.lazy(async () => Promise.resolve().then(() => /* @__PURE__ */ _interopNamespaceDefaultOnly(require("./ProcaptchaWidget.cjs"))));
7
8
  const Procaptcha = (props) => /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(CaptchaPlaceholder.ProcaptchaPlaceholder, { darkMode: props.config.theme }), children: /* @__PURE__ */ jsxRuntime.jsx(ProcaptchaWidget, { config: props.config, callbacks: props.callbacks }) });
@@ -1,45 +1,17 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ require("../web-components/dist/index.cjs");
3
4
  const procaptcha = require("@prosopo/procaptcha");
4
- const LoadingSpinner = require("./LoadingSpinner.cjs");
5
- const react = require("@emotion/react");
6
- const theme = require("./theme.cjs");
7
5
  const React = require("react");
8
6
  const CaptchaComponent = require("./CaptchaComponent.cjs");
9
- const Checkbox = require("./Checkbox.cjs");
10
7
  const collector = require("./collector.cjs");
11
8
  const Modal = require("./Modal.cjs");
12
- const logoStyle = react.css`
13
- align-items: center;
14
- justify-content: flex-end;
15
- display: flex;
16
- padding: 8px;
17
-
18
- @media (max-width: 245px) {
19
- &:nth-of-type(1),
20
- &:nth-of-type(2) {
21
- display: none;
22
- } /* Both logos hidden */
23
- }
24
-
25
- @media (min-width: 245px) and (max-width: 400px) {
26
- &:nth-of-type(1) {
27
- display: flex;
28
- } /* logoWithText */
29
- &:nth-of-type(2) {
30
- display: none;
31
- } /* logoWithoutText */
32
- }
33
-
34
- @media (min-width: 401px) {
35
- &:nth-of-type(1) {
36
- display: none;
37
- } /* logoWithText */
38
- &:nth-of-type(2) {
39
- display: flex;
40
- } /* logoWithoutText */
41
- }
42
- `;
9
+ const theme = require("../web-components/dist/theme.cjs");
10
+ const Containers = require("../web-components/dist/Containers.cjs");
11
+ const WidgetConstants = require("../web-components/dist/WidgetConstants.cjs");
12
+ const Checkbox = require("../web-components/dist/Checkbox.cjs");
13
+ const LoadingSpinner = require("../web-components/dist/LoadingSpinner.cjs");
14
+ const Logo = require("../web-components/dist/Logo.cjs");
43
15
  const useRefAsState = (defaultValue) => {
44
16
  const ref = React.useRef(defaultValue);
45
17
  const setter = (value2) => {
@@ -119,142 +91,109 @@ const useProcaptcha = () => {
119
91
  ];
120
92
  };
121
93
  const ProcaptchaWidget = (props) => {
122
- console.log("config", props.config);
123
94
  const config = props.config;
124
95
  const callbacks = props.callbacks || {};
125
96
  const [state, updateState] = useProcaptcha();
126
- console.log("state", state);
127
97
  const manager = procaptcha.Manager(config, state, updateState, callbacks);
128
- const styleWidth = { maxWidth: "400px", minWidth: "200px", margin: "8px" };
129
98
  const themeColor = props.config.theme === "light" ? "light" : "dark";
130
99
  const theme$1 = React.useMemo(() => props.config.theme === "light" ? theme.lightTheme : theme.darkTheme, [props.config.theme]);
131
- console.log("theme", theme$1);
132
- console.log("showModal", state.showModal);
133
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
134
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { maxWidth: "100%", maxHeight: "100%", overflowX: "auto" }, children: [
135
- /* @__PURE__ */ jsxRuntime.jsx(Modal, { show: state.showModal, children: state.challenge ? /* @__PURE__ */ jsxRuntime.jsx(
136
- CaptchaComponent,
137
- {
138
- challenge: state.challenge,
139
- index: state.index,
140
- solutions: state.solutions,
141
- onSubmit: manager.submit,
142
- onCancel: manager.cancel,
143
- onClick: manager.select,
144
- onNext: manager.nextRound,
145
- themeColor: config.theme ?? "light"
146
- }
147
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: "No challenge set." }) }),
148
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: styleWidth, "data-cy": "button-human", children: [
100
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { maxWidth: "100%", maxHeight: "100%", overflowX: "auto" }, children: [
101
+ /* @__PURE__ */ jsxRuntime.jsx(Modal, { show: state.showModal, children: state.challenge ? /* @__PURE__ */ jsxRuntime.jsx(
102
+ CaptchaComponent,
103
+ {
104
+ challenge: state.challenge,
105
+ index: state.index,
106
+ solutions: state.solutions,
107
+ onSubmit: manager.submit,
108
+ onCancel: manager.cancel,
109
+ onClick: manager.select,
110
+ onNext: manager.nextRound,
111
+ themeColor: config.theme ?? "light"
112
+ }
113
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: "No challenge set." }) }),
114
+ /* @__PURE__ */ jsxRuntime.jsxs(Containers.ContainerDiv, { children: [
115
+ /* @__PURE__ */ jsxRuntime.jsx(Containers.WidthBasedStylesDiv, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: WidgetConstants.WIDGET_DIMENSIONS, "data-cy": "button-human", children: [
149
116
  " ",
150
117
  /* @__PURE__ */ jsxRuntime.jsxs(
151
118
  "div",
152
119
  {
153
120
  style: {
154
- padding: "8px",
121
+ padding: "2px",
155
122
  border: "1px solid",
156
123
  backgroundColor: theme$1.palette.background.default,
157
124
  borderColor: theme$1.palette.grey[300],
158
125
  borderRadius: "8px",
159
126
  display: "flex",
160
- justifyContent: "space-between",
161
127
  alignItems: "center",
162
- flexWrap: "wrap"
128
+ flexWrap: "wrap",
129
+ justifyContent: "space-between",
130
+ minHeight: `${WidgetConstants.WIDGET_INNER_HEIGHT}px`,
131
+ overflow: "hidden"
163
132
  },
164
133
  children: [
165
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ jsxRuntime.jsxs(
134
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "inline-flex", flexDirection: "column" }, children: /* @__PURE__ */ jsxRuntime.jsx(
166
135
  "div",
167
136
  {
168
137
  style: {
169
- display: "flex",
170
- justifyContent: "flex-start",
171
138
  alignItems: "center",
172
- flexWrap: "wrap"
139
+ flex: 1
173
140
  },
174
- children: [
175
- /* @__PURE__ */ jsxRuntime.jsxs(
176
- "div",
177
- {
178
- style: {
179
- height: "50px",
180
- width: "50px",
181
- display: "flex",
182
- alignItems: "center",
183
- justifyContent: "center",
184
- flexDirection: "column",
185
- verticalAlign: "middle"
186
- },
187
- children: [
188
- /* @__PURE__ */ jsxRuntime.jsx(
189
- "div",
190
- {
191
- style: {
192
- display: !state.loading ? "flex" : "none"
193
- },
194
- children: /* @__PURE__ */ jsxRuntime.jsx(
195
- Checkbox,
196
- {
197
- themeColor,
198
- onChange: manager.start,
199
- checked: state.isHuman
200
- }
201
- )
202
- }
203
- ),
204
- /* @__PURE__ */ jsxRuntime.jsx(
205
- "div",
206
- {
207
- style: {
208
- display: state.loading ? "flex" : "none"
209
- },
210
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(LoadingSpinner.LoadingSpinner, { themeColor }) })
211
- }
212
- )
213
- ]
214
- }
215
- ),
216
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: theme$1.palette.background.contrastText, paddingLeft: "4px" }, children: "I am a human" }) })
217
- ]
141
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
142
+ "div",
143
+ {
144
+ style: {
145
+ display: "flex",
146
+ alignItems: "center",
147
+ justifyContent: "center",
148
+ flexDirection: "column",
149
+ verticalAlign: "middle"
150
+ },
151
+ children: [
152
+ /* @__PURE__ */ jsxRuntime.jsx(
153
+ "div",
154
+ {
155
+ style: {
156
+ display: !state.loading ? "flex" : "none"
157
+ },
158
+ children: /* @__PURE__ */ jsxRuntime.jsx(
159
+ Checkbox.Checkbox,
160
+ {
161
+ themeColor,
162
+ onChange: manager.start,
163
+ checked: state.isHuman,
164
+ labelText: "I am human"
165
+ }
166
+ )
167
+ }
168
+ ),
169
+ /* @__PURE__ */ jsxRuntime.jsx(
170
+ "div",
171
+ {
172
+ style: {
173
+ display: state.loading ? "flex" : "none"
174
+ },
175
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "inline-flex" }, children: /* @__PURE__ */ jsxRuntime.jsx(LoadingSpinner.LoadingSpinner, { themeColor }) })
176
+ }
177
+ )
178
+ ]
179
+ }
180
+ )
218
181
  }
219
182
  ) }),
220
- /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
221
- "a",
222
- {
223
- href: "https://www.prosopo.io/#features?ref=accounts.prosopo.io&utm_campaign=widget&utm_medium=checkbox",
224
- target: "_blank",
225
- "aria-label": "Visit prosopo.io to learn more about the service and its accessibility options.",
226
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
227
- /* @__PURE__ */ jsxRuntime.jsx(
228
- "div",
229
- {
230
- css: logoStyle,
231
- dangerouslySetInnerHTML: {
232
- __html: props.config.theme === "light" ? logoWithoutTextBlack : logoWithoutTextWhite
233
- }
234
- }
235
- ),
236
- /* @__PURE__ */ jsxRuntime.jsx(
237
- "div",
238
- {
239
- css: logoStyle,
240
- dangerouslySetInnerHTML: {
241
- __html: props.config.theme === "light" ? logoWithTextBlack : logoWithTextWhite
242
- }
243
- }
244
- )
245
- ] }) })
246
- }
247
- ) })
183
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "inline-flex", flexDirection: "column" }, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: WidgetConstants.WIDGET_URL, target: "_blank", "aria-label": WidgetConstants.WIDGET_URL_TEXT, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(Logo, { themeColor }) }) }) })
248
184
  ]
249
185
  }
250
186
  )
251
- ] })
252
- ] }),
253
- config.devOnlyWatchEvents && /* @__PURE__ */ jsxRuntime.jsx(collector, { onProcessData: manager.exportData, sendData: state.showModal })
254
- ] });
187
+ ] }) }),
188
+ config.devOnlyWatchEvents && /* @__PURE__ */ jsxRuntime.jsx(
189
+ collector,
190
+ {
191
+ onProcessData: manager.exportData,
192
+ sendData: state.sendData,
193
+ account: state.account
194
+ }
195
+ )
196
+ ] })
197
+ ] }) });
255
198
  };
256
- const logoWithTextBlack = '<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2062.63 468.67" height="35px" width="140px"><defs><style>.cls-1{fill:#1d1d1b;}</style></defs><title>Prosopo Logo Black</title><path class="cls-1" d="M335.55,1825.19A147.75,147.75,0,0,1,483.3,1972.94h50.5c0-109.49-88.76-198.25-198.25-198.25v50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M269.36,1891.39A147.74,147.74,0,0,1,417.1,2039.13h50.5c0-109.49-88.75-198.24-198.24-198.24v50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M414,2157.17a147.75,147.75,0,0,1-147.74-147.74h-50.5c0,109.49,88.75,198.24,198.24,198.24v-50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M480.17,2091a147.74,147.74,0,0,1-147.74-147.75H281.92c0,109.49,88.76,198.25,198.25,198.25V2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M862.8,2017.5q-27.39,22.86-78.25,22.86h-65v112.19H654.82v-312h134q46.32,0,73.86,24.13t27.55,74.72Q890.2,1994.64,862.8,2017.5ZM813,1905.1q-12.37-10.36-34.7-10.38H719.59v91.87h58.75q22.32,0,34.7-11.22t12.39-35.56Q825.43,1915.48,813,1905.1Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1045.69,1916.42c.78.08,2.51.19,5.19.32v61.81c-3.81-.42-7.2-.71-10.16-.85s-5.36-.21-7.2-.21q-36.4,0-48.89,23.71-7,13.33-7,41.06v110.29H916.89V1921.82h57.58V1962q14-23.07,24.34-31.54,16.94-14.18,44-14.18C1044,1916.32,1044.92,1916.35,1045.69,1916.42Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1265.64,2124.32q-29.21,36.06-88.69,36.06t-88.69-36.06Q1059,2088.26,1059,2037.5q0-49.9,29.22-86.5t88.69-36.59q59.47,0,88.69,36.59t29.21,86.5Q1294.85,2088.26,1265.64,2124.32ZM1217.38,2091q14.17-18.81,14.18-53.48t-14.18-53.37q-14.19-18.7-40.64-18.71T1136,1984.13q-14.29,18.72-14.29,53.37T1136,2091q14.28,18.81,40.75,18.81T1217.38,2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1371.81,2078.88q1.92,16.1,8.29,22.87,11.28,12.06,41.7,12.06,17.85,0,28.39-5.29t10.53-15.88a17.12,17.12,0,0,0-8.48-15.45q-8.49-5.28-63.12-18.2-39.33-9.73-55.41-24.35-16.08-14.39-16.09-41.49,0-32,25.14-54.93t70.75-23q43.26,0,70.53,17.25t31.29,59.59H1455q-1.27-11.64-6.58-18.42-10-12.27-34-12.28-19.74,0-28.13,6.14t-8.38,14.4c0,6.91,3,11.93,8.92,15q8.89,4.89,63,16.73,36,8.46,54.05,25.61,17.77,17.35,17.78,43.39,0,34.3-25.56,56t-79,21.7q-54.51,0-80.49-23t-26-58.53Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1745.54,2124.32q-29.22,36.06-88.7,36.06t-88.69-36.06q-29.2-36.06-29.21-86.82,0-49.9,29.21-86.5t88.69-36.59q59.49,0,88.7,36.59t29.21,86.5Q1774.75,2088.26,1745.54,2124.32ZM1697.27,2091q14.19-18.81,14.19-53.48t-14.19-53.37q-14.18-18.7-40.64-18.71t-40.75,18.71q-14.28,18.72-14.28,53.37t14.28,53.48q14.3,18.81,40.75,18.81T1697.27,2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1992.75,1946.59q28.24,29.84,28.23,87.63,0,61-27.58,92.93t-71.06,32q-27.69,0-46-13.76-10-7.62-19.6-22.23v120.24H1797V1921.82h57.79v34.08q9.79-15,20.88-23.71,20.23-15.43,48.15-15.45Q1964.53,1916.74,1992.75,1946.59Zm-46.3,43.39q-12.3-20.52-39.88-20.53-33.15,0-45.54,31.11-6.43,16.51-6.42,41.92,0,40.21,21.58,56.51,12.82,9.53,30.37,9.53,25.45,0,38.83-19.48t13.36-51.86Q1958.75,2010.51,1946.45,1990Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M2249.14,2124.32q-29.2,36.06-88.69,36.06t-88.69-36.06q-29.22-36.06-29.21-86.82,0-49.9,29.21-86.5t88.69-36.59q59.49,0,88.69,36.59t29.22,86.5Q2278.36,2088.26,2249.14,2124.32ZM2200.88,2091q14.19-18.81,14.18-53.48t-14.18-53.37q-14.18-18.7-40.64-18.71t-40.75,18.71q-14.28,18.72-14.29,53.37t14.29,53.48q14.3,18.81,40.75,18.81T2200.88,2091Z" transform="translate(-215.73 -1774.69)"/></svg>';
257
- const logoWithTextWhite = '<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2062.63 468.67" height="35px" width="140px"><defs><style>.cls-1{fill:#fff;}</style></defs><title>Prosopo Logo Black</title><path class="cls-1" d="M335.55,1825.19A147.75,147.75,0,0,1,483.3,1972.94h50.5c0-109.49-88.76-198.25-198.25-198.25v50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M269.36,1891.39A147.74,147.74,0,0,1,417.1,2039.13h50.5c0-109.49-88.75-198.24-198.24-198.24v50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M414,2157.17a147.75,147.75,0,0,1-147.74-147.74h-50.5c0,109.49,88.75,198.24,198.24,198.24v-50.5Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M480.17,2091a147.74,147.74,0,0,1-147.74-147.75H281.92c0,109.49,88.76,198.25,198.25,198.25V2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M862.8,2017.5q-27.39,22.86-78.25,22.86h-65v112.19H654.82v-312h134q46.32,0,73.86,24.13t27.55,74.72Q890.2,1994.64,862.8,2017.5ZM813,1905.1q-12.37-10.36-34.7-10.38H719.59v91.87h58.75q22.32,0,34.7-11.22t12.39-35.56Q825.43,1915.48,813,1905.1Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1045.69,1916.42c.78.08,2.51.19,5.19.32v61.81c-3.81-.42-7.2-.71-10.16-.85s-5.36-.21-7.2-.21q-36.4,0-48.89,23.71-7,13.33-7,41.06v110.29H916.89V1921.82h57.58V1962q14-23.07,24.34-31.54,16.94-14.18,44-14.18C1044,1916.32,1044.92,1916.35,1045.69,1916.42Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1265.64,2124.32q-29.21,36.06-88.69,36.06t-88.69-36.06Q1059,2088.26,1059,2037.5q0-49.9,29.22-86.5t88.69-36.59q59.47,0,88.69,36.59t29.21,86.5Q1294.85,2088.26,1265.64,2124.32ZM1217.38,2091q14.17-18.81,14.18-53.48t-14.18-53.37q-14.19-18.7-40.64-18.71T1136,1984.13q-14.29,18.72-14.29,53.37T1136,2091q14.28,18.81,40.75,18.81T1217.38,2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1371.81,2078.88q1.92,16.1,8.29,22.87,11.28,12.06,41.7,12.06,17.85,0,28.39-5.29t10.53-15.88a17.12,17.12,0,0,0-8.48-15.45q-8.49-5.28-63.12-18.2-39.33-9.73-55.41-24.35-16.08-14.39-16.09-41.49,0-32,25.14-54.93t70.75-23q43.26,0,70.53,17.25t31.29,59.59H1455q-1.27-11.64-6.58-18.42-10-12.27-34-12.28-19.74,0-28.13,6.14t-8.38,14.4c0,6.91,3,11.93,8.92,15q8.89,4.89,63,16.73,36,8.46,54.05,25.61,17.77,17.35,17.78,43.39,0,34.3-25.56,56t-79,21.7q-54.51,0-80.49-23t-26-58.53Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1745.54,2124.32q-29.22,36.06-88.7,36.06t-88.69-36.06q-29.2-36.06-29.21-86.82,0-49.9,29.21-86.5t88.69-36.59q59.49,0,88.7,36.59t29.21,86.5Q1774.75,2088.26,1745.54,2124.32ZM1697.27,2091q14.19-18.81,14.19-53.48t-14.19-53.37q-14.18-18.7-40.64-18.71t-40.75,18.71q-14.28,18.72-14.28,53.37t14.28,53.48q14.3,18.81,40.75,18.81T1697.27,2091Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M1992.75,1946.59q28.24,29.84,28.23,87.63,0,61-27.58,92.93t-71.06,32q-27.69,0-46-13.76-10-7.62-19.6-22.23v120.24H1797V1921.82h57.79v34.08q9.79-15,20.88-23.71,20.23-15.43,48.15-15.45Q1964.53,1916.74,1992.75,1946.59Zm-46.3,43.39q-12.3-20.52-39.88-20.53-33.15,0-45.54,31.11-6.43,16.51-6.42,41.92,0,40.21,21.58,56.51,12.82,9.53,30.37,9.53,25.45,0,38.83-19.48t13.36-51.86Q1958.75,2010.51,1946.45,1990Z" transform="translate(-215.73 -1774.69)"/><path class="cls-1" d="M2249.14,2124.32q-29.2,36.06-88.69,36.06t-88.69-36.06q-29.22-36.06-29.21-86.82,0-49.9,29.21-86.5t88.69-36.59q59.49,0,88.69,36.59t29.22,86.5Q2278.36,2088.26,2249.14,2124.32ZM2200.88,2091q14.19-18.81,14.18-53.48t-14.18-53.37q-14.18-18.7-40.64-18.71t-40.75,18.71q-14.28,18.72-14.29,53.37t14.29,53.48q14.3,18.81,40.75,18.81T2200.88,2091Z" transform="translate(-215.73 -1774.69)"/></svg>';
258
- const logoWithoutTextWhite = '<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 260 348" height="35px"><path id="Vector" d="M95.7053 40.2707C127.005 40.2707 157.022 52.6841 179.154 74.78C201.286 96.8759 213.719 126.844 213.719 158.093H254.056C254.056 70.7808 183.16 -4.57764e-05 95.7053 -4.57764e-05V40.2707Z" fill="#fff"/><path id="Vector_2" d="M42.8365 93.0614C58.3333 93.0614 73.6784 96.1087 87.9955 102.029C102.313 107.95 115.322 116.628 126.279 127.568C137.237 138.508 145.93 151.496 151.86 165.79C157.79 180.084 160.843 195.404 160.843 210.875H201.179C201.179 123.564 130.291 52.7906 42.8365 52.7906V93.0614Z" fill="#fff"/><path id="Vector_3" d="M158.367 305.005C127.07 305.003 97.056 292.59 74.926 270.496C52.796 248.402 40.3626 218.437 40.3604 187.191H0.0239563C0.0239563 274.503 70.9123 345.276 158.367 345.276V305.005Z" fill="#fff"/><path id="Vector_4" d="M211.219 252.239C195.722 252.239 180.376 249.191 166.059 243.27C151.741 237.349 138.732 228.67 127.774 217.729C116.816 206.788 108.123 193.799 102.194 179.505C96.2637 165.21 93.2121 149.889 93.2132 134.417H52.8687C52.8687 221.729 123.765 292.509 211.219 292.509V252.239Z" fill="#fff"/></g><defs><clipPath id="clip0_1_2"><rect width="254" height="345" fill="white"/></clipPath></defs></svg>';
259
- const logoWithoutTextBlack = '<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 260 348" height="35px"><path id="Vector" d="M95.7053 40.2707C127.005 40.2707 157.022 52.6841 179.154 74.78C201.286 96.8759 213.719 126.844 213.719 158.093H254.056C254.056 70.7808 183.16 -4.57764e-05 95.7053 -4.57764e-05V40.2707Z" fill="#000000"/><path id="Vector_2" d="M42.8365 93.0614C58.3333 93.0614 73.6784 96.1087 87.9955 102.029C102.313 107.95 115.322 116.628 126.279 127.568C137.237 138.508 145.93 151.496 151.86 165.79C157.79 180.084 160.843 195.404 160.843 210.875H201.179C201.179 123.564 130.291 52.7906 42.8365 52.7906V93.0614Z" fill="#000000"/><path id="Vector_3" d="M158.367 305.005C127.07 305.003 97.056 292.59 74.926 270.496C52.796 248.402 40.3626 218.437 40.3604 187.191H0.0239563C0.0239563 274.503 70.9123 345.276 158.367 345.276V305.005Z" fill="#000000"/><path id="Vector_4" d="M211.219 252.239C195.722 252.239 180.376 249.191 166.059 243.27C151.741 237.349 138.732 228.67 127.774 217.729C116.816 206.788 108.123 193.799 102.194 179.505C96.2637 165.21 93.2121 149.889 93.2132 134.417H52.8687C52.8687 221.729 123.765 292.509 211.219 292.509V252.239Z" fill="#000000"/></g><defs><clipPath id="clip0_1_2"><rect width="254" height="345" fill="white"/></clipPath></defs></svg>';
260
199
  module.exports = ProcaptchaWidget;
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("@emotion/react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const procaptcha = require("@prosopo/procaptcha");
5
- const Collector = ({ onProcessData, sendData }) => {
5
+ const Collector = ({ onProcessData, sendData, account }) => {
6
6
  const [mouseEvents, setStoredMouseEvents] = React.useState([]);
7
7
  const [touchEvents, setStoredTouchEvents] = React.useState([]);
8
8
  const [keyboardEvents, setStoredKeyboardEvents] = React.useState([]);
@@ -18,8 +18,9 @@ const Collector = ({ onProcessData, sendData }) => {
18
18
  touchEvents,
19
19
  keyboardEvents
20
20
  };
21
- onProcessData(userEvents);
22
- }, [sendData]);
21
+ if (account)
22
+ onProcessData(userEvents);
23
+ }, [sendData, account]);
23
24
  return /* @__PURE__ */ jsxRuntime.jsx("div", { ref });
24
25
  };
25
26
  module.exports = Collector;
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("./components/index.cjs");
4
4
  require("./util/index.cjs");
5
- const ExtensionAccountSelect = require("./components/ExtensionAccountSelect.cjs");
6
5
  const ProcaptchaWidget = require("./components/ProcaptchaWidget.cjs");
7
6
  const Procaptcha = require("./components/Procaptcha.cjs");
8
7
  const CaptchaWidget = require("./components/CaptchaWidget.cjs");
9
- exports.ExtensionAccountSelect = ExtensionAccountSelect.ExtensionAccountSelect;
8
+ const ExtensionAccountSelect = require("./components/ExtensionAccountSelect.cjs");
10
9
  exports.ProcaptchaWidget = ProcaptchaWidget;
11
10
  exports.Procaptcha = Procaptcha;
12
11
  exports.CaptchaWidget = CaptchaWidget.CaptchaWidget;
12
+ exports.ExtensionAccountSelect = ExtensionAccountSelect.ExtensionAccountSelect;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
+ const Containers = require("./Containers.cjs");
5
+ const LoadingSpinner = require("./LoadingSpinner.cjs");
6
+ const WidgetConstants = require("./WidgetConstants.cjs");
7
+ const theme = require("./theme.cjs");
8
+ const React = require("react");
9
+ const Logo = require("./Logo.cjs");
10
+ const ProcaptchaPlaceholder = (props) => {
11
+ const darkMode = props.darkMode;
12
+ const themeColor = props.darkMode === "light" ? "light" : "dark";
13
+ const theme$1 = React.useMemo(() => darkMode === "light" ? theme.lightTheme : theme.darkTheme, [darkMode]);
14
+ return jsxRuntime.jsx("div", { children: jsxRuntime.jsx("div", { style: { maxWidth: "100%", maxHeight: "100%", overflowX: "auto" }, children: jsxRuntime.jsx(Containers.ContainerDiv, { children: jsxRuntime.jsx(Containers.WidthBasedStylesDiv, { children: jsxRuntime.jsxs("div", { style: WidgetConstants.WIDGET_DIMENSIONS, "data-cy": "button-human", children: [" ", jsxRuntime.jsxs("div", { style: {
15
+ padding: "2px",
16
+ border: "1px solid",
17
+ backgroundColor: theme$1.palette.background.default,
18
+ borderColor: theme$1.palette.grey[300],
19
+ borderRadius: "8px",
20
+ display: "flex",
21
+ alignItems: "center",
22
+ flexWrap: "wrap",
23
+ justifyContent: "space-between",
24
+ minHeight: `${WidgetConstants.WIDGET_INNER_HEIGHT}px`,
25
+ overflow: "hidden"
26
+ }, children: [jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: jsxRuntime.jsx("div", { style: {
27
+ alignItems: "center",
28
+ flex: 1
29
+ }, children: jsxRuntime.jsx("div", { style: {
30
+ display: "flex",
31
+ alignItems: "center",
32
+ justifyContent: "center",
33
+ flexDirection: "column",
34
+ verticalAlign: "middle"
35
+ }, children: jsxRuntime.jsx("div", { style: {
36
+ display: "flex"
37
+ }, children: jsxRuntime.jsx("div", { style: { display: "inline-flex" }, children: jsxRuntime.jsx(LoadingSpinner.LoadingSpinner, { themeColor }) }) }) }) }) }), jsxRuntime.jsx("div", { style: { display: "inline-flex", flexDirection: "column" }, children: jsxRuntime.jsx("a", { href: WidgetConstants.WIDGET_URL, target: "_blank", "aria-label": WidgetConstants.WIDGET_URL_TEXT, children: jsxRuntime.jsx("div", { style: { flex: 1 }, children: jsxRuntime.jsx(Logo, { themeColor }) }) }) })] })] }) }) }) }) });
38
+ };
39
+ exports.ProcaptchaPlaceholder = ProcaptchaPlaceholder;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
+ const react = require("@emotion/react");
5
+ const theme = require("./theme.cjs");
6
+ const React = require("react");
7
+ const checkboxBefore = react.css`{
8
+ &:before {
9
+ content: '""';
10
+ position: absolute;
11
+ height: 100%;
12
+ width: 100%;
13
+ }
14
+ }`;
15
+ const baseStyle = {
16
+ width: "28px",
17
+ height: "28px",
18
+ top: "auto",
19
+ left: "auto",
20
+ opacity: "1",
21
+ borderRadius: "12.5%",
22
+ appearance: "none",
23
+ cursor: "pointer",
24
+ margin: "0",
25
+ borderStyle: "solid",
26
+ borderWidth: "1px"
27
+ };
28
+ const Checkbox = ({ themeColor, onChange, checked, labelText }) => {
29
+ const theme$1 = React.useMemo(() => themeColor === "light" ? theme.lightTheme : theme.darkTheme, [themeColor]);
30
+ const checkboxStyleBase = {
31
+ ...baseStyle,
32
+ border: `1px solid ${theme$1.palette.background.contrastText}`
33
+ };
34
+ const [hover, setHover] = React.useState(false);
35
+ const checkboxStyle = React.useMemo(() => {
36
+ return {
37
+ ...checkboxStyleBase,
38
+ borderColor: hover ? theme$1.palette.background.contrastText : theme$1.palette.grey[400],
39
+ appearance: checked ? "auto" : "none",
40
+ flex: 1,
41
+ margin: "0 15px"
42
+ };
43
+ }, [hover, theme$1, checked]);
44
+ const id = React.useId();
45
+ return jsxRuntime.jsxs("span", { style: { display: "inline-flex" }, children: [jsxRuntime.jsx("input", { name: id, onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), css: checkboxBefore, type: "checkbox", "aria-live": "assertive", "aria-haspopup": "true", onChange, checked, style: checkboxStyle }), jsxRuntime.jsx("label", { css: {
46
+ color: theme$1.palette.background.contrastText,
47
+ position: "relative",
48
+ display: "flex",
49
+ cursor: "pointer",
50
+ userSelect: "none",
51
+ top: "4px"
52
+ }, htmlFor: id, children: labelText })] });
53
+ };
54
+ exports.Checkbox = Checkbox;
55
+ exports.default = Checkbox;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const WidgetConstants = require("./WidgetConstants.cjs");
4
+ const styled = require("@emotion/styled");
5
+ const ContainerDiv = styled.div`
6
+ container-type: inline-size;
7
+ `;
8
+ const WidthBasedStylesDiv = styled.div`
9
+ max-width: 100%;
10
+ max-height: 100%;
11
+ overflow: hidden;
12
+ height: ${WidgetConstants.WIDGET_OUTER_HEIGHT}px;
13
+ @container (max-width: 243px) {
14
+ #logo-without-text {
15
+ display: none;
16
+ }
17
+
18
+ #logo-with-text {
19
+ display: none;
20
+ }
21
+ }
22
+ @container (min-width: 244px) and (max-width: 339px) {
23
+ #logo-without-text {
24
+ display: inherit;
25
+ }
26
+
27
+ #logo-with-text {
28
+ display: none;
29
+ }
30
+ }
31
+ @container (min-width: 340px) {
32
+ #logo-without-text {
33
+ display: none;
34
+ }
35
+
36
+ #logo-with-text {
37
+ display: inherit;
38
+ }
39
+ }
40
+ `;
41
+ exports.ContainerDiv = ContainerDiv;
42
+ exports.WidthBasedStylesDiv = WidthBasedStylesDiv;
@@ -7,6 +7,9 @@ const styled = require("@emotion/styled");
7
7
  const LoadingSpinner = ({ themeColor }) => {
8
8
  const theme$1 = React.useMemo(() => themeColor === "light" ? theme.lightTheme : theme.darkTheme, [themeColor]);
9
9
  const StyledDiv = styled.div`
10
+ margin-top: 0;
11
+ margin-left: 15px;
12
+ margin-right: 15px;
10
13
  width: 2em;
11
14
  height: 2em;
12
15
  border: 4px solid ${theme$1.palette.background.contrastText};
@@ -15,6 +18,7 @@ const LoadingSpinner = ({ themeColor }) => {
15
18
  display: inherit;
16
19
  box-sizing: border-box;
17
20
  animation: rotation 1s linear infinite;
21
+
18
22
  @keyframes rotation {
19
23
  0% {
20
24
  transform: rotate(0deg);
@@ -24,7 +28,7 @@ const LoadingSpinner = ({ themeColor }) => {
24
28
  }
25
29
  }
26
30
  `;
27
- return /* @__PURE__ */ jsxRuntime.jsx(StyledDiv, {});
31
+ return jsxRuntime.jsx(StyledDiv, {});
28
32
  };
29
33
  exports.LoadingSpinner = LoadingSpinner;
30
34
  exports.default = LoadingSpinner;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const LogoWithText = require("./LogoWithText.cjs");
4
+ const LogoWithoutText = require("./LogoWithoutText.cjs");
5
+ const styled = require("@emotion/styled");
6
+ const LogoContainer = styled.div`
7
+ padding: 8px;
8
+ flex: 1 1 0;
9
+ `;
10
+ const LogoInnerContainer = styled.div`
11
+ padding: 8px;
12
+ `;
13
+ const Logo = ({ themeColor }) => {
14
+ return jsxRuntime.jsx(LogoContainer, { children: jsxRuntime.jsxs(LogoInnerContainer, { children: [jsxRuntime.jsx(LogoWithoutText.LogoWithoutText, { themeColor }), jsxRuntime.jsx(LogoWithText.LogoWithText, { themeColor })] }) });
15
+ };
16
+ module.exports = Logo;