@haiilo/catalyst 1.2.1 → 1.2.3

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 (95) hide show
  1. package/dist/catalyst/catalyst.css +1 -1
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/p-394f6b20.entry.js +2 -0
  5. package/dist/catalyst/p-394f6b20.entry.js.map +1 -0
  6. package/dist/catalyst/p-60a20ebe.js +10 -0
  7. package/dist/catalyst/p-60a20ebe.js.map +1 -0
  8. package/dist/catalyst/p-bc57ca12.entry.js +2 -0
  9. package/dist/catalyst/p-bc57ca12.entry.js.map +1 -0
  10. package/dist/catalyst/scss/_mixins.scss +0 -1
  11. package/dist/catalyst/scss/_variables.scss +2 -2
  12. package/dist/catalyst/scss/_variables.tokens.scss +6 -2
  13. package/dist/catalyst/scss/core/_typography.scss +42 -12
  14. package/dist/catalyst/scss/utils/_disabled.mixins.scss +0 -1
  15. package/dist/catalyst/scss/utils/_spacing.scss +0 -1
  16. package/dist/cjs/{cat-alert_23.cjs.entry.js → cat-alert_22.cjs.entry.js} +41 -1367
  17. package/dist/cjs/cat-alert_22.cjs.entry.js.map +1 -0
  18. package/dist/cjs/cat-modal.cjs.entry.js +74 -0
  19. package/dist/cjs/cat-modal.cjs.entry.js.map +1 -0
  20. package/dist/cjs/catalyst.cjs.js +1 -1
  21. package/dist/cjs/first-tabbable-7966cf1c.js +1288 -0
  22. package/dist/cjs/first-tabbable-7966cf1c.js.map +1 -0
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/collection/components/cat-alert/cat-alert.css +5 -5
  25. package/dist/collection/components/cat-avatar/cat-avatar.css +1 -1
  26. package/dist/collection/components/cat-badge/cat-badge.css +17 -17
  27. package/dist/collection/components/cat-button/cat-button.css +62 -45
  28. package/dist/collection/components/cat-card/cat-card.css +1 -1
  29. package/dist/collection/components/cat-checkbox/cat-checkbox.css +12 -7
  30. package/dist/collection/components/cat-input/cat-input.css +8 -8
  31. package/dist/collection/components/cat-menu/cat-menu.css +1 -1
  32. package/dist/collection/components/cat-menu/cat-menu.js +21 -1
  33. package/dist/collection/components/cat-menu/cat-menu.js.map +1 -1
  34. package/dist/collection/components/cat-modal/cat-modal.css +2 -2
  35. package/dist/collection/components/cat-radio/cat-radio.css +6 -6
  36. package/dist/collection/components/cat-select/cat-select.css +10 -9
  37. package/dist/collection/components/cat-skeleton/cat-skeleton.css +1 -1
  38. package/dist/collection/components/cat-tabs/cat-tabs.css +1 -1
  39. package/dist/collection/components/cat-textarea/cat-textarea.css +4 -4
  40. package/dist/collection/components/cat-toggle/cat-toggle.css +8 -5
  41. package/dist/collection/components/cat-tooltip/cat-tooltip.css +3 -3
  42. package/dist/collection/scss/_mixins.scss +0 -1
  43. package/dist/collection/scss/_variables.scss +2 -2
  44. package/dist/collection/scss/_variables.tokens.scss +6 -2
  45. package/dist/collection/scss/core/_typography.scss +42 -12
  46. package/dist/collection/scss/utils/_disabled.mixins.scss +0 -1
  47. package/dist/collection/scss/utils/_spacing.scss +0 -1
  48. package/dist/components/cat-alert.js +1 -1
  49. package/dist/components/cat-alert.js.map +1 -1
  50. package/dist/components/cat-avatar2.js +1 -1
  51. package/dist/components/cat-avatar2.js.map +1 -1
  52. package/dist/components/cat-badge.js +1 -1
  53. package/dist/components/cat-badge.js.map +1 -1
  54. package/dist/components/cat-button2.js +1 -1
  55. package/dist/components/cat-button2.js.map +1 -1
  56. package/dist/components/cat-card.js +1 -1
  57. package/dist/components/cat-card.js.map +1 -1
  58. package/dist/components/cat-checkbox2.js +1 -1
  59. package/dist/components/cat-checkbox2.js.map +1 -1
  60. package/dist/components/cat-input.js +1 -1
  61. package/dist/components/cat-input.js.map +1 -1
  62. package/dist/components/cat-menu.js +23 -3
  63. package/dist/components/cat-menu.js.map +1 -1
  64. package/dist/components/cat-modal.js +1 -1
  65. package/dist/components/cat-modal.js.map +1 -1
  66. package/dist/components/cat-radio.js +1 -1
  67. package/dist/components/cat-radio.js.map +1 -1
  68. package/dist/components/cat-select2.js +1 -1
  69. package/dist/components/cat-select2.js.map +1 -1
  70. package/dist/components/cat-skeleton2.js +1 -1
  71. package/dist/components/cat-skeleton2.js.map +1 -1
  72. package/dist/components/cat-tabs.js +1 -1
  73. package/dist/components/cat-tabs.js.map +1 -1
  74. package/dist/components/cat-textarea.js +1 -1
  75. package/dist/components/cat-textarea.js.map +1 -1
  76. package/dist/components/cat-toggle.js +1 -1
  77. package/dist/components/cat-toggle.js.map +1 -1
  78. package/dist/components/cat-tooltip.js +1 -1
  79. package/dist/components/cat-tooltip.js.map +1 -1
  80. package/dist/esm/{cat-alert_23.entry.js → cat-alert_22.entry.js} +37 -1362
  81. package/dist/esm/cat-alert_22.entry.js.map +1 -0
  82. package/dist/esm/cat-modal.entry.js +70 -0
  83. package/dist/esm/cat-modal.entry.js.map +1 -0
  84. package/dist/esm/catalyst.js +1 -1
  85. package/dist/esm/first-tabbable-4a00de61.js +1284 -0
  86. package/dist/esm/first-tabbable-4a00de61.js.map +1 -0
  87. package/dist/esm/loader.js +1 -1
  88. package/dist/types/components/cat-menu/cat-menu.d.ts +1 -0
  89. package/package.json +2 -2
  90. package/dist/catalyst/p-e428a411.entry.js +0 -10
  91. package/dist/catalyst/p-e428a411.entry.js.map +0 -1
  92. package/dist/catalyst/scss/utils/_spacing.mixins.scss +0 -5
  93. package/dist/cjs/cat-alert_23.cjs.entry.js.map +0 -1
  94. package/dist/collection/scss/utils/_spacing.mixins.scss +0 -5
  95. package/dist/esm/cat-alert_23.entry.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-df195301.js';
2
2
  import { l as loglevel, a as CatIconRegistry, C as CatI18nRegistry, N as NotificationsService } from './cat-notification-8bcf6fa2.js';
3
+ import { t as tabbable, f as firstTabbable, c as createFocusTrap } from './first-tabbable-4a00de61.js';
3
4
 
