@popsure/dirty-swan 0.50.1 → 0.51.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.
Files changed (47) hide show
  1. package/dist/cjs/index.js +164 -128
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/button/index.d.ts +1 -1
  4. package/dist/cjs/lib/components/button/index.stories.d.ts +1 -1
  5. package/dist/cjs/lib/components/input/index.d.ts +1 -1
  6. package/dist/cjs/lib/components/input/input.stories.d.ts +1 -1
  7. package/dist/cjs/lib/components/modal/bottomModal/index.d.ts +2 -1
  8. package/dist/cjs/lib/components/modal/genericModal/index.d.ts +20 -0
  9. package/dist/cjs/lib/components/modal/hooks/useOnClose.d.ts +2 -0
  10. package/dist/cjs/lib/components/modal/index.d.ts +4 -3
  11. package/dist/cjs/lib/components/modal/index.stories.d.ts +2 -0
  12. package/dist/cjs/lib/components/modal/regularModal/index.d.ts +2 -1
  13. package/dist/esm/components/modal/bottomModal/index.js +19 -24
  14. package/dist/esm/components/modal/bottomModal/index.js.map +1 -1
  15. package/dist/esm/components/modal/bottomOrRegularModal/index.js +3 -2
  16. package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -1
  17. package/dist/esm/components/modal/genericModal/index.js +94 -0
  18. package/dist/esm/components/modal/genericModal/index.js.map +1 -0
  19. package/dist/esm/components/modal/index.stories.js +26 -3
  20. package/dist/esm/components/modal/index.stories.js.map +1 -1
  21. package/dist/esm/components/modal/regularModal/index.js +18 -16
  22. package/dist/esm/components/modal/regularModal/index.js.map +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/esm/lib/components/button/index.d.ts +1 -1
  25. package/dist/esm/lib/components/button/index.stories.d.ts +1 -1
  26. package/dist/esm/lib/components/input/index.d.ts +1 -1
  27. package/dist/esm/lib/components/input/input.stories.d.ts +1 -1
  28. package/dist/esm/lib/components/modal/bottomModal/index.d.ts +2 -1
  29. package/dist/esm/lib/components/modal/genericModal/index.d.ts +20 -0
  30. package/dist/esm/lib/components/modal/hooks/useOnClose.d.ts +2 -0
  31. package/dist/esm/lib/components/modal/index.d.ts +4 -3
  32. package/dist/esm/lib/components/modal/index.stories.d.ts +2 -0
  33. package/dist/esm/lib/components/modal/regularModal/index.d.ts +2 -1
  34. package/package.json +1 -1
  35. package/src/lib/components/modal/bottomModal/index.tsx +18 -78
  36. package/src/lib/components/modal/bottomModal/style.module.scss +11 -71
  37. package/src/lib/components/modal/genericModal/index.tsx +133 -0
  38. package/src/lib/components/modal/genericModal/style.module.scss +71 -0
  39. package/src/lib/components/modal/hooks/useOnClose.ts +27 -5
  40. package/src/lib/components/modal/index.stories.tsx +95 -0
  41. package/src/lib/components/modal/index.ts +4 -2
  42. package/src/lib/components/modal/regularModal/index.tsx +20 -61
  43. package/src/lib/components/modal/regularModal/style.module.scss +6 -74
  44. package/dist/esm/useOnClose-d818a54f.js +0 -46
  45. package/dist/esm/useOnClose-d818a54f.js.map +0 -1
  46. package/src/lib/components/modal/bottomModal/img/close.svg +0 -4
  47. package/src/lib/components/modal/regularModal/img/close.svg +0 -4
package/dist/cjs/index.js CHANGED
@@ -212,9 +212,9 @@ function styleInject(css, ref) {
212
212
  }
213
213
  }
214
214
 
215
- var css_248z$x = ".style-module_container__3bJf5 {\n display: flex;\n}\n@media (max-width: 34rem) {\n .style-module_container__3bJf5 {\n flex-direction: column;\n }\n}\n\n.style-module_dayInput__1OBNv,\n.style-module_monthInput__2L_7o {\n width: 88px;\n flex: 1;\n}\n\n.style-module_yearInput__2C_H8 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_yearInput__2C_H8 {\n width: 100%;\n }\n}";
216
- var styles$w = {"container":"style-module_container__3bJf5","dayInput":"style-module_dayInput__1OBNv","monthInput":"style-module_monthInput__2L_7o","yearInput":"style-module_yearInput__2C_H8"};
217
- styleInject(css_248z$x);
215
+ var css_248z$y = ".style-module_container__3bJf5 {\n display: flex;\n}\n@media (max-width: 34rem) {\n .style-module_container__3bJf5 {\n flex-direction: column;\n }\n}\n\n.style-module_dayInput__1OBNv,\n.style-module_monthInput__2L_7o {\n width: 88px;\n flex: 1;\n}\n\n.style-module_yearInput__2C_H8 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_yearInput__2C_H8 {\n width: 100%;\n }\n}";
216
+ var styles$x = {"container":"style-module_container__3bJf5","dayInput":"style-module_dayInput__1OBNv","monthInput":"style-module_monthInput__2L_7o","yearInput":"style-module_yearInput__2C_H8"};
217
+ styleInject(css_248z$y);
218
218
 
219
219
  var classnames = {exports: {}};
220
220
 
@@ -286,27 +286,27 @@ function generateId() {
286
286
  return 'xxxx-xxxx-xxx-xxxx'.replace(/[x]/g, function () { return (Math.floor(Math.random() * 16).toString(16)); });
287
287
  }
288
288
 
289
- var css_248z$w = ".style-module_container__2L4SP {\n position: relative;\n}\n\n.style-module_prefix__3jAFZ {\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--ds-grey-500);\n transition: 0.3s top;\n}\n.style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n.style-module_prefix--disabled__2-gcw {\n color: var(--ds-grey-600);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_placeholder__1U2z0,\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0,\n.style-module_input--with-inside-label__253bZ ~ .style-module_placeholder__1U2z0 {\n top: 7px;\n left: 16px;\n transform: translateY(0);\n font-size: 10px;\n line-height: 12px;\n opacity: 1;\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0 {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ,\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n top: 28px;\n}\n\n.style-module_input--with-inside-label__253bZ ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:focus ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ {\n top: 29px;\n}\n\n.style-module_input__1eJO5 {\n box-sizing: border-box;\n padding-top: 9px;\n font-family: inherit;\n}\n.style-module_input--no-placeholder__3EGwh {\n padding-top: 0px;\n}\n.style-module_input--with-prefix__38e0j {\n padding-left: 32px !important;\n}\n\n.style-module_placeholder__1U2z0 {\n position: absolute;\n pointer-events: none;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.3s ease all;\n color: var(--ds-grey-500);\n}\n.style-module_placeholder--with-prefix__2PquQ {\n left: 32px;\n}\n.style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_label__3FEZ1 {\n display: inline-block;\n margin-bottom: 8px;\n color: var(--ds-grey-600);\n}\n.style-module_label--with-error__166bP {\n color: var(--ds-red-500);\n}\n\n.style-module_error__167Zc {\n margin-top: 4px;\n}";
290
- var styles$v = {"container":"style-module_container__2L4SP","prefix":"style-module_prefix__3jAFZ","prefix--with-error":"style-module_prefix--with-error__1yTTM","prefix--disabled":"style-module_prefix--disabled__2-gcw","input":"style-module_input__1eJO5","placeholder":"style-module_placeholder__1U2z0","input--with-inside-label":"style-module_input--with-inside-label__253bZ","placeholder--with-error":"style-module_placeholder--with-error__2ieRU","input--no-placeholder":"style-module_input--no-placeholder__3EGwh","input--with-prefix":"style-module_input--with-prefix__38e0j","placeholder--with-prefix":"style-module_placeholder--with-prefix__2PquQ","label":"style-module_label__3FEZ1","label--with-error":"style-module_label--with-error__166bP","error":"style-module_error__167Zc"};
291
- styleInject(css_248z$w);
289
+ var css_248z$x = ".style-module_container__2L4SP {\n position: relative;\n}\n\n.style-module_prefix__3jAFZ {\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--ds-grey-500);\n transition: 0.3s top;\n}\n.style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n.style-module_prefix--disabled__2-gcw {\n color: var(--ds-grey-600);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_placeholder__1U2z0,\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0,\n.style-module_input--with-inside-label__253bZ ~ .style-module_placeholder__1U2z0 {\n top: 7px;\n left: 16px;\n transform: translateY(0);\n font-size: 10px;\n line-height: 12px;\n opacity: 1;\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0 {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ,\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n top: 28px;\n}\n\n.style-module_input--with-inside-label__253bZ ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:focus ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ {\n top: 29px;\n}\n\n.style-module_input__1eJO5 {\n box-sizing: border-box;\n padding-top: 9px;\n font-family: inherit;\n}\n.style-module_input--no-placeholder__3EGwh {\n padding-top: 0px;\n}\n.style-module_input--with-prefix__38e0j {\n padding-left: 32px !important;\n}\n\n.style-module_placeholder__1U2z0 {\n position: absolute;\n pointer-events: none;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.3s ease all;\n color: var(--ds-grey-500);\n}\n.style-module_placeholder--with-prefix__2PquQ {\n left: 32px;\n}\n.style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_label__3FEZ1 {\n display: inline-block;\n margin-bottom: 8px;\n color: var(--ds-grey-600);\n}\n.style-module_label--with-error__166bP {\n color: var(--ds-red-500);\n}\n\n.style-module_error__167Zc {\n margin-top: 4px;\n}";
290
+ var styles$w = {"container":"style-module_container__2L4SP","prefix":"style-module_prefix__3jAFZ","prefix--with-error":"style-module_prefix--with-error__1yTTM","prefix--disabled":"style-module_prefix--disabled__2-gcw","input":"style-module_input__1eJO5","placeholder":"style-module_placeholder__1U2z0","input--with-inside-label":"style-module_input--with-inside-label__253bZ","placeholder--with-error":"style-module_placeholder--with-error__2ieRU","input--no-placeholder":"style-module_input--no-placeholder__3EGwh","input--with-prefix":"style-module_input--with-prefix__38e0j","placeholder--with-prefix":"style-module_placeholder--with-prefix__2PquQ","label":"style-module_label__3FEZ1","label--with-error":"style-module_label--with-error__166bP","error":"style-module_error__167Zc"};
291
+ styleInject(css_248z$x);
292
292
 
