math-main-components 0.0.10 → 0.0.12

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 (258) hide show
  1. package/dist/_virtual/_interop_require_default.cjs.js +3 -0
  2. package/dist/_virtual/_interop_require_wildcard.cjs.js +3 -0
  3. package/dist/_virtual/add-base-path.js +3 -0
  4. package/dist/_virtual/add-locale.js +3 -0
  5. package/dist/_virtual/add-locale2.js +3 -0
  6. package/dist/_virtual/add-path-prefix.js +3 -0
  7. package/dist/_virtual/add-path-suffix.js +3 -0
  8. package/dist/_virtual/app-paths.js +3 -0
  9. package/dist/_virtual/app-router-context.shared-runtime.js +3 -0
  10. package/dist/_virtual/app-router-headers.js +3 -0
  11. package/dist/_virtual/bloom-filter.js +3 -0
  12. package/dist/_virtual/compare-states.js +3 -0
  13. package/dist/_virtual/denormalize-page-path.js +3 -0
  14. package/dist/_virtual/detect-domain-locale.js +3 -0
  15. package/dist/_virtual/detect-domain-locale2.js +3 -0
  16. package/dist/_virtual/ensure-leading-slash.js +3 -0
  17. package/dist/_virtual/escape-regexp.js +3 -0
  18. package/dist/_virtual/format-next-pathname-info.js +3 -0
  19. package/dist/_virtual/format-url.js +3 -0
  20. package/dist/_virtual/get-asset-path-from-route.js +3 -0
  21. package/dist/_virtual/get-cookie-parser.js +3 -0
  22. package/dist/_virtual/get-domain-locale.js +3 -0
  23. package/dist/_virtual/get-next-pathname-info.js +3 -0
  24. package/dist/_virtual/handle-smooth-scroll.js +3 -0
  25. package/dist/_virtual/has-base-path.js +3 -0
  26. package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
  27. package/dist/_virtual/head-manager.js +3 -0
  28. package/dist/_virtual/index.js +3 -0
  29. package/dist/_virtual/index2.js +3 -0
  30. package/dist/_virtual/index3.js +3 -0
  31. package/dist/_virtual/index4.js +3 -0
  32. package/dist/_virtual/index5.js +3 -0
  33. package/dist/_virtual/interception-routes.js +3 -0
  34. package/dist/_virtual/interpolate-as.js +3 -0
  35. package/dist/_virtual/is-api-route.js +3 -0
  36. package/dist/_virtual/is-bot.js +3 -0
  37. package/dist/_virtual/is-dynamic.js +3 -0
  38. package/dist/_virtual/is-error.js +3 -0
  39. package/dist/_virtual/is-local-url.js +3 -0
  40. package/dist/_virtual/is-plain-object.js +3 -0
  41. package/dist/_virtual/link.js +3 -0
  42. package/dist/_virtual/link2.js +3 -0
  43. package/dist/_virtual/mitt.js +3 -0
  44. package/dist/_virtual/normalize-locale-path.js +3 -0
  45. package/dist/_virtual/normalize-locale-path2.js +3 -0
  46. package/dist/_virtual/normalize-path-sep.js +3 -0
  47. package/dist/_virtual/normalize-trailing-slash.js +3 -0
  48. package/dist/_virtual/omit.js +3 -0
  49. package/dist/_virtual/parse-path.js +3 -0
  50. package/dist/_virtual/parse-relative-url.js +3 -0
  51. package/dist/_virtual/parse-url.js +3 -0
  52. package/dist/_virtual/path-has-prefix.js +3 -0
  53. package/dist/_virtual/path-match.js +3 -0
  54. package/dist/_virtual/prepare-destination.js +3 -0
  55. package/dist/_virtual/querystring.js +3 -0
  56. package/dist/_virtual/react-is.development.js +3 -0
  57. package/dist/_virtual/react-is.production.min.js +3 -0
  58. package/dist/_virtual/remove-base-path.js +3 -0
  59. package/dist/_virtual/remove-locale.js +3 -0
  60. package/dist/_virtual/remove-path-prefix.js +3 -0
  61. package/dist/_virtual/remove-trailing-slash.js +3 -0
  62. package/dist/_virtual/request-idle-callback.js +3 -0
  63. package/dist/_virtual/resolve-href.js +3 -0
  64. package/dist/_virtual/resolve-rewrites.js +3 -0
  65. package/dist/_virtual/route-loader.js +3 -0
  66. package/dist/_virtual/route-matcher.js +3 -0
  67. package/dist/_virtual/route-regex.js +3 -0
  68. package/dist/_virtual/router-context.shared-runtime.js +3 -0
  69. package/dist/_virtual/router-reducer-types.js +3 -0
  70. package/dist/_virtual/router.js +3 -0
  71. package/dist/_virtual/router2.js +3 -0
  72. package/dist/_virtual/router3.js +3 -0
  73. package/dist/_virtual/script.js +3 -0
  74. package/dist/_virtual/segment.js +3 -0
  75. package/dist/_virtual/sorted-routes.js +3 -0
  76. package/dist/_virtual/trusted-types.js +3 -0
  77. package/dist/_virtual/use-intersection.js +3 -0
  78. package/dist/_virtual/utils.js +3 -0
  79. package/dist/_virtual/with-router.js +3 -0
  80. package/dist/components/AuthButton/AuthButton.d.ts +9 -0
  81. package/dist/components/AuthButton/index.d.ts +1 -0
  82. package/dist/components/CardButton/CardButton.d.ts +6 -0
  83. package/dist/components/CardButton/index.d.ts +1 -0
  84. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  85. package/dist/components/Checkbox/index.d.ts +1 -0
  86. package/dist/components/ChooseRole/ChooseRole.d.ts +12 -0
  87. package/dist/components/ChooseRole/index.d.ts +1 -0
  88. package/dist/components/CopyCode/CopyCode.d.ts +6 -0
  89. package/dist/components/CopyCode/index.d.ts +1 -0
  90. package/dist/components/FormButton/FormButton.d.ts +7 -0
  91. package/dist/components/FormButton/index.d.ts +1 -0
  92. package/dist/components/FormText/FormText.d.ts +6 -0
  93. package/dist/components/FormText/index.d.ts +1 -0
  94. package/dist/components/ForwardButton/ForwardButton.d.ts +4 -0
  95. package/dist/components/ForwardButton/index.d.ts +1 -0
  96. package/dist/components/InputMail/InputMail.d.ts +8 -0
  97. package/dist/components/InputMail/index.d.ts +1 -0
  98. package/dist/components/InputNames/InputNames.d.ts +15 -0
  99. package/dist/components/InputNames/index.d.ts +1 -0
  100. package/dist/components/InputNumber/InputNumber.d.ts +12 -0
  101. package/dist/components/InputNumber/index.d.ts +1 -0
  102. package/dist/components/InputPassword/InputPassword.d.ts +10 -0
  103. package/dist/components/InputPassword/index.d.ts +1 -0
  104. package/dist/components/InputPin/InputPin.d.ts +6 -0
  105. package/dist/components/InputPin/index.d.ts +1 -0
  106. package/dist/components/InputText/InputText.d.ts +12 -0
  107. package/dist/components/InputText/index.d.ts +1 -0
  108. package/dist/components/OptionField/OptionField.d.ts +7 -0
  109. package/dist/components/OptionField/index.d.ts +1 -0
  110. package/dist/components/OptionFieldHorizontal/OptionFieldHorizontal.d.ts +7 -0
  111. package/dist/components/OptionFieldHorizontal/index.d.ts +1 -0
  112. package/dist/components/PrimaryButton/PrimaryButton.d.ts +7 -0
  113. package/dist/components/PrimaryButton/index.d.ts +1 -0
  114. package/dist/components/ProgressBar/ProgressBar.d.ts +5 -0
  115. package/dist/components/ProgressBar/index.d.ts +1 -0
  116. package/dist/components/RadioButtons/RadioButtons.d.ts +12 -0
  117. package/dist/components/RadioButtons/index.d.ts +1 -0
  118. package/dist/components/RedirectButton/RedirectButton.d.ts +5 -0
  119. package/dist/components/RedirectButton/index.d.ts +1 -0
  120. package/dist/components/SearchChips/SearchChips.d.ts +11 -0
  121. package/dist/components/SearchChips/index.d.ts +1 -0
  122. package/dist/components/Searchbar/Searchbar.d.ts +19 -0
  123. package/dist/components/Searchbar/index.d.ts +1 -0
  124. package/dist/components/Slider/Slider.d.ts +9 -0
  125. package/dist/components/Slider/index.d.ts +1 -0
  126. package/dist/components/StepBack/StepBack.d.ts +4 -0
  127. package/dist/components/StepBack/index.d.ts +1 -0
  128. package/dist/components/SvgIcon/SvgIcon.d.ts +0 -1
  129. package/dist/components/Table/Table.d.ts +26 -0
  130. package/dist/components/Table/index.d.ts +1 -0
  131. package/dist/components/TextWithIcon/TextWithIcon.d.ts +6 -0
  132. package/dist/components/TextWithIcon/index.d.ts +1 -0
  133. package/dist/components/UsageCard/UsageCard.d.ts +7 -0
  134. package/dist/components/UsageCard/index.d.ts +1 -0
  135. package/dist/components/index.d.ts +31 -4
  136. package/dist/index.cjs.js +977 -14
  137. package/dist/index.d.ts +33 -1
  138. package/dist/index.esm.js +945 -16
  139. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +7 -0
  140. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +48 -0
  141. package/dist/node_modules/clsx/dist/clsx.m.js +3 -0
  142. package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +1 -0
  143. package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
  144. package/dist/node_modules/next/dist/client/add-locale.js +42 -0
  145. package/dist/node_modules/next/dist/client/components/app-router-headers.js +78 -0
  146. package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +69 -0
  147. package/dist/node_modules/next/dist/client/detect-domain-locale.js +39 -0
  148. package/dist/node_modules/next/dist/client/get-domain-locale.js +51 -0
  149. package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
  150. package/dist/node_modules/next/dist/client/head-manager.js +212 -0
  151. package/dist/node_modules/next/dist/client/link.js +431 -0
  152. package/dist/node_modules/next/dist/client/normalize-locale-path.js +40 -0
  153. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +50 -0
  154. package/dist/node_modules/next/dist/client/remove-base-path.js +45 -0
  155. package/dist/node_modules/next/dist/client/remove-locale.js +41 -0
  156. package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
  157. package/dist/node_modules/next/dist/client/resolve-href.js +99 -0
  158. package/dist/node_modules/next/dist/client/route-loader.js +327 -0
  159. package/dist/node_modules/next/dist/client/router.js +202 -0
  160. package/dist/node_modules/next/dist/client/script.js +353 -0
  161. package/dist/node_modules/next/dist/client/trusted-types.js +54 -0
  162. package/dist/node_modules/next/dist/client/use-intersection.js +129 -0
  163. package/dist/node_modules/next/dist/client/with-router.js +52 -0
  164. package/dist/node_modules/next/dist/compiled/cookie/index.js +18 -0
  165. package/dist/node_modules/next/dist/compiled/gzip-size/index.js +15 -0
  166. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +416 -0
  167. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +230 -0
  168. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +26 -0
  169. package/dist/node_modules/next/dist/compiled/react-is/index.js +21 -0
  170. package/dist/node_modules/next/dist/lib/is-api-route.js +27 -0
  171. package/dist/node_modules/next/dist/lib/is-error.js +53 -0
  172. package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +35 -0
  173. package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +97 -0
  174. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +63 -0
  175. package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +96 -0
  176. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +33 -0
  177. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +33 -0
  178. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +38 -0
  179. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
  180. package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +50 -0
  181. package/dist/node_modules/next/dist/shared/lib/mitt.js +57 -0
  182. package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +32 -0
  183. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +32 -0
  184. package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +33 -0
  185. package/dist/node_modules/next/dist/shared/lib/router/router.js +1771 -0
  186. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +42 -0
  187. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +33 -0
  188. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +33 -0
  189. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
  190. package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +46 -0
  191. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +43 -0
  192. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +99 -0
  193. package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +29 -0
  194. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +69 -0
  195. package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +49 -0
  196. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +36 -0
  197. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +67 -0
  198. package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +27 -0
  199. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +28 -0
  200. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +40 -0
  201. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +33 -0
  202. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +47 -0
  203. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +43 -0
  204. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +44 -0
  205. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +33 -0
  206. package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +62 -0
  207. package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +245 -0
  208. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +80 -0
  209. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +52 -0
  210. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +35 -0
  211. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +136 -0
  212. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +53 -0
  213. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +200 -0
  214. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +182 -0
  215. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +33 -0
  216. package/dist/node_modules/next/dist/shared/lib/segment.js +28 -0
  217. package/dist/node_modules/next/dist/shared/lib/utils.js +196 -0
  218. package/dist/node_modules/next/link.js +7 -0
  219. package/dist/node_modules/next/router.js +6 -0
  220. package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +7 -0
  221. package/dist/node_modules/style-inject/dist/style-inject.es.js +28 -0
  222. package/dist/services/prisma.service.d.ts +2 -0
  223. package/dist/src/components/Accordeon/Accordeon.js +14 -0
  224. package/dist/src/components/Accordeon/styles.module.scss.js +7 -0
  225. package/dist/src/components/AuthButton/styles.module.scss.js +4 -0
  226. package/dist/src/components/CardButton/styles.module.scss.js +4 -0
  227. package/dist/src/components/Checkbox/styles.module.scss.js +4 -0
  228. package/dist/src/components/ChooseRole/styles.module.scss.js +4 -0
  229. package/dist/src/components/CopyCode/styles.module.scss.js +4 -0
  230. package/dist/src/components/Dialog/Dialog.js +14 -0
  231. package/dist/src/components/Dialog/styles.module.scss.js +7 -0
  232. package/dist/src/components/FormButton/styles.module.scss.js +4 -0
  233. package/dist/src/components/FormText/styles.module.scss.js +4 -0
  234. package/dist/src/components/ForwardButton/styles.module.scss.js +4 -0
  235. package/dist/src/components/Gap/Gap.js +7 -0
  236. package/dist/src/components/InputMail/styles.module.scss.js +4 -0
  237. package/dist/src/components/InputNames/styles.module.scss.js +4 -0
  238. package/dist/src/components/InputNumber/styles.module.scss.js +4 -0
  239. package/dist/src/components/InputPassword/styles.module.scss.js +4 -0
  240. package/dist/src/components/InputPin/styles.module.scss.js +4 -0
  241. package/dist/src/components/InputText/styles.module.scss.js +4 -0
  242. package/dist/src/components/OptionField/styles.module.scss.js +4 -0
  243. package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +4 -0
  244. package/dist/src/components/PrimaryButton/styles.module.scss.js +4 -0
  245. package/dist/src/components/ProgressBar/styles.module.scss.js +4 -0
  246. package/dist/src/components/RadioButtons/styles.module.scss.js +4 -0
  247. package/dist/src/components/RedirectButton/styles.module.scss.js +4 -0
  248. package/dist/src/components/SearchChips/styles.module.scss.js +4 -0
  249. package/dist/src/components/Searchbar/styles.module.scss.js +4 -0
  250. package/dist/src/components/Slider/styles.module.scss.js +4 -0
  251. package/dist/src/components/StepBack/styles.module.scss.js +4 -0
  252. package/dist/src/components/SvgIcon/SvgIcon.js +9 -0
  253. package/dist/src/components/Table/Table.js +12 -0
  254. package/dist/src/components/Table/styles.module.scss.js +4 -0
  255. package/dist/src/components/TextWithIcon/styles.module.scss.js +4 -0
  256. package/dist/src/components/UsageCard/styles.module.scss.js +4 -0
  257. package/dist/src/index.js +35 -0
  258. package/package.json +9 -4