4
5
  function setAttributeDefault(host, attr, value) {
5
6
  if (!host.hostElement.hasAttribute(attr) && value != null) {
@@ -10,7 +11,7 @@ function setPropertyDefault(host, prop) {
10
11
  setAttributeDefault(host, String(prop), host[prop]);
11
12
  }
12
13
 
13
- const catAlertCss = ":host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}:host([color=primary]) cat-icon{color:rgb(var(--cat-primary-text, 0, 129, 148))}:host([color=secondary]){background-color:rgba(105, 118, 135, 0.1)}:host([color=secondary]) cat-icon{color:#697687}:host([color=success]){background-color:rgba(0, 132, 88, 0.1)}:host([color=success]) cat-icon{color:#008458}:host([color=warning]){background-color:rgba(255, 206, 128, 0.1)}:host([color=warning]) cat-icon{color:#ebb663}:host([color=danger]){background-color:rgba(217, 52, 13, 0.1)}:host([color=danger]) cat-icon{color:#d9340d}";
14
+ const catAlertCss = ":host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem);margin-bottom:1rem}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}:host([color=primary]) cat-icon{color:rgb(var(--cat-primary-text, 0, 129, 148))}:host([color=secondary]){background-color:rgba(var(--cat-secondary-bg, 105, 118, 135), 0.1)}:host([color=secondary]) cat-icon{color:#697687}:host([color=success]){background-color:rgba(var(--cat-success-bg-, 0, 132, 88), 0.1)}:host([color=success]) cat-icon{color:#008458}:host([color=warning]){background-color:rgba(var(--cat-warning-bg, 255, 206, 128), 0.1)}:host([color=warning]) cat-icon{color:#ebb663}:host([color=danger]){background-color:rgba(var(--cat-danger-bg, 217, 52, 13), 0.1)}:host([color=danger]) cat-icon{color:#d9340d}";
14
15
 
15
16
  const CatAlert = class {
16
17
  constructor(hostRef) {
@@ -65,7 +66,7 @@ const loadImg = (src) => {
65
66
  });
66
67
  };
67
68
 
68
- const catAvatarCss = ":host{display:contents}:host([hidden]){display:none}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:0.25rem;text-decoration:inherit;color:var(--cat-avatar-fill, white);background-color:var(--cat-avatar-bg, #697687);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.avatar:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.avatar-round{border-radius:50%}.avatar-xs{width:var(--cat-avatar-size, 1.5rem);height:var(--cat-avatar-size, 1.5rem);line-height:var(--cat-avatar-size, 1.5rem);font-size:var(--cat-avatar-font-size, 0.75rem)}.avatar-s{width:var(--cat-avatar-size, 2rem);height:var(--cat-avatar-size, 2rem);line-height:var(--cat-avatar-size, 2rem);font-size:var(--cat-avatar-font-size, 0.875rem)}.avatar-m{width:var(--cat-avatar-size, 2.5rem);height:var(--cat-avatar-size, 2.5rem);line-height:var(--cat-avatar-size, 2.5rem);font-size:var(--cat-avatar-font-size, 0.9375rem)}.avatar-l{width:var(--cat-avatar-size, 3rem);height:var(--cat-avatar-size, 3rem);line-height:var(--cat-avatar-size, 3rem);font-size:var(--cat-avatar-font-size, 1.125rem)}.avatar-xl{width:var(--cat-avatar-size, 3.5rem);height:var(--cat-avatar-size, 3.5rem);line-height:var(--cat-avatar-size, 3.5rem);font-size:var(--cat-avatar-font-size, 1.25rem)}";
69
+ const catAvatarCss = ":host{display:contents}:host([hidden]){display:none}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:inherit;color:var(--cat-avatar-fill, white);background-color:var(--cat-avatar-bg, #697687);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.avatar:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.avatar-round{border-radius:50%}.avatar-xs{width:var(--cat-avatar-size, 1.5rem);height:var(--cat-avatar-size, 1.5rem);line-height:var(--cat-avatar-size, 1.5rem);font-size:var(--cat-avatar-font-size, 0.75rem)}.avatar-s{width:var(--cat-avatar-size, 2rem);height:var(--cat-avatar-size, 2rem);line-height:var(--cat-avatar-size, 2rem);font-size:var(--cat-avatar-font-size, 0.875rem)}.avatar-m{width:var(--cat-avatar-size, 2.5rem);height:var(--cat-avatar-size, 2.5rem);line-height:var(--cat-avatar-size, 2.5rem);font-size:var(--cat-avatar-font-size, 0.9375rem)}.avatar-l{width:var(--cat-avatar-size, 3rem);height:var(--cat-avatar-size, 3rem);line-height:var(--cat-avatar-size, 3rem);font-size:var(--cat-avatar-font-size, 1.125rem)}.avatar-xl{width:var(--cat-avatar-size, 3.5rem);height:var(--cat-avatar-size, 3.5rem);line-height:var(--cat-avatar-size, 3.5rem);font-size:var(--cat-avatar-font-size, 1.25rem)}";
69
70
 
70
71
  const CatAvatar = class {
71
72
  constructor(hostRef) {
@@ -135,7 +136,7 @@ const CatAvatar = class {
135
136
  };
136
137
  CatAvatar.style = catAvatarCss;
137
138
 
138
- const catBadgeCss = ":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:0.25rem;text-decoration:none;line-height:1.5}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgba(var(--bg), 0.1);color:rgb(var(--text));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--border:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}:host([color=success]){--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}:host([color=warning]){--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}:host([color=danger]){--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=outlined]){animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--border), 0.2)}}";
139
+ const catBadgeCss = ":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgba(var(--bg), 0.1);color:rgb(var(--text));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--border:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--border:var(--cat-secondary-bg, 105, 118, 135)}:host([color=success]){--bg:var(--cat-success-bg-, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--border:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--border:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--border:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=outlined]){animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--border), 0.2)}}";
139
140
 
140
141
  const CatBadge = class {
141
142
  constructor(hostRef) {
@@ -288,7 +289,7 @@ function createEmptyStyleRule(query) {
288
289
  }
289
290
  }
290
291
 
291
- const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:0.25rem;text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:0.65;filter:grayscale(100%)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:none;background-color:rgba(var(--base), 0.05)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 83, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 83, 113)}.cat-button-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--base:105, 118, 135}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--base:0, 132, 88}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 117, 78;--fill:255, 255, 255;--text:0, 117, 78}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 105, 70;--fill:255, 255, 255;--text:0, 105, 70}.cat-button-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--base:159, 97, 0}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 214, 148;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 222, 168;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--base:217, 52, 13}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:194, 46, 11;--fill:255, 255, 255;--text:194, 46, 11}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:174, 42, 10;--fill:255, 255, 255;--text:174, 42, 10}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xs]){margin:-0.25rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.25rem;margin-bottom:-0.25rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.25rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.25rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0;justify-content:left}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}";
292
+ const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:var(--cat-opacity-disabled, 0.65)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:235, 236, 240;--fill:var(--cat-font-color-muted, 105, 118, 135)}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined.cat-button-disabled{--base:var(--cat-font-color-muted, 105, 118, 135);--text:var(--cat-font-color-muted, 105, 118, 135)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 105, 118, 135)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:none;background-color:rgba(var(--base), 0.05)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:none;background-color:rgba(var(--base), 0.1)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 83, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 83, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-catsecondary-text-active, 0, 0, 0)}.cat-button-success{--bg:var(--cat-success-bg-, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-catdanger-text-active, 174, 42, 10)}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xs]){margin:-0.25rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.25rem;margin-bottom:-0.25rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.25rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.25rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0;justify-content:left}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}";
292
293
 
293
294
  const CatButton = class {
294
295
  constructor(hostRef) {
@@ -465,7 +466,7 @@ const CatButton = class {
465
466
  };
466
467
  CatButton.style = catButtonCss;
467
468
 
468
- const catCardCss = ":host{display:block;margin-bottom:1rem;border-radius:0.5rem;background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(nav){margin:-0.75rem -1.25rem !important}::slotted(:last-child){margin-bottom:0 !important}::slotted(.cat-card-pull){margin:-1.25rem !important;width:calc(100% + 2.5rem) !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.25rem !important;margin-right:-1.25rem !important;width:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.25rem !important;margin-bottom:-1.25rem !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.25rem !important}::slotted(.cat-card-pull-l){margin-left:-1.25rem !important}::slotted(.cat-card-pull-r){margin-right:-1.25rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.25rem !important}";
469
+ const catCardCss = ":host{display:block;margin-bottom:1rem;border-radius:var(--cat-border-radius-l, 0.5rem);background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(nav){margin:-0.75rem -1.25rem !important}::slotted(:last-child){margin-bottom:0 !important}::slotted(.cat-card-pull){margin:-1.25rem !important;width:calc(100% + 2.5rem) !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.25rem !important;margin-right:-1.25rem !important;width:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.25rem !important;margin-bottom:-1.25rem !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.25rem !important}::slotted(.cat-card-pull-l){margin-left:-1.25rem !important}::slotted(.cat-card-pull-r){margin-right:-1.25rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.25rem !important}";
469
470
 
470
471
  const CatCard = class {
471
472
  constructor(hostRef) {
@@ -492,7 +493,7 @@ const CatFormHint = props => {
492
493
  ]));
493
494
  };
494
495
 
495
- const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid #d7dbe0;border-radius:0.125rem;transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host(.cat-error) .box{border:1px solid #d9340d}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:#d9340d;border-color:#d9340d;stroke:white}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
496
+ const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f8f8fb;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 105, 118, 135))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
496
497
 
497
498
  let nextUniqueId$8 = 0;
498
499
  const CatCheckbox = class {
@@ -600,7 +601,7 @@ const CatIcon = class {
600
601
  };
601
602
  CatIcon.style = catIconCss;
602
603
 
603
- const catInputCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}.input-wrapper{display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:0.25rem;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px #d7dbe0}.input-wrapper:not(.input-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}:host(.cat-error) .input-wrapper{box-shadow:0 0 0 1px #d9340d}:host(.cat-error) .input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px #d9340d}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.text-prefix,.text-suffix{display:inline-flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.text-prefix{border-right:1px solid #d7dbe0;padding-right:0.75rem}.text-suffix{border-left:1px solid #d7dbe0;padding-left:0.75rem}.icon-prefix,.icon-suffix{align-self:center}.input-inner-wrapper{display:flex;align-items:center;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}input.has-clearable{padding-right:1.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}";
604
+ const catInputCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}.input-wrapper{display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:0 0 0 1px rgb(var(--cat-border-color-dark, 215, 219, 224));transition:box-shadow 0.13s linear}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-border-color-dark, 215, 219, 224))}.input-wrapper:not(.input-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}:host(.cat-error) .input-wrapper{box-shadow:0 0 0 1px rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-danger-bg, 217, 52, 13))}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.text-prefix,.text-suffix{display:inline-flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.text-prefix{border-right:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));padding-right:0.75rem}.text-suffix{border-left:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));padding-left:0.75rem}.icon-prefix,.icon-suffix{align-self:center}.input-inner-wrapper{display:flex;align-items:center;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}input.has-clearable{padding-right:1.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}";
604
605
 
605
606
  let nextUniqueId$7 = 0;
606
607
  const CatInput = class {
@@ -1768,1288 +1769,7 @@ const computePosition = (reference, floating, options) => computePosition$1(refe
1768
1769
  ...options
1769
1770
  });
1770
1771
 
