math-main-components 0.0.10 → 0.0.11

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