package/dist/index.cjs.js CHANGED
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- require('external-svg-loader');
6
+ var Link = require('next/link');
7
7
 
8
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
10
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
+ var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
11
12
 
12
13
  function SvgIcon({ iconName, size = "24px", className = "", onClick }) {
13
14
  return (React__default["default"].createElement(React__default["default"].Fragment, null,
14
- React__default["default"].createElement("span", { onClick: onClick, className: `material-symbols-outlined ${className}`, style: { fontSize: size } }, iconName),
15
- "Lib"));
15
+ React__default["default"].createElement("span", { onClick: onClick, className: `material-symbols-outlined ${className}`, style: { fontSize: size } }, iconName)));
16
16
  }
17
17
 
18
18
  function styleInject(css, ref) {
@@ -42,22 +42,100 @@ function styleInject(css, ref) {
42
42
  }
43
43
  }
44
44
 
45
- var css_248z$1 = ".styles-module_container__3IVfB {\n margin-top: 40px;\n background: white;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 16px 20px;\n color: grey;\n background: #F1F1F1;\n border-radius: 30px;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n transition: 0.2s ease-in-out;\n gap: 10px;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb span {\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb h3 {\n margin: 0;\n font-weight: 400;\n font-size: 16px;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb:hover {\n background: #e2e2e2;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R {\n box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_head__xFYQb span {\n rotate: 180deg;\n}\n.styles-module_container__3IVfB .styles-module_content__XAf02 {\n transition: all 0.3s ease-in-out;\n line-height: 1.5;\n}\n.styles-module_container__3IVfB.styles-module_not_active__JcVLz .styles-module_content__XAf02 {\n height: 0;\n max-height: 0;\n overflow: hidden;\n opacity: 0;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_content__XAf02 {\n max-height: auto;\n overflow: visible;\n opacity: 1;\n padding: 10px 0px;\n}";
46
- var styles$1 = {"container":"styles-module_container__3IVfB","head":"styles-module_head__xFYQb","active":"styles-module_active__soD8R","content":"styles-module_content__XAf02","not_active":"styles-module_not_active__JcVLz"};
47
- styleInject(css_248z$1);
45
+ var css_248z$s = ".styles-module_container__3IVfB {\n margin-top: 40px;\n background: white;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 16px 20px;\n color: grey;\n background: #F1F1F1;\n border-radius: 30px;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n transition: 0.2s ease-in-out;\n gap: 10px;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb span {\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb h3 {\n margin: 0;\n font-weight: 400;\n font-size: 16px;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb:hover {\n background: #e2e2e2;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R {\n box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_head__xFYQb span {\n rotate: 180deg;\n}\n.styles-module_container__3IVfB .styles-module_content__XAf02 {\n transition: all 0.3s ease-in-out;\n line-height: 1.5;\n}\n.styles-module_container__3IVfB.styles-module_not_active__JcVLz .styles-module_content__XAf02 {\n height: 0;\n max-height: 0;\n overflow: hidden;\n opacity: 0;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_content__XAf02 {\n max-height: auto;\n overflow: visible;\n opacity: 1;\n padding: 10px 0px;\n}";
46
+ var styles$s = {"container":"styles-module_container__3IVfB","head":"styles-module_head__xFYQb","active":"styles-module_active__soD8R","content":"styles-module_content__XAf02","not_active":"styles-module_not_active__JcVLz"};
47
+ styleInject(css_248z$s);
48
48
 