293
293
  var Input = require$$0__default['default'].forwardRef(function (_a, ref) {
294
294
  var _b, _c, _d, _e, _f, _g;
295
295
  var className = _a.className, placeholder = _a.placeholder, label = _a.label, id = _a.id, prefix = _a.prefix, error = _a.error, disabled = _a.disabled, _h = _a.hideLabel, hideLabel = _h === void 0 ? false : _h, _j = _a.labelInsideInput, labelInsideInput = _j === void 0 ? false : _j, props = __rest$1(_a, ["className", "placeholder", "label", "id", "prefix", "error", "disabled", "hideLabel", "labelInsideInput"]);
296
296
  var uniqueId = require$$0.useState(id !== null && id !== void 0 ? id : generateId())[0];
297
- return (jsxRuntime.jsxs("div", __assign({ className: styles$v.container + " " + (className !== null && className !== void 0 ? className : '') }, { children: [label && !labelInsideInput && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames$1('p-p', styles$v.label, (_b = {},
298
- _b[styles$v['label--with-error']] = error,
297
+ return (jsxRuntime.jsxs("div", __assign({ className: styles$w.container + " " + (className !== null && className !== void 0 ? className : '') }, { children: [label && !labelInsideInput && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames$1('p-p', styles$w.label, (_b = {},
298
+ _b[styles$w['label--with-error']] = error,
299
299
  _b['sr-only'] = hideLabel,
300
300
  _b)) }, { children: label }), void 0)),
301
301
  jsxRuntime.jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsxRuntime.jsx("input", __assign({ id: uniqueId, "data-testid": "ds-input-input", type: "text", ref: ref, className: classNames$1(error ? 'p-input--error' : 'p-input', (!label || labelInsideInput) && placeholder && placeholder.length > 0
302
- ? styles$v.input
303
- : styles$v['input--no-placeholder'], (_c = {},
304
- _c[styles$v['input--with-prefix']] = prefix,
305
- _c[styles$v['input--with-inside-label']] = labelInsideInput,
302
+ ? styles$w.input
303
+ : styles$w['input--no-placeholder'], (_c = {},
304
+ _c[styles$w['input--with-prefix']] = prefix,
305
+ _c[styles$w['input--with-inside-label']] = labelInsideInput,
306
306
  _c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props), void 0),
307
- prefix && (jsxRuntime.jsx("span", __assign({ className: classNames$1(styles$v.prefix, (_d = {}, _d[styles$v['prefix--with-error']] = error, _d), (_e = {}, _e[styles$v['prefix--disabled']] = disabled, _e)) }, { children: prefix }), void 0)),
308
- (!label || labelInsideInput) && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames$1(styles$v.placeholder, (_f = {}, _f[styles$v['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$v['placeholder--with-error']] = error, _g)) }, { children: labelInsideInput ? label : placeholder }), void 0))] }), void 0),
309
- error && (jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-red-500 w100 " + styles$v.error }, { children: error }), void 0))] }), void 0));
307
+ prefix && (jsxRuntime.jsx("span", __assign({ className: classNames$1(styles$w.prefix, (_d = {}, _d[styles$w['prefix--with-error']] = error, _d), (_e = {}, _e[styles$w['prefix--disabled']] = disabled, _e)) }, { children: prefix }), void 0)),
308
+ (!label || labelInsideInput) && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames$1(styles$w.placeholder, (_f = {}, _f[styles$w['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$w['placeholder--with-error']] = error, _g)) }, { children: labelInsideInput ? label : placeholder }), void 0))] }), void 0),
309
+ error && (jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-red-500 w100 " + styles$w.error }, { children: error }), void 0))] }), void 0));
310
310
  });
311
311
 
312
312
  var build = {};
@@ -2300,16 +2300,16 @@ var useOnClickOutside = function (ref, callback) {
2300
2300
  }, [ref, callback]);
2301
2301
  };
2302
2302
 
2303
- var css_248z$v = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
2304
- var styles$u = {"wrapper":"styles-module_wrapper__1_lY0"};
2305
- styleInject(css_248z$v);
2303
+ var css_248z$w = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
2304
+ var styles$v = {"wrapper":"styles-module_wrapper__1_lY0"};
2305
+ styleInject(css_248z$w);
2306
2306
 
2307
2307
  var IconWrapper = function (_a) {
2308
2308
  var _b;
2309
2309
  var children = _a.children, _c = _a.size, size = _c === void 0 ? 16 : _c, color = _a.color, className = _a.className, noMargin = _a.noMargin;
2310
2310
  return (jsxRuntime.jsx("span", __assign({ className: classNames$1('d-inline-block', className !== null && className !== void 0 ? className : '', (_b = {},
2311
2311
  _b["tc-" + color] = !!color,
2312
- _b[styles$u.wrapper] = !noMargin,
2312
+ _b[styles$v.wrapper] = !noMargin,
2313
2313
  _b)), style: {
2314
2314
  minWidth: size + "px",
2315
2315
  width: size + "px",
@@ -3786,9 +3786,9 @@ var ZoomOut = (function (props) {
3786
3786
  return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM21.35 21.35 17 17M8 11h6" }, void 0));
3787
3787
  });
3788
3788
 
3789
- var css_248z$u = ".style-module_container__3SY_g {\n position: relative;\n}";
3790
- var styles$t = {"container":"style-module_container__3SY_g"};
3791
- styleInject(css_248z$u);
3789
+ var css_248z$v = ".style-module_container__3SY_g {\n position: relative;\n}";
3790
+ var styles$u = {"container":"style-module_container__3SY_g"};
3791
+ styleInject(css_248z$v);
3792
3792
 
3793
3793
  var buttonTypeClassNameMap = {
3794
3794
  filledColor: 'p-btn--primary',
@@ -3848,7 +3848,7 @@ var Calendar = function (_a) {
3848
3848
  if (!displayCalendar) {
3849
3849
  return null;
3850
3850
  }
3851
- return (jsxRuntime.jsxs("div", __assign({ className: styles$t.container + " ml8", ref: calendarContainerRef }, { children: [jsxRuntime.jsx(Button, __assign({ onClick: function () { return setCalendarOpen(!isOpen); }, "data-testid": "calendar-button", hideLabel: true, variant: 'textColor', leftIcon: jsxRuntime.jsx(CalendarIcon, {}, void 0), type: "button" }, { children: "Select date" }), void 0),
3851
+ return (jsxRuntime.jsxs("div", __assign({ className: styles$u.container + " ml8", ref: calendarContainerRef }, { children: [jsxRuntime.jsx(Button, __assign({ onClick: function () { return setCalendarOpen(!isOpen); }, "data-testid": "calendar-button", hideLabel: true, variant: 'textColor', leftIcon: jsxRuntime.jsx(CalendarIcon, {}, void 0), type: "button" }, { children: "Select date" }), void 0),
3852
3852
  isOpen && (jsxRuntime.jsx(DayPicker, { month: selectedDateInDateType, showOutsideDays: true, fromMonth: dateCalendarFromMonth, toMonth: dateCalendarToMonth, selectedDays: selectedDateInDateType, onDayClick: function (date) {
3853
3853
  if (!dayjs(date).isValid()) {
3854
3854
  return;
@@ -3985,12 +3985,12 @@ var DateSelector = function (_a) {
3985
3985
  };
3986
3986
  var getInputProps = function (key, index) {
3987
3987
  var _a, _b;
3988
- return (__assign({ 'data-cy': "date-selector-" + key, 'data-testid': "date-selector-" + key, className: styles$w[key + "Input"], id: key, name: key, maxLength: key === 'year' ? 4 : 2, required: true, label: placeholders === null || placeholders === void 0 ? void 0 : placeholders[key], placeholder: (_a = placeholders === null || placeholders === void 0 ? void 0 : placeholders[key + "Format"]) !== null && _a !== void 0 ? _a : "", labelInsideInput: true, value: (_b = internalValue[key]) !== null && _b !== void 0 ? _b : '', error: hasError && isDirty, type: "text", inputMode: "numeric", ref: function (el) { itemsRef.current[index] = el; }, onKeyUp: function (event) { return handleOnKeyUp(event, index); }, onKeyDown: function (event) { return handleOnKeyDown(event, index); }, onChange: function (_a) {
3988
+ return (__assign({ 'data-cy': "date-selector-" + key, 'data-testid': "date-selector-" + key, className: styles$x[key + "Input"], id: key, name: key, maxLength: key === 'year' ? 4 : 2, required: true, label: placeholders === null || placeholders === void 0 ? void 0 : placeholders[key], placeholder: (_a = placeholders === null || placeholders === void 0 ? void 0 : placeholders[key + "Format"]) !== null && _a !== void 0 ? _a : "", labelInsideInput: true, value: (_b = internalValue[key]) !== null && _b !== void 0 ? _b : '', error: hasError && isDirty, type: "text", inputMode: "numeric", ref: function (el) { itemsRef.current[index] = el; }, onKeyUp: function (event) { return handleOnKeyUp(event, index); }, onKeyDown: function (event) { return handleOnKeyDown(event, index); }, onChange: function (_a) {
3989
3989
  var target = _a.target;
3990
3990
  return handleOnChange(key, target.value);
3991
3991
  } }, (inputProps === null || inputProps === void 0 ? void 0 : inputProps(key)) || {}));
3992
3992
  };
3993
- return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex ai-center" }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1(styles$w.container, "d-flex gap8") }, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex gap8 jc-between" }, { children: [jsxRuntime.jsx(Input, __assign({}, getInputProps('day', 0)), void 0),
3993
+ return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex ai-center" }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1(styles$x.container, "d-flex gap8") }, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex gap8 jc-between" }, { children: [jsxRuntime.jsx(Input, __assign({}, getInputProps('day', 0)), void 0),
3994
3994
  jsxRuntime.jsx(Input, __assign({}, getInputProps('month', 1)), void 0)] }), void 0),
3995
3995
  jsxRuntime.jsx(Input, __assign({}, getInputProps('year', 2)), void 0)] }), void 0),
3996
3996
  jsxRuntime.jsx(Calendar, { dateFormat: COLLECTABLE_DATE_FORMAT, yearBoundaries: yearBoundaries, displayCalendar: displayCalendar, dayjsLocale: dayjsLocale, firstDayOfWeek: firstDayOfWeek, isOpen: isCalendarOpen, setCalendarOpen: setIsCalendarOpen, value: value, onChange: onChange }, void 0)] }), void 0),
@@ -4495,9 +4495,9 @@ class SignaturePad$1 {
4495
4495
  }
4496
4496
  }
4497
4497
 
4498
- var css_248z$t = ".style-module_container__1VolG {\n position: relative;\n background-color: var(--ds-grey-200);\n border-radius: 8px;\n height: 272px;\n}\n\n.style-module_canvas__1Q440 {\n width: 100%;\n height: 100%;\n}\n\n.style-module_separator__Fdmnn {\n position: absolute;\n height: 2px;\n right: 112px;\n left: 72px;\n bottom: 32px;\n background-color: var(--ds-grey-400);\n border-radius: 1px;\n}\n\n.style-module_reset__1ePiM {\n display: flex;\n position: absolute;\n right: 16px;\n bottom: 32px;\n color: var(--ds-primary-500);\n cursor: pointer;\n border: none;\n text-decoration: none;\n font-size: 16px;\n line-height: 24px;\n background-color: transparent;\n}\n.style-module_reset__1ePiM:hover {\n color: var(--ds-primary-700);\n}\n.style-module_reset__1ePiM:before {\n content: \"\";\n display: inline-block;\n height: 24px;\n width: 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n background-color: currentColor;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-background-color: currentColor;\n margin-right: 4px;\n}\n.style-module_reset__1ePiM[disabled] {\n color: var(--ds-grey-500);\n}\n\n.style-module_sign__35Gp2 {\n position: absolute;\n bottom: 32px;\n left: 16px;\n height: 24px;\n width: 24px;\n mask-size: 24px 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n -webkit-mask-size: 24px 24px;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n background-color: var(--ds-grey-500);\n}";
4499
- var styles$s = {"container":"style-module_container__1VolG","canvas":"style-module_canvas__1Q440","separator":"style-module_separator__Fdmnn","reset":"style-module_reset__1ePiM","sign":"style-module_sign__35Gp2"};
4500
- styleInject(css_248z$t);
4498
+ var css_248z$u = ".style-module_container__1VolG {\n position: relative;\n background-color: var(--ds-grey-200);\n border-radius: 8px;\n height: 272px;\n}\n\n.style-module_canvas__1Q440 {\n width: 100%;\n height: 100%;\n}\n\n.style-module_separator__Fdmnn {\n position: absolute;\n height: 2px;\n right: 112px;\n left: 72px;\n bottom: 32px;\n background-color: var(--ds-grey-400);\n border-radius: 1px;\n}\n\n.style-module_reset__1ePiM {\n display: flex;\n position: absolute;\n right: 16px;\n bottom: 32px;\n color: var(--ds-primary-500);\n cursor: pointer;\n border: none;\n text-decoration: none;\n font-size: 16px;\n line-height: 24px;\n background-color: transparent;\n}\n.style-module_reset__1ePiM:hover {\n color: var(--ds-primary-700);\n}\n.style-module_reset__1ePiM:before {\n content: \"\";\n display: inline-block;\n height: 24px;\n width: 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n background-color: currentColor;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-background-color: currentColor;\n margin-right: 4px;\n}\n.style-module_reset__1ePiM[disabled] {\n color: var(--ds-grey-500);\n}\n\n.style-module_sign__35Gp2 {\n position: absolute;\n bottom: 32px;\n left: 16px;\n height: 24px;\n width: 24px;\n mask-size: 24px 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n -webkit-mask-size: 24px 24px;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n background-color: var(--ds-grey-500);\n}";
4499
+ var styles$t = {"container":"style-module_container__1VolG","canvas":"style-module_canvas__1Q440","separator":"style-module_separator__Fdmnn","reset":"style-module_reset__1ePiM","sign":"style-module_sign__35Gp2"};
4500
+ styleInject(css_248z$u);
4501
4501
 
4502
4502
  var sign = "data:image/svg+xml,%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.7%203.70001C13.3%204.00001%2013.5%205.10001%2014.1%206.20001C14.7%207.30001%2014.9%209.20001%2014.6%2010.5C14.1%2012.3%2015.3%2014.4%2019.3%2019.7C22.2%2023.4%2025.6%2028%2026.9%2029.8L29.2%2033L23%2039.7C19.7%2043.4%2017.1%2046.9%2017.4%2047.6C17.7%2048.3%2017.2%2049.4%2016.4%2050C14.8%2051.4%2014.5%2054%2016.1%2054C17.5%2054%2023.6%2049.5%2029%2044.4L33.5%2040.1L41%2051.3C49.2%2063.6%2053.7%2069%2055.8%2069C56.6%2069%2056.8%2068.5%2056.4%2067.7C56%2067.1%2057.8%2068.9%2060.5%2071.8C63.1%2074.7%2065.5%2076.9%2065.7%2076.6C65.9%2076.4%2065.2%2074.4%2064.1%2072.1C62.9%2069.9%2062%2067.2%2062%2066.2C62%2063.3%2054.5%2047.6%2048.9%2039C46.2%2034.8%2044%2031%2044%2030.6C44%2030.2%2046.2%2027.3%2048.9%2024.2C54.3%2017.9%2059%2011.2%2059%209.80001C59%209.30001%2057.7%209.10001%2056%209.50001C54.2%209.90001%2050.5%2012.7%2046.4%2017.1C42.7%2020.9%2039.4%2024%2039.1%2024C38.8%2024%2036.3%2020.7%2033.6%2016.8C30.9%2012.9%2027.9%209.50001%2027%209.30001C26%209.00001%2024.3%207.60001%2023.2%206.10001C21.7%204.10001%2020.3%203.30001%2017.7%203.20001C15.8%203.10001%2014%203.30001%2013.7%203.70001Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fsvg%3E";
4503
4503
 
@@ -4526,15 +4526,15 @@ var SignaturePad = /** @class */ (function (_super) {
4526
4526
  SignaturePad.prototype.render = function () {
4527
4527
  var hasContent = this.state.hasContent;
4528
4528
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: {
4529
- __html: "." + styles$s.reset + "::before { \n -webkit-mask-image: url(\"" + reset + "\");\n mask-image: url(\"" + reset + "\");\n }",
4529
+ __html: "." + styles$t.reset + "::before { \n -webkit-mask-image: url(\"" + reset + "\");\n mask-image: url(\"" + reset + "\");\n }",
4530
4530
  } }, void 0),
4531
- jsxRuntime.jsxs("div", __assign({ className: styles$s.container }, { children: [jsxRuntime.jsx("canvas", { className: styles$s.canvas, ref: this.canvasRef }, void 0),
4532
- jsxRuntime.jsx("div", { className: styles$s.separator }, void 0),
4533
- jsxRuntime.jsx("div", { className: styles$s.sign, style: {
4531
+ jsxRuntime.jsxs("div", __assign({ className: styles$t.container }, { children: [jsxRuntime.jsx("canvas", { className: styles$t.canvas, ref: this.canvasRef }, void 0),
4532
+ jsxRuntime.jsx("div", { className: styles$t.separator }, void 0),
4533
+ jsxRuntime.jsx("div", { className: styles$t.sign, style: {
4534
4534
  WebkitMaskImage: "url(\"" + sign + "\")",
4535
4535
  maskImage: "url(\"" + sign + "\")",
4536
4536
  } }, void 0),
4537
- jsxRuntime.jsx("button", __assign({ className: styles$s.reset, onClick: this.clear, disabled: !hasContent }, { children: "Reset" }), void 0)] }), void 0)] }, void 0));
4537
+ jsxRuntime.jsx("button", __assign({ className: styles$t.reset, onClick: this.clear, disabled: !hasContent }, { children: "Reset" }), void 0)] }), void 0)] }, void 0));
4538
4538
  };
4539
4539
  SignaturePad.prototype.notifyOnChange = function () {
4540
4540
  var onChange = this.props.onChange;
@@ -4968,9 +4968,9 @@ var geocoderAddressComponentToPartialAddress = function (input) {
4968
4968
  return toReturn;
4969
4969
  };
4970
4970
 
4971
- var css_248z$s = "@media (max-width: 34rem) {\n .style-module_input-line__34TKK {\n flex-direction: column;\n }\n .style-module_input-line__34TKK > *:not(:first-child) {\n margin-top: 16px;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_house-number-input__1sDS5 {\n max-width: none !important;\n }\n}\n\n.style-module_map-container__2rzjU {\n position: relative;\n height: 112px;\n margin-bottom: 16px;\n border-radius: 8px;\n transition: 0.3s height ease-in-out, 0.3s margin-top ease-in-out;\n overflow: hidden;\n}\n.style-module_map-container--hidden__2AnYR {\n height: 0;\n margin: 0;\n}\n\n@keyframes style-module_appear-in__3HZHT {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_appear-in-animate__1bJyO {\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_loading-spinner__3-nri {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute !important;\n background-color: rgba(142, 140, 238, 0.25);\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 100;\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_map__1Vtps {\n width: 100%;\n height: 100%;\n}";
4972
- var styles$r = {"input-line":"style-module_input-line__34TKK","house-number-input":"style-module_house-number-input__1sDS5","map-container":"style-module_map-container__2rzjU","map-container--hidden":"style-module_map-container--hidden__2AnYR","appear-in-animate":"style-module_appear-in-animate__1bJyO","appear-in":"style-module_appear-in__3HZHT","loading-spinner":"style-module_loading-spinner__3-nri","map":"style-module_map__1Vtps"};
4973
- styleInject(css_248z$s);
4971
+ var css_248z$t = "@media (max-width: 34rem) {\n .style-module_input-line__34TKK {\n flex-direction: column;\n }\n .style-module_input-line__34TKK > *:not(:first-child) {\n margin-top: 16px;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_house-number-input__1sDS5 {\n max-width: none !important;\n }\n}\n\n.style-module_map-container__2rzjU {\n position: relative;\n height: 112px;\n margin-bottom: 16px;\n border-radius: 8px;\n transition: 0.3s height ease-in-out, 0.3s margin-top ease-in-out;\n overflow: hidden;\n}\n.style-module_map-container--hidden__2AnYR {\n height: 0;\n margin: 0;\n}\n\n@keyframes style-module_appear-in__3HZHT {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_appear-in-animate__1bJyO {\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_loading-spinner__3-nri {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute !important;\n background-color: rgba(142, 140, 238, 0.25);\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 100;\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_map__1Vtps {\n width: 100%;\n height: 100%;\n}";
4972
+ var styles$s = {"input-line":"style-module_input-line__34TKK","house-number-input":"style-module_house-number-input__1sDS5","map-container":"style-module_map-container__2rzjU","map-container--hidden":"style-module_map-container--hidden__2AnYR","appear-in-animate":"style-module_appear-in-animate__1bJyO","appear-in":"style-module_appear-in__3HZHT","loading-spinner":"style-module_loading-spinner__3-nri","map":"style-module_map__1Vtps"};
4973
+ styleInject(css_248z$t);
4974
4974
 
4975
4975
  var GERMANY_LAT_LNG = { lat: 51.54317, lng: 10.3181503 };
4976
4976
  var GERMANY_ALPHA_CODE = 'DE';
@@ -5103,16 +5103,16 @@ var AutocompleteAddress = function (_a) {
5103
5103
  }
5104
5104
  };
5105
5105
  };
5106
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("wmx8 bg-grey-500 " + styles$r['map-container'], (_b = {},
5107
- _b[styles$r['map-container--hidden']] = place === null,
5108
- _b)) }, { children: [jsxRuntime.jsx("div", { className: styles$r.map, id: "map" }, void 0),
5109
- isLoading && (jsxRuntime.jsx("div", __assign({ className: styles$r['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
5106
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("wmx8 bg-grey-500 " + styles$s['map-container'], (_b = {},
5107
+ _b[styles$s['map-container--hidden']] = place === null,
5108
+ _b)) }, { children: [jsxRuntime.jsx("div", { className: styles$s.map, id: "map" }, void 0),
5109
+ isLoading && (jsxRuntime.jsx("div", __assign({ className: styles$s['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
5110
5110
  jsxRuntime.jsx("div", __assign({ className: "wmx8" }, { children: manualAddressEntry === false ? (jsxRuntime.jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsxRuntime.jsx(Input, { className: "w100", id: "autocomplete", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.manualAddressEntry) || 'Search for address', ref: autocompleteElement }, "autocomplete-search"),
5111
- hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$r['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex c-gap16 " + styles$r['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: onManualAddressChange(), name: "street" }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.street), "autocomplete-street"),
5112
- jsxRuntime.jsx(Input, __assign({ className: "wmx2 " + styles$r['house-number-input'], "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', name: "houseNumber", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.houseNumber), "autocomplete-house-number")] }), void 0),
5111
+ hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$s['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex c-gap16 " + styles$s['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: onManualAddressChange(), name: "street" }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.street), "autocomplete-street"),
5112
+ jsxRuntime.jsx(Input, __assign({ className: "wmx2 " + styles$s['house-number-input'], "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', name: "houseNumber", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.houseNumber), "autocomplete-house-number")] }), void 0),
5113
5113
  jsxRuntime.jsx(Input, __assign({ className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
5114
5114
  'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', name: "additionalInformation", onChange: onManualAddressChange({ updatePlace: false }) }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.additionalInformation), "autocomplete-additional-info"),
5115
- jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$r['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', name: "postcode", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.postcode), "autocomplete-postcode"),
5115
+ jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$s['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', name: "postcode", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.postcode), "autocomplete-postcode"),
5116
5116
  jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-city", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.city) || 'City', value: (address === null || address === void 0 ? void 0 : address.city) || '', name: "city", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.city), "autocomplete-city")] }), void 0)] }, void 0)) }), void 0),
5117
5117
  manualAddressEntry === false && (jsxRuntime.jsxs("div", __assign({ className: "p-p mt8" }, { children: [(manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.preText) || 'Or ',
5118
5118
  jsxRuntime.jsx("button", __assign({ className: 'p-a p-p fw-bold c-pointer bg-transparent', onClick: handleEnterAddressManually, type: "button" }, { children: (manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.cta) || 'enter address manually' }), void 0)] }), void 0))] }, void 0));
@@ -8157,13 +8157,13 @@ const AnimateHeight = (_a) => {
8157
8157
  require$$0__default['default'].createElement("div", { className: contentClassName, style: contentStyle, ref: contentElement }, children)));
8158
8158
  };
8159
8159
 
8160
- var css_248z$r = ".style-module_container__Uyltc {\n background-color: transparent;\n}\n\n.style-module_dropzoneContainer__yZoGP {\n border: 1px dashed var(--ds-primary-500);\n padding: 32px 0;\n background-color: white;\n transition: all 0.6s ease-in-out;\n}\n\n.style-module_img__11JI8 {\n vertical-align: middle;\n margin-right: 8px;\n height: 18px;\n}\n\n.style-module_textInline__2F21z {\n display: inline-flex;\n}\n\n.style-module_dropzoneContainer__yZoGP:focus {\n outline: none;\n}\n\n.style-module_dropzoneContainer__yZoGP:hover {\n background-color: var(--ds-primary-100);\n transition: 0.5s ease;\n}\n\n.style-module_dropzoneContainerDisabled__1X3gP {\n pointer-events: none;\n opacity: 0.4;\n}";
8161
- var styles$q = {"container":"style-module_container__Uyltc","dropzoneContainer":"style-module_dropzoneContainer__yZoGP","img":"style-module_img__11JI8","textInline":"style-module_textInline__2F21z","dropzoneContainerDisabled":"style-module_dropzoneContainerDisabled__1X3gP"};
8162
- styleInject(css_248z$r);
8160
+ var css_248z$s = ".style-module_container__Uyltc {\n background-color: transparent;\n}\n\n.style-module_dropzoneContainer__yZoGP {\n border: 1px dashed var(--ds-primary-500);\n padding: 32px 0;\n background-color: white;\n transition: all 0.6s ease-in-out;\n}\n\n.style-module_img__11JI8 {\n vertical-align: middle;\n margin-right: 8px;\n height: 18px;\n}\n\n.style-module_textInline__2F21z {\n display: inline-flex;\n}\n\n.style-module_dropzoneContainer__yZoGP:focus {\n outline: none;\n}\n\n.style-module_dropzoneContainer__yZoGP:hover {\n background-color: var(--ds-primary-100);\n transition: 0.5s ease;\n}\n\n.style-module_dropzoneContainerDisabled__1X3gP {\n pointer-events: none;\n opacity: 0.4;\n}";
8161
+ var styles$r = {"container":"style-module_container__Uyltc","dropzoneContainer":"style-module_dropzoneContainer__yZoGP","img":"style-module_img__11JI8","textInline":"style-module_textInline__2F21z","dropzoneContainerDisabled":"style-module_dropzoneContainerDisabled__1X3gP"};
8162
+ styleInject(css_248z$s);
8163
8163
 
8164
- var css_248z$q = ".style-module_upload-file-cell__3nv5i {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 64px;\n padding: 8px 16px;\n border: 1px solid #d2d2d8;\n border-radius: 8px;\n background-color: white;\n animation: style-module_appear-down__14rCV 0.6s;\n animation-fill-mode: both;\n animation-delay: 0s;\n}\n\n.style-module_upload-file-cell-error__3KcSe {\n border-color: #e55454;\n background-color: rgba(229, 84, 84, 0.2);\n}\n\n.style-module_cell-left-section__3Iv8c {\n display: flex;\n align-items: center;\n}\n\n.style-module_icon__31Yuk {\n margin: 0px;\n}\n\n.style-module_main-icon__335_Y {\n margin-right: 16px;\n}\n\n.style-module_upload-display-text__3Rd68 {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.style-module_progress-bar-container__2JCBO {\n position: relative;\n}\n\n.style-module_progress-bar__1Rosf {\n background-color: #f5f6fb;\n border-radius: 10px;\n height: 4px;\n}\n\n.style-module_progress-bar-filler__131fA {\n background-color: #8e8cee;\n border-radius: 10px;\n height: 4px;\n position: absolute;\n bottom: 0;\n transition: 1s ease;\n}\n\n.style-module_cell-right-section__dVWqJ {\n display: flex;\n justify-content: flex-end;\n min-width: 32px;\n margin-left: 16px;\n}\n\n.style-module_cell-right-section-complete__c0rHc {\n min-width: 64px;\n}\n\n.style-module_view-icon__3UenG,\n.style-module_remove-icon__2FWBQ {\n cursor: pointer;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n text-align: inherit;\n outline: none;\n box-shadow: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n\n.style-module_remove-icon__2FWBQ {\n margin-left: 16px;\n}\n\n.style-module_disabled__s-DR1 {\n pointer-events: none;\n cursor: default;\n opacity: 0.3;\n}\n\n@keyframes style-module_appear-down__14rCV {\n from {\n transform: translateY(-10px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}";
8165
- var styles$p = {"upload-file-cell":"style-module_upload-file-cell__3nv5i","appear-down":"style-module_appear-down__14rCV","upload-file-cell-error":"style-module_upload-file-cell-error__3KcSe","cell-left-section":"style-module_cell-left-section__3Iv8c","icon":"style-module_icon__31Yuk","main-icon":"style-module_main-icon__335_Y","upload-display-text":"style-module_upload-display-text__3Rd68","progress-bar-container":"style-module_progress-bar-container__2JCBO","progress-bar":"style-module_progress-bar__1Rosf","progress-bar-filler":"style-module_progress-bar-filler__131fA","cell-right-section":"style-module_cell-right-section__dVWqJ","cell-right-section-complete":"style-module_cell-right-section-complete__c0rHc","view-icon":"style-module_view-icon__3UenG","remove-icon":"style-module_remove-icon__2FWBQ","disabled":"style-module_disabled__s-DR1"};
8166
- styleInject(css_248z$q);
8164
+ var css_248z$r = ".style-module_upload-file-cell__3nv5i {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 64px;\n padding: 8px 16px;\n border: 1px solid #d2d2d8;\n border-radius: 8px;\n background-color: white;\n animation: style-module_appear-down__14rCV 0.6s;\n animation-fill-mode: both;\n animation-delay: 0s;\n}\n\n.style-module_upload-file-cell-error__3KcSe {\n border-color: #e55454;\n background-color: rgba(229, 84, 84, 0.2);\n}\n\n.style-module_cell-left-section__3Iv8c {\n display: flex;\n align-items: center;\n}\n\n.style-module_icon__31Yuk {\n margin: 0px;\n}\n\n.style-module_main-icon__335_Y {\n margin-right: 16px;\n}\n\n.style-module_upload-display-text__3Rd68 {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.style-module_progress-bar-container__2JCBO {\n position: relative;\n}\n\n.style-module_progress-bar__1Rosf {\n background-color: #f5f6fb;\n border-radius: 10px;\n height: 4px;\n}\n\n.style-module_progress-bar-filler__131fA {\n background-color: #8e8cee;\n border-radius: 10px;\n height: 4px;\n position: absolute;\n bottom: 0;\n transition: 1s ease;\n}\n\n.style-module_cell-right-section__dVWqJ {\n display: flex;\n justify-content: flex-end;\n min-width: 32px;\n margin-left: 16px;\n}\n\n.style-module_cell-right-section-complete__c0rHc {\n min-width: 64px;\n}\n\n.style-module_view-icon__3UenG,\n.style-module_remove-icon__2FWBQ {\n cursor: pointer;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n text-align: inherit;\n outline: none;\n box-shadow: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n\n.style-module_remove-icon__2FWBQ {\n margin-left: 16px;\n}\n\n.style-module_disabled__s-DR1 {\n pointer-events: none;\n cursor: default;\n opacity: 0.3;\n}\n\n@keyframes style-module_appear-down__14rCV {\n from {\n transform: translateY(-10px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}";
8165
+ var styles$q = {"upload-file-cell":"style-module_upload-file-cell__3nv5i","appear-down":"style-module_appear-down__14rCV","upload-file-cell-error":"style-module_upload-file-cell-error__3KcSe","cell-left-section":"style-module_cell-left-section__3Iv8c","icon":"style-module_icon__31Yuk","main-icon":"style-module_main-icon__335_Y","upload-display-text":"style-module_upload-display-text__3Rd68","progress-bar-container":"style-module_progress-bar-container__2JCBO","progress-bar":"style-module_progress-bar__1Rosf","progress-bar-filler":"style-module_progress-bar-filler__131fA","cell-right-section":"style-module_cell-right-section__dVWqJ","cell-right-section-complete":"style-module_cell-right-section-complete__c0rHc","view-icon":"style-module_view-icon__3UenG","remove-icon":"style-module_remove-icon__2FWBQ","disabled":"style-module_disabled__s-DR1"};
8166
+ styleInject(css_248z$r);
8167
8167
 
8168
8168
  var UploadFileCell = function (_a) {
8169
8169
  var _b, _c, _d;
@@ -8182,18 +8182,18 @@ var UploadFileCell = function (_a) {
8182
8182
  COMPLETE: name,
8183
8183
  ERROR: error !== null && error !== void 0 ? error : 'Something went wrong. Try uploading again.',
8184
8184
  }[uploadStatus];
8185
- return (jsxRuntime.jsxs("div", __assign({ className: classNames$1("mt8 " + styles$p['upload-file-cell'], (_b = {},
8186
- _b[styles$p['upload-file-cell-error']] = hasError,
8187
- _b)) }, { children: [jsxRuntime.jsxs("div", __assign({ className: "w100 " + styles$p['cell-left-section'] }, { children: [jsxRuntime.jsx(FileIcon, { className: classNames$1(styles$p['main-icon'] + " " + styles$p.icon), color: mapFileIconColor[uploadStatus], size: 24 }, void 0),
8188
- jsxRuntime.jsxs("div", __assign({ className: "w100" }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-p " + styles$p['upload-display-text'], title: displayText }, { children: displayText }), void 0),
8189
- isUploading && showProgressBar && (jsxRuntime.jsxs("div", __assign({ className: "mt8 w100 " + styles$p['progress-bar-container'] }, { children: [jsxRuntime.jsx("div", { className: "" + styles$p['progress-bar'] }, void 0),
8190
- jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "" + styles$p['progress-bar-filler'], style: { width: progress + "%" } }, void 0)] }), void 0))] }), void 0)] }), void 0),
8191
- jsxRuntime.jsx("div", __assign({ className: classNames$1(styles$p['cell-right-section'], (_c = {},
8192
- _c[styles$p['cell-right-section-complete']] = isComplete,
8193
- _c)) }, { children: isUploading ? (jsxRuntime.jsx("div", __assign({ className: styles$p.spinner }, { children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" }, void 0)) }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx("a", __assign({ className: styles$p['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer" }, { children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$p.icon }, void 0) }), void 0)),
8194
- onRemoveFile && (jsxRuntime.jsx("button", __assign({ type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames$1(styles$p['remove-icon'], (_d = {},
8195
- _d[styles$p.disabled] = uploading,
8196
- _d)), "data-testid": "remove-button" }, { children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$p.icon }, void 0) }), void 0))] }, void 0)) }), void 0)] }), void 0));
8185
+ return (jsxRuntime.jsxs("div", __assign({ className: classNames$1("mt8 " + styles$q['upload-file-cell'], (_b = {},
8186
+ _b[styles$q['upload-file-cell-error']] = hasError,
8187
+ _b)) }, { children: [jsxRuntime.jsxs("div", __assign({ className: "w100 " + styles$q['cell-left-section'] }, { children: [jsxRuntime.jsx(FileIcon, { className: classNames$1(styles$q['main-icon'] + " " + styles$q.icon), color: mapFileIconColor[uploadStatus], size: 24 }, void 0),
8188
+ jsxRuntime.jsxs("div", __assign({ className: "w100" }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-p " + styles$q['upload-display-text'], title: displayText }, { children: displayText }), void 0),
8189
+ isUploading && showProgressBar && (jsxRuntime.jsxs("div", __assign({ className: "mt8 w100 " + styles$q['progress-bar-container'] }, { children: [jsxRuntime.jsx("div", { className: "" + styles$q['progress-bar'] }, void 0),
8190
+ jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "" + styles$q['progress-bar-filler'], style: { width: progress + "%" } }, void 0)] }), void 0))] }), void 0)] }), void 0),
8191
+ jsxRuntime.jsx("div", __assign({ className: classNames$1(styles$q['cell-right-section'], (_c = {},
8192
+ _c[styles$q['cell-right-section-complete']] = isComplete,
8193
+ _c)) }, { children: isUploading ? (jsxRuntime.jsx("div", __assign({ className: styles$q.spinner }, { children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" }, void 0)) }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx("a", __assign({ className: styles$q['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer" }, { children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$q.icon }, void 0) }), void 0)),
8194
+ onRemoveFile && (jsxRuntime.jsx("button", __assign({ type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames$1(styles$q['remove-icon'], (_d = {},
8195
+ _d[styles$q.disabled] = uploading,
8196
+ _d)), "data-testid": "remove-button" }, { children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$q.icon }, void 0) }), void 0))] }, void 0)) }), void 0)] }), void 0));
8197
8197
  };
8198
8198
 
8199
8199
  var k$3 = 1024;
@@ -8332,11 +8332,11 @@ var MultiDropzone = function (_a) {
8332
8332
  maxSize: maxSize,
8333
8333
  onDrop: onDrop,
8334
8334
  }), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
8335
- return (jsxRuntime.jsxs("div", __assign({ className: styles$q.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("w100 ta-center br8 c-pointer " + styles$q.dropzoneContainer, (_b = {},
8336
- _b[styles$q['dropzoneContainerDisabled']] = uploading,
8335
+ return (jsxRuntime.jsxs("div", __assign({ className: styles$r.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("w100 ta-center br8 c-pointer " + styles$r.dropzoneContainer, (_b = {},
8336
+ _b[styles$r['dropzoneContainerDisabled']] = uploading,
8337
8337
  _b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps()), void 0),
8338
- jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$q.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }, void 0),
8339
- jsxRuntime.jsx("div", __assign({ className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$q.textInline : '') }, { children: uploading
8338
+ jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$r.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }, void 0),
8339
+ jsxRuntime.jsx("div", __assign({ className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$r.textInline : '') }, { children: uploading
8340
8340
  ? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
8341
8341
  'Please wait while uploading file...'
8342
8342
  : (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), void 0),
@@ -8354,17 +8354,17 @@ var MultiDropzone = function (_a) {
8354
8354
  jsxRuntime.jsx(AnimateHeight, __assign({ duration: 300, height: isOverMaxFiles ? 'auto' : 0 }, { children: jsxRuntime.jsx("p", __assign({ className: "tc-red-500 mt16" }, { children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) || "You can upload maximum " + maxFiles + " files." }), void 0) }), void 0)] }), void 0));
8355
8355
  };
8356
8356
 
8357
- var css_248z$p = ".style-module_button__mw9kQ {\n height: 48px;\n}\n\n.style-module_chip-complete__3YkB9 {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n border-radius: 8px;\n padding: 8px 16px;\n height: 48px;\n}";
8358
- var styles$o = {"button":"style-module_button__mw9kQ","chip-complete":"style-module_chip-complete__3YkB9"};
8359
- styleInject(css_248z$p);
8357
+ var css_248z$q = ".style-module_button__mw9kQ {\n height: 48px;\n}\n\n.style-module_chip-complete__3YkB9 {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n border-radius: 8px;\n padding: 8px 16px;\n height: 48px;\n}";
8358
+ var styles$p = {"button":"style-module_button__mw9kQ","chip-complete":"style-module_chip-complete__3YkB9"};
8359
+ styleInject(css_248z$q);
8360
8360
 
8361
8361
  var InitialButton = function (_a) {
8362
8362
  var onDownload = _a.onDownload;
8363
- return (jsxRuntime.jsx(Button, __assign({ className: "w100 " + styles$o.button, leftIcon: jsxRuntime.jsx(DownloadIcon, {}, void 0), onClick: onDownload, "data-cy": "download-documents-button" }, { children: "Download" }), void 0));
8363
+ return (jsxRuntime.jsx(Button, __assign({ className: "w100 " + styles$p.button, leftIcon: jsxRuntime.jsx(DownloadIcon, {}, void 0), onClick: onDownload, "data-cy": "download-documents-button" }, { children: "Download" }), void 0));
8364
8364
  };
8365
8365
  // TODO: Allow setting loading to true to display text
8366
- var GeneratingButton = function () { return (jsxRuntime.jsx(Button, __assign({ className: "w100 " + styles$o.button, loading: true }, { children: "Generating" }), void 0)); };
8367
- var CompletedChip = function () { return (jsxRuntime.jsxs("div", __assign({ className: styles$o['chip-complete'] }, { children: [jsxRuntime.jsx(CheckIcon, { color: 'grey-500', size: 16 }, void 0),
8366
+ var GeneratingButton = function () { return (jsxRuntime.jsx(Button, __assign({ className: "w100 " + styles$p.button, loading: true }, { children: "Generating" }), void 0)); };
8367
+ var CompletedChip = function () { return (jsxRuntime.jsxs("div", __assign({ className: styles$p['chip-complete'] }, { children: [jsxRuntime.jsx(CheckIcon, { color: 'grey-500', size: 16 }, void 0),
8368
8368
  jsxRuntime.jsx("div", __assign({ className: "p-h4 tc-grey-500 ml8" }, { children: "Download complete" }), void 0)] }), void 0)); };
8369
8369
  var DownloadButton = function (_a) {
8370
8370
  var downloadStatus = _a.downloadStatus, onDownload = _a.onDownload, _b = _a.className, className = _b === void 0 ? '' : _b, customFail = _a.customFail;
@@ -8378,9 +8378,9 @@ var DownloadButton = function (_a) {
8378
8378
  downloadStatus === 'FAILED' && (jsxRuntime.jsx("div", __assign({ className: "p-notice p-notice--danger p-p mt40 wmx5" }, { children: customFail !== null && customFail !== void 0 ? customFail : 'An error occured when generating documents. Please try again or contact us.' }), void 0))] }), void 0));
8379
8379
  };
8380
8380
 
8381
- var css_248z$o = ".style-module_informationBox__1dzYO {\n border: 1px solid;\n}\n.style-module_informationBox--information__rsyoM {\n background-color: #e5f0ff;\n border-color: #8bb4ea;\n}\n.style-module_informationBox--error__3BqOR {\n background-color: #fedede;\n border-color: #e55454;\n}\n.style-module_informationBox--warning__10V-E {\n background-color: #fff8e3;\n border-color: #f7ce5c;\n}\n.style-module_informationBox--success__d3gTw {\n background-color: #e4ffe6;\n border-color: #84de8a;\n}\n.style-module_informationBox--neutral__1XsMl {\n background-color: #fff;\n border-color: #fff;\n}";
8382
- var styles$n = {"informationBox":"style-module_informationBox__1dzYO","informationBox--information":"style-module_informationBox--information__rsyoM","informationBox--error":"style-module_informationBox--error__3BqOR","informationBox--warning":"style-module_informationBox--warning__10V-E","informationBox--success":"style-module_informationBox--success__d3gTw","informationBox--neutral":"style-module_informationBox--neutral__1XsMl"};
8383
- styleInject(css_248z$o);
8381
+ var css_248z$p = ".style-module_informationBox__1dzYO {\n border: 1px solid;\n}\n.style-module_informationBox--information__rsyoM {\n background-color: #e5f0ff;\n border-color: #8bb4ea;\n}\n.style-module_informationBox--error__3BqOR {\n background-color: #fedede;\n border-color: #e55454;\n}\n.style-module_informationBox--warning__10V-E {\n background-color: #fff8e3;\n border-color: #f7ce5c;\n}\n.style-module_informationBox--success__d3gTw {\n background-color: #e4ffe6;\n border-color: #84de8a;\n}\n.style-module_informationBox--neutral__1XsMl {\n background-color: #fff;\n border-color: #fff;\n}";
8382
+ var styles$o = {"informationBox":"style-module_informationBox__1dzYO","informationBox--information":"style-module_informationBox--information__rsyoM","informationBox--error":"style-module_informationBox--error__3BqOR","informationBox--warning":"style-module_informationBox--warning__10V-E","informationBox--success":"style-module_informationBox--success__d3gTw","informationBox--neutral":"style-module_informationBox--neutral__1XsMl"};
8383
+ styleInject(css_248z$p);
8384
8384
 
8385
8385
  var InformationBox = function (_a) {
8386
8386
  var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.variant, variant = _c === void 0 ? 'information' : _c, title = _a.title, children = _a.children, showIcon = _a.showIcon, _d = _a.size, size = _d === void 0 ? 'default' : _d;
@@ -8391,7 +8391,7 @@ var InformationBox = function (_a) {
8391
8391
  information: 'blue-500',
8392
8392
  neutral: 'purple-500',
8393
8393
  };
8394
- return (jsxRuntime.jsx("div", __assign({ className: classNames$1(className, 'p16 br8 color-black', styles$n.informationBox, styles$n["informationBox--" + variant]), role: "alert" }, { children: jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [showIcon && (jsxRuntime.jsx("div", __assign({ "data-testid": "information-box-icon", className: 'mr8' }, { children: jsxRuntime.jsx(AlertCircleIcon, { className: styles$n.icon, color: mapAlertIconColor[variant], size: size === 'default' ? 24 : 16 }, void 0) }), void 0)),
8394
+ return (jsxRuntime.jsx("div", __assign({ className: classNames$1(className, 'p16 br8 color-black', styles$o.informationBox, styles$o["informationBox--" + variant]), role: "alert" }, { children: jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [showIcon && (jsxRuntime.jsx("div", __assign({ "data-testid": "information-box-icon", className: 'mr8' }, { children: jsxRuntime.jsx(AlertCircleIcon, { className: styles$o.icon, color: mapAlertIconColor[variant], size: size === 'default' ? 24 : 16 }, void 0) }), void 0)),
8395
8395
  jsxRuntime.jsxs("div", { children: [title && (jsxRuntime.jsx("h4", __assign({ "data-testid": "information-box-title", className: classNames$1(size === 'default' ? 'p-h4' : 'p-h5', 'mb8') }, { children: title }), void 0)),
8396
8396
  jsxRuntime.jsx("p", __assign({ className: size === 'default' ? 'p-p' : 'p-p--small' }, { children: children }), void 0)] }, void 0)] }), void 0) }), void 0));
8397
8397
  };
@@ -8477,9 +8477,9 @@ var CurrencyInput = function (_a) {
8477
8477
  } }, props), void 0));
8478
8478
  };
8479
8479
 
8480
- var css_248z$n = ".style-module_badge--small__cHO6v, .style-module_badge--medium__3CekE {\n padding-bottom: 6px;\n padding-top: 6px;\n}\n.style-module_badge--large__3_tWC {\n padding-bottom: 8px;\n padding-top: 8px;\n}";
8481
- var styles$m = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
8482
- styleInject(css_248z$n);
8480
+ var css_248z$o = ".style-module_badge--small__cHO6v, .style-module_badge--medium__3CekE {\n padding-bottom: 6px;\n padding-top: 6px;\n}\n.style-module_badge--large__3_tWC {\n padding-bottom: 8px;\n padding-top: 8px;\n}";
8481
+ var styles$n = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
8482
+ styleInject(css_248z$o);
8483
8483
 
8484
8484
  var getVariantClassNames = function (variant) { return ({
8485
8485
  information: 'bg-blue-100',
@@ -8494,12 +8494,12 @@ var getVariantClassNames = function (variant) { return ({
8494
8494
  }[variant]); };
8495
8495
  var Badge = function (_a) {
8496
8496
  var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.variant, variant = _d === void 0 ? 'information' : _d, children = _a.children;
8497
- return (jsxRuntime.jsx("div", __assign({ className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$m["badge--" + size], getVariantClassNames(variant)) }, { children: children }), void 0));
8497
+ return (jsxRuntime.jsx("div", __assign({ className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$n["badge--" + size], getVariantClassNames(variant)) }, { children: children }), void 0));
8498
8498
  };
8499
8499
 
8500
- var css_248z$m = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
8501
- var styles$l = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
8502
- styleInject(css_248z$m);
8500
+ var css_248z$n = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
8501
+ var styles$m = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
8502
+ styleInject(css_248z$n);
8503
8503
 
8504
8504
  var Checkbox = function (_a) {
8505
8505
  var _b;
@@ -8528,8 +8528,8 @@ var Checkbox = function (_a) {
8528
8528
  var isCheckboxLabelObject = function (label) {
8529
8529
  return label.title !== undefined;
8530
8530
  };
8531
- return (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$l.container, 'd-flex gap8', (_b = {},
8532
- _b[styles$l.narrow] = !wide,
8531
+ return (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$m.container, 'd-flex gap8', (_b = {},
8532
+ _b[styles$m.narrow] = !wide,
8533
8533
  _b['fd-row'] = inlineLayout,
8534
8534
  _b['f-wrap'] = inlineLayout,
8535
8535
  _b['fd-column'] = !inlineLayout,
@@ -8551,17 +8551,17 @@ var Checkbox = function (_a) {
8551
8551
  }) }), void 0));
8552
8552
  };
8553
8553
 
8554
- var css_248z$l = ".styles-module_container__3M-sc {\n max-width: 100%;\n}\n\n.styles-module_narrow__3VUzp {\n max-width: 424px;\n}\n\n.styles-module_wide__3nLhz {\n max-width: 736px;\n}";
8555
- var styles$k = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
8556
- styleInject(css_248z$l);
8554
+ var css_248z$m = ".styles-module_container__3M-sc {\n max-width: 100%;\n}\n\n.styles-module_narrow__3VUzp {\n max-width: 424px;\n}\n\n.styles-module_wide__3nLhz {\n max-width: 736px;\n}";
8555
+ var styles$l = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
8556
+ styleInject(css_248z$m);
8557
8557
 
8558
8558
  var Radio = function (_a) {
8559
8559
  var _b;
8560
8560
  var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, _e = _a.inlineIcon, inlineIcon = _e === void 0 ? false : _e, classNamesObj = _a.classNames, _f = _a.bordered, bordered = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
8561
8561
  var entries = Object.entries(options);
8562
- return (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$k.container, 'd-flex gap8', (_b = {},
8563
- _b[styles$k.wide] = wide,
8564
- _b[styles$k.narrow] = !wide,
8562
+ return (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$l.container, 'd-flex gap8', (_b = {},
8563
+ _b[styles$l.wide] = wide,
8564
+ _b[styles$l.narrow] = !wide,
8565
8565
  _b['fd-row'] = inlineLayout,
8566
8566
  _b['f-wrap'] = inlineLayout,
8567
8567
  _b['fd-column'] = !inlineLayout,
@@ -8588,19 +8588,23 @@ var Radio = function (_a) {
8588
8588
  }) }), void 0));
8589
8589
  };
8590
8590
 
8591
- var css_248z$k = "@keyframes style-module_fade-in__1GZgs {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n }\n}\n@keyframes style-module_fade-out__30Bns {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n }\n}\n@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_close__1GERU {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_closeIcon__3Q7nF {\n margin: 0;\n}\n\n.style-module_overlay__AlX2J, .style-module_overlay--close__3E9GY {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__1GZgs 0.3s both;\n}\n.style-module_overlay--close__3E9GY {\n animation-delay: 0.1s;\n animation: style-module_fade-out__30Bns 0.3s both;\n}\n\n.style-module_wrapper__200Xu {\n position: relative;\n top: 0;\n width: 100%;\n overflow: hidden;\n}\n\n.style-module_container__aOENo, .style-module_container--close__K506c {\n background-color: white;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n width: 100%;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_container--close__K506c {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_header__10iiH {\n height: 60px;\n display: flex;\n align-items: center;\n padding: 0 16px;\n}\n\n@media (max-width: 34rem) {\n .style-module_content__mq_IJ {\n padding-bottom: 48px;\n }\n}";
8592
- var styles$j = {"close":"style-module_close__1GERU","closeIcon":"style-module_closeIcon__3Q7nF","overlay":"style-module_overlay__AlX2J","overlay--close":"style-module_overlay--close__3E9GY","fade-in":"style-module_fade-in__1GZgs","fade-out":"style-module_fade-out__30Bns","wrapper":"style-module_wrapper__200Xu","container":"style-module_container__aOENo","container--close":"style-module_container--close__K506c","appear-in":"style-module_appear-in__3U2lu","disappear-out":"style-module_disappear-out__6pOVr","header":"style-module_header__10iiH","content":"style-module_content__mq_IJ"};
8593
- styleInject(css_248z$k);
8591
+ var css_248z$l = "@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_wrapper__200Xu {\n position: relative;\n top: 0;\n overflow: hidden;\n}\n\n.style-module_container__aOENo {\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n overflow: auto;\n max-height: 90vh;\n bottom: 0;\n position: fixed;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-in;\n}\n@media (max-width: 34rem) {\n .style-module_container__aOENo {\n padding-bottom: 48px;\n }\n}\n.style-module_containerClose__3-nqc {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}";
8592
+ var styles$k = {"wrapper":"style-module_wrapper__200Xu","container":"style-module_container__aOENo","appear-in":"style-module_appear-in__3U2lu","containerClose":"style-module_containerClose__3-nqc","disappear-out":"style-module_disappear-out__6pOVr"};
8593
+ styleInject(css_248z$l);
8594
8594
 
8595
8595
  var useOnClose = function (onClose, isOpen, dismissable) {
8596
- var _a = require$$0.useState(false), isClosing = _a[0], setIsClosing = _a[1];
8596
+ var _a = require$$0.useState(false), isVisible = _a[0], setIsVisible = _a[1];
8597
+ var _b = require$$0.useState(false), isClosing = _b[0], setIsClosing = _b[1];
8597
8598
  var handleOnClose = require$$0.useCallback(function () {
8598
8599
  setIsClosing(true);
8599
- setTimeout(function () {
8600
+ }, []);
8601
+ var handleOnCloseAnimationEnded = require$$0.useCallback(function () {
8602
+ if (isVisible && isClosing) {
8600
8603
  onClose();
8604
+ setIsVisible(false);
8601
8605
  setIsClosing(false);
8602
- }, 300);
8603
- }, [setIsClosing, onClose]);
8606
+ }
8607
+ }, [isClosing, isVisible, onClose]);
8604
8608
  var handleOnOverlayClick = require$$0.useCallback(function () {
8605
8609
  if (!dismissable) {
8606
8610
  return;
@@ -8623,52 +8627,84 @@ var useOnClose = function (onClose, isOpen, dismissable) {
8623
8627
  };
8624
8628
  }, [handleEscKey]);
8625
8629
  require$$0.useEffect(function () {
8630
+ if (isOpen) {
8631
+ setIsVisible(true);
8632
+ }
8633
+ if (!isOpen && isVisible) {
8634
+ handleOnClose();
8635
+ }
8626
8636
  document.body.style.overflow = isOpen ? 'hidden' : 'auto';
8627
8637
  return function () {
8628
8638
  document.body.style.overflow = 'auto';
8629
8639
  };
8630
- }, [isOpen]);
8640
+ }, [handleOnClose, isOpen, isVisible]);
8631
8641
  var handleContainerClick = function (e) {
8632
8642
  e.stopPropagation();
8633
8643
  };
8634
- return { isClosing: isClosing, handleContainerClick: handleContainerClick, handleOnClose: handleOnClose, handleOnOverlayClick: handleOnOverlayClick };
8644
+ return {
8645
+ isClosing: isClosing,
8646
+ isVisible: isVisible,
8647
+ handleContainerClick: handleContainerClick,
8648
+ handleOnCloseAnimationEnded: handleOnCloseAnimationEnded,
8649
+ handleOnClose: handleOnClose,
8650
+ handleOnOverlayClick: handleOnOverlayClick
8651
+ };
8652
+ };
8653
+
8654
+ var css_248z$k = "@keyframes style-module_fade-in__f_VRg {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__1tEwS {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n.style-module_overlay__2f00R {\n z-index: 100;\n overflow: auto;\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__f_VRg 0.3s both;\n}\n.style-module_overlayClose__1p313 {\n animation-delay: 0.1s;\n animation: style-module_fade-out__1tEwS 0.3s both;\n}\n\n.style-module_header__284Rz {\n position: sticky;\n top: 0;\n}\n\n.style-module_closeButton__1AbX8 {\n width: 32px;\n height: 32px;\n}\n\n.style-module_body__QtlTn {\n flex-grow: 1;\n overflow: auto;\n background: linear-gradient(#fff 30%, #fff), linear-gradient(#fff, #fff 70%), linear-gradient(#ededf2 30%, #ededf2), linear-gradient(#ededf2, #ededf2 70%) 0 100%;\n background-repeat: no-repeat;\n background-size: 100% 1px;\n background-attachment: local, local, scroll, scroll;\n}\n\n.style-module_footer__Sh5bv {\n width: 100%;\n position: sticky;\n bottom: 0;\n}";
8655
+ var styles$j = {"overlay":"style-module_overlay__2f00R","fade-in":"style-module_fade-in__f_VRg","overlayClose":"style-module_overlayClose__1p313","fade-out":"style-module_fade-out__1tEwS","header":"style-module_header__284Rz","closeButton":"style-module_closeButton__1AbX8","body":"style-module_body__QtlTn","footer":"style-module_footer__Sh5bv"};
8656
+ styleInject(css_248z$k);
8657
+
8658
+ var GenericModal = function (_a) {
8659
+ var _b;
8660
+ var _c, _d;
8661
+ var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, classNames = _a.classNames, _e = _a.dismissible, dismissible = _e === void 0 ? true : _e, footer = _a.footer, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f;
8662
+ var _g = useOnClose(onClose, isOpen, dismissible), isClosing = _g.isClosing, isVisible = _g.isVisible, handleContainerClick = _g.handleContainerClick, handleOnCloseAnimationEnded = _g.handleOnCloseAnimationEnded, handleOnClose = _g.handleOnClose, handleOnOverlayClick = _g.handleOnOverlayClick;
8663
+ return !isVisible ? null : (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.overlay, styles$j.overlay, (_b = {},
8664
+ _b[styles$j.overlayClose] = isClosing,
8665
+ _b)), onAnimationEnd: handleOnCloseAnimationEnded, onClick: handleOnOverlayClick }, { children: jsxRuntime.jsx("div", __assign({ className: typeof (classNames === null || classNames === void 0 ? void 0 : classNames.wrapper) === 'string'
8666
+ ? classNames === null || classNames === void 0 ? void 0 : classNames.wrapper
8667
+ : (_c = classNames === null || classNames === void 0 ? void 0 : classNames.wrapper) === null || _c === void 0 ? void 0 : _c.call(classNames, { isClosing: isClosing }) }, { children: jsxRuntime.jsxs("div", __assign({ className: typeof (classNames === null || classNames === void 0 ? void 0 : classNames.container) === 'string'
8668
+ ? classNames === null || classNames === void 0 ? void 0 : classNames.container
8669
+ : (_d = classNames === null || classNames === void 0 ? void 0 : classNames.container) === null || _d === void 0 ? void 0 : _d.call(classNames, { isClosing: isClosing }), onClick: handleContainerClick }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1('bg-white d-flex ai-center w100 px24 pt24 pb16', styles$j.header, {
8670
+ 'jc-between': !!children,
8671
+ 'jc-end': !children,
8672
+ }) }, { children: [title && (jsxRuntime.jsx("div", __assign({ className: classNames$1(styles$j.title, titleSize === 'small' ? 'p-h4' : 'p-h2') }, { children: title }), void 0)),
8673
+ dismissible && (jsxRuntime.jsx(Button, __assign({ hideLabel: true, leftIcon: jsxRuntime.jsx(XIcon, { color: "grey-700" }, void 0), onClick: handleOnClose, type: "button", variant: "textColor", className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.closeButton, 'p0', styles$j.closeButton) }, { children: "Close modal" }), void 0))] }), void 0),
8674
+ jsxRuntime.jsx("div", __assign({ className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.body, styles$j.body) }, { children: children }), void 0),
8675
+ footer && (jsxRuntime.jsx("div", __assign({ className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.footer, 'bg-white', styles$j.footer) }, { children: jsxRuntime.jsx("div", __assign({ className: "px24 py16" }, { children: footer }), void 0) }), void 0))] }), void 0) }), void 0) }), void 0));
8635
8676
  };
8636
8677
 
8637
8678
  var BottomModal = function (_a) {
8638
- var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.dismissible, dismissible = _c === void 0 ? true : _c;
8639
- var _d = require$$0.useState(0), containerXOffset = _d[0], setContainerXOffset = _d[1];
8640
- var _e = useOnClose(onClose, isOpen, dismissible), isClosing = _e.isClosing, handleContainerClick = _e.handleContainerClick, handleOnClose = _e.handleOnClose, handleOnOverlayClick = _e.handleOnOverlayClick;
8641
- var containerRef = require$$0.useCallback(function (node) {
8642
- if (node !== null) {
8643
- setContainerXOffset(Math.max(window.innerHeight * 0.1, window.innerHeight - node.getBoundingClientRect().height));
8644
- }
8645
- }, []);
8646
- if (!isOpen) {
8647
- return jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0);
8648
- }
8649
- return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$j['overlay--close'] : styles$j.overlay, onClick: handleOnOverlayClick }, { children: jsxRuntime.jsx("div", __assign({ className: styles$j.wrapper, ref: containerRef, onClick: handleContainerClick, style: { top: containerXOffset + "px" } }, { children: jsxRuntime.jsxs("div", __assign({ className: (isClosing ? styles$j['container--close'] : styles$j.container) + " " + className }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1(styles$j.header, {
8650
- 'jc-between': !!title,
8651
- 'jc-end': !title,
8652
- }) }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-h4 " + styles$j.title }, { children: title }), void 0),
8653
- dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$j.close, onClick: handleOnClose }, { children: jsxRuntime.jsx(XIcon, { size: 24, color: 'grey-700', className: "" + styles$j.closeIcon }, void 0) }), void 0))] }), void 0),
8654
- jsxRuntime.jsx("div", __assign({ className: styles$j.content }, { children: children }), void 0)] }), void 0) }), void 0) }), void 0));
8679
+ var className = _a.className, rest = __rest$1(_a, ["className"]);
8680
+ return (jsxRuntime.jsx(GenericModal, __assign({ titleSize: 'small', classNames: {
8681
+ wrapper: classNames$1('w100', styles$k.wrapper),
8682
+ container: function (_a) {
8683
+ var _b;
8684
+ var isClosing = _a.isClosing;
8685
+ return classNames$1('bg-white d-flex fd-column w100', className, styles$k.container, (_b = {},
8686
+ _b[styles$k.containerClose] = isClosing,
8687
+ _b));
8688
+ },
8689
+ } }, rest), void 0));
8655
8690
  };