1771
- /*!
1772
- * tabbable 6.0.0
1773
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1774
- */
1775
- var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
1776
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
1777
- var NoElement = typeof Element === 'undefined';
1778
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1779
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
1780
- return element.getRootNode();
1781
- } : function (element) {
1782
- return element.ownerDocument;
1783
- };
1784
- /**
1785
- * @param {Element} el container to check in
1786
- * @param {boolean} includeContainer add container to check
1787
- * @param {(node: Element) => boolean} filter filter candidates
1788
- * @returns {Element[]}
1789
- */
1790
-
1791
- var getCandidates = function getCandidates(el, includeContainer, filter) {
1792
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
1793
-
1794
- if (includeContainer && matches.call(el, candidateSelector)) {
1795
- candidates.unshift(el);
1796
- }
1797
-
1798
- candidates = candidates.filter(filter);
1799
- return candidates;
1800
- };
1801
- /**
1802
- * @callback GetShadowRoot
1803
- * @param {Element} element to check for shadow root
1804
- * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
1805
- */
1806
-
1807
- /**
1808
- * @callback ShadowRootFilter
1809
- * @param {Element} shadowHostNode the element which contains shadow content
1810
- * @returns {boolean} true if a shadow root could potentially contain valid candidates.
1811
- */
1812
-
1813
- /**
1814
- * @typedef {Object} CandidatesScope
1815
- * @property {Element} scope contains inner candidates
1816
- * @property {Element[]} candidates
1817
- */
1818
-
1819
- /**
1820
- * @typedef {Object} IterativeOptions
1821
- * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
1822
- * if a function, implies shadow support is enabled and either returns the shadow root of an element
1823
- * or a boolean stating if it has an undisclosed shadow root
1824
- * @property {(node: Element) => boolean} filter filter candidates
1825
- * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
1826
- * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
1827
- */
1828
-
1829
- /**
1830
- * @param {Element[]} elements list of element containers to match candidates from
1831
- * @param {boolean} includeContainer add container list to check
1832
- * @param {IterativeOptions} options
1833
- * @returns {Array.<Element|CandidatesScope>}
1834
- */
1835
-
1836
-
1837
- var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
1838
- var candidates = [];
1839
- var elementsToCheck = Array.from(elements);
1840
-
1841
- while (elementsToCheck.length) {
1842
- var element = elementsToCheck.shift();
1843
-
1844
- if (element.tagName === 'SLOT') {
1845
- // add shadow dom slot scope (slot itself cannot be focusable)
1846
- var assigned = element.assignedElements();
1847
- var content = assigned.length ? assigned : element.children;
1848
- var nestedCandidates = getCandidatesIteratively(content, true, options);
1849
-
1850
- if (options.flatten) {
1851
- candidates.push.apply(candidates, nestedCandidates);
1852
- } else {
1853
- candidates.push({
1854
- scope: element,
1855
- candidates: nestedCandidates
1856
- });
1857
- }
1858
- } else {
1859
- // check candidate element
1860
- var validCandidate = matches.call(element, candidateSelector);
1861
-
1862
- if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
1863
- candidates.push(element);
1864
- } // iterate over shadow content if possible
1865
-
1866
-
1867
- var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
1868
- typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
1869
- var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
1870
-
1871
- if (shadowRoot && validShadowRoot) {
1872
- // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
1873
- // shadow exists, so look at light dom children as fallback BUT create a scope for any
1874
- // child candidates found because they're likely slotted elements (elements that are
1875
- // children of the web component element (which has the shadow), in the light dom, but
1876
- // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
1877
- // _after_ we return from this recursive call
1878
- var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
1879
-
1880
- if (options.flatten) {
1881
- candidates.push.apply(candidates, _nestedCandidates);
1882
- } else {
1883
- candidates.push({
1884
- scope: element,
1885
- candidates: _nestedCandidates
1886
- });
1887
- }
1888
- } else {
1889
- // there's not shadow so just dig into the element's (light dom) children
1890
- // __without__ giving the element special scope treatment
1891
- elementsToCheck.unshift.apply(elementsToCheck, element.children);
1892
- }
1893
- }
1894
- }
1895
-
1896
- return candidates;
1897
- };
1898
-
1899
- var getTabindex = function getTabindex(node, isScope) {
1900
- if (node.tabIndex < 0) {
1901
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
1902
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
1903
- // yet they are still part of the regular tab order; in FF, they get a default
1904
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
1905
- // order, consider their tab index to be 0.
1906
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
1907
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
1908
- //
1909
- // isScope is positive for custom element with shadow root or slot that by default
1910
- // have tabIndex -1, but need to be sorted by document order in order for their
1911
- // content to be inserted in the correct position
1912
- if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
1913
- return 0;
1914
- }
1915
- }
1916
-
1917
- return node.tabIndex;
1918
- };
1919
-
1920
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
1921
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
1922
- };
1923
-
1924
- var isInput = function isInput(node) {
1925
- return node.tagName === 'INPUT';
1926
- };
1927
-
1928
- var isHiddenInput = function isHiddenInput(node) {
1929
- return isInput(node) && node.type === 'hidden';
1930
- };
1931
-
1932
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
1933
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
1934
- return child.tagName === 'SUMMARY';
1935
- });
1936
- return r;
1937
- };
1938
-
1939
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
1940
- for (var i = 0; i < nodes.length; i++) {
1941
- if (nodes[i].checked && nodes[i].form === form) {
1942
- return nodes[i];
1943
- }
1944
- }
1945
- };
1946
-
1947
- var isTabbableRadio = function isTabbableRadio(node) {
1948
- if (!node.name) {
1949
- return true;
1950
- }
1951
-
1952
- var radioScope = node.form || getRootNode(node);
1953
-
1954
- var queryRadios = function queryRadios(name) {
1955
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
1956
- };
1957
-
1958
- var radioSet;
1959
-
1960
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
1961
- radioSet = queryRadios(window.CSS.escape(node.name));
1962
- } else {
1963
- try {
1964
- radioSet = queryRadios(node.name);
1965
- } catch (err) {
1966
- // eslint-disable-next-line no-console
1967
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
1968
- return false;
1969
- }
1970
- }
1971
-
1972
- var checked = getCheckedRadio(radioSet, node.form);
1973
- return !checked || checked === node;
1974
- };
1975
-
1976
- var isRadio = function isRadio(node) {
1977
- return isInput(node) && node.type === 'radio';
1978
- };
1979
-
1980
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
1981
- return isRadio(node) && !isTabbableRadio(node);
1982
- }; // determines if a node is ultimately attached to the window's document
1983
-
1984
-
1985
- var isNodeAttached = function isNodeAttached(node) {
1986
- var _nodeRootHost;
1987
-
1988
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
1989
- // (but NOT _the_ document; see second 'If' comment below for more).
1990
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
1991
- // is attached, and the one we need to check if it's in the document or not (because the
1992
- // shadow, and all nodes it contains, is never considered in the document since shadows
1993
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
1994
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
1995
- // visibility, including all the nodes it contains). The host could be any normal node,
1996
- // or a custom element (i.e. web component). Either way, that's the one that is considered
1997
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
1998
- // tested).
1999
- // To further complicate things, we have to look all the way up until we find a shadow HOST
2000
- // that is attached (or find none) because the node might be in nested shadows...
2001
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
2002
- // document (per the docs) and while it's a Document-type object, that document does not
2003
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
2004
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
2005
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
2006
- // node is actually detached.
2007
- var nodeRootHost = getRootNode(node).host;
2008
- var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
2009
-
2010
- while (!attached && nodeRootHost) {
2011
- var _nodeRootHost2;
2012
-
2013
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
2014
- // which means we need to get the host's host and check if that parent host is contained
2015
- // in (i.e. attached to) the document
2016
- nodeRootHost = getRootNode(nodeRootHost).host;
2017
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
2018
- }
2019
-
2020
- return attached;
2021
- };
2022
-
2023
- var isZeroArea = function isZeroArea(node) {
2024
- var _node$getBoundingClie = node.getBoundingClientRect(),
2025
- width = _node$getBoundingClie.width,
2026
- height = _node$getBoundingClie.height;
2027
-
2028
- return width === 0 && height === 0;
2029
- };
2030
-
2031
- var isHidden = function isHidden(node, _ref) {
2032
- var displayCheck = _ref.displayCheck,
2033
- getShadowRoot = _ref.getShadowRoot;
2034
-
2035
- // NOTE: visibility will be `undefined` if node is detached from the document
2036
- // (see notes about this further down), which means we will consider it visible
2037
- // (this is legacy behavior from a very long way back)
2038
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
2039
- // _visibility_ check, not a _display_ check
2040
- if (getComputedStyle(node).visibility === 'hidden') {
2041
- return true;
2042
- }
2043
-
2044
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
2045
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
2046
-
2047
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
2048
- return true;
2049
- }
2050
-
2051
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
2052
- if (typeof getShadowRoot === 'function') {
2053
- // figure out if we should consider the node to be in an undisclosed shadow and use the
2054
- // 'non-zero-area' fallback
2055
- var originalNode = node;
2056
-
2057
- while (node) {
2058
- var parentElement = node.parentElement;
2059
- var rootNode = getRootNode(node);
2060
-
2061
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
2062
- ) {
2063
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
2064
- // fall back to a non-zero-area test
2065
- return isZeroArea(node);
2066
- } else if (node.assignedSlot) {
2067
- // iterate up slot
2068
- node = node.assignedSlot;
2069
- } else if (!parentElement && rootNode !== node.ownerDocument) {
2070
- // cross shadow boundary
2071
- node = rootNode.host;
2072
- } else {
2073
- // iterate up normal dom
2074
- node = parentElement;
2075
- }
2076
- }
2077
-
2078
- node = originalNode;
2079
- } // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
2080
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
2081
- // it might be a falsy value, which means shadow DOM support is disabled
2082
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
2083
- // now we can just test to see if it would normally be visible or not, provided it's
2084
- // attached to the main document.
2085
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
2086
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
2087
-
2088
-
2089
- if (isNodeAttached(node)) {
2090
- // this works wherever the node is: if there's at least one client rect, it's
2091
- // somehow displayed; it also covers the CSS 'display: contents' case where the
2092
- // node itself is hidden in place of its contents; and there's no need to search
2093
- // up the hierarchy either
2094
- return !node.getClientRects().length;
2095
- } // Else, the node isn't attached to the document, which means the `getClientRects()`
2096
- // API will __always__ return zero rects (this can happen, for example, if React
2097
- // is used to render nodes onto a detached tree, as confirmed in this thread:
2098
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
2099
- //
2100
- // It also means that even window.getComputedStyle(node).display will return `undefined`
2101
- // because styles are only computed for nodes that are in the document.
2102
- //
2103
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
2104
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
2105
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
2106
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
2107
- // considering __everything__ to be visible because of the innability to determine styles.
2108
- //
2109
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
2110
- // nodes as visible with the 'none' fallback.__
2111
-
2112
-
2113
- if (displayCheck !== 'legacy-full') {
2114
- return true; // hidden
2115
- } // else, fallback to 'none' mode and consider the node visible
2116
-
2117
- } else if (displayCheck === 'non-zero-area') {
2118
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
2119
- // whether it's displayed, and that a detached node will __always__ have a zero-area
2120
- // client rect, we don't special-case for whether the node is attached or not. In
2121
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
2122
- // times, and that includes attached or not.
2123
- return isZeroArea(node);
2124
- } // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
2125
- // it's visible
2126
-
2127
-
2128
- return false;
2129
- }; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
2130
- // unless they are in the _first_ <legend> element of the top-most disabled
2131
- // fieldset
2132
-
2133
-
2134
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
2135
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
2136
- var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>
2137
-
2138
- while (parentNode) {
2139
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
2140
- // look for the first <legend> among the children of the disabled <fieldset>
2141
- for (var i = 0; i < parentNode.children.length; i++) {
2142
- var child = parentNode.children.item(i); // when the first <legend> (in document order) is found
2143
-
2144
- if (child.tagName === 'LEGEND') {
2145
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
2146
- // return whether `node` is a descendant of its first <legend>
2147
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
2148
- }
2149
- } // the disabled <fieldset> containing `node` has no <legend>
2150
-
2151
-
2152
- return true;
2153
- }
2154
-
2155
- parentNode = parentNode.parentElement;
2156
- }
2157
- } // else, node's tabbable/focusable state should not be affected by a fieldset's
2158
- // enabled/disabled state
2159
-
2160
-
2161
- return false;
2162
- };
2163
-
2164
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
2165
- if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
2166
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
2167
- return false;
2168
- }
2169
-
2170
- return true;
2171
- };
2172
-
2173
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
2174
- if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
2175
- return false;
2176
- }
2177
-
2178
- return true;
2179
- };
2180
-
2181
- var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
2182
- var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
2183
-
2184
- if (isNaN(tabIndex) || tabIndex >= 0) {
2185
- return true;
2186
- } // If a custom element has an explicit negative tabindex,
2187
- // browsers will not allow tab targeting said element's children.
2188
-
2189
-
2190
- return false;
2191
- };
2192
- /**
2193
- * @param {Array.<Element|CandidatesScope>} candidates
2194
- * @returns Element[]
2195
- */
2196
-
2197
-
2198
- var sortByOrder = function sortByOrder(candidates) {
2199
- var regularTabbables = [];
2200
- var orderedTabbables = [];
2201
- candidates.forEach(function (item, i) {
2202
- var isScope = !!item.scope;
2203
- var element = isScope ? item.scope : item;
2204
- var candidateTabindex = getTabindex(element, isScope);
2205
- var elements = isScope ? sortByOrder(item.candidates) : element;
2206
-
2207
- if (candidateTabindex === 0) {
2208
- isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
2209
- } else {
2210
- orderedTabbables.push({
2211
- documentOrder: i,
2212
- tabIndex: candidateTabindex,
2213
- item: item,
2214
- isScope: isScope,
2215
- content: elements
2216
- });
2217
- }
2218
- });
2219
- return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
2220
- sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
2221
- return acc;
2222
- }, []).concat(regularTabbables);
2223
- };
2224
-
2225
- var tabbable = function tabbable(el, options) {
2226
- options = options || {};
2227
- var candidates;
2228
-
2229
- if (options.getShadowRoot) {
2230
- candidates = getCandidatesIteratively([el], options.includeContainer, {
2231
- filter: isNodeMatchingSelectorTabbable.bind(null, options),
2232
- flatten: false,
2233
- getShadowRoot: options.getShadowRoot,
2234
- shadowRootFilter: isValidShadowRootTabbable
2235
- });
2236
- } else {
2237
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
2238
- }
2239
-
2240
- return sortByOrder(candidates);
2241
- };
2242
-
2243
- var focusable = function focusable(el, options) {
2244
- options = options || {};
2245
- var candidates;
2246
-
2247
- if (options.getShadowRoot) {
2248
- candidates = getCandidatesIteratively([el], options.includeContainer, {
2249
- filter: isNodeMatchingSelectorFocusable.bind(null, options),
2250
- flatten: true,
2251
- getShadowRoot: options.getShadowRoot
2252
- });
2253
- } else {
2254
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
2255
- }
2256
-
2257
- return candidates;
2258
- };
2259
-
2260
- var isTabbable = function isTabbable(node, options) {
2261
- options = options || {};
2262
-
2263
- if (!node) {
2264
- throw new Error('No node provided');
2265
- }
2266
-
2267
- if (matches.call(node, candidateSelector) === false) {
2268
- return false;
2269
- }
2270
-
2271
- return isNodeMatchingSelectorTabbable(options, node);
2272
- };
2273
-
2274
- var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
2275
-
2276
- var isFocusable = function isFocusable(node, options) {
2277
- options = options || {};
2278
-
2279
- if (!node) {
2280
- throw new Error('No node provided');
2281
- }
2282
-
2283
- if (matches.call(node, focusableCandidateSelector) === false) {
2284
- return false;
2285
- }
2286
-
2287
- return isNodeMatchingSelectorFocusable(options, node);
2288
- };
2289
-
2290
- /*!
2291
- * focus-trap 7.0.0
2292
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2293
- */
2294
-
2295
- function ownKeys(object, enumerableOnly) {
2296
- var keys = Object.keys(object);
2297
-
2298
- if (Object.getOwnPropertySymbols) {
2299
- var symbols = Object.getOwnPropertySymbols(object);
2300
- enumerableOnly && (symbols = symbols.filter(function (sym) {
2301
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2302
- })), keys.push.apply(keys, symbols);
2303
- }
2304
-
2305
- return keys;
2306
- }
2307
-
2308
- function _objectSpread2(target) {
2309
- for (var i = 1; i < arguments.length; i++) {
2310
- var source = null != arguments[i] ? arguments[i] : {};
2311
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
2312
- _defineProperty(target, key, source[key]);
2313
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
2314
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2315
- });
2316
- }
2317
-
2318
- return target;
2319
- }
2320
-
2321
- function _defineProperty(obj, key, value) {
2322
- if (key in obj) {
2323
- Object.defineProperty(obj, key, {
2324
- value: value,
2325
- enumerable: true,
2326
- configurable: true,
2327
- writable: true
2328
- });
2329
- } else {
2330
- obj[key] = value;
2331
- }
2332
-
2333
- return obj;
2334
- }
2335
-
2336
- var activeFocusTraps = function () {
2337
- var trapQueue = [];
2338
- return {
2339
- activateTrap: function activateTrap(trap) {
2340
- if (trapQueue.length > 0) {
2341
- var activeTrap = trapQueue[trapQueue.length - 1];
2342
-
2343
- if (activeTrap !== trap) {
2344
- activeTrap.pause();
2345
- }
2346
- }
2347
-
2348
- var trapIndex = trapQueue.indexOf(trap);
2349
-
2350
- if (trapIndex === -1) {
2351
- trapQueue.push(trap);
2352
- } else {
2353
- // move this existing trap to the front of the queue
2354
- trapQueue.splice(trapIndex, 1);
2355
- trapQueue.push(trap);
2356
- }
2357
- },
2358
- deactivateTrap: function deactivateTrap(trap) {
2359
- var trapIndex = trapQueue.indexOf(trap);
2360
-
2361
- if (trapIndex !== -1) {
2362
- trapQueue.splice(trapIndex, 1);
2363
- }
2364
-
2365
- if (trapQueue.length > 0) {
2366
- trapQueue[trapQueue.length - 1].unpause();
2367
- }
2368
- }
2369
- };
2370
- }();
2371
-
2372
- var isSelectableInput = function isSelectableInput(node) {
2373
- return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
2374
- };
2375
-
2376
- var isEscapeEvent = function isEscapeEvent(e) {
2377
- return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
2378
- };
2379
-
2380
- var isTabEvent = function isTabEvent(e) {
2381
- return e.key === 'Tab' || e.keyCode === 9;
2382
- };
2383
-
2384
- var delay$1 = function delay(fn) {
2385
- return setTimeout(fn, 0);
2386
- }; // Array.find/findIndex() are not supported on IE; this replicates enough
2387
- // of Array.findIndex() for our needs
2388
-
2389
-
2390
- var findIndex = function findIndex(arr, fn) {
2391
- var idx = -1;
2392
- arr.every(function (value, i) {
2393
- if (fn(value)) {
2394
- idx = i;
2395
- return false; // break
2396
- }
2397
-
2398
- return true; // next
2399
- });
2400
- return idx;
2401
- };
2402
- /**
2403
- * Get an option's value when it could be a plain value, or a handler that provides
2404
- * the value.
2405
- * @param {*} value Option's value to check.
2406
- * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
2407
- * @returns {*} The `value`, or the handler's returned value.
2408
- */
2409
-
2410
-
2411
- var valueOrHandler = function valueOrHandler(value) {
2412
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2413
- params[_key - 1] = arguments[_key];
2414
- }
2415
-
2416
- return typeof value === 'function' ? value.apply(void 0, params) : value;
2417
- };
2418
-
2419
- var getActualTarget = function getActualTarget(event) {
2420
- // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
2421
- // shadow host. However, event.target.composedPath() will be an array of
2422
- // nodes "clicked" from inner-most (the actual element inside the shadow) to
2423
- // outer-most (the host HTML document). If we have access to composedPath(),
2424
- // then use its first element; otherwise, fall back to event.target (and
2425
- // this only works for an _open_ shadow DOM; otherwise,
2426
- // composedPath()[0] === event.target always).
2427
- return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
2428
- };
2429
-
2430
- var createFocusTrap = function createFocusTrap(elements, userOptions) {
2431
- // SSR: a live trap shouldn't be created in this type of environment so this
2432
- // should be safe code to execute if the `document` option isn't specified
2433
- var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
2434
-
2435
- var config = _objectSpread2({
2436
- returnFocusOnDeactivate: true,
2437
- escapeDeactivates: true,
2438
- delayInitialFocus: true
2439
- }, userOptions);
2440
-
2441
- var state = {
2442
- // containers given to createFocusTrap()
2443
- // @type {Array<HTMLElement>}
2444
- containers: [],
2445
- // list of objects identifying tabbable nodes in `containers` in the trap
2446
- // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
2447
- // is active, but the trap should never get to a state where there isn't at least one group
2448
- // with at least one tabbable node in it (that would lead to an error condition that would
2449
- // result in an error being thrown)
2450
- // @type {Array<{
2451
- // container: HTMLElement,
2452
- // tabbableNodes: Array<HTMLElement>, // empty if none
2453
- // focusableNodes: Array<HTMLElement>, // empty if none
2454
- // firstTabbableNode: HTMLElement|null,
2455
- // lastTabbableNode: HTMLElement|null,
2456
- // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
2457
- // }>}
2458
- containerGroups: [],
2459
- // same order/length as `containers` list
2460
- // references to objects in `containerGroups`, but only those that actually have
2461
- // tabbable nodes in them
2462
- // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
2463
- // the same length
2464
- tabbableGroups: [],
2465
- nodeFocusedBeforeActivation: null,
2466
- mostRecentlyFocusedNode: null,
2467
- active: false,
2468
- paused: false,
2469
- // timer ID for when delayInitialFocus is true and initial focus in this trap
2470
- // has been delayed during activation
2471
- delayInitialFocusTimer: undefined
2472
- };
2473
- var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
2474
-
2475
- /**
2476
- * Gets a configuration option value.
2477
- * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
2478
- * value will be taken from this object. Otherwise, value will be taken from base configuration.
2479
- * @param {string} optionName Name of the option whose value is sought.
2480
- * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
2481
- * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
2482
- */
2483
-
2484
- var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
2485
- return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
2486
- };
2487
- /**
2488
- * Finds the index of the container that contains the element.
2489
- * @param {HTMLElement} element
2490
- * @returns {number} Index of the container in either `state.containers` or
2491
- * `state.containerGroups` (the order/length of these lists are the same); -1
2492
- * if the element isn't found.
2493
- */
2494
-
2495
-
2496
- var findContainerIndex = function findContainerIndex(element) {
2497
- // NOTE: search `containerGroups` because it's possible a group contains no tabbable
2498
- // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
2499
- // and we still need to find the element in there
2500
- return state.containerGroups.findIndex(function (_ref) {
2501
- var container = _ref.container,
2502
- tabbableNodes = _ref.tabbableNodes;
2503
- return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
2504
- // web components if the `tabbableOptions.getShadowRoot` option was used for
2505
- // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
2506
- // look inside web components even if open)
2507
- tabbableNodes.find(function (node) {
2508
- return node === element;
2509
- });
2510
- });
2511
- };
2512
- /**
2513
- * Gets the node for the given option, which is expected to be an option that
2514
- * can be either a DOM node, a string that is a selector to get a node, `false`
2515
- * (if a node is explicitly NOT given), or a function that returns any of these
2516
- * values.
2517
- * @param {string} optionName
2518
- * @returns {undefined | false | HTMLElement | SVGElement} Returns
2519
- * `undefined` if the option is not specified; `false` if the option
2520
- * resolved to `false` (node explicitly not given); otherwise, the resolved
2521
- * DOM node.
2522
- * @throws {Error} If the option is set, not `false`, and is not, or does not
2523
- * resolve to a node.
2524
- */
2525
-
2526
-
2527
- var getNodeForOption = function getNodeForOption(optionName) {
2528
- var optionValue = config[optionName];
2529
-
2530
- if (typeof optionValue === 'function') {
2531
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2532
- params[_key2 - 1] = arguments[_key2];
2533
- }
2534
-
2535
- optionValue = optionValue.apply(void 0, params);
2536
- }
2537
-
2538
- if (optionValue === true) {
2539
- optionValue = undefined; // use default value
2540
- }
2541
-
2542
- if (!optionValue) {
2543
- if (optionValue === undefined || optionValue === false) {
2544
- return optionValue;
2545
- } // else, empty string (invalid), null (invalid), 0 (invalid)
2546
-
2547
-
2548
- throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
2549
- }
2550
-
2551
- var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
2552
-
2553
- if (typeof optionValue === 'string') {
2554
- node = doc.querySelector(optionValue); // resolve to node, or null if fails
2555
-
2556
- if (!node) {
2557
- throw new Error("`".concat(optionName, "` as selector refers to no known node"));
2558
- }
2559
- }
2560
-
2561
- return node;
2562
- };
2563
-
2564
- var getInitialFocusNode = function getInitialFocusNode() {
2565
- var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
2566
-
2567
- if (node === false) {
2568
- return false;
2569
- }
2570
-
2571
- if (node === undefined) {
2572
- // option not specified: use fallback options
2573
- if (findContainerIndex(doc.activeElement) >= 0) {
2574
- node = doc.activeElement;
2575
- } else {
2576
- var firstTabbableGroup = state.tabbableGroups[0];
2577
- var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
2578
-
2579
- node = firstTabbableNode || getNodeForOption('fallbackFocus');
2580
- }
2581
- }
2582
-
2583
- if (!node) {
2584
- throw new Error('Your focus-trap needs to have at least one focusable element');
2585
- }
2586
-
2587
- return node;
2588
- };
2589
-
2590
- var updateTabbableNodes = function updateTabbableNodes() {
2591
- state.containerGroups = state.containers.map(function (container) {
2592
- var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
2593
- // are a superset of tabbable nodes
2594
-
2595
- var focusableNodes = focusable(container, config.tabbableOptions);
2596
- return {
2597
- container: container,
2598
- tabbableNodes: tabbableNodes,
2599
- focusableNodes: focusableNodes,
2600
- firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
2601
- lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
2602
-
2603
- /**
2604
- * Finds the __tabbable__ node that follows the given node in the specified direction,
2605
- * in this container, if any.
2606
- * @param {HTMLElement} node
2607
- * @param {boolean} [forward] True if going in forward tab order; false if going
2608
- * in reverse.
2609
- * @returns {HTMLElement|undefined} The next tabbable node, if any.
2610
- */
2611
- nextTabbableNode: function nextTabbableNode(node) {
2612
- var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2613
- // NOTE: If tabindex is positive (in order to manipulate the tab order separate
2614
- // from the DOM order), this __will not work__ because the list of focusableNodes,
2615
- // while it contains tabbable nodes, does not sort its nodes in any order other
2616
- // than DOM order, because it can't: Where would you place focusable (but not
2617
- // tabbable) nodes in that order? They have no order, because they aren't tabbale...
2618
- // Support for positive tabindex is already broken and hard to manage (possibly
2619
- // not supportable, TBD), so this isn't going to make things worse than they
2620
- // already are, and at least makes things better for the majority of cases where
2621
- // tabindex is either 0/unset or negative.
2622
- // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
2623
- var nodeIdx = focusableNodes.findIndex(function (n) {
2624
- return n === node;
2625
- });
2626
-
2627
- if (nodeIdx < 0) {
2628
- return undefined;
2629
- }
2630
-
2631
- if (forward) {
2632
- return focusableNodes.slice(nodeIdx + 1).find(function (n) {
2633
- return isTabbable(n, config.tabbableOptions);
2634
- });
2635
- }
2636
-
2637
- return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
2638
- return isTabbable(n, config.tabbableOptions);
2639
- });
2640
- }
2641
- };
2642
- });
2643
- state.tabbableGroups = state.containerGroups.filter(function (group) {
2644
- return group.tabbableNodes.length > 0;
2645
- }); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
2646
-
2647
- if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
2648
- ) {
2649
- throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
2650
- }
2651
- };
2652
-
2653
- var tryFocus = function tryFocus(node) {
2654
- if (node === false) {
2655
- return;
2656
- }
2657
-
2658
- if (node === doc.activeElement) {
2659
- return;
2660
- }
2661
-
2662
- if (!node || !node.focus) {
2663
- tryFocus(getInitialFocusNode());
2664
- return;
2665
- }
2666
-
2667
- node.focus({
2668
- preventScroll: !!config.preventScroll
2669
- });
2670
- state.mostRecentlyFocusedNode = node;
2671
-
2672
- if (isSelectableInput(node)) {
2673
- node.select();
2674
- }
2675
- };
2676
-
2677
- var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
2678
- var node = getNodeForOption('setReturnFocus', previousActiveElement);
2679
- return node ? node : node === false ? false : previousActiveElement;
2680
- }; // This needs to be done on mousedown and touchstart instead of click
2681
- // so that it precedes the focus event.
2682
-
2683
-
2684
- var checkPointerDown = function checkPointerDown(e) {
2685
- var target = getActualTarget(e);
2686
-
2687
- if (findContainerIndex(target) >= 0) {
2688
- // allow the click since it ocurred inside the trap
2689
- return;
2690
- }
2691
-
2692
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
2693
- // immediately deactivate the trap
2694
- trap.deactivate({
2695
- // if, on deactivation, we should return focus to the node originally-focused
2696
- // when the trap was activated (or the configured `setReturnFocus` node),
2697
- // then assume it's also OK to return focus to the outside node that was
2698
- // just clicked, causing deactivation, as long as that node is focusable;
2699
- // if it isn't focusable, then return focus to the original node focused
2700
- // on activation (or the configured `setReturnFocus` node)
2701
- // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
2702
- // which will result in the outside click setting focus to the node
2703
- // that was clicked, whether it's focusable or not; by setting
2704
- // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
2705
- // on activation (or the configured `setReturnFocus` node)
2706
- returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
2707
- });
2708
- return;
2709
- } // This is needed for mobile devices.
2710
- // (If we'll only let `click` events through,
2711
- // then on mobile they will be blocked anyways if `touchstart` is blocked.)
2712
-
2713
-
2714
- if (valueOrHandler(config.allowOutsideClick, e)) {
2715
- // allow the click outside the trap to take place
2716
- return;
2717
- } // otherwise, prevent the click
2718
-
2719
-
2720
- e.preventDefault();
2721
- }; // In case focus escapes the trap for some strange reason, pull it back in.
2722
-
2723
-
2724
- var checkFocusIn = function checkFocusIn(e) {
2725
- var target = getActualTarget(e);
2726
- var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
2727
-
2728
- if (targetContained || target instanceof Document) {
2729
- if (targetContained) {
2730
- state.mostRecentlyFocusedNode = target;
2731
- }
2732
- } else {
2733
- // escaped! pull it back in to where it just left
2734
- e.stopImmediatePropagation();
2735
- tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
2736
- }
2737
- }; // Hijack Tab events on the first and last focusable nodes of the trap,
2738
- // in order to prevent focus from escaping. If it escapes for even a
2739
- // moment it can end up scrolling the page and causing confusion so we
2740
- // kind of need to capture the action at the keydown phase.
2741
-
2742
-
2743
- var checkTab = function checkTab(e) {
2744
- var target = getActualTarget(e);
2745
- updateTabbableNodes();
2746
- var destinationNode = null;
2747
-
2748
- if (state.tabbableGroups.length > 0) {
2749
- // make sure the target is actually contained in a group
2750
- // NOTE: the target may also be the container itself if it's focusable
2751
- // with tabIndex='-1' and was given initial focus
2752
- var containerIndex = findContainerIndex(target);
2753
- var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
2754
-
2755
- if (containerIndex < 0) {
2756
- // target not found in any group: quite possible focus has escaped the trap,
2757
- // so bring it back in to...
2758
- if (e.shiftKey) {
2759
- // ...the last node in the last group
2760
- destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
2761
- } else {
2762
- // ...the first node in the first group
2763
- destinationNode = state.tabbableGroups[0].firstTabbableNode;
2764
- }
2765
- } else if (e.shiftKey) {
2766
- // REVERSE
2767
- // is the target the first tabbable node in a group?
2768
- var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
2769
- var firstTabbableNode = _ref2.firstTabbableNode;
2770
- return target === firstTabbableNode;
2771
- });
2772
-
2773
- if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
2774
- // an exception case where the target is either the container itself, or
2775
- // a non-tabbable node that was given focus (i.e. tabindex is negative
2776
- // and user clicked on it or node was programmatically given focus)
2777
- // and is not followed by any other tabbable node, in which
2778
- // case, we should handle shift+tab as if focus were on the container's
2779
- // first tabbable node, and go to the last tabbable node of the LAST group
2780
- startOfGroupIndex = containerIndex;
2781
- }
2782
-
2783
- if (startOfGroupIndex >= 0) {
2784
- // YES: then shift+tab should go to the last tabbable node in the
2785
- // previous group (and wrap around to the last tabbable node of
2786
- // the LAST group if it's the first tabbable node of the FIRST group)
2787
- var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
2788
- var destinationGroup = state.tabbableGroups[destinationGroupIndex];
2789
- destinationNode = destinationGroup.lastTabbableNode;
2790
- }
2791
- } else {
2792
- // FORWARD
2793
- // is the target the last tabbable node in a group?
2794
- var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
2795
- var lastTabbableNode = _ref3.lastTabbableNode;
2796
- return target === lastTabbableNode;
2797
- });
2798
-
2799
- if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
2800
- // an exception case where the target is the container itself, or
2801
- // a non-tabbable node that was given focus (i.e. tabindex is negative
2802
- // and user clicked on it or node was programmatically given focus)
2803
- // and is not followed by any other tabbable node, in which
2804
- // case, we should handle tab as if focus were on the container's
2805
- // last tabbable node, and go to the first tabbable node of the FIRST group
2806
- lastOfGroupIndex = containerIndex;
2807
- }
2808
-
2809
- if (lastOfGroupIndex >= 0) {
2810
- // YES: then tab should go to the first tabbable node in the next
2811
- // group (and wrap around to the first tabbable node of the FIRST
2812
- // group if it's the last tabbable node of the LAST group)
2813
- var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
2814
-
2815
- var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
2816
- destinationNode = _destinationGroup.firstTabbableNode;
2817
- }
2818
- }
2819
- } else {
2820
- // NOTE: the fallbackFocus option does not support returning false to opt-out
2821
- destinationNode = getNodeForOption('fallbackFocus');
2822
- }
2823
-
2824
- if (destinationNode) {
2825
- e.preventDefault();
2826
- tryFocus(destinationNode);
2827
- } // else, let the browser take care of [shift+]tab and move the focus
2828
-
2829
- };
2830
-
2831
- var checkKey = function checkKey(e) {
2832
- if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {
2833
- e.preventDefault();
2834
- trap.deactivate();
2835
- return;
2836
- }
2837
-
2838
- if (isTabEvent(e)) {
2839
- checkTab(e);
2840
- return;
2841
- }
2842
- };
2843
-
2844
- var checkClick = function checkClick(e) {
2845
- var target = getActualTarget(e);
2846
-
2847
- if (findContainerIndex(target) >= 0) {
2848
- return;
2849
- }
2850
-
2851
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
2852
- return;
2853
- }
2854
-
2855
- if (valueOrHandler(config.allowOutsideClick, e)) {
2856
- return;
2857
- }
2858
-
2859
- e.preventDefault();
2860
- e.stopImmediatePropagation();
2861
- }; //
2862
- // EVENT LISTENERS
2863
- //
2864
-
2865
-
2866
- var addListeners = function addListeners() {
2867
- if (!state.active) {
2868
- return;
2869
- } // There can be only one listening focus trap at a time
2870
-
2871
-
2872
- activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
2873
- // that caused the focus trap activation.
2874
-
2875
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay$1(function () {
2876
- tryFocus(getInitialFocusNode());
2877
- }) : tryFocus(getInitialFocusNode());
2878
- doc.addEventListener('focusin', checkFocusIn, true);
2879
- doc.addEventListener('mousedown', checkPointerDown, {
2880
- capture: true,
2881
- passive: false
2882
- });
2883
- doc.addEventListener('touchstart', checkPointerDown, {
2884
- capture: true,
2885
- passive: false
2886
- });
2887
- doc.addEventListener('click', checkClick, {
2888
- capture: true,
2889
- passive: false
2890
- });
2891
- doc.addEventListener('keydown', checkKey, {
2892
- capture: true,
2893
- passive: false
2894
- });
2895
- return trap;
2896
- };
2897
-
2898
- var removeListeners = function removeListeners() {
2899
- if (!state.active) {
2900
- return;
2901
- }
2902
-
2903
- doc.removeEventListener('focusin', checkFocusIn, true);
2904
- doc.removeEventListener('mousedown', checkPointerDown, true);
2905
- doc.removeEventListener('touchstart', checkPointerDown, true);
2906
- doc.removeEventListener('click', checkClick, true);
2907
- doc.removeEventListener('keydown', checkKey, true);
2908
- return trap;
2909
- }; //
2910
- // TRAP DEFINITION
2911
- //
2912
-
2913
-
2914
- trap = {
2915
- get active() {
2916
- return state.active;
2917
- },
2918
-
2919
- get paused() {
2920
- return state.paused;
2921
- },
2922
-
2923
- activate: function activate(activateOptions) {
2924
- if (state.active) {
2925
- return this;
2926
- }
2927
-
2928
- var onActivate = getOption(activateOptions, 'onActivate');
2929
- var onPostActivate = getOption(activateOptions, 'onPostActivate');
2930
- var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
2931
-
2932
- if (!checkCanFocusTrap) {
2933
- updateTabbableNodes();
2934
- }
2935
-
2936
- state.active = true;
2937
- state.paused = false;
2938
- state.nodeFocusedBeforeActivation = doc.activeElement;
2939
-
2940
- if (onActivate) {
2941
- onActivate();
2942
- }
2943
-
2944
- var finishActivation = function finishActivation() {
2945
- if (checkCanFocusTrap) {
2946
- updateTabbableNodes();
2947
- }
2948
-
2949
- addListeners();
2950
-
2951
- if (onPostActivate) {
2952
- onPostActivate();
2953
- }
2954
- };
2955
-
2956
- if (checkCanFocusTrap) {
2957
- checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
2958
- return this;
2959
- }
2960
-
2961
- finishActivation();
2962
- return this;
2963
- },
2964
- deactivate: function deactivate(deactivateOptions) {
2965
- if (!state.active) {
2966
- return this;
2967
- }
2968
-
2969
- var options = _objectSpread2({
2970
- onDeactivate: config.onDeactivate,
2971
- onPostDeactivate: config.onPostDeactivate,
2972
- checkCanReturnFocus: config.checkCanReturnFocus
2973
- }, deactivateOptions);
2974
-
2975
- clearTimeout(state.delayInitialFocusTimer); // noop if undefined
2976
-
2977
- state.delayInitialFocusTimer = undefined;
2978
- removeListeners();
2979
- state.active = false;
2980
- state.paused = false;
2981
- activeFocusTraps.deactivateTrap(trap);
2982
- var onDeactivate = getOption(options, 'onDeactivate');
2983
- var onPostDeactivate = getOption(options, 'onPostDeactivate');
2984
- var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
2985
- var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
2986
-
2987
- if (onDeactivate) {
2988
- onDeactivate();
2989
- }
2990
-
2991
- var finishDeactivation = function finishDeactivation() {
2992
- delay$1(function () {
2993
- if (returnFocus) {
2994
- tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
2995
- }
2996
-
2997
- if (onPostDeactivate) {
2998
- onPostDeactivate();
2999
- }
3000
- });
3001
- };
3002
-
3003
- if (returnFocus && checkCanReturnFocus) {
3004
- checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
3005
- return this;
3006
- }
3007
-
3008
- finishDeactivation();
3009
- return this;
3010
- },
3011
- pause: function pause() {
3012
- if (state.paused || !state.active) {
3013
- return this;
3014
- }
3015
-
3016
- state.paused = true;
3017
- removeListeners();
3018
- return this;
3019
- },
3020
- unpause: function unpause() {
3021
- if (!state.paused || !state.active) {
3022
- return this;
3023
- }
3024
-
3025
- state.paused = false;
3026
- updateTabbableNodes();
3027
- addListeners();
3028
- return this;
3029
- },
3030
- updateContainerElements: function updateContainerElements(containerElements) {
3031
- var elementsAsArray = [].concat(containerElements).filter(Boolean);
3032
- state.containers = elementsAsArray.map(function (element) {
3033
- return typeof element === 'string' ? doc.querySelector(element) : element;
3034
- });
3035
-
3036
- if (state.active) {
3037
- updateTabbableNodes();
3038
- }
3039
-
3040
- return this;
3041
- }
3042
- }; // initialize container elements
3043
-
3044
- trap.updateContainerElements(elements);
3045
- return trap;
3046
- };
3047
-
3048
- const firstTabbable = (container) => {
3049
- return (container ? tabbable(container, { includeContainer: true, getShadowRoot: true }) : []).shift();
3050
- };
3051
-
3052
- const catMenuCss = ":host{display:contents}:host([hidden]){display:none}::slotted(nav){padding-top:0.5rem;padding-bottom:0.5rem;min-width:8rem;max-width:16rem}.content{position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem;z-index:100}";
1772
+ const catMenuCss = ":host{display:contents}:host([hidden]){display:none}::slotted(nav){padding-top:0.5rem;padding-bottom:0.5rem;min-width:8rem;max-width:16rem}.content{position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:var(--cat-border-radius-m, 0.25rem);z-index:100}";
3053
1773
 