49
49
  function Accordeon({ title, children }) {
50
50
  const [isActive, setActive] = React.useState(false);
51
- return (React__default["default"].createElement("div", { className: [styles$1.container, isActive ? styles$1.active : styles$1.not_active].join(" ") },
52
- React__default["default"].createElement("div", { className: styles$1.head, onClick: () => setActive(!isActive) },
51
+ return (React__default["default"].createElement("div", { className: [styles$s.container, isActive ? styles$s.active : styles$s.not_active].join(" ") },
52
+ React__default["default"].createElement("div", { className: styles$s.head, onClick: () => setActive(!isActive) },
53
53
  React__default["default"].createElement(SvgIcon, { iconName: "expand_more" }),
54
54
  React__default["default"].createElement("h3", null, title)),
55
- React__default["default"].createElement("div", { className: styles$1.content }, children)));
55
+ React__default["default"].createElement("div", { className: styles$s.content }, children)));
56
56
  }
57
57
 
58
- var css_248z = ".styles-module_container__9-1MH {\n position: fixed;\n height: 100vh;\n width: 100vw;\n background: rgba(255, 255, 255, 0.659);\n backdrop-filter: blur(10px) brightness(70%);\n left: 0;\n top: 0;\n z-index: 10000;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.styles-module_container__9-1MH.styles-module_active__AXoyo {\n opacity: 1;\n}\n.styles-module_container__9-1MH.styles-module_disabled__sELpy {\n pointer-events: none;\n opacity: 0;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M {\n background: white;\n border-radius: 20px;\n padding: 20px;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n cursor: auto;\n}";
59
- var styles = {"container":"styles-module_container__9-1MH","active":"styles-module_active__AXoyo","disabled":"styles-module_disabled__sELpy","dialog_window":"styles-module_dialog_window__0Bn2M"};
60
- styleInject(css_248z);
58
+ var css_248z$r = ".styles-module_container__4978M {\n max-width: 100%;\n width: 350px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__4978M.styles-module_visible__uvQwq {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__4978M.styles-module_hidden__Oruyx {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_container__4978M.styles-module_rotate__mmYPQ .styles-module_button__BWOOi:hover span {\n rotate: -45deg;\n}\n\n.styles-module_button__BWOOi {\n padding: 12px 20px;\n background: linear-gradient(60deg, #0075FF, #0056b8);\n background-position-x: right;\n color: white;\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border: none;\n cursor: pointer;\n font-size: 16px;\n gap: 10px;\n position: relative;\n transition: all 0.5s ease-in-out;\n}\n.styles-module_button__BWOOi span {\n transition: 0.1s ease-in-out;\n}\n.styles-module_button__BWOOi:hover {\n background-position-x: left;\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 {\n background: white;\n color: #0075FF;\n border: 1px solid #0075FF;\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 svg {\n fill: #0075FF;\n}";
59
+ var styles$r = {"container":"styles-module_container__4978M","visible":"styles-module_visible__uvQwq","hidden":"styles-module_hidden__Oruyx","rotate":"styles-module_rotate__mmYPQ","button":"styles-module_button__BWOOi","secondary":"styles-module_secondary__Eoik3"};
60
+ styleInject(css_248z$r);
61
+
62
+ function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick = (event) => { } }) {
63
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
64
+ React__default["default"].createElement("div", { className: [styles$r.container, isVisible ? styles$r.visible : styles$r.hidden, ["arrow_forward"].includes(iconName) ? styles$r.rotate : null].join(" ") },
65
+ React__default["default"].createElement("button", { type: type, className: `${styles$r.button} ${styles$r[theme]}`, onClick: onClick },
66
+ text,
67
+ React__default["default"].createElement(SvgIcon, { iconName: iconName })))));
68
+ }
69
+
70
+ var css_248z$q = ".styles-module_card__bOd85 {\n background: #F4F4F4;\n border: 1px solid #B1B1B1;\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 svg {\n width: 35px;\n height: 35px;\n fill: grey;\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: grey;\n font-weight: 400;\n font-size: 18px;\n}";
71
+ var styles$q = {"card":"styles-module_card__bOd85"};
72
+ styleInject(css_248z$q);
73
+
74
+ function CardButton({ title, iconName, onClick, }) {
75
+ function onClickCard(event) {
76
+ event.preventDefault();
77
+ if (onClick)
78
+ onClick(event);
79
+ }
80
+ return (React__default["default"].createElement("div", { className: styles$q.card, onClick: onClickCard },
81
+ React__default["default"].createElement(SvgIcon, { iconName: iconName }),
82
+ React__default["default"].createElement("h2", null, title)));
83
+ }
84
+
85
+ var css_248z$p = ".styles-module_container__gCCnD {\n margin-bottom: 20px;\n width: 343px;\n color: grey;\n}\n.styles-module_container__gCCnD [type=checkbox] {\n position: relative;\n left: 15px;\n top: -4px;\n z-index: 0;\n appearance: none;\n -webkit-appearance: none;\n cursor: pointer;\n margin-left: -3.5px;\n}\n.styles-module_container__gCCnD [type=checkbox] + label {\n position: absolute;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__gCCnD [type=checkbox] + label::before {\n width: 17px;\n height: 17px;\n border-radius: 5px;\n border: 2px solid #a8a8a8;\n display: block;\n content: \"\";\n float: left;\n margin-right: 8px;\n z-index: 5;\n position: relative;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__gCCnD span {\n position: absolute;\n opacity: 1;\n color: white;\n z-index: 100;\n user-select: none;\n pointer-events: none;\n -webkit-user-select: none;\n font-weight: 300;\n}\n.styles-module_container__gCCnD [type=checkbox]:checked + label::before {\n background-color: #0075FF;\n border-color: #0075FF;\n}\n.styles-module_container__gCCnD [type=checkbox]:hover:not(:checked) + label::before {\n background-color: #ecedee;\n border-color: #ecedee;\n}";
86
+ var styles$p = {"container":"styles-module_container__gCCnD"};
87
+ styleInject(css_248z$p);
88
+
89
+ function Checkbox({ text, name }) {
90
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
91
+ React__default["default"].createElement("div", { className: styles$p.container },
92
+ React__default["default"].createElement("input", { type: "checkbox", name: name, id: name }),
93
+ React__default["default"].createElement("label", { htmlFor: name }, text),
94
+ React__default["default"].createElement(SvgIcon, { iconName: "done", size: "21px" }))));
95
+ }
96
+
97
+ var css_248z$o = ".styles-module_container__OqDNA {\n display: flex;\n flex-direction: row;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(1) {\n background: #F0F0F0;\n border-color: #F0F0F0;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(2) {\n background: #E0E0E0;\n border-color: #E0E0E0;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(3) {\n background: #CBCBCB;\n border-color: #CBCBCB;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:first-child {\n border-top-left-radius: 20px;\n border-bottom-left-radius: 20px;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:last-child {\n border-top-right-radius: 20px;\n border-bottom-right-radius: 20px;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI {\n border: 1px solid transparent;\n padding: 11px 18px;\n font-size: 14px;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI.styles-module_selected__AXIA- {\n background: #C6D4F8;\n border-color: #0075FF;\n color: #0075FF;\n}";
98
+ var styles$o = {"container":"styles-module_container__OqDNA","item":"styles-module_item__1SMCI","selected":"styles-module_selected__AXIA-"};
99
+ styleInject(css_248z$o);
100
+
101
+ class ChooseRoleItem {
102
+ title;
103
+ value;
104
+ constructor(title, value) {
105
+ this.title = title;
106
+ this.value = value;
107
+ }
108
+ }
109
+ function ChooseRole({ roles, defaultSelected, readOnly = false, onChange }) {
110
+ const [selected, setSelected] = React.useState(defaultSelected);
111
+ function onUpdate(newRole) {
112
+ if (readOnly)
113
+ return;
114
+ setSelected(newRole);
115
+ onChange(newRole);
116
+ }
117
+ return (React__default["default"].createElement("div", { className: styles$o.container }, roles.map((item, index) => React__default["default"].createElement("div", { key: index, className: [styles$o.item, selected == item.value ? styles$o.selected : styles$o.not_selected].join(" "), onClick: () => onUpdate(item.value) }, item.title))));
118
+ }
119
+
120
+ var css_248z$n = ".styles-module_container__yV6C8 {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n margin-bottom: 20px;\n}\n.styles-module_container__yV6C8:hover {\n color: #0075FF;\n}";
121
+ var styles$n = {"container":"styles-module_container__yV6C8"};
122
+ styleInject(css_248z$n);
123
+
124
+ function CopyCode({ code, style, onCopy = () => { } }) {
125
+ function onClick() {
126
+ navigator.clipboard.writeText(code);
127
+ if (onCopy)
128
+ onCopy();
129
+ }
130
+ return (React__default["default"].createElement("div", { className: styles$n.container, onClick: onClick, style: style },
131
+ React__default["default"].createElement(SvgIcon, { iconName: "content_copy" }),
132
+ React__default["default"].createElement("span", null, code),
133
+ React__default["default"].createElement("input", { type: "hidden", name: "code", value: code })));
134
+ }
135
+
136
+ var css_248z$m = ".styles-module_container__9-1MH {\n position: fixed;\n height: 100vh;\n width: 100vw;\n background: rgba(255, 255, 255, 0.659);\n backdrop-filter: blur(10px) brightness(70%);\n left: 0;\n top: 0;\n z-index: 10000;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.styles-module_container__9-1MH.styles-module_active__AXoyo {\n opacity: 1;\n}\n.styles-module_container__9-1MH.styles-module_disabled__sELpy {\n pointer-events: none;\n opacity: 0;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M {\n background: white;\n border-radius: 20px;\n padding: 20px;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n cursor: auto;\n}";
137
+ var styles$m = {"container":"styles-module_container__9-1MH","active":"styles-module_active__AXoyo","disabled":"styles-module_disabled__sELpy","dialog_window":"styles-module_dialog_window__0Bn2M"};
138
+ styleInject(css_248z$m);
61
139
 
