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.esm.js CHANGED
@@ -1,10 +1,9 @@
1
- import React, { useState } from 'react';
2
- import 'external-svg-loader';
1
+ import React, { useState, useCallback, useRef, createRef, useEffect } from 'react';
2
+ import Link from 'next/link';
3
3
 
4
4
  function SvgIcon({ iconName, size = "24px", className = "", onClick }) {
5
5
  return (React.createElement(React.Fragment, null,
6
- React.createElement("span", { onClick: onClick, className: `material-symbols-outlined ${className}`, style: { fontSize: size } }, iconName),
7
- "Lib"));
6
+ React.createElement("span", { onClick: onClick, className: `material-symbols-outlined ${className}`, style: { fontSize: size } }, iconName)));
8
7
  }
9
8
 
10
9
  function styleInject(css, ref) {
@@ -34,22 +33,100 @@ function styleInject(css, ref) {
34
33
  }
35
34
  }
36
35
 
37
- 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}";
38
- 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"};
39
- styleInject(css_248z$1);
36
+ 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}";
37
+ 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"};
38
+ styleInject(css_248z$s);
40
39
 
41
40
  function Accordeon({ title, children }) {
42
41
  const [isActive, setActive] = useState(false);
43
- return (React.createElement("div", { className: [styles$1.container, isActive ? styles$1.active : styles$1.not_active].join(" ") },
44
- React.createElement("div", { className: styles$1.head, onClick: () => setActive(!isActive) },
42
+ return (React.createElement("div", { className: [styles$s.container, isActive ? styles$s.active : styles$s.not_active].join(" ") },
43
+ React.createElement("div", { className: styles$s.head, onClick: () => setActive(!isActive) },
45
44
  React.createElement(SvgIcon, { iconName: "expand_more" }),
46
45
  React.createElement("h3", null, title)),
47
- React.createElement("div", { className: styles$1.content }, children)));
46
+ React.createElement("div", { className: styles$s.content }, children)));
48
47
  }
49
48
 
50
- 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}";
51
- 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"};
52
- styleInject(css_248z);
49
+ 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}";
50
+ 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"};
51
+ styleInject(css_248z$r);
52
+
53
+ function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick = (event) => { } }) {
54
+ return (React.createElement(React.Fragment, null,
55
+ React.createElement("div", { className: [styles$r.container, isVisible ? styles$r.visible : styles$r.hidden, ["arrow_forward"].includes(iconName) ? styles$r.rotate : null].join(" ") },
56
+ React.createElement("button", { type: type, className: `${styles$r.button} ${styles$r[theme]}`, onClick: onClick },
57
+ text,
58
+ React.createElement(SvgIcon, { iconName: iconName })))));
59
+ }
60
+
61
+ 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}";
62
+ var styles$q = {"card":"styles-module_card__bOd85"};
63
+ styleInject(css_248z$q);
64
+
65
+ function CardButton({ title, iconName, onClick, }) {
66
+ function onClickCard(event) {
67
+ event.preventDefault();
68
+ if (onClick)
69
+ onClick(event);
70
+ }
71
+ return (React.createElement("div", { className: styles$q.card, onClick: onClickCard },
72
+ React.createElement(SvgIcon, { iconName: iconName }),
73
+ React.createElement("h2", null, title)));
74
+ }
75
+
76
+ 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}";
77
+ var styles$p = {"container":"styles-module_container__gCCnD"};
78
+ styleInject(css_248z$p);
79
+
80
+ function Checkbox({ text, name }) {
81
+ return (React.createElement(React.Fragment, null,
82
+ React.createElement("div", { className: styles$p.container },
83
+ React.createElement("input", { type: "checkbox", name: name, id: name }),
84
+ React.createElement("label", { htmlFor: name }, text),
85
+ React.createElement(SvgIcon, { iconName: "done", size: "21px" }))));
86
+ }
87
+
88
+ 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}";
89
+ var styles$o = {"container":"styles-module_container__OqDNA","item":"styles-module_item__1SMCI","selected":"styles-module_selected__AXIA-"};
90
+ styleInject(css_248z$o);
91
+
92
+ class ChooseRoleItem {
93
+ title;
94
+ value;
95
+ constructor(title, value) {
96
+ this.title = title;
97
+ this.value = value;
98
+ }
99
+ }
100
+ function ChooseRole({ roles, defaultSelected, readOnly = false, onChange }) {
101
+ const [selected, setSelected] = useState(defaultSelected);
102
+ function onUpdate(newRole) {
103
+ if (readOnly)
104
+ return;
105
+ setSelected(newRole);
106
+ onChange(newRole);
107
+ }
108
+ return (React.createElement("div", { className: styles$o.container }, roles.map((item, index) => React.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))));
109
+ }
110
+
111
+ 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}";
112
+ var styles$n = {"container":"styles-module_container__yV6C8"};
113
+ styleInject(css_248z$n);
114
+
115
+ function CopyCode({ code, style, onCopy = () => { } }) {
116
+ function onClick() {
117
+ navigator.clipboard.writeText(code);
118
+ if (onCopy)
119
+ onCopy();
120
+ }
121
+ return (React.createElement("div", { className: styles$n.container, onClick: onClick, style: style },
122
+ React.createElement(SvgIcon, { iconName: "content_copy" }),
123
+ React.createElement("span", null, code),
124
+ React.createElement("input", { type: "hidden", name: "code", value: code })));
125
+ }
126
+
127
+ 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}";
128
+ 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"};
129
+ styleInject(css_248z$m);
53
130
 