3054
1774
  let nextUniqueId$6 = 0;
3055
1775
  const CatMenu = class {
@@ -3079,7 +1799,7 @@ const CatMenu = class {
3079
1799
  }
3080
1800
  componentDidLoad() {
3081
1801
  var _a, _b, _c, _d, _e;
3082
- this.trigger = firstTabbable(this.triggerSlot);
1802
+ this.trigger = this.findTrigger();
3083
1803
  (_a = this.trigger) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-haspopup', 'true');
3084
1804
  (_b = this.trigger) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-expanded', 'false');
3085
1805
  (_c = this.trigger) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-controls', this.contentId);
@@ -3154,75 +1874,30 @@ const CatMenu = class {
3154
1874
  });
3155
1875
  }
3156
1876
  }
3157
- };
3158
- CatMenu.OFFSET = 4;
3159
- CatMenu.style = catMenuCss;
3160
-
3161
- const catModalCss = ":host{display:block}:host([hidden]){display:none}.modal-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.6);z-index:2;display:flex}.modal-wrapper[aria-hidden=true]{display:none}.modal{margin:auto;z-index:2;position:relative;background-color:white;border-radius:0.5rem;max-width:100%;padding:32px}.modal-header{display:flex;justify-content:end;align-self:stretch}.modal-header .close-button::part(button){box-shadow:unset}.modal-content{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;margin:16px 0}.modal-s{width:400px}.modal-m{width:600px}.modal-l{width:800px}";
3162
-
3163
- const CatModal = class {
3164
- constructor(hostRef) {
3165
- registerInstance(this, hostRef);
3166
- this.isVisible = false;
3167
- /**
3168
- * The size of the modal.
3169
- */
3170
- this.size = 'm';
3171
- }
3172
- componentDidLoad() {
3173
- if (this.modal) {
3174
- this.trap = createFocusTrap(this.modal, {
3175
- tabbableOptions: {
3176
- getShadowRoot: true
3177
- },
3178
- initialFocus: firstTabbable(this.closeButton),
3179
- allowOutsideClick: true,
3180
- clickOutsideDeactivates: event => !this.modal || !event.composedPath().includes(this.modal),
3181
- onDeactivate: () => (this.isVisible = false),
3182
- setReturnFocus: previousActiveElement => previousActiveElement instanceof HTMLElement
3183
- ? firstTabbable(previousActiveElement)
3184
- : previousActiveElement
3185
- });
1877
+ findTrigger() {
1878
+ var _a, _b;
1879
+ let trigger;
1880
+ const elems = ((_a = this.triggerSlot) === null || _a === void 0 ? void 0 : _a.assignedElements()) || [];
1881
+ while (!trigger && elems.length) {
1882
+ const elem = elems.shift();
1883
+ trigger = (elem === null || elem === void 0 ? void 0 : elem.hasAttribute('data-trigger'))
1884
+ ? elem
1885
+ : (_b = elem === null || elem === void 0 ? void 0 : elem.querySelector('[data-trigger]')) !== null && _b !== void 0 ? _b : undefined;
3186
1886
  }
3187
- }
3188
- componentDidUpdate() {
3189
- var _a;
3190
- if (this.isVisible)
3191
- (_a = this.trap) === null || _a === void 0 ? void 0 : _a.activate();
3192
- this.updateAccessibility(this.hostElement);
3193
- }
3194
- /**
3195
- * Shows the modal.
3196
- */
3197
- async show() {
3198
- this.isVisible = true;
3199
- }
3200
- render() {
3201
- return (h("div", { "aria-modal": true, role: "dialog", "aria-hidden": !this.isVisible ? 'true' : 'false', class: "modal-wrapper" }, h("div", { ref: el => (this.modal = el), class: { modal: true, [`modal-${this.size}`]: Boolean(this.size) } }, h("div", { class: "modal-header" }, h("cat-button", { ref: el => (this.closeButton = el), icon: "cross-outlined", class: "close-button", size: "s", iconOnly: true, a11yLabel: "close", onCatClick: this.onClick.bind(this) })), h("div", { class: "modal-content" }, h("slot", null)))));
3202
- }
3203
- onClick() {
3204
- var _a;
3205
- (_a = this.trap) === null || _a === void 0 ? void 0 : _a.deactivate();
3206
- }
3207
- updateAccessibility(element) {
3208
- if (element.parentElement) {
3209
- Array.from(element.parentElement.children).forEach(elementSibling => {
3210
- if (elementSibling !== element) {
3211
- this.isVisible
3212
- ? elementSibling.setAttribute('aria-hidden', 'true')
3213
- : elementSibling.removeAttribute('aria-hidden');
3214
- }
3215
- });
3216
- if (element.parentElement !== document.body) {
3217
- this.updateAccessibility(element.parentElement);
3218
- }
1887
+ if (!trigger) {
1888
+ trigger = firstTabbable(this.triggerSlot);
1889
+ }
1890
+ if (!trigger) {
1891
+ loglevel.error('Cannot find tabbable element. Use [data-trigger] to set the trigger.');
3219
1892
  }
1893
+ console.log(trigger);
1894
+ return trigger;
3220
1895
  }
3221
- get hostElement() { return getElement(this); }
3222
1896
  };
3223
- CatModal.style = catModalCss;
1897
+ CatMenu.OFFSET = 4;
1898
+ CatMenu.style = catMenuCss;
3224
1899
 
3225
- const catRadioCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);cursor:pointer}.label-left{flex-direction:row-reverse}.radio{display:flex;position:relative;align-self:flex-start}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-radius:10rem;top:calc(50% - 0.375rem);left:calc(50% - 0.375rem);visibility:hidden;pointer-events:none}input{margin:0;width:1.25rem;height:1.25rem;appearance:none;background-color:white;border:1px solid #d7dbe0;border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 0, 129, 148))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host(.cat-error) input{border-color:#d9340d}:host(.cat-error) .circle{background-color:#d9340d}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.is-disabled input{background-color:#f8f8fb}.is-disabled input:checked{border-color:#d7dbe0}.is-disabled .circle{background-color:#d7dbe0}";
1900
+ const catRadioCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);cursor:pointer}.label-left{flex-direction:row-reverse}.radio{display:flex;position:relative;align-self:flex-start}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-radius:10rem;top:calc(50% - 0.375rem);left:calc(50% - 0.375rem);visibility:hidden;pointer-events:none}input{margin:0;width:1.25rem;height:1.25rem;appearance:none;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 0, 129, 148))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host(.cat-error) input{border-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .circle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.is-disabled input{background-color:#f8f8fb}.is-disabled input:checked{border-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}.is-disabled .circle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}";
3226
1901
 
3227
1902
  let nextUniqueId$5 = 0;
3228
1903
  const CatRadio = class {
@@ -5234,7 +3909,7 @@ var autosizeInput = function (element, options) {
5234
3909
  }
5235
3910
  };
5236
3911
 
5237
- const catSelectCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;position:relative;margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.select-wrapper{display:flex;align-items:flex-start;background:white;border-radius:0.25rem;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear;padding:0.25rem}.select-wrapper:not(.select-disabled):hover{box-shadow:0 0 0 2px #d7dbe0}.select-wrapper:not(.select-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}:host(.cat-error) .select-wrapper{box-shadow:0 0 0 1px #d9340d}:host(.cat-error) .select-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px #d9340d}.select-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));pointer-events:none}.select-wrapper-inner{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:0.25rem;min-width:0}.select-wrapper-inner>cat-avatar{padding-left:0.25rem}.select-wrapper-inner cat-avatar{--cat-avatar-size:1.25rem}.select-input{font:inherit;background:none;border:none;outline:none;padding:0.375rem 0.5rem;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.select-disabled .select-input{cursor:inherit}.select-pills{display:contents}.pill{display:inline-flex;align-items:center;gap:0.5rem;padding:0.25rem 0.5rem;background:#f2f4f7;border-radius:0.125rem;white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis;flex:1 1 0%}.pill>cat-button{margin-right:-0.25rem;margin-left:-0.25rem}.select-btn{transition:transform 0.13s linear}.select-btn::part(button){outline:none}cat-spinner{padding:0.375rem}.select-btn-open{transform:rotate(180deg)}.select-dropdown{position:absolute;right:0;background:white;display:none;overflow:auto;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem;z-index:100}.select-options-wrapper{max-height:16rem;width:100%}.select-empty{margin:1rem 0;padding:0 1.25rem}.select-options{list-style-type:none;margin:0;padding:0.5rem 0}.select-options cat-checkbox,.select-options .select-option-single{margin:0;padding:0.5rem 1rem}.select-option-inner{display:flex;gap:0.5rem;--cat-avatar-size:1.25rem}.select-option-text{flex:1 1 0%}.select-option-single{cursor:pointer}.select-input-transparent-caret{caret-color:transparent}.select-option-empty,.select-option-loading{padding:0.5rem 1rem}.select-option:hover{background-color:rgba(105, 118, 135, 0.05)}.select-option-active{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-2px}.select-option-label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.select-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
3912
+ const catSelectCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;position:relative;margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.select-wrapper{display:flex;align-items:flex-start;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:0 0 0 1px rgb(var(--cat-border-color-dark, 215, 219, 224));transition:box-shadow 0.13s linear;padding:0.25rem}.select-wrapper:not(.select-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-border-color-dark, 215, 219, 224))}.select-wrapper:not(.select-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}:host(.cat-error) .select-wrapper{box-shadow:0 0 0 1px rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .select-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-danger-bg, 217, 52, 13))}.select-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));pointer-events:none}.select-wrapper-inner{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:0.25rem;min-width:0}.select-wrapper-inner>cat-avatar{padding-left:0.25rem}.select-wrapper-inner cat-avatar{--cat-avatar-size:1.25rem}.select-input{font:inherit;background:none;border:none;outline:none;padding:0.375rem 0.5rem;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.select-disabled .select-input{cursor:inherit}.select-pills{display:contents}.pill{display:inline-flex;align-items:center;gap:0.5rem;padding:0.25rem 0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-s, 0.125rem);white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis;flex:1 1 0%}.pill>cat-button{margin-right:-0.25rem;margin-left:-0.25rem}.select-btn{transition:transform 0.13s linear}.select-btn::part(button){outline:none}cat-spinner{padding:0.375rem}.select-btn-open{transform:rotate(180deg)}.select-dropdown{position:absolute;right:0;background:white;display:none;overflow:auto;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:var(--cat-border-radius-m, 0.25rem);z-index:100}.select-options-wrapper{max-height:16rem;width:100%}.select-empty{margin:1rem 0;padding:0 1.25rem}.select-options{list-style-type:none;margin:0;padding:0.5rem 0}.select-options cat-checkbox,.select-options .select-option-single{margin:0;padding:0.5rem 1rem}.select-option-inner{display:flex;gap:0.5rem;--cat-avatar-size:1.25rem}.select-option-text{flex:1 1 0%;min-width:0}.select-option-single{cursor:pointer}.select-input-transparent-caret{caret-color:transparent}.select-option-empty,.select-option-loading{padding:0.5rem 1rem}.select-option:hover{background-color:rgba(var(--cat-secondary-bg, 105, 118, 135), 0.05)}.select-option-active{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-2px}.select-option-label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.select-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
5238
3913
 