62
140
  function Dialog({ active = false, onClose = (event) => { }, children = null }) {
63
141
  function onClick(event) {
@@ -65,15 +143,900 @@ function Dialog({ active = false, onClose = (event) => { }, children = null }) {
65
143
  onClose(event);
66
144
  }
67
145
  }
68
- return (React__default["default"].createElement("div", { id: "dialog-backdrop", className: `${styles.container} ${active ? styles.active : styles.disabled}`, onClick: onClick },
69
- React__default["default"].createElement("div", { className: styles.dialog_window }, children)));
146
+ return (React__default["default"].createElement("div", { id: "dialog-backdrop", className: `${styles$m.container} ${active ? styles$m.active : styles$m.disabled}`, onClick: onClick },
147
+ React__default["default"].createElement("div", { className: styles$m.dialog_window }, children)));
148
+ }
149
+
150
+ var css_248z$l = ".styles-module_container__HOoBj {\n margin-bottom: 30px;\n}\n.styles-module_container__HOoBj button {\n padding: 12px 18px;\n border-radius: 40px;\n border: none;\n color: white;\n font-size: 16px;\n background: #0075FF;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n}";
151
+ var styles$l = {"container":"styles-module_container__HOoBj"};
152
+ styleInject(css_248z$l);
153
+
154
+ function FormButton({ text, style = {}, iconName = "", onClick = (event) => { } }) {
155
+ return (React__default["default"].createElement("div", { className: styles$l.container, style: style },
156
+ React__default["default"].createElement("button", { type: "submit", onClick: onClick },
157
+ text,
158
+ iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
159
+ }
160
+
161
+ var css_248z$k = ".styles-module_container__9wYEm {\n margin-bottom: 30px;\n width: 100%;\n}\n.styles-module_container__9wYEm h1,\n.styles-module_container__9wYEm h2,\n.styles-module_container__9wYEm h3,\n.styles-module_container__9wYEm h4,\n.styles-module_container__9wYEm h5 {\n margin: 0;\n font-weight: 400;\n color: black;\n}\n.styles-module_container__9wYEm h3 {\n margin-top: 5px;\n}";
162
+ var styles$k = {"container":"styles-module_container__9wYEm"};
163
+ styleInject(css_248z$k);
164
+
165
+ function FormText({ title, value, style }) {
166
+ return (React__default["default"].createElement("div", { className: styles$k.container, style: style },
167
+ React__default["default"].createElement("h5", null, title),
168
+ React__default["default"].createElement("h3", null, value)));
169
+ }
170
+
171
+ var css_248z$j = ".styles-module_container__C99XV {\n margin-right: 8px;\n}\n.styles-module_container__C99XV .styles-module_button__pGYkF {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__C99XV .styles-module_button__pGYkF:hover {\n background: rgb(207, 207, 207);\n}";
172
+ var styles$j = {"container":"styles-module_container__C99XV","button":"styles-module_button__pGYkF"};
173
+ styleInject(css_248z$j);
174
+
175
+ function ForwardButton({ onClick }) {
176
+ function onClickButton(event) {
177
+ event.preventDefault();
178
+ if (onClick)
179
+ onClick(event);
180
+ }
181
+ return (React__default["default"].createElement("div", { className: styles$j.container },
182
+ React__default["default"].createElement("button", { onClick: onClickButton, className: styles$j.button },
183
+ React__default["default"].createElement(SvgIcon, { iconName: "arrow_back" }))));
70
184
  }
71
185
 
72
186
  function Gap({ size }) {
73
187
  return (React__default["default"].createElement("div", { style: { height: size } }));
74
188
  }
75
189
 
190
+ var css_248z$i = ".styles-module_input__-GKhx {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n}\n.styles-module_input__-GKhx:focus, .styles-module_input__-GKhx:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__-GKhx.styles-module_not_available__XD1kR, .styles-module_input__-GKhx:invalid {\n border-color: #e50000;\n box-shadow: 0px 0px 3px 3px rgba(255, 0, 0, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_container__--4rV {\n position: relative;\n display: flex;\n flex-direction: column;\n margin-bottom: 20px;\n}\n\n.styles-module_label__mGzwP {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__d0eMb {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__-GKhx.styles-module_with_title__CGOEs::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__-GKhx.styles-module_with_title__CGOEs:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__-GKhx:focus + .styles-module_label__mGzwP .styles-module_label_text__d0eMb,\n.styles-module_input__-GKhx.styles-module_valid__uj8g- + .styles-module_label__mGzwP .styles-module_label_text__d0eMb {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__-GKhx.styles-module_valid__uj8g- + .styles-module_label__mGzwP .styles-module_label_text__d0eMb {\n color: #a8a8a8;\n}";
191
+ var styles$i = {"input":"styles-module_input__-GKhx","not_available":"styles-module_not_available__XD1kR","container":"styles-module_container__--4rV","label":"styles-module_label__mGzwP","label_text":"styles-module_label_text__d0eMb","with_title":"styles-module_with_title__CGOEs","valid":"styles-module_valid__uj8g-"};
192
+ styleInject(css_248z$i);
193
+
194
+ function InputMail({ placeholder = "E-Mail-Adresse", title = "E-Mail-Adresse", name = "email", width = "100%", available = true }) {
195
+ const [value, setValue] = React.useState("");
196
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
197
+ React__default["default"].createElement("div", { className: styles$i.container, style: { width: width } },
198
+ React__default["default"].createElement("input", { className: `${styles$i.input} ${title != undefined ? styles$i.with_title : styles$i.without_title} ${value.length > 0 ? styles$i.valid : styles$i.not_valid} ${available ? styles$i.available : styles$i.not_available}`, name: name, placeholder: placeholder, type: "email", onInput: (event) => setValue(event.target.value) }),
199
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$i.label },
200
+ React__default["default"].createElement("span", { className: styles$i.label_text }, title)))));
201
+ }
202
+
203
+ var css_248z$h = ".styles-module_container__IXTeq {\n display: flex;\n flex-direction: row;\n gap: 20px;\n margin-bottom: 20px;\n}\n\n.styles-module_input__flMT5 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n}\n.styles-module_input__flMT5:focus, .styles-module_input__flMT5:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_form__chEvQ {\n position: relative;\n flex: 1;\n display: flex;\n}\n\n.styles-module_label__hflX9 {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__oXgFI {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__flMT5.styles-module_with_title__ubN0L::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__flMT5.styles-module_with_title__ubN0L:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__flMT5:focus + .styles-module_label__hflX9 .styles-module_label_text__oXgFI,\n.styles-module_input__flMT5.styles-module_valid__76xYu + .styles-module_label__hflX9 .styles-module_label_text__oXgFI {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__flMT5.styles-module_valid__76xYu + .styles-module_label__hflX9 .styles-module_label_text__oXgFI {\n color: #a8a8a8;\n}";
204
+ var styles$h = {"container":"styles-module_container__IXTeq","input":"styles-module_input__flMT5","form":"styles-module_form__chEvQ","label":"styles-module_label__hflX9","label_text":"styles-module_label_text__oXgFI","with_title":"styles-module_with_title__ubN0L","valid":"styles-module_valid__76xYu"};
205
+ styleInject(css_248z$h);
206
+
207
+ function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
208
+ const [value1, setValue1] = React.useState("");
209
+ const [value2, setValue2] = React.useState("");
210
+ function onInput1(event) {
211
+ setValue1(event.target.value);
212
+ onInputFirstName(event);
213
+ onInput("firstName", event);
214
+ }
215
+ function onInput2(event) {
216
+ setValue2(event.target.value);
217
+ onInputLastName(event);
218
+ onInput("lastName", event);
219
+ }
220
+ return (React__default["default"].createElement("div", { className: styles$h.container, style: { width: width } },
221
+ React__default["default"].createElement("div", { className: styles$h.form },
222
+ React__default["default"].createElement("input", { className: `${styles$h.input} ${title.firstName != undefined ? styles$h.with_title : styles$h.without_title} ${value1.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "firstName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.firstName, onInput: onInput1 }),
223
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$h.label },
224
+ React__default["default"].createElement("span", { className: styles$h.label_text }, title.firstName))),
225
+ React__default["default"].createElement("div", { className: styles$h.form },
226
+ React__default["default"].createElement("input", { className: `${styles$h.input} ${title.lastName != undefined ? styles$h.with_title : styles$h.without_title} ${value2.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "lastName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.lastName, onInput: onInput2 }),
227
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$h.label },
228
+ React__default["default"].createElement("span", { className: styles$h.label_text }, title.lastName)))));
229
+ }
230
+
231
+ var css_248z$g = ".styles-module_container__Xk2HY {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__ReFFR {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n width: 100%;\n}\n.styles-module_input__ReFFR:focus, .styles-module_input__ReFFR:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__ReFFR.styles-module_not_available__mZ5-1 {\n border-color: #e50000;\n box-shadow: 0px 0px 3px 3px rgba(255, 0, 0, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_container__Xk2HY {\n position: relative;\n}\n\n.styles-module_label__4n2Ai {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__NsKJU {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__ReFFR.styles-module_with_title__vMb1v::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__ReFFR.styles-module_with_title__vMb1v:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__ReFFR:focus + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU,\n.styles-module_input__ReFFR.styles-module_valid__NyP0J + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__ReFFR.styles-module_valid__NyP0J + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU {\n color: #a8a8a8;\n}";
232
+ var styles$g = {"container":"styles-module_container__Xk2HY","input":"styles-module_input__ReFFR","not_available":"styles-module_not_available__mZ5-1","label":"styles-module_label__4n2Ai","label_text":"styles-module_label_text__NsKJU","with_title":"styles-module_with_title__vMb1v","valid":"styles-module_valid__NyP0J"};
233
+ styleInject(css_248z$g);
234
+
235
+ function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "number", width = "100%", available = true, onInput = (event) => { } }) {
236
+ const [value, setValue] = React.useState(defaultValue);
237
+ const inputElement = React.useCallback((element) => {
238
+ if (element && autoFocus)
239
+ element.focus();
240
+ }, [autoFocus]);
241
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
242
+ React__default["default"].createElement("div", { className: styles$g.container, style: { width } },
243
+ React__default["default"].createElement("input", { className: `${styles$g.input} ${title != undefined ? styles$g.with_title : styles$g.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$g.valid : styles$g.not_valid} ${available ? styles$g.available : styles$g.not_available}`, name: name, type: type, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
244
+ setValue(event.target.value);
245
+ onInput(event);
246
+ } }),
247
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$g.label },
248
+ React__default["default"].createElement("span", { className: styles$g.label_text }, title)))));
249
+ }
250
+
251
+ var css_248z$f = "@keyframes styles-module_show__OLTZH {\n from {\n max-heigth: 0px;\n height: 0px;\n }\n}\n@keyframes styles-module_hide__LAgaY {\n from {\n max-heigth: 0px;\n height: 0px;\n }\n to {\n max-height: fit-content;\n }\n}\n.styles-module_container__UdmOO {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 30px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__UdmOO .styles-module_forgot_label__EeN6a {\n font-size: 12px;\n color: grey;\n}\n.styles-module_container__UdmOO.styles-module_visible__QROqh {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__UdmOO.styles-module_hidden__hDKDO {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_input__sC2fP {\n padding: 14px 20px;\n font-size: 16px;\n border-top-left-radius: 12px;\n border-bottom-left-radius: 12px;\n border: 1.5px solid #a8a8a8;\n border-right: none;\n outline: none;\n transition: all 0.2s ease;\n flex: 1;\n}\n.styles-module_input__sC2fP:focus, .styles-module_input__sC2fP:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_hideButton__83mRI {\n outline: none;\n display: flex;\n align-items: center;\n padding: 10px;\n border: 1.5px solid #a8a8a8;\n border-left: none;\n background: none;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n cursor: pointer;\n}\n.styles-module_hideButton__83mRI span {\n color: grey;\n}\n\n/* animated title */\n.styles-module_form__m866x {\n position: relative;\n display: flex;\n}\n\n.styles-module_label__8PuaL {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__FwJ1F {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__sC2fP.styles-module_with_title__dftgq::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__sC2fP.styles-module_with_title__dftgq:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__sC2fP:focus + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F,\n.styles-module_input__sC2fP.styles-module_valid__SM7w5 + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__sC2fP.styles-module_valid__SM7w5 + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F {\n color: #a8a8a8;\n}";
252
+ var styles$f = {"container":"styles-module_container__UdmOO","forgot_label":"styles-module_forgot_label__EeN6a","visible":"styles-module_visible__QROqh","hidden":"styles-module_hidden__hDKDO","input":"styles-module_input__sC2fP","hideButton":"styles-module_hideButton__83mRI","form":"styles-module_form__m866x","label":"styles-module_label__8PuaL","label_text":"styles-module_label_text__FwJ1F","with_title":"styles-module_with_title__dftgq","valid":"styles-module_valid__SM7w5","show":"styles-module_show__OLTZH","hide":"styles-module_hide__LAgaY"};
253
+ styleInject(css_248z$f);
254
+
255
+ function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete, showForgotLink = false }) {
256
+ const [value, setValue] = React.useState("");
257
+ const [hidePassword, setHidePassword] = React.useState(true);
258
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
259
+ React__default["default"].createElement("div", { className: `${styles$f.container} ${isVisible ? styles$f.visible : styles$f.hidden}`, style: { width: width } },
260
+ React__default["default"].createElement("div", { className: styles$f.form },
261
+ React__default["default"].createElement("input", { className: `${styles$f.input} ${title != undefined ? styles$f.with_title : styles$f.without_title} ${value.length > 0 ? styles$f.valid : styles$f.not_valid}`, name: name, minLength: 8, autoComplete: autoComplete, placeholder: placeholder, type: hidePassword ? "password" : "text", onInput: (event) => setValue(event.target.value) }),
262
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$f.label },
263
+ React__default["default"].createElement("span", { className: styles$f.label_text }, title)),
264
+ React__default["default"].createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$f.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
265
+ React__default["default"].createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
266
+ showForgotLink &&
267
+ React__default["default"].createElement(Link__default["default"], { href: "/auth/forgot/1" },
268
+ React__default["default"].createElement("span", { className: styles$f.forgot_label }, "Passwort vergessen?")))));
269
+ }
270
+
271
+ var css_248z$e = ".styles-module_container__--NO0 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n justify-content: center;\n align-items: center;\n user-select: none;\n margin-bottom: 20px;\n}\n.styles-module_container__--NO0 a {\n background: transparent;\n color: #0075FF;\n border: none;\n font-size: 14px;\n cursor: pointer;\n}\n\n.styles-module_input_wrapper__LPIk1 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 10px;\n}\n\n.styles-module_input__84v36 {\n padding: 14px 10px;\n width: 30px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n text-align: center;\n font-size: 18px;\n}\n.styles-module_input__84v36:focus, .styles-module_input__84v36:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_input__84v36:nth-child(3) {\n margin-right: 25px;\n}\n\n.styles-module_input__84v36::placeholder,\n.styles-module_input__84v36:-ms-input-placeholder,\n.styles-module_input__84v36::-ms-input-placeholder {\n letter-spacing: 0px !important;\n}";
272
+ var styles$e = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
273
+ styleInject(css_248z$e);
274
+
275
+ function InputPin({ name, length, onFinished = () => { } }) {
276
+ const [state, setState] = React.useState({});
277
+ const fieldRefs = React.useRef([]);
278
+ fieldRefs.current = [...Array(length)].map((_, i) => fieldRefs.current[i] ?? React.createRef());
279
+ function onChange(event, position) {
280
+ const regex = /^[0-9\b]+$/;
281
+ const value = event.target.value ? event.target.value : "";
282
+ if (value != '' && regex.test(value)) {
283
+ const digitCountBefore = state[position] == undefined ? 0 : String(state[position]).length;
284
+ const addedDigitsCount = value.length - digitCountBefore;
285
+ if (addedDigitsCount == 1) {
286
+ fieldRefs.current[(position + 1) % length].current.focus();
287
+ setDigit(position, value.charAt(-1));
288
+ }
289
+ else {
290
+ const digits = value.split("");
291
+ if (digitCountBefore == 1)
292
+ digits.shift();
293
+ let newState = { ...state };
294
+ digits.forEach((digit, position) => {
295
+ newState[position % length] = digit;
296
+ fieldRefs.current[position % length].current.value = digit;
297
+ });
298
+ if (digits.length >= 6) {
299
+ fieldRefs.current[length - 1].current.focus();
300
+ }
301
+ setState(newState);
302
+ }
303
+ }
304
+ }
305
+ function onKeyUp(event, position) {
306
+ event.preventDefault();
307
+ // Keys: Backspace, Arrow left
308
+ if ([8, 37].includes(event.keyCode)) {
309
+ fieldRefs.current[(((position) - 1) + length) % length].current.focus();
310
+ }
311
+ // Keys: Tab (automatically), Arrow Right
312
+ if ([39].includes(event.keyCode)) {
313
+ fieldRefs.current[(position + 1) % length].current.focus();
314
+ }
315
+ }
316
+ function setDigit(position, digit) {
317
+ fieldRefs.current[position % length].current.value = digit;
318
+ setState({ ...state, [position % length]: digit });
319
+ }
320
+ function resetValues() {
321
+ setState({});
322
+ fieldRefs.current.forEach((ref) => {
323
+ ref.current.value = "";
324
+ });
325
+ }
326
+ React.useCallback((element) => {
327
+ if (element)
328
+ element.focus();
329
+ }, []);
330
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
331
+ React__default["default"].createElement("div", { className: styles$e.container },
332
+ React__default["default"].createElement("input", { name: name, type: "hidden", defaultValue: Object.values(state).join("") }),
333
+ React__default["default"].createElement("div", { className: styles$e.input_wrapper }, [...Array(length)].map((e, i) => {
334
+ if (i == 0) {
335
+ return React__default["default"].createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$e.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
336
+ }
337
+ return React__default["default"].createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$e.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
338
+ })),
339
+ React__default["default"].createElement("a", { onClick: resetValues }, "Zur\u00FCcksetzen"))));
340
+ }
341
+
342
+ var css_248z$d = ".styles-module_container__zcXGF {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__Tpth8 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n}\n.styles-module_input__Tpth8:focus, .styles-module_input__Tpth8:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__Tpth8.styles-module_not_available__CRXjB, .styles-module_input__Tpth8:invalid {\n border-color: #e50000;\n box-shadow: 0px 0px 3px 3px rgba(255, 0, 0, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_container__zcXGF {\n position: relative;\n}\n\n.styles-module_label__appHO {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__-sKjY {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__Tpth8:focus + .styles-module_label__appHO .styles-module_label_text__-sKjY,\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n color: #a8a8a8;\n}";
343
+ var styles$d = {"container":"styles-module_container__zcXGF","input":"styles-module_input__Tpth8","not_available":"styles-module_not_available__CRXjB","label":"styles-module_label__appHO","label_text":"styles-module_label_text__-sKjY","with_title":"styles-module_with_title__L3eGj","valid":"styles-module_valid__zWcOz"};
344
+ styleInject(css_248z$d);
345
+
346
+ function InputText({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "text", width = "100%", available = true, onInput = (event) => { } }) {
347
+ const [value, setValue] = React.useState(defaultValue);
348
+ const inputElement = React.useCallback((element) => {
349
+ if (element && autoFocus)
350
+ element.focus();
351
+ }, [autoFocus]);
352
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
353
+ React__default["default"].createElement("div", { className: styles$d.container, style: { width } },
354
+ React__default["default"].createElement("input", { className: `${styles$d.input} ${title != undefined ? styles$d.with_title : styles$d.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$d.valid : styles$d.not_valid} ${available ? styles$d.available : styles$d.not_available}`, name: name, type: type, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
355
+ setValue(event.target.value);
356
+ onInput(event);
357
+ } }),
358
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$d.label },
359
+ React__default["default"].createElement("span", { className: styles$d.label_text }, title)))));
360
+ }
361
+
362
+ var css_248z$c = ".styles-module_box__Z0iod {\n background: #F4F4F4;\n width: 400px;\n max-width: 100%;\n border-radius: 22px;\n border: 1px solid rgb(199, 199, 199);\n display: flex;\n flex-direction: row;\n padding: 18px;\n gap: 18px;\n cursor: pointer;\n margin-bottom: 20px;\n transition: 0.2s ease;\n color: black;\n}\n.styles-module_box__Z0iod:hover {\n /*.right_side {\n h4, p {\n color: #0075FF;\n }\n }*/\n background-color: white;\n transform: scale(1.01);\n /* border-color: #0075FF; */\n}\n.styles-module_box__Z0iod .styles-module_left_side__8ObGs {\n width: 40px;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 5px;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D {\n flex: 1;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D p {\n color: #6F6F6F;\n margin: 0;\n text-align: left;\n font-size: 1.1rem;\n line-height: 1.6;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D h4 {\n margin: 0;\n text-align: left;\n font-size: 1.3rem;\n margin-bottom: 16px;\n margin-top: 5px;\n color: black;\n}";
363
+ var styles$c = {"box":"styles-module_box__Z0iod","left_side":"styles-module_left_side__8ObGs","right_side":"styles-module_right_side__Ypp0D"};
364
+ styleInject(css_248z$c);
365
+
366
+ function OptionField({ headline, description, link, iconName }) {
367
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
368
+ React__default["default"].createElement("a", { href: link },
369
+ React__default["default"].createElement("div", { className: styles$c.box },
370
+ React__default["default"].createElement("div", { className: styles$c.left_side }, iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName })),
371
+ React__default["default"].createElement("div", { className: styles$c.right_side },
372
+ React__default["default"].createElement("h4", null, headline),
373
+ React__default["default"].createElement("p", null, description))))));
374
+ }
375
+
376
+ var css_248z$b = ".styles-module_container__XCtqW {\n background: white;\n border-radius: 12px;\n padding: 30px;\n margin-bottom: 30px;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px;\n color: black;\n border: 1px solid #B1B1B1;\n transition: 0.2s ease-in-out;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);\n}\n.styles-module_container__XCtqW:hover {\n background: #f0f0f0;\n border-color: #888888;\n}\n.styles-module_container__XCtqW h3 {\n font-weight: 500;\n margin: 0;\n}\n\n.styles-module_container__XCtqW.styles-module_preselected__WoSbB {\n border: 1px solid black;\n}";
377
+ var styles$b = {"container":"styles-module_container__XCtqW","preselected":"styles-module_preselected__WoSbB"};
378
+ styleInject(css_248z$b);
379
+
380
+ function OptionFieldHorizontal({ title, href, iconName, preselected = false }) {
381
+ return (React__default["default"].createElement("a", { href: href },
382
+ React__default["default"].createElement("div", { className: [styles$b.container, preselected ? styles$b.preselected : styles$b.not_preselected].join(" ") },
383
+ React__default["default"].createElement(SvgIcon, { iconName: iconName, size: "32px" }),
384
+ React__default["default"].createElement("h3", null, title))));
385
+ }
386
+
387
+ var css_248z$a = ".styles-module_container__oNbrP {\n padding-top: 10px;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}";
388
+ var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","red":"styles-module_red__CHF3e"};
389
+ styleInject(css_248z$a);
390
+
391
+ function PrimaryButton({ text, iconName, type = "blue", onClick = () => { } }) {
392
+ function onClickButton(event) {
393
+ event.preventDefault();
394
+ if (onClick)
395
+ onClick(event);
396
+ }
397
+ return (React__default["default"].createElement("div", { className: styles$a.container },
398
+ React__default["default"].createElement("button", { className: `${styles$a.button} ${styles$a[type]}`, onClick: onClickButton },
399
+ text,
400
+ React__default["default"].createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
401
+ }
402
+
403
+ var css_248z$9 = ".styles-module_container__u4q5n {\n margin-bottom: 50px;\n}\n\n.styles-module_background__jt-ry {\n background: #D9D9D9;\n width: 400px;\n max-width: 100%;\n height: 3px;\n position: relative;\n}\n\n.styles-module_progress__Zj-B7 {\n background: black;\n position: absolute;\n left: 0;\n top: 0;\n height: 3px;\n}";
404
+ var styles$9 = {"container":"styles-module_container__u4q5n","background":"styles-module_background__jt-ry","progress":"styles-module_progress__Zj-B7"};
405
+ styleInject(css_248z$9);
406
+
407
+ function ProgressBar({ length, progress }) {
408
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
409
+ React__default["default"].createElement("div", { className: styles$9.container },
410
+ React__default["default"].createElement("div", { className: styles$9.background },
411
+ React__default["default"].createElement("div", { className: styles$9.progress, style: { width: `${progress / length * 100}%` } })))));
412
+ }
413
+
414
+ var css_248z$8 = ".styles-module_container__Grkzw {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: grey;\n margin-bottom: 20px;\n}\n.styles-module_container__Grkzw [type=radio] {\n position: relative;\n left: 15px;\n top: -4px;\n z-index: 0;\n appearance: none;\n -webkit-appearance: none;\n cursor: pointer;\n margin-left: -3.5px;\n}\n.styles-module_container__Grkzw [type=radio] + label {\n position: absolute;\n cursor: pointer;\n}\n.styles-module_container__Grkzw [type=radio] + label::before {\n width: 15px;\n height: 15px;\n border-radius: 20px;\n border: 2px solid #a8a8a8;\n display: block;\n content: \"\";\n float: left;\n margin-right: 8px;\n z-index: 5;\n position: relative;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__Grkzw [type=radio]:checked + label::before {\n box-shadow: inset 0px 0px 0px 3px #fff;\n background-color: #0075FF;\n border-color: #0075FF;\n}\n.styles-module_container__Grkzw [type=radio]:hover:not(:checked) + label::before {\n box-shadow: inset 0px 0px 0px 3px #fff;\n background-color: #bdbdbd;\n border-color: #bdbdbd;\n}";
415
+ var styles$8 = {"container":"styles-module_container__Grkzw"};
416
+ styleInject(css_248z$8);
417
+
418
+ class RadioOption {
419
+ text;
420
+ name;
421
+ constructor(text, name) {
422
+ this.text = text;
423
+ this.name = name;
424
+ }
425
+ }
426
+ function RadioButtons({ options, group, selected, width = "100%" }) {
427
+ const [selectedOption, setSelected] = React.useState(selected);
428
+ function onUpdateSelected(event) {
429
+ setSelected(event.target.value);
430
+ }
431
+ return (React__default["default"].createElement("div", { className: styles$8.container, style: { width: width } }, options.map((option) => React__default["default"].createElement("div", { className: styles$8.option, key: option.name },
432
+ selected && selected == option.name ?
433
+ React__default["default"].createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onClick: onUpdateSelected, defaultChecked: true })
434
+ :
435
+ React__default["default"].createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onClick: onUpdateSelected }),
436
+ React__default["default"].createElement("label", { htmlFor: option.name }, option.text)))));
437
+ }
438
+
439
+ var css_248z$7 = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: rgb(207, 207, 207);\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}";
440
+ var styles$7 = {"container":"styles-module_container__RhsQe","button":"styles-module_button__HuX-0","middle":"styles-module_middle__xg7RF"};
441
+ styleInject(css_248z$7);
442
+
443
+ function RedirectButton({ type = "forward", onClick }) {
444
+ function onClickButton(event) {
445
+ event.preventDefault();
446
+ if (onClick)
447
+ onClick(event);
448
+ }
449
+ const getIcon = () => {
450
+ switch (type) {
451
+ case "forward": return "arrow_forward";
452
+ case "back": return "arrow_back";
453
+ case "middle": return "arrow_back";
454
+ }
455
+ };
456
+ return (React__default["default"].createElement("div", { className: [styles$7.container, styles$7[type]].join(" ") },
457
+ React__default["default"].createElement("button", { onClick: onClickButton, className: styles$7.button },
458
+ React__default["default"].createElement(SvgIcon, { iconName: getIcon() }),
459
+ ["middle"].includes(type) &&
460
+ React__default["default"].createElement("span", null, "Zur\u00FCck"))));
461
+ }
462
+
463
+ var css_248z$6 = ".styles-module_container__VreeH {\n margin-bottom: 20px;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 10px;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J {\n padding: 10px 18px;\n background: #F0F0F0;\n border-radius: 20px;\n display: flex;\n flex-direction: row;\n gap: 5px;\n align-items: center;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n color: #565656;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J:hover {\n background: #e5e5e5;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J.styles-module_selected__sArTD {\n background: #C6D4F8;\n color: #0075FF;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J.styles-module_selected__sArTD span {\n color: #0075FF;\n}";
464
+ var styles$6 = {"container":"styles-module_container__VreeH","chip":"styles-module_chip__EvZ4J","selected":"styles-module_selected__sArTD"};
465
+ styleInject(css_248z$6);
466
+
467
+ class SearchChip {
468
+ title;
469
+ value;
470
+ selected = false;
471
+ constructor(title, value) {
472
+ this.title = title;
473
+ this.value = value;
474
+ }
475
+ }
476
+ function SearchChips({ items, onChange }) {
477
+ const [chips, setChips] = React.useState(items);
478
+ function onClick(item, index) {
479
+ const newChips = [...chips];
480
+ newChips[index] = { ...item, selected: !item.selected };
481
+ setChips(newChips);
482
+ if (onChange)
483
+ onChange(newChips);
484
+ }
485
+ return (React__default["default"].createElement("div", { className: styles$6.container }, chips.map((item, index) => React__default["default"].createElement("div", { key: index, onClick: (e) => onClick(item, index), className: [styles$6.chip, item.selected ? styles$6.selected : styles$6.not_selected].join(" ") },
486
+ React__default["default"].createElement(SvgIcon, { iconName: item.selected ? "close" : "filter_list", size: "20px" }),
487
+ item.title))));
488
+ }
489
+
490
+ var css_248z$5 = ".styles-module_container__k4Z26 {\n width: 100%;\n display: flex;\n flex-direction: row;\n margin-top: 30px;\n margin-bottom: 25px;\n gap: 10px;\n position: relative;\n}\n.styles-module_container__k4Z26 button {\n background: #BFD5FF;\n padding: 0px 18px;\n border: none;\n font-size: 14px;\n border-radius: 10px;\n cursor: pointer;\n color: #0075FF;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ-,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om {\n display: none;\n position: absolute;\n top: 60px;\n background: white;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n width: 100%;\n border-radius: 14px;\n border: 1px solid #C3C3C3;\n z-index: 1000;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ-:hover,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om:hover {\n display: block;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul li,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li {\n padding: 16px 20px;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul li:not(:last-child),\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li:not(:last-child) {\n border-bottom: 1px solid #C3C3C3;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X {\n padding: 35px 0px;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 15px;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X h3,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X h3 {\n margin: 0;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X p {\n color: grey;\n padding: 0px 30px;\n line-height: 1.5;\n text-align: center;\n margin-bottom: 10px;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li {\n display: flex;\n flex-direction: row;\n padding: 10px 20px;\n align-items: center;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li span {\n flex: 1;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om button {\n padding: 10px 16px;\n}\n\n.styles-module_input__wOJmG {\n padding: 14px 20px;\n font-size: 16px;\n width: 300px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n width: 100%;\n}\n.styles-module_input__wOJmG:focus, .styles-module_input__wOJmG:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_form__mWTCu.styles-module_focus__-6H1f + .styles-module_suggestions_container__pceQ-,\n.styles-module_form__mWTCu.styles-module_focus__-6H1f + .styles-module_results_container__OY4Om {\n display: block;\n}\n\n/* animated text field */\n.styles-module_form__mWTCu {\n position: relative;\n width: 100%;\n}\n\n.styles-module_label__A41g9 {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__NQHTC {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__wOJmG.styles-module_with_title__rnN-t::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__wOJmG.styles-module_with_title__rnN-t:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__wOJmG:focus + .styles-module_label__A41g9 .styles-module_label_text__NQHTC,\n.styles-module_input__wOJmG.styles-module_valid__AAK-6 + .styles-module_label__A41g9 .styles-module_label_text__NQHTC {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__wOJmG.styles-module_valid__AAK-6 + .styles-module_label__A41g9 .styles-module_label_text__NQHTC {\n color: #a8a8a8;\n}";
491
+ var styles$5 = {"container":"styles-module_container__k4Z26","suggestions_container":"styles-module_suggestions_container__pceQ-","results_container":"styles-module_results_container__OY4Om","error":"styles-module_error__2Ov4X","input":"styles-module_input__wOJmG","form":"styles-module_form__mWTCu","focus":"styles-module_focus__-6H1f","label":"styles-module_label__A41g9","label_text":"styles-module_label_text__NQHTC","with_title":"styles-module_with_title__rnN-t","valid":"styles-module_valid__AAK-6"};
492
+ styleInject(css_248z$5);
493
+
494
+ function Searchbar({ placeholder, title = "Suchen", showNoResults = false, errorTitle = "Keine Ergebnisse gefunden", errorMessage = "", errorButton = "", helpTitle = "", helpMessage = "", errorAction = (event) => { }, onInput = (event) => { }, onClickResult = (event, result) => { }, withButton = false, buttonText = "Suchen", suggestions = [], autoFocus = false, results = [] }) {
495
+ const [value, setValue] = React.useState("");
496
+ const [inputFocused, setFocused] = React.useState(false);
497
+ const [searchResults, setSearchResults] = React.useState(results);
498
+ function onInputChanged(event) {
499
+ setValue(event.target.value);
500
+ updateSearch(event);
501
+ onInput(event);
502
+ }
503
+ function updateSearch(event) {
504
+ if (event.target.value == '' || event.target.value == undefined || event.target.value == null) {
505
+ setSearchResults(results);
506
+ }
507
+ else {
508
+ setSearchResults(results.filter((result) => {
509
+ return result.title.includes(event.target.value);
510
+ }));
511
+ }
512
+ }
513
+ const inputElement = React.useCallback((element) => {
514
+ if (element && autoFocus)
515
+ element.focus();
516
+ }, [autoFocus]);
517
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
518
+ React__default["default"].createElement("div", { className: styles$5.container },
519
+ React__default["default"].createElement("div", { className: `${styles$5.form} ${inputFocused ? styles$5.focus : styles$5.not_focused}` },
520
+ React__default["default"].createElement("input", { onFocus: () => setFocused(true), onBlur: () => setFocused(false), className: `${styles$5.input} ${title != undefined ? styles$5.with_title : styles$5.without_title} ${value.length > 0 ? styles$5.valid : styles$5.not_valid}`, placeholder: placeholder, type: "search", ref: inputElement, onInput: onInputChanged }),
521
+ React__default["default"].createElement("label", { htmlFor: "text", className: styles$5.label },
522
+ React__default["default"].createElement("span", { className: styles$5.label_text }, title))),
523
+ withButton && React__default["default"].createElement("button", { type: "button" }, buttonText),
524
+ suggestions.length > 0 && React__default["default"].createElement("div", { className: styles$5.suggestions_container },
525
+ React__default["default"].createElement("ul", null, suggestions.map((suggestion, index) => React__default["default"].createElement("li", { key: index }, suggestion)))),
526
+ searchResults.length > 0 && React__default["default"].createElement("div", { className: styles$5.results_container },
527
+ React__default["default"].createElement("ul", null, searchResults.map((result, index) => React__default["default"].createElement("li", { key: index, onClick: (event) => onClickResult(event, result) },
528
+ React__default["default"].createElement("span", null, result.title),
529
+ React__default["default"].createElement("button", { type: "button" }, buttonText))))),
530
+ searchResults.length == 0 && showNoResults && value.length > 0 && React__default["default"].createElement("div", { className: styles$5.results_container },
531
+ React__default["default"].createElement("div", { className: styles$5.error },
532
+ React__default["default"].createElement(SvgIcon, { iconName: "error" }),
533
+ React__default["default"].createElement("h3", null, errorTitle),
534
+ React__default["default"].createElement("p", null, errorMessage),
535
+ errorButton.length > 0 && React__default["default"].createElement("button", { onClick: errorAction }, errorButton))),
536
+ searchResults.length == 0 && showNoResults && value.length == 0 && React__default["default"].createElement("div", { className: styles$5.results_container },
537
+ React__default["default"].createElement("div", { className: styles$5.error },
538
+ React__default["default"].createElement(SvgIcon, { iconName: "lightbulb" }),
539
+ React__default["default"].createElement("h3", null, helpTitle),
540
+ React__default["default"].createElement("p", null, helpMessage))))));
541
+ }
542
+
543
+ var css_248z$4 = "";
544
+ var styles$4 = {};
545
+ styleInject(css_248z$4);
546
+
547
+ class SliderCard {
548
+ title;
549
+ description;
550
+ constructor(title, description) {
551
+ this.title = title;
552
+ this.description = description;
553
+ }
554
+ }
555
+ function Slider({ cards }) {
556
+ const [selected, setSelected] = React.useState(0);
557
+ return (React__default["default"].createElement("div", { className: styles$4.container }, cards.map((card, index) => React__default["default"].createElement("div", { key: index, className: [styles$4.card, selected == index ? styles$4.selected : styles$4.not_selected].join(" ") },
558
+ React__default["default"].createElement("h1", null, card.title),
559
+ React__default["default"].createElement("p", null, card.description)))));
560
+ }
561
+
562
+ var css_248z$3 = ".styles-module_container__xRQNT {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 7px;\n color: #6F6F6F;\n}\n.styles-module_container__xRQNT svg {\n fill: #6F6F6F;\n}";
563
+ var styles$3 = {"container":"styles-module_container__xRQNT"};
564
+ styleInject(css_248z$3);
565
+
566
+ function StepBack({ link }) {
567
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
568
+ React__default["default"].createElement("a", { href: link },
569
+ React__default["default"].createElement("div", { className: styles$3.container },
570
+ React__default["default"].createElement(SvgIcon, { iconName: 'arrow_back' }),
571
+ "Weitere M\u00F6glichkeiten"))));
572
+ }
573
+
574
+ var css_248z$2 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
575
+ var styles$2 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF"};
576
+ styleInject(css_248z$2);
577
+
578
+ exports.TableActionType = void 0;
579
+ (function (TableActionType) {
580
+ TableActionType[TableActionType["red"] = 0] = "red";
581
+ TableActionType[TableActionType["default"] = 1] = "default";
582
+ })(exports.TableActionType || (exports.TableActionType = {}));
583
+ class TableItem {
584
+ title;
585
+ subtitle;
586
+ moreText;
587
+ iconName;
588
+ data;
589
+ constructor(title, subtitle, moreText, iconName, data = {}) {
590
+ this.title = title;
591
+ this.subtitle = subtitle;
592
+ this.moreText = moreText;
593
+ this.iconName = iconName;
594
+ this.data = data;
595
+ }
596
+ }
597
+ class TableItemAction {
598
+ title;
599
+ iconName;
600
+ onClick;
601
+ type = exports.TableActionType.default;
602
+ constructor(title, iconName, type, onClick = () => { }) {
603
+ this.title = title;
604
+ this.iconName = iconName;
605
+ this.onClick = onClick;
606
+ }
607
+ }
608
+ function Table({ items, title = "Titel", actions = [], moreActions }) {
609
+ return (React__default["default"].createElement("div", { className: styles$2.container },
610
+ React__default["default"].createElement("h3", null, title),
611
+ React__default["default"].createElement("ul", { className: `${styles$2.item_list} ${items.length > 0 ? styles$2.has_children : styles$2.no_children}` }, items.map((item, index) => React__default["default"].createElement("li", { key: index, className: styles$2.item },
612
+ React__default["default"].createElement("div", { className: styles$2.icon },
613
+ React__default["default"].createElement(SvgIcon, { iconName: item.iconName })),
614
+ React__default["default"].createElement("div", { className: styles$2.title }, item.title),
615
+ React__default["default"].createElement("div", { className: styles$2.moreText }, item.moreText),
616
+ React__default["default"].createElement("div", { className: styles$2.subtitle }, item.subtitle),
617
+ moreActions &&
618
+ moreActions.map((moreAction, index) => React__default["default"].createElement("div", { className: styles$2.more_action, key: item.title + index }, moreAction(item.data, index))),
619
+ actions.length > 0 && actions.map((action, idx) => React__default["default"].createElement("div", { key: idx, className: [
620
+ styles$2.action,
621
+ action.type == exports.TableActionType.red && styles$2.red,
622
+ action.type == exports.TableActionType.default && styles$2.default,
623
+ ].join(" "), onClick: (event) => action.onClick(event, item, index) },
624
+ React__default["default"].createElement(SvgIcon, { iconName: action.iconName }),
625
+ action.title)))))));
626
+ }
627
+
628
+ var css_248z$1 = ".styles-module_container__ItBx0 {\n display: flex;\n flex-direction: row;\n gap: 6px;\n align-items: center;\n color: grey;\n padding: 5px 12px;\n border-radius: 20px;\n}\n\n.styles-module_container__ItBx0 a {\n display: flex;\n flex-direction: row;\n gap: 6px;\n align-items: center;\n color: grey;\n padding: 5px 12px;\n border-radius: 20px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__ItBx0 a:hover {\n color: #0075FF;\n background: rgb(239, 239, 239);\n}";
629
+ var styles$1 = {"container":"styles-module_container__ItBx0"};
630
+ styleInject(css_248z$1);
631
+
632
+ function TextWithIcon({ iconName, label, href }) {
633
+ return (React__default["default"].createElement("div", { className: styles$1.container }, href ?
634
+ React__default["default"].createElement("a", { href: href },
635
+ React__default["default"].createElement(SvgIcon, { iconName: iconName }),
636
+ React__default["default"].createElement("span", null, label))
637
+ :
638
+ React__default["default"].createElement(React__default["default"].Fragment, null,
639
+ React__default["default"].createElement(SvgIcon, { iconName: iconName }),
640
+ React__default["default"].createElement("span", null, label))));
641
+ }
642
+
643
+ function degreesToRadians(degrees) {
644
+ return degrees * Math.PI / 180;
645
+ }
646
+ function valueBetween(value, min, max) {
647
+ if (value > max) return max;
648
+ if (value < min) return min;
649
+ return value;
650
+ }
651
+ function extractPercentage(value, percentage) {
652
+ return percentage / 100 * value;
653
+ }
654
+ function bisectorAngle(startAngle, lengthAngle) {
655
+ return startAngle + lengthAngle / 2;
656
+ }
657
+ function shiftVectorAlongAngle(angle, distance) {
658
+ var angleRadians = degreesToRadians(angle);
659
+ return {
660
+ dx: distance * Math.cos(angleRadians),
661
+ dy: distance * Math.sin(angleRadians)
662
+ };
663
+ }
664
+ function isNumber(value) {
665
+ return typeof value === 'number';
666
+ }
667
+ function functionProp(prop, payload) {
668
+ return typeof prop === 'function' ? prop(payload) : prop;
669
+ }
670
+ function makePropsWithDefaults(props, defaultProps) {
671
+ var result = Object.assign({}, defaultProps, props);
672
+
673
+ // @NOTE Object.assign doesn't default properties with undefined value (like React defaultProps does)
674
+ for (var key in defaultProps) {
675
+ if (props[key] === undefined) {
676
+ result[key] = defaultProps[key];
677
+ }
678
+ }
679
+ return result;
680
+ }
681
+
682
+ function sumValues(data) {
683
+ var sum = 0;
684
+ for (var i = 0; i < data.length; i++) {
685
+ sum += data[i].value;
686
+ }
687
+ return sum;
688
+ }
689
+
690
+ // Append "percentage", "degrees" and "startAngle" to each data entry
691
+ function extendData(_ref) {
692
+ var data = _ref.data,
693
+ totalAngle = _ref.lengthAngle,
694
+ totalValue = _ref.totalValue,
695
+ paddingAngle = _ref.paddingAngle,
696
+ chartStartAngle = _ref.startAngle;
697
+ var total = totalValue || sumValues(data);
698
+ var normalizedTotalAngle = valueBetween(totalAngle, -360, 360);
699
+ var numberOfPaddings = Math.abs(normalizedTotalAngle) === 360 ? data.length : data.length - 1;
700
+ var singlePaddingDegrees = Math.abs(paddingAngle) * Math.sign(totalAngle);
701
+ var degreesTakenByPadding = singlePaddingDegrees * numberOfPaddings;
702
+ var degreesTakenByPaths = normalizedTotalAngle - degreesTakenByPadding;
703
+ var lastSegmentEnd = 0;
704
+ var extendedData = [];
705
+
706
+ // @NOTE: Shall we evaluate percentage accordingly to dataEntry.value's sign?
707
+ for (var i = 0; i < data.length; i++) {
708
+ var dataEntry = data[i];
709
+ var valueInPercentage = total === 0 ? 0 : dataEntry.value / total * 100;
710
+ var degrees = extractPercentage(degreesTakenByPaths, valueInPercentage);
711
+ var startAngle = lastSegmentEnd + chartStartAngle;
712
+ lastSegmentEnd = lastSegmentEnd + degrees + singlePaddingDegrees;
713
+ extendedData.push(Object.assign({
714
+ percentage: valueInPercentage,
715
+ startAngle: startAngle,
716
+ degrees: degrees
717
+ }, dataEntry));
718
+ }
719
+ return extendedData;
720
+ }
721
+
722
+ function _objectWithoutPropertiesLoose(source, excluded) {
723
+ if (source == null) return {};
724
+ var target = {};
725
+ var sourceKeys = Object.keys(source);
726
+ var key, i;
727
+ for (i = 0; i < sourceKeys.length; i++) {
728
+ key = sourceKeys[i];
729
+ if (excluded.indexOf(key) >= 0) continue;
730
+ target[key] = source[key];
731
+ }
732
+ return target;
733
+ }
734
+
735
+ function ReactMinimalPieChartLabel(_ref) {
736
+ var renderLabel = _ref.renderLabel,
737
+ labelProps = _ref.labelProps;
738
+ var label = renderLabel(labelProps);
739
+
740
+ // Default label
741
+ if (typeof label === 'string' || typeof label === 'number') {
742
+ labelProps.dataEntry;
743
+ labelProps.dataIndex;
744
+ var props = _objectWithoutPropertiesLoose(labelProps, ["dataEntry", "dataIndex"]);
745
+ return /*#__PURE__*/React__default["default"].createElement("text", Object.assign({
746
+ dominantBaseline: "central"
747
+ }, props), label);
748
+ }
749
+ if (React__default["default"].isValidElement(label)) {
750
+ return label;
751
+ }
752
+ return null;
753
+ }
754
+
755
+ function round(number) {
756
+ var divisor = 1e14; // 14 decimals
757
+ return Math.round((number + Number.EPSILON) * divisor) / divisor;
758
+ }
759
+ function evaluateTextAnchorPosition(_ref) {
760
+ var labelPosition = _ref.labelPosition,
761
+ lineWidth = _ref.lineWidth,
762
+ labelHorizontalShift = _ref.labelHorizontalShift;
763
+ var dx = round(labelHorizontalShift);
764
+ // Label in the vertical center
765
+ if (dx === 0) {
766
+ return 'middle';
767
+ }
768
+ // Outward label
769
+ if (labelPosition > 100) {
770
+ return dx > 0 ? 'start' : 'end';
771
+ }
772
+ // Inward label
773
+ var innerRadius = 100 - lineWidth;
774
+ if (labelPosition < innerRadius) {
775
+ return dx > 0 ? 'end' : 'start';
776
+ }
777
+ // Overlying label
778
+ return 'middle';
779
+ }
780
+ function makeLabelRenderProps(data, props) {
781
+ return data.map(function (dataEntry, index) {
782
+ var _functionProp;
783
+ var segmentsShift = (_functionProp = functionProp(props.segmentsShift, index)) != null ? _functionProp : 0;
784
+ var distanceFromCenter = extractPercentage(props.radius, props.labelPosition) + segmentsShift;
785
+ var _shiftVectorAlongAngl = shiftVectorAlongAngle(bisectorAngle(dataEntry.startAngle, dataEntry.degrees), distanceFromCenter),
786
+ dx = _shiftVectorAlongAngl.dx,
787
+ dy = _shiftVectorAlongAngl.dy; // This object is passed as argument to the "label" function prop
788
+ var labelRenderProps = {
789
+ x: props.center[0],
790
+ y: props.center[1],
791
+ dx: dx,
792
+ dy: dy,
793
+ textAnchor: evaluateTextAnchorPosition({
794
+ labelPosition: props.labelPosition,
795
+ lineWidth: props.lineWidth,
796
+ labelHorizontalShift: dx
797
+ }),
798
+ dataEntry: dataEntry,
799
+ dataIndex: index,
800
+ style: functionProp(props.labelStyle, index)
801
+ };
802
+ return labelRenderProps;
803
+ });
804
+ }
805
+ function renderLabels(data, props) {
806
+ var label = props.label;
807
+ if (label) {
808
+ return makeLabelRenderProps(data, props).map(function (labelRenderProps, index) {
809
+ return /*#__PURE__*/React__default["default"].createElement(ReactMinimalPieChartLabel, {
810
+ key: "label-" + (labelRenderProps.dataEntry.key || index),
811
+ renderLabel: label,
812
+ labelProps: labelRenderProps
813
+ });
814
+ });
815
+ }
816
+ }
817
+
818
+ // from http://stackoverflow.com/a/18473154
819
+ var partialCircle = function partialCircle(cx, cy, r, start, end) {
820
+ var length = end - start;
821
+ if (length === 0) return [];
822
+ var fromX = r * Math.cos(start) + cx;
823
+ var fromY = r * Math.sin(start) + cy;
824
+ var toX = r * Math.cos(end) + cx;
825
+ var toY = r * Math.sin(end) + cy;
826
+ var large = Math.abs(length) <= Math.PI ? '0' : '1';
827
+ var sweep = length < 0 ? '0' : '1';
828
+ return [['M', fromX, fromY], ['A', r, r, 0, large, sweep, toX, toY]];
829
+ };
830
+ var svgPartialCircle = partialCircle;
831
+
832
+ var partialCircle$1 = svgPartialCircle;
833
+
834
+ function makePathCommands(cx, cy, startAngle, lengthAngle, radius) {
835
+ var patchedLengthAngle = valueBetween(lengthAngle, -359.999, 359.999);
836
+ return partialCircle$1(cx, cy,
837
+ // center X and Y
838
+ radius, degreesToRadians(startAngle), degreesToRadians(startAngle + patchedLengthAngle)).map(function (command) {
839
+ return command.join(' ');
840
+ }).join(' ');
841
+ }
842
+ function ReactMinimalPieChartPath(_ref) {
843
+ var cx = _ref.cx,
844
+ cy = _ref.cy,
845
+ lengthAngle = _ref.lengthAngle,
846
+ lineWidth = _ref.lineWidth,
847
+ radius = _ref.radius,
848
+ _ref$shift = _ref.shift,
849
+ shift = _ref$shift === void 0 ? 0 : _ref$shift,
850
+ reveal = _ref.reveal,
851
+ rounded = _ref.rounded,
852
+ startAngle = _ref.startAngle,
853
+ title = _ref.title,
854
+ props = _objectWithoutPropertiesLoose(_ref, ["cx", "cy", "lengthAngle", "lineWidth", "radius", "shift", "reveal", "rounded", "startAngle", "title"]);
855
+ var pathRadius = radius - lineWidth / 2;
856
+ //@NOTE This shift might be rendered as a translation in future
857
+ var _shiftVectorAlongAngl = shiftVectorAlongAngle(bisectorAngle(startAngle, lengthAngle), shift),
858
+ dx = _shiftVectorAlongAngl.dx,
859
+ dy = _shiftVectorAlongAngl.dy;
860
+ var pathCommands = makePathCommands(cx + dx, cy + dy, startAngle, lengthAngle, pathRadius);
861
+ var strokeDasharray;
862
+ var strokeDashoffset;
863
+
864
+ // Animate/hide paths with "stroke-dasharray" + "stroke-dashoffset"
865
+ // https://css-tricks.com/svg-line-animation-works/
866
+ if (isNumber(reveal)) {
867
+ var pathLength = degreesToRadians(pathRadius) * lengthAngle;
868
+ strokeDasharray = Math.abs(pathLength);
869
+ strokeDashoffset = strokeDasharray - extractPercentage(strokeDasharray, reveal);
870
+ }
871
+ return /*#__PURE__*/React__default["default"].createElement("path", Object.assign({
872
+ d: pathCommands,
873
+ fill: "none",
874
+ strokeWidth: lineWidth,
875
+ strokeDasharray: strokeDasharray,
876
+ strokeDashoffset: strokeDashoffset,
877
+ strokeLinecap: rounded ? 'round' : undefined
878
+ }, props), title && /*#__PURE__*/React__default["default"].createElement("title", null, title));
879
+ }
880
+
881
+ function combineSegmentTransitionsStyle(duration, easing, customStyle) {
882
+ // Merge chart's animation CSS transition with "transition" found to customStyle
883
+ var transition = "stroke-dashoffset " + duration + "ms " + easing;
884
+ if (customStyle && customStyle.transition) {
885
+ transition = transition + "," + customStyle.transition;
886
+ }
887
+ return {
888
+ transition: transition
889
+ };
890
+ }
891
+ function getRevealValue(props) {
892
+ //@NOTE When animation is on, chart has to be fully revealed when reveal is not set
893
+ if (props.animate && !isNumber(props.reveal)) {
894
+ return 100;
895
+ }
896
+ return props.reveal;
897
+ }
898
+ function makeEventHandler(eventHandler, payload) {
899
+ return eventHandler && function (e) {
900
+ eventHandler(e, payload);
901
+ };
902
+ }
903
+ function renderSegments(data, props, revealOverride) {
904
+ // @NOTE this should go in Path component. Here for performance reasons
905
+ var reveal = revealOverride != null ? revealOverride : getRevealValue(props);
906
+ var radius = props.radius,
907
+ _props$center = props.center,
908
+ cx = _props$center[0],
909
+ cy = _props$center[1];
910
+ var lineWidth = extractPercentage(radius, props.lineWidth);
911
+ var paths = data.map(function (dataEntry, index) {
912
+ var segmentsStyle = functionProp(props.segmentsStyle, index);
913
+ return /*#__PURE__*/React__default["default"].createElement(ReactMinimalPieChartPath, {
914
+ cx: cx,
915
+ cy: cy,
916
+ key: dataEntry.key || index,
917
+ lengthAngle: dataEntry.degrees,
918
+ lineWidth: lineWidth,
919
+ radius: radius,
920
+ rounded: props.rounded,
921
+ reveal: reveal,
922
+ shift: functionProp(props.segmentsShift, index),
923
+ startAngle: dataEntry.startAngle,
924
+ title: dataEntry.title,
925
+ style: Object.assign({}, segmentsStyle, props.animate && combineSegmentTransitionsStyle(props.animationDuration, props.animationEasing, segmentsStyle)),
926
+ stroke: dataEntry.color,
927
+ tabIndex: props.segmentsTabIndex,
928
+ onBlur: makeEventHandler(props.onBlur, index),
929
+ onClick: makeEventHandler(props.onClick, index),
930
+ onFocus: makeEventHandler(props.onFocus, index),
931
+ onKeyDown: makeEventHandler(props.onKeyDown, index),
932
+ onMouseOver: makeEventHandler(props.onMouseOver, index),
933
+ onMouseOut: makeEventHandler(props.onMouseOut, index)
934
+ });
935
+ });
936
+ if (props.background) {
937
+ paths.unshift( /*#__PURE__*/React__default["default"].createElement(ReactMinimalPieChartPath, {
938
+ cx: cx,
939
+ cy: cy,
940
+ key: "bg",
941
+ lengthAngle: props.lengthAngle,
942
+ lineWidth: lineWidth,
943
+ radius: radius,
944
+ rounded: props.rounded,
945
+ startAngle: props.startAngle,
946
+ stroke: props.background
947
+ }));
948
+ }
949
+ return paths;
950
+ }
951
+
952
+ var defaultProps = {
953
+ animationDuration: 500,
954
+ animationEasing: 'ease-out',
955
+ center: [50, 50],
956
+ data: [],
957
+ labelPosition: 50,
958
+ lengthAngle: 360,
959
+ lineWidth: 100,
960
+ paddingAngle: 0,
961
+ radius: 50,
962
+ startAngle: 0,
963
+ viewBoxSize: [100, 100]
964
+ };
965
+ function ReactMinimalPieChart(originalProps) {
966
+ var props = makePropsWithDefaults(originalProps,
967
+ // @ts-expect-error: defaultProps.data is typed as BaseDataEntry
968
+ defaultProps);
969
+ var _useState = React.useState(props.animate ? 0 : null),
970
+ revealOverride = _useState[0],
971
+ setRevealOverride = _useState[1];
972
+ React.useEffect(function () {
973
+ if (props.animate) {
974
+ // Trigger initial animation
975
+ setRevealOverride(null);
976
+ }
977
+ }, []);
978
+ var extendedData = extendData(props);
979
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
980
+ viewBox: "0 0 " + props.viewBoxSize[0] + " " + props.viewBoxSize[1],
981
+ width: "100%",
982
+ height: "100%",
983
+ className: props.className,
984
+ style: props.style
985
+ }, renderSegments(extendedData, props, revealOverride), renderLabels(extendedData, props), props.children);
986
+ }
987
+
988
+ var css_248z = "@keyframes styles-module_shine__wdsDw {\n to {\n background-position-x: -200%;\n }\n}\n.styles-module_container__otVky {\n background: white;\n padding: 18px;\n border-radius: 20px;\n box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n display: flex;\n flex-direction: row;\n}\n.styles-module_container__otVky.styles-module_loading__e-0U1 {\n height: 95px;\n background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);\n background-size: 200% 100%;\n animation: 1.5s styles-module_shine__wdsDw linear infinite;\n}\n.styles-module_container__otVky .styles-module_text__V17nN {\n flex: 1;\n}\n.styles-module_container__otVky .styles-module_graph__IjvUA svg {\n width: 40px;\n}\n.styles-module_container__otVky h3 {\n margin: 0;\n line-height: 1.8;\n font-size: 16px;\n font-weight: 600;\n}\n.styles-module_container__otVky p {\n margin: 0;\n line-height: 1.8;\n font-size: 16px;\n color: rgb(158, 158, 158);\n}";
989
+ var styles = {"container":"styles-module_container__otVky","loading":"styles-module_loading__e-0U1","shine":"styles-module_shine__wdsDw","text":"styles-module_text__V17nN","graph":"styles-module_graph__IjvUA"};
990
+ styleInject(css_248z);
991
+
992
+ function UsageCard({ title, subtitle, ratio = 0, loading }) {
993
+ if (loading)
994
+ return React__default["default"].createElement("div", { className: [styles.container, styles.loading].join(" ") });
995
+ return (React__default["default"].createElement("div", { className: styles.container },
996
+ React__default["default"].createElement("div", { className: styles.text },
997
+ React__default["default"].createElement("h3", null, title),
998
+ React__default["default"].createElement("p", null, subtitle)),
999
+ React__default["default"].createElement("div", { className: styles.graph },
1000
+ React__default["default"].createElement(ReactMinimalPieChart, { data: [
1001
+ { title: 'One', value: 1 - ratio, color: '#DFDFDF' },
1002
+ { title: 'Two', value: ratio + 0.05, color: '#0085FF' },
1003
+ ], lineWidth: 15, totalValue: 1 }))));
1004
+ }
1005
+
76
1006
  exports.Accordeon = Accordeon;
