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