5239
3914
  const INIT_STATE = {
5240
3915
  term: '',
@@ -7168,7 +5843,7 @@ const countries = [
7168
5843
  }
7169
5844
  ];
7170
5845
 
7171
- const catSkeletonCss = ":host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]){margin-bottom:0.5rem}:host([variant=body]){margin-bottom:1rem}.skeleton{display:block;border-radius:0.25rem;background:var(--background)}.skeleton-circle{border-radius:10rem}.skeleton-xs.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-square,.skeleton-xs.skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-head,.skeleton-xs.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xs.skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-xs.skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.skeleton-s.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.skeleton-s.skeleton-square,.skeleton-s.skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.skeleton-s.skeleton-head,.skeleton-s.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-s.skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-s.skeleton-body{height:calc(0.875rem - 4px);margin:calc((1rem - 0.875rem + 4px) * 0.5) 0}.skeleton-m.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.skeleton-m.skeleton-square,.skeleton-m.skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.skeleton-m.skeleton-head,.skeleton-m.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-m.skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-m.skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-l.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.skeleton-l.skeleton-square,.skeleton-l.skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.skeleton-l.skeleton-head,.skeleton-l.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-l.skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.skeleton-l.skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-square,.skeleton-xl.skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-head,.skeleton-xl.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xl.skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.skeleton-pulse{position:relative;overflow:hidden}.skeleton-pulse::before{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}";
5846
+ const catSkeletonCss = ":host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]){margin-bottom:0.5rem}:host([variant=body]){margin-bottom:1rem}.skeleton{display:block;border-radius:var(--cat-border-radius-m, 0.25rem);background:var(--background)}.skeleton-circle{border-radius:10rem}.skeleton-xs.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-square,.skeleton-xs.skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-head,.skeleton-xs.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xs.skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-xs.skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.skeleton-s.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.skeleton-s.skeleton-square,.skeleton-s.skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.skeleton-s.skeleton-head,.skeleton-s.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-s.skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-s.skeleton-body{height:calc(0.875rem - 4px);margin:calc((1rem - 0.875rem + 4px) * 0.5) 0}.skeleton-m.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.skeleton-m.skeleton-square,.skeleton-m.skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.skeleton-m.skeleton-head,.skeleton-m.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-m.skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-m.skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-l.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.skeleton-l.skeleton-square,.skeleton-l.skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.skeleton-l.skeleton-head,.skeleton-l.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-l.skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.skeleton-l.skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-square,.skeleton-xl.skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-head,.skeleton-xl.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xl.skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.skeleton-pulse{position:relative;overflow:hidden}.skeleton-pulse::before{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}";
7172
5847
 