1007
+ exports.AuthButton = AuthButton;
1008
+ exports.CardButton = CardButton;
1009
+ exports.Checkbox = Checkbox;
1010
+ exports.ChooseRole = ChooseRole;
1011
+ exports.ChooseRoleItem = ChooseRoleItem;
1012
+ exports.CopyCode = CopyCode;
77
1013
  exports.Dialog = Dialog;
1014
+ exports.FormButton = FormButton;
1015
+ exports.FormText = FormText;
1016
+ exports.ForwardButton = ForwardButton;
78
1017
  exports.Gap = Gap;
1018
+ exports.InputMail = InputMail;
1019
+ exports.InputNames = InputNames;
1020
+ exports.InputNumber = InputNumber;
1021
+ exports.InputPassword = InputPassword;
1022
+ exports.InputPin = InputPin;
1023
+ exports.InputText = InputText;
1024
+ exports.OptionField = OptionField;
1025
+ exports.OptionFieldHorizontal = OptionFieldHorizontal;
1026
+ exports.PrimaryButton = PrimaryButton;
1027
+ exports.ProgressBar = ProgressBar;
1028
+ exports.RadioButtons = RadioButtons;
1029
+ exports.RadioOption = RadioOption;
1030
+ exports.RedirectButton = RedirectButton;
1031
+ exports.SearchChip = SearchChip;
1032
+ exports.SearchChips = SearchChips;
1033
+ exports.Searchbar = Searchbar;
1034
+ exports.Slider = Slider;
1035
+ exports.SliderCard = SliderCard;
1036
+ exports.StepBack = StepBack;
79
1037
  exports.SvgIcon = SvgIcon;
1038
+ exports.Table = Table;
1039
+ exports.TableItem = TableItem;
1040
+ exports.TableItemAction = TableItemAction;
1041
+ exports.TextWithIcon = TextWithIcon;
1042
+ exports.UsageCard = UsageCard;