54
131
  function Dialog({ active = false, onClose = (event) => { }, children = null }) {
55
132
  function onClick(event) {
@@ -57,12 +134,864 @@ function Dialog({ active = false, onClose = (event) => { }, children = null }) {
57
134
  onClose(event);
58
135
  }
59
136
  }
60
- return (React.createElement("div", { id: "dialog-backdrop", className: `${styles.container} ${active ? styles.active : styles.disabled}`, onClick: onClick },
61
- React.createElement("div", { className: styles.dialog_window }, children)));
137
+ return (React.createElement("div", { id: "dialog-backdrop", className: `${styles$m.container} ${active ? styles$m.active : styles$m.disabled}`, onClick: onClick },
138
+ React.createElement("div", { className: styles$m.dialog_window }, children)));
139
+ }
140
+
141
+ 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}";
142
+ var styles$l = {"container":"styles-module_container__HOoBj"};
143
+ styleInject(css_248z$l);
144
+
145
+ function FormButton({ text, style = {}, iconName = "", onClick = (event) => { } }) {
146
+ return (React.createElement("div", { className: styles$l.container, style: style },
147
+ React.createElement("button", { type: "submit", onClick: onClick },
148
+ text,
149
+ iconName && React.createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
150
+ }
151
+
152
+ 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}";
153
+ var styles$k = {"container":"styles-module_container__9wYEm"};
154
+ styleInject(css_248z$k);
155
+
156
+ function FormText({ title, value, style }) {
157
+ return (React.createElement("div", { className: styles$k.container, style: style },
158
+ React.createElement("h5", null, title),
159
+ React.createElement("h3", null, value)));
160
+ }
161
+
162
+ 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}";
163
+ var styles$j = {"container":"styles-module_container__C99XV","button":"styles-module_button__pGYkF"};
164
+ styleInject(css_248z$j);
165
+
166
+ function ForwardButton({ onClick }) {
167
+ function onClickButton(event) {
168
+ event.preventDefault();
169
+ if (onClick)
170
+ onClick(event);
171
+ }
172
+ return (React.createElement("div", { className: styles$j.container },
173
+ React.createElement("button", { onClick: onClickButton, className: styles$j.button },
174
+ React.createElement(SvgIcon, { iconName: "arrow_back" }))));
62
175
  }
63
176
 
64
177
  function Gap({ size }) {
65
178
  return (React.createElement("div", { style: { height: size } }));
66
179
  }
67
180
 
68
- export { Accordeon, Dialog, Gap, SvgIcon };
181
+ 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}";
182
+ 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-"};
183
+ styleInject(css_248z$i);
184
+
185
+ function InputMail({ placeholder = "E-Mail-Adresse", title = "E-Mail-Adresse", name = "email", width = "100%", available = true }) {
186
+ const [value, setValue] = useState("");
187
+ return (React.createElement(React.Fragment, null,
188
+ React.createElement("div", { className: styles$i.container, style: { width: width } },
189
+ React.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) }),
190
+ React.createElement("label", { htmlFor: "text", className: styles$i.label },
191
+ React.createElement("span", { className: styles$i.label_text }, title)))));
192
+ }
193
+
194
+ 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}";
195
+ 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"};
196
+ styleInject(css_248z$h);
197
+
198
+ function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
199
+ const [value1, setValue1] = useState("");
200
+ const [value2, setValue2] = useState("");
201
+ function onInput1(event) {
202
+ setValue1(event.target.value);
203
+ onInputFirstName(event);
204
+ onInput("firstName", event);
205
+ }
206
+ function onInput2(event) {
207
+ setValue2(event.target.value);
208
+ onInputLastName(event);
209
+ onInput("lastName", event);
210
+ }
211
+ return (React.createElement("div", { className: styles$h.container, style: { width: width } },
212
+ React.createElement("div", { className: styles$h.form },
213
+ React.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 }),
214
+ React.createElement("label", { htmlFor: "text", className: styles$h.label },
215
+ React.createElement("span", { className: styles$h.label_text }, title.firstName))),
216
+ React.createElement("div", { className: styles$h.form },
217
+ React.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 }),
218
+ React.createElement("label", { htmlFor: "text", className: styles$h.label },
219
+ React.createElement("span", { className: styles$h.label_text }, title.lastName)))));
220
+ }
221
+
222
+ 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}";
223
+ 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"};
224
+ styleInject(css_248z$g);
225
+
226
+ function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "number", width = "100%", available = true, onInput = (event) => { } }) {
227
+ const [value, setValue] = useState(defaultValue);
228
+ const inputElement = useCallback((element) => {
229
+ if (element && autoFocus)
230
+ element.focus();
231
+ }, [autoFocus]);
232
+ return (React.createElement(React.Fragment, null,
233
+ React.createElement("div", { className: styles$g.container, style: { width } },
234
+ React.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) => {
235
+ setValue(event.target.value);
236
+ onInput(event);
237
+ } }),
238
+ React.createElement("label", { htmlFor: "text", className: styles$g.label },
239
+ React.createElement("span", { className: styles$g.label_text }, title)))));
240
+ }
241
+
242
+ 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}";
243
+ 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"};
244
+ styleInject(css_248z$f);
245
+
246
+ function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete, showForgotLink = false }) {
247
+ const [value, setValue] = useState("");
248
+ const [hidePassword, setHidePassword] = useState(true);
249
+ return (React.createElement(React.Fragment, null,
250
+ React.createElement("div", { className: `${styles$f.container} ${isVisible ? styles$f.visible : styles$f.hidden}`, style: { width: width } },
251
+ React.createElement("div", { className: styles$f.form },
252
+ React.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) }),
253
+ React.createElement("label", { htmlFor: "text", className: styles$f.label },
254
+ React.createElement("span", { className: styles$f.label_text }, title)),
255
+ React.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$f.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
256
+ React.createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
257
+ showForgotLink &&
258
+ React.createElement(Link, { href: "/auth/forgot/1" },
259
+ React.createElement("span", { className: styles$f.forgot_label }, "Passwort vergessen?")))));
260
+ }
261
+
262
+ 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}";
263
+ var styles$e = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
264
+ styleInject(css_248z$e);
265
+
266
+ function InputPin({ name, length, onFinished = () => { } }) {
267
+ const [state, setState] = useState({});
268
+ const fieldRefs = useRef([]);
269
+ fieldRefs.current = [...Array(length)].map((_, i) => fieldRefs.current[i] ?? createRef());
270
+ function onChange(event, position) {
271
+ const regex = /^[0-9\b]+$/;
272
+ const value = event.target.value ? event.target.value : "";
273
+ if (value != '' && regex.test(value)) {
274
+ const digitCountBefore = state[position] == undefined ? 0 : String(state[position]).length;
275
+ const addedDigitsCount = value.length - digitCountBefore;
276
+ if (addedDigitsCount == 1) {
277
+ fieldRefs.current[(position + 1) % length].current.focus();
278
+ setDigit(position, value.charAt(-1));
279
+ }
280
+ else {
281
+ const digits = value.split("");
282
+ if (digitCountBefore == 1)
283
+ digits.shift();
284
+ let newState = { ...state };
285
+ digits.forEach((digit, position) => {
286
+ newState[position % length] = digit;
287
+ fieldRefs.current[position % length].current.value = digit;
288
+ });
289
+ if (digits.length >= 6) {
290
+ fieldRefs.current[length - 1].current.focus();
291
+ }
292
+ setState(newState);
293
+ }
294
+ }
295
+ }
296
+ function onKeyUp(event, position) {
297
+ event.preventDefault();
298
+ // Keys: Backspace, Arrow left
299
+ if ([8, 37].includes(event.keyCode)) {
300
+ fieldRefs.current[(((position) - 1) + length) % length].current.focus();
301
+ }
302
+ // Keys: Tab (automatically), Arrow Right
303
+ if ([39].includes(event.keyCode)) {
304
+ fieldRefs.current[(position + 1) % length].current.focus();
305
+ }
306
+ }
307
+ function setDigit(position, digit) {
308
+ fieldRefs.current[position % length].current.value = digit;
309
+ setState({ ...state, [position % length]: digit });
310
+ }
311
+ function resetValues() {
312
+ setState({});
313
+ fieldRefs.current.forEach((ref) => {
314
+ ref.current.value = "";
315
+ });
316
+ }
317
+ useCallback((element) => {
318
+ if (element)
319
+ element.focus();
320
+ }, []);
321
+ return (React.createElement(React.Fragment, null,
322
+ React.createElement("div", { className: styles$e.container },
323
+ React.createElement("input", { name: name, type: "hidden", defaultValue: Object.values(state).join("") }),
324
+ React.createElement("div", { className: styles$e.input_wrapper }, [...Array(length)].map((e, i) => {
325
+ if (i == 0) {
326
+ return React.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) });
327
+ }
328
+ return React.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) });
329
+ })),
330
+ React.createElement("a", { onClick: resetValues }, "Zur\u00FCcksetzen"))));
331
+ }
332
+
333
+ 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}";
334
+ 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"};
335
+ styleInject(css_248z$d);
336
+
337
+ function InputText({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "text", width = "100%", available = true, onInput = (event) => { } }) {
338
+ const [value, setValue] = useState(defaultValue);
339
+ const inputElement = useCallback((element) => {
340
+ if (element && autoFocus)
341
+ element.focus();
342
+ }, [autoFocus]);
343
+ return (React.createElement(React.Fragment, null,
344
+ React.createElement("div", { className: styles$d.container, style: { width } },
345
+ React.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) => {
346
+ setValue(event.target.value);
347
+ onInput(event);
348
+ } }),
349
+ React.createElement("label", { htmlFor: "text", className: styles$d.label },
350
+ React.createElement("span", { className: styles$d.label_text }, title)))));
351
+ }
352
+
353
+ 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}";
354
+ var styles$c = {"box":"styles-module_box__Z0iod","left_side":"styles-module_left_side__8ObGs","right_side":"styles-module_right_side__Ypp0D"};
355
+ styleInject(css_248z$c);
356
+
357
+ function OptionField({ headline, description, link, iconName }) {
358
+ return (React.createElement(React.Fragment, null,
359
+ React.createElement("a", { href: link },
360
+ React.createElement("div", { className: styles$c.box },
361
+ React.createElement("div", { className: styles$c.left_side }, iconName && React.createElement(SvgIcon, { iconName: iconName })),
362
+ React.createElement("div", { className: styles$c.right_side },
363
+ React.createElement("h4", null, headline),
364
+ React.createElement("p", null, description))))));
365
+ }
366
+
367
+ 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}";
368
+ var styles$b = {"container":"styles-module_container__XCtqW","preselected":"styles-module_preselected__WoSbB"};
369
+ styleInject(css_248z$b);
370
+
371
+ function OptionFieldHorizontal({ title, href, iconName, preselected = false }) {
372
+ return (React.createElement("a", { href: href },
373
+ React.createElement("div", { className: [styles$b.container, preselected ? styles$b.preselected : styles$b.not_preselected].join(" ") },
374
+ React.createElement(SvgIcon, { iconName: iconName, size: "32px" }),
375
+ React.createElement("h3", null, title))));
376
+ }
377
+
378
+ 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}";
379
+ var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","red":"styles-module_red__CHF3e"};
380
+ styleInject(css_248z$a);
381
+
382
+ function PrimaryButton({ text, iconName, type = "blue", onClick = () => { } }) {
383
+ function onClickButton(event) {
384
+ event.preventDefault();
385
+ if (onClick)
386
+ onClick(event);
387
+ }
388
+ return (React.createElement("div", { className: styles$a.container },
389
+ React.createElement("button", { className: `${styles$a.button} ${styles$a[type]}`, onClick: onClickButton },
390
+ text,
391
+ React.createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
392
+ }
393
+
394
+ 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}";
395
+ var styles$9 = {"container":"styles-module_container__u4q5n","background":"styles-module_background__jt-ry","progress":"styles-module_progress__Zj-B7"};
396
+ styleInject(css_248z$9);
397
+
398
+ function ProgressBar({ length, progress }) {
399
+ return (React.createElement(React.Fragment, null,
400
+ React.createElement("div", { className: styles$9.container },
401
+ React.createElement("div", { className: styles$9.background },
402
+ React.createElement("div", { className: styles$9.progress, style: { width: `${progress / length * 100}%` } })))));
403
+ }
404
+
405
+ 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}";
406
+ var styles$8 = {"container":"styles-module_container__Grkzw"};
407
+ styleInject(css_248z$8);
408
+
409
+ class RadioOption {
410
+ text;
411
+ name;
412
+ constructor(text, name) {
413
+ this.text = text;
414
+ this.name = name;
415
+ }
416
+ }
417
+ function RadioButtons({ options, group, selected, width = "100%" }) {
418
+ const [selectedOption, setSelected] = useState(selected);
419
+ function onUpdateSelected(event) {
420
+ setSelected(event.target.value);
421
+ }
422
+ return (React.createElement("div", { className: styles$8.container, style: { width: width } }, options.map((option) => React.createElement("div", { className: styles$8.option, key: option.name },
423
+ selected && selected == option.name ?
424
+ React.createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onClick: onUpdateSelected, defaultChecked: true })
425
+ :
426
+ React.createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onClick: onUpdateSelected }),
427
+ React.createElement("label", { htmlFor: option.name }, option.text)))));
428
+ }
429
+
430
+ 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}";
431
+ var styles$7 = {"container":"styles-module_container__RhsQe","button":"styles-module_button__HuX-0","middle":"styles-module_middle__xg7RF"};
432
+ styleInject(css_248z$7);
433
+
434
+ function RedirectButton({ type = "forward", onClick }) {
435
+ function onClickButton(event) {
436
+ event.preventDefault();
437
+ if (onClick)
438
+ onClick(event);
439
+ }
440
+ const getIcon = () => {
441
+ switch (type) {
442
+ case "forward": return "arrow_forward";
443
+ case "back": return "arrow_back";
444
+ case "middle": return "arrow_back";
445
+ }
446
+ };
447
+ return (React.createElement("div", { className: [styles$7.container, styles$7[type]].join(" ") },
448
+ React.createElement("button", { onClick: onClickButton, className: styles$7.button },
449
+ React.createElement(SvgIcon, { iconName: getIcon() }),
450
+ ["middle"].includes(type) &&
451
+ React.createElement("span", null, "Zur\u00FCck"))));
452
+ }
453
+
454
+ 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}";
455
+ var styles$6 = {"container":"styles-module_container__VreeH","chip":"styles-module_chip__EvZ4J","selected":"styles-module_selected__sArTD"};
456
+ styleInject(css_248z$6);
457
+
458
+ class SearchChip {
459
+ title;
460
+ value;
461
+ selected = false;
462
+ constructor(title, value) {
463
+ this.title = title;
464
+ this.value = value;
465
+ }
466
+ }
467
+ function SearchChips({ items, onChange }) {
468
+ const [chips, setChips] = useState(items);
469
+ function onClick(item, index) {
470
+ const newChips = [...chips];
471
+ newChips[index] = { ...item, selected: !item.selected };
472
+ setChips(newChips);
473
+ if (onChange)
474
+ onChange(newChips);
475
+ }
476
+ return (React.createElement("div", { className: styles$6.container }, chips.map((item, index) => React.createElement("div", { key: index, onClick: (e) => onClick(item, index), className: [styles$6.chip, item.selected ? styles$6.selected : styles$6.not_selected].join(" ") },
477
+ React.createElement(SvgIcon, { iconName: item.selected ? "close" : "filter_list", size: "20px" }),
478
+ item.title))));
479
+ }
480
+
481
+ 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}";
482
+ 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"};
483
+ styleInject(css_248z$5);
484
+
485
+ 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 = [] }) {
486
+ const [value, setValue] = useState("");
487
+ const [inputFocused, setFocused] = useState(false);
488
+ const [searchResults, setSearchResults] = useState(results);
489
+ function onInputChanged(event) {
490
+ setValue(event.target.value);
491
+ updateSearch(event);
492
+ onInput(event);
493
+ }
494
+ function updateSearch(event) {
495
+ if (event.target.value == '' || event.target.value == undefined || event.target.value == null) {
496
+ setSearchResults(results);
497
+ }
498
+ else {
499
+ setSearchResults(results.filter((result) => {
500
+ return result.title.includes(event.target.value);
501
+ }));
502
+ }
503
+ }
504
+ const inputElement = useCallback((element) => {
505
+ if (element && autoFocus)
506
+ element.focus();
507
+ }, [autoFocus]);
508
+ return (React.createElement(React.Fragment, null,
509
+ React.createElement("div", { className: styles$5.container },
510
+ React.createElement("div", { className: `${styles$5.form} ${inputFocused ? styles$5.focus : styles$5.not_focused}` },
511
+ React.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 }),
512
+ React.createElement("label", { htmlFor: "text", className: styles$5.label },
513
+ React.createElement("span", { className: styles$5.label_text }, title))),
514
+ withButton && React.createElement("button", { type: "button" }, buttonText),
515
+ suggestions.length > 0 && React.createElement("div", { className: styles$5.suggestions_container },
516
+ React.createElement("ul", null, suggestions.map((suggestion, index) => React.createElement("li", { key: index }, suggestion)))),
517
+ searchResults.length > 0 && React.createElement("div", { className: styles$5.results_container },
518
+ React.createElement("ul", null, searchResults.map((result, index) => React.createElement("li", { key: index, onClick: (event) => onClickResult(event, result) },
519
+ React.createElement("span", null, result.title),
520
+ React.createElement("button", { type: "button" }, buttonText))))),
521
+ searchResults.length == 0 && showNoResults && value.length > 0 && React.createElement("div", { className: styles$5.results_container },
522
+ React.createElement("div", { className: styles$5.error },
523
+ React.createElement(SvgIcon, { iconName: "error" }),
524
+ React.createElement("h3", null, errorTitle),
525
+ React.createElement("p", null, errorMessage),
526
+ errorButton.length > 0 && React.createElement("button", { onClick: errorAction }, errorButton))),
527
+ searchResults.length == 0 && showNoResults && value.length == 0 && React.createElement("div", { className: styles$5.results_container },
528
+ React.createElement("div", { className: styles$5.error },
529
+ React.createElement(SvgIcon, { iconName: "lightbulb" }),
530
+ React.createElement("h3", null, helpTitle),
531
+ React.createElement("p", null, helpMessage))))));
532
+ }
533
+
534
+ var css_248z$4 = "";
535
+ var styles$4 = {};
536
+ styleInject(css_248z$4);
537
+
538
+ class SliderCard {
539
+ title;
540
+ description;
541
+ constructor(title, description) {
542
+ this.title = title;
543
+ this.description = description;
544
+ }
545
+ }
546
+ function Slider({ cards }) {
547
+ const [selected, setSelected] = useState(0);
548
+ return (React.createElement("div", { className: styles$4.container }, cards.map((card, index) => React.createElement("div", { key: index, className: [styles$4.card, selected == index ? styles$4.selected : styles$4.not_selected].join(" ") },
549
+ React.createElement("h1", null, card.title),
550
+ React.createElement("p", null, card.description)))));
551
+ }
552
+
553
+ 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}";
554
+ var styles$3 = {"container":"styles-module_container__xRQNT"};
555
+ styleInject(css_248z$3);
556
+
557
+ function StepBack({ link }) {
558
+ return (React.createElement(React.Fragment, null,
559
+ React.createElement("a", { href: link },
560
+ React.createElement("div", { className: styles$3.container },
561
+ React.createElement(SvgIcon, { iconName: 'arrow_back' }),
562
+ "Weitere M\u00F6glichkeiten"))));
563
+ }
564
+
565
+ 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}";
566
+ 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"};
567
+ styleInject(css_248z$2);
568
+
569
+ var TableActionType;
570
+ (function (TableActionType) {
571
+ TableActionType[TableActionType["red"] = 0] = "red";
572
+ TableActionType[TableActionType["default"] = 1] = "default";
573
+ })(TableActionType || (TableActionType = {}));
574
+ class TableItem {
575
+ title;
576
+ subtitle;
577
+ moreText;
578
+ iconName;
579
+ data;
580
+ constructor(title, subtitle, moreText, iconName, data = {}) {
581
+ this.title = title;
582
+ this.subtitle = subtitle;
583
+ this.moreText = moreText;
584
+ this.iconName = iconName;
585
+ this.data = data;
586
+ }
587
+ }
588
+ class TableItemAction {
589
+ title;
590
+ iconName;
591
+ onClick;
592
+ type = TableActionType.default;
593
+ constructor(title, iconName, type, onClick = () => { }) {
594
+ this.title = title;
595
+ this.iconName = iconName;
596
+ this.onClick = onClick;
597
+ }
598
+ }
599
+ function Table({ items, title = "Titel", actions = [], moreActions }) {
600
+ return (React.createElement("div", { className: styles$2.container },
601
+ React.createElement("h3", null, title),
602
+ React.createElement("ul", { className: `${styles$2.item_list} ${items.length > 0 ? styles$2.has_children : styles$2.no_children}` }, items.map((item, index) => React.createElement("li", { key: index, className: styles$2.item },
603
+ React.createElement("div", { className: styles$2.icon },
604
+ React.createElement(SvgIcon, { iconName: item.iconName })),
605
+ React.createElement("div", { className: styles$2.title }, item.title),
606
+ React.createElement("div", { className: styles$2.moreText }, item.moreText),
607
+ React.createElement("div", { className: styles$2.subtitle }, item.subtitle),
608
+ moreActions &&
609
+ moreActions.map((moreAction, index) => React.createElement("div", { className: styles$2.more_action, key: item.title + index }, moreAction(item.data, index))),
610
+ actions.length > 0 && actions.map((action, idx) => React.createElement("div", { key: idx, className: [
611
+ styles$2.action,
612
+ action.type == TableActionType.red && styles$2.red,
613
+ action.type == TableActionType.default && styles$2.default,
614
+ ].join(" "), onClick: (event) => action.onClick(event, item, index) },
615
+ React.createElement(SvgIcon, { iconName: action.iconName }),
616
+ action.title)))))));
617
+ }
618
+
619
+ 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}";
620
+ var styles$1 = {"container":"styles-module_container__ItBx0"};
621
+ styleInject(css_248z$1);
622
+
623
+ function TextWithIcon({ iconName, label, href }) {
624
+ return (React.createElement("div", { className: styles$1.container }, href ?
625
+ React.createElement("a", { href: href },
626
+ React.createElement(SvgIcon, { iconName: iconName }),
627
+ React.createElement("span", null, label))
628
+ :
629
+ React.createElement(React.Fragment, null,
630
+ React.createElement(SvgIcon, { iconName: iconName }),
631
+ React.createElement("span", null, label))));
632
+ }
633
+
634
+ function degreesToRadians(degrees) {
635
+ return degrees * Math.PI / 180;
636
+ }
637
+ function valueBetween(value, min, max) {
638
+ if (value > max) return max;
639
+ if (value < min) return min;
640
+ return value;
641
+ }
642
+ function extractPercentage(value, percentage) {
643
+ return percentage / 100 * value;
644
+ }
645
+ function bisectorAngle(startAngle, lengthAngle) {
646
+ return startAngle + lengthAngle / 2;
647
+ }
648
+ function shiftVectorAlongAngle(angle, distance) {
649
+ var angleRadians = degreesToRadians(angle);
650
+ return {
651
+ dx: distance * Math.cos(angleRadians),
652
+ dy: distance * Math.sin(angleRadians)
653
+ };
654
+ }
655
+ function isNumber(value) {
656
+ return typeof value === 'number';
657
+ }
658
+ function functionProp(prop, payload) {
659
+ return typeof prop === 'function' ? prop(payload) : prop;
660
+ }
661
+ function makePropsWithDefaults(props, defaultProps) {
662
+ var result = Object.assign({}, defaultProps, props);
663
+
664
+ // @NOTE Object.assign doesn't default properties with undefined value (like React defaultProps does)
665
+ for (var key in defaultProps) {
666
+ if (props[key] === undefined) {
667
+ result[key] = defaultProps[key];
668
+ }
669
+ }
670
+ return result;
671
+ }
672
+
673
+ function sumValues(data) {
674
+ var sum = 0;
675
+ for (var i = 0; i < data.length; i++) {
676
+ sum += data[i].value;
677
+ }
678
+ return sum;
679
+ }
680
+
681
+ // Append "percentage", "degrees" and "startAngle" to each data entry
682
+ function extendData(_ref) {
683
+ var data = _ref.data,
684
+ totalAngle = _ref.lengthAngle,
685
+ totalValue = _ref.totalValue,
686
+ paddingAngle = _ref.paddingAngle,
687
+ chartStartAngle = _ref.startAngle;
688
+ var total = totalValue || sumValues(data);
689
+ var normalizedTotalAngle = valueBetween(totalAngle, -360, 360);
690
+ var numberOfPaddings = Math.abs(normalizedTotalAngle) === 360 ? data.length : data.length - 1;
691
+ var singlePaddingDegrees = Math.abs(paddingAngle) * Math.sign(totalAngle);
692
+ var degreesTakenByPadding = singlePaddingDegrees * numberOfPaddings;
693
+ var degreesTakenByPaths = normalizedTotalAngle - degreesTakenByPadding;
694
+ var lastSegmentEnd = 0;
695
+ var extendedData = [];
696
+
697
+ // @NOTE: Shall we evaluate percentage accordingly to dataEntry.value's sign?
698
+ for (var i = 0; i < data.length; i++) {
699
+ var dataEntry = data[i];
700
+ var valueInPercentage = total === 0 ? 0 : dataEntry.value / total * 100;
701
+ var degrees = extractPercentage(degreesTakenByPaths, valueInPercentage);
702
+ var startAngle = lastSegmentEnd + chartStartAngle;
703
+ lastSegmentEnd = lastSegmentEnd + degrees + singlePaddingDegrees;
704
+ extendedData.push(Object.assign({
705
+ percentage: valueInPercentage,
706
+ startAngle: startAngle,
707
+ degrees: degrees
708
+ }, dataEntry));
709
+ }
710
+ return extendedData;
711
+ }
712
+
713
+ function _objectWithoutPropertiesLoose(source, excluded) {
714
+ if (source == null) return {};
715
+ var target = {};
716
+ var sourceKeys = Object.keys(source);
717
+ var key, i;
718
+ for (i = 0; i < sourceKeys.length; i++) {
719
+ key = sourceKeys[i];
720
+ if (excluded.indexOf(key) >= 0) continue;
721
+ target[key] = source[key];
722
+ }
723
+ return target;
724
+ }
725
+
726
+ function ReactMinimalPieChartLabel(_ref) {
727
+ var renderLabel = _ref.renderLabel,
728
+ labelProps = _ref.labelProps;
729
+ var label = renderLabel(labelProps);
730
+
731
+ // Default label
732
+ if (typeof label === 'string' || typeof label === 'number') {
733
+ labelProps.dataEntry;
734
+ labelProps.dataIndex;
735
+ var props = _objectWithoutPropertiesLoose(labelProps, ["dataEntry", "dataIndex"]);
736
+ return /*#__PURE__*/React.createElement("text", Object.assign({
737
+ dominantBaseline: "central"
738
+ }, props), label);
739
+ }
740
+ if (React.isValidElement(label)) {
741
+ return label;
742
+ }
743
+ return null;
744
+ }
745
+
746
+ function round(number) {
747
+ var divisor = 1e14; // 14 decimals
748
+ return Math.round((number + Number.EPSILON) * divisor) / divisor;
749
+ }
750
+ function evaluateTextAnchorPosition(_ref) {
751
+ var labelPosition = _ref.labelPosition,
752
+ lineWidth = _ref.lineWidth,
753
+ labelHorizontalShift = _ref.labelHorizontalShift;
754
+ var dx = round(labelHorizontalShift);
755
+ // Label in the vertical center
756
+ if (dx === 0) {
757
+ return 'middle';
758
+ }
759
+ // Outward label
760
+ if (labelPosition > 100) {
761
+ return dx > 0 ? 'start' : 'end';
762
+ }
763
+ // Inward label
764
+ var innerRadius = 100 - lineWidth;
765
+ if (labelPosition < innerRadius) {
766
+ return dx > 0 ? 'end' : 'start';
767
+ }
768
+ // Overlying label
769
+ return 'middle';
770
+ }
771
+ function makeLabelRenderProps(data, props) {
772
+ return data.map(function (dataEntry, index) {
773
+ var _functionProp;
774
+ var segmentsShift = (_functionProp = functionProp(props.segmentsShift, index)) != null ? _functionProp : 0;
775
+ var distanceFromCenter = extractPercentage(props.radius, props.labelPosition) + segmentsShift;
776
+ var _shiftVectorAlongAngl = shiftVectorAlongAngle(bisectorAngle(dataEntry.startAngle, dataEntry.degrees), distanceFromCenter),
777
+ dx = _shiftVectorAlongAngl.dx,
778
+ dy = _shiftVectorAlongAngl.dy; // This object is passed as argument to the "label" function prop
779
+ var labelRenderProps = {
780
+ x: props.center[0],
781
+ y: props.center[1],
782
+ dx: dx,
783
+ dy: dy,
784
+ textAnchor: evaluateTextAnchorPosition({
785
+ labelPosition: props.labelPosition,
786
+ lineWidth: props.lineWidth,
787
+ labelHorizontalShift: dx
788
+ }),
789
+ dataEntry: dataEntry,
790
+ dataIndex: index,
791
+ style: functionProp(props.labelStyle, index)
792
+ };
793
+ return labelRenderProps;
794
+ });
795
+ }
796
+ function renderLabels(data, props) {
797
+ var label = props.label;
798
+ if (label) {
799
+ return makeLabelRenderProps(data, props).map(function (labelRenderProps, index) {
800
+ return /*#__PURE__*/React.createElement(ReactMinimalPieChartLabel, {
801
+ key: "label-" + (labelRenderProps.dataEntry.key || index),
802
+ renderLabel: label,
803
+ labelProps: labelRenderProps
804
+ });
805
+ });
806
+ }
807
+ }
808
+
809
+ // from http://stackoverflow.com/a/18473154
810
+ var partialCircle = function partialCircle(cx, cy, r, start, end) {
811
+ var length = end - start;
812
+ if (length === 0) return [];
813
+ var fromX = r * Math.cos(start) + cx;
814
+ var fromY = r * Math.sin(start) + cy;
815
+ var toX = r * Math.cos(end) + cx;
816
+ var toY = r * Math.sin(end) + cy;
817
+ var large = Math.abs(length) <= Math.PI ? '0' : '1';
818
+ var sweep = length < 0 ? '0' : '1';
819
+ return [['M', fromX, fromY], ['A', r, r, 0, large, sweep, toX, toY]];
820
+ };
821
+ var svgPartialCircle = partialCircle;
822
+
823
+ var partialCircle$1 = svgPartialCircle;
824
+
825
+ function makePathCommands(cx, cy, startAngle, lengthAngle, radius) {
826
+ var patchedLengthAngle = valueBetween(lengthAngle, -359.999, 359.999);
827
+ return partialCircle$1(cx, cy,
828
+ // center X and Y
829
+ radius, degreesToRadians(startAngle), degreesToRadians(startAngle + patchedLengthAngle)).map(function (command) {
830
+ return command.join(' ');
831
+ }).join(' ');
832
+ }
833
+ function ReactMinimalPieChartPath(_ref) {
834
+ var cx = _ref.cx,
835
+ cy = _ref.cy,
836
+ lengthAngle = _ref.lengthAngle,
837
+ lineWidth = _ref.lineWidth,
838
+ radius = _ref.radius,
839
+ _ref$shift = _ref.shift,
840
+ shift = _ref$shift === void 0 ? 0 : _ref$shift,
841
+ reveal = _ref.reveal,
842
+ rounded = _ref.rounded,
843
+ startAngle = _ref.startAngle,
844
+ title = _ref.title,
845
+ props = _objectWithoutPropertiesLoose(_ref, ["cx", "cy", "lengthAngle", "lineWidth", "radius", "shift", "reveal", "rounded", "startAngle", "title"]);
846
+ var pathRadius = radius - lineWidth / 2;
847
+ //@NOTE This shift might be rendered as a translation in future
848
+ var _shiftVectorAlongAngl = shiftVectorAlongAngle(bisectorAngle(startAngle, lengthAngle), shift),
849
+ dx = _shiftVectorAlongAngl.dx,
850
+ dy = _shiftVectorAlongAngl.dy;
851
+ var pathCommands = makePathCommands(cx + dx, cy + dy, startAngle, lengthAngle, pathRadius);
852
+ var strokeDasharray;
853
+ var strokeDashoffset;
854
+
855
+ // Animate/hide paths with "stroke-dasharray" + "stroke-dashoffset"
856
+ // https://css-tricks.com/svg-line-animation-works/
857
+ if (isNumber(reveal)) {
858
+ var pathLength = degreesToRadians(pathRadius) * lengthAngle;
859
+ strokeDasharray = Math.abs(pathLength);
860
+ strokeDashoffset = strokeDasharray - extractPercentage(strokeDasharray, reveal);
861
+ }
862
+ return /*#__PURE__*/React.createElement("path", Object.assign({
863
+ d: pathCommands,
864
+ fill: "none",
865
+ strokeWidth: lineWidth,
866
+ strokeDasharray: strokeDasharray,
867
+ strokeDashoffset: strokeDashoffset,
868
+ strokeLinecap: rounded ? 'round' : undefined
869
+ }, props), title && /*#__PURE__*/React.createElement("title", null, title));
870
+ }
871
+
872
+ function combineSegmentTransitionsStyle(duration, easing, customStyle) {
873
+ // Merge chart's animation CSS transition with "transition" found to customStyle
874
+ var transition = "stroke-dashoffset " + duration + "ms " + easing;
875
+ if (customStyle && customStyle.transition) {
876
+ transition = transition + "," + customStyle.transition;
877
+ }
878
+ return {
879
+ transition: transition
880
+ };
881
+ }
882
+ function getRevealValue(props) {
883
+ //@NOTE When animation is on, chart has to be fully revealed when reveal is not set
884
+ if (props.animate && !isNumber(props.reveal)) {
885
+ return 100;
886
+ }
887
+ return props.reveal;
888
+ }
889
+ function makeEventHandler(eventHandler, payload) {
890
+ return eventHandler && function (e) {
891
+ eventHandler(e, payload);
892
+ };
893
+ }
894
+ function renderSegments(data, props, revealOverride) {
895
+ // @NOTE this should go in Path component. Here for performance reasons
896
+ var reveal = revealOverride != null ? revealOverride : getRevealValue(props);
897
+ var radius = props.radius,
898
+ _props$center = props.center,
899
+ cx = _props$center[0],
900
+ cy = _props$center[1];
901
+ var lineWidth = extractPercentage(radius, props.lineWidth);
902
+ var paths = data.map(function (dataEntry, index) {
903
+ var segmentsStyle = functionProp(props.segmentsStyle, index);
904
+ return /*#__PURE__*/React.createElement(ReactMinimalPieChartPath, {
905
+ cx: cx,
906
+ cy: cy,
907
+ key: dataEntry.key || index,
908
+ lengthAngle: dataEntry.degrees,
909
+ lineWidth: lineWidth,
910
+ radius: radius,
911
+ rounded: props.rounded,
912
+ reveal: reveal,
913
+ shift: functionProp(props.segmentsShift, index),
914
+ startAngle: dataEntry.startAngle,
915
+ title: dataEntry.title,
916
+ style: Object.assign({}, segmentsStyle, props.animate && combineSegmentTransitionsStyle(props.animationDuration, props.animationEasing, segmentsStyle)),
917
+ stroke: dataEntry.color,
918
+ tabIndex: props.segmentsTabIndex,
919
+ onBlur: makeEventHandler(props.onBlur, index),
920
+ onClick: makeEventHandler(props.onClick, index),
921
+ onFocus: makeEventHandler(props.onFocus, index),
922
+ onKeyDown: makeEventHandler(props.onKeyDown, index),
923
+ onMouseOver: makeEventHandler(props.onMouseOver, index),
924
+ onMouseOut: makeEventHandler(props.onMouseOut, index)
925
+ });
926
+ });
927
+ if (props.background) {
928
+ paths.unshift( /*#__PURE__*/React.createElement(ReactMinimalPieChartPath, {
929
+ cx: cx,
930
+ cy: cy,
931
+ key: "bg",
932
+ lengthAngle: props.lengthAngle,
933
+ lineWidth: lineWidth,
934
+ radius: radius,
935
+ rounded: props.rounded,
936
+ startAngle: props.startAngle,
937
+ stroke: props.background
938
+ }));
939
+ }
940
+ return paths;
941
+ }
942
+
943
+ var defaultProps = {
944
+ animationDuration: 500,
945
+ animationEasing: 'ease-out',
946
+ center: [50, 50],
947
+ data: [],
948
+ labelPosition: 50,
949
+ lengthAngle: 360,
950
+ lineWidth: 100,
951
+ paddingAngle: 0,
952
+ radius: 50,
953
+ startAngle: 0,
954
+ viewBoxSize: [100, 100]
955
+ };
956
+ function ReactMinimalPieChart(originalProps) {
957
+ var props = makePropsWithDefaults(originalProps,
958
+ // @ts-expect-error: defaultProps.data is typed as BaseDataEntry
959
+ defaultProps);
960
+ var _useState = useState(props.animate ? 0 : null),
961
+ revealOverride = _useState[0],
962
+ setRevealOverride = _useState[1];
963
+ useEffect(function () {
964
+ if (props.animate) {
965
+ // Trigger initial animation
966
+ setRevealOverride(null);
967
+ }
968
+ }, []);
969
+ var extendedData = extendData(props);
970
+ return /*#__PURE__*/React.createElement("svg", {
971
+ viewBox: "0 0 " + props.viewBoxSize[0] + " " + props.viewBoxSize[1],
972
+ width: "100%",
973
+ height: "100%",
974
+ className: props.className,
975
+ style: props.style
976
+ }, renderSegments(extendedData, props, revealOverride), renderLabels(extendedData, props), props.children);
977
+ }
978
+
979
+ 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}";
980
+ 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"};
981
+ styleInject(css_248z);
982
+
983
+ function UsageCard({ title, subtitle, ratio = 0, loading }) {
984
+ if (loading)
985
+ return React.createElement("div", { className: [styles.container, styles.loading].join(" ") });
986
+ return (React.createElement("div", { className: styles.container },
987
+ React.createElement("div", { className: styles.text },
988
+ React.createElement("h3", null, title),
989
+ React.createElement("p", null, subtitle)),
990
+ React.createElement("div", { className: styles.graph },
991
+ React.createElement(ReactMinimalPieChart, { data: [
992
+ { title: 'One', value: 1 - ratio, color: '#DFDFDF' },
993
+ { title: 'Two', value: ratio + 0.05, color: '#0085FF' },
994
+ ], lineWidth: 15, totalValue: 1 }))));
995
+ }
996
+
997
+ export { Accordeon, AuthButton, CardButton, Checkbox, ChooseRole, ChooseRoleItem, CopyCode, Dialog, FormButton, FormText, ForwardButton, Gap, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, OptionField, OptionFieldHorizontal, PrimaryButton, ProgressBar, RadioButtons, RadioOption, RedirectButton, SearchChip, SearchChips, Searchbar, Slider, SliderCard, StepBack, SvgIcon, Table, TableActionType, TableItem, TableItemAction, TextWithIcon, UsageCard };