7173
5848
  const CatSkeleton = class {
7174
5849
  constructor(hostRef) {
@@ -7275,7 +5950,7 @@ const CatTab = class {
7275
5950
  };
7276
5951
  CatTab.style = catTabCss;
7277
5952
 
7278
- const catTabsCss = ":host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 #d7dbe0}:host([hidden]){display:none}:host([tabs-align=center]){justify-content:center}:host([tabs-align=right]){justify-content:end}:host([tabs-align=justify]) cat-button{flex:1 0 auto}.tab{padding:0.5rem 0}.tab.tab-active{box-shadow:inset 0 -3px 0 0 rgb(var(--cat-primary-bg, 0, 129, 148))}";
5953
+ const catTabsCss = ":host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 rgb(var(--cat-border-color-dark, 215, 219, 224))}:host([hidden]){display:none}:host([tabs-align=center]){justify-content:center}:host([tabs-align=right]){justify-content:end}:host([tabs-align=justify]) cat-button{flex:1 0 auto}.tab{padding:0.5rem 0}.tab.tab-active{box-shadow:inset 0 -3px 0 0 rgb(var(--cat-primary-bg, 0, 129, 148))}";
7279
5954
 
7280
5955
  const CatTabs = class {
7281
5956
  constructor(hostRef) {
@@ -7355,7 +6030,7 @@ CatTabs.style = catTabsCss;
7355
6030
 
7356
6031
  var e,t,n="function"==typeof Map?new Map:(e=[],t=[],{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,o){-1===e.indexOf(n)&&(e.push(n),t.push(o));},delete:function(n){var o=e.indexOf(n);o>-1&&(e.splice(o,1),t.splice(o,1));}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test");}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t};}function r(e){var t=n.get(e);t&&t.destroy();}function i(e){var t=n.get(e);t&&t.update();}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t,r=null,i=null,l=null,d=function(){e.clientWidth!==i&&c();},a=function(t){window.removeEventListener("resize",d,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n];}),n.delete(e);}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",d,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:a,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),r="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(r)&&(r=0),c();}function u(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t;}function s(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),n=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+r+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop;}),n&&(document.documentElement.scrollTop=n);}}function c(){s();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(u("scroll"),s(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),s(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==r){l=r;var i=o("autosize:resized");try{e.dispatchEvent(i);}catch(e){}}}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e});var d=l;
7357
6032
 
7358
- const catTextareaCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}textarea{margin:0;padding:0.625rem 0.75rem;min-height:2.5rem;font:inherit;background:white;border-radius:0.25rem;border:none;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}textarea:disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));resize:none}textarea:hover:not(:disabled){box-shadow:0 0 0 2px #d7dbe0}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
6033
+ const catTextareaCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}textarea{margin:0;padding:0.625rem 0.75rem;min-height:2.5rem;font:inherit;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);border:none;box-shadow:0 0 0 1px rgb(var(--cat-border-color-dark, 215, 219, 224));transition:box-shadow 0.13s linear}textarea:disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));resize:none}textarea:hover:not(:disabled){box-shadow:0 0 0 2px rgb(var(--cat-border-color-dark, 215, 219, 224))}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
7359
6034
 