8656
8691
 
8657
- var css_248z$j = "@keyframes style-module_fade-in__nLzzO {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__IuSV7 {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n@keyframes style-module_appear-in__2ZMqz {\n 0% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n}\n@keyframes style-module_disappear-out__38TSV {\n 0% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n 100% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n}\n.style-module_overlay__1Zbce, .style-module_overlay--close__2dytn {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__nLzzO 0.3s both;\n}\n.style-module_overlay--close__2dytn {\n animation-delay: 0.1s;\n animation: style-module_fade-out__IuSV7 0.3s both;\n}\n\n.style-module_container__1XZj_, .style-module_container--close__3UYsJ {\n position: relative;\n display: flex;\n align-items: center;\n max-width: 592px;\n width: 100%;\n min-height: 100%;\n margin: 0 auto;\n animation-name: style-module_appear-in__2ZMqz;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_container--close__3UYsJ {\n animation-name: style-module_disappear-out__38TSV;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_body__lbUih {\n background-color: white;\n border-radius: 8px;\n margin: 80px auto;\n}\n\n.style-module_header__2oEKp {\n display: flex;\n align-items: center;\n padding: 24px 24px 0 24px;\n}\n\n.style-module_close__p3Axi {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_closeIcon__1KNwx {\n margin: 0;\n}";
8658
- var styles$i = {"overlay":"style-module_overlay__1Zbce","overlay--close":"style-module_overlay--close__2dytn","fade-in":"style-module_fade-in__nLzzO","fade-out":"style-module_fade-out__IuSV7","container":"style-module_container__1XZj_","container--close":"style-module_container--close__3UYsJ","appear-in":"style-module_appear-in__2ZMqz","disappear-out":"style-module_disappear-out__38TSV","body":"style-module_body__lbUih","header":"style-module_header__2oEKp","close":"style-module_close__p3Axi","closeIcon":"style-module_closeIcon__1KNwx"};
8692
+ var css_248z$j = "@keyframes style-module_appear-in__2ZMqz {\n 0% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n}\n@keyframes style-module_disappear-out__38TSV {\n 0% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n 100% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n}\n.style-module_wrapper__qQirD {\n position: relative;\n min-height: 100%;\n animation-name: style-module_appear-in__2ZMqz;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_wrapperClose__2aXSB {\n animation-name: style-module_disappear-out__38TSV;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_container__1XZj_ {\n max-height: 96vh;\n overflow: hidden;\n}";
8693
+ var styles$i = {"wrapper":"style-module_wrapper__qQirD","appear-in":"style-module_appear-in__2ZMqz","wrapperClose":"style-module_wrapperClose__2aXSB","disappear-out":"style-module_disappear-out__38TSV","container":"style-module_container__1XZj_"};
8659
8694
  styleInject(css_248z$j);
