@epfl-sti/poesis 0.1.7 → 0.1.9

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 (91) hide show
  1. package/dist/poesis.js +1840 -2049
  2. package/dist/poesis.js.map +1 -1
  3. package/package.json +23 -23
  4. package/dist/components/data-display/Card.d.ts +0 -20
  5. package/dist/components/data-display/Card.d.ts.map +0 -1
  6. package/dist/components/data-display/DescriptionList.d.ts +0 -23
  7. package/dist/components/data-display/DescriptionList.d.ts.map +0 -1
  8. package/dist/components/data-display/EmptyState.d.ts +0 -18
  9. package/dist/components/data-display/EmptyState.d.ts.map +0 -1
  10. package/dist/components/data-display/Table.d.ts +0 -53
  11. package/dist/components/data-display/Table.d.ts.map +0 -1
  12. package/dist/components/data-display/index.d.ts +0 -5
  13. package/dist/components/data-display/index.d.ts.map +0 -1
  14. package/dist/components/feedback/Alert.d.ts +0 -18
  15. package/dist/components/feedback/Alert.d.ts.map +0 -1
  16. package/dist/components/feedback/ConfirmDialog.d.ts +0 -26
  17. package/dist/components/feedback/ConfirmDialog.d.ts.map +0 -1
  18. package/dist/components/feedback/Dialog.d.ts +0 -20
  19. package/dist/components/feedback/Dialog.d.ts.map +0 -1
  20. package/dist/components/feedback/Toast.d.ts +0 -5
  21. package/dist/components/feedback/Toast.d.ts.map +0 -1
  22. package/dist/components/feedback/index.d.ts +0 -6
  23. package/dist/components/feedback/index.d.ts.map +0 -1
  24. package/dist/components/feedback/toastContext.d.ts +0 -17
  25. package/dist/components/feedback/toastContext.d.ts.map +0 -1
  26. package/dist/components/layout/BurgerDrawer.d.ts +0 -25
  27. package/dist/components/layout/BurgerDrawer.d.ts.map +0 -1
  28. package/dist/components/layout/PageShell.d.ts +0 -32
  29. package/dist/components/layout/PageShell.d.ts.map +0 -1
  30. package/dist/components/layout/SideNav.d.ts +0 -22
  31. package/dist/components/layout/SideNav.d.ts.map +0 -1
  32. package/dist/components/layout/TopNav.d.ts +0 -24
  33. package/dist/components/layout/TopNav.d.ts.map +0 -1
  34. package/dist/components/layout/index.d.ts +0 -10
  35. package/dist/components/layout/index.d.ts.map +0 -1
  36. package/dist/components/layout/types.d.ts +0 -31
  37. package/dist/components/layout/types.d.ts.map +0 -1
  38. package/dist/components/ui/Avatar.d.ts +0 -25
  39. package/dist/components/ui/Avatar.d.ts.map +0 -1
  40. package/dist/components/ui/Badge.d.ts +0 -34
  41. package/dist/components/ui/Badge.d.ts.map +0 -1
  42. package/dist/components/ui/Button.d.ts +0 -35
  43. package/dist/components/ui/Button.d.ts.map +0 -1
  44. package/dist/components/ui/Checkbox.d.ts +0 -16
  45. package/dist/components/ui/Checkbox.d.ts.map +0 -1
  46. package/dist/components/ui/DropdownMenu.d.ts +0 -30
  47. package/dist/components/ui/DropdownMenu.d.ts.map +0 -1
  48. package/dist/components/ui/FileUpload.d.ts +0 -27
  49. package/dist/components/ui/FileUpload.d.ts.map +0 -1
  50. package/dist/components/ui/IconButton.d.ts +0 -34
  51. package/dist/components/ui/IconButton.d.ts.map +0 -1
  52. package/dist/components/ui/Input.d.ts +0 -21
  53. package/dist/components/ui/Input.d.ts.map +0 -1
  54. package/dist/components/ui/LanguageSwitcher.d.ts +0 -11
  55. package/dist/components/ui/LanguageSwitcher.d.ts.map +0 -1
  56. package/dist/components/ui/Popover.d.ts +0 -18
  57. package/dist/components/ui/Popover.d.ts.map +0 -1
  58. package/dist/components/ui/ProgressBar.d.ts +0 -30
  59. package/dist/components/ui/ProgressBar.d.ts.map +0 -1
  60. package/dist/components/ui/RadioGroup.d.ts +0 -45
  61. package/dist/components/ui/RadioGroup.d.ts.map +0 -1
  62. package/dist/components/ui/Select.d.ts +0 -15
  63. package/dist/components/ui/Select.d.ts.map +0 -1
  64. package/dist/components/ui/Spinner.d.ts +0 -19
  65. package/dist/components/ui/Spinner.d.ts.map +0 -1
  66. package/dist/components/ui/Switch.d.ts +0 -12
  67. package/dist/components/ui/Switch.d.ts.map +0 -1
  68. package/dist/components/ui/Tabs.d.ts +0 -36
  69. package/dist/components/ui/Tabs.d.ts.map +0 -1
  70. package/dist/components/ui/Textarea.d.ts +0 -18
  71. package/dist/components/ui/Textarea.d.ts.map +0 -1
  72. package/dist/components/ui/ThemeToggle.d.ts +0 -16
  73. package/dist/components/ui/ThemeToggle.d.ts.map +0 -1
  74. package/dist/components/ui/Tooltip.d.ts +0 -16
  75. package/dist/components/ui/Tooltip.d.ts.map +0 -1
  76. package/dist/components/ui/index.d.ts +0 -20
  77. package/dist/components/ui/index.d.ts.map +0 -1
  78. package/dist/hooks/useAuth.d.ts +0 -33
  79. package/dist/hooks/useAuth.d.ts.map +0 -1
  80. package/dist/hooks/useLanguage.d.ts +0 -14
  81. package/dist/hooks/useLanguage.d.ts.map +0 -1
  82. package/dist/hooks/useTheme.d.ts +0 -21
  83. package/dist/hooks/useTheme.d.ts.map +0 -1
  84. package/dist/i18n/index.d.ts +0 -3
  85. package/dist/i18n/index.d.ts.map +0 -1
  86. package/dist/lib.d.ts +0 -11
  87. package/dist/lib.d.ts.map +0 -1
  88. package/dist/routes/types.d.ts +0 -39
  89. package/dist/routes/types.d.ts.map +0 -1
  90. package/dist/theme/reactSelectStyles.d.ts +0 -12
  91. package/dist/theme/reactSelectStyles.d.ts.map +0 -1