7360
6035
  let nextUniqueId$2 = 0;
7361
6036
  const CatTextarea = class {
@@ -7488,7 +6163,7 @@ const CatToastDemo = class {
7488
6163
  };
7489
6164
  CatToastDemo.style = catToastDemoCss;
7490
6165
 
7491
- const catToggleCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:#d9340d}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{position:absolute;margin:0;width:2rem;height:1.25rem;opacity:0;cursor:inherit}.toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:2rem;height:1.25rem;border-radius:10rem;background-color:#d7dbe0;transition:background-color 0.13s ease;pointer-events:none}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 0, 129, 148))}:focus-visible+.toggle{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.toggle::after{content:\"\";position:absolute;width:1rem;height:1rem;background:#fff;border-radius:10rem;transform:translateX(calc(2px - 0.5rem));transition:transform 0.13s linear;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem));background:rgb(var(--cat-primary-fill, 255, 255, 255))}:host(.cat-error) .toggle{background-color:rgba(217, 52, 13, 0.2)}:host(.cat-error) :checked+.toggle{background-color:#d9340d}:host(.cat-error) :checked+.toggle::after{background:white}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
6166
+ const catToggleCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}:host-context(.cat-error) .hint-section{color:rgb(var(--cat-danger-text, 217, 52, 13))}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{position:absolute;margin:0;width:2rem;height:1.25rem;opacity:0;cursor:inherit}.toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:2rem;height:1.25rem;border-radius:10rem;background-color:rgb(var(--cat-border-color-dark, 215, 219, 224));transition:background-color 0.13s ease;pointer-events:none}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 0, 129, 148))}:focus-visible+.toggle{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.toggle::after{content:\"\";position:absolute;width:1rem;height:1rem;background:#fff;border-radius:10rem;transform:translateX(calc(2px - 0.5rem));transition:transform 0.13s linear;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem));background:rgb(var(--cat-primary-fill, 255, 255, 255))}.is-disabled .toggle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}:host(.cat-error) .toggle{background-color:rgba(var(--cat-danger-bg, 217, 52, 13), 0.2)}:host(.cat-error) :checked+.toggle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.toggle::after{background:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";
7492
6167
 
7493
6168
  let nextUniqueId$1 = 0;
7494
6169
  const CatToggle = class {
@@ -7565,7 +6240,7 @@ CatToggle.style = catToggleCss;
7565
6240
 
7566
6241
  const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
7567
6242
 
7568
- const catTooltipCss = ":host{display:contents}:host([hidden]){display:none}.tooltip{position:absolute;font-size:0.875rem;line-height:1rem;font-weight:500;background-color:black;border-radius:0.25rem;color:white;transition:opacity 0.25s linear, visibility 0.25s linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;z-index:200;max-width:20rem}.tooltip-show{opacity:1;visibility:visible}.tooltip-round{border-radius:10rem}.tooltip-s{padding:0.375rem 0.5rem}.tooltip-s.tooltip-round{padding:0.375rem 0.75rem}.tooltip-m{padding:0.75rem}.tooltip-m.tooltip-round{padding:0.75rem 1rem}.tooltip-l{padding:1rem}.tooltip-l.tooltip-round{padding:1rem 1.5rem}.tooltip-trigger{display:inline-block}.tooltip-trigger:focus{outline:none}";
6243
+ const catTooltipCss = ":host{display:contents}:host([hidden]){display:none}.tooltip{position:absolute;font-size:0.875rem;line-height:1rem;font-weight:500;background-color:rgb(var(--cat-bg-tooltip, 0, 0, 0));border-radius:var(--cat-border-radius-m, 0.25rem);color:rgb(var(--cat-font-color-tooltip, 255, 255, 255));transition:opacity 0.25s linear, visibility 0.25s linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;z-index:200;max-width:20rem}.tooltip-show{opacity:1;visibility:visible}.tooltip-round{border-radius:10rem}.tooltip-s{padding:0.375rem 0.5rem}.tooltip-s.tooltip-round{padding:0.375rem 0.75rem}.tooltip-m{padding:0.75rem}.tooltip-m.tooltip-round{padding:0.75rem 1rem}.tooltip-l{padding:1rem}.tooltip-l.tooltip-round{padding:1rem 1.5rem}.tooltip-trigger{display:inline-block}.tooltip-trigger:focus{outline:none}";
7569
6244
 
7570
6245
  let nextUniqueId = 0;
7571
6246
  const CatTooltip = class {
@@ -7703,6 +6378,6 @@ const CatTooltip = class {
7703
6378
  CatTooltip.OFFSET = 4;
7704
6379
  CatTooltip.style = catTooltipCss;
7705
6380
 
7706
- export { CatAlert as cat_alert, CatAvatar as cat_avatar, CatBadge as cat_badge, CatButton as cat_button, CatCard as cat_card, CatCheckbox as cat_checkbox, CatIcon as cat_icon, CatInput as cat_input, CatMenu as cat_menu, CatModal as cat_modal, CatRadio as cat_radio, CatRadioGroup as cat_radio_group, CatScrollable as cat_scrollable, CatSelect as cat_select, CatSelectTest as cat_select_demo, CatSkeleton as cat_skeleton, CatSpinner as cat_spinner, CatTab as cat_tab, CatTabs as cat_tabs, CatTextarea as cat_textarea, CatToastDemo as cat_toast_demo, CatToggle as cat_toggle, CatTooltip as cat_tooltip };
6381
+ export { CatAlert as cat_alert, CatAvatar as cat_avatar, CatBadge as cat_badge, CatButton as cat_button, CatCard as cat_card, CatCheckbox as cat_checkbox, CatIcon as cat_icon, CatInput as cat_input, CatMenu as cat_menu, CatRadio as cat_radio, CatRadioGroup as cat_radio_group, CatScrollable as cat_scrollable, CatSelect as cat_select, CatSelectTest as cat_select_demo, CatSkeleton as cat_skeleton, CatSpinner as cat_spinner, CatTab as cat_tab, CatTabs as cat_tabs, CatTextarea as cat_textarea, CatToastDemo as cat_toast_demo, CatToggle as cat_toggle, CatTooltip as cat_tooltip };
7707
6382
 
7708
- //# sourceMappingURL=cat-alert_23.entry.js.map
6383
+ //# sourceMappingURL=cat-alert_22.entry.js.map