8660
8695
 
8661
8696
  var RegularModal = function (_a) {
8662
- var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.dismissible, dismissible = _c === void 0 ? true : _c;
8663
- var _d = useOnClose(onClose, isOpen, dismissible), isClosing = _d.isClosing, handleContainerClick = _d.handleContainerClick, handleOnClose = _d.handleOnClose, handleOnOverlayClick = _d.handleOnOverlayClick;
8664
- if (!isOpen) {
8665
- return jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0);
8666
- }
8667
- return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$i['overlay--close'] : styles$i.overlay, onClick: handleOnOverlayClick }, { children: jsxRuntime.jsx("div", __assign({ className: (isClosing ? styles$i['container--close'] : styles$i.container) + " " + className }, { children: jsxRuntime.jsxs("div", __assign({ className: styles$i.body, onClick: handleContainerClick }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1(styles$i.header, {
8668
- 'jc-between': !!title,
8669
- 'jc-end': !title,
8670
- }) }, { children: [title && jsxRuntime.jsx("div", __assign({ className: "p-h2 " + styles$i.title }, { children: title }), void 0),
8671
- dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$i.close, onClick: handleOnClose }, { children: jsxRuntime.jsx(XIcon, { size: 24, color: 'grey-700', className: "" + styles$i.closeIcon }, void 0) }), void 0))] }), void 0), children] }), void 0) }), void 0) }), void 0));
8697
+ var _b = _a.className, className = _b === void 0 ? '' : _b, rest = __rest$1(_a, ["className"]);
8698
+ return (jsxRuntime.jsx(GenericModal, __assign({ classNames: {
8699
+ wrapper: function (_a) {
8700
+ var _b;
8701
+ var isClosing = _a.isClosing;
8702
+ return classNames$1('d-flex ai-center w90 mx-auto my0', className, styles$i.wrapper, (_b = {},
8703
+ _b[styles$i.wrapperClose] = isClosing,
8704
+ _b));
8705
+ },
8706
+ container: classNames$1('bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8', styles$i.container)
8707
+ } }, rest), void 0));
8672
8708
  };
8673
8709
 
8674
8710
  var css_248z$i = "@media (min-width: 34rem) {\n .style-module_mobile__3k175 {\n display: none;\n }\n}\n@media (max-width: 34rem) {\n .style-module_mobile__3k175 {\n display: block !important;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_desktop__2lclr {\n display: none;\n }\n}";