@xsolla/xui-gdpr-banner 0.206.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/index.js ADDED
@@ -0,0 +1,951 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.tsx
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ DEFAULT_CATEGORIES: () => DEFAULT_CATEGORIES,
34
+ DEFAULT_LABELS: () => DEFAULT_LABELS,
35
+ GdprBanner: () => GdprBanner,
36
+ PrivacySettings: () => PrivacySettings
37
+ });
38
+ module.exports = __toCommonJS(index_exports);
39
+
40
+ // src/GdprBanner.tsx
41
+ var import_react3 = require("react");
42
+
43
+ // ../../foundation/primitives-web/src/Box.tsx
44
+ var import_react2 = __toESM(require("react"));
45
+ var import_styled_components = __toESM(require("styled-components"));
46
+
47
+ // ../../foundation/primitives-web/src/filterDOMProps.ts
48
+ var import_react = __toESM(require("react"));
49
+
50
+ // ../../../node_modules/@emotion/memoize/dist/memoize.esm.js
51
+ function memoize(fn) {
52
+ var cache = {};
53
+ return function(arg) {
54
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
55
+ return cache[arg];
56
+ };
57
+ }
58
+ var memoize_esm_default = memoize;
59
+
60
+ // ../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js
61
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
62
+ var index = memoize_esm_default(
63
+ function(prop) {
64
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
65
+ }
66
+ /* Z+1 */
67
+ );
68
+ var is_prop_valid_esm_default = index;
69
+
70
+ // ../../foundation/primitives-web/src/filterDOMProps.ts
71
+ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
72
+ // RN-only event handlers (pass isPropValid's on* pattern)
73
+ "onPress",
74
+ "onChangeText",
75
+ "onLayout",
76
+ "onMoveShouldSetResponder",
77
+ "onResponderGrant",
78
+ "onResponderMove",
79
+ "onResponderRelease",
80
+ "onResponderTerminate",
81
+ // SVG attributes that pass isPropValid
82
+ "strokeWidth",
83
+ // CSS properties that pass isPropValid but are used as component props
84
+ "overflow",
85
+ "opacity",
86
+ "cursor",
87
+ "fontSize",
88
+ "fontWeight",
89
+ "fontFamily",
90
+ "textDecoration",
91
+ // Cross-platform layout prop that Text consumes as CSS, never as an
92
+ // attribute. Pinned explicitly because it is now spread into the styled
93
+ // component rather than destructured away before it can reach the DOM.
94
+ "numberOfLines"
95
+ ]);
96
+ function shouldForwardProp(key) {
97
+ if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;
98
+ return is_prop_valid_esm_default(key);
99
+ }
100
+ function createFilteredElement(defaultTag) {
101
+ const Component = import_react.default.forwardRef(
102
+ ({ children, elementType, ...props }, ref) => {
103
+ const Tag = elementType || defaultTag;
104
+ const htmlProps = {};
105
+ for (const key of Object.keys(props)) {
106
+ if (shouldForwardProp(key)) {
107
+ htmlProps[key] = props[key];
108
+ }
109
+ }
110
+ return import_react.default.createElement(
111
+ Tag,
112
+ { ref, ...htmlProps },
113
+ children
114
+ );
115
+ }
116
+ );
117
+ Component.displayName = `Filtered(${defaultTag})`;
118
+ return Component;
119
+ }
120
+
121
+ // ../../foundation/primitives-web/src/Box.tsx
122
+ var import_jsx_runtime = require("react/jsx-runtime");
123
+ var FilteredDiv = createFilteredElement("div");
124
+ var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
125
+ display: flex;
126
+ box-sizing: border-box;
127
+ background-color: ${(props) => props.backgroundColor || "transparent"};
128
+ border-color: ${(props) => props.borderColor || "transparent"};
129
+ border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
130
+
131
+ ${(props) => props.borderBottomWidth !== void 0 && `
132
+ border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
133
+ border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
134
+ border-bottom-style: solid;
135
+ `}
136
+ ${(props) => props.borderTopWidth !== void 0 && `
137
+ border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
138
+ border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
139
+ border-top-style: solid;
140
+ `}
141
+ ${(props) => props.borderLeftWidth !== void 0 && `
142
+ border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
143
+ border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
144
+ border-left-style: solid;
145
+ `}
146
+ ${(props) => props.borderRightWidth !== void 0 && `
147
+ border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
148
+ border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
149
+ border-right-style: solid;
150
+ `}
151
+
152
+ border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
153
+ border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
154
+ height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
155
+ width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
156
+ min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
157
+ min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
158
+ max-width: ${(props) => typeof props.maxWidth === "number" ? `${props.maxWidth}px` : props.maxWidth || "none"};
159
+ max-height: ${(props) => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight || "none"};
160
+
161
+ padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
162
+ ${(props) => props.paddingHorizontal && `
163
+ padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
164
+ padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
165
+ `}
166
+ ${(props) => props.paddingVertical && `
167
+ padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
168
+ padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
169
+ `}
170
+ ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
171
+ ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
172
+ ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
173
+ ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
174
+
175
+ margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
176
+ ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
177
+ ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
178
+ ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
179
+ ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
180
+
181
+ flex-direction: ${(props) => props.flexDirection || "column"};
182
+ flex-wrap: ${(props) => props.flexWrap || "nowrap"};
183
+ align-items: ${(props) => props.alignItems || "stretch"};
184
+ justify-content: ${(props) => props.justifyContent || "flex-start"};
185
+ cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
186
+ position: ${(props) => props.position || "static"};
187
+ top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
188
+ bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
189
+ left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
190
+ right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
191
+ flex: ${(props) => props.flex};
192
+ flex-shrink: ${(props) => props.flexShrink ?? 1};
193
+ gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
194
+ align-self: ${(props) => props.alignSelf || "auto"};
195
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
196
+ visible after overflow would override the shorthand and break
197
+ clipping (e.g. OtherCard bottom-right promo image). */
198
+ overflow: ${(props) => props.overflow || "visible"};
199
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
200
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
201
+ z-index: ${(props) => props.zIndex};
202
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
203
+ pointer-events: ${(props) => props.disabled ? "none" : "auto"};
204
+
205
+ &:hover {
206
+ ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
207
+ ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
208
+ }
209
+
210
+ &:active {
211
+ ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
212
+ }
213
+ `;
214
+ var Box = import_react2.default.forwardRef(
215
+ ({
216
+ children,
217
+ onPress,
218
+ onKeyDown,
219
+ onKeyUp,
220
+ role,
221
+ "aria-label": ariaLabel,
222
+ "aria-labelledby": ariaLabelledBy,
223
+ "aria-current": ariaCurrent,
224
+ "aria-disabled": ariaDisabled,
225
+ "aria-live": ariaLive,
226
+ "aria-busy": ariaBusy,
227
+ "aria-describedby": ariaDescribedBy,
228
+ "aria-expanded": ariaExpanded,
229
+ "aria-haspopup": ariaHasPopup,
230
+ "aria-pressed": ariaPressed,
231
+ "aria-controls": ariaControls,
232
+ tabIndex,
233
+ as,
234
+ src,
235
+ alt,
236
+ onError,
237
+ onLoad,
238
+ type,
239
+ disabled,
240
+ id,
241
+ testID,
242
+ "data-testid": dataTestId,
243
+ ...props
244
+ }, ref) => {
245
+ if (as === "img" && src) {
246
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
247
+ "img",
248
+ {
249
+ src,
250
+ alt: alt || "",
251
+ onError,
252
+ onLoad,
253
+ "data-testid": dataTestId || testID,
254
+ style: {
255
+ display: "block",
256
+ objectFit: "cover",
257
+ width: typeof props.width === "number" ? `${props.width}px` : props.width,
258
+ height: typeof props.height === "number" ? `${props.height}px` : props.height,
259
+ borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
260
+ position: props.position,
261
+ top: typeof props.top === "number" ? `${props.top}px` : props.top,
262
+ left: typeof props.left === "number" ? `${props.left}px` : props.left,
263
+ right: typeof props.right === "number" ? `${props.right}px` : props.right,
264
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom,
265
+ ...props.style
266
+ }
267
+ }
268
+ );
269
+ }
270
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
271
+ StyledBox,
272
+ {
273
+ ref,
274
+ elementType: as,
275
+ id,
276
+ type: as === "button" ? type || "button" : void 0,
277
+ disabled: as === "button" ? disabled : void 0,
278
+ onClick: onPress,
279
+ onKeyDown,
280
+ onKeyUp,
281
+ role,
282
+ "aria-label": ariaLabel,
283
+ "aria-labelledby": ariaLabelledBy,
284
+ "aria-current": ariaCurrent,
285
+ "aria-disabled": ariaDisabled,
286
+ "aria-busy": ariaBusy,
287
+ "aria-describedby": ariaDescribedBy,
288
+ "aria-expanded": ariaExpanded,
289
+ "aria-haspopup": ariaHasPopup,
290
+ "aria-pressed": ariaPressed,
291
+ "aria-controls": ariaControls,
292
+ "aria-live": ariaLive,
293
+ tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
294
+ "data-testid": dataTestId || testID,
295
+ ...props,
296
+ children
297
+ }
298
+ );
299
+ }
300
+ );
301
+ Box.displayName = "Box";
302
+
303
+ // ../../foundation/primitives-web/src/Text.tsx
304
+ var import_styled_components2 = __toESM(require("styled-components"));
305
+
306
+ // ../../foundation/primitives-web/src/textTruncation.ts
307
+ var truncationStyles = (numberOfLines) => {
308
+ if (!numberOfLines || numberOfLines < 1) return "";
309
+ if (numberOfLines === 1) {
310
+ return `
311
+ display: block;
312
+ max-width: 100%;
313
+ min-width: 0;
314
+ overflow: hidden;
315
+ text-overflow: ellipsis;
316
+ white-space: nowrap;
317
+ `;
318
+ }
319
+ return `
320
+ display: -webkit-box;
321
+ -webkit-box-orient: vertical;
322
+ -webkit-line-clamp: ${numberOfLines};
323
+ line-clamp: ${numberOfLines};
324
+ max-width: 100%;
325
+ min-width: 0;
326
+ overflow: hidden;
327
+ `;
328
+ };
329
+
330
+ // ../../foundation/primitives-web/src/Text.tsx
331
+ var import_jsx_runtime2 = require("react/jsx-runtime");
332
+ var FilteredSpan = createFilteredElement("span");
333
+ var StyledText = (0, import_styled_components2.default)(FilteredSpan)`
334
+ color: ${(props) => props.color || "inherit"};
335
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
336
+ font-weight: ${(props) => props.fontWeight || "normal"};
337
+ font-family: ${(props) => props.fontFamily || '"Aktiv Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'};
338
+ line-height: ${(props) => typeof props.lineHeight === "number" ? `${props.lineHeight}px` : props.lineHeight || "inherit"};
339
+ white-space: ${(props) => props.whiteSpace || "normal"};
340
+ text-align: ${(props) => props.textAlign || "inherit"};
341
+ text-decoration: ${(props) => props.textDecoration || "none"};
342
+
343
+ /* Keep last: single-line truncation has to win over white-space above. */
344
+ ${(props) => truncationStyles(props.numberOfLines)}
345
+ `;
346
+ var Text = ({
347
+ style,
348
+ className,
349
+ id,
350
+ role,
351
+ testID,
352
+ "data-testid": dataTestId,
353
+ ...props
354
+ }) => {
355
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
356
+ StyledText,
357
+ {
358
+ ...props,
359
+ style,
360
+ className,
361
+ id,
362
+ role,
363
+ "data-testid": dataTestId || testID
364
+ }
365
+ );
366
+ };
367
+
368
+ // src/GdprBanner.tsx
369
+ var import_xui_core2 = require("@xsolla/xui-core");
370
+ var import_xui_button = require("@xsolla/xui-button");
371
+ var import_xui_icons_base2 = require("@xsolla/xui-icons-base");
372
+
373
+ // src/PrivacySettings.tsx
374
+ var import_xui_core = require("@xsolla/xui-core");
375
+ var import_xui_checkbox = require("@xsolla/xui-checkbox");
376
+ var import_xui_link = require("@xsolla/xui-link");
377
+ var import_xui_icons_base = require("@xsolla/xui-icons-base");
378
+ var import_jsx_runtime3 = require("react/jsx-runtime");
379
+ var PANE_RADIUS = 8;
380
+ var LIST_WIDTH = 280;
381
+ var PrivacySettings = ({
382
+ categories,
383
+ selectedCategoryIds,
384
+ onToggleCategory,
385
+ activeCategoryId,
386
+ onActiveCategoryChange,
387
+ viewport,
388
+ labels,
389
+ cookiePolicyUrl,
390
+ privacyPolicyUrl,
391
+ testID = "gdpr-privacy-settings",
392
+ themeMode,
393
+ themeProductContext
394
+ }) => {
395
+ const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
396
+ const isMobile = viewport === "mobile";
397
+ const body = theme.typographyTokens.basic["body-sm"];
398
+ const activeDescription = activeCategoryId === null ? labels.generalInformationDescription : categories.find((category) => category.id === activeCategoryId)?.description ?? "";
399
+ const descriptionPane = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
400
+ Box,
401
+ {
402
+ testID: `${testID}__description`,
403
+ backgroundColor: theme.colors.control.faint.bg,
404
+ borderRadius: PANE_RADIUS,
405
+ padding: 16,
406
+ flex: isMobile ? void 0 : 1,
407
+ width: isMobile ? "100%" : void 0,
408
+ "aria-live": "polite",
409
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
410
+ Text,
411
+ {
412
+ color: theme.colors.content.secondary,
413
+ fontSize: body.fontSize,
414
+ lineHeight: body.lineHeight,
415
+ fontFamily: theme.fonts.body,
416
+ children: activeDescription
417
+ }
418
+ )
419
+ }
420
+ );
421
+ const focusStyle = {
422
+ outlineColor: theme.colors.border.brand,
423
+ outlineWidth: 2,
424
+ outlineOffset: 2,
425
+ outlineStyle: "solid"
426
+ };
427
+ const list = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
428
+ Box,
429
+ {
430
+ gap: 12,
431
+ width: isMobile ? "100%" : LIST_WIDTH,
432
+ flexShrink: 0,
433
+ testID: `${testID}__categories`,
434
+ children: [
435
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Box, { gap: 8, children: [
436
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
437
+ Box,
438
+ {
439
+ flexDirection: "row",
440
+ alignItems: "center",
441
+ gap: 8,
442
+ role: "button",
443
+ tabIndex: 0,
444
+ cursor: "pointer",
445
+ "aria-pressed": activeCategoryId === null,
446
+ onPress: () => onActiveCategoryChange(null),
447
+ onKeyDown: (event) => {
448
+ if (event.key === "Enter" || event.key === " ") {
449
+ event.preventDefault();
450
+ onActiveCategoryChange(null);
451
+ }
452
+ },
453
+ focusStyle,
454
+ testID: `${testID}__general-information`,
455
+ children: [
456
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
457
+ import_xui_icons_base.InfoCr,
458
+ {
459
+ variant: "solid",
460
+ size: 16,
461
+ color: theme.colors.control.link.primary
462
+ }
463
+ ),
464
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
465
+ Text,
466
+ {
467
+ color: theme.colors.content.primary,
468
+ fontSize: body.fontSize,
469
+ lineHeight: body.lineHeight,
470
+ fontFamily: theme.fonts.body,
471
+ children: labels.generalInformation
472
+ }
473
+ )
474
+ ]
475
+ }
476
+ ),
477
+ isMobile && activeCategoryId === null && descriptionPane
478
+ ] }),
479
+ categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Box, { gap: 8, children: [
480
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Box, { onPress: () => onActiveCategoryChange(category.id), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
481
+ import_xui_checkbox.Checkbox,
482
+ {
483
+ size: "md",
484
+ checked: selectedCategoryIds.includes(category.id),
485
+ disabled: category.locked,
486
+ onChange: () => onToggleCategory(category.id),
487
+ testID: `${testID}__category-${category.id}`,
488
+ themeMode,
489
+ themeProductContext,
490
+ children: category.label
491
+ }
492
+ ) }),
493
+ isMobile && activeCategoryId === category.id && descriptionPane
494
+ ] }, category.id))
495
+ ]
496
+ }
497
+ );
498
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Box, { testID, gap: 16, width: "100%", children: [
499
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
500
+ Box,
501
+ {
502
+ flexDirection: isMobile ? "column" : "row",
503
+ gap: isMobile ? 12 : 24,
504
+ alignItems: "flex-start",
505
+ width: "100%",
506
+ children: [
507
+ list,
508
+ !isMobile && descriptionPane
509
+ ]
510
+ }
511
+ ),
512
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
513
+ Box,
514
+ {
515
+ flexDirection: "row",
516
+ alignItems: "center",
517
+ gap: 8,
518
+ testID: `${testID}__policies`,
519
+ children: [
520
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
521
+ import_xui_link.Link,
522
+ {
523
+ size: "sm",
524
+ href: cookiePolicyUrl,
525
+ target: "_blank",
526
+ themeMode,
527
+ themeProductContext,
528
+ testID: `${testID}__cookie-policy`,
529
+ children: labels.cookiePolicy
530
+ }
531
+ ),
532
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
533
+ Text,
534
+ {
535
+ color: theme.colors.content.tertiary,
536
+ fontSize: body.fontSize,
537
+ lineHeight: body.lineHeight,
538
+ fontFamily: theme.fonts.body,
539
+ "aria-hidden": true,
540
+ children: "\u2022"
541
+ }
542
+ ),
543
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
544
+ import_xui_link.Link,
545
+ {
546
+ size: "sm",
547
+ href: privacyPolicyUrl,
548
+ target: "_blank",
549
+ themeMode,
550
+ themeProductContext,
551
+ testID: `${testID}__privacy-policy`,
552
+ children: labels.privacyPolicy
553
+ }
554
+ )
555
+ ]
556
+ }
557
+ )
558
+ ] });
559
+ };
560
+ PrivacySettings.displayName = "PrivacySettings";
561
+
562
+ // src/defaults.ts
563
+ var DEFAULT_CATEGORIES = [
564
+ {
565
+ id: "essential",
566
+ label: "Essential cookies",
567
+ locked: true,
568
+ description: "These cookies are required for the Xsolla Ecosystem to function and cannot be disabled in our systems. They are often only set in response to activities taken by you that constitute a request for services, such as changing your privacy settings, logging in, contacting customer support, or filling out forms. You can set your browser to block or inform you about these cookies, but some aspects of the Xsolla Ecosystem will not function properly. These cookies do not contain personally identifying information."
569
+ },
570
+ {
571
+ id: "analytical",
572
+ label: "Analytical and performance cookies",
573
+ description: "These cookies let us count visits and traffic sources so we can measure and improve the performance of the Xsolla Ecosystem. They help us understand which pages are the most and least popular and see how visitors move around the service. All information these cookies collect is aggregated."
574
+ },
575
+ {
576
+ id: "functional",
577
+ label: "Functional cookies",
578
+ description: "These cookies enable the Xsolla Ecosystem to provide enhanced functionality and personalization, such as remembering your preferences and the region you are in. If you do not allow these cookies, some or all of these services may not function properly."
579
+ },
580
+ {
581
+ id: "targeting",
582
+ label: "Targeting cookies",
583
+ description: "These cookies may be set through the Xsolla Ecosystem by our advertising partners to build a profile of your interests and show you relevant offers on other sites. They do not store directly personal information but are based on uniquely identifying your browser and device."
584
+ }
585
+ ];
586
+ var DEFAULT_LABELS = {
587
+ title: "How we use cookies",
588
+ description: "We use cookies to personalize your experience. If you reject the use of cookies, your experience will not be tailored to your preferences.",
589
+ simpleDescription: "We only use essential cookies that allow us to run this service. Read our cookie policy to learn more.",
590
+ privacySettingsTitle: "Privacy settings",
591
+ generalInformation: "General information",
592
+ generalInformationDescription: "We use cookies to personalize your experience, to run and secure the Xsolla Ecosystem, and to measure how it is used. Choose which categories you want to allow below. You can change your choice at any time.",
593
+ customize: "Customize",
594
+ rejectAll: "Reject All",
595
+ acceptAll: "Accept All",
596
+ confirmSelection: "Confirm Selection",
597
+ dismiss: "Dismiss",
598
+ close: "Close",
599
+ cookiePolicy: "Cookie Policy",
600
+ privacyPolicy: "Privacy Policy",
601
+ closeButtonAriaLabel: "Close cookie banner"
602
+ };
603
+ var CARD_WIDTH = 400;
604
+ var EDGE_OFFSET = 20;
605
+ var CONTENT_GAP = 8;
606
+
607
+ // src/GdprBanner.tsx
608
+ var import_jsx_runtime4 = require("react/jsx-runtime");
609
+ var FOCUSABLE_SELECTORS = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
610
+ var isElementVisible = (element) => {
611
+ if (typeof window === "undefined") return true;
612
+ const style = window.getComputedStyle(element);
613
+ return style.visibility !== "hidden" && style.display !== "none";
614
+ };
615
+ var getFocusableElements = (container) => Array.from(
616
+ container.querySelectorAll(FOCUSABLE_SELECTORS)
617
+ ).filter(isElementVisible);
618
+ var GdprBanner = ({
619
+ type = "complex",
620
+ viewport = "desktop",
621
+ buttonsRow = "single",
622
+ anchor = "bottom-left",
623
+ expanded,
624
+ defaultExpanded = false,
625
+ onExpandedChange,
626
+ categories = DEFAULT_CATEGORIES,
627
+ selectedCategoryIds,
628
+ defaultSelectedCategoryIds,
629
+ onSelectionChange,
630
+ labels,
631
+ cookiePolicyUrl,
632
+ privacyPolicyUrl,
633
+ onAcceptAll,
634
+ onRejectAll,
635
+ onCustomize,
636
+ onConfirmSelection,
637
+ onDismiss,
638
+ onClose,
639
+ showCloseButton = true,
640
+ position = "fixed",
641
+ offset = EDGE_OFFSET,
642
+ testID = "gdpr-banner",
643
+ themeMode,
644
+ themeProductContext
645
+ }) => {
646
+ const { theme } = (0, import_xui_core2.useResolvedTheme)({ themeMode, themeProductContext });
647
+ const containerRef = (0, import_react3.useRef)(null);
648
+ const rawId = (0, import_xui_core2.useId)();
649
+ const titleId = `gdpr-banner-title-${rawId.replace(/:/g, "")}`;
650
+ const t = (0, import_react3.useMemo)(() => ({ ...DEFAULT_LABELS, ...labels }), [labels]);
651
+ const isMobile = viewport === "mobile";
652
+ const isSimple = type === "simple";
653
+ const allIds = (0, import_react3.useMemo)(
654
+ () => categories.map((category) => category.id),
655
+ [categories]
656
+ );
657
+ const lockedIds = (0, import_react3.useMemo)(
658
+ () => categories.filter((category) => category.locked).map((c) => c.id),
659
+ [categories]
660
+ );
661
+ const isExpandedControlled = expanded !== void 0;
662
+ const [internalExpanded, setInternalExpanded] = (0, import_react3.useState)(defaultExpanded);
663
+ const isExpanded = !isSimple && (isExpandedControlled ? expanded : internalExpanded);
664
+ const isSelectionControlled = selectedCategoryIds !== void 0;
665
+ const [internalSelection, setInternalSelection] = (0, import_react3.useState)(
666
+ defaultSelectedCategoryIds ?? allIds
667
+ );
668
+ const selection = isSelectionControlled ? selectedCategoryIds : internalSelection;
669
+ const [activeCategoryId, setActiveCategoryId] = (0, import_react3.useState)(null);
670
+ const setExpanded = (0, import_react3.useCallback)(
671
+ (next) => {
672
+ if (!isExpandedControlled) setInternalExpanded(next);
673
+ onExpandedChange?.(next);
674
+ },
675
+ [isExpandedControlled, onExpandedChange]
676
+ );
677
+ const setSelection = (0, import_react3.useCallback)(
678
+ (next) => {
679
+ if (!isSelectionControlled) setInternalSelection(next);
680
+ onSelectionChange?.(next);
681
+ },
682
+ [isSelectionControlled, onSelectionChange]
683
+ );
684
+ (0, import_react3.useEffect)(() => {
685
+ if (!onClose || typeof document === "undefined") return;
686
+ const handleKeyDown = (event) => {
687
+ if (event.key === "Escape") onClose();
688
+ };
689
+ document.addEventListener("keydown", handleKeyDown);
690
+ return () => document.removeEventListener("keydown", handleKeyDown);
691
+ }, [onClose]);
692
+ (0, import_react3.useEffect)(() => {
693
+ const container = containerRef.current;
694
+ if (!container) return;
695
+ const [first] = getFocusableElements(container);
696
+ first?.focus();
697
+ }, [isExpanded]);
698
+ const handleTabKey = (0, import_react3.useCallback)((event) => {
699
+ if (event.key !== "Tab" || !containerRef.current) return;
700
+ const focusable = getFocusableElements(containerRef.current);
701
+ const first = focusable[0];
702
+ const last = focusable[focusable.length - 1];
703
+ if (!first) {
704
+ event.preventDefault();
705
+ return;
706
+ }
707
+ if (event.shiftKey && document.activeElement === first) {
708
+ event.preventDefault();
709
+ last.focus();
710
+ } else if (!event.shiftKey && document.activeElement === last) {
711
+ event.preventDefault();
712
+ first.focus();
713
+ }
714
+ }, []);
715
+ const handleToggleCategory = (0, import_react3.useCallback)(
716
+ (id) => {
717
+ const category = categories.find((item) => item.id === id);
718
+ if (!category || category.locked) return;
719
+ const next = selection.includes(id) ? selection.filter((item) => item !== id) : [...selection, id];
720
+ setSelection(next);
721
+ },
722
+ [categories, selection, setSelection]
723
+ );
724
+ const handleAcceptAll = (0, import_react3.useCallback)(() => {
725
+ setSelection(allIds);
726
+ onAcceptAll?.();
727
+ }, [allIds, onAcceptAll, setSelection]);
728
+ const handleRejectAll = (0, import_react3.useCallback)(() => {
729
+ setSelection(lockedIds);
730
+ onRejectAll?.();
731
+ }, [lockedIds, onRejectAll, setSelection]);
732
+ const handleCustomize = (0, import_react3.useCallback)(() => {
733
+ setExpanded(true);
734
+ onCustomize?.();
735
+ }, [onCustomize, setExpanded]);
736
+ const handleCollapse = (0, import_react3.useCallback)(() => {
737
+ setExpanded(false);
738
+ }, [setExpanded]);
739
+ const handleConfirmSelection = (0, import_react3.useCallback)(() => {
740
+ onConfirmSelection?.(selection);
741
+ }, [onConfirmSelection, selection]);
742
+ const sizing = theme.sizing.modal();
743
+ const titleToken = theme.typographyTokens.basic["body-lg"];
744
+ const bodyToken = theme.typographyTokens.basic["body-sm"];
745
+ const solidButton = (key, label, onPress, fullWidth) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
746
+ import_xui_button.Button,
747
+ {
748
+ variant: "secondary",
749
+ size: "md",
750
+ fullWidth,
751
+ onPress,
752
+ testID: `${testID}__${key}`,
753
+ themeMode,
754
+ themeProductContext,
755
+ children: label
756
+ },
757
+ key
758
+ );
759
+ const textButton = (key, label, onPress) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
760
+ import_xui_button.FlexButton,
761
+ {
762
+ variant: "brand",
763
+ size: "lg",
764
+ onPress,
765
+ testID: `${testID}__${key}`,
766
+ themeMode,
767
+ themeProductContext,
768
+ children: label
769
+ },
770
+ key
771
+ );
772
+ const renderActions = () => {
773
+ if (isSimple) {
774
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
775
+ Box,
776
+ {
777
+ width: "100%",
778
+ flexDirection: "row",
779
+ justifyContent: isMobile ? "center" : "flex-end",
780
+ children: solidButton("dismiss", t.dismiss, () => onDismiss?.(), isMobile)
781
+ }
782
+ );
783
+ }
784
+ if (isExpanded) {
785
+ const close = textButton("close", t.close, handleCollapse);
786
+ const reject = solidButton(
787
+ "reject-all",
788
+ t.rejectAll,
789
+ handleRejectAll,
790
+ isMobile
791
+ );
792
+ const confirm = solidButton(
793
+ "confirm-selection",
794
+ t.confirmSelection,
795
+ handleConfirmSelection,
796
+ isMobile
797
+ );
798
+ return isMobile ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { width: "100%", gap: CONTENT_GAP, alignItems: "center", children: [confirm, reject, close] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
799
+ Box,
800
+ {
801
+ width: "100%",
802
+ flexDirection: "row",
803
+ alignItems: "center",
804
+ justifyContent: "flex-end",
805
+ gap: CONTENT_GAP,
806
+ children: [close, reject, confirm]
807
+ }
808
+ );
809
+ }
810
+ const customize = textButton("customize", t.customize, handleCustomize);
811
+ if (isMobile) {
812
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Box, { width: "100%", gap: CONTENT_GAP, alignItems: "center", children: [
813
+ solidButton("accept-all", t.acceptAll, handleAcceptAll, true),
814
+ solidButton("reject-all", t.rejectAll, handleRejectAll, true),
815
+ customize
816
+ ] });
817
+ }
818
+ if (buttonsRow === "double") {
819
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Box, { width: "100%", gap: CONTENT_GAP, children: [
820
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { flexDirection: "row", justifyContent: "center", width: "100%", children: customize }),
821
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Box, { flexDirection: "row", gap: CONTENT_GAP, width: "100%", children: [
822
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { flex: 1, children: solidButton("reject-all", t.rejectAll, handleRejectAll, true) }),
823
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { flex: 1, children: solidButton("accept-all", t.acceptAll, handleAcceptAll, true) })
824
+ ] })
825
+ ] });
826
+ }
827
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
828
+ Box,
829
+ {
830
+ width: "100%",
831
+ flexDirection: "row",
832
+ alignItems: "center",
833
+ justifyContent: "flex-end",
834
+ gap: CONTENT_GAP,
835
+ children: [
836
+ customize,
837
+ solidButton("reject-all", t.rejectAll, handleRejectAll, false),
838
+ solidButton("accept-all", t.acceptAll, handleAcceptAll, false)
839
+ ]
840
+ }
841
+ );
842
+ };
843
+ const edge = isExpanded ? 0 : offset;
844
+ const isFixed = position === "fixed";
845
+ const spansFullWidth = isExpanded || isMobile;
846
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
847
+ Box,
848
+ {
849
+ ref: containerRef,
850
+ testID,
851
+ role: "dialog",
852
+ "aria-labelledby": titleId,
853
+ onKeyDown: handleTabKey,
854
+ "data-gdpr-banner-type": type,
855
+ "data-gdpr-banner-viewport": viewport,
856
+ "data-gdpr-banner-expanded": isExpanded ? "true" : "false",
857
+ position: isFixed ? "fixed" : "relative",
858
+ bottom: isFixed ? edge : void 0,
859
+ left: isFixed && (spansFullWidth || anchor === "bottom-left") ? edge : void 0,
860
+ right: isFixed && (spansFullWidth || anchor === "bottom-right") ? edge : void 0,
861
+ zIndex: isFixed ? 1e3 : void 0,
862
+ width: spansFullWidth ? "100%" : CARD_WIDTH,
863
+ maxWidth: "100%",
864
+ backgroundColor: theme.colors.background.primary,
865
+ borderRadius: isExpanded ? 0 : sizing.borderRadius,
866
+ padding: isMobile ? 16 : 20,
867
+ gap: CONTENT_GAP,
868
+ children: [
869
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
870
+ Box,
871
+ {
872
+ flexDirection: "row",
873
+ alignItems: "flex-start",
874
+ justifyContent: "space-between",
875
+ gap: 12,
876
+ width: "100%",
877
+ children: [
878
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
879
+ Text,
880
+ {
881
+ id: titleId,
882
+ color: theme.colors.content.primary,
883
+ fontSize: titleToken.fontSize,
884
+ lineHeight: titleToken.lineHeight,
885
+ fontWeight: titleToken.accent?.fontWeight ?? 500,
886
+ fontFamily: theme.fonts.body,
887
+ children: isExpanded ? t.privacySettingsTitle : t.title
888
+ }
889
+ ),
890
+ showCloseButton && onClose && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
891
+ import_xui_button.FlexButton,
892
+ {
893
+ variant: "tertiary",
894
+ size: "xs",
895
+ onPress: onClose,
896
+ "aria-label": t.closeButtonAriaLabel,
897
+ testID: `${testID}__close-icon`,
898
+ themeMode,
899
+ themeProductContext,
900
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_xui_icons_base2.Remove, { variant: "line" })
901
+ }
902
+ )
903
+ ]
904
+ }
905
+ ),
906
+ isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
907
+ PrivacySettings,
908
+ {
909
+ categories,
910
+ selectedCategoryIds: selection,
911
+ onToggleCategory: handleToggleCategory,
912
+ activeCategoryId,
913
+ onActiveCategoryChange: setActiveCategoryId,
914
+ viewport,
915
+ labels: {
916
+ generalInformation: t.generalInformation,
917
+ generalInformationDescription: t.generalInformationDescription,
918
+ cookiePolicy: t.cookiePolicy,
919
+ privacyPolicy: t.privacyPolicy
920
+ },
921
+ cookiePolicyUrl,
922
+ privacyPolicyUrl,
923
+ themeMode,
924
+ themeProductContext,
925
+ testID: `${testID}__privacy-settings`
926
+ }
927
+ ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
928
+ Text,
929
+ {
930
+ color: theme.colors.content.secondary,
931
+ fontSize: bodyToken.fontSize,
932
+ lineHeight: bodyToken.lineHeight,
933
+ fontFamily: theme.fonts.body,
934
+ testID: `${testID}__description`,
935
+ children: isSimple ? t.simpleDescription : t.description
936
+ }
937
+ ),
938
+ renderActions()
939
+ ]
940
+ }
941
+ );
942
+ };
943
+ GdprBanner.displayName = "GdprBanner";
944
+ // Annotate the CommonJS export names for ESM import in node:
945
+ 0 && (module.exports = {
946
+ DEFAULT_CATEGORIES,
947
+ DEFAULT_LABELS,
948
+ GdprBanner,
949
+ PrivacySettings
950
+ });
951
+ //# sourceMappingURL=index.js.map