package/dist/poesis.js CHANGED
@@ -1,2105 +1,1896 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px #0000000f;--shadow-md:0 2px 8px #00000014;--shadow-lg:0 4px 16px #0000001a;--shadow-xl:0 8px 32px #0000001f;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-epfl-red:red;--color-epfl-red-dark:#b51f1f;--color-epfl-leman:#00a79f;--color-epfl-canard:#007480;--color-epfl-canard-dark:#004248;--color-primary:var(--action-primary);--color-primary-hover:var(--action-primary-hover);--color-bg-primary:var(--bg-primary);--color-bg-secondary:var(--bg-secondary);--color-bg-tertiary:var(--bg-tertiary);--color-border:var(--border-default);--color-border-strong:var(--border-strong);--color-text-primary:var(--text-primary);--color-text-secondary:var(--text-secondary);--color-text-muted:var(--text-muted);--color-success:var(--semantic-success);--color-success-bg:var(--semantic-success-bg);--color-warning:var(--semantic-warning);--color-warning-bg:var(--semantic-warning-bg);--color-error:var(--semantic-error);--color-error-bg:var(--semantic-error-bg);--color-info:var(--semantic-info);--color-info-bg:var(--semantic-info-bg);--radius-full:9999px;--spacing-xs:4px;--spacing-sm:8px;--spacing-md:16px;--spacing-lg:24px;--spacing-xl:32px;--spacing-2xl:48px;--text-h1:2rem;--text-h1--line-height:1.2;--text-h2:1.5rem;--text-h2--line-height:1.3;--text-h3:1.25rem;--text-h3--line-height:1.4;--text-body:.9375rem;--text-body--line-height:1.5;--text-small:.8125rem;--text-small--line-height:1.5;--text-caption:.75rem;--text-caption--line-height:1.4}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.right-0{right:calc(var(--spacing) * 0)}.right-lg{right:var(--spacing-lg)}.bottom-lg{bottom:var(--spacing-lg)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-lg{margin-top:var(--spacing-lg)}.mt-md{margin-top:var(--spacing-md)}.mt-xs{margin-top:var(--spacing-xs)}.mr-lg{margin-right:var(--spacing-lg)}.mr-sm{margin-right:var(--spacing-sm)}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-lg{margin-bottom:var(--spacing-lg)}.mb-md{margin-bottom:var(--spacing-md)}.mb-sm{margin-bottom:var(--spacing-sm)}.mb-xs{margin-bottom:var(--spacing-xs)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-full{width:100%;height:100%}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-20{height:calc(var(--spacing) * 20)}.h-64{height:calc(var(--spacing) * 64)}.h-96{height:calc(var(--spacing) * 96)}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-16{width:calc(var(--spacing) * 16)}.w-40{width:calc(var(--spacing) * 40)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-96{width:calc(var(--spacing) * 96)}.w-\\[4px\\]{width:4px}.w-\\[8px\\]{width:8px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[32px\\]{width:32px}.w-\\[48px\\]{width:48px}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\\[24rem\\]{max-width:24rem}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[42rem\\]{max-width:42rem}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[var\\(--container-6xl\\)\\]{max-width:var(--container-6xl)}.max-w-\\[var\\(--container-md\\)\\]{max-width:var(--container-md)}.max-w-\\[var\\(--container-xl\\)\\]{max-width:var(--container-xl)}.max-w-\\[var\\(--container-xs\\)\\]{max-width:var(--container-xs)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--spacing-md)}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--spacing-sm)}.max-w-xl{max-width:var(--spacing-xl)}.max-w-xs{max-width:var(--spacing-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\\[10rem\\]{min-width:10rem}.min-w-\\[500px\\]{min-width:500px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-dialog-in{animation:.2s ease-out dialog-in}.animate-floating-in{animation:.15s ease-out floating-in}.animate-slide-in{animation:.25s ease-out slide-in}.animate-spin{animation:var(--animate-spin)}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2xl{gap:var(--spacing-2xl)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-lg{gap:var(--spacing-lg)}.gap-md{gap:var(--spacing-md)}.gap-px{gap:1px}.gap-sm{gap:var(--spacing-sm)}.gap-xl{gap:var(--spacing-xl)}.gap-xs{gap:var(--spacing-xs)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\\!rounded-lg{border-radius:var(--radius-lg)!important}.\\!rounded-md{border-radius:var(--radius-md)!important}.\\!rounded-sm{border-radius:var(--radius-sm)!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.\\!border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.\\!border-border{border-color:var(--color-border)!important}.\\!border-epfl-canard{border-color:var(--color-epfl-canard)!important}.\\!border-error{border-color:var(--color-error)!important}.\\!border-primary{border-color:var(--color-primary)!important}.border-border{border-color:var(--color-border)}.border-border-strong{border-color:var(--color-border-strong)}.border-error,.border-error\\/30{border-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.border-error\\/30{border-color:color-mix(in oklab,var(--color-error) 30%,transparent)}}.border-info\\/30{border-color:var(--color-info)}@supports (color:color-mix(in lab,red,red)){.border-info\\/30{border-color:color-mix(in oklab,var(--color-info) 30%,transparent)}}.border-primary{border-color:var(--color-primary)}.border-success\\/30{border-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.border-success\\/30{border-color:color-mix(in oklab,var(--color-success) 30%,transparent)}}.border-transparent{border-color:#0000}.border-warning\\/30{border-color:var(--color-warning)}@supports (color:color-mix(in lab,red,red)){.border-warning\\/30{border-color:color-mix(in oklab,var(--color-warning) 30%,transparent)}}.\\!bg-bg-tertiary{background-color:var(--color-bg-tertiary)!important}.\\!bg-epfl-canard{background-color:var(--color-epfl-canard)!important}.\\!bg-primary{background-color:var(--color-primary)!important}.bg-bg-primary{background-color:var(--color-bg-primary)}.bg-bg-secondary{background-color:var(--color-bg-secondary)}.bg-bg-tertiary,.bg-bg-tertiary\\/50{background-color:var(--color-bg-tertiary)}@supports (color:color-mix(in lab,red,red)){.bg-bg-tertiary\\/50{background-color:color-mix(in oklab,var(--color-bg-tertiary) 50%,transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-border{background-color:var(--color-border)}.bg-border-strong{background-color:var(--color-border-strong)}.bg-epfl-canard{background-color:var(--color-epfl-canard)}.bg-epfl-canard-dark{background-color:var(--color-epfl-canard-dark)}.bg-epfl-leman{background-color:var(--color-epfl-leman)}.bg-epfl-red{background-color:var(--color-epfl-red)}.bg-epfl-red-dark{background-color:var(--color-epfl-red-dark)}.bg-error{background-color:var(--color-error)}.bg-error-bg{background-color:var(--color-error-bg)}.bg-info{background-color:var(--color-info)}.bg-info-bg{background-color:var(--color-info-bg)}.bg-primary,.bg-primary\\/5{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/5{background-color:color-mix(in oklab,var(--color-primary) 5%,transparent)}}.bg-primary\\/8{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/8{background-color:color-mix(in oklab,var(--color-primary) 8%,transparent)}}.bg-primary\\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/10{background-color:color-mix(in oklab,var(--color-primary) 10%,transparent)}}.bg-success{background-color:var(--color-success)}.bg-success-bg{background-color:var(--color-success-bg)}.bg-text-muted{background-color:var(--color-text-muted)}.bg-text-primary{background-color:var(--color-text-primary)}.bg-warning{background-color:var(--color-warning)}.bg-warning-bg{background-color:var(--color-warning-bg)}.object-cover{object-fit:cover}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2xl{padding:var(--spacing-2xl)}.p-16{padding:calc(var(--spacing) * 16)}.p-lg{padding:var(--spacing-lg)}.p-md{padding:var(--spacing-md)}.p-sm{padding:var(--spacing-sm)}.p-xl{padding:var(--spacing-xl)}.p-xs{padding:var(--spacing-xs)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-lg{padding-inline:var(--spacing-lg)}.px-md{padding-inline:var(--spacing-md)}.px-sm{padding-inline:var(--spacing-sm)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-2xl{padding-block:var(--spacing-2xl)}.py-lg{padding-block:var(--spacing-lg)}.py-md{padding-block:var(--spacing-md)}.py-sm{padding-block:var(--spacing-sm)}.py-xl{padding-block:var(--spacing-xl)}.py-xs{padding-block:var(--spacing-xs)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-xl{padding-top:var(--spacing-xl)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-11{padding-right:calc(var(--spacing) * 11)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-10{padding-left:calc(var(--spacing) * 10)}.pl-11{padding-left:calc(var(--spacing) * 11)}.pl-14{padding-left:calc(var(--spacing) * 14)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-body{font-size:var(--text-body);line-height:var(--tw-leading,var(--text-body--line-height))}.text-caption{font-size:var(--text-caption);line-height:var(--tw-leading,var(--text-caption--line-height))}.text-h1{font-size:var(--text-h1);line-height:var(--tw-leading,var(--text-h1--line-height))}.text-h2{font-size:var(--text-h2);line-height:var(--tw-leading,var(--text-h2--line-height))}.text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}.text-small{font-size:var(--text-small);line-height:var(--tw-leading,var(--text-small--line-height))}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.3\\]{--tw-leading:1.3;line-height:1.3}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.\\!text-white{color:var(--color-white)!important}.text-bg-primary{color:var(--color-bg-primary)}.text-epfl-canard{color:var(--color-epfl-canard)}.text-epfl-leman{color:var(--color-epfl-leman)}.text-epfl-red{color:var(--color-epfl-red)}.text-error{color:var(--color-error)}.text-info{color:var(--color-info)}.text-primary{color:var(--color-primary)}.text-success{color:var(--color-success)}.text-text-muted{color:var(--color-text-muted)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.\\!shadow-lg{--tw-shadow:0 4px 16px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.\\!shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-lg{--tw-shadow:0 4px 16px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 2px 8px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 8px 32px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.\\!ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.\\!ring-epfl-canard{--tw-ring-color:var(--color-epfl-canard)!important}.\\!ring-primary{--tw-ring-color:var(--color-primary)!important}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.peer-checked\\:bg-primary:is(:where(.peer):checked~*){background-color:var(--color-primary)}.peer-focus-visible\\:ring-2:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus-visible\\:ring-primary:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-primary)}.peer-focus-visible\\:ring-offset-2:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.peer-focus-visible\\:ring-offset-bg-primary:is(:where(.peer):focus-visible~*){--tw-ring-offset-color:var(--color-bg-primary)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.placeholder\\:text-text-muted::placeholder{color:var(--color-text-muted)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing) * .5)}.after\\:left-0\\.5:after{content:var(--tw-content);left:calc(var(--spacing) * .5)}.after\\:size-5:after{content:var(--tw-content);width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:var(--radius-full)}.after\\:bg-white:after{content:var(--tw-content);background-color:var(--color-white)}.after\\:shadow-sm:after{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:translate-x-5:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.checked\\:border-\\[5px\\]:checked{border-style:var(--tw-border-style);border-width:5px}.checked\\:border-primary:checked{border-color:var(--color-primary)}.checked\\:bg-primary:checked{background-color:var(--color-primary)}.checked\\:bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\,\\%3Csvg\\%20viewBox\\%3D\\%220\\%200\\%2016\\%2016\\%22\\%20fill\\%3D\\%22white\\%22\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M12\\.207\\%204\\.793a1\\%201\\%200\\%20010\\%201\\.414l-5\\%205a1\\%201\\%200\\%2001-1\\.414\\%200l-2-2a1\\%201\\%200\\%20011\\.414-1\\.414L6\\.5\\%209\\.086l4\\.293-4\\.293a1\\%201\\%200\\%20011\\.414\\%200z\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]:checked{background-image:url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z%22%2F%3E%3C%2Fsvg%3E)}.checked\\:bg-center:checked{background-position:50%}.checked\\:bg-no-repeat:checked{background-repeat:no-repeat}.indeterminate\\:border-primary:indeterminate{border-color:var(--color-primary)}.indeterminate\\:bg-primary:indeterminate{background-color:var(--color-primary)}.indeterminate\\:bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\,\\%3Csvg\\%20viewBox\\%3D\\%220\\%200\\%2016\\%2016\\%22\\%20fill\\%3D\\%22white\\%22\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%3E\\%3Crect\\%20x\\%3D\\%223\\%22\\%20y\\%3D\\%227\\%22\\%20width\\%3D\\%2210\\%22\\%20height\\%3D\\%222\\%22\\%20rx\\%3D\\%221\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]:indeterminate{background-image:url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2210%22%20height%3D%222%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E)}.indeterminate\\:bg-center:indeterminate{background-position:50%}.indeterminate\\:bg-no-repeat:indeterminate{background-repeat:no-repeat}@media(hover:hover){.hover\\:border-border-strong:hover{border-color:var(--color-border-strong)}.hover\\:border-error:hover{border-color:var(--color-error)}.hover\\:border-primary:hover{border-color:var(--color-primary)}.hover\\:bg-bg-tertiary:hover,.hover\\:bg-bg-tertiary\\/70:hover{background-color:var(--color-bg-tertiary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-bg-tertiary\\/70:hover{background-color:color-mix(in oklab,var(--color-bg-tertiary) 70%,transparent)}}.hover\\:bg-error-bg:hover{background-color:var(--color-error-bg)}.hover\\:bg-error\\/80:hover{background-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-error\\/80:hover{background-color:color-mix(in oklab,var(--color-error) 80%,transparent)}}.hover\\:bg-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\\:text-text-primary:hover{color:var(--color-text-primary)}.hover\\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\\:opacity-90:hover{opacity:.9}}.focus\\:border-error:focus{border-color:var(--color-error)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:bg-bg-tertiary:focus{background-color:var(--color-bg-tertiary)}.focus\\:bg-error-bg:focus{background-color:var(--color-error-bg)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-error:focus{--tw-ring-color:var(--color-error)}.focus\\:ring-primary:focus{--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-error:focus-visible{--tw-ring-color:var(--color-error)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-bg-primary:focus-visible{--tw-ring-offset-color:var(--color-bg-primary)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-bg-secondary:disabled{background-color:var(--color-bg-secondary)}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:col-span-2{grid-column:span 2/span 2}.sm\\:w-1\\/3{width:33.3333%}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:gap-lg{gap:var(--spacing-lg)}}@media(min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-lg{padding-inline:var(--spacing-lg)}}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>svg\\]\\:size-5>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}}:root{--bg-primary:#fff;--bg-secondary:#f5f5f5;--bg-tertiary:#e6e6e6;--border-default:#d5d5d5;--border-strong:#c1c1c1;--text-primary:#212121;--text-secondary:#707070;--text-muted:#8e8e8e;--semantic-success:#1b874b;--semantic-success-bg:#e8f5e9;--semantic-warning:#d4860a;--semantic-warning-bg:#fff3e0;--semantic-error:#d32f2f;--semantic-error-bg:#ffebee;--semantic-info:#1976d2;--semantic-info-bg:#e3f2fd;--action-primary:#007480;--action-primary-hover:#004248}.dark{--bg-primary:#1a1a1a;--bg-secondary:#242424;--bg-tertiary:#2e2e2e;--border-default:#3a3a3a;--border-strong:#505050;--text-primary:#f0f0f0;--text-secondary:#a0a0a0;--text-muted:#707070;--semantic-success:#34d37a;--semantic-success-bg:#1a2e1a;--semantic-warning:#ffad33;--semantic-warning-bg:#2e2410;--semantic-error:#ff6b6b;--semantic-error-bg:#2e1515;--semantic-info:#64b5f6;--semantic-info-bg:#152538;--action-primary:#009ba6;--action-primary-hover:#007480;--shadow-sm:0 1px 2px #0000004d;--shadow-md:0 2px 8px #0006;--shadow-lg:0 4px 16px #00000080;--shadow-xl:0 8px 32px #0009}@keyframes slide-in{0%{opacity:0;transform:translate(1rem)}to{opacity:1;transform:translate(0)}}@keyframes dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes floating-in{0%{opacity:0}to{opacity:1}}body{font-family:var(--font-sans);font-size:var(--text-body);line-height:var(--text-body--line-height);color:var(--color-text-primary);background-color:var(--color-bg-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}`)),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { jsx as e, jsxs as m, Fragment as V } from "react/jsx-runtime";
3
- import { useState as C, forwardRef as $, useRef as D, useCallback as k, useId as j, useEffect as I, createContext as R, useContext as M, useSyncExternalStore as ge, useMemo as K } from "react";
4
- import { useTranslation as ie } from "react-i18next";
5
- import { CloudArrowUp as he, X as U, SunFill as ye, MoonFill as ve, List as Ne, ChevronDown as se, XLg as we, SortDown as ke, SortNumericDown as Ce, SortNumericDownAlt as ze, SortAlphaDown as $e, SortAlphaDownAlt as De, InfoCircleFill as ae, XCircleFill as le, ExclamationTriangleFill as q, CheckCircleFill as ce } from "react-bootstrap-icons";
6
- import { createPortal as Ie } from "react-dom";
7
- import { useFloating as G, autoUpdate as X, offset as Y, flip as _, shift as W, useClick as de, useDismiss as J, useRole as Q, useListNavigation as je, useInteractions as Z, FloatingPortal as ee, FloatingFocusManager as me, arrow as Fe, useHover as Ee, useFocus as Se } from "@floating-ui/react";
8
- import Be from "react-select";
9
- const Ae = {
10
- sm: "size-8 text-caption",
11
- md: "size-10 text-small",
12
- lg: "size-14 text-body"
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px #0000000f;--shadow-md:0 2px 8px #00000014;--shadow-lg:0 4px 16px #0000001a;--shadow-xl:0 8px 32px #0000001f;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-epfl-red:red;--color-epfl-red-dark:#b51f1f;--color-epfl-leman:#00a79f;--color-epfl-canard:#007480;--color-epfl-canard-dark:#004248;--color-primary:var(--action-primary);--color-primary-hover:var(--action-primary-hover);--color-bg-primary:var(--bg-primary);--color-bg-secondary:var(--bg-secondary);--color-bg-tertiary:var(--bg-tertiary);--color-border:var(--border-default);--color-border-strong:var(--border-strong);--color-text-primary:var(--text-primary);--color-text-secondary:var(--text-secondary);--color-text-muted:var(--text-muted);--color-success:var(--semantic-success);--color-success-bg:var(--semantic-success-bg);--color-warning:var(--semantic-warning);--color-warning-bg:var(--semantic-warning-bg);--color-error:var(--semantic-error);--color-error-bg:var(--semantic-error-bg);--color-info:var(--semantic-info);--color-info-bg:var(--semantic-info-bg);--radius-full:9999px;--spacing-xs:4px;--spacing-sm:8px;--spacing-md:16px;--spacing-lg:24px;--spacing-xl:32px;--spacing-2xl:48px;--text-h1:2rem;--text-h1--line-height:1.2;--text-h2:1.5rem;--text-h2--line-height:1.3;--text-h3:1.25rem;--text-h3--line-height:1.4;--text-body:.9375rem;--text-body--line-height:1.5;--text-small:.8125rem;--text-small--line-height:1.5;--text-caption:.75rem;--text-caption--line-height:1.4}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.right-0{right:calc(var(--spacing) * 0)}.right-lg{right:var(--spacing-lg)}.bottom-lg{bottom:var(--spacing-lg)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-lg{margin-top:var(--spacing-lg)}.mt-md{margin-top:var(--spacing-md)}.mt-xs{margin-top:var(--spacing-xs)}.mr-lg{margin-right:var(--spacing-lg)}.mr-sm{margin-right:var(--spacing-sm)}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-lg{margin-bottom:var(--spacing-lg)}.mb-md{margin-bottom:var(--spacing-md)}.mb-sm{margin-bottom:var(--spacing-sm)}.mb-xs{margin-bottom:var(--spacing-xs)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-full{width:100%;height:100%}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-20{height:calc(var(--spacing) * 20)}.h-64{height:calc(var(--spacing) * 64)}.h-96{height:calc(var(--spacing) * 96)}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-16{width:calc(var(--spacing) * 16)}.w-40{width:calc(var(--spacing) * 40)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-96{width:calc(var(--spacing) * 96)}.w-\\[4px\\]{width:4px}.w-\\[8px\\]{width:8px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[32px\\]{width:32px}.w-\\[48px\\]{width:48px}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\\[24rem\\]{max-width:24rem}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[42rem\\]{max-width:42rem}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[var\\(--container-6xl\\)\\]{max-width:var(--container-6xl)}.max-w-\\[var\\(--container-md\\)\\]{max-width:var(--container-md)}.max-w-\\[var\\(--container-xl\\)\\]{max-width:var(--container-xl)}.max-w-\\[var\\(--container-xs\\)\\]{max-width:var(--container-xs)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--spacing-md)}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--spacing-sm)}.max-w-xl{max-width:var(--spacing-xl)}.max-w-xs{max-width:var(--spacing-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-7{min-width:calc(var(--spacing) * 7)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-11{min-width:calc(var(--spacing) * 11)}.min-w-\\[10rem\\]{min-width:10rem}.min-w-\\[500px\\]{min-width:500px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-dialog-in{animation:.2s ease-out dialog-in}.animate-floating-in{animation:.15s ease-out floating-in}.animate-slide-in{animation:.25s ease-out slide-in}.animate-spin{animation:var(--animate-spin)}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2xl{gap:var(--spacing-2xl)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-lg{gap:var(--spacing-lg)}.gap-md{gap:var(--spacing-md)}.gap-px{gap:1px}.gap-sm{gap:var(--spacing-sm)}.gap-xl{gap:var(--spacing-xl)}.gap-xs{gap:var(--spacing-xs)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\\!rounded-lg{border-radius:var(--radius-lg)!important}.\\!rounded-md{border-radius:var(--radius-md)!important}.\\!rounded-sm{border-radius:var(--radius-sm)!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.\\!border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.\\!border-border{border-color:var(--color-border)!important}.\\!border-epfl-canard{border-color:var(--color-epfl-canard)!important}.\\!border-error{border-color:var(--color-error)!important}.\\!border-primary{border-color:var(--color-primary)!important}.border-border{border-color:var(--color-border)}.border-border-strong{border-color:var(--color-border-strong)}.border-error,.border-error\\/30{border-color:var(--color-error)}@supports (color:color-mix(in lab, red, red)){.border-error\\/30{border-color:color-mix(in oklab, var(--color-error) 30%, transparent)}}.border-info\\/30{border-color:var(--color-info)}@supports (color:color-mix(in lab, red, red)){.border-info\\/30{border-color:color-mix(in oklab, var(--color-info) 30%, transparent)}}.border-primary{border-color:var(--color-primary)}.border-success\\/30{border-color:var(--color-success)}@supports (color:color-mix(in lab, red, red)){.border-success\\/30{border-color:color-mix(in oklab, var(--color-success) 30%, transparent)}}.border-transparent{border-color:#0000}.border-warning\\/30{border-color:var(--color-warning)}@supports (color:color-mix(in lab, red, red)){.border-warning\\/30{border-color:color-mix(in oklab, var(--color-warning) 30%, transparent)}}.\\!bg-bg-tertiary{background-color:var(--color-bg-tertiary)!important}.\\!bg-epfl-canard{background-color:var(--color-epfl-canard)!important}.\\!bg-primary{background-color:var(--color-primary)!important}.bg-bg-primary{background-color:var(--color-bg-primary)}.bg-bg-secondary{background-color:var(--color-bg-secondary)}.bg-bg-tertiary,.bg-bg-tertiary\\/50{background-color:var(--color-bg-tertiary)}@supports (color:color-mix(in lab, red, red)){.bg-bg-tertiary\\/50{background-color:color-mix(in oklab, var(--color-bg-tertiary) 50%, transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-border-strong{background-color:var(--color-border-strong)}.bg-epfl-canard{background-color:var(--color-epfl-canard)}.bg-epfl-canard-dark{background-color:var(--color-epfl-canard-dark)}.bg-epfl-leman{background-color:var(--color-epfl-leman)}.bg-epfl-red{background-color:var(--color-epfl-red)}.bg-epfl-red-dark{background-color:var(--color-epfl-red-dark)}.bg-error{background-color:var(--color-error)}.bg-error-bg{background-color:var(--color-error-bg)}.bg-info{background-color:var(--color-info)}.bg-info-bg{background-color:var(--color-info-bg)}.bg-primary,.bg-primary\\/5{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/5{background-color:color-mix(in oklab, var(--color-primary) 5%, transparent)}}.bg-primary\\/8{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/8{background-color:color-mix(in oklab, var(--color-primary) 8%, transparent)}}.bg-primary\\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/10{background-color:color-mix(in oklab, var(--color-primary) 10%, transparent)}}.bg-success{background-color:var(--color-success)}.bg-success-bg{background-color:var(--color-success-bg)}.bg-text-muted{background-color:var(--color-text-muted)}.bg-text-primary{background-color:var(--color-text-primary)}.bg-warning{background-color:var(--color-warning)}.bg-warning-bg{background-color:var(--color-warning-bg)}.object-cover{object-fit:cover}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2xl{padding:var(--spacing-2xl)}.p-16{padding:calc(var(--spacing) * 16)}.p-lg{padding:var(--spacing-lg)}.p-md{padding:var(--spacing-md)}.p-sm{padding:var(--spacing-sm)}.p-xl{padding:var(--spacing-xl)}.p-xs{padding:var(--spacing-xs)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-lg{padding-inline:var(--spacing-lg)}.px-md{padding-inline:var(--spacing-md)}.px-sm{padding-inline:var(--spacing-sm)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-2xl{padding-block:var(--spacing-2xl)}.py-lg{padding-block:var(--spacing-lg)}.py-md{padding-block:var(--spacing-md)}.py-sm{padding-block:var(--spacing-sm)}.py-xl{padding-block:var(--spacing-xl)}.py-xs{padding-block:var(--spacing-xs)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-xl{padding-top:var(--spacing-xl)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-11{padding-right:calc(var(--spacing) * 11)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-10{padding-left:calc(var(--spacing) * 10)}.pl-11{padding-left:calc(var(--spacing) * 11)}.pl-14{padding-left:calc(var(--spacing) * 14)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-body{font-size:var(--text-body);line-height:var(--tw-leading,var(--text-body--line-height))}.text-caption{font-size:var(--text-caption);line-height:var(--tw-leading,var(--text-caption--line-height))}.text-h1{font-size:var(--text-h1);line-height:var(--tw-leading,var(--text-h1--line-height))}.text-h2{font-size:var(--text-h2);line-height:var(--tw-leading,var(--text-h2--line-height))}.text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}.text-small{font-size:var(--text-small);line-height:var(--tw-leading,var(--text-small--line-height))}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.3\\]{--tw-leading:1.3;line-height:1.3}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.\\!text-white{color:var(--color-white)!important}.text-bg-primary{color:var(--color-bg-primary)}.text-epfl-canard{color:var(--color-epfl-canard)}.text-epfl-leman{color:var(--color-epfl-leman)}.text-epfl-red{color:var(--color-epfl-red)}.text-error{color:var(--color-error)}.text-info{color:var(--color-info)}.text-primary{color:var(--color-primary)}.text-success{color:var(--color-success)}.text-text-muted{color:var(--color-text-muted)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.\\!shadow-lg{--tw-shadow:0 4px 16px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)!important}.\\!shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f)!important;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)!important}.shadow-lg{--tw-shadow:0 4px 16px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 2px 8px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 8px 32px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\!ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)!important;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)!important}.\\!ring-epfl-canard{--tw-ring-color:var(--color-epfl-canard)!important}.\\!ring-primary{--tw-ring-color:var(--color-primary)!important}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.peer-checked\\:bg-primary:is(:where(.peer):checked~*){background-color:var(--color-primary)}.peer-focus-visible\\:ring-2:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.peer-focus-visible\\:ring-primary:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-primary)}.peer-focus-visible\\:ring-offset-2:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.peer-focus-visible\\:ring-offset-bg-primary:is(:where(.peer):focus-visible~*){--tw-ring-offset-color:var(--color-bg-primary)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.placeholder\\:text-text-muted::placeholder{color:var(--color-text-muted)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing) * .5)}.after\\:left-0\\.5:after{content:var(--tw-content);left:calc(var(--spacing) * .5)}.after\\:size-5:after{content:var(--tw-content);width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:var(--radius-full)}.after\\:bg-white:after{content:var(--tw-content);background-color:var(--color-white)}.after\\:shadow-sm:after{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:translate-x-5:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.checked\\:border-\\[5px\\]:checked{border-style:var(--tw-border-style);border-width:5px}.checked\\:border-primary:checked{border-color:var(--color-primary)}.checked\\:bg-primary:checked{background-color:var(--color-primary)}.checked\\:bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\,\\%3Csvg\\%20viewBox\\%3D\\%220\\%200\\%2016\\%2016\\%22\\%20fill\\%3D\\%22white\\%22\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M12\\.207\\%204\\.793a1\\%201\\%200\\%20010\\%201\\.414l-5\\%205a1\\%201\\%200\\%2001-1\\.414\\%200l-2-2a1\\%201\\%200\\%20011\\.414-1\\.414L6\\.5\\%209\\.086l4\\.293-4\\.293a1\\%201\\%200\\%20011\\.414\\%200z\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]:checked{background-image:url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z%22%2F%3E%3C%2Fsvg%3E)}.checked\\:bg-center:checked{background-position:50%}.checked\\:bg-no-repeat:checked{background-repeat:no-repeat}.indeterminate\\:border-primary:indeterminate{border-color:var(--color-primary)}.indeterminate\\:bg-primary:indeterminate{background-color:var(--color-primary)}.indeterminate\\:bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\,\\%3Csvg\\%20viewBox\\%3D\\%220\\%200\\%2016\\%2016\\%22\\%20fill\\%3D\\%22white\\%22\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%3E\\%3Crect\\%20x\\%3D\\%223\\%22\\%20y\\%3D\\%227\\%22\\%20width\\%3D\\%2210\\%22\\%20height\\%3D\\%222\\%22\\%20rx\\%3D\\%221\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]:indeterminate{background-image:url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2210%22%20height%3D%222%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E)}.indeterminate\\:bg-center:indeterminate{background-position:50%}.indeterminate\\:bg-no-repeat:indeterminate{background-repeat:no-repeat}@media (hover:hover){.hover\\:border-border-strong:hover{border-color:var(--color-border-strong)}.hover\\:border-error:hover{border-color:var(--color-error)}.hover\\:border-primary:hover{border-color:var(--color-primary)}.hover\\:bg-bg-tertiary:hover,.hover\\:bg-bg-tertiary\\/70:hover{background-color:var(--color-bg-tertiary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-bg-tertiary\\/70:hover{background-color:color-mix(in oklab, var(--color-bg-tertiary) 70%, transparent)}}.hover\\:bg-error-bg:hover{background-color:var(--color-error-bg)}.hover\\:bg-error\\/80:hover{background-color:var(--color-error)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-error\\/80:hover{background-color:color-mix(in oklab, var(--color-error) 80%, transparent)}}.hover\\:bg-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\\:text-text-primary:hover{color:var(--color-text-primary)}.hover\\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\\:opacity-90:hover{opacity:.9}}.focus\\:border-error:focus{border-color:var(--color-error)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:bg-bg-tertiary:focus{background-color:var(--color-bg-tertiary)}.focus\\:bg-error-bg:focus{background-color:var(--color-error-bg)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-error:focus{--tw-ring-color:var(--color-error)}.focus\\:ring-primary:focus{--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-epfl-canard:focus-visible{--tw-ring-color:var(--color-epfl-canard)}.focus-visible\\:ring-error:focus-visible{--tw-ring-color:var(--color-error)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-bg-primary:focus-visible{--tw-ring-offset-color:var(--color-bg-primary)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-bg-secondary:disabled{background-color:var(--color-bg-secondary)}.disabled\\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\\:col-span-2{grid-column:span 2/span 2}.sm\\:w-1\\/3{width:33.3333%}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:gap-lg{gap:var(--spacing-lg)}}@media (width>=48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:px-lg{padding-inline:var(--spacing-lg)}}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>svg\\]\\:size-5>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}}:root{--bg-primary:#fff;--bg-secondary:#f5f5f5;--bg-tertiary:#e6e6e6;--border-default:#d5d5d5;--border-strong:#c1c1c1;--text-primary:#212121;--text-secondary:#707070;--text-muted:#8e8e8e;--semantic-success:#1b874b;--semantic-success-bg:#e8f5e9;--semantic-warning:#d4860a;--semantic-warning-bg:#fff3e0;--semantic-error:#d32f2f;--semantic-error-bg:#ffebee;--semantic-info:#1976d2;--semantic-info-bg:#e3f2fd;--action-primary:#007480;--action-primary-hover:#004248}.dark{--bg-primary:#1a1a1a;--bg-secondary:#242424;--bg-tertiary:#2e2e2e;--border-default:#3a3a3a;--border-strong:#505050;--text-primary:#f0f0f0;--text-secondary:#a0a0a0;--text-muted:#707070;--semantic-success:#34d37a;--semantic-success-bg:#1a2e1a;--semantic-warning:#ffad33;--semantic-warning-bg:#2e2410;--semantic-error:#ff6b6b;--semantic-error-bg:#2e1515;--semantic-info:#64b5f6;--semantic-info-bg:#152538;--action-primary:#009ba6;--action-primary-hover:#007480;--shadow-sm:0 1px 2px #0000004d;--shadow-md:0 2px 8px #0006;--shadow-lg:0 4px 16px #00000080;--shadow-xl:0 8px 32px #0009}@keyframes slide-in{0%{opacity:0;transform:translate(1rem)}to{opacity:1;transform:translate(0)}}@keyframes dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes floating-in{0%{opacity:0}to{opacity:1}}body{font-family:var(--font-sans);font-size:var(--text-body);line-height:var(--text-body--line-height);color:var(--color-text-primary);background-color:var(--color-bg-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}
3
+ /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { createContext as e, forwardRef as t, useCallback as n, useContext as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c, useSyncExternalStore as l } from "react";
4
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { CheckCircleFill as p, ChevronBarLeft as m, ChevronBarRight as h, ChevronDown as g, ChevronLeft as _, ChevronRight as v, CloudArrowUp as y, ExclamationTriangleFill as b, InfoCircleFill as x, List as S, MoonFill as C, SortAlphaDown as w, SortAlphaDownAlt as T, SortDown as E, SortNumericDown as D, SortNumericDownAlt as O, SunFill as k, X as A, XCircleFill as j, XLg as M } from "react-bootstrap-icons";
6
+ import { useTranslation as N } from "react-i18next";
7
+ import ee from "react-select";
8
+ import { FloatingFocusManager as te, FloatingPortal as P, arrow as ne, autoUpdate as F, flip as I, offset as L, shift as R, useClick as z, useDismiss as B, useFloating as V, useFocus as re, useHover as ie, useInteractions as H, useListNavigation as ae, useRole as U } from "@floating-ui/react";
9
+ import { createPortal as oe } from "react-dom";
10
+ //#region src/components/ui/Avatar.tsx
11
+ var se = {
12
+ sm: "size-8 text-caption",
13
+ md: "size-10 text-small",
14
+ lg: "size-14 text-body"
13
15
  };
14
- function Pe(t) {
15
- const r = t.trim().split(/\s+/);
16
- return r.length === 0 ? "?" : r.length === 1 ? r[0][0].toUpperCase() : (r[0][0] + r[r.length - 1][0]).toUpperCase();
16
+ function ce(e) {
17
+ let t = e.trim().split(/\s+/);
18
+ return t.length === 0 ? "?" : t.length === 1 ? t[0][0].toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
17
19
  }
18
- function Ft({ src: t, name: r, size: o = "md", alt: n, className: s = "", ...i }) {
19
- const [a, c] = C(!1), d = !!t && !a;
20
- return /* @__PURE__ */ e(
21
- "span",
22
- {
23
- role: "img",
24
- "aria-label": n ?? r,
25
- className: [
26
- "inline-flex items-center justify-center rounded-full overflow-hidden",
27
- "bg-primary text-white font-semibold select-none shrink-0",
28
- Ae[o],
29
- s
30
- ].join(" "),
31
- ...i,
32
- children: d ? /* @__PURE__ */ e(
33
- "img",
34
- {
35
- src: t,
36
- alt: n ?? r,
37
- className: "size-full object-cover",
38
- onError: () => c(!0)
39
- }
40
- ) : /* @__PURE__ */ e("span", { "aria-hidden": "true", children: Pe(r) })
41
- }
42
- );
20
+ function le({ src: e, name: t, size: n = "md", alt: r, className: i = "", ...a }) {
21
+ let [o, s] = c(!1), l = !!e && !o;
22
+ return /* @__PURE__ */ d("span", {
23
+ role: "img",
24
+ "aria-label": r ?? t,
25
+ className: [
26
+ "inline-flex items-center justify-center rounded-full overflow-hidden",
27
+ "bg-primary text-white font-semibold select-none shrink-0",
28
+ se[n],
29
+ i
30
+ ].join(" "),
31
+ ...a,
32
+ children: l ? /* @__PURE__ */ d("img", {
33
+ src: e,
34
+ alt: r ?? t,
35
+ className: "size-full object-cover",
36
+ onError: () => s(!0)
37
+ }) : /* @__PURE__ */ d("span", {
38
+ "aria-hidden": "true",
39
+ children: ce(t)
40
+ })
41
+ });
43
42
  }
44
- const Le = {
45
- default: "bg-bg-tertiary text-text-primary",
46
- success: "bg-success-bg text-success",
47
- warning: "bg-warning-bg text-warning",
48
- error: "bg-error-bg text-error",
49
- info: "bg-info-bg text-info"
50
- }, Te = {
51
- default: "bg-text-muted",
52
- success: "bg-success",
53
- warning: "bg-warning",
54
- error: "bg-error",
55
- info: "bg-info"
43
+ //#endregion
44
+ //#region src/components/ui/Badge.tsx
45
+ var ue = {
46
+ default: "bg-bg-tertiary text-text-primary",
47
+ success: "bg-success-bg text-success",
48
+ warning: "bg-warning-bg text-warning",
49
+ error: "bg-error-bg text-error",
50
+ info: "bg-info-bg text-info"
51
+ }, de = {
52
+ default: "bg-text-muted",
53
+ success: "bg-success",
54
+ warning: "bg-warning",
55
+ error: "bg-error",
56
+ info: "bg-info"
56
57
  };
57
- function Et({ color: t = "default", dot: r, className: o = "", children: n, ...s }) {
58
- return r ? /* @__PURE__ */ e(
59
- "span",
60
- {
61
- role: "status",
62
- className: `inline-block size-2.5 rounded-full ${Te[t]} ${o}`,
63
- ...s
64
- }
65
- ) : /* @__PURE__ */ e(
66
- "span",
67
- {
68
- className: [
69
- "inline-flex items-center rounded-sm px-2 py-0.5",
70
- "text-caption font-medium leading-none",
71
- Le[t],
72
- o
73
- ].join(" "),
74
- ...s,
75
- children: n
76
- }
77
- );
58
+ function fe({ color: e = "default", dot: t, className: n = "", children: r, ...i }) {
59
+ return t ? /* @__PURE__ */ d("span", {
60
+ role: "status",
61
+ className: `inline-block size-2.5 rounded-full ${de[e]} ${n}`,
62
+ ...i
63
+ }) : /* @__PURE__ */ d("span", {
64
+ className: [
65
+ "inline-flex items-center rounded-sm px-2 py-0.5",
66
+ "text-caption font-medium leading-none",
67
+ ue[e],
68
+ n
69
+ ].join(" "),
70
+ ...i,
71
+ children: r
72
+ });
78
73
  }
79
- const Re = {
80
- sm: "size-4",
81
- md: "size-6",
82
- lg: "size-8"
74
+ //#endregion
75
+ //#region src/components/ui/Spinner.tsx
76
+ var pe = {
77
+ sm: "size-4",
78
+ md: "size-6",
79
+ lg: "size-8"
83
80
  };
84
- function te({ size: t = "md", className: r = "", ...o }) {
85
- return /* @__PURE__ */ m(
86
- "svg",
87
- {
88
- viewBox: "0 0 24 24",
89
- fill: "none",
90
- xmlns: "http://www.w3.org/2000/svg",
91
- className: `animate-spin ${Re[t]} ${r}`,
92
- role: "status",
93
- "aria-label": "Loading",
94
- ...o,
95
- children: [
96
- /* @__PURE__ */ e(
97
- "circle",
98
- {
99
- className: "opacity-25",
100
- cx: "12",
101
- cy: "12",
102
- r: "10",
103
- stroke: "currentColor",
104
- strokeWidth: "3"
105
- }
106
- ),
107
- /* @__PURE__ */ e(
108
- "path",
109
- {
110
- className: "opacity-75",
111
- fill: "currentColor",
112
- d: "M4 12a8 8 0 018-8v3a5 5 0 00-5 5H4z"
113
- }
114
- )
115
- ]
116
- }
117
- );
81
+ function W({ size: e = "md", className: t = "", ...n }) {
82
+ return /* @__PURE__ */ f("svg", {
83
+ viewBox: "0 0 24 24",
84
+ fill: "none",
85
+ xmlns: "http://www.w3.org/2000/svg",
86
+ className: `animate-spin ${pe[e]} ${t}`,
87
+ role: "status",
88
+ "aria-label": "Loading",
89
+ ...n,
90
+ children: [/* @__PURE__ */ d("circle", {
91
+ className: "opacity-25",
92
+ cx: "12",
93
+ cy: "12",
94
+ r: "10",
95
+ stroke: "currentColor",
96
+ strokeWidth: "3"
97
+ }), /* @__PURE__ */ d("path", {
98
+ className: "opacity-75",
99
+ fill: "currentColor",
100
+ d: "M4 12a8 8 0 018-8v3a5 5 0 00-5 5H4z"
101
+ })]
102
+ });
118
103
  }
119
- const Me = {
120
- primary: "bg-primary text-white hover:bg-primary-hover focus-visible:ring-primary",
121
- secondary: "border border-border text-text-primary bg-bg-primary hover:bg-bg-tertiary focus-visible:ring-primary",
122
- ghost: "text-text-primary hover:bg-bg-tertiary focus-visible:ring-primary",
123
- danger: "bg-error text-white hover:opacity-90 focus-visible:ring-error"
124
- }, Oe = {
125
- sm: "text-small px-3 py-1 gap-1.5",
126
- md: "text-body px-4 py-2 gap-2",
127
- lg: "text-body px-5 py-2.5 gap-2"
128
- }, Ve = {
129
- sm: "sm",
130
- md: "sm",
131
- lg: "md"
132
- }, St = $(function({
133
- variant: r = "primary",
134
- size: o = "md",
135
- loading: n = !1,
136
- disabled: s,
137
- iconLeft: i,
138
- iconRight: a,
139
- className: c = "",
140
- children: d,
141
- ...l
142
- }, u) {
143
- const f = s || n;
144
- return /* @__PURE__ */ m(
145
- "button",
146
- {
147
- ref: u,
148
- type: "button",
149
- disabled: f,
150
- "aria-busy": n || void 0,
151
- className: [
152
- // base
153
- "inline-flex items-center justify-center font-medium rounded-md",
154
- "transition-colors duration-150 cursor-pointer",
155
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
156
- // variant + size
157
- Me[r],
158
- Oe[o],
159
- // disabled / loading
160
- f && "opacity-50 pointer-events-none",
161
- c
162
- ].filter(Boolean).join(" "),
163
- ...l,
164
- children: [
165
- n ? /* @__PURE__ */ e(te, { size: Ve[o], "aria-hidden": "true" }) : i,
166
- d,
167
- !n && a
168
- ]
169
- }
170
- );
171
- }), Ue = {
172
- primary: "bg-primary text-white hover:bg-primary-hover focus-visible:ring-primary",
173
- secondary: "border border-border text-text-primary bg-bg-primary hover:bg-bg-tertiary focus-visible:ring-primary",
174
- ghost: "text-text-primary hover:bg-bg-tertiary focus-visible:ring-primary",
175
- danger: "bg-error text-white hover:opacity-90 focus-visible:ring-error"
176
- }, Ke = {
177
- sm: "size-7 text-small",
178
- md: "size-9 text-body",
179
- lg: "size-11 text-body"
180
- }, He = $(function({ variant: r = "ghost", size: o = "md", loading: n = !1, disabled: s, icon: i, className: a = "", ...c }, d) {
181
- const l = s || n;
182
- return /* @__PURE__ */ e(
183
- "button",
184
- {
185
- ref: d,
186
- type: "button",
187
- disabled: l,
188
- "aria-busy": n || void 0,
189
- className: [
190
- // base
191
- "inline-flex items-center justify-center rounded-md",
192
- "transition-colors duration-150 cursor-pointer",
193
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
194
- // variant + size
195
- Ue[r],
196
- Ke[o],
197
- // disabled / loading
198
- l && "opacity-50 pointer-events-none",
199
- a
200
- ].filter(Boolean).join(" "),
201
- ...c,
202
- children: n ? /* @__PURE__ */ e(te, { size: "sm", "aria-hidden": "true" }) : i
203
- }
204
- );
104
+ //#endregion
105
+ //#region src/components/ui/Button.tsx
106
+ var me = {
107
+ primary: "bg-primary text-white hover:bg-primary-hover focus-visible:ring-primary",
108
+ secondary: "border border-border text-text-primary bg-bg-primary hover:bg-bg-tertiary focus-visible:ring-primary",
109
+ ghost: "text-text-primary hover:bg-bg-tertiary focus-visible:ring-primary",
110
+ danger: "bg-error text-white hover:opacity-90 focus-visible:ring-error"
111
+ }, he = {
112
+ sm: "text-small px-3 py-1 gap-1.5",
113
+ md: "text-body px-4 py-2 gap-2",
114
+ lg: "text-body px-5 py-2.5 gap-2"
115
+ }, ge = {
116
+ sm: "sm",
117
+ md: "sm",
118
+ lg: "md"
119
+ }, _e = t(function({ variant: e = "primary", size: t = "md", loading: n = !1, disabled: r, iconLeft: i, iconRight: a, className: o = "", children: s, ...c }, l) {
120
+ let u = r || n;
121
+ return /* @__PURE__ */ f("button", {
122
+ ref: l,
123
+ type: "button",
124
+ disabled: u,
125
+ "aria-busy": n || void 0,
126
+ className: [
127
+ "inline-flex items-center justify-center font-medium rounded-md",
128
+ "transition-colors duration-150 cursor-pointer",
129
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
130
+ me[e],
131
+ he[t],
132
+ u && "opacity-50 pointer-events-none",
133
+ o
134
+ ].filter(Boolean).join(" "),
135
+ ...c,
136
+ children: [
137
+ n ? /* @__PURE__ */ d(W, {
138
+ size: ge[t],
139
+ "aria-hidden": "true"
140
+ }) : i,
141
+ s,
142
+ !n && a
143
+ ]
144
+ });
145
+ }), ve = {
146
+ primary: "bg-primary text-white hover:bg-primary-hover focus-visible:ring-primary",
147
+ secondary: "border border-border text-text-primary bg-bg-primary hover:bg-bg-tertiary focus-visible:ring-primary",
148
+ ghost: "text-text-primary hover:bg-bg-tertiary focus-visible:ring-primary",
149
+ danger: "bg-error text-white hover:opacity-90 focus-visible:ring-error"
150
+ }, ye = {
151
+ sm: "size-7 text-small",
152
+ md: "size-9 text-body",
153
+ lg: "size-11 text-body"
154
+ }, G = t(function({ variant: e = "ghost", size: t = "md", loading: n = !1, disabled: r, icon: i, className: a = "", ...o }, s) {
155
+ let c = r || n;
156
+ return /* @__PURE__ */ d("button", {
157
+ ref: s,
158
+ type: "button",
159
+ disabled: c,
160
+ "aria-busy": n || void 0,
161
+ className: [
162
+ "inline-flex items-center justify-center rounded-md",
163
+ "transition-colors duration-150 cursor-pointer",
164
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
165
+ ve[e],
166
+ ye[t],
167
+ c && "opacity-50 pointer-events-none",
168
+ a
169
+ ].filter(Boolean).join(" "),
170
+ ...o,
171
+ children: n ? /* @__PURE__ */ d(W, {
172
+ size: "sm",
173
+ "aria-hidden": "true"
174
+ }) : i
175
+ });
176
+ }), K = {
177
+ sm: "h-7 min-w-7 px-1.5 text-small",
178
+ md: "h-9 min-w-9 px-2 text-body",
179
+ lg: "h-11 min-w-11 px-3 text-body"
180
+ }, be = {
181
+ sm: 14,
182
+ md: 16,
183
+ lg: 18
184
+ };
185
+ function xe(e, t, n, r) {
186
+ if (t <= r * 2 + n * 2 + 3) return Array.from({ length: t }, (e, t) => t + 1);
187
+ let i = Array.from({ length: r }, (e, t) => t + 1), a = Array.from({ length: r }, (e, n) => t - r + 1 + n), o = Math.max(r + 2, e - n), s = Math.min(t - r - 1, e + n), c = o > r + 2, l = s < t - r - 1, u = [];
188
+ if (u.push(...i), c) u.push("ellipsis-start");
189
+ else for (let e = r + 1; e < o; e++) u.push(e);
190
+ for (let e = o; e <= s; e++) u.push(e);
191
+ if (l) u.push("ellipsis-end");
192
+ else for (let e = s + 1; e <= t - r; e++) u.push(e);
193
+ return u.push(...a), u;
194
+ }
195
+ var Se = t(function({ totalPages: e, page: t, defaultPage: r = 1, onChange: i, siblingCount: a = 1, boundaryCount: o = 1, showFirstLast: s = !1, size: l = "md", disabled: u = !1, className: p = "", ...g }, y) {
196
+ let { t: b } = N(), x = t !== void 0, [S, C] = c(r), w = Math.min(Math.max(x ? t : S, 1), e), T = n((t) => {
197
+ let n = Math.min(Math.max(t, 1), e);
198
+ x || C(n), i?.(n);
199
+ }, [
200
+ x,
201
+ i,
202
+ e
203
+ ]), E = xe(w, e, a, o), D = be[l], O = w <= 1, k = w >= e, A = [
204
+ "inline-flex items-center justify-center rounded-md font-medium",
205
+ "transition-colors duration-150 cursor-pointer",
206
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-epfl-canard",
207
+ K[l]
208
+ ].join(" "), j = (e) => [A, e ? "bg-epfl-canard text-white" : "text-text-primary hover:bg-bg-tertiary"].filter(Boolean).join(" "), M = (e) => [
209
+ A,
210
+ "text-text-secondary hover:bg-bg-tertiary",
211
+ (u || e) && "opacity-40 pointer-events-none"
212
+ ].filter(Boolean).join(" ");
213
+ return e <= 0 ? null : /* @__PURE__ */ f("nav", {
214
+ ref: y,
215
+ "aria-label": b("common.pagination"),
216
+ className: ["inline-flex items-center gap-1", p].filter(Boolean).join(" "),
217
+ ...g,
218
+ children: [
219
+ s && /* @__PURE__ */ d("button", {
220
+ type: "button",
221
+ "aria-label": b("common.first"),
222
+ disabled: u || O,
223
+ className: M(O),
224
+ onClick: () => T(1),
225
+ children: /* @__PURE__ */ d(m, {
226
+ size: D,
227
+ "aria-hidden": !0
228
+ })
229
+ }),
230
+ /* @__PURE__ */ d("button", {
231
+ type: "button",
232
+ "aria-label": b("common.previous"),
233
+ disabled: u || O,
234
+ className: M(O),
235
+ onClick: () => T(w - 1),
236
+ children: /* @__PURE__ */ d(_, {
237
+ size: D,
238
+ "aria-hidden": !0
239
+ })
240
+ }),
241
+ E.map((e, t) => {
242
+ if (typeof e == "string") return /* @__PURE__ */ d("span", {
243
+ "aria-hidden": !0,
244
+ className: ["inline-flex items-center justify-center select-none text-text-secondary", K[l]].join(" "),
245
+ children: "…"
246
+ }, e);
247
+ let n = e === w;
248
+ return /* @__PURE__ */ d("button", {
249
+ type: "button",
250
+ "aria-current": n ? "page" : void 0,
251
+ "aria-label": b("common.goToPage", { page: e }),
252
+ disabled: u,
253
+ className: [j(n), u && "opacity-40 pointer-events-none"].filter(Boolean).join(" "),
254
+ onClick: () => T(e),
255
+ children: e
256
+ }, e);
257
+ }),
258
+ /* @__PURE__ */ d("button", {
259
+ type: "button",
260
+ "aria-label": b("common.next"),
261
+ disabled: u || k,
262
+ className: M(k),
263
+ onClick: () => T(w + 1),
264
+ children: /* @__PURE__ */ d(v, {
265
+ size: D,
266
+ "aria-hidden": !0
267
+ })
268
+ }),
269
+ s && /* @__PURE__ */ d("button", {
270
+ type: "button",
271
+ "aria-label": b("common.last"),
272
+ disabled: u || k,
273
+ className: M(k),
274
+ onClick: () => T(e),
275
+ children: /* @__PURE__ */ d(h, {
276
+ size: D,
277
+ "aria-hidden": !0
278
+ })
279
+ })
280
+ ]
281
+ });
205
282
  });
206
- function qe(t) {
207
- return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
283
+ //#endregion
284
+ //#region src/components/ui/FileUpload.tsx
285
+ function Ce(e) {
286
+ return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
208
287
  }
209
- function Bt({
210
- accept: t,
211
- multiple: r = !1,
212
- maxSize: o,
213
- onFilesSelected: n,
214
- onReject: s,
215
- disabled: i = !1,
216
- label: a = "Drop files here or click to browse",
217
- helperText: c,
218
- error: d,
219
- illustration: l,
220
- className: u = ""
221
- }) {
222
- const [f, h] = C(!1), [p, y] = C([]), b = D(null), v = !!d, N = k(
223
- (w) => {
224
- const S = Array.from(w), B = [], L = [];
225
- for (const P of S)
226
- o && P.size > o ? L.push(P) : B.push(P);
227
- if (B.length > 0) {
228
- const P = r ? [...p, ...B] : B.slice(0, 1);
229
- y(P), n?.(P);
230
- }
231
- L.length > 0 && s?.(L);
232
- },
233
- [o, r, n, s, p]
234
- ), g = k(
235
- (w) => {
236
- w.preventDefault(), i || h(!0);
237
- },
238
- [i]
239
- ), x = k((w) => {
240
- w.preventDefault(), h(!1);
241
- }, []), z = k(
242
- (w) => {
243
- w.preventDefault(), h(!1), !(i || !w.dataTransfer.files.length) && N(w.dataTransfer.files);
244
- },
245
- [i, N]
246
- ), A = k(
247
- (w) => {
248
- w.target.files?.length && N(w.target.files);
249
- },
250
- [N]
251
- ), F = k(() => {
252
- i || b.current?.click();
253
- }, [i]), E = k(
254
- (w) => {
255
- !i && (w.key === "Enter" || w.key === " ") && (w.preventDefault(), b.current?.click());
256
- },
257
- [i]
258
- ), O = k(
259
- (w) => {
260
- const S = p.filter((B, L) => L !== w);
261
- y(S), n?.(S);
262
- },
263
- [p, n]
264
- );
265
- return /* @__PURE__ */ m("div", { className: `flex flex-col gap-1.5 ${u}`, children: [
266
- /* @__PURE__ */ m(
267
- "div",
268
- {
269
- role: "button",
270
- tabIndex: i ? -1 : 0,
271
- onClick: F,
272
- onKeyDown: E,
273
- onDragOver: g,
274
- onDragLeave: x,
275
- onDrop: z,
276
- className: [
277
- "flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-lg",
278
- "transition-colors cursor-pointer select-none",
279
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
280
- i ? "opacity-50 pointer-events-none bg-bg-secondary" : f ? "border-primary bg-primary/5" : v ? "border-error hover:border-error bg-bg-primary" : "border-border hover:border-primary bg-bg-primary"
281
- ].filter(Boolean).join(" "),
282
- "aria-disabled": i,
283
- children: [
284
- l ?? /* @__PURE__ */ e(
285
- he,
286
- {
287
- size: 32,
288
- className: f ? "text-primary" : "text-text-muted",
289
- "aria-hidden": !0
290
- }
291
- ),
292
- /* @__PURE__ */ e("span", { className: "text-body font-medium text-text-primary text-center", children: a }),
293
- c && /* @__PURE__ */ e("span", { className: "text-caption text-text-secondary text-center", children: c })
294
- ]
295
- }
296
- ),
297
- /* @__PURE__ */ e(
298
- "input",
299
- {
300
- ref: b,
301
- type: "file",
302
- accept: t,
303
- multiple: r,
304
- onChange: A,
305
- className: "hidden",
306
- tabIndex: -1,
307
- "aria-hidden": !0
308
- }
309
- ),
310
- d && /* @__PURE__ */ e("p", { className: "text-caption text-error", children: d }),
311
- p.length > 0 && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-1 mt-1", children: p.map((w, S) => /* @__PURE__ */ m(
312
- "li",
313
- {
314
- className: "flex items-center gap-2 rounded-md bg-bg-secondary px-3 py-1.5 text-small text-text-primary",
315
- children: [
316
- /* @__PURE__ */ e("span", { className: "truncate flex-1", children: w.name }),
317
- /* @__PURE__ */ e("span", { className: "shrink-0 text-text-secondary", children: qe(w.size) }),
318
- /* @__PURE__ */ e(
319
- "button",
320
- {
321
- type: "button",
322
- onClick: (B) => {
323
- B.stopPropagation(), O(S);
324
- },
325
- className: "shrink-0 p-0.5 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
326
- "aria-label": `Remove ${w.name}`,
327
- children: /* @__PURE__ */ e(U, { size: 14 })
328
- }
329
- )
330
- ]
331
- },
332
- `${w.name}-${w.size}-${S}`
333
- )) })
334
- ] });
288
+ function we({ accept: e, multiple: t = !1, maxSize: r, onFilesSelected: i, onReject: a, disabled: o = !1, label: l = "Drop files here or click to browse", helperText: u, error: p, illustration: m, className: h = "" }) {
289
+ let [g, _] = c(!1), [v, b] = c([]), x = s(null), S = !!p, C = n((e) => {
290
+ let n = Array.from(e), o = [], s = [];
291
+ for (let e of n) r && e.size > r ? s.push(e) : o.push(e);
292
+ if (o.length > 0) {
293
+ let e = t ? [...v, ...o] : o.slice(0, 1);
294
+ b(e), i?.(e);
295
+ }
296
+ s.length > 0 && a?.(s);
297
+ }, [
298
+ r,
299
+ t,
300
+ i,
301
+ a,
302
+ v
303
+ ]), w = n((e) => {
304
+ e.preventDefault(), o || _(!0);
305
+ }, [o]), T = n((e) => {
306
+ e.preventDefault(), _(!1);
307
+ }, []), E = n((e) => {
308
+ e.preventDefault(), _(!1), !(o || !e.dataTransfer.files.length) && C(e.dataTransfer.files);
309
+ }, [o, C]), D = n((e) => {
310
+ e.target.files?.length && C(e.target.files);
311
+ }, [C]), O = n(() => {
312
+ o || x.current?.click();
313
+ }, [o]), k = n((e) => {
314
+ !o && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), x.current?.click());
315
+ }, [o]), j = n((e) => {
316
+ let t = v.filter((t, n) => n !== e);
317
+ b(t), i?.(t);
318
+ }, [v, i]);
319
+ return /* @__PURE__ */ f("div", {
320
+ className: `flex flex-col gap-1.5 ${h}`,
321
+ children: [
322
+ /* @__PURE__ */ f("div", {
323
+ role: "button",
324
+ tabIndex: o ? -1 : 0,
325
+ onClick: O,
326
+ onKeyDown: k,
327
+ onDragOver: w,
328
+ onDragLeave: T,
329
+ onDrop: E,
330
+ className: [
331
+ "flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-lg",
332
+ "transition-colors cursor-pointer select-none",
333
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
334
+ o ? "opacity-50 pointer-events-none bg-bg-secondary" : g ? "border-primary bg-primary/5" : S ? "border-error hover:border-error bg-bg-primary" : "border-border hover:border-primary bg-bg-primary"
335
+ ].filter(Boolean).join(" "),
336
+ "aria-disabled": o,
337
+ children: [
338
+ m ?? /* @__PURE__ */ d(y, {
339
+ size: 32,
340
+ className: g ? "text-primary" : "text-text-muted",
341
+ "aria-hidden": !0
342
+ }),
343
+ /* @__PURE__ */ d("span", {
344
+ className: "text-body font-medium text-text-primary text-center",
345
+ children: l
346
+ }),
347
+ u && /* @__PURE__ */ d("span", {
348
+ className: "text-caption text-text-secondary text-center",
349
+ children: u
350
+ })
351
+ ]
352
+ }),
353
+ /* @__PURE__ */ d("input", {
354
+ ref: x,
355
+ type: "file",
356
+ accept: e,
357
+ multiple: t,
358
+ onChange: D,
359
+ className: "hidden",
360
+ tabIndex: -1,
361
+ "aria-hidden": !0
362
+ }),
363
+ p && /* @__PURE__ */ d("p", {
364
+ className: "text-caption text-error",
365
+ children: p
366
+ }),
367
+ v.length > 0 && /* @__PURE__ */ d("ul", {
368
+ className: "flex flex-col gap-1 mt-1",
369
+ children: v.map((e, t) => /* @__PURE__ */ f("li", {
370
+ className: "flex items-center gap-2 rounded-md bg-bg-secondary px-3 py-1.5 text-small text-text-primary",
371
+ children: [
372
+ /* @__PURE__ */ d("span", {
373
+ className: "truncate flex-1",
374
+ children: e.name
375
+ }),
376
+ /* @__PURE__ */ d("span", {
377
+ className: "shrink-0 text-text-secondary",
378
+ children: Ce(e.size)
379
+ }),
380
+ /* @__PURE__ */ d("button", {
381
+ type: "button",
382
+ onClick: (e) => {
383
+ e.stopPropagation(), j(t);
384
+ },
385
+ className: "shrink-0 p-0.5 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
386
+ "aria-label": `Remove ${e.name}`,
387
+ children: /* @__PURE__ */ d(A, { size: 14 })
388
+ })
389
+ ]
390
+ }, `${e.name}-${e.size}-${t}`))
391
+ })
392
+ ]
393
+ });
335
394
  }
336
- const Ge = {
337
- sm: "h-1.5",
338
- md: "h-2.5",
339
- lg: "h-4"
340
- }, Xe = {
341
- primary: "bg-primary",
342
- success: "bg-success",
343
- warning: "bg-warning",
344
- error: "bg-error",
345
- info: "bg-info"
346
- }, At = $(
347
- function({
348
- value: r,
349
- variant: o = "primary",
350
- size: n = "md",
351
- showLabel: s = !1,
352
- formatLabel: i,
353
- className: a = "",
354
- ...c
355
- }, d) {
356
- const l = Math.round(Math.min(100, Math.max(0, r))), u = i ? i(l) : `${l}%`;
357
- return /* @__PURE__ */ m(
358
- "div",
359
- {
360
- ref: d,
361
- className: `flex items-center gap-2 ${a}`,
362
- ...c,
363
- children: [
364
- /* @__PURE__ */ e(
365
- "div",
366
- {
367
- className: [
368
- "flex-1 overflow-hidden rounded-full bg-bg-tertiary",
369
- Ge[n]
370
- ].join(" "),
371
- role: "progressbar",
372
- "aria-valuenow": l,
373
- "aria-valuemin": 0,
374
- "aria-valuemax": 100,
375
- children: /* @__PURE__ */ e(
376
- "div",
377
- {
378
- className: [
379
- "h-full rounded-full transition-all duration-300 ease-out",
380
- Xe[o]
381
- ].join(" "),
382
- style: { width: `${l}%` }
383
- }
384
- )
385
- }
386
- ),
387
- s && /* @__PURE__ */ e("span", { className: "text-small font-medium text-text-secondary tabular-nums shrink-0", children: u })
388
- ]
389
- }
390
- );
391
- }
392
- ), Pt = $(function({
393
- label: r,
394
- indeterminate: o = !1,
395
- helperText: n,
396
- error: s,
397
- className: i = "",
398
- id: a,
399
- disabled: c,
400
- ...d
401
- }, l) {
402
- const u = j(), f = a ?? u, h = `${f}-helper`, p = !!s, y = D(null), b = k(
403
- (v) => {
404
- y.current = v, typeof l == "function" ? l(v) : l && (l.current = v);
405
- },
406
- [l]
407
- );
408
- return I(() => {
409
- y.current && (y.current.indeterminate = o);
410
- }, [o]), /* @__PURE__ */ m("div", { className: `flex flex-col gap-1 ${i}`, children: [
411
- /* @__PURE__ */ m("div", { className: "flex items-start gap-2", children: [
412
- /* @__PURE__ */ e(
413
- "input",
414
- {
415
- ref: b,
416
- id: f,
417
- type: "checkbox",
418
- disabled: c,
419
- "aria-invalid": p || void 0,
420
- "aria-describedby": n || s ? h : void 0,
421
- className: [
422
- "mt-0.5 size-4 shrink-0 cursor-pointer rounded-sm border appearance-none",
423
- "bg-bg-primary transition-colors",
424
- "checked:bg-primary checked:border-primary",
425
- "indeterminate:bg-primary indeterminate:border-primary",
426
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bg-primary",
427
- "disabled:cursor-not-allowed disabled:opacity-50",
428
- p ? "border-error" : "border-border hover:border-border-strong",
429
- // Checkmark via background SVG
430
- "checked:bg-[url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z%22%2F%3E%3C%2Fsvg%3E')] checked:bg-center checked:bg-no-repeat",
431
- // Indeterminate dash
432
- "indeterminate:bg-[url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2210%22%20height%3D%222%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E')] indeterminate:bg-center indeterminate:bg-no-repeat"
433
- ].join(" "),
434
- ...d
435
- }
436
- ),
437
- r && /* @__PURE__ */ e(
438
- "label",
439
- {
440
- htmlFor: f,
441
- className: `text-body select-none ${c ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
442
- children: r
443
- }
444
- )
445
- ] }),
446
- (n || s) && /* @__PURE__ */ e(
447
- "p",
448
- {
449
- id: h,
450
- className: `text-caption pl-6 ${p ? "text-error" : "text-text-secondary"}`,
451
- children: s ?? n
452
- }
453
- )
454
- ] });
455
- }), Ye = {
456
- sm: "h-8 text-small px-2.5",
457
- md: "h-10 text-body px-3",
458
- lg: "h-12 text-body px-3.5"
459
- }, _e = {
460
- sm: "pl-8",
461
- md: "pl-10",
462
- lg: "pl-11"
463
- }, We = {
464
- sm: "pr-8",
465
- md: "pr-10",
466
- lg: "pr-11"
467
- }, ne = {
468
- sm: "[&>svg]:size-4",
469
- md: "[&>svg]:size-5",
470
- lg: "[&>svg]:size-5"
471
- }, Lt = $(function({
472
- label: r,
473
- helperText: o,
474
- error: n,
475
- leftIcon: s,
476
- rightIcon: i,
477
- inputSize: a = "md",
478
- className: c = "",
479
- id: d,
480
- disabled: l,
481
- ...u
482
- }, f) {
483
- const h = j(), p = d ?? h, y = `${p}-helper`, b = !!n;
484
- return /* @__PURE__ */ m("div", { className: `flex flex-col gap-1.5 ${c}`, children: [
485
- r && /* @__PURE__ */ e("label", { htmlFor: p, className: "text-small font-medium text-text-primary", children: r }),
486
- /* @__PURE__ */ m("div", { className: "relative", children: [
487
- s && /* @__PURE__ */ e(
488
- "span",
489
- {
490
- className: `pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-text-secondary ${ne[a]}`,
491
- "aria-hidden": "true",
492
- children: s
493
- }
494
- ),
495
- /* @__PURE__ */ e(
496
- "input",
497
- {
498
- ref: f,
499
- id: p,
500
- disabled: l,
501
- "aria-invalid": b || void 0,
502
- "aria-describedby": o || n ? y : void 0,
503
- className: [
504
- "w-full rounded-md border bg-bg-primary text-text-primary placeholder:text-text-muted",
505
- "outline-none transition-colors",
506
- "focus:border-primary focus:ring-1 focus:ring-primary",
507
- "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-bg-secondary",
508
- b ? "border-error focus:border-error focus:ring-error" : "border-border hover:border-border-strong",
509
- Ye[a],
510
- s ? _e[a] : "",
511
- i ? We[a] : ""
512
- ].join(" "),
513
- ...u
514
- }
515
- ),
516
- i && /* @__PURE__ */ e(
517
- "span",
518
- {
519
- className: `pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-text-secondary ${ne[a]}`,
520
- "aria-hidden": "true",
521
- children: i
522
- }
523
- )
524
- ] }),
525
- (o || n) && /* @__PURE__ */ e(
526
- "p",
527
- {
528
- id: y,
529
- className: `text-caption ${b ? "text-error" : "text-text-secondary"}`,
530
- children: n ?? o
531
- }
532
- )
533
- ] });
534
- }), ue = R(null);
535
- function Je() {
536
- const t = M(ue);
537
- if (!t) throw new Error("RadioGroup.Item must be used within RadioGroup");
538
- return t;
395
+ //#endregion
396
+ //#region src/components/ui/ProgressBar.tsx
397
+ var Te = {
398
+ sm: "h-1.5",
399
+ md: "h-2.5",
400
+ lg: "h-4"
401
+ }, Ee = {
402
+ primary: "bg-primary",
403
+ success: "bg-success",
404
+ warning: "bg-warning",
405
+ error: "bg-error",
406
+ info: "bg-info"
407
+ }, De = t(function({ value: e, variant: t = "primary", size: n = "md", showLabel: r = !1, formatLabel: i, className: a = "", ...o }, s) {
408
+ let c = Math.round(Math.min(100, Math.max(0, e))), l = i ? i(c) : `${c}%`;
409
+ return /* @__PURE__ */ f("div", {
410
+ ref: s,
411
+ className: `flex items-center gap-2 ${a}`,
412
+ ...o,
413
+ children: [/* @__PURE__ */ d("div", {
414
+ className: ["flex-1 overflow-hidden rounded-full bg-bg-tertiary", Te[n]].join(" "),
415
+ role: "progressbar",
416
+ "aria-valuenow": c,
417
+ "aria-valuemin": 0,
418
+ "aria-valuemax": 100,
419
+ children: /* @__PURE__ */ d("div", {
420
+ className: ["h-full rounded-full transition-all duration-300 ease-out", Ee[t]].join(" "),
421
+ style: { width: `${c}%` }
422
+ })
423
+ }), r && /* @__PURE__ */ d("span", {
424
+ className: "text-small font-medium text-text-secondary tabular-nums shrink-0",
425
+ children: l
426
+ })]
427
+ });
428
+ }), Oe = t(function({ label: e, indeterminate: t = !1, helperText: r, error: o, className: c = "", id: l, disabled: u, ...p }, m) {
429
+ let h = a(), g = l ?? h, _ = `${g}-helper`, v = !!o, y = s(null), b = n((e) => {
430
+ y.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
431
+ }, [m]);
432
+ return i(() => {
433
+ y.current && (y.current.indeterminate = t);
434
+ }, [t]), /* @__PURE__ */ f("div", {
435
+ className: `flex flex-col gap-1 ${c}`,
436
+ children: [/* @__PURE__ */ f("div", {
437
+ className: "flex items-start gap-2",
438
+ children: [/* @__PURE__ */ d("input", {
439
+ ref: b,
440
+ id: g,
441
+ type: "checkbox",
442
+ disabled: u,
443
+ "aria-invalid": v || void 0,
444
+ "aria-describedby": r || o ? _ : void 0,
445
+ className: [
446
+ "mt-0.5 size-4 shrink-0 cursor-pointer rounded-sm border appearance-none",
447
+ "bg-bg-primary transition-colors",
448
+ "checked:bg-primary checked:border-primary",
449
+ "indeterminate:bg-primary indeterminate:border-primary",
450
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bg-primary",
451
+ "disabled:cursor-not-allowed disabled:opacity-50",
452
+ v ? "border-error" : "border-border hover:border-border-strong",
453
+ "checked:bg-[url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z%22%2F%3E%3C%2Fsvg%3E')] checked:bg-center checked:bg-no-repeat",
454
+ "indeterminate:bg-[url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22white%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2210%22%20height%3D%222%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E')] indeterminate:bg-center indeterminate:bg-no-repeat"
455
+ ].join(" "),
456
+ ...p
457
+ }), e && /* @__PURE__ */ d("label", {
458
+ htmlFor: g,
459
+ className: `text-body select-none ${u ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
460
+ children: e
461
+ })]
462
+ }), (r || o) && /* @__PURE__ */ d("p", {
463
+ id: _,
464
+ className: `text-caption pl-6 ${v ? "text-error" : "text-text-secondary"}`,
465
+ children: o ?? r
466
+ })]
467
+ });
468
+ }), ke = {
469
+ sm: "h-8 text-small px-2.5",
470
+ md: "h-10 text-body px-3",
471
+ lg: "h-12 text-body px-3.5"
472
+ }, Ae = {
473
+ sm: "pl-8",
474
+ md: "pl-10",
475
+ lg: "pl-11"
476
+ }, je = {
477
+ sm: "pr-8",
478
+ md: "pr-10",
479
+ lg: "pr-11"
480
+ }, q = {
481
+ sm: "[&>svg]:size-4",
482
+ md: "[&>svg]:size-5",
483
+ lg: "[&>svg]:size-5"
484
+ }, Me = t(function({ label: e, helperText: t, error: n, leftIcon: r, rightIcon: i, inputSize: o = "md", className: s = "", id: c, disabled: l, ...u }, p) {
485
+ let m = a(), h = c ?? m, g = `${h}-helper`, _ = !!n;
486
+ return /* @__PURE__ */ f("div", {
487
+ className: `flex flex-col gap-1.5 ${s}`,
488
+ children: [
489
+ e && /* @__PURE__ */ d("label", {
490
+ htmlFor: h,
491
+ className: "text-small font-medium text-text-primary",
492
+ children: e
493
+ }),
494
+ /* @__PURE__ */ f("div", {
495
+ className: "relative",
496
+ children: [
497
+ r && /* @__PURE__ */ d("span", {
498
+ className: `pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-text-secondary ${q[o]}`,
499
+ "aria-hidden": "true",
500
+ children: r
501
+ }),
502
+ /* @__PURE__ */ d("input", {
503
+ ref: p,
504
+ id: h,
505
+ disabled: l,
506
+ "aria-invalid": _ || void 0,
507
+ "aria-describedby": t || n ? g : void 0,
508
+ className: [
509
+ "w-full rounded-md border bg-bg-primary text-text-primary placeholder:text-text-muted",
510
+ "outline-none transition-colors",
511
+ "focus:border-primary focus:ring-1 focus:ring-primary",
512
+ "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-bg-secondary",
513
+ _ ? "border-error focus:border-error focus:ring-error" : "border-border hover:border-border-strong",
514
+ ke[o],
515
+ r ? Ae[o] : "",
516
+ i ? je[o] : ""
517
+ ].join(" "),
518
+ ...u
519
+ }),
520
+ i && /* @__PURE__ */ d("span", {
521
+ className: `pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-text-secondary ${q[o]}`,
522
+ "aria-hidden": "true",
523
+ children: i
524
+ })
525
+ ]
526
+ }),
527
+ (t || n) && /* @__PURE__ */ d("p", {
528
+ id: g,
529
+ className: `text-caption ${_ ? "text-error" : "text-text-secondary"}`,
530
+ children: n ?? t
531
+ })
532
+ ]
533
+ });
534
+ }), J = e(null);
535
+ function Ne() {
536
+ let e = r(J);
537
+ if (!e) throw Error("RadioGroup.Item must be used within RadioGroup");
538
+ return e;
539
539
  }
540
- function Qe({
541
- name: t,
542
- value: r,
543
- onChange: o,
544
- label: n,
545
- helperText: s,
546
- error: i,
547
- orientation: a = "vertical",
548
- disabled: c = !1,
549
- children: d,
550
- className: l = ""
551
- }) {
552
- const u = j(), f = t ?? u, p = `${`${f}-group`}-helper`, y = !!i;
553
- return /* @__PURE__ */ e(ue.Provider, { value: { name: f, value: r, onChange: o, disabled: c, hasError: y }, children: /* @__PURE__ */ m(
554
- "fieldset",
555
- {
556
- className: `flex flex-col gap-2 ${l}`,
557
- "aria-describedby": s || i ? p : void 0,
558
- disabled: c,
559
- children: [
560
- n && /* @__PURE__ */ e("legend", { className: "text-small font-medium text-text-primary mb-1", children: n }),
561
- /* @__PURE__ */ e(
562
- "div",
563
- {
564
- className: `flex gap-3 ${a === "horizontal" ? "flex-row flex-wrap" : "flex-col"}`,
565
- role: "radiogroup",
566
- children: d
567
- }
568
- ),
569
- (s || i) && /* @__PURE__ */ e(
570
- "p",
571
- {
572
- id: p,
573
- className: `text-caption ${y ? "text-error" : "text-text-secondary"}`,
574
- children: i ?? s
575
- }
576
- )
577
- ]
578
- }
579
- ) });
540
+ function Y({ name: e, value: t, onChange: n, label: r, helperText: i, error: o, orientation: s = "vertical", disabled: c = !1, children: l, className: u = "" }) {
541
+ let p = a(), m = e ?? p, h = `${`${m}-group`}-helper`, g = !!o;
542
+ return /* @__PURE__ */ d(J.Provider, {
543
+ value: {
544
+ name: m,
545
+ value: t,
546
+ onChange: n,
547
+ disabled: c,
548
+ hasError: g
549
+ },
550
+ children: /* @__PURE__ */ f("fieldset", {
551
+ className: `flex flex-col gap-2 ${u}`,
552
+ "aria-describedby": i || o ? h : void 0,
553
+ disabled: c,
554
+ children: [
555
+ r && /* @__PURE__ */ d("legend", {
556
+ className: "text-small font-medium text-text-primary mb-1",
557
+ children: r
558
+ }),
559
+ /* @__PURE__ */ d("div", {
560
+ className: `flex gap-3 ${s === "horizontal" ? "flex-row flex-wrap" : "flex-col"}`,
561
+ role: "radiogroup",
562
+ children: l
563
+ }),
564
+ (i || o) && /* @__PURE__ */ d("p", {
565
+ id: h,
566
+ className: `text-caption ${g ? "text-error" : "text-text-secondary"}`,
567
+ children: o ?? i
568
+ })
569
+ ]
570
+ })
571
+ });
580
572
  }
581
- function Ze({ value: t, label: r, description: o, disabled: n }) {
582
- const {
583
- name: s,
584
- value: i,
585
- onChange: a,
586
- disabled: c,
587
- hasError: d
588
- } = Je(), l = j(), u = c || n;
589
- return /* @__PURE__ */ m("div", { className: "flex items-start gap-2", children: [
590
- /* @__PURE__ */ e(
591
- "input",
592
- {
593
- id: l,
594
- type: "radio",
595
- name: s,
596
- value: t,
597
- checked: i !== void 0 ? i === t : void 0,
598
- disabled: u,
599
- onChange: () => a?.(t),
600
- className: [
601
- "mt-0.5 size-4 shrink-0 cursor-pointer appearance-none rounded-full border",
602
- "bg-bg-primary transition-colors",
603
- "checked:border-primary checked:border-[5px]",
604
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bg-primary",
605
- "disabled:cursor-not-allowed disabled:opacity-50",
606
- d ? "border-error" : "border-border hover:border-border-strong"
607
- ].join(" ")
608
- }
609
- ),
610
- /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
611
- /* @__PURE__ */ e(
612
- "label",
613
- {
614
- htmlFor: l,
615
- className: `text-body select-none ${u ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
616
- children: r
617
- }
618
- ),
619
- o && /* @__PURE__ */ e("span", { className: "text-caption text-text-secondary", children: o })
620
- ] })
621
- ] });
573
+ function Pe({ value: e, label: t, description: n, disabled: r }) {
574
+ let { name: i, value: o, onChange: s, disabled: c, hasError: l } = Ne(), u = a(), p = c || r;
575
+ return /* @__PURE__ */ f("div", {
576
+ className: "flex items-start gap-2",
577
+ children: [/* @__PURE__ */ d("input", {
578
+ id: u,
579
+ type: "radio",
580
+ name: i,
581
+ value: e,
582
+ checked: o === void 0 ? void 0 : o === e,
583
+ disabled: p,
584
+ onChange: () => s?.(e),
585
+ className: [
586
+ "mt-0.5 size-4 shrink-0 cursor-pointer appearance-none rounded-full border",
587
+ "bg-bg-primary transition-colors",
588
+ "checked:border-primary checked:border-[5px]",
589
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bg-primary",
590
+ "disabled:cursor-not-allowed disabled:opacity-50",
591
+ l ? "border-error" : "border-border hover:border-border-strong"
592
+ ].join(" ")
593
+ }), /* @__PURE__ */ f("div", {
594
+ className: "flex flex-col",
595
+ children: [/* @__PURE__ */ d("label", {
596
+ htmlFor: u,
597
+ className: `text-body select-none ${p ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
598
+ children: t
599
+ }), n && /* @__PURE__ */ d("span", {
600
+ className: "text-caption text-text-secondary",
601
+ children: n
602
+ })]
603
+ })]
604
+ });
622
605
  }
623
- Qe.Item = Ze;
624
- const et = (t) => ({
625
- ...t,
626
- borderRadius: 8,
627
- colors: {
628
- ...t.colors,
629
- primary: "var(--color-primary)",
630
- // focused border, selected option
631
- primary75: "var(--color-primary-hover)",
632
- primary50: "var(--color-bg-tertiary)",
633
- // option hover
634
- primary25: "var(--color-bg-secondary)",
635
- // option light hover
636
- neutral0: "var(--color-bg-primary)",
637
- // control background
638
- neutral5: "var(--color-bg-secondary)",
639
- neutral10: "var(--color-bg-tertiary)",
640
- // multi-value tag bg
641
- neutral20: "var(--color-border)",
642
- // control border
643
- neutral30: "var(--color-border-strong)",
644
- // hover border
645
- neutral40: "var(--color-text-muted)",
646
- // placeholder if no search
647
- neutral50: "var(--color-text-secondary)",
648
- // placeholder
649
- neutral60: "var(--color-text-secondary)",
650
- neutral70: "var(--color-text-primary)",
651
- neutral80: "var(--color-text-primary)",
652
- // selected text, input text
653
- neutral90: "var(--color-text-primary)",
654
- danger: "var(--color-error)",
655
- dangerLight: "var(--color-error-bg)"
656
- }
657
- }), oe = {
658
- control: ({ isFocused: t }) => `!shadow-sm !rounded-md !border-border ${t ? "!border-primary !ring-1 !ring-primary" : ""}`,
659
- menu: () => "!rounded-lg !shadow-lg !border !border-border",
660
- option: ({ isFocused: t, isSelected: r }) => `${r ? "!bg-primary !text-white" : t ? "!bg-bg-tertiary" : ""}`,
661
- multiValue: () => "!rounded-sm !bg-bg-tertiary"
606
+ Y.Item = Pe;
607
+ //#endregion
608
+ //#region src/theme/reactSelectStyles.ts
609
+ var Fe = (e) => ({
610
+ ...e,
611
+ borderRadius: 8,
612
+ colors: {
613
+ ...e.colors,
614
+ primary: "var(--color-primary)",
615
+ primary75: "var(--color-primary-hover)",
616
+ primary50: "var(--color-bg-tertiary)",
617
+ primary25: "var(--color-bg-secondary)",
618
+ neutral0: "var(--color-bg-primary)",
619
+ neutral5: "var(--color-bg-secondary)",
620
+ neutral10: "var(--color-bg-tertiary)",
621
+ neutral20: "var(--color-border)",
622
+ neutral30: "var(--color-border-strong)",
623
+ neutral40: "var(--color-text-muted)",
624
+ neutral50: "var(--color-text-secondary)",
625
+ neutral60: "var(--color-text-secondary)",
626
+ neutral70: "var(--color-text-primary)",
627
+ neutral80: "var(--color-text-primary)",
628
+ neutral90: "var(--color-text-primary)",
629
+ danger: "var(--color-error)",
630
+ dangerLight: "var(--color-error-bg)"
631
+ }
632
+ }), X = {
633
+ control: ({ isFocused: e }) => `!shadow-sm !rounded-md !border-border ${e ? "!border-primary !ring-1 !ring-primary" : ""}`,
634
+ menu: () => "!rounded-lg !shadow-lg !border !border-border",
635
+ option: ({ isFocused: e, isSelected: t }) => `${t ? "!bg-primary !text-white" : e ? "!bg-bg-tertiary" : ""}`,
636
+ multiValue: () => "!rounded-sm !bg-bg-tertiary"
662
637
  };
663
- function Tt({ label: t, helperText: r, error: o, className: n = "", ...s }) {
664
- const i = j(), a = s.inputId ?? i, c = `${a}-helper`, d = !!o;
665
- return /* @__PURE__ */ m("div", { className: `flex flex-col gap-1.5 ${n}`, children: [
666
- t && /* @__PURE__ */ e("label", { htmlFor: a, className: "text-small font-medium text-text-primary", children: t }),
667
- /* @__PURE__ */ e(
668
- Be,
669
- {
670
- inputId: a,
671
- theme: et,
672
- menuPortalTarget: document.body,
673
- styles: {
674
- menuPortal: (l) => ({ ...l, zIndex: 50 }),
675
- ...s.styles
676
- },
677
- classNames: {
678
- ...oe,
679
- control: (l) => {
680
- const u = oe.control?.(l) ?? "";
681
- return d ? `${u} !border-error !focus:ring-error` : u;
682
- }
683
- },
684
- "aria-invalid": d || void 0,
685
- "aria-errormessage": d ? c : void 0,
686
- ...s
687
- }
688
- ),
689
- (r || o) && /* @__PURE__ */ e(
690
- "p",
691
- {
692
- id: c,
693
- className: `text-caption ${d ? "text-error" : "text-text-secondary"}`,
694
- children: o ?? r
695
- }
696
- )
697
- ] });
638
+ //#endregion
639
+ //#region src/components/ui/Select.tsx
640
+ function Ie({ label: e, helperText: t, error: n, className: r = "", ...i }) {
641
+ let o = a(), s = i.inputId ?? o, c = `${s}-helper`, l = !!n;
642
+ return /* @__PURE__ */ f("div", {
643
+ className: `flex flex-col gap-1.5 ${r}`,
644
+ children: [
645
+ e && /* @__PURE__ */ d("label", {
646
+ htmlFor: s,
647
+ className: "text-small font-medium text-text-primary",
648
+ children: e
649
+ }),
650
+ /* @__PURE__ */ d(ee, {
651
+ inputId: s,
652
+ theme: Fe,
653
+ menuPortalTarget: document.body,
654
+ styles: {
655
+ menuPortal: (e) => ({
656
+ ...e,
657
+ zIndex: 50
658
+ }),
659
+ ...i.styles
660
+ },
661
+ classNames: {
662
+ ...X,
663
+ control: (e) => {
664
+ let t = X.control?.(e) ?? "";
665
+ return l ? `${t} !border-error !focus:ring-error` : t;
666
+ }
667
+ },
668
+ "aria-invalid": l || void 0,
669
+ "aria-errormessage": l ? c : void 0,
670
+ ...i
671
+ }),
672
+ (t || n) && /* @__PURE__ */ d("p", {
673
+ id: c,
674
+ className: `text-caption ${l ? "text-error" : "text-text-secondary"}`,
675
+ children: n ?? t
676
+ })
677
+ ]
678
+ });
698
679
  }
699
- const Rt = $(function({ label: r, helperText: o, className: n = "", id: s, disabled: i, ...a }, c) {
700
- const d = j(), l = s ?? d, u = `${l}-helper`;
701
- return /* @__PURE__ */ m("div", { className: `flex flex-col gap-1 ${n}`, children: [
702
- /* @__PURE__ */ m("div", { className: "flex items-center gap-3", children: [
703
- /* @__PURE__ */ m("div", { className: "relative inline-flex items-center", children: [
704
- /* @__PURE__ */ e(
705
- "input",
706
- {
707
- ref: c,
708
- id: l,
709
- type: "checkbox",
710
- role: "switch",
711
- disabled: i,
712
- "aria-describedby": o ? u : void 0,
713
- className: "peer sr-only",
714
- ...a
715
- }
716
- ),
717
- /* @__PURE__ */ e(
718
- "label",
719
- {
720
- htmlFor: l,
721
- className: [
722
- "relative h-6 w-11 rounded-full transition-colors",
723
- "bg-border-strong",
724
- "peer-checked:bg-primary",
725
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-bg-primary",
726
- "peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",
727
- i ? "cursor-not-allowed" : "cursor-pointer",
728
- // Thumb
729
- "after:content-[''] after:absolute after:top-0.5 after:left-0.5",
730
- "after:size-5 after:rounded-full after:bg-white after:shadow-sm",
731
- "after:transition-transform peer-checked:after:translate-x-5"
732
- ].join(" "),
733
- "aria-hidden": "true"
734
- }
735
- )
736
- ] }),
737
- r && /* @__PURE__ */ e(
738
- "label",
739
- {
740
- htmlFor: l,
741
- className: `text-body select-none ${i ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
742
- children: r
743
- }
744
- )
745
- ] }),
746
- o && /* @__PURE__ */ e("p", { id: u, className: "text-caption text-text-secondary pl-14", children: o })
747
- ] });
748
- }), Mt = $(function({
749
- label: r,
750
- helperText: o,
751
- error: n,
752
- autoGrow: s = !1,
753
- minRows: i = 3,
754
- className: a = "",
755
- id: c,
756
- disabled: d,
757
- onChange: l,
758
- ...u
759
- }, f) {
760
- const h = j(), p = c ?? h, y = `${p}-helper`, b = !!n, v = D(null), N = k(() => {
761
- const x = v.current;
762
- !x || !s || (x.style.height = "auto", x.style.height = `${x.scrollHeight}px`);
763
- }, [s]);
764
- I(() => {
765
- N();
766
- }, [N, u.value, u.defaultValue]);
767
- const g = k(
768
- (x) => {
769
- v.current = x, typeof f == "function" ? f(x) : f && (f.current = x);
770
- },
771
- [f]
772
- );
773
- return /* @__PURE__ */ m("div", { className: `flex flex-col gap-1.5 ${a}`, children: [
774
- r && /* @__PURE__ */ e("label", { htmlFor: p, className: "text-small font-medium text-text-primary", children: r }),
775
- /* @__PURE__ */ e(
776
- "textarea",
777
- {
778
- ref: g,
779
- id: p,
780
- rows: i,
781
- disabled: d,
782
- "aria-invalid": b || void 0,
783
- "aria-describedby": o || n ? y : void 0,
784
- onChange: (x) => {
785
- l?.(x), N();
786
- },
787
- className: [
788
- "w-full rounded-md border bg-bg-primary text-text-primary placeholder:text-text-muted",
789
- "px-3 py-2 text-body outline-none transition-colors",
790
- "focus:border-primary focus:ring-1 focus:ring-primary",
791
- "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-bg-secondary",
792
- s ? "resize-none overflow-hidden" : "resize-y",
793
- b ? "border-error focus:border-error focus:ring-error" : "border-border hover:border-border-strong"
794
- ].join(" "),
795
- ...u
796
- }
797
- ),
798
- (o || n) && /* @__PURE__ */ e(
799
- "p",
800
- {
801
- id: y,
802
- className: `text-caption ${b ? "text-error" : "text-text-secondary"}`,
803
- children: n ?? o
804
- }
805
- )
806
- ] });
807
- }), pe = R({
808
- close: () => {
809
- },
810
- getItemProps: () => ({}),
811
- activeIndex: null,
812
- setActiveIndex: () => {
813
- }
680
+ //#endregion
681
+ //#region src/components/ui/Switch.tsx
682
+ var Le = t(function({ label: e, helperText: t, className: n = "", id: r, disabled: i, ...o }, s) {
683
+ let c = a(), l = r ?? c, u = `${l}-helper`;
684
+ return /* @__PURE__ */ f("div", {
685
+ className: `flex flex-col gap-1 ${n}`,
686
+ children: [/* @__PURE__ */ f("div", {
687
+ className: "flex items-center gap-3",
688
+ children: [/* @__PURE__ */ f("div", {
689
+ className: "relative inline-flex items-center",
690
+ children: [/* @__PURE__ */ d("input", {
691
+ ref: s,
692
+ id: l,
693
+ type: "checkbox",
694
+ role: "switch",
695
+ disabled: i,
696
+ "aria-describedby": t ? u : void 0,
697
+ className: "peer sr-only",
698
+ ...o
699
+ }), /* @__PURE__ */ d("label", {
700
+ htmlFor: l,
701
+ className: [
702
+ "relative h-6 w-11 rounded-full transition-colors",
703
+ "bg-border-strong",
704
+ "peer-checked:bg-primary",
705
+ "peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-bg-primary",
706
+ "peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",
707
+ i ? "cursor-not-allowed" : "cursor-pointer",
708
+ "after:content-[''] after:absolute after:top-0.5 after:left-0.5",
709
+ "after:size-5 after:rounded-full after:bg-white after:shadow-sm",
710
+ "after:transition-transform peer-checked:after:translate-x-5"
711
+ ].join(" "),
712
+ "aria-hidden": "true"
713
+ })]
714
+ }), e && /* @__PURE__ */ d("label", {
715
+ htmlFor: l,
716
+ className: `text-body select-none ${i ? "text-text-muted cursor-not-allowed" : "text-text-primary cursor-pointer"}`,
717
+ children: e
718
+ })]
719
+ }), t && /* @__PURE__ */ d("p", {
720
+ id: u,
721
+ className: "text-caption text-text-secondary pl-14",
722
+ children: t
723
+ })]
724
+ });
725
+ }), Re = t(function({ label: e, helperText: t, error: r, autoGrow: o = !1, minRows: c = 3, className: l = "", id: u, disabled: p, onChange: m, ...h }, g) {
726
+ let _ = a(), v = u ?? _, y = `${v}-helper`, b = !!r, x = s(null), S = n(() => {
727
+ let e = x.current;
728
+ !e || !o || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
729
+ }, [o]);
730
+ i(() => {
731
+ S();
732
+ }, [
733
+ S,
734
+ h.value,
735
+ h.defaultValue
736
+ ]);
737
+ let C = n((e) => {
738
+ x.current = e, typeof g == "function" ? g(e) : g && (g.current = e);
739
+ }, [g]);
740
+ return /* @__PURE__ */ f("div", {
741
+ className: `flex flex-col gap-1.5 ${l}`,
742
+ children: [
743
+ e && /* @__PURE__ */ d("label", {
744
+ htmlFor: v,
745
+ className: "text-small font-medium text-text-primary",
746
+ children: e
747
+ }),
748
+ /* @__PURE__ */ d("textarea", {
749
+ ref: C,
750
+ id: v,
751
+ rows: c,
752
+ disabled: p,
753
+ "aria-invalid": b || void 0,
754
+ "aria-describedby": t || r ? y : void 0,
755
+ onChange: (e) => {
756
+ m?.(e), S();
757
+ },
758
+ className: [
759
+ "w-full rounded-md border bg-bg-primary text-text-primary placeholder:text-text-muted",
760
+ "px-3 py-2 text-body outline-none transition-colors",
761
+ "focus:border-primary focus:ring-1 focus:ring-primary",
762
+ "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-bg-secondary",
763
+ o ? "resize-none overflow-hidden" : "resize-y",
764
+ b ? "border-error focus:border-error focus:ring-error" : "border-border hover:border-border-strong"
765
+ ].join(" "),
766
+ ...h
767
+ }),
768
+ (t || r) && /* @__PURE__ */ d("p", {
769
+ id: y,
770
+ className: `text-caption ${b ? "text-error" : "text-text-secondary"}`,
771
+ children: r ?? t
772
+ })
773
+ ]
774
+ });
775
+ }), ze = e({
776
+ close: () => {},
777
+ getItemProps: () => ({}),
778
+ activeIndex: null,
779
+ setActiveIndex: () => {}
814
780
  });
815
- function Ot() {
816
- return /* @__PURE__ */ e("div", { role: "separator", className: "my-1 border-t border-border" });
781
+ function Be() {
782
+ return /* @__PURE__ */ d("div", {
783
+ role: "separator",
784
+ className: "my-1 border-t border-border"
785
+ });
817
786
  }
818
- const Vt = $(function({ children: r, icon: o, danger: n = !1, disabled: s = !1, onClick: i, className: a = "", ...c }, d) {
819
- const { close: l } = M(pe);
820
- return /* @__PURE__ */ m(
821
- "button",
822
- {
823
- ref: d,
824
- type: "button",
825
- role: "menuitem",
826
- disabled: s,
827
- onClick: () => {
828
- s || (i?.(), l());
829
- },
830
- className: [
831
- "flex w-full items-center gap-2 px-3 py-2 text-small rounded-md",
832
- "text-left transition-colors outline-none cursor-pointer",
833
- n ? "text-error hover:bg-error-bg focus:bg-error-bg" : "text-text-primary hover:bg-bg-tertiary focus:bg-bg-tertiary",
834
- s && "opacity-50 pointer-events-none",
835
- a
836
- ].filter(Boolean).join(" "),
837
- ...c,
838
- children: [
839
- o && /* @__PURE__ */ e("span", { className: "shrink-0 size-4", children: o }),
840
- r
841
- ]
842
- }
843
- );
787
+ var Ve = t(function({ children: e, icon: t, danger: n = !1, disabled: i = !1, onClick: a, className: o = "", ...s }, c) {
788
+ let { close: l } = r(ze);
789
+ return /* @__PURE__ */ f("button", {
790
+ ref: c,
791
+ type: "button",
792
+ role: "menuitem",
793
+ disabled: i,
794
+ onClick: () => {
795
+ i || (a?.(), l());
796
+ },
797
+ className: [
798
+ "flex w-full items-center gap-2 px-3 py-2 text-small rounded-md",
799
+ "text-left transition-colors outline-none cursor-pointer",
800
+ n ? "text-error hover:bg-error-bg focus:bg-error-bg" : "text-text-primary hover:bg-bg-tertiary focus:bg-bg-tertiary",
801
+ i && "opacity-50 pointer-events-none",
802
+ o
803
+ ].filter(Boolean).join(" "),
804
+ ...s,
805
+ children: [t && /* @__PURE__ */ d("span", {
806
+ className: "shrink-0 size-4",
807
+ children: t
808
+ }), e]
809
+ });
844
810
  });
845
- function Ut({
846
- trigger: t,
847
- children: r,
848
- placement: o = "bottom-start",
849
- className: n = ""
850
- }) {
851
- const [s, i] = C(!1), [a, c] = C(null), d = D([]), { refs: l, floatingStyles: u, context: f } = G({
852
- open: s,
853
- onOpenChange: i,
854
- placement: o,
855
- middleware: [Y(4), _(), W({ padding: 8 })],
856
- whileElementsMounted: X
857
- }), h = de(f), p = J(f), y = Q(f, { role: "menu" }), b = je(f, {
858
- listRef: d,
859
- activeIndex: a,
860
- onNavigate: c,
861
- loop: !0
862
- }), { getReferenceProps: v, getFloatingProps: N, getItemProps: g } = Z([
863
- h,
864
- p,
865
- y,
866
- b
867
- ]), x = k(() => i(!1), []);
868
- return /* @__PURE__ */ m(V, { children: [
869
- /* @__PURE__ */ e("span", { ref: l.setReference, className: "inline-flex", ...v(), children: t }),
870
- s && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(me, { context: f, modal: !1, children: /* @__PURE__ */ e(
871
- "div",
872
- {
873
- ref: l.setFloating,
874
- style: u,
875
- className: [
876
- "z-50 min-w-[10rem] p-1 rounded-lg border border-border",
877
- "bg-bg-primary shadow-lg animate-floating-in",
878
- n
879
- ].join(" "),
880
- ...N(),
881
- children: /* @__PURE__ */ e(
882
- pe.Provider,
883
- {
884
- value: { close: x, getItemProps: g, activeIndex: a, setActiveIndex: c },
885
- children: r
886
- }
887
- )
888
- }
889
- ) }) })
890
- ] });
811
+ function He({ trigger: e, children: t, placement: r = "bottom-start", className: i = "" }) {
812
+ let [a, o] = c(!1), [l, p] = c(null), m = s([]), { refs: h, floatingStyles: g, context: _ } = V({
813
+ open: a,
814
+ onOpenChange: o,
815
+ placement: r,
816
+ middleware: [
817
+ L(4),
818
+ I(),
819
+ R({ padding: 8 })
820
+ ],
821
+ whileElementsMounted: F
822
+ }), { getReferenceProps: v, getFloatingProps: y, getItemProps: b } = H([
823
+ z(_),
824
+ B(_),
825
+ U(_, { role: "menu" }),
826
+ ae(_, {
827
+ listRef: m,
828
+ activeIndex: l,
829
+ onNavigate: p,
830
+ loop: !0
831
+ })
832
+ ]), x = n(() => o(!1), []);
833
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("span", {
834
+ ref: h.setReference,
835
+ className: "inline-flex",
836
+ ...v(),
837
+ children: e
838
+ }), a && /* @__PURE__ */ d(P, { children: /* @__PURE__ */ d(te, {
839
+ context: _,
840
+ modal: !1,
841
+ children: /* @__PURE__ */ d("div", {
842
+ ref: h.setFloating,
843
+ style: g,
844
+ className: [
845
+ "z-50 min-w-[10rem] p-1 rounded-lg border border-border",
846
+ "bg-bg-primary shadow-lg animate-floating-in",
847
+ i
848
+ ].join(" "),
849
+ ...y(),
850
+ children: /* @__PURE__ */ d(ze.Provider, {
851
+ value: {
852
+ close: x,
853
+ getItemProps: b,
854
+ activeIndex: l,
855
+ setActiveIndex: p
856
+ },
857
+ children: t
858
+ })
859
+ })
860
+ }) })] });
891
861
  }
892
- function Kt({
893
- trigger: t,
894
- children: r,
895
- placement: o = "bottom",
896
- open: n,
897
- onOpenChange: s,
898
- className: i = ""
899
- }) {
900
- const [a, c] = C(!1), d = n !== void 0, l = d ? n : a, u = d ? (x) => s?.(x) : c, { refs: f, floatingStyles: h, context: p } = G({
901
- open: l,
902
- onOpenChange: u,
903
- placement: o,
904
- middleware: [Y(8), _(), W({ padding: 8 })],
905
- whileElementsMounted: X
906
- }), y = de(p), b = J(p), v = Q(p), { getReferenceProps: N, getFloatingProps: g } = Z([y, b, v]);
907
- return /* @__PURE__ */ m(V, { children: [
908
- /* @__PURE__ */ e("span", { ref: f.setReference, className: "inline-flex", ...N(), children: t }),
909
- l && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(me, { context: p, modal: !1, children: /* @__PURE__ */ e(
910
- "div",
911
- {
912
- ref: f.setFloating,
913
- style: h,
914
- className: [
915
- "z-50 rounded-lg border border-border p-md",
916
- "bg-bg-primary shadow-lg animate-floating-in",
917
- i
918
- ].join(" "),
919
- ...g(),
920
- children: r
921
- }
922
- ) }) })
923
- ] });
862
+ //#endregion
863
+ //#region src/components/ui/Popover.tsx
864
+ function Ue({ trigger: e, children: t, placement: n = "bottom", open: r, onOpenChange: i, className: a = "" }) {
865
+ let [o, s] = c(!1), l = r !== void 0, p = l ? r : o, { refs: m, floatingStyles: h, context: g } = V({
866
+ open: p,
867
+ onOpenChange: l ? (e) => i?.(e) : s,
868
+ placement: n,
869
+ middleware: [
870
+ L(8),
871
+ I(),
872
+ R({ padding: 8 })
873
+ ],
874
+ whileElementsMounted: F
875
+ }), { getReferenceProps: _, getFloatingProps: v } = H([
876
+ z(g),
877
+ B(g),
878
+ U(g)
879
+ ]);
880
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("span", {
881
+ ref: m.setReference,
882
+ className: "inline-flex",
883
+ ..._(),
884
+ children: e
885
+ }), p && /* @__PURE__ */ d(P, { children: /* @__PURE__ */ d(te, {
886
+ context: g,
887
+ modal: !1,
888
+ children: /* @__PURE__ */ d("div", {
889
+ ref: m.setFloating,
890
+ style: h,
891
+ className: [
892
+ "z-50 rounded-lg border border-border p-md",
893
+ "bg-bg-primary shadow-lg animate-floating-in",
894
+ a
895
+ ].join(" "),
896
+ ...v(),
897
+ children: t
898
+ })
899
+ }) })] });
924
900
  }
925
- const fe = R({
926
- activeValue: "",
927
- idPrefix: ""
901
+ //#endregion
902
+ //#region src/components/ui/Tabs.tsx
903
+ var We = e({
904
+ activeValue: "",
905
+ idPrefix: ""
928
906
  });
929
- function Ht({ value: t, children: r, className: o = "" }) {
930
- const { activeValue: n, idPrefix: s } = M(fe), i = n === t;
931
- return /* @__PURE__ */ e(
932
- "div",
933
- {
934
- id: `${s}-panel-${t}`,
935
- role: "tabpanel",
936
- "aria-labelledby": `${s}-tab-${t}`,
937
- hidden: !i,
938
- tabIndex: 0,
939
- className: o,
940
- children: i && r
941
- }
942
- );
907
+ function Ge({ value: e, children: t, className: n = "" }) {
908
+ let { activeValue: i, idPrefix: a } = r(We), o = i === e;
909
+ return /* @__PURE__ */ d("div", {
910
+ id: `${a}-panel-${e}`,
911
+ role: "tabpanel",
912
+ "aria-labelledby": `${a}-tab-${e}`,
913
+ hidden: !o,
914
+ tabIndex: 0,
915
+ className: n,
916
+ children: o && t
917
+ });
943
918
  }
944
- function qt({
945
- items: t,
946
- value: r,
947
- defaultValue: o,
948
- onChange: n,
949
- children: s,
950
- className: i = ""
951
- }) {
952
- const a = j().replace(/:/g, ""), c = D(null), d = r !== void 0, [l, u] = C(
953
- () => o ?? t.find((b) => !b.disabled)?.value ?? t[0]?.value ?? ""
954
- ), f = d ? r : l, h = k(
955
- (b) => {
956
- d || u(b), n?.(b);
957
- },
958
- [d, n]
959
- ), p = t.filter((b) => !b.disabled), y = (b) => {
960
- const v = p.findIndex((x) => x.value === f);
961
- let N = v;
962
- switch (b.key) {
963
- case "ArrowRight":
964
- case "ArrowDown":
965
- b.preventDefault(), N = (v + 1) % p.length;
966
- break;
967
- case "ArrowLeft":
968
- case "ArrowUp":
969
- b.preventDefault(), N = (v - 1 + p.length) % p.length;
970
- break;
971
- case "Home":
972
- b.preventDefault(), N = 0;
973
- break;
974
- case "End":
975
- b.preventDefault(), N = p.length - 1;
976
- break;
977
- default:
978
- return;
979
- }
980
- const g = p[N];
981
- g && (h(g.value), c.current?.querySelector(
982
- `[data-tab-value="${g.value}"]`
983
- )?.focus());
984
- };
985
- return /* @__PURE__ */ e(fe.Provider, { value: { activeValue: f, idPrefix: a }, children: /* @__PURE__ */ m("div", { className: i, children: [
986
- /* @__PURE__ */ e(
987
- "div",
988
- {
989
- ref: c,
990
- role: "tablist",
991
- "aria-orientation": "horizontal",
992
- onKeyDown: y,
993
- className: "flex border-b border-border",
994
- children: t.map((b) => {
995
- const v = b.value === f;
996
- return /* @__PURE__ */ m(
997
- "button",
998
- {
999
- id: `${a}-tab-${b.value}`,
1000
- role: "tab",
1001
- type: "button",
1002
- "data-tab-value": b.value,
1003
- "aria-selected": v,
1004
- "aria-controls": `${a}-panel-${b.value}`,
1005
- tabIndex: v ? 0 : -1,
1006
- disabled: b.disabled,
1007
- onClick: () => h(b.value),
1008
- className: [
1009
- "inline-flex items-center gap-1.5 px-4 py-2.5 text-small font-medium",
1010
- "border-b-2 -mb-px transition-colors outline-none cursor-pointer",
1011
- "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
1012
- v ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary hover:border-border-strong",
1013
- b.disabled && "opacity-50 pointer-events-none"
1014
- ].filter(Boolean).join(" "),
1015
- children: [
1016
- b.icon && /* @__PURE__ */ e("span", { className: "shrink-0 size-4", children: b.icon }),
1017
- b.label
1018
- ]
1019
- },
1020
- b.value
1021
- );
1022
- })
1023
- }
1024
- ),
1025
- s
1026
- ] }) });
919
+ function Ke({ items: e, value: t, defaultValue: r, onChange: i, children: o, className: l = "" }) {
920
+ let u = a().replace(/:/g, ""), p = s(null), m = t !== void 0, [h, g] = c(() => r ?? e.find((e) => !e.disabled)?.value ?? e[0]?.value ?? ""), _ = m ? t : h, v = n((e) => {
921
+ m || g(e), i?.(e);
922
+ }, [m, i]), y = e.filter((e) => !e.disabled), b = (e) => {
923
+ let t = y.findIndex((e) => e.value === _), n = t;
924
+ switch (e.key) {
925
+ case "ArrowRight":
926
+ case "ArrowDown":
927
+ e.preventDefault(), n = (t + 1) % y.length;
928
+ break;
929
+ case "ArrowLeft":
930
+ case "ArrowUp":
931
+ e.preventDefault(), n = (t - 1 + y.length) % y.length;
932
+ break;
933
+ case "Home":
934
+ e.preventDefault(), n = 0;
935
+ break;
936
+ case "End":
937
+ e.preventDefault(), n = y.length - 1;
938
+ break;
939
+ default: return;
940
+ }
941
+ let r = y[n];
942
+ r && (v(r.value), (p.current?.querySelector(`[data-tab-value="${r.value}"]`))?.focus());
943
+ };
944
+ return /* @__PURE__ */ d(We.Provider, {
945
+ value: {
946
+ activeValue: _,
947
+ idPrefix: u
948
+ },
949
+ children: /* @__PURE__ */ f("div", {
950
+ className: l,
951
+ children: [/* @__PURE__ */ d("div", {
952
+ ref: p,
953
+ role: "tablist",
954
+ "aria-orientation": "horizontal",
955
+ onKeyDown: b,
956
+ className: "flex border-b border-border",
957
+ children: e.map((e) => {
958
+ let t = e.value === _;
959
+ return /* @__PURE__ */ f("button", {
960
+ id: `${u}-tab-${e.value}`,
961
+ role: "tab",
962
+ type: "button",
963
+ "data-tab-value": e.value,
964
+ "aria-selected": t,
965
+ "aria-controls": `${u}-panel-${e.value}`,
966
+ tabIndex: t ? 0 : -1,
967
+ disabled: e.disabled,
968
+ onClick: () => v(e.value),
969
+ className: [
970
+ "inline-flex items-center gap-1.5 px-4 py-2.5 text-small font-medium",
971
+ "border-b-2 -mb-px transition-colors outline-none cursor-pointer",
972
+ "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
973
+ t ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary hover:border-border-strong",
974
+ e.disabled && "opacity-50 pointer-events-none"
975
+ ].filter(Boolean).join(" "),
976
+ children: [e.icon && /* @__PURE__ */ d("span", {
977
+ className: "shrink-0 size-4",
978
+ children: e.icon
979
+ }), e.label]
980
+ }, e.value);
981
+ })
982
+ }), o]
983
+ })
984
+ });
1027
985
  }
1028
- const tt = {
1029
- top: "bottom",
1030
- bottom: "top",
1031
- left: "right",
1032
- right: "left"
986
+ //#endregion
987
+ //#region src/components/ui/Tooltip.tsx
988
+ var qe = {
989
+ top: "bottom",
990
+ bottom: "top",
991
+ left: "right",
992
+ right: "left"
1033
993
  };
1034
- function Gt({
1035
- children: t,
1036
- content: r,
1037
- placement: o = "top",
1038
- delay: n = 200,
1039
- className: s = ""
1040
- }) {
1041
- const [i, a] = C(!1), c = D(null), {
1042
- refs: d,
1043
- floatingStyles: l,
1044
- context: u,
1045
- middlewareData: f,
1046
- placement: h
1047
- } = G({
1048
- open: i,
1049
- onOpenChange: a,
1050
- placement: o,
1051
- middleware: [
1052
- Y(8),
1053
- _(),
1054
- W({ padding: 8 }),
1055
- // eslint-disable-next-line react-hooks/refs -- floating-ui arrow middleware needs ref object
1056
- Fe({ element: c })
1057
- ],
1058
- whileElementsMounted: X
1059
- }), p = Ee(u, { delay: n, move: !1 }), y = Se(u), b = J(u), v = Q(u, { role: "tooltip" }), { getReferenceProps: N, getFloatingProps: g } = Z([p, y, b, v]), x = h.split("-")[0], z = f.arrow?.x, A = f.arrow?.y;
1060
- return /* @__PURE__ */ m(V, { children: [
1061
- /* @__PURE__ */ e("span", { ref: d.setReference, className: "inline-flex", ...N(), children: t }),
1062
- i && r && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ m(
1063
- "div",
1064
- {
1065
- ref: d.setFloating,
1066
- style: l,
1067
- role: "tooltip",
1068
- className: [
1069
- "z-50 max-w-[var(--container-xs)] px-3 py-1.5 rounded-md text-small",
1070
- "bg-text-primary text-bg-primary shadow-md",
1071
- "pointer-events-none animate-floating-in",
1072
- s
1073
- ].join(" "),
1074
- ...g(),
1075
- children: [
1076
- r,
1077
- /* @__PURE__ */ e(
1078
- "div",
1079
- {
1080
- ref: c,
1081
- className: "absolute size-2 bg-text-primary rotate-45",
1082
- style: {
1083
- left: z != null ? `${z}px` : "",
1084
- top: A != null ? `${A}px` : "",
1085
- [tt[x]]: "-4px"
1086
- }
1087
- }
1088
- )
1089
- ]
1090
- }
1091
- ) })
1092
- ] });
994
+ function Je({ children: e, content: t, placement: n = "top", delay: r = 200, className: i = "" }) {
995
+ let [a, o] = c(!1), l = s(null), { refs: p, floatingStyles: m, context: h, middlewareData: g, placement: _ } = V({
996
+ open: a,
997
+ onOpenChange: o,
998
+ placement: n,
999
+ middleware: [
1000
+ L(8),
1001
+ I(),
1002
+ R({ padding: 8 }),
1003
+ ne({ element: l })
1004
+ ],
1005
+ whileElementsMounted: F
1006
+ }), { getReferenceProps: v, getFloatingProps: y } = H([
1007
+ ie(h, {
1008
+ delay: r,
1009
+ move: !1
1010
+ }),
1011
+ re(h),
1012
+ B(h),
1013
+ U(h, { role: "tooltip" })
1014
+ ]), b = _.split("-")[0], x = g.arrow?.x, S = g.arrow?.y;
1015
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("span", {
1016
+ ref: p.setReference,
1017
+ className: "inline-flex",
1018
+ ...v(),
1019
+ children: e
1020
+ }), a && t && /* @__PURE__ */ d(P, { children: /* @__PURE__ */ f("div", {
1021
+ ref: p.setFloating,
1022
+ style: m,
1023
+ role: "tooltip",
1024
+ className: [
1025
+ "z-50 max-w-[var(--container-xs)] px-3 py-1.5 rounded-md text-small",
1026
+ "bg-text-primary text-bg-primary shadow-md",
1027
+ "pointer-events-none animate-floating-in",
1028
+ i
1029
+ ].join(" "),
1030
+ ...y(),
1031
+ children: [t, /* @__PURE__ */ d("div", {
1032
+ ref: l,
1033
+ className: "absolute size-2 bg-text-primary rotate-45",
1034
+ style: {
1035
+ left: x == null ? "" : `${x}px`,
1036
+ top: S == null ? "" : `${S}px`,
1037
+ [qe[b]]: "-4px"
1038
+ }
1039
+ })]
1040
+ }) })] });
1093
1041
  }
1094
- function rt() {
1095
- const { i18n: t } = ie(), r = t.language ?? "en", o = k(
1096
- (s) => {
1097
- t.changeLanguage(s);
1098
- },
1099
- [t]
1100
- ), n = k(() => {
1101
- o(r === "en" ? "fr" : "en");
1102
- }, [r, o]);
1103
- return { language: r, toggleLanguage: n, setLanguage: o };
1042
+ //#endregion
1043
+ //#region src/hooks/useLanguage.ts
1044
+ function Ye() {
1045
+ let { i18n: e } = N(), t = e.language ?? "en", r = n((t) => {
1046
+ e.changeLanguage(t);
1047
+ }, [e]);
1048
+ return {
1049
+ language: t,
1050
+ toggleLanguage: n(() => {
1051
+ r(t === "en" ? "fr" : "en");
1052
+ }, [t, r]),
1053
+ setLanguage: r
1054
+ };
1104
1055
  }
1105
- const nt = [
1106
- { value: "en", label: "EN" },
1107
- { value: "fr", label: "FR" }
1108
- ];
1109
- function Xt({ className: t = "" }) {
1110
- const { language: r, setLanguage: o } = rt();
1111
- return /* @__PURE__ */ e(
1112
- "div",
1113
- {
1114
- role: "radiogroup",
1115
- "aria-label": "Language",
1116
- className: [
1117
- "inline-flex items-center rounded-full border border-border bg-bg-secondary p-0.5",
1118
- t
1119
- ].filter(Boolean).join(" "),
1120
- children: nt.map(({ value: n, label: s }) => {
1121
- const i = r === n;
1122
- return /* @__PURE__ */ e(
1123
- "button",
1124
- {
1125
- type: "button",
1126
- role: "radio",
1127
- "aria-checked": i,
1128
- onClick: () => o(n),
1129
- className: [
1130
- "rounded-full px-2.5 py-0.5 text-caption font-medium transition-colors cursor-pointer",
1131
- i ? "bg-primary text-white shadow-sm" : "text-text-secondary hover:text-text-primary"
1132
- ].join(" "),
1133
- children: s
1134
- },
1135
- n
1136
- );
1137
- })
1138
- }
1139
- );
1056
+ //#endregion
1057
+ //#region src/components/ui/LanguageSwitcher.tsx
1058
+ var Xe = [{
1059
+ value: "en",
1060
+ label: "EN"
1061
+ }, {
1062
+ value: "fr",
1063
+ label: "FR"
1064
+ }];
1065
+ function Ze({ className: e = "" }) {
1066
+ let { language: t, setLanguage: n } = Ye();
1067
+ return /* @__PURE__ */ d("div", {
1068
+ role: "radiogroup",
1069
+ "aria-label": "Language",
1070
+ className: ["inline-flex items-center rounded-full border border-border bg-bg-secondary p-0.5", e].filter(Boolean).join(" "),
1071
+ children: Xe.map(({ value: e, label: r }) => {
1072
+ let i = t === e;
1073
+ return /* @__PURE__ */ d("button", {
1074
+ type: "button",
1075
+ role: "radio",
1076
+ "aria-checked": i,
1077
+ onClick: () => n(e),
1078
+ className: ["rounded-full px-2.5 py-0.5 text-caption font-medium transition-colors cursor-pointer", i ? "bg-primary text-white shadow-sm" : "text-text-secondary hover:text-text-primary"].join(" "),
1079
+ children: r
1080
+ }, e);
1081
+ })
1082
+ });
1140
1083
  }
1141
- const re = "poesis-theme", H = /* @__PURE__ */ new Set();
1142
- function ot() {
1143
- H.forEach((t) => t());
1084
+ //#endregion
1085
+ //#region src/hooks/useTheme.ts
1086
+ var Z = "poesis-theme", Q = /* @__PURE__ */ new Set();
1087
+ function Qe() {
1088
+ Q.forEach((e) => e());
1144
1089
  }
1145
- function it(t) {
1146
- return H.add(t), () => H.delete(t);
1090
+ function $e(e) {
1091
+ return Q.add(e), () => Q.delete(e);
1147
1092
  }
1148
- function st() {
1149
- return document.documentElement.classList.contains("dark") ? "dark" : "light";
1093
+ function et() {
1094
+ return document.documentElement.classList.contains("dark") ? "dark" : "light";
1150
1095
  }
1151
- function at() {
1152
- return "light";
1096
+ function tt() {
1097
+ return "light";
1153
1098
  }
1154
- function T(t) {
1155
- t === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark"), localStorage.setItem(re, t), ot();
1099
+ function $(e) {
1100
+ e === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark"), localStorage.setItem(Z, e), Qe();
1156
1101
  }
1157
- function Yt() {
1158
- const t = localStorage.getItem(re);
1159
- if (t) {
1160
- T(t);
1161
- return;
1162
- }
1163
- const r = window.matchMedia("(prefers-color-scheme: dark)").matches;
1164
- T(r ? "dark" : "light");
1102
+ function nt() {
1103
+ let e = localStorage.getItem(Z);
1104
+ if (e) {
1105
+ $(e);
1106
+ return;
1107
+ }
1108
+ let t = window.matchMedia("(prefers-color-scheme: dark)").matches;
1109
+ $(t ? "dark" : "light");
1165
1110
  }
1166
- function lt() {
1167
- const t = ge(it, st, at);
1168
- I(() => {
1169
- const n = window.matchMedia("(prefers-color-scheme: dark)"), s = (i) => {
1170
- localStorage.getItem(re) || T(i.matches ? "dark" : "light");
1171
- };
1172
- return n.addEventListener("change", s), () => n.removeEventListener("change", s);
1173
- }, []);
1174
- const r = k(() => {
1175
- T(t === "dark" ? "light" : "dark");
1176
- }, [t]), o = k((n) => {
1177
- T(n);
1178
- }, []);
1179
- return { theme: t, toggleTheme: r, setTheme: o, isDark: t === "dark" };
1111
+ function rt() {
1112
+ let e = l($e, et, tt);
1113
+ return i(() => {
1114
+ let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
1115
+ localStorage.getItem(Z) || $(e.matches ? "dark" : "light");
1116
+ };
1117
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
1118
+ }, []), {
1119
+ theme: e,
1120
+ toggleTheme: n(() => {
1121
+ $(e === "dark" ? "light" : "dark");
1122
+ }, [e]),
1123
+ setTheme: n((e) => {
1124
+ $(e);
1125
+ }, []),
1126
+ isDark: e === "dark"
1127
+ };
1180
1128
  }
1181
- function _t({ variant: t = "ghost", size: r = "md", className: o }) {
1182
- const { isDark: n, toggleTheme: s } = lt(), { t: i } = ie();
1183
- return /* @__PURE__ */ e(
1184
- He,
1185
- {
1186
- variant: t,
1187
- size: r,
1188
- icon: n ? /* @__PURE__ */ e(ye, { size: 16 }) : /* @__PURE__ */ e(ve, { size: 16 }),
1189
- "aria-label": i("theme.toggleTheme"),
1190
- onClick: s,
1191
- className: o
1192
- }
1193
- );
1129
+ //#endregion
1130
+ //#region src/components/ui/ThemeToggle.tsx
1131
+ function it({ variant: e = "ghost", size: t = "md", className: n }) {
1132
+ let { isDark: r, toggleTheme: i } = rt(), { t: a } = N();
1133
+ return /* @__PURE__ */ d(G, {
1134
+ variant: e,
1135
+ size: t,
1136
+ icon: d(r ? k : C, { size: 16 }),
1137
+ "aria-label": a("theme.toggleTheme"),
1138
+ onClick: i,
1139
+ className: n
1140
+ });
1194
1141
  }
1195
- function ct({
1196
- logo: t,
1197
- categories: r = [],
1198
- activeCategoryId: o,
1199
- onCategoryChange: n,
1200
- actions: s,
1201
- onBurgerClick: i
1202
- }) {
1203
- return /* @__PURE__ */ m("header", { className: "fixed inset-x-0 top-0 z-40 flex h-14 items-center border-b border-border bg-bg-primary px-md", children: [
1204
- /* @__PURE__ */ e(
1205
- "button",
1206
- {
1207
- type: "button",
1208
- onClick: i,
1209
- className: "mr-sm flex size-9 items-center justify-center rounded-md text-text-secondary hover:bg-bg-tertiary hover:text-text-primary lg:hidden",
1210
- "aria-label": "Open menu",
1211
- children: /* @__PURE__ */ e(Ne, { size: 22 })
1212
- }
1213
- ),
1214
- /* @__PURE__ */ e("div", { className: "mr-lg flex shrink-0 items-center", children: t ?? /* @__PURE__ */ e("span", { className: "text-h3 font-bold text-epfl-red", children: "EPFL" }) }),
1215
- /* @__PURE__ */ e("nav", { className: "hidden flex-1 items-center gap-xs lg:flex", "aria-label": "Main categories", children: r.map((a) => {
1216
- const c = a.id === o;
1217
- return /* @__PURE__ */ m(
1218
- "button",
1219
- {
1220
- type: "button",
1221
- onClick: () => n?.(a.id),
1222
- className: [
1223
- "flex items-center gap-xs rounded-md px-sm py-xs text-small font-medium transition-colors",
1224
- c ? "bg-primary/10 text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"
1225
- ].join(" "),
1226
- "aria-current": c ? "page" : void 0,
1227
- children: [
1228
- a.icon && /* @__PURE__ */ e(a.icon, { size: 16 }),
1229
- a.label
1230
- ]
1231
- },
1232
- a.id
1233
- );
1234
- }) }),
1235
- /* @__PURE__ */ e("div", { className: "flex-1 lg:hidden" }),
1236
- s && /* @__PURE__ */ e("div", { className: "flex items-center gap-xs", children: s })
1237
- ] });
1142
+ //#endregion
1143
+ //#region src/components/layout/TopNav.tsx
1144
+ function at({ logo: e, categories: t = [], activeCategoryId: n, onCategoryChange: r, actions: i, onBurgerClick: a }) {
1145
+ return /* @__PURE__ */ f("header", {
1146
+ className: "fixed inset-x-0 top-0 z-40 flex h-14 items-center border-b border-border bg-bg-primary px-md",
1147
+ children: [
1148
+ /* @__PURE__ */ d("button", {
1149
+ type: "button",
1150
+ onClick: a,
1151
+ className: "mr-sm flex size-9 items-center justify-center rounded-md text-text-secondary hover:bg-bg-tertiary hover:text-text-primary lg:hidden",
1152
+ "aria-label": "Open menu",
1153
+ children: /* @__PURE__ */ d(S, { size: 22 })
1154
+ }),
1155
+ /* @__PURE__ */ d("div", {
1156
+ className: "mr-lg flex shrink-0 items-center",
1157
+ children: e ?? /* @__PURE__ */ d("span", {
1158
+ className: "text-h3 font-bold text-epfl-red",
1159
+ children: "EPFL"
1160
+ })
1161
+ }),
1162
+ /* @__PURE__ */ d("nav", {
1163
+ className: "hidden flex-1 items-center gap-xs lg:flex",
1164
+ "aria-label": "Main categories",
1165
+ children: t.map((e) => {
1166
+ let t = e.id === n;
1167
+ return /* @__PURE__ */ f("button", {
1168
+ type: "button",
1169
+ onClick: () => r?.(e.id),
1170
+ className: ["flex items-center gap-xs rounded-md px-sm py-xs text-small font-medium transition-colors", t ? "bg-primary/10 text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"].join(" "),
1171
+ "aria-current": t ? "page" : void 0,
1172
+ children: [e.icon && /* @__PURE__ */ d(e.icon, { size: 16 }), e.label]
1173
+ }, e.id);
1174
+ })
1175
+ }),
1176
+ /* @__PURE__ */ d("div", { className: "flex-1 lg:hidden" }),
1177
+ i && /* @__PURE__ */ d("div", {
1178
+ className: "flex items-center gap-xs",
1179
+ children: i
1180
+ })
1181
+ ]
1182
+ });
1238
1183
  }
1239
- function dt({
1240
- sections: t = [],
1241
- activeLinkId: r,
1242
- onLinkClick: o,
1243
- collapsed: n = !1
1244
- }) {
1245
- return /* @__PURE__ */ e(
1246
- "aside",
1247
- {
1248
- className: [
1249
- "hidden lg:flex flex-col border-r border-border bg-bg-secondary overflow-y-auto transition-[width] duration-200",
1250
- n ? "w-16" : "w-64"
1251
- ].join(" "),
1252
- children: /* @__PURE__ */ e("nav", { className: "flex flex-col gap-xs p-sm", "aria-label": "Page navigation", children: t.map((s) => /* @__PURE__ */ e(
1253
- mt,
1254
- {
1255
- section: s,
1256
- activeLinkId: r,
1257
- onLinkClick: o,
1258
- collapsed: n
1259
- },
1260
- s.id
1261
- )) })
1262
- }
1263
- );
1184
+ //#endregion
1185
+ //#region src/components/layout/SideNav.tsx
1186
+ function ot({ sections: e = [], activeLinkId: t, onLinkClick: n, collapsed: r = !1 }) {
1187
+ return /* @__PURE__ */ d("aside", {
1188
+ className: ["hidden lg:flex flex-col border-r border-border bg-bg-secondary overflow-y-auto transition-[width] duration-200", r ? "w-16" : "w-64"].join(" "),
1189
+ children: /* @__PURE__ */ d("nav", {
1190
+ className: "flex flex-col gap-xs p-sm",
1191
+ "aria-label": "Page navigation",
1192
+ children: e.map((e) => /* @__PURE__ */ d(st, {
1193
+ section: e,
1194
+ activeLinkId: t,
1195
+ onLinkClick: n,
1196
+ collapsed: r
1197
+ }, e.id))
1198
+ })
1199
+ });
1264
1200
  }
1265
- function mt({
1266
- section: t,
1267
- activeLinkId: r,
1268
- onLinkClick: o,
1269
- collapsed: n
1270
- }) {
1271
- const [s, i] = C(!0);
1272
- return /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
1273
- t.title && !n && /* @__PURE__ */ m(
1274
- "button",
1275
- {
1276
- type: "button",
1277
- onClick: () => i((a) => !a),
1278
- className: "flex items-center justify-between rounded-md px-sm py-xs text-caption font-semibold uppercase tracking-wide text-text-secondary hover:text-text-primary",
1279
- children: [
1280
- /* @__PURE__ */ e("span", { children: t.title }),
1281
- /* @__PURE__ */ e(
1282
- se,
1283
- {
1284
- size: 14,
1285
- className: `transition-transform ${s ? "" : "-rotate-90"}`
1286
- }
1287
- )
1288
- ]
1289
- }
1290
- ),
1291
- (s || n) && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.links.map((a) => {
1292
- const c = a.id === r;
1293
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ m(
1294
- "button",
1295
- {
1296
- type: "button",
1297
- onClick: () => o?.(a.href),
1298
- title: n ? a.label : void 0,
1299
- className: [
1300
- "flex w-full items-center gap-sm rounded-md px-sm py-xs text-small transition-colors",
1301
- n ? "justify-center" : "",
1302
- c ? "bg-primary/8 font-medium text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"
1303
- ].join(" "),
1304
- "aria-current": c ? "page" : void 0,
1305
- children: [
1306
- a.icon && /* @__PURE__ */ e(a.icon, { size: 18 }),
1307
- !n && /* @__PURE__ */ e("span", { children: a.label })
1308
- ]
1309
- }
1310
- ) }, a.id);
1311
- }) })
1312
- ] });
1201
+ function st({ section: e, activeLinkId: t, onLinkClick: n, collapsed: r }) {
1202
+ let [i, a] = c(!0);
1203
+ return /* @__PURE__ */ f("div", {
1204
+ className: "flex flex-col",
1205
+ children: [e.title && !r && /* @__PURE__ */ f("button", {
1206
+ type: "button",
1207
+ onClick: () => a((e) => !e),
1208
+ className: "flex items-center justify-between rounded-md px-sm py-xs text-caption font-semibold uppercase tracking-wide text-text-secondary hover:text-text-primary",
1209
+ children: [/* @__PURE__ */ d("span", { children: e.title }), /* @__PURE__ */ d(g, {
1210
+ size: 14,
1211
+ className: `transition-transform ${i ? "" : "-rotate-90"}`
1212
+ })]
1213
+ }), (i || r) && /* @__PURE__ */ d("ul", {
1214
+ className: "flex flex-col gap-px",
1215
+ children: e.links.map((e) => {
1216
+ let i = e.id === t;
1217
+ return /* @__PURE__ */ d("li", { children: /* @__PURE__ */ f("button", {
1218
+ type: "button",
1219
+ onClick: () => n?.(e.href),
1220
+ title: r ? e.label : void 0,
1221
+ className: [
1222
+ "flex w-full items-center gap-sm rounded-md px-sm py-xs text-small transition-colors",
1223
+ r ? "justify-center" : "",
1224
+ i ? "bg-primary/8 font-medium text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"
1225
+ ].join(" "),
1226
+ "aria-current": i ? "page" : void 0,
1227
+ children: [e.icon && /* @__PURE__ */ d(e.icon, { size: 18 }), !r && /* @__PURE__ */ d("span", { children: e.label })]
1228
+ }) }, e.id);
1229
+ })
1230
+ })]
1231
+ });
1313
1232
  }
1314
- function ut({
1315
- open: t,
1316
- onClose: r,
1317
- categories: o = [],
1318
- activeCategoryId: n,
1319
- onCategoryChange: s,
1320
- sections: i = [],
1321
- activeLinkId: a,
1322
- onLinkClick: c
1323
- }) {
1324
- const d = D(null);
1325
- return I(() => {
1326
- if (!t) return;
1327
- const l = (u) => {
1328
- u.key === "Escape" && r();
1329
- };
1330
- return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
1331
- }, [t, r]), I(() => {
1332
- if (!t) return;
1333
- d.current?.focus();
1334
- }, [t]), I(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
1335
- document.body.style.overflow = "";
1336
- }), [t]), /* @__PURE__ */ m(V, { children: [
1337
- /* @__PURE__ */ e(
1338
- "div",
1339
- {
1340
- className: [
1341
- "fixed inset-0 z-50 bg-black/40 transition-opacity lg:hidden",
1342
- t ? "opacity-100" : "pointer-events-none opacity-0"
1343
- ].join(" "),
1344
- onClick: r,
1345
- "aria-hidden": "true"
1346
- }
1347
- ),
1348
- /* @__PURE__ */ m(
1349
- "div",
1350
- {
1351
- ref: d,
1352
- tabIndex: -1,
1353
- role: "dialog",
1354
- "aria-modal": "true",
1355
- "aria-label": "Navigation menu",
1356
- className: [
1357
- "fixed inset-y-0 left-0 z-50 flex w-72 flex-col bg-bg-primary shadow-xl transition-transform duration-200 lg:hidden",
1358
- t ? "translate-x-0" : "-translate-x-full"
1359
- ].join(" "),
1360
- children: [
1361
- /* @__PURE__ */ m("div", { className: "flex h-14 items-center justify-between border-b border-border px-md", children: [
1362
- /* @__PURE__ */ e("span", { className: "text-h3 font-bold text-epfl-red", children: "EPFL" }),
1363
- /* @__PURE__ */ e(
1364
- "button",
1365
- {
1366
- type: "button",
1367
- onClick: r,
1368
- className: "flex size-9 items-center justify-center rounded-md text-text-secondary hover:bg-bg-tertiary hover:text-text-primary",
1369
- "aria-label": "Close menu",
1370
- children: /* @__PURE__ */ e(we, { size: 18 })
1371
- }
1372
- )
1373
- ] }),
1374
- /* @__PURE__ */ m("div", { className: "flex-1 overflow-y-auto p-sm", children: [
1375
- o.length > 0 && /* @__PURE__ */ m("div", { className: "mb-md flex flex-col gap-xs", children: [
1376
- /* @__PURE__ */ e("span", { className: "px-sm text-caption font-semibold uppercase tracking-wide text-text-muted", children: "Categories" }),
1377
- o.map((l) => {
1378
- const u = l.id === n;
1379
- return /* @__PURE__ */ m(
1380
- "button",
1381
- {
1382
- type: "button",
1383
- onClick: () => {
1384
- s?.(l.id);
1385
- },
1386
- className: [
1387
- "flex items-center gap-sm rounded-md px-sm py-xs text-small font-medium transition-colors",
1388
- u ? "bg-primary/10 text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"
1389
- ].join(" "),
1390
- children: [
1391
- l.icon && /* @__PURE__ */ e(l.icon, { size: 16 }),
1392
- l.label
1393
- ]
1394
- },
1395
- l.id
1396
- );
1397
- })
1398
- ] }),
1399
- i.map((l) => /* @__PURE__ */ e(
1400
- pt,
1401
- {
1402
- section: l,
1403
- activeLinkId: a,
1404
- onLinkClick: (u) => {
1405
- c?.(u), r();
1406
- }
1407
- },
1408
- l.id
1409
- ))
1410
- ] })
1411
- ]
1412
- }
1413
- )
1414
- ] });
1233
+ //#endregion
1234
+ //#region src/components/layout/BurgerDrawer.tsx
1235
+ function ct({ open: e, onClose: t, categories: n = [], activeCategoryId: r, onCategoryChange: a, sections: o = [], activeLinkId: c, onLinkClick: l }) {
1236
+ let p = s(null);
1237
+ return i(() => {
1238
+ if (!e) return;
1239
+ let n = (e) => {
1240
+ e.key === "Escape" && t();
1241
+ };
1242
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
1243
+ }, [e, t]), i(() => {
1244
+ e && p.current?.focus();
1245
+ }, [e]), i(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
1246
+ document.body.style.overflow = "";
1247
+ }), [e]), /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
1248
+ className: ["fixed inset-0 z-50 bg-black/40 transition-opacity lg:hidden", e ? "opacity-100" : "pointer-events-none opacity-0"].join(" "),
1249
+ onClick: t,
1250
+ "aria-hidden": "true"
1251
+ }), /* @__PURE__ */ f("div", {
1252
+ ref: p,
1253
+ tabIndex: -1,
1254
+ role: "dialog",
1255
+ "aria-modal": "true",
1256
+ "aria-label": "Navigation menu",
1257
+ className: ["fixed inset-y-0 left-0 z-50 flex w-72 flex-col bg-bg-primary shadow-xl transition-transform duration-200 lg:hidden", e ? "translate-x-0" : "-translate-x-full"].join(" "),
1258
+ children: [/* @__PURE__ */ f("div", {
1259
+ className: "flex h-14 items-center justify-between border-b border-border px-md",
1260
+ children: [/* @__PURE__ */ d("span", {
1261
+ className: "text-h3 font-bold text-epfl-red",
1262
+ children: "EPFL"
1263
+ }), /* @__PURE__ */ d("button", {
1264
+ type: "button",
1265
+ onClick: t,
1266
+ className: "flex size-9 items-center justify-center rounded-md text-text-secondary hover:bg-bg-tertiary hover:text-text-primary",
1267
+ "aria-label": "Close menu",
1268
+ children: /* @__PURE__ */ d(M, { size: 18 })
1269
+ })]
1270
+ }), /* @__PURE__ */ f("div", {
1271
+ className: "flex-1 overflow-y-auto p-sm",
1272
+ children: [n.length > 0 && /* @__PURE__ */ f("div", {
1273
+ className: "mb-md flex flex-col gap-xs",
1274
+ children: [/* @__PURE__ */ d("span", {
1275
+ className: "px-sm text-caption font-semibold uppercase tracking-wide text-text-muted",
1276
+ children: "Categories"
1277
+ }), n.map((e) => /* @__PURE__ */ f("button", {
1278
+ type: "button",
1279
+ onClick: () => {
1280
+ a?.(e.id);
1281
+ },
1282
+ className: ["flex items-center gap-sm rounded-md px-sm py-xs text-small font-medium transition-colors", e.id === r ? "bg-primary/10 text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"].join(" "),
1283
+ children: [e.icon && /* @__PURE__ */ d(e.icon, { size: 16 }), e.label]
1284
+ }, e.id))]
1285
+ }), o.map((e) => /* @__PURE__ */ d(lt, {
1286
+ section: e,
1287
+ activeLinkId: c,
1288
+ onLinkClick: (e) => {
1289
+ l?.(e), t();
1290
+ }
1291
+ }, e.id))]
1292
+ })]
1293
+ })] });
1415
1294
  }
1416
- function pt({
1417
- section: t,
1418
- activeLinkId: r,
1419
- onLinkClick: o
1420
- }) {
1421
- const [n, s] = C(!0);
1422
- return /* @__PURE__ */ m("div", { className: "mb-xs flex flex-col", children: [
1423
- t.title && /* @__PURE__ */ m(
1424
- "button",
1425
- {
1426
- type: "button",
1427
- onClick: () => s((i) => !i),
1428
- className: "flex items-center justify-between rounded-md px-sm py-xs text-caption font-semibold uppercase tracking-wide text-text-muted hover:text-text-secondary",
1429
- children: [
1430
- /* @__PURE__ */ e("span", { children: t.title }),
1431
- /* @__PURE__ */ e(
1432
- se,
1433
- {
1434
- size: 14,
1435
- className: `transition-transform ${n ? "" : "-rotate-90"}`
1436
- }
1437
- )
1438
- ]
1439
- }
1440
- ),
1441
- n && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.links.map((i) => {
1442
- const a = i.id === r;
1443
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ m(
1444
- "button",
1445
- {
1446
- type: "button",
1447
- onClick: () => o?.(i.href),
1448
- className: [
1449
- "flex w-full items-center gap-sm rounded-md px-sm py-xs text-small transition-colors",
1450
- a ? "bg-primary/10 font-medium text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"
1451
- ].join(" "),
1452
- "aria-current": a ? "page" : void 0,
1453
- children: [
1454
- i.icon && /* @__PURE__ */ e(i.icon, { size: 18 }),
1455
- /* @__PURE__ */ e("span", { children: i.label })
1456
- ]
1457
- }
1458
- ) }, i.id);
1459
- }) })
1460
- ] });
1295
+ function lt({ section: e, activeLinkId: t, onLinkClick: n }) {
1296
+ let [r, i] = c(!0);
1297
+ return /* @__PURE__ */ f("div", {
1298
+ className: "mb-xs flex flex-col",
1299
+ children: [e.title && /* @__PURE__ */ f("button", {
1300
+ type: "button",
1301
+ onClick: () => i((e) => !e),
1302
+ className: "flex items-center justify-between rounded-md px-sm py-xs text-caption font-semibold uppercase tracking-wide text-text-muted hover:text-text-secondary",
1303
+ children: [/* @__PURE__ */ d("span", { children: e.title }), /* @__PURE__ */ d(g, {
1304
+ size: 14,
1305
+ className: `transition-transform ${r ? "" : "-rotate-90"}`
1306
+ })]
1307
+ }), r && /* @__PURE__ */ d("ul", {
1308
+ className: "flex flex-col gap-px",
1309
+ children: e.links.map((e) => {
1310
+ let r = e.id === t;
1311
+ return /* @__PURE__ */ d("li", { children: /* @__PURE__ */ f("button", {
1312
+ type: "button",
1313
+ onClick: () => n?.(e.href),
1314
+ className: ["flex w-full items-center gap-sm rounded-md px-sm py-xs text-small transition-colors", r ? "bg-primary/10 font-medium text-primary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"].join(" "),
1315
+ "aria-current": r ? "page" : void 0,
1316
+ children: [e.icon && /* @__PURE__ */ d(e.icon, { size: 18 }), /* @__PURE__ */ d("span", { children: e.label })]
1317
+ }) }, e.id);
1318
+ })
1319
+ })]
1320
+ });
1461
1321
  }
1462
- function Wt({
1463
- children: t,
1464
- logo: r,
1465
- categories: o = [],
1466
- activeCategoryId: n,
1467
- onCategoryChange: s,
1468
- sections: i = [],
1469
- activeLinkId: a,
1470
- onLinkClick: c,
1471
- actions: d,
1472
- sideNavCollapsed: l = !1
1473
- }) {
1474
- const [u, f] = C(!1);
1475
- return /* @__PURE__ */ m("div", { className: "flex h-screen flex-col bg-bg-primary", children: [
1476
- /* @__PURE__ */ e(
1477
- ct,
1478
- {
1479
- logo: r,
1480
- categories: o,
1481
- activeCategoryId: n,
1482
- onCategoryChange: s,
1483
- actions: d,
1484
- onBurgerClick: () => f(!0)
1485
- }
1486
- ),
1487
- /* @__PURE__ */ m("div", { className: "flex flex-1 overflow-hidden pt-14", children: [
1488
- /* @__PURE__ */ e(
1489
- dt,
1490
- {
1491
- sections: i,
1492
- activeLinkId: a,
1493
- onLinkClick: c,
1494
- collapsed: l
1495
- }
1496
- ),
1497
- /* @__PURE__ */ e("main", { className: "flex-1 overflow-y-auto px-md py-lg lg:px-lg", children: /* @__PURE__ */ e("div", { className: "mx-auto max-w-[var(--container-6xl)]", children: t }) })
1498
- ] }),
1499
- /* @__PURE__ */ e(
1500
- ut,
1501
- {
1502
- open: u,
1503
- onClose: () => f(!1),
1504
- categories: o,
1505
- activeCategoryId: n,
1506
- onCategoryChange: (h) => {
1507
- s?.(h), f(!1);
1508
- },
1509
- sections: i,
1510
- activeLinkId: a,
1511
- onLinkClick: (h) => {
1512
- c?.(h), f(!1);
1513
- }
1514
- }
1515
- )
1516
- ] });
1322
+ //#endregion
1323
+ //#region src/components/layout/PageShell.tsx
1324
+ function ut({ children: e, logo: t, categories: n = [], activeCategoryId: r, onCategoryChange: i, sections: a = [], activeLinkId: o, onLinkClick: s, actions: l, sideNavCollapsed: u = !1 }) {
1325
+ let [p, m] = c(!1);
1326
+ return /* @__PURE__ */ f("div", {
1327
+ className: "flex h-screen flex-col bg-bg-primary",
1328
+ children: [
1329
+ /* @__PURE__ */ d(at, {
1330
+ logo: t,
1331
+ categories: n,
1332
+ activeCategoryId: r,
1333
+ onCategoryChange: i,
1334
+ actions: l,
1335
+ onBurgerClick: () => m(!0)
1336
+ }),
1337
+ /* @__PURE__ */ f("div", {
1338
+ className: "flex flex-1 overflow-hidden pt-14",
1339
+ children: [/* @__PURE__ */ d(ot, {
1340
+ sections: a,
1341
+ activeLinkId: o,
1342
+ onLinkClick: s,
1343
+ collapsed: u
1344
+ }), /* @__PURE__ */ d("main", {
1345
+ className: "flex-1 overflow-y-auto px-md py-lg lg:px-lg",
1346
+ children: /* @__PURE__ */ d("div", {
1347
+ className: "mx-auto max-w-[var(--container-6xl)]",
1348
+ children: e
1349
+ })
1350
+ })]
1351
+ }),
1352
+ /* @__PURE__ */ d(ct, {
1353
+ open: p,
1354
+ onClose: () => m(!1),
1355
+ categories: n,
1356
+ activeCategoryId: r,
1357
+ onCategoryChange: (e) => {
1358
+ i?.(e), m(!1);
1359
+ },
1360
+ sections: a,
1361
+ activeLinkId: o,
1362
+ onLinkClick: (e) => {
1363
+ s?.(e), m(!1);
1364
+ }
1365
+ })
1366
+ ]
1367
+ });
1517
1368
  }
1518
- const Jt = $(function({ header: r, footer: o, actions: n, noPadding: s = !1, className: i = "", children: a, ...c }, d) {
1519
- const l = o || n;
1520
- return /* @__PURE__ */ m(
1521
- "div",
1522
- {
1523
- ref: d,
1524
- className: [
1525
- "rounded-md shadow-md border border-border bg-bg-secondary",
1526
- "flex flex-col overflow-hidden",
1527
- i
1528
- ].filter(Boolean).join(" "),
1529
- ...c,
1530
- children: [
1531
- r && /* @__PURE__ */ e("div", { className: "px-lg py-md border-b border-border", children: /* @__PURE__ */ e("div", { className: "font-semibold text-body text-text-primary", children: r }) }),
1532
- /* @__PURE__ */ e("div", { className: s ? "" : "p-lg", children: a }),
1533
- l && /* @__PURE__ */ m("div", { className: "px-lg py-md border-t border-border flex items-center gap-3", children: [
1534
- o && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: o }),
1535
- n && /* @__PURE__ */ e("div", { className: "ml-auto flex items-center gap-2", children: n })
1536
- ] })
1537
- ]
1538
- }
1539
- );
1540
- }), Qt = $(
1541
- function({ items: r, layout: o = "horizontal", dividers: n = !0, className: s = "", ...i }, a) {
1542
- const c = o === "horizontal";
1543
- return /* @__PURE__ */ e(
1544
- "dl",
1545
- {
1546
- ref: a,
1547
- className: ["text-body", n && "divide-y divide-border", s].filter(Boolean).join(" "),
1548
- ...i,
1549
- children: r.map((d, l) => /* @__PURE__ */ m(
1550
- "div",
1551
- {
1552
- className: [
1553
- "py-sm",
1554
- c ? "flex flex-col sm:flex-row sm:gap-lg" : "flex flex-col gap-xs"
1555
- ].filter(Boolean).join(" "),
1556
- children: [
1557
- /* @__PURE__ */ e(
1558
- "dt",
1559
- {
1560
- className: [
1561
- "font-medium text-text-secondary text-small shrink-0",
1562
- c && "sm:w-1/3"
1563
- ].filter(Boolean).join(" "),
1564
- children: d.label
1565
- }
1566
- ),
1567
- /* @__PURE__ */ e("dd", { className: "text-text-primary", children: d.value })
1568
- ]
1569
- },
1570
- l
1571
- ))
1572
- }
1573
- );
1574
- }
1575
- ), Zt = $(function({ illustration: r, title: o, description: n, action: s, className: i = "", ...a }, c) {
1576
- return /* @__PURE__ */ m(
1577
- "div",
1578
- {
1579
- ref: c,
1580
- className: [
1581
- "flex flex-col items-center justify-center text-center py-2xl px-lg",
1582
- i
1583
- ].filter(Boolean).join(" "),
1584
- ...a,
1585
- children: [
1586
- r && /* @__PURE__ */ e("div", { className: "mb-lg text-text-secondary", children: r }),
1587
- /* @__PURE__ */ e("h3", { className: "text-h3 font-semibold text-text-primary", children: o }),
1588
- n && /* @__PURE__ */ e("p", { className: "mt-xs text-body text-text-secondary max-w-[var(--container-md)]", children: n }),
1589
- s && /* @__PURE__ */ e("div", { className: "mt-lg", children: s })
1590
- ]
1591
- }
1592
- );
1369
+ //#endregion
1370
+ //#region src/components/data-display/Card.tsx
1371
+ var dt = t(function({ header: e, footer: t, actions: n, noPadding: r = !1, className: i = "", children: a, ...o }, s) {
1372
+ let c = t || n;
1373
+ return /* @__PURE__ */ f("div", {
1374
+ ref: s,
1375
+ className: [
1376
+ "rounded-md shadow-md border border-border bg-bg-secondary",
1377
+ "flex flex-col overflow-hidden",
1378
+ i
1379
+ ].filter(Boolean).join(" "),
1380
+ ...o,
1381
+ children: [
1382
+ e && /* @__PURE__ */ d("div", {
1383
+ className: "px-lg py-md border-b border-border",
1384
+ children: /* @__PURE__ */ d("div", {
1385
+ className: "font-semibold text-body text-text-primary",
1386
+ children: e
1387
+ })
1388
+ }),
1389
+ /* @__PURE__ */ d("div", {
1390
+ className: r ? "" : "p-lg",
1391
+ children: a
1392
+ }),
1393
+ c && /* @__PURE__ */ f("div", {
1394
+ className: "px-lg py-md border-t border-border flex items-center gap-3",
1395
+ children: [t && /* @__PURE__ */ d("div", {
1396
+ className: "flex-1 min-w-0",
1397
+ children: t
1398
+ }), n && /* @__PURE__ */ d("div", {
1399
+ className: "ml-auto flex items-center gap-2",
1400
+ children: n
1401
+ })]
1402
+ })
1403
+ ]
1404
+ });
1405
+ }), ft = t(function({ items: e, layout: t = "horizontal", dividers: n = !0, className: r = "", ...i }, a) {
1406
+ let o = t === "horizontal";
1407
+ return /* @__PURE__ */ d("dl", {
1408
+ ref: a,
1409
+ className: [
1410
+ "text-body",
1411
+ n && "divide-y divide-border",
1412
+ r
1413
+ ].filter(Boolean).join(" "),
1414
+ ...i,
1415
+ children: e.map((e, t) => /* @__PURE__ */ f("div", {
1416
+ className: ["py-sm", o ? "flex flex-col sm:flex-row sm:gap-lg" : "flex flex-col gap-xs"].filter(Boolean).join(" "),
1417
+ children: [/* @__PURE__ */ d("dt", {
1418
+ className: ["font-medium text-text-secondary text-small shrink-0", o && "sm:w-1/3"].filter(Boolean).join(" "),
1419
+ children: e.label
1420
+ }), /* @__PURE__ */ d("dd", {
1421
+ className: "text-text-primary",
1422
+ children: e.value
1423
+ })]
1424
+ }, t))
1425
+ });
1426
+ }), pt = t(function({ illustration: e, title: t, description: n, action: r, className: i = "", ...a }, o) {
1427
+ return /* @__PURE__ */ f("div", {
1428
+ ref: o,
1429
+ className: ["flex flex-col items-center justify-center text-center py-2xl px-lg", i].filter(Boolean).join(" "),
1430
+ ...a,
1431
+ children: [
1432
+ e && /* @__PURE__ */ d("div", {
1433
+ className: "mb-lg text-text-secondary",
1434
+ children: e
1435
+ }),
1436
+ /* @__PURE__ */ d("h3", {
1437
+ className: "text-h3 font-semibold text-text-primary",
1438
+ children: t
1439
+ }),
1440
+ n && /* @__PURE__ */ d("p", {
1441
+ className: "mt-xs text-body text-text-secondary max-w-[var(--container-md)]",
1442
+ children: n
1443
+ }),
1444
+ r && /* @__PURE__ */ d("div", {
1445
+ className: "mt-lg",
1446
+ children: r
1447
+ })
1448
+ ]
1449
+ });
1593
1450
  });
1594
- function ft(t, r) {
1595
- if (!t.sortValue || r.length === 0) return "text";
1596
- for (const o of r) {
1597
- const n = t.sortValue(o);
1598
- if (n != null) return typeof n == "number" ? "numeric" : "text";
1599
- }
1600
- return "text";
1451
+ //#endregion
1452
+ //#region src/components/data-display/Table.tsx
1453
+ function mt(e, t) {
1454
+ if (!e.sortValue || t.length === 0) return "text";
1455
+ for (let n of t) {
1456
+ let t = e.sortValue(n);
1457
+ if (t != null) return typeof t == "number" ? "numeric" : "text";
1458
+ }
1459
+ return "text";
1601
1460
  }
1602
- function bt({
1603
- active: t,
1604
- direction: r,
1605
- columnType: o
1606
- }) {
1607
- return t ? o === "numeric" ? r === "asc" ? /* @__PURE__ */ e(Ce, { size: 14, className: "ml-1 inline", "aria-hidden": !0 }) : /* @__PURE__ */ e(ze, { size: 14, className: "ml-1 inline", "aria-hidden": !0 }) : r === "asc" ? /* @__PURE__ */ e($e, { size: 14, className: "ml-1 inline", "aria-hidden": !0 }) : /* @__PURE__ */ e(De, { size: 14, className: "ml-1 inline", "aria-hidden": !0 }) : /* @__PURE__ */ e(ke, { size: 14, className: "ml-1 inline opacity-30", "aria-hidden": !0 });
1461
+ function ht({ active: e, direction: t, columnType: n }) {
1462
+ return e ? d(n === "numeric" ? t === "asc" ? D : O : t === "asc" ? w : T, {
1463
+ size: 14,
1464
+ className: "ml-1 inline",
1465
+ "aria-hidden": !0
1466
+ }) : /* @__PURE__ */ d(E, {
1467
+ size: 14,
1468
+ className: "ml-1 inline opacity-30",
1469
+ "aria-hidden": !0
1470
+ });
1608
1471
  }
1609
- const er = $(function({
1610
- columns: r,
1611
- data: o,
1612
- rowKey: n,
1613
- striped: s = !1,
1614
- sort: i,
1615
- onSortChange: a,
1616
- emptyContent: c,
1617
- className: d = "",
1618
- ...l
1619
- }, u) {
1620
- const [f, h] = C(), p = i ?? f, y = k(
1621
- (g) => {
1622
- const x = p?.column === g && p.direction === "asc" ? { column: g, direction: "desc" } : { column: g, direction: "asc" };
1623
- a ? a(x) : h(x);
1624
- },
1625
- [p, a]
1626
- ), b = K(() => {
1627
- if (!p || a) return o;
1628
- const g = r.find((z) => z.key === p.column);
1629
- if (!g?.sortValue) return o;
1630
- const x = g.sortValue;
1631
- return [...o].sort((z, A) => {
1632
- const F = x(z), E = x(A);
1633
- if (F == null && E == null) return 0;
1634
- if (F == null) return 1;
1635
- if (E == null) return -1;
1636
- const O = typeof F == "number" && typeof E == "number" ? F - E : String(F).localeCompare(String(E));
1637
- return p.direction === "asc" ? O : -O;
1638
- });
1639
- }, [o, p, r, a]), v = K(() => {
1640
- const g = /* @__PURE__ */ new Map();
1641
- for (const x of r)
1642
- x.sortable && g.set(x.key, ft(x, o));
1643
- return g;
1644
- }, [r, o]), N = b.length === 0;
1645
- return /* @__PURE__ */ e(
1646
- "div",
1647
- {
1648
- ref: u,
1649
- className: ["overflow-x-auto rounded-md border border-border", d].filter(Boolean).join(" "),
1650
- ...l,
1651
- children: /* @__PURE__ */ m("table", { className: "w-full text-body text-left", children: [
1652
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: "bg-bg-secondary border-b border-border", children: r.map((g) => {
1653
- const x = p?.column === g.key;
1654
- return /* @__PURE__ */ e(
1655
- "th",
1656
- {
1657
- className: [
1658
- "px-md py-sm font-semibold text-small text-text-secondary whitespace-nowrap",
1659
- g.sortable && "cursor-pointer select-none hover:text-text-primary",
1660
- g.headerClassName
1661
- ].filter(Boolean).join(" "),
1662
- onClick: g.sortable ? () => y(g.key) : void 0,
1663
- "aria-sort": x ? p.direction === "asc" ? "ascending" : "descending" : g.sortable ? "none" : void 0,
1664
- children: /* @__PURE__ */ m("span", { className: "inline-flex items-center", children: [
1665
- g.header,
1666
- g.sortable && /* @__PURE__ */ e(
1667
- bt,
1668
- {
1669
- active: x,
1670
- direction: x ? p.direction : void 0,
1671
- columnType: v.get(g.key) ?? "text"
1672
- }
1673
- )
1674
- ] })
1675
- },
1676
- g.key
1677
- );
1678
- }) }) }),
1679
- /* @__PURE__ */ e("tbody", { children: N ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
1680
- "td",
1681
- {
1682
- colSpan: r.length,
1683
- className: "px-md py-xl text-center text-text-secondary",
1684
- children: c ?? "No data available."
1685
- }
1686
- ) }) : b.map((g, x) => /* @__PURE__ */ e(
1687
- "tr",
1688
- {
1689
- className: [
1690
- "border-b border-border last:border-b-0 transition-colors",
1691
- s && x % 2 === 1 && "bg-bg-tertiary/50",
1692
- "hover:bg-bg-tertiary/70"
1693
- ].filter(Boolean).join(" "),
1694
- children: r.map((z) => /* @__PURE__ */ e(
1695
- "td",
1696
- {
1697
- className: [
1698
- "px-md py-sm text-text-primary",
1699
- z.cellClassName
1700
- ].filter(Boolean).join(" "),
1701
- children: z.cell(g, x)
1702
- },
1703
- z.key
1704
- ))
1705
- },
1706
- n(g, x)
1707
- )) })
1708
- ] })
1709
- }
1710
- );
1711
- }), xt = {
1712
- success: {
1713
- bg: "bg-success-bg",
1714
- border: "border-success/30",
1715
- text: "text-success",
1716
- icon: ce
1717
- },
1718
- warning: {
1719
- bg: "bg-warning-bg",
1720
- border: "border-warning/30",
1721
- text: "text-warning",
1722
- icon: q
1723
- },
1724
- error: {
1725
- bg: "bg-error-bg",
1726
- border: "border-error/30",
1727
- text: "text-error",
1728
- icon: le
1729
- },
1730
- info: {
1731
- bg: "bg-info-bg",
1732
- border: "border-info/30",
1733
- text: "text-info",
1734
- icon: ae
1735
- }
1472
+ var gt = t(function({ columns: e, data: t, rowKey: r, striped: i = !1, sort: a, onSortChange: s, emptyContent: l, className: u = "", ...p }, m) {
1473
+ let [h, g] = c(), _ = a ?? h, v = n((e) => {
1474
+ let t = _?.column === e && _.direction === "asc" ? {
1475
+ column: e,
1476
+ direction: "desc"
1477
+ } : {
1478
+ column: e,
1479
+ direction: "asc"
1480
+ };
1481
+ s ? s(t) : g(t);
1482
+ }, [_, s]), y = o(() => {
1483
+ if (!_ || s) return t;
1484
+ let n = e.find((e) => e.key === _.column);
1485
+ if (!n?.sortValue) return t;
1486
+ let r = n.sortValue;
1487
+ return [...t].sort((e, t) => {
1488
+ let n = r(e), i = r(t);
1489
+ if (n == null && i == null) return 0;
1490
+ if (n == null) return 1;
1491
+ if (i == null) return -1;
1492
+ let a = typeof n == "number" && typeof i == "number" ? n - i : String(n).localeCompare(String(i));
1493
+ return _.direction === "asc" ? a : -a;
1494
+ });
1495
+ }, [
1496
+ t,
1497
+ _,
1498
+ e,
1499
+ s
1500
+ ]), b = o(() => {
1501
+ let n = /* @__PURE__ */ new Map();
1502
+ for (let r of e) r.sortable && n.set(r.key, mt(r, t));
1503
+ return n;
1504
+ }, [e, t]), x = y.length === 0;
1505
+ return /* @__PURE__ */ d("div", {
1506
+ ref: m,
1507
+ className: ["overflow-x-auto rounded-md border border-border", u].filter(Boolean).join(" "),
1508
+ ...p,
1509
+ children: /* @__PURE__ */ f("table", {
1510
+ className: "w-full text-body text-left",
1511
+ children: [/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", {
1512
+ className: "bg-bg-secondary border-b border-border",
1513
+ children: e.map((e) => {
1514
+ let t = _?.column === e.key;
1515
+ return /* @__PURE__ */ d("th", {
1516
+ className: [
1517
+ "px-md py-sm font-semibold text-small text-text-secondary whitespace-nowrap",
1518
+ e.sortable && "cursor-pointer select-none hover:text-text-primary",
1519
+ e.headerClassName
1520
+ ].filter(Boolean).join(" "),
1521
+ onClick: e.sortable ? () => v(e.key) : void 0,
1522
+ "aria-sort": t ? _.direction === "asc" ? "ascending" : "descending" : e.sortable ? "none" : void 0,
1523
+ children: /* @__PURE__ */ f("span", {
1524
+ className: "inline-flex items-center",
1525
+ children: [e.header, e.sortable && /* @__PURE__ */ d(ht, {
1526
+ active: t,
1527
+ direction: t ? _.direction : void 0,
1528
+ columnType: b.get(e.key) ?? "text"
1529
+ })]
1530
+ })
1531
+ }, e.key);
1532
+ })
1533
+ }) }), /* @__PURE__ */ d("tbody", { children: x ? /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d("td", {
1534
+ colSpan: e.length,
1535
+ className: "px-md py-xl text-center text-text-secondary",
1536
+ children: l ?? "No data available."
1537
+ }) }) : y.map((t, n) => /* @__PURE__ */ d("tr", {
1538
+ className: [
1539
+ "border-b border-border last:border-b-0 transition-colors",
1540
+ i && n % 2 == 1 && "bg-bg-tertiary/50",
1541
+ "hover:bg-bg-tertiary/70"
1542
+ ].filter(Boolean).join(" "),
1543
+ children: e.map((e) => /* @__PURE__ */ d("td", {
1544
+ className: ["px-md py-sm text-text-primary", e.cellClassName].filter(Boolean).join(" "),
1545
+ children: e.cell(t, n)
1546
+ }, e.key))
1547
+ }, r(t, n))) })]
1548
+ })
1549
+ });
1550
+ }), _t = {
1551
+ success: {
1552
+ bg: "bg-success-bg",
1553
+ border: "border-success/30",
1554
+ text: "text-success",
1555
+ icon: p
1556
+ },
1557
+ warning: {
1558
+ bg: "bg-warning-bg",
1559
+ border: "border-warning/30",
1560
+ text: "text-warning",
1561
+ icon: b
1562
+ },
1563
+ error: {
1564
+ bg: "bg-error-bg",
1565
+ border: "border-error/30",
1566
+ text: "text-error",
1567
+ icon: j
1568
+ },
1569
+ info: {
1570
+ bg: "bg-info-bg",
1571
+ border: "border-info/30",
1572
+ text: "text-info",
1573
+ icon: x
1574
+ }
1736
1575
  };
1737
- function tr({
1738
- variant: t,
1739
- title: r,
1740
- children: o,
1741
- dismissible: n = !1,
1742
- onDismiss: s,
1743
- className: i = ""
1744
- }) {
1745
- const [a, c] = C(!0), { bg: d, border: l, text: u, icon: f } = xt[t];
1746
- if (!a) return null;
1747
- const h = () => {
1748
- c(!1), s?.();
1749
- };
1750
- return /* @__PURE__ */ m(
1751
- "div",
1752
- {
1753
- role: "alert",
1754
- className: `flex gap-3 rounded-md border p-md ${d} ${l} ${i}`,
1755
- children: [
1756
- /* @__PURE__ */ e(f, { size: 20, className: `shrink-0 mt-0.5 ${u}`, "aria-hidden": !0 }),
1757
- /* @__PURE__ */ m("div", { className: "flex-1 min-w-0", children: [
1758
- r && /* @__PURE__ */ e("p", { className: `font-semibold text-body ${u}`, children: r }),
1759
- /* @__PURE__ */ e("div", { className: "text-body text-text-primary", children: o })
1760
- ] }),
1761
- n && /* @__PURE__ */ e(
1762
- "button",
1763
- {
1764
- type: "button",
1765
- onClick: h,
1766
- className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
1767
- "aria-label": "Dismiss alert",
1768
- children: /* @__PURE__ */ e(U, { size: 16 })
1769
- }
1770
- )
1771
- ]
1772
- }
1773
- );
1576
+ function vt({ variant: e, title: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "" }) {
1577
+ let [o, s] = c(!0), { bg: l, border: u, text: p, icon: m } = _t[e];
1578
+ if (!o) return null;
1579
+ let h = () => {
1580
+ s(!1), i?.();
1581
+ };
1582
+ return /* @__PURE__ */ f("div", {
1583
+ role: "alert",
1584
+ className: `flex gap-3 rounded-md border p-md ${l} ${u} ${a}`,
1585
+ children: [
1586
+ /* @__PURE__ */ d(m, {
1587
+ size: 20,
1588
+ className: `shrink-0 mt-0.5 ${p}`,
1589
+ "aria-hidden": !0
1590
+ }),
1591
+ /* @__PURE__ */ f("div", {
1592
+ className: "flex-1 min-w-0",
1593
+ children: [t && /* @__PURE__ */ d("p", {
1594
+ className: `font-semibold text-body ${p}`,
1595
+ children: t
1596
+ }), /* @__PURE__ */ d("div", {
1597
+ className: "text-body text-text-primary",
1598
+ children: n
1599
+ })]
1600
+ }),
1601
+ r && /* @__PURE__ */ d("button", {
1602
+ type: "button",
1603
+ onClick: h,
1604
+ className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
1605
+ "aria-label": "Dismiss alert",
1606
+ children: /* @__PURE__ */ d(A, { size: 16 })
1607
+ })
1608
+ ]
1609
+ });
1774
1610
  }
1775
- const gt = {
1776
- sm: "max-w-[24rem]",
1777
- md: "max-w-[32rem]",
1778
- lg: "max-w-[42rem]"
1611
+ //#endregion
1612
+ //#region src/components/feedback/Dialog.tsx
1613
+ var yt = {
1614
+ sm: "max-w-[24rem]",
1615
+ md: "max-w-[32rem]",
1616
+ lg: "max-w-[42rem]"
1779
1617
  };
1780
- function ht({
1781
- open: t,
1782
- onClose: r,
1783
- title: o,
1784
- size: n = "md",
1785
- children: s,
1786
- footer: i,
1787
- className: a = ""
1788
- }) {
1789
- const c = D(null);
1790
- I(() => {
1791
- if (!t) return;
1792
- const l = document.activeElement;
1793
- return c.current?.focus(), () => {
1794
- l?.focus();
1795
- };
1796
- }, [t]), I(() => {
1797
- if (!t) return;
1798
- const l = document.body.style.overflow;
1799
- return document.body.style.overflow = "hidden", () => {
1800
- document.body.style.overflow = l;
1801
- };
1802
- }, [t]);
1803
- const d = (l) => {
1804
- if (l.key === "Escape") {
1805
- r();
1806
- return;
1807
- }
1808
- if (l.key === "Tab" && c.current) {
1809
- const u = c.current.querySelectorAll(
1810
- 'a[href], button:not([disabled]), textarea, input:not([disabled]), select, [tabindex]:not([tabindex="-1"])'
1811
- );
1812
- if (u.length === 0) return;
1813
- const f = u[0], h = u[u.length - 1];
1814
- l.shiftKey && document.activeElement === f ? (l.preventDefault(), h.focus()) : !l.shiftKey && document.activeElement === h && (l.preventDefault(), f.focus());
1815
- }
1816
- };
1817
- return t ? Ie(
1818
- /* @__PURE__ */ m(
1819
- "div",
1820
- {
1821
- style: { position: "fixed", inset: 0, zIndex: 50, overflowY: "auto" },
1822
- "aria-modal": "true",
1823
- role: "dialog",
1824
- "aria-labelledby": o ? "dialog-title" : void 0,
1825
- onKeyDown: d,
1826
- children: [
1827
- /* @__PURE__ */ e(
1828
- "div",
1829
- {
1830
- style: { position: "fixed", inset: 0 },
1831
- className: "bg-black/50",
1832
- "aria-hidden": !0,
1833
- onClick: r
1834
- }
1835
- ),
1836
- /* @__PURE__ */ e(
1837
- "div",
1838
- {
1839
- style: {
1840
- display: "flex",
1841
- minHeight: "100%",
1842
- width: "100%",
1843
- alignItems: "center",
1844
- justifyContent: "center",
1845
- padding: "var(--spacing-md, 16px)",
1846
- boxSizing: "border-box"
1847
- },
1848
- children: /* @__PURE__ */ m(
1849
- "div",
1850
- {
1851
- ref: c,
1852
- tabIndex: -1,
1853
- className: `relative z-10 flex flex-col w-full ${gt[n]} rounded-lg border border-border bg-bg-primary shadow-xl outline-none animate-dialog-in ${a}`,
1854
- children: [
1855
- o && /* @__PURE__ */ m("div", { className: "flex items-center justify-between px-lg py-md border-b border-border", children: [
1856
- /* @__PURE__ */ e(
1857
- "h2",
1858
- {
1859
- id: "dialog-title",
1860
- className: "text-h3 font-semibold text-text-primary",
1861
- children: o
1862
- }
1863
- ),
1864
- /* @__PURE__ */ e(
1865
- "button",
1866
- {
1867
- type: "button",
1868
- onClick: r,
1869
- className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
1870
- "aria-label": "Close dialog",
1871
- children: /* @__PURE__ */ e(U, { size: 18 })
1872
- }
1873
- )
1874
- ] }),
1875
- /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto px-lg py-md text-body text-text-primary", children: s }),
1876
- i && /* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-sm px-lg py-md border-t border-border", children: i })
1877
- ]
1878
- }
1879
- )
1880
- }
1881
- )
1882
- ]
1883
- }
1884
- ),
1885
- document.body
1886
- ) : null;
1618
+ function bt({ open: e, onClose: t, title: n, size: r = "md", children: a, footer: o, className: c = "" }) {
1619
+ let l = s(null);
1620
+ i(() => {
1621
+ if (!e) return;
1622
+ let t = document.activeElement;
1623
+ return l.current?.focus(), () => {
1624
+ t?.focus();
1625
+ };
1626
+ }, [e]), i(() => {
1627
+ if (!e) return;
1628
+ let t = document.body.style.overflow;
1629
+ return document.body.style.overflow = "hidden", () => {
1630
+ document.body.style.overflow = t;
1631
+ };
1632
+ }, [e]);
1633
+ let u = (e) => {
1634
+ if (e.key === "Escape") {
1635
+ t();
1636
+ return;
1637
+ }
1638
+ if (e.key === "Tab" && l.current) {
1639
+ let t = l.current.querySelectorAll("a[href], button:not([disabled]), textarea, input:not([disabled]), select, [tabindex]:not([tabindex=\"-1\"])");
1640
+ if (t.length === 0) return;
1641
+ let n = t[0], r = t[t.length - 1];
1642
+ e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
1643
+ }
1644
+ };
1645
+ return e ? oe(/* @__PURE__ */ f("div", {
1646
+ style: {
1647
+ position: "fixed",
1648
+ inset: 0,
1649
+ zIndex: 50,
1650
+ overflowY: "auto"
1651
+ },
1652
+ "aria-modal": "true",
1653
+ role: "dialog",
1654
+ "aria-labelledby": n ? "dialog-title" : void 0,
1655
+ onKeyDown: u,
1656
+ children: [/* @__PURE__ */ d("div", {
1657
+ style: {
1658
+ position: "fixed",
1659
+ inset: 0
1660
+ },
1661
+ className: "bg-black/50",
1662
+ "aria-hidden": !0,
1663
+ onClick: t
1664
+ }), /* @__PURE__ */ d("div", {
1665
+ style: {
1666
+ display: "flex",
1667
+ minHeight: "100%",
1668
+ width: "100%",
1669
+ alignItems: "center",
1670
+ justifyContent: "center",
1671
+ padding: "var(--spacing-md, 16px)",
1672
+ boxSizing: "border-box"
1673
+ },
1674
+ children: /* @__PURE__ */ f("div", {
1675
+ ref: l,
1676
+ tabIndex: -1,
1677
+ className: `relative z-10 flex flex-col w-full ${yt[r]} rounded-lg border border-border bg-bg-primary shadow-xl outline-none animate-dialog-in ${c}`,
1678
+ children: [
1679
+ n && /* @__PURE__ */ f("div", {
1680
+ className: "flex items-center justify-between px-lg py-md border-b border-border",
1681
+ children: [/* @__PURE__ */ d("h2", {
1682
+ id: "dialog-title",
1683
+ className: "text-h3 font-semibold text-text-primary",
1684
+ children: n
1685
+ }), /* @__PURE__ */ d("button", {
1686
+ type: "button",
1687
+ onClick: t,
1688
+ className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
1689
+ "aria-label": "Close dialog",
1690
+ children: /* @__PURE__ */ d(A, { size: 18 })
1691
+ })]
1692
+ }),
1693
+ /* @__PURE__ */ d("div", {
1694
+ className: "flex-1 overflow-y-auto px-lg py-md text-body text-text-primary",
1695
+ children: a
1696
+ }),
1697
+ o && /* @__PURE__ */ d("div", {
1698
+ className: "flex items-center justify-end gap-sm px-lg py-md border-t border-border",
1699
+ children: o
1700
+ })
1701
+ ]
1702
+ })
1703
+ })]
1704
+ }), document.body) : null;
1887
1705
  }
1888
- function rr({
1889
- open: t,
1890
- onCancel: r,
1891
- onConfirm: o,
1892
- title: n,
1893
- children: s,
1894
- confirmLabel: i = "Confirm",
1895
- cancelLabel: a = "Cancel",
1896
- danger: c = !1,
1897
- submitting: d = !1,
1898
- size: l = "sm"
1899
- }) {
1900
- return /* @__PURE__ */ m(ht, { open: t, onClose: r, title: n, size: l, children: [
1901
- /* @__PURE__ */ m("div", { className: "flex gap-3", children: [
1902
- c && /* @__PURE__ */ e(
1903
- q,
1904
- {
1905
- size: 22,
1906
- className: "shrink-0 mt-0.5 text-error",
1907
- "aria-hidden": !0
1908
- }
1909
- ),
1910
- /* @__PURE__ */ e("div", { className: "text-body text-text-secondary", children: s })
1911
- ] }),
1912
- /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-sm mt-lg", children: [
1913
- /* @__PURE__ */ e(
1914
- "button",
1915
- {
1916
- type: "button",
1917
- onClick: r,
1918
- disabled: d,
1919
- className: [
1920
- "px-4 py-2 rounded-md text-small font-medium text-text-primary bg-bg-secondary hover:bg-bg-tertiary border border-border transition-colors cursor-pointer",
1921
- d && "opacity-50 pointer-events-none"
1922
- ].filter(Boolean).join(" "),
1923
- children: a
1924
- }
1925
- ),
1926
- /* @__PURE__ */ m(
1927
- "button",
1928
- {
1929
- type: "button",
1930
- onClick: o,
1931
- disabled: d,
1932
- className: [
1933
- "inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md text-small font-medium text-white transition-colors cursor-pointer",
1934
- c ? "bg-error hover:bg-error/80" : "bg-primary hover:bg-primary-hover",
1935
- d && "opacity-80 pointer-events-none"
1936
- ].filter(Boolean).join(" "),
1937
- children: [
1938
- d && /* @__PURE__ */ e(te, { size: "sm" }),
1939
- i
1940
- ]
1941
- }
1942
- )
1943
- ] })
1944
- ] });
1706
+ //#endregion
1707
+ //#region src/components/feedback/ConfirmDialog.tsx
1708
+ function xt({ open: e, onCancel: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", danger: s = !1, submitting: c = !1, size: l = "sm" }) {
1709
+ return /* @__PURE__ */ f(bt, {
1710
+ open: e,
1711
+ onClose: t,
1712
+ title: r,
1713
+ size: l,
1714
+ children: [/* @__PURE__ */ f("div", {
1715
+ className: "flex gap-3",
1716
+ children: [s && /* @__PURE__ */ d(b, {
1717
+ size: 22,
1718
+ className: "shrink-0 mt-0.5 text-error",
1719
+ "aria-hidden": !0
1720
+ }), /* @__PURE__ */ d("div", {
1721
+ className: "text-body text-text-secondary",
1722
+ children: i
1723
+ })]
1724
+ }), /* @__PURE__ */ f("div", {
1725
+ className: "flex items-center justify-end gap-sm mt-lg",
1726
+ children: [/* @__PURE__ */ d("button", {
1727
+ type: "button",
1728
+ onClick: t,
1729
+ disabled: c,
1730
+ className: ["px-4 py-2 rounded-md text-small font-medium text-text-primary bg-bg-secondary hover:bg-bg-tertiary border border-border transition-colors cursor-pointer", c && "opacity-50 pointer-events-none"].filter(Boolean).join(" "),
1731
+ children: o
1732
+ }), /* @__PURE__ */ f("button", {
1733
+ type: "button",
1734
+ onClick: n,
1735
+ disabled: c,
1736
+ className: [
1737
+ "inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md text-small font-medium text-white transition-colors cursor-pointer",
1738
+ s ? "bg-error hover:bg-error/80" : "bg-primary hover:bg-primary-hover",
1739
+ c && "opacity-80 pointer-events-none"
1740
+ ].filter(Boolean).join(" "),
1741
+ children: [c && /* @__PURE__ */ d(W, { size: "sm" }), a]
1742
+ })]
1743
+ })]
1744
+ });
1945
1745
  }
1946
- const be = R(null);
1947
- function nr() {
1948
- const t = M(be);
1949
- if (!t) throw new Error("useToast must be used within a <ToastProvider>");
1950
- return t;
1746
+ //#endregion
1747
+ //#region src/components/feedback/toastContext.ts
1748
+ var St = e(null);
1749
+ function Ct() {
1750
+ let e = r(St);
1751
+ if (!e) throw Error("useToast must be used within a <ToastProvider>");
1752
+ return e;
1951
1753
  }
1952
- const yt = {
1953
- success: {
1954
- bg: "bg-bg-primary",
1955
- accent: "bg-success",
1956
- text: "text-success",
1957
- icon: ce
1958
- },
1959
- warning: {
1960
- bg: "bg-bg-primary",
1961
- accent: "bg-warning",
1962
- text: "text-warning",
1963
- icon: q
1964
- },
1965
- error: {
1966
- bg: "bg-bg-primary",
1967
- accent: "bg-error",
1968
- text: "text-error",
1969
- icon: le
1970
- },
1971
- info: {
1972
- bg: "bg-bg-primary",
1973
- accent: "bg-info",
1974
- text: "text-info",
1975
- icon: ae
1976
- }
1754
+ //#endregion
1755
+ //#region src/components/feedback/Toast.tsx
1756
+ var wt = {
1757
+ success: {
1758
+ bg: "bg-bg-primary",
1759
+ accent: "bg-success",
1760
+ text: "text-success",
1761
+ icon: p
1762
+ },
1763
+ warning: {
1764
+ bg: "bg-bg-primary",
1765
+ accent: "bg-warning",
1766
+ text: "text-warning",
1767
+ icon: b
1768
+ },
1769
+ error: {
1770
+ bg: "bg-bg-primary",
1771
+ accent: "bg-error",
1772
+ text: "text-error",
1773
+ icon: j
1774
+ },
1775
+ info: {
1776
+ bg: "bg-bg-primary",
1777
+ accent: "bg-info",
1778
+ text: "text-info",
1779
+ icon: x
1780
+ }
1977
1781
  };
1978
- function vt({ toast: t, onRemove: r }) {
1979
- const { variant: o, title: n, message: s, duration: i = 5e3 } = t, { bg: a, accent: c, text: d, icon: l } = yt[o], [u, f] = C(100), h = D(0), p = D(0);
1980
- return I(() => {
1981
- if (i <= 0) return;
1982
- h.current = performance.now();
1983
- const y = (b) => {
1984
- const v = b - h.current, N = Math.max(0, 100 - v / i * 100);
1985
- if (f(N), N <= 0) {
1986
- r(t.id);
1987
- return;
1988
- }
1989
- p.current = requestAnimationFrame(y);
1990
- };
1991
- return p.current = requestAnimationFrame(y), () => cancelAnimationFrame(p.current);
1992
- }, [i, t.id, r]), /* @__PURE__ */ m(
1993
- "div",
1994
- {
1995
- role: "status",
1996
- "aria-live": "polite",
1997
- className: `relative overflow-hidden rounded-lg border border-border shadow-lg ${a} w-80 animate-slide-in`,
1998
- children: [
1999
- /* @__PURE__ */ m("div", { className: "flex gap-3 p-md", children: [
2000
- /* @__PURE__ */ e(l, { size: 18, className: `shrink-0 mt-0.5 ${d}`, "aria-hidden": !0 }),
2001
- /* @__PURE__ */ m("div", { className: "flex-1 min-w-0", children: [
2002
- n && /* @__PURE__ */ e("p", { className: "font-semibold text-small text-text-primary", children: n }),
2003
- /* @__PURE__ */ e("p", { className: "text-small text-text-secondary", children: s })
2004
- ] }),
2005
- /* @__PURE__ */ e(
2006
- "button",
2007
- {
2008
- type: "button",
2009
- onClick: () => r(t.id),
2010
- className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
2011
- "aria-label": "Dismiss notification",
2012
- children: /* @__PURE__ */ e(U, { size: 14 })
2013
- }
2014
- )
2015
- ] }),
2016
- i > 0 && /* @__PURE__ */ e("div", { className: "h-0.5 w-full bg-bg-tertiary", children: /* @__PURE__ */ e(
2017
- "div",
2018
- {
2019
- className: `h-full ${c} transition-none`,
2020
- style: { width: `${u}%` }
2021
- }
2022
- ) })
2023
- ]
2024
- }
2025
- );
1782
+ function Tt({ toast: e, onRemove: t }) {
1783
+ let { variant: n, title: r, message: a, duration: o = 5e3 } = e, { bg: l, accent: u, text: p, icon: m } = wt[n], [h, g] = c(100), _ = s(0), v = s(0);
1784
+ return i(() => {
1785
+ if (o <= 0) return;
1786
+ _.current = performance.now();
1787
+ let n = (r) => {
1788
+ let i = r - _.current, a = Math.max(0, 100 - i / o * 100);
1789
+ if (g(a), a <= 0) {
1790
+ t(e.id);
1791
+ return;
1792
+ }
1793
+ v.current = requestAnimationFrame(n);
1794
+ };
1795
+ return v.current = requestAnimationFrame(n), () => cancelAnimationFrame(v.current);
1796
+ }, [
1797
+ o,
1798
+ e.id,
1799
+ t
1800
+ ]), /* @__PURE__ */ f("div", {
1801
+ role: "status",
1802
+ "aria-live": "polite",
1803
+ className: `relative overflow-hidden rounded-lg border border-border shadow-lg ${l} w-80 animate-slide-in`,
1804
+ children: [/* @__PURE__ */ f("div", {
1805
+ className: "flex gap-3 p-md",
1806
+ children: [
1807
+ /* @__PURE__ */ d(m, {
1808
+ size: 18,
1809
+ className: `shrink-0 mt-0.5 ${p}`,
1810
+ "aria-hidden": !0
1811
+ }),
1812
+ /* @__PURE__ */ f("div", {
1813
+ className: "flex-1 min-w-0",
1814
+ children: [r && /* @__PURE__ */ d("p", {
1815
+ className: "font-semibold text-small text-text-primary",
1816
+ children: r
1817
+ }), /* @__PURE__ */ d("p", {
1818
+ className: "text-small text-text-secondary",
1819
+ children: a
1820
+ })]
1821
+ }),
1822
+ /* @__PURE__ */ d("button", {
1823
+ type: "button",
1824
+ onClick: () => t(e.id),
1825
+ className: "shrink-0 p-1 rounded-sm text-text-secondary hover:text-text-primary hover:bg-bg-tertiary transition-colors cursor-pointer",
1826
+ "aria-label": "Dismiss notification",
1827
+ children: /* @__PURE__ */ d(A, { size: 14 })
1828
+ })
1829
+ ]
1830
+ }), o > 0 && /* @__PURE__ */ d("div", {
1831
+ className: "h-0.5 w-full bg-bg-tertiary",
1832
+ children: /* @__PURE__ */ d("div", {
1833
+ className: `h-full ${u} transition-none`,
1834
+ style: { width: `${h}%` }
1835
+ })
1836
+ })]
1837
+ });
2026
1838
  }
2027
- let Nt = 0;
2028
- function or({ children: t }) {
2029
- const [r, o] = C([]), n = k((i) => {
2030
- const a = `toast-${++Nt}`;
2031
- return o((c) => [...c, { ...i, id: a }]), a;
2032
- }, []), s = k((i) => {
2033
- o((a) => a.filter((c) => c.id !== i));
2034
- }, []);
2035
- return /* @__PURE__ */ m(be, { value: { addToast: n, removeToast: s }, children: [
2036
- t,
2037
- /* @__PURE__ */ e(
2038
- "div",
2039
- {
2040
- "aria-label": "Notifications",
2041
- className: "fixed bottom-lg right-lg z-50 flex flex-col-reverse gap-sm pointer-events-none",
2042
- children: r.map((i) => /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: /* @__PURE__ */ e(vt, { toast: i, onRemove: s }) }, i.id))
2043
- }
2044
- )
2045
- ] });
1839
+ var Et = 0;
1840
+ function Dt({ children: e }) {
1841
+ let [t, r] = c([]), i = n((e) => {
1842
+ let t = `toast-${++Et}`;
1843
+ return r((n) => [...n, {
1844
+ ...e,
1845
+ id: t
1846
+ }]), t;
1847
+ }, []), a = n((e) => {
1848
+ r((t) => t.filter((t) => t.id !== e));
1849
+ }, []);
1850
+ return /* @__PURE__ */ f(St, {
1851
+ value: {
1852
+ addToast: i,
1853
+ removeToast: a
1854
+ },
1855
+ children: [e, /* @__PURE__ */ d("div", {
1856
+ "aria-label": "Notifications",
1857
+ className: "fixed bottom-lg right-lg z-50 flex flex-col-reverse gap-sm pointer-events-none",
1858
+ children: t.map((e) => /* @__PURE__ */ d("div", {
1859
+ className: "pointer-events-auto",
1860
+ children: /* @__PURE__ */ d(Tt, {
1861
+ toast: e,
1862
+ onRemove: a
1863
+ })
1864
+ }, e.id))
1865
+ })]
1866
+ });
2046
1867
  }
2047
- const xe = R(null), wt = {
2048
- name: "Alice Martin",
2049
- email: "alice.martin@epfl.ch",
2050
- role: "admin"
1868
+ //#endregion
1869
+ //#region src/hooks/useAuth.tsx
1870
+ var Ot = e(null), kt = {
1871
+ name: "Alice Martin",
1872
+ email: "alice.martin@epfl.ch",
1873
+ role: "admin"
2051
1874
  };
2052
- function ir({ initialUser: t = wt, children: r }) {
2053
- const [o, n] = C(t), s = (a) => n((c) => ({ ...c, role: a })), i = K(() => ({ user: o, setRole: s }), [o]);
2054
- return /* @__PURE__ */ e(xe.Provider, { value: i, children: r });
1875
+ function At({ initialUser: e = kt, children: t }) {
1876
+ let [n, r] = c(e), i = (e) => r((t) => ({
1877
+ ...t,
1878
+ role: e
1879
+ })), a = o(() => ({
1880
+ user: n,
1881
+ setRole: i
1882
+ }), [n]);
1883
+ return /* @__PURE__ */ d(Ot.Provider, {
1884
+ value: a,
1885
+ children: t
1886
+ });
2055
1887
  }
2056
- function sr() {
2057
- const t = M(xe);
2058
- if (!t) throw new Error("useAuth must be used within an AuthProvider");
2059
- return t;
1888
+ function jt() {
1889
+ let e = r(Ot);
1890
+ if (!e) throw Error("useAuth must be used within an AuthProvider");
1891
+ return e;
2060
1892
  }
2061
- export {
2062
- tr as Alert,
2063
- ir as AuthProvider,
2064
- Ft as Avatar,
2065
- Et as Badge,
2066
- ut as BurgerDrawer,
2067
- St as Button,
2068
- Jt as Card,
2069
- Pt as Checkbox,
2070
- rr as ConfirmDialog,
2071
- Qt as DescriptionList,
2072
- ht as Dialog,
2073
- Ot as DropdownDivider,
2074
- Vt as DropdownItem,
2075
- Ut as DropdownMenu,
2076
- Zt as EmptyState,
2077
- Bt as FileUpload,
2078
- He as IconButton,
2079
- Lt as Input,
2080
- Xt as LanguageSwitcher,
2081
- Wt as PageShell,
2082
- Kt as Popover,
2083
- At as ProgressBar,
2084
- Qe as RadioGroup,
2085
- Tt as Select,
2086
- dt as SideNav,
2087
- te as Spinner,
2088
- Rt as Switch,
2089
- Ht as TabPanel,
2090
- er as Table,
2091
- qt as Tabs,
2092
- Mt as Textarea,
2093
- _t as ThemeToggle,
2094
- or as ToastProvider,
2095
- Gt as Tooltip,
2096
- ct as TopNav,
2097
- oe as epflSelectClassNames,
2098
- et as epflSelectTheme,
2099
- Yt as initTheme,
2100
- sr as useAuth,
2101
- rt as useLanguage,
2102
- lt as useTheme,
2103
- nr as useToast
2104
- };
2105
- //# sourceMappingURL=poesis.js.map
1893
+ //#endregion
1894
+ export { vt as Alert, At as AuthProvider, le as Avatar, fe as Badge, ct as BurgerDrawer, _e as Button, dt as Card, Oe as Checkbox, xt as ConfirmDialog, ft as DescriptionList, bt as Dialog, Be as DropdownDivider, Ve as DropdownItem, He as DropdownMenu, pt as EmptyState, we as FileUpload, G as IconButton, Me as Input, Ze as LanguageSwitcher, ut as PageShell, Se as Pagination, Ue as Popover, De as ProgressBar, Y as RadioGroup, Ie as Select, ot as SideNav, W as Spinner, Le as Switch, Ge as TabPanel, gt as Table, Ke as Tabs, Re as Textarea, it as ThemeToggle, Dt as ToastProvider, Je as Tooltip, at as TopNav, X as epflSelectClassNames, Fe as epflSelectTheme, nt as initTheme, jt as useAuth, Ye as useLanguage, rt as useTheme, Ct as useToast };
1895
+
1896
+ //# sourceMappingURL=poesis.js.map