@haiilo/catalyst 0.14.2 → 0.15.1

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 (65) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.cdn.js +42 -15
  4. package/dist/catalyst/p-311d10a7.entry.js +12 -0
  5. package/dist/catalyst/p-311d10a7.entry.js.map +1 -0
  6. package/dist/cjs/{cat-alert_22.cjs.entry.js → cat-alert_24.cjs.entry.js} +2229 -19
  7. package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
  8. package/dist/cjs/catalyst.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/cat-badge/cat-badge.css +5 -5
  12. package/dist/collection/components/cat-button/cat-button.css +4 -0
  13. package/dist/collection/components/cat-checkbox/cat-checkbox.css +1 -0
  14. package/dist/collection/components/cat-input/cat-input.css +1 -0
  15. package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -1
  16. package/dist/collection/components/cat-select-remote/cat-select-remote.css +209 -0
  17. package/dist/collection/components/cat-select-remote/cat-select-remote.js +798 -0
  18. package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +1 -0
  19. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js +1288 -0
  20. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +1 -0
  21. package/dist/collection/index.cdn.js +42 -15
  22. package/dist/collection/index.js.map +1 -1
  23. package/dist/components/cat-badge.js +1 -1
  24. package/dist/components/cat-badge.js.map +1 -1
  25. package/dist/components/cat-button2.js +1 -1
  26. package/dist/components/cat-button2.js.map +1 -1
  27. package/dist/components/cat-checkbox.js +1 -115
  28. package/dist/components/cat-checkbox.js.map +1 -1
  29. package/dist/components/cat-checkbox2.js +119 -0
  30. package/dist/components/cat-checkbox2.js.map +1 -0
  31. package/dist/components/cat-input.js +1 -1
  32. package/dist/components/cat-input.js.map +1 -1
  33. package/dist/components/cat-scrollable.js +1 -1355
  34. package/dist/components/cat-scrollable.js.map +1 -1
  35. package/dist/components/cat-scrollable2.js +1359 -0
  36. package/dist/components/cat-scrollable2.js.map +1 -0
  37. package/dist/components/cat-select-remote-test.d.ts +11 -0
  38. package/dist/components/cat-select-remote-test.js +1368 -0
  39. package/dist/components/cat-select-remote-test.js.map +1 -0
  40. package/dist/components/cat-select-remote.d.ts +11 -0
  41. package/dist/components/cat-select-remote.js +8 -0
  42. package/dist/components/cat-select-remote.js.map +1 -0
  43. package/dist/components/cat-select-remote2.js +982 -0
  44. package/dist/components/cat-select-remote2.js.map +1 -0
  45. package/dist/components/cat-skeleton.js +1 -71
  46. package/dist/components/cat-skeleton.js.map +1 -1
  47. package/dist/components/cat-skeleton2.js +75 -0
  48. package/dist/components/cat-skeleton2.js.map +1 -0
  49. package/dist/components/index.d.ts +2 -0
  50. package/dist/components/index.js +2 -0
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/esm/{cat-alert_22.entry.js → cat-alert_24.entry.js} +2228 -20
  53. package/dist/esm/cat-alert_24.entry.js.map +1 -0
  54. package/dist/esm/catalyst.js +1 -1
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/types/components/cat-select-remote/autosize.d.ts +1 -0
  57. package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +145 -0
  58. package/dist/types/components/cat-select-remote-test/cat-select-remote-test.d.ts +6 -0
  59. package/dist/types/components.d.ts +145 -0
  60. package/dist/types/index.d.ts +3 -0
  61. package/package.json +5 -4
  62. package/dist/catalyst/p-45547af1.entry.js +0 -12
  63. package/dist/catalyst/p-45547af1.entry.js.map +0 -1
  64. package/dist/cjs/cat-alert_22.cjs.entry.js.map +0 -1
  65. package/dist/esm/cat-alert_22.entry.js.map +0 -1
@@ -125,7 +125,7 @@ const CatAvatar = class {
125
125
  };
126
126
  CatAvatar.style = catAvatarCss;
127
127
 
128
- const catBadgeCss = ":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.badge-round{border-radius:10rem}.badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.badge-xs{height:1rem;min-width:0.75rem;font-size:12px;padding:0 0.25rem}.badge-s{height:1.5rem;min-width:1rem;font-size:12px;padding:0 0.5rem}.badge-m{height:2rem;min-width:1.25rem;font-size:13px;padding:0 0.75rem}.badge-l{height:2.5rem;min-width:1.5rem;font-size:15px;padding:0 1rem}.badge-xl{height:3rem;min-width:1.75rem;font-size:18px;padding:0 1rem}.badge-pulse.badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.badge-pulse.badge-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)}}";
128
+ const catBadgeCss = ":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.badge-round{border-radius:10rem}.badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.badge-xs{height:1rem;min-width:1rem;font-size:12px;padding:0 0.25rem}.badge-s{height:1.5rem;min-width:1.5rem;font-size:12px;padding:0 0.5rem}.badge-m{height:2rem;min-width:2rem;font-size:13px;padding:0 0.75rem}.badge-l{height:2.5rem;min-width:2.5rem;font-size:15px;padding:0 1rem}.badge-xl{height:3rem;min-width:3rem;font-size:18px;padding:0 1rem}.badge-pulse.badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.badge-pulse.badge-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)}}";
129
129
 
130
130
  const CatBadge = class {
131
131
  constructor(hostRef) {
@@ -279,7 +279,7 @@ function createEmptyStyleRule(query) {
279
279
  }
280
280
  }
281
281
 
282
- 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-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){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){text-decoration:none;background-color:rgba(var(--base), 0.05)}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.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: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: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: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: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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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}.cat-button-active::before{content:\"\";display:block;position:absolute;top:0;left:0;width:0.25rem;height:100%;background:rgb(var(--base))}: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}";
282
+ 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){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){text-decoration:none;background-color:rgba(var(--base), 0.05)}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.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: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: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: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: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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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;font-weight:var(--cat-font-weight-body, 400)}.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}.cat-button-active::before{content:\"\";display:block;position:absolute;top:0;left:0;width:0.25rem;height:100%;background:rgb(var(--base))}: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}";
283
283
 
284
284
  const CatButton = class {
285
285
  constructor(hostRef) {
@@ -483,16 +483,16 @@ const CatFormHint = props => {
483
483
  ]));
484
484
  };
485
485
 
486
- 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}: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:70%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));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}.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))}";
486
+ 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}: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:70%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));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}.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))}";
487
487
 
488
- let nextUniqueId$8 = 0;
488
+ let nextUniqueId$9 = 0;
489
489
  const CatCheckbox = class {
490
490
  constructor(hostRef) {
491
491
  registerInstance(this, hostRef);
492
492
  this.catChange = createEvent(this, "catChange", 7);
493
493
  this.catFocus = createEvent(this, "catFocus", 7);
494
494
  this.catBlur = createEvent(this, "catBlur", 7);
495
- this.id = `cat-checkbox-${nextUniqueId$8++}`;
495
+ this.id = `cat-checkbox-${nextUniqueId$9++}`;
496
496
  this.hasSlottedLabel = false;
497
497
  /**
498
498
  * Checked state of the checkbox
@@ -591,9 +591,9 @@ const CatIcon = class {
591
591
  };
592
592
  CatIcon.style = catIconCss;
593
593
 
594
- 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}: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))}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;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}";
594
+ 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}: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))}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}";
595
595
 
596
- let nextUniqueId$7 = 0;
596
+ let nextUniqueId$8 = 0;
597
597
  const CatInput = class {
598
598
  constructor(hostRef) {
599
599
  registerInstance(this, hostRef);
@@ -601,7 +601,7 @@ const CatInput = class {
601
601
  this.catFocus = createEvent(this, "catFocus", 7);
602
602
  this.catBlur = createEvent(this, "catBlur", 7);
603
603
  this.i18n = CatI18nRegistry.getInstance();
604
- this.id = `cat-input-${nextUniqueId$7++}`;
604
+ this.id = `cat-input-${nextUniqueId$8++}`;
605
605
  this.hasSlottedLabel = false;
606
606
  /**
607
607
  * Whether the input should show a clear button.
@@ -2274,7 +2274,7 @@ var isTabEvent = function isTabEvent(e) {
2274
2274
  return e.key === 'Tab' || e.keyCode === 9;
2275
2275
  };
2276
2276
 
2277
- var delay = function delay(fn) {
2277
+ var delay$1 = function delay(fn) {
2278
2278
  return setTimeout(fn, 0);
2279
2279
  }; // Array.find/findIndex() are not supported on IE; this replicates enough
2280
2280
  // of Array.findIndex() for our needs
@@ -2761,7 +2761,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
2761
2761
  activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
2762
2762
  // that caused the focus trap activation.
2763
2763
 
2764
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
2764
+ state.delayInitialFocusTimer = config.delayInitialFocus ? delay$1(function () {
2765
2765
  tryFocus(getInitialFocusNode());
2766
2766
  }) : tryFocus(getInitialFocusNode());
2767
2767
  doc.addEventListener('focusin', checkFocusIn, true);
@@ -2865,7 +2865,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
2865
2865
  var returnFocus = getOption(deactivateOptions, 'returnFocus', 'returnFocusOnDeactivate');
2866
2866
 
2867
2867
  var finishDeactivation = function finishDeactivation() {
2868
- delay(function () {
2868
+ delay$1(function () {
2869
2869
  if (returnFocus) {
2870
2870
  tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
2871
2871
  }
@@ -2927,13 +2927,13 @@ const firstTabbable = (container) => {
2927
2927
 
2928
2928
  const catMenuCss = ":host{display:contents}:host([hidden]){display:none}.content{padding-top:0.5rem;padding-bottom:0.5rem;position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-width:8rem;max-width:16rem;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}";
2929
2929
 
2930
- let nextUniqueId$6 = 0;
2930
+ let nextUniqueId$7 = 0;
2931
2931
  const CatMenu = class {
2932
2932
  constructor(hostRef) {
2933
2933
  registerInstance(this, hostRef);
2934
2934
  this.catOpen = createEvent(this, "catOpen", 7);
2935
2935
  this.catClose = createEvent(this, "catClose", 7);
2936
- this.id = nextUniqueId$6++;
2936
+ this.id = nextUniqueId$7++;
2937
2937
  /**
2938
2938
  * The placement of the menu.
2939
2939
  */
@@ -3094,14 +3094,14 @@ CatModal.style = catModalCss;
3094
3094
 
3095
3095
  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}: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, 32, 127, 138));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, 32, 127, 138))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.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}";
3096
3096
 
3097
- let nextUniqueId$5 = 0;
3097
+ let nextUniqueId$6 = 0;
3098
3098
  const CatRadio = class {
3099
3099
  constructor(hostRef) {
3100
3100
  registerInstance(this, hostRef);
3101
3101
  this.catChange = createEvent(this, "catChange", 7);
3102
3102
  this.catFocus = createEvent(this, "catFocus", 7);
3103
3103
  this.catBlur = createEvent(this, "catBlur", 7);
3104
- this.id = `cat-radio-${++nextUniqueId$5}`;
3104
+ this.id = `cat-radio-${++nextUniqueId$6}`;
3105
3105
  this.hasSlottedLabel = false;
3106
3106
  /**
3107
3107
  * Whether this radio is checked.
@@ -3940,6 +3940,157 @@ class AnonymousSubject extends Subject {
3940
3940
  }
3941
3941
  }
3942
3942
 
3943
+ const dateTimestampProvider = {
3944
+ now() {
3945
+ return (dateTimestampProvider.delegate || Date).now();
3946
+ },
3947
+ delegate: undefined,
3948
+ };
3949
+
3950
+ class Action extends Subscription {
3951
+ constructor(scheduler, work) {
3952
+ super();
3953
+ }
3954
+ schedule(state, delay = 0) {
3955
+ return this;
3956
+ }
3957
+ }
3958
+
3959
+ const intervalProvider = {
3960
+ setInterval(handler, timeout, ...args) {
3961
+ const { delegate } = intervalProvider;
3962
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
3963
+ return delegate.setInterval(handler, timeout, ...args);
3964
+ }
3965
+ return setInterval(handler, timeout, ...args);
3966
+ },
3967
+ clearInterval(handle) {
3968
+ const { delegate } = intervalProvider;
3969
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
3970
+ },
3971
+ delegate: undefined,
3972
+ };
3973
+
3974
+ class AsyncAction extends Action {
3975
+ constructor(scheduler, work) {
3976
+ super(scheduler, work);
3977
+ this.scheduler = scheduler;
3978
+ this.work = work;
3979
+ this.pending = false;
3980
+ }
3981
+ schedule(state, delay = 0) {
3982
+ if (this.closed) {
3983
+ return this;
3984
+ }
3985
+ this.state = state;
3986
+ const id = this.id;
3987
+ const scheduler = this.scheduler;
3988
+ if (id != null) {
3989
+ this.id = this.recycleAsyncId(scheduler, id, delay);
3990
+ }
3991
+ this.pending = true;
3992
+ this.delay = delay;
3993
+ this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
3994
+ return this;
3995
+ }
3996
+ requestAsyncId(scheduler, _id, delay = 0) {
3997
+ return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
3998
+ }
3999
+ recycleAsyncId(_scheduler, id, delay = 0) {
4000
+ if (delay != null && this.delay === delay && this.pending === false) {
4001
+ return id;
4002
+ }
4003
+ intervalProvider.clearInterval(id);
4004
+ return undefined;
4005
+ }
4006
+ execute(state, delay) {
4007
+ if (this.closed) {
4008
+ return new Error('executing a cancelled action');
4009
+ }
4010
+ this.pending = false;
4011
+ const error = this._execute(state, delay);
4012
+ if (error) {
4013
+ return error;
4014
+ }
4015
+ else if (this.pending === false && this.id != null) {
4016
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
4017
+ }
4018
+ }
4019
+ _execute(state, _delay) {
4020
+ let errored = false;
4021
+ let errorValue;
4022
+ try {
4023
+ this.work(state);
4024
+ }
4025
+ catch (e) {
4026
+ errored = true;
4027
+ errorValue = e ? e : new Error('Scheduled action threw falsy error');
4028
+ }
4029
+ if (errored) {
4030
+ this.unsubscribe();
4031
+ return errorValue;
4032
+ }
4033
+ }
4034
+ unsubscribe() {
4035
+ if (!this.closed) {
4036
+ const { id, scheduler } = this;
4037
+ const { actions } = scheduler;
4038
+ this.work = this.state = this.scheduler = null;
4039
+ this.pending = false;
4040
+ arrRemove(actions, this);
4041
+ if (id != null) {
4042
+ this.id = this.recycleAsyncId(scheduler, id, null);
4043
+ }
4044
+ this.delay = null;
4045
+ super.unsubscribe();
4046
+ }
4047
+ }
4048
+ }
4049
+
4050
+ class Scheduler {
4051
+ constructor(schedulerActionCtor, now = Scheduler.now) {
4052
+ this.schedulerActionCtor = schedulerActionCtor;
4053
+ this.now = now;
4054
+ }
4055
+ schedule(work, delay = 0, state) {
4056
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
4057
+ }
4058
+ }
4059
+ Scheduler.now = dateTimestampProvider.now;
4060
+
4061
+ class AsyncScheduler extends Scheduler {
4062
+ constructor(SchedulerAction, now = Scheduler.now) {
4063
+ super(SchedulerAction, now);
4064
+ this.actions = [];
4065
+ this._active = false;
4066
+ this._scheduled = undefined;
4067
+ }
4068
+ flush(action) {
4069
+ const { actions } = this;
4070
+ if (this._active) {
4071
+ actions.push(action);
4072
+ return;
4073
+ }
4074
+ let error;
4075
+ this._active = true;
4076
+ do {
4077
+ if ((error = action.execute(action.state, action.delay))) {
4078
+ break;
4079
+ }
4080
+ } while ((action = actions.shift()));
4081
+ this._active = false;
4082
+ if (error) {
4083
+ while ((action = actions.shift())) {
4084
+ action.unsubscribe();
4085
+ }
4086
+ throw error;
4087
+ }
4088
+ }
4089
+ }
4090
+
4091
+ const asyncScheduler = new AsyncScheduler(AsyncAction);
4092
+ const async = asyncScheduler;
4093
+
3943
4094
  const EMPTY = new Observable((subscriber) => subscriber.complete());
3944
4095
 
3945
4096
  function isScheduler(value) {
@@ -4299,6 +4450,21 @@ function from(input, scheduler) {
4299
4450
  return scheduler ? scheduled(input, scheduler) : innerFrom(input);
4300
4451
  }
4301
4452
 
4453
+ function of(...args) {
4454
+ const scheduler = popScheduler(args);
4455
+ return from(args, scheduler);
4456
+ }
4457
+
4458
+ const EmptyError = createErrorClass((_super) => function EmptyErrorImpl() {
4459
+ _super(this);
4460
+ this.name = 'EmptyError';
4461
+ this.message = 'no elements in sequence';
4462
+ });
4463
+
4464
+ function isValidDate(value) {
4465
+ return value instanceof Date && !isNaN(value);
4466
+ }
4467
+
4302
4468
  function map(project, thisArg) {
4303
4469
  return operate((source, subscriber) => {
4304
4470
  let index = 0;
@@ -4385,6 +4551,14 @@ function mergeAll(concurrent = Infinity) {
4385
4551
  return mergeMap(identity, concurrent);
4386
4552
  }
4387
4553
 
4554
+ function concatAll() {
4555
+ return mergeAll(1);
4556
+ }
4557
+
4558
+ function concat(...args) {
4559
+ return concatAll()(from(args, popScheduler(args)));
4560
+ }
4561
+
4388
4562
  const nodeEventEmitterMethods = ['addListener', 'removeListener'];
4389
4563
  const eventTargetMethods = ['addEventListener', 'removeEventListener'];
4390
4564
  const jqueryMethods = ['on', 'off'];
@@ -4431,6 +4605,36 @@ function isEventTarget(target) {
4431
4605
  return isFunction(target.addEventListener) && isFunction(target.removeEventListener);
4432
4606
  }
4433
4607
 
4608
+ function timer(dueTime = 0, intervalOrScheduler, scheduler = async) {
4609
+ let intervalDuration = -1;
4610
+ if (intervalOrScheduler != null) {
4611
+ if (isScheduler(intervalOrScheduler)) {
4612
+ scheduler = intervalOrScheduler;
4613
+ }
4614
+ else {
4615
+ intervalDuration = intervalOrScheduler;
4616
+ }
4617
+ }
4618
+ return new Observable((subscriber) => {
4619
+ let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
4620
+ if (due < 0) {
4621
+ due = 0;
4622
+ }
4623
+ let n = 0;
4624
+ return scheduler.schedule(function () {
4625
+ if (!subscriber.closed) {
4626
+ subscriber.next(n++);
4627
+ if (0 <= intervalDuration) {
4628
+ this.schedule(undefined, intervalDuration);
4629
+ }
4630
+ else {
4631
+ subscriber.complete();
4632
+ }
4633
+ }
4634
+ }, due);
4635
+ });
4636
+ }
4637
+
4434
4638
  function merge(...args) {
4435
4639
  const scheduler = popScheduler(args);
4436
4640
  const concurrent = popNumber(args, Infinity);
@@ -4452,6 +4656,135 @@ function filter(predicate, thisArg) {
4452
4656
  });
4453
4657
  }
4454
4658
 
4659
+ function catchError(selector) {
4660
+ return operate((source, subscriber) => {
4661
+ let innerSub = null;
4662
+ let syncUnsub = false;
4663
+ let handledResult;
4664
+ innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, (err) => {
4665
+ handledResult = innerFrom(selector(err, catchError(selector)(source)));
4666
+ if (innerSub) {
4667
+ innerSub.unsubscribe();
4668
+ innerSub = null;
4669
+ handledResult.subscribe(subscriber);
4670
+ }
4671
+ else {
4672
+ syncUnsub = true;
4673
+ }
4674
+ }));
4675
+ if (syncUnsub) {
4676
+ innerSub.unsubscribe();
4677
+ innerSub = null;
4678
+ handledResult.subscribe(subscriber);
4679
+ }
4680
+ });
4681
+ }
4682
+
4683
+ function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
4684
+ return (source, subscriber) => {
4685
+ let hasState = hasSeed;
4686
+ let state = seed;
4687
+ let index = 0;
4688
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4689
+ const i = index++;
4690
+ state = hasState
4691
+ ?
4692
+ accumulator(state, value, i)
4693
+ :
4694
+ ((hasState = true), value);
4695
+ emitOnNext && subscriber.next(state);
4696
+ }, emitBeforeComplete &&
4697
+ (() => {
4698
+ hasState && subscriber.next(state);
4699
+ subscriber.complete();
4700
+ })));
4701
+ };
4702
+ }
4703
+
4704
+ function debounce(durationSelector) {
4705
+ return operate((source, subscriber) => {
4706
+ let hasValue = false;
4707
+ let lastValue = null;
4708
+ let durationSubscriber = null;
4709
+ const emit = () => {
4710
+ durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
4711
+ durationSubscriber = null;
4712
+ if (hasValue) {
4713
+ hasValue = false;
4714
+ const value = lastValue;
4715
+ lastValue = null;
4716
+ subscriber.next(value);
4717
+ }
4718
+ };
4719
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4720
+ durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
4721
+ hasValue = true;
4722
+ lastValue = value;
4723
+ durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);
4724
+ innerFrom(durationSelector(value)).subscribe(durationSubscriber);
4725
+ }, () => {
4726
+ emit();
4727
+ subscriber.complete();
4728
+ }, undefined, () => {
4729
+ lastValue = durationSubscriber = null;
4730
+ }));
4731
+ });
4732
+ }
4733
+
4734
+ function defaultIfEmpty(defaultValue) {
4735
+ return operate((source, subscriber) => {
4736
+ let hasValue = false;
4737
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4738
+ hasValue = true;
4739
+ subscriber.next(value);
4740
+ }, () => {
4741
+ if (!hasValue) {
4742
+ subscriber.next(defaultValue);
4743
+ }
4744
+ subscriber.complete();
4745
+ }));
4746
+ });
4747
+ }
4748
+
4749
+ function take(count) {
4750
+ return count <= 0
4751
+ ?
4752
+ () => EMPTY
4753
+ : operate((source, subscriber) => {
4754
+ let seen = 0;
4755
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4756
+ if (++seen <= count) {
4757
+ subscriber.next(value);
4758
+ if (count <= seen) {
4759
+ subscriber.complete();
4760
+ }
4761
+ }
4762
+ }));
4763
+ });
4764
+ }
4765
+
4766
+ function ignoreElements() {
4767
+ return operate((source, subscriber) => {
4768
+ source.subscribe(createOperatorSubscriber(subscriber, noop));
4769
+ });
4770
+ }
4771
+
4772
+ function mapTo(value) {
4773
+ return map(() => value);
4774
+ }
4775
+
4776
+ function delayWhen(delayDurationSelector, subscriptionDelay) {
4777
+ if (subscriptionDelay) {
4778
+ return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
4779
+ }
4780
+ return mergeMap((value, index) => delayDurationSelector(value, index).pipe(take(1), mapTo(value)));
4781
+ }
4782
+
4783
+ function delay(due, scheduler = asyncScheduler) {
4784
+ const duration = timer(due, scheduler);
4785
+ return delayWhen(() => duration);
4786
+ }
4787
+
4455
4788
  function distinctUntilChanged(comparator, keySelector = identity) {
4456
4789
  comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
4457
4790
  return operate((source, subscriber) => {
@@ -4471,6 +4804,56 @@ function defaultCompare(a, b) {
4471
4804
  return a === b;
4472
4805
  }
4473
4806
 
4807
+ function throwIfEmpty(errorFactory = defaultErrorFactory) {
4808
+ return operate((source, subscriber) => {
4809
+ let hasValue = false;
4810
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4811
+ hasValue = true;
4812
+ subscriber.next(value);
4813
+ }, () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))));
4814
+ });
4815
+ }
4816
+ function defaultErrorFactory() {
4817
+ return new EmptyError();
4818
+ }
4819
+
4820
+ function first(predicate, defaultValue) {
4821
+ const hasDefaultValue = arguments.length >= 2;
4822
+ return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));
4823
+ }
4824
+
4825
+ function scan(accumulator, seed) {
4826
+ return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));
4827
+ }
4828
+
4829
+ function startWith(...values) {
4830
+ const scheduler = popScheduler(values);
4831
+ return operate((source, subscriber) => {
4832
+ (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
4833
+ });
4834
+ }
4835
+
4836
+ function switchMap(project, resultSelector) {
4837
+ return operate((source, subscriber) => {
4838
+ let innerSubscriber = null;
4839
+ let index = 0;
4840
+ let isComplete = false;
4841
+ const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();
4842
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4843
+ innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
4844
+ let innerIndex = 0;
4845
+ const outerIndex = index++;
4846
+ innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {
4847
+ innerSubscriber = null;
4848
+ checkComplete();
4849
+ })));
4850
+ }, () => {
4851
+ isComplete = true;
4852
+ checkComplete();
4853
+ }));
4854
+ });
4855
+ }
4856
+
4474
4857
  function takeUntil(notifier) {
4475
4858
  return operate((source, subscriber) => {
4476
4859
  innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));
@@ -4478,7 +4861,54 @@ function takeUntil(notifier) {
4478
4861
  });
4479
4862
  }
4480
4863
 
4481
- const catScrollableCss = ":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";
4864
+ function takeWhile(predicate, inclusive = false) {
4865
+ return operate((source, subscriber) => {
4866
+ let index = 0;
4867
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4868
+ const result = predicate(value, index++);
4869
+ (result || inclusive) && subscriber.next(value);
4870
+ !result && subscriber.complete();
4871
+ }));
4872
+ });
4873
+ }
4874
+
4875
+ function tap(observerOrNext, error, complete) {
4876
+ const tapObserver = isFunction(observerOrNext) || error || complete
4877
+ ?
4878
+ { next: observerOrNext, error, complete }
4879
+ : observerOrNext;
4880
+ return tapObserver
4881
+ ? operate((source, subscriber) => {
4882
+ var _a;
4883
+ (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
4884
+ let isUnsub = true;
4885
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
4886
+ var _a;
4887
+ (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);
4888
+ subscriber.next(value);
4889
+ }, () => {
4890
+ var _a;
4891
+ isUnsub = false;
4892
+ (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
4893
+ subscriber.complete();
4894
+ }, (err) => {
4895
+ var _a;
4896
+ isUnsub = false;
4897
+ (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);
4898
+ subscriber.error(err);
4899
+ }, () => {
4900
+ var _a, _b;
4901
+ if (isUnsub) {
4902
+ (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
4903
+ }
4904
+ (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
4905
+ }));
4906
+ })
4907
+ :
4908
+ identity;
4909
+ }
4910
+
4911
+ const catScrollableCss = ":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";
4482
4912
 
4483
4913
  const CatScrollable = class {
4484
4914
  constructor(hostRef) {
@@ -12073,7 +12503,7 @@ const Choices = /*@__PURE__*/getDefaultExportFromCjs(choices);
12073
12503
 
12074
12504
  const catSelectCss = "*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*::before,*::after{box-sizing:border-box}html,body{position:relative;margin:0;width:100%;height:100%}body{font-family:\"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0;margin-bottom:8px}hr{display:block;margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:visited,a:focus{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;appearance:none;margin-bottom:24px}h1,.h1{font-size:32px}h2,.h2{font-size:24px}h3,.h3{font-size:20px}h4,.h4{font-size:18px}h5,.h5{font-size:16px}h6,.h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width: 620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:visited,.section a:focus{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.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}: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;font-size:inherit;font-weight:inherit;margin:0}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))}.choices{position:relative;overflow:hidden;font-size:16px}.choices.is-focused,.choices:focus{outline:none;box-shadow:0 1px 4px 0 #101d3033}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none !important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__list--dropdown .choices__list{padding-top:0.5rem}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:12px 16px 12px 40px;border-bottom:1px solid #d7dbe0;margin:0;color:#000;background:#fff url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjUgMC4yNUMzLjk0MzY1IDAuMjUgMC4yNSAzLjk0MzY1IDAuMjUgOC41QzAuMjUgMTMuMDU2MyAzLjk0MzY1IDE2Ljc1IDguNSAxNi43NUMxMC41MjU1IDE2Ljc1IDEyLjM4MDUgMTYuMDIwMSAxMy44MTYzIDE0LjgwODlDMTMuODUyNiAxNC44ODkyIDEzLjkwMzcgMTQuOTY0NCAxMy45Njk3IDE1LjAzMDNMMTYuNDY5NyAxNy41MzAzQzE2Ljc2MjYgMTcuODIzMiAxNy4yMzc0IDE3LjgyMzIgMTcuNTMwMyAxNy41MzAzQzE3LjgyMzIgMTcuMjM3NCAxNy44MjMyIDE2Ljc2MjYgMTcuNTMwMyAxNi40Njk3TDE1LjAzMDMgMTMuOTY5N0MxNC45NjQ0IDEzLjkwMzcgMTQuODg5MiAxMy44NTI2IDE0LjgwODkgMTMuODE2M0MxNi4wMjAxIDEyLjM4MDUgMTYuNzUgMTAuNTI1NSAxNi43NSA4LjVDMTYuNzUgMy45NDM2NSAxMy4wNTYzIDAuMjUgOC41IDAuMjVaTTEuNzUgOC41QzEuNzUgNC43NzIwOCA0Ljc3MjA4IDEuNzUgOC41IDEuNzVDMTIuMjI3OSAxLjc1IDE1LjI1IDQuNzcyMDggMTUuMjUgOC41QzE1LjI1IDEyLjIyNzkgMTIuMjI3OSAxNS4yNSA4LjUgMTUuMjVDNC43NzIwOCAxNS4yNSAxLjc1IDEyLjIyNzkgMS43NSA4LjVaIiBmaWxsPSIjNjk3Njg3Ii8+Cjwvc3ZnPgo=\") no-repeat left 12px center}.choices[data-type*=select-one] .choices__input::before{content:\"abc\"}.choices[data-type*=select-one] .choices__button{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDY5NjcgNi40Njk2N0M2Ljc2MjU2IDYuMTc2NzggNy4yMzc0NCA2LjE3Njc4IDcuNTMwMzMgNi40Njk2N0wxMCA4LjkzOTM0TDEyLjQ2OTcgNi40Njk2N0MxMi43NjI2IDYuMTc2NzggMTMuMjM3NCA2LjE3Njc4IDEzLjUzMDMgNi40Njk2N0MxMy44MjMyIDYuNzYyNTYgMTMuODIzMiA3LjIzNzQ0IDEzLjUzMDMgNy41MzAzM0wxMS4wNjA3IDEwTDEzLjUzMDMgMTIuNDY5N0MxMy44MjMyIDEyLjc2MjYgMTMuODIzMiAxMy4yMzc0IDEzLjUzMDMgMTMuNTMwM0MxMy4yMzc0IDEzLjgyMzIgMTIuNzYyNiAxMy44MjMyIDEyLjQ2OTcgMTMuNTMwM0wxMCAxMS4wNjA3TDcuNTMwMzMgMTMuNTMwM0M3LjIzNzQ0IDEzLjgyMzIgNi43NjI1NiAxMy44MjMyIDYuNDY5NjcgMTMuNTMwM0M2LjE3Njc4IDEzLjIzNzQgNi4xNzY3OCAxMi43NjI2IDYuNDY5NjcgMTIuNDY5N0w4LjkzOTM0IDEwTDYuNDY5NjcgNy41MzAzM0M2LjE3Njc4IDcuMjM3NDQgNi4xNzY3OCA2Ljc2MjU2IDYuNDY5NjcgNi40Njk2N1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAgMC4yNUM0LjYxNTIyIDAuMjUgMC4yNSA0LjYxNTIyIDAuMjUgMTBDMC4yNSAxNS4zODQ4IDQuNjE1MjIgMTkuNzUgMTAgMTkuNzVDMTUuMzg0OCAxOS43NSAxOS43NSAxNS4zODQ4IDE5Ljc1IDEwQzE5Ljc1IDQuNjE1MjIgMTUuMzg0OCAwLjI1IDEwIDAuMjVaTTEuNzUgMTBDMS43NSA1LjQ0MzY1IDUuNDQzNjUgMS43NSAxMCAxLjc1QzE0LjU1NjMgMS43NSAxOC4yNSA1LjQ0MzY1IDE4LjI1IDEwQzE4LjI1IDE0LjU1NjMgMTQuNTU2MyAxOC4yNSAxMCAxOC4yNUM1LjQ0MzY1IDE4LjI1IDEuNzUgMTQuNTU2MyAxLjc1IDEwWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==\");padding:0;background-size:20px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:35px;height:20px;width:20px}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px rgba(105, 118, 135, 0.1)}.choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__button{display:none}.choices[data-type*=select-one] .choices__item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:35px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text;display:flex;flex-flow:row wrap;align-items:center;padding:4px 60px 4px 4px;gap:4px}.choices[data-type*=select-multiple] .choices__item cat-checkbox,.choices[data-type*=text] .choices__item cat-checkbox{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.choices[data-type*=select-multiple] .choices__item cat-checkbox::part(label),.choices[data-type*=text] .choices__item cat-checkbox::part(label){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.choices[data-type*=select-multiple] .choices__input,.choices[data-type*=text] .choices__input{min-width:1ch;width:1ch}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;padding-left:24px;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMjc1MzIgMC4zOTEzNzFDMS4wMzEyNCAwLjE0NzI5NCAwLjYzNTUxIDAuMTQ3Mjk0IDAuMzkxNDMyIDAuMzkxMzcxQzAuMTQ3MzU1IDAuNjM1NDQ5IDAuMTQ3MzU1IDEuMDMxMTggMC4zOTE0MzIgMS4yNzUyNUw0LjExNjE2IDQuOTk5OThMMC4zOTE0MzIgOC43MjQ3QzAuMTQ3MzU1IDguOTY4NzggMC4xNDczNTUgOS4zNjQ1MSAwLjM5MTQzMiA5LjYwODU5QzAuNjM1NTEgOS44NTI2NyAxLjAzMTI0IDkuODUyNjcgMS4yNzUzMiA5LjYwODU5TDUuMDAwMDQgNS44ODM4Nkw4LjcyNDc3IDkuNjA4NTlDOC45Njg4NCA5Ljg1MjY3IDkuMzY0NTcgOS44NTI2NyA5LjYwODY1IDkuNjA4NTlDOS44NTI3MyA5LjM2NDUxIDkuODUyNzMgOC45Njg3OCA5LjYwODY1IDguNzI0N0w1Ljg4MzkyIDQuOTk5OThMOS42MDg2NSAxLjI3NTI1QzkuODUyNzMgMS4wMzExOCA5Ljg1MjczIDAuNjM1NDQ5IDkuNjA4NjUgMC4zOTEzNzFDOS4zNjQ1NyAwLjE0NzI5NCA4Ljk2ODg0IDAuMTQ3Mjk0IDguNzI0NzcgMC4zOTEzNzFMNS4wMDAwNCA0LjExNjFMMS4yNzUzMiAwLjM5MTM3MVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=\");background-size:10px;width:10px;line-height:1;opacity:0.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=text] .choices__button:hover,.choices[data-type*=text] .choices__button:focus{opacity:1}.choices[data-type*=select-multiple] cat-button,.choices[data-type*=text] cat-button{position:absolute;top:50%;right:0;margin-top:-20px;margin-right:25px}.choices[data-type*=select-multiple] cat-button::part(button),.choices[data-type*=text] cat-button::part(button){box-shadow:unset;background-color:transparent}.choices[data-type*=select-multiple][dir=rtl] .choices__inner,.choices[data-type*=text][dir=rtl] .choices__inner{padding-right:4px;padding-left:60px}.choices[data-type*=select-multiple][dir=rtl] cat-button,.choices[data-type*=text][dir=rtl] cat-button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-one]::after,.choices[data-type*=select-multiple]::after{content:\"\";width:12px;height:6.5px;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMC40Njk2NyAwLjQ2OTY3QzAuNzYyNTYzIDAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMS41MzAzMyAwLjQ2OTY3TDYgNC45MzkzNEwxMC40Njk3IDAuNDY5NjcxQzEwLjc2MjYgMC4xNzY3NzggMTEuMjM3NCAwLjE3Njc3OCAxMS41MzAzIDAuNDY5NjcxQzExLjgyMzIgMC43NjI1NjQgMTEuODIzMiAxLjIzNzQ0IDExLjUzMDMgMS41MzAzM0w2LjUzMDMzIDYuNTMwMzNDNi4yMzc0NCA2LjgyMzIyIDUuNzYyNTYgNi44MjMyMiA1LjQ2OTY3IDYuNTMwMzNMMC40Njk2NyAxLjUzMDMzQzAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMC43NjI1NjMgMC40Njk2NyAwLjQ2OTY3WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==\");position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none;transition:transform 0.25s linear}.choices[data-type*=select-one][dir=rtl]::after,.choices[data-type*=select-multiple][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one].is-open::after,.choices[data-type*=select-multiple].is-open::after{transform:rotate(180deg);transition:transform 0.25s linear}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#fff;border:1px solid #d7dbe0;border-radius:4px;font-size:15px;min-height:40px;overflow:hidden}.is-open .choices__inner{border-radius:4px 4px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 4px 4px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:flex;padding:9px 50px 9px 12px;width:100%}[dir=rtl] .choices__list--single{padding-right:12px;padding-left:50px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:contents}.choices__list--multiple .choices__item{font-size:0.9375rem;line-height:1.25rem;font-weight:600;display:inline-flex;align-items:center;justify-content:space-between;border-radius:2px;padding:5px 8px 5px 4px;background-color:rgba(105, 118, 135, 0.1);color:#000;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:rgba(94, 105, 121, 0.1)}.is-disabled .choices__list--multiple .choices__item{background-color:#aaaaaa}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #d7dbe0;top:100%;margin-top:-1px;overflow:hidden;word-break:break-all;will-change:visibility;box-shadow:0 2px 4px 0 #101d3033;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;padding:8px 0;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{font-size:0.9375rem;line-height:1.25rem;font-weight:500;position:relative;padding:10px;min-height:40px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width: 640px){.choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=\"\"]),.choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=\"\"]){padding-right:100px}[dir=rtl] .choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=\"\"]),[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=\"\"]){padding-right:10px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:rgba(105, 118, 135, 0.05)}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:0.5}.choices__item{cursor:default;border-left:3px solid transparent;transition:0.25s linear}.choices__item--selectable{cursor:pointer}.choices__item--selected{border-color:rgb(var(--cat-primary-bg, 32, 127, 138))}.choices__item--disabled{cursor:not-allowed;user-select:none;opacity:0.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f4f5f6;color:gray}.choices__button{text-indent:-9999px;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus{outline:none}.choices__input{display:inline-block;vertical-align:baseline;background-color:white;font-size:15px;font-family:var(--cat-font-family-body, \"Lato\"), system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";border:0;border-radius:0;max-width:100%;padding:7px 0 4px 2px}.choices__input:focus{outline:0}.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:0.5}.choices__group{padding:8px 16px;height:34px}.choices__group .choices__heading{font-style:normal;font-weight:700;font-size:14px;line-height:18px;padding:unset;border-bottom:0;color:#697687}.choices__group:not(:first-child){border-top:1px solid #f4f5f6;margin-top:8px}.d-flex{display:flex}.align-items-center{align-items:center}.choices-option-icon{width:20px;aspect-ratio:1;border-radius:0.125rem}";
12075
12505
 
12076
- let nextUniqueId$4 = 0;
12506
+ let nextUniqueId$5 = 0;
12077
12507
  const getOptionTemplate = (data) => {
12078
12508
  var _a;
12079
12509
  if ((_a = data.customProperties) === null || _a === void 0 ? void 0 : _a.imageUrl) {
@@ -12094,7 +12524,7 @@ const CatSelect = class {
12094
12524
  this.catScrolledBottom = createEvent(this, "catScrolledBottom", 7);
12095
12525
  this.catBlur = createEvent(this, "catBlur", 7);
12096
12526
  this.i18n = CatI18nRegistry.getInstance();
12097
- this.id = `cat-select-${nextUniqueId$4++}`;
12527
+ this.id = `cat-select-${nextUniqueId$5++}`;
12098
12528
  this.resetItemsOnNextValueChange = true;
12099
12529
  this.hasSlottedLabel = false;
12100
12530
  /**
@@ -12403,6 +12833,1784 @@ const CatSelect = class {
12403
12833
  };
12404
12834
  CatSelect.style = catSelectCss;
12405
12835
 
12836
+ var GHOST_ELEMENT_ID = '__autosizeInputGhost';
12837
+
12838
+ var characterEntities = {
12839
+ ' ': 'nbsp',
12840
+ '<': 'lt',
12841
+ '>': 'gt'
12842
+ };
12843
+ function mapSpecialCharacterToCharacterEntity (specialCharacter) {
12844
+ return '&' + characterEntities[specialCharacter] + ';'
12845
+ }
12846
+ function escapeSpecialCharacters (string) {
12847
+ return string.replace(/\s|<|>/g, mapSpecialCharacterToCharacterEntity)
12848
+ }
12849
+
12850
+ // Create `ghostElement`, with inline styles to hide it and ensure that the text is all
12851
+ // on a single line.
12852
+ function createGhostElement () {
12853
+ var ghostElement = document.createElement('div');
12854
+ ghostElement.id = GHOST_ELEMENT_ID;
12855
+ ghostElement.style.cssText =
12856
+ 'display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;';
12857
+ document.body.appendChild(ghostElement);
12858
+ return ghostElement
12859
+ }
12860
+
12861
+ var autosizeInput = function (element, options) {
12862
+ var elementStyle = window.getComputedStyle(element);
12863
+ // prettier-ignore
12864
+ var elementCssText = 'box-sizing:' + elementStyle.boxSizing +
12865
+ ';border-left:' + elementStyle.borderLeftWidth + ' solid red' +
12866
+ ';border-right:' + elementStyle.borderRightWidth + ' solid red' +
12867
+ ';font-family:' + elementStyle.fontFamily +
12868
+ ';font-feature-settings:' + elementStyle.fontFeatureSettings +
12869
+ ';font-kerning:' + elementStyle.fontKerning +
12870
+ ';font-size:' + elementStyle.fontSize +
12871
+ ';font-stretch:' + elementStyle.fontStretch +
12872
+ ';font-style:' + elementStyle.fontStyle +
12873
+ ';font-variant:' + elementStyle.fontVariant +
12874
+ ';font-variant-caps:' + elementStyle.fontVariantCaps +
12875
+ ';font-variant-ligatures:' + elementStyle.fontVariantLigatures +
12876
+ ';font-variant-numeric:' + elementStyle.fontVariantNumeric +
12877
+ ';font-weight:' + elementStyle.fontWeight +
12878
+ ';letter-spacing:' + elementStyle.letterSpacing +
12879
+ ';margin-left:' + elementStyle.marginLeft +
12880
+ ';margin-right:' + elementStyle.marginRight +
12881
+ ';padding-left:' + elementStyle.paddingLeft +
12882
+ ';padding-right:' + elementStyle.paddingRight +
12883
+ ';text-indent:' + elementStyle.textIndent +
12884
+ ';text-transform:' + elementStyle.textTransform;
12885
+
12886
+ // Assigns an appropriate width to the given `element` based on its contents.
12887
+ function setWidth () {
12888
+ var string = element.value || element.getAttribute('placeholder') || '';
12889
+ // Check if the `ghostElement` exists. If no, create it.
12890
+ var ghostElement =
12891
+ document.getElementById(GHOST_ELEMENT_ID) || createGhostElement();
12892
+ // Copy all width-affecting styles to the `ghostElement`.
12893
+ ghostElement.style.cssText += elementCssText;
12894
+ ghostElement.innerHTML = escapeSpecialCharacters(string);
12895
+ // Copy the width of `ghostElement` to `element`.
12896
+ var width = window.getComputedStyle(ghostElement).width;
12897
+ element.style.width = width;
12898
+ return width
12899
+ }
12900
+
12901
+ element.addEventListener('input', setWidth);
12902
+
12903
+ var width = setWidth();
12904
+
12905
+ // Set `min-width` only if `options.minWidth` was set, and only if the initial
12906
+ // width is non-zero.
12907
+ if (options && options.minWidth && width !== '0px') {
12908
+ element.style.minWidth = width;
12909
+ }
12910
+
12911
+ // Return a function for unbinding the event listener and removing the `ghostElement`.
12912
+ return function () {
12913
+ element.removeEventListener('input', setWidth);
12914
+ var ghostElement = document.getElementById(GHOST_ELEMENT_ID);
12915
+ if (ghostElement) {
12916
+ ghostElement.parentNode.removeChild(ghostElement);
12917
+ }
12918
+ }
12919
+ };
12920
+
12921
+ const catSelectRemoteCss = ".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}:host{display:flex;flex-direction:column;gap:0.5rem;position:relative}: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:4px}.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))}.select-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.select-wrapper-inner{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}.select-input{font:inherit;background:none;border:none;outline:none;padding:6px 8px;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:4px;padding:4px 8px;background:#ebecf0;border-radius:0.125rem;white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis}.pill>cat-button{margin-right:-4px}.select-btn{transition:transform 0.13s linear}.select-btn::part(button){outline:none}cat-spinner{padding:6px}.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-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))}";
12922
+
12923
+ const INIT_STATE = {
12924
+ term: '',
12925
+ isOpen: false,
12926
+ isLoading: false,
12927
+ isResolving: false,
12928
+ options: [],
12929
+ selection: [],
12930
+ activeOptionIndex: -1,
12931
+ activeSelectionIndex: -1
12932
+ };
12933
+ let nextUniqueId$4 = 0;
12934
+ const CatSelectRemote = class {
12935
+ constructor(hostRef) {
12936
+ registerInstance(this, hostRef);
12937
+ this.catOpen = createEvent(this, "catOpen", 7);
12938
+ this.catClose = createEvent(this, "catClose", 7);
12939
+ this.catChange = createEvent(this, "catChange", 7);
12940
+ this.catBlur = createEvent(this, "catBlur", 7);
12941
+ this.i18n = CatI18nRegistry.getInstance();
12942
+ this.id = `cat-input-${nextUniqueId$4++}`;
12943
+ this.term$ = new Subject();
12944
+ this.more$ = new Subject();
12945
+ this.state = INIT_STATE;
12946
+ this.hasSlottedLabel = false;
12947
+ /**
12948
+ * Enable multiple selection.
12949
+ */
12950
+ this.multiple = false;
12951
+ /**
12952
+ * The debounce time for the search.
12953
+ */
12954
+ this.debounce = 250;
12955
+ /**
12956
+ * The placement of the select.
12957
+ */
12958
+ this.placement = 'bottom-start';
12959
+ /**
12960
+ * Whether the select is disabled.
12961
+ */
12962
+ this.disabled = false;
12963
+ /**
12964
+ * The label for the select.
12965
+ */
12966
+ this.label = '';
12967
+ /**
12968
+ * The name of the form control. Submitted with the form as part of a name/value pair.
12969
+ */
12970
+ this.name = '';
12971
+ /**
12972
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
12973
+ */
12974
+ this.labelHidden = false;
12975
+ /**
12976
+ * A value is required or must be check for the form to be submittable.
12977
+ */
12978
+ this.required = false;
12979
+ /**
12980
+ * Whether the select should show a clear button.
12981
+ */
12982
+ this.clearable = false;
12983
+ }
12984
+ onConnectorChange(connector) {
12985
+ this.reset(connector);
12986
+ this.resolve();
12987
+ }
12988
+ onStateChange(newState, oldState) {
12989
+ var _a;
12990
+ const changed = (key) => newState[key] !== oldState[key];
12991
+ if (changed('activeOptionIndex')) {
12992
+ if (this.state.activeOptionIndex >= 0) {
12993
+ const option = (_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.querySelector(`#select-${this.id}-option-${this.state.activeOptionIndex}`);
12994
+ option === null || option === void 0 ? void 0 : option.scrollIntoView({ block: 'nearest' });
12995
+ }
12996
+ }
12997
+ if (changed('selection')) {
12998
+ if (!this.multiple && this.state.selection.length) {
12999
+ this.hide();
13000
+ }
13001
+ const idsSelected = this.state.selection.map(item => item.item.id);
13002
+ if (this.multiple) {
13003
+ this.value = idsSelected;
13004
+ }
13005
+ else {
13006
+ this.value = idsSelected.length ? idsSelected[0] : '';
13007
+ }
13008
+ this.catChange.emit();
13009
+ }
13010
+ }
13011
+ componentDidLoad() {
13012
+ if (this.input) {
13013
+ autosizeInput(this.input);
13014
+ }
13015
+ if (this.trigger && this.dropdown) {
13016
+ autoUpdate(this.trigger, this.dropdown, () => this.update());
13017
+ }
13018
+ }
13019
+ componentWillRender() {
13020
+ this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
13021
+ if (!this.label && !this.hasSlottedLabel) {
13022
+ loglevel.error('[A11y] Missing ARIA label on select', this);
13023
+ }
13024
+ }
13025
+ onBlur(event) {
13026
+ if (!this.multiple && this.state.activeOptionIndex >= 0) {
13027
+ this.select(this.state.options[this.state.activeOptionIndex]);
13028
+ }
13029
+ this.hide();
13030
+ this.patchState({ activeSelectionIndex: -1 });
13031
+ this.catBlur.emit(event);
13032
+ }
13033
+ onKeyDown(event) {
13034
+ var _a, _b, _c, _d, _e;
13035
+ const isInputFocused = ((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) === this.input;
13036
+ if (['ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight'].includes(event.key)) {
13037
+ this.onArrowKeyDown(event);
13038
+ }
13039
+ else if (['Enter', ' '].includes(event.key)) {
13040
+ if (isInputFocused && this.state.activeOptionIndex >= 0) {
13041
+ event.preventDefault();
13042
+ if (this.multiple) {
13043
+ this.toggle(this.state.options[this.state.activeOptionIndex]);
13044
+ }
13045
+ else {
13046
+ this.select(this.state.options[this.state.activeOptionIndex]);
13047
+ }
13048
+ }
13049
+ }
13050
+ else if (event.key === 'Escape') {
13051
+ this.hide();
13052
+ }
13053
+ else if (event.key === 'Backspace' || event.key === 'Delete') {
13054
+ (_b = this.input) === null || _b === void 0 ? void 0 : _b.focus();
13055
+ if (!this.multiple || !this.state.term || (((_c = this.input) === null || _c === void 0 ? void 0 : _c.selectionStart) === 0 && event.key === 'Backspace')) {
13056
+ if (this.state.activeSelectionIndex >= 0) {
13057
+ this.deselect(this.state.selection[this.state.activeSelectionIndex].item.id);
13058
+ }
13059
+ else if (this.state.selection.length) {
13060
+ const selectionClone = [...this.state.selection];
13061
+ selectionClone.pop();
13062
+ this.patchState({ selection: selectionClone });
13063
+ }
13064
+ }
13065
+ }
13066
+ else if (event.key === 'Tab') {
13067
+ (_d = this.trigger) === null || _d === void 0 ? void 0 : _d.setAttribute('tabindex', '-1');
13068
+ if (this.multiple) {
13069
+ this.patchState({ activeSelectionIndex: -1, activeOptionIndex: -1 });
13070
+ }
13071
+ else if (this.state.activeOptionIndex >= 0) {
13072
+ this.select(this.state.options[this.state.activeOptionIndex]);
13073
+ }
13074
+ }
13075
+ else if (event.key.length === 1) {
13076
+ (_e = this.input) === null || _e === void 0 ? void 0 : _e.focus();
13077
+ }
13078
+ }
13079
+ onKeyUp(event) {
13080
+ var _a, _b, _c, _d, _e;
13081
+ if (event.key === 'Tab' && !event.shiftKey) {
13082
+ ((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) === this.trigger && ((_b = this.input) === null || _b === void 0 ? void 0 : _b.focus());
13083
+ if (((_c = this.hostElement.shadowRoot) === null || _c === void 0 ? void 0 : _c.activeElement) === this.input) {
13084
+ this.show();
13085
+ }
13086
+ }
13087
+ else if (event.key === 'Tab' && event.shiftKey) {
13088
+ const clearButton = (_d = this.trigger) === null || _d === void 0 ? void 0 : _d.querySelector(`#select-clear-btn-${this.id}`);
13089
+ if (clearButton) {
13090
+ ((_e = this.hostElement.shadowRoot) === null || _e === void 0 ? void 0 : _e.activeElement) === clearButton && this.show();
13091
+ }
13092
+ else {
13093
+ this.show();
13094
+ }
13095
+ }
13096
+ }
13097
+ async connect(connector) {
13098
+ var _a;
13099
+ this.connector = connector;
13100
+ let number$;
13101
+ (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
13102
+ this.subscription = this.term$
13103
+ .asObservable()
13104
+ .pipe(debounce(term => (term ? timer(this.debounce) : of(0))), distinctUntilChanged(), tap(() => (number$ = this.more$.pipe(filter(() => !this.state.isLoading), scan(n => n + 1, 0), startWith(0)))), tap(() => this.patchState({ options: [] })), switchMap(term => number$.pipe(tap(() => this.patchState({ isLoading: true })), switchMap(number => this.connectorSafe.retrieve(term, number)), tap(page => this.patchState({ isLoading: false, totalElements: page.totalElements })), takeWhile(page => !page.last, true), scan((items, page) => [...items, ...page.content], []))))
13105
+ .subscribe(items => this.patchState({
13106
+ options: items === null || items === void 0 ? void 0 : items.map(item => ({
13107
+ item,
13108
+ render: this.connectorSafe.render(item)
13109
+ }))
13110
+ }));
13111
+ }
13112
+ render() {
13113
+ return (h(Host, null, (this.hasSlottedLabel || this.label) && (h("label", { htmlFor: this.id, class: { hidden: this.labelHidden } }, h("span", { part: "label" }, (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label, !this.required && (h("span", { class: "input-optional", "aria-hidden": "true" }, "(", this.i18n.t('input.optional'), ")"))))), h("div", { class: { 'select-wrapper': true, 'select-disabled': this.disabled }, ref: el => (this.trigger = el), id: this.id, role: "combobox", "aria-expanded": this.state.isOpen || this.isPillboxActive(), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-required": this.required, "aria-activedescendant": this.activeDescendant, onClick: e => this.onClick(e) }, h("div", { class: "select-wrapper-inner" }, this.multiple && this.state.selection.length ? (h("div", { id: `select-pillbox-${this.id}`, role: "listbox", "aria-orientation": "horizontal", class: "select-pills" }, this.state.selection.map((item, i) => (h("span", { class: {
13114
+ pill: true,
13115
+ 'select-no-open': true,
13116
+ 'select-option-active': this.state.activeSelectionIndex === i
13117
+ }, role: "option", "aria-selected": "true", id: `select-${this.id}-selection-${i}` }, h("span", null, item.render.label), !this.disabled && (h("cat-button", { size: "xs", variant: "text", icon: "16-cross", iconOnly: true, a11yLabel: this.i18n.t('select.deselect'), onClick: () => this.deselect(item.item.id), tabIndex: -1 }))))))) : null, h("input", { class: "select-input", ref: el => (this.input = el), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-activedescendant": this.activeDescendant, onInput: () => this.onInput(), value: !this.multiple ? this.state.term : undefined, placeholder: this.placeholder, disabled: this.disabled || this.state.isResolving })), this.state.isResolving && h("cat-spinner", null), (this.state.selection.length || this.state.term.length) &&
13118
+ !this.disabled &&
13119
+ !this.state.isResolving &&
13120
+ this.clearable ? (h("cat-button", { id: `select-clear-btn-${this.id}`, iconOnly: true, icon: "cross-circle-outlined", variant: "text", size: "s", a11yLabel: this.i18n.t('select.clear'), onClick: () => this.clear() })) : null, !this.state.isResolving && (h("cat-button", { iconOnly: true, icon: "chevron-down-outlined", class: { 'select-btn': true, 'select-btn-open': this.state.isOpen }, variant: "text", size: "s", a11yLabel: this.state.isOpen ? this.i18n.t('select.close') : this.i18n.t('select.open'), "aria-controls": `select-listbox-${this.id}`, "aria-expanded": this.state.isOpen, tabIndex: -1, disabled: this.disabled || this.state.isResolving }))), this.hintSection, h("div", { class: "select-dropdown", ref: el => (this.dropdown = el), style: { display: this.state.isOpen ? 'block' : undefined } }, this.state.isOpen && (h("cat-scrollable", { class: "select-options-wrapper", scrolledBuffer: 56, noOverflowX: true, noOverscroll: true, noScrolledInit: true, onScrolledBottom: () => this.more$.next() }, h("ul", { class: "select-options", role: "listbox", "aria-multiselectable": this.multiple, "aria-setsize": this.state.totalElements, id: `select-listbox-${this.id}` }, this.state.options.map((item, i) => (h("li", { role: "option", class: "select-option", id: `select-${this.id}-option-${i}`, "aria-selected": this.isSelected(item.item.id) ? 'true' : 'false' }, this.multiple ? (h("cat-checkbox", { class: { 'select-option-active': this.state.activeOptionIndex === i }, checked: this.isSelected(item.item.id), tabIndex: -1, labelLeft: true, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onCatChange: e => {
13121
+ this.toggle(item);
13122
+ e.stopPropagation();
13123
+ } }, h("span", { slot: "label", class: "select-option" }, h("span", { class: "select-option-label" }, item.render.label), h("span", { class: "select-option-description" }, item.render.description)))) : (h("div", { class: {
13124
+ 'select-option-single': true,
13125
+ 'select-option-active': this.state.activeOptionIndex === i
13126
+ }, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onClick: () => this.select(item), tabIndex: -1 }, h("span", { class: "select-option-label" }, item.render.label), h("span", { class: "select-option-description" }, item.render.description)))))), this.state.isLoading
13127
+ ? Array.from(Array(CatSelectRemote.SKELETON_COUNT)).map(() => (h("li", { class: "select-option-loading" }, h("cat-skeleton", { variant: "body", lines: 1 }), h("cat-skeleton", { variant: "body", lines: 1 }))))
13128
+ : !this.state.options.length && h("li", { class: "select-option-empty" }, this.i18n.t('select.empty'))))))));
13129
+ }
13130
+ get hintSection() {
13131
+ const hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
13132
+ return ((this.hint || hasSlottedHint) && (h(CatFormHint, { hint: this.hint, slottedHint: hasSlottedHint && h("slot", { name: "hint" }) })));
13133
+ }
13134
+ get connectorSafe() {
13135
+ if (this.connector) {
13136
+ return this.connector;
13137
+ }
13138
+ throw new Error('CatSelectRemoteConnector not set');
13139
+ }
13140
+ resolve() {
13141
+ var _a;
13142
+ this.patchState({ isResolving: true });
13143
+ let ids;
13144
+ if (this.multiple) {
13145
+ ids = this.value;
13146
+ }
13147
+ else {
13148
+ ids = [this.value];
13149
+ }
13150
+ const data$ = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ? this.connectorSafe.resolve(ids).pipe(first()) : of([]);
13151
+ data$.pipe(catchError(() => of([]))).subscribe(items => this.patchState({
13152
+ isResolving: false,
13153
+ selection: items === null || items === void 0 ? void 0 : items.map(item => ({ item, render: this.connectorSafe.render(item) })),
13154
+ term: !this.multiple && items.length ? this.connectorSafe.render(items[0]).label : ''
13155
+ }));
13156
+ }
13157
+ show() {
13158
+ var _a;
13159
+ if (!this.state.isOpen) {
13160
+ this.patchState({ isOpen: true });
13161
+ this.catOpen.emit();
13162
+ this.term$.next(this.state.term);
13163
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.classList.remove('select-input-transparent-caret');
13164
+ }
13165
+ }
13166
+ hide() {
13167
+ if (this.state.isOpen) {
13168
+ this.patchState({ isOpen: false, activeOptionIndex: -1 });
13169
+ this.catClose.emit();
13170
+ }
13171
+ }
13172
+ search(term) {
13173
+ this.patchState({ term, activeOptionIndex: -1, activeSelectionIndex: -1 });
13174
+ this.term$.next(term);
13175
+ }
13176
+ isSelected(id) {
13177
+ return this.state.selection.findIndex(s => s.item.id === id) >= 0;
13178
+ }
13179
+ select(item) {
13180
+ var _a;
13181
+ if (!this.isSelected(item.item.id)) {
13182
+ let newSelection;
13183
+ if (this.multiple) {
13184
+ newSelection = [...this.state.selection, item];
13185
+ }
13186
+ else {
13187
+ newSelection = [item];
13188
+ this.search(item.render.label);
13189
+ }
13190
+ this.patchState({ selection: newSelection });
13191
+ }
13192
+ if (!this.multiple) {
13193
+ this.hide();
13194
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.classList.add('select-input-transparent-caret');
13195
+ }
13196
+ }
13197
+ deselect(id) {
13198
+ if (this.isSelected(id)) {
13199
+ this.patchState({
13200
+ selection: this.state.selection.filter(item => item.item.id !== id),
13201
+ activeSelectionIndex: -1
13202
+ });
13203
+ }
13204
+ }
13205
+ toggle(item) {
13206
+ this.isSelected(item.item.id) ? this.deselect(item.item.id) : this.select(item);
13207
+ }
13208
+ clear() {
13209
+ if (this.input && this.state.term) {
13210
+ this.patchState({ selection: [], options: [], term: '', activeOptionIndex: -1 });
13211
+ this.term$.next('');
13212
+ this.input.value = '';
13213
+ }
13214
+ else {
13215
+ this.patchState({ selection: [] });
13216
+ }
13217
+ }
13218
+ reset(connector) {
13219
+ var _a;
13220
+ this.connector = connector !== null && connector !== void 0 ? connector : this.connector;
13221
+ (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
13222
+ this.subscription = undefined;
13223
+ this.state = INIT_STATE;
13224
+ }
13225
+ onClick(event) {
13226
+ var _a, _b;
13227
+ const elem = event.target;
13228
+ (_a = this.trigger) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', '0');
13229
+ (_b = this.input) === null || _b === void 0 ? void 0 : _b.focus();
13230
+ if (elem === this.trigger ||
13231
+ elem === this.input ||
13232
+ elem.classList.contains('select-btn') ||
13233
+ elem.nodeName === 'SPAN') {
13234
+ this.state.isOpen ? this.hide() : this.show();
13235
+ }
13236
+ }
13237
+ onInput() {
13238
+ var _a;
13239
+ this.search(((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) || '');
13240
+ this.show();
13241
+ }
13242
+ update() {
13243
+ if (this.trigger && this.dropdown) {
13244
+ computePosition(this.trigger, this.dropdown, {
13245
+ placement: this.placement,
13246
+ middleware: [offset(CatSelectRemote.DROPDOWN_OFFSET)]
13247
+ }).then(({ x, y }) => {
13248
+ if (this.dropdown) {
13249
+ Object.assign(this.dropdown.style, {
13250
+ left: `${x}px`,
13251
+ top: `${y}px`
13252
+ });
13253
+ }
13254
+ });
13255
+ }
13256
+ }
13257
+ patchState(update) {
13258
+ this.state = Object.assign(Object.assign({}, this.state), update);
13259
+ }
13260
+ isPillboxActive() {
13261
+ return this.state.activeSelectionIndex >= 0;
13262
+ }
13263
+ get activeDescendant() {
13264
+ let activeDescendant = undefined;
13265
+ if (this.state.activeOptionIndex >= 0) {
13266
+ activeDescendant = `select-${this.id}-option-${this.state.activeOptionIndex}`;
13267
+ }
13268
+ else if (this.state.activeSelectionIndex >= 0) {
13269
+ activeDescendant = `select-${this.id}-selection-${this.state.activeSelectionIndex}`;
13270
+ }
13271
+ return activeDescendant;
13272
+ }
13273
+ onArrowKeyDown(event) {
13274
+ var _a, _b;
13275
+ let preventDefault = false;
13276
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus();
13277
+ if (event.key === 'ArrowDown') {
13278
+ preventDefault = true;
13279
+ this.state.isOpen
13280
+ ? this.patchState({
13281
+ activeOptionIndex: Math.min(this.state.activeOptionIndex + 1, this.state.options.length - 1),
13282
+ activeSelectionIndex: -1
13283
+ })
13284
+ : this.show();
13285
+ }
13286
+ else if (event.key === 'ArrowUp') {
13287
+ preventDefault = true;
13288
+ this.state.activeOptionIndex >= 0
13289
+ ? this.patchState({
13290
+ activeOptionIndex: Math.max(this.state.activeOptionIndex - 1, -1),
13291
+ activeSelectionIndex: -1
13292
+ })
13293
+ : this.hide();
13294
+ }
13295
+ else if (event.key === 'ArrowLeft') {
13296
+ if (((_b = this.input) === null || _b === void 0 ? void 0 : _b.selectionStart) === 0) {
13297
+ preventDefault = true;
13298
+ let index;
13299
+ this.state.activeSelectionIndex > 0
13300
+ ? (index = Math.max(this.state.activeSelectionIndex - 1, -1))
13301
+ : (index = this.state.selection.length - 1);
13302
+ this.patchState({ activeSelectionIndex: index, activeOptionIndex: -1 });
13303
+ }
13304
+ }
13305
+ else if (event.key === 'ArrowRight') {
13306
+ if (this.state.activeSelectionIndex >= 0) {
13307
+ preventDefault = true;
13308
+ let index = -1;
13309
+ if (this.state.activeSelectionIndex < this.state.selection.length - 1) {
13310
+ index = Math.min(this.state.activeSelectionIndex + 1, this.state.selection.length - 1);
13311
+ }
13312
+ else if (!this.state.term) {
13313
+ index = 0;
13314
+ }
13315
+ this.patchState({ activeSelectionIndex: index, activeOptionIndex: -1 });
13316
+ }
13317
+ }
13318
+ if (preventDefault) {
13319
+ event.preventDefault();
13320
+ event.stopPropagation();
13321
+ }
13322
+ }
13323
+ get hostElement() { return getElement(this); }
13324
+ static get watchers() { return {
13325
+ "connector": ["onConnectorChange"],
13326
+ "state": ["onStateChange"]
13327
+ }; }
13328
+ };
13329
+ CatSelectRemote.SKELETON_COUNT = 4;
13330
+ CatSelectRemote.DROPDOWN_OFFSET = 4;
13331
+ CatSelectRemote.style = catSelectRemoteCss;
13332
+
13333
+ const CatSelectRemoteTest = class {
13334
+ constructor(hostRef) {
13335
+ registerInstance(this, hostRef);
13336
+ }
13337
+ componentDidLoad() {
13338
+ var _a, _b;
13339
+ (_a = this.multipleSelect) === null || _a === void 0 ? void 0 : _a.connect({
13340
+ resolve: (ids) => {
13341
+ console.info(`Resolving data... (${ids.join(', ')})`);
13342
+ return of(ids.map(id => ({
13343
+ id,
13344
+ firstName: 'John',
13345
+ lastName: `Doe (${id})`,
13346
+ desc: 'resolved'
13347
+ }))).pipe(delay(500));
13348
+ },
13349
+ retrieve: (term, page) => {
13350
+ console.info(`Retrieving data... ("${term}", ${page})`);
13351
+ return term === 'no'
13352
+ ? of({ last: true, content: [], totalElements: 0 })
13353
+ : of({
13354
+ last: false,
13355
+ totalElements: 10000,
13356
+ content: Array.from({ length: 10 }, (_, i) => ({
13357
+ id: '' + (i + page * 10),
13358
+ firstName: 'John',
13359
+ lastName: `Doe (${i + page * 10})`,
13360
+ desc: `"${term}": page ${page}`
13361
+ }))
13362
+ }).pipe(delay(500));
13363
+ },
13364
+ render: (user) => ({
13365
+ label: `${user.firstName} ${user.lastName}`,
13366
+ description: user.desc
13367
+ })
13368
+ });
13369
+ (_b = this.singleSelect) === null || _b === void 0 ? void 0 : _b.connect({
13370
+ resolve: (ids) => {
13371
+ console.info(`Resolving data... (${ids.join(', ')})`);
13372
+ return of(ids.map(id => countries.find(value => value.id === id))).pipe(delay(500));
13373
+ },
13374
+ retrieve: (term, page) => {
13375
+ console.info(`Retrieving data... ("${term}", ${page})`);
13376
+ const filter = countries.filter(value => {
13377
+ var _a;
13378
+ return value.country.toLowerCase().indexOf(term.toLowerCase()) === 0 ||
13379
+ ((_a = value.capital) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(term.toLowerCase())) === 0;
13380
+ });
13381
+ const slice = filter.slice(page * 10, page * 10 + 10);
13382
+ return of({
13383
+ last: slice.length < 10,
13384
+ totalElements: filter.length,
13385
+ content: slice
13386
+ }).pipe(delay(500));
13387
+ },
13388
+ render: (country) => ({
13389
+ label: country.country,
13390
+ description: country.capital || 'No capital'
13391
+ })
13392
+ });
13393
+ }
13394
+ render() {
13395
+ return (h(Host, { style: { display: 'flex', gap: '0.5rem', flexDirection: 'column' } }, h("cat-select-remote", { label: "Multiple Select", hint: "This is a hint!", ref: el => (this.multipleSelect = el), value: ['1'], placeholder: "Hello World", onCatChange: e => console.log('Multiple', e), onCatBlur: e => console.log('Multiple blur', e), multiple: true, clearable: true }, h("span", { slot: "hint" }, "Searching for \"no\" -", '>', " no options are returned!")), h("cat-select-remote", { label: "Single Select", hint: "This is a hint!", ref: el => (this.singleSelect = el), value: '1', placeholder: "Search for a country or capital", onCatChange: e => console.log('Single', e), onCatBlur: e => console.log('Single blur', e), clearable: true })));
13396
+ }
13397
+ };
13398
+ const countries = [
13399
+ {
13400
+ id: '0',
13401
+ country: 'Afghanistan Extra extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large ',
13402
+ capital: 'Kabul'
13403
+ },
13404
+ {
13405
+ id: '1',
13406
+ country: 'Albania',
13407
+ capital: 'Tirana'
13408
+ },
13409
+ {
13410
+ id: '2',
13411
+ country: 'Algeria',
13412
+ capital: 'Alger'
13413
+ },
13414
+ {
13415
+ id: '3',
13416
+ country: 'American Samoa',
13417
+ capital: 'Fagatogo'
13418
+ },
13419
+ {
13420
+ id: '4',
13421
+ country: 'Andorra',
13422
+ capital: 'Andorra la Vella'
13423
+ },
13424
+ {
13425
+ id: '5',
13426
+ country: 'Angola',
13427
+ capital: 'Luanda'
13428
+ },
13429
+ {
13430
+ id: '6',
13431
+ country: 'Anguilla',
13432
+ capital: 'The Valley'
13433
+ },
13434
+ {
13435
+ id: '7',
13436
+ country: 'Antarctica'
13437
+ },
13438
+ {
13439
+ id: '8',
13440
+ country: 'Antigua and Barbuda',
13441
+ capital: "Saint John's"
13442
+ },
13443
+ {
13444
+ id: '9',
13445
+ country: 'Argentina',
13446
+ capital: 'Buenos Aires'
13447
+ },
13448
+ {
13449
+ id: '10',
13450
+ country: 'Armenia',
13451
+ capital: 'Yerevan'
13452
+ },
13453
+ {
13454
+ id: '11',
13455
+ country: 'Aruba',
13456
+ capital: 'Oranjestad'
13457
+ },
13458
+ {
13459
+ id: '12',
13460
+ country: 'Australia',
13461
+ capital: 'Canberra'
13462
+ },
13463
+ {
13464
+ id: '13',
13465
+ country: 'Austria',
13466
+ capital: 'Wien'
13467
+ },
13468
+ {
13469
+ id: '14',
13470
+ country: 'Azerbaijan',
13471
+ capital: 'Baku'
13472
+ },
13473
+ {
13474
+ id: '15',
13475
+ country: 'Bahamas',
13476
+ capital: 'Nassau'
13477
+ },
13478
+ {
13479
+ id: '16',
13480
+ country: 'Bahrain',
13481
+ capital: 'al-Manama'
13482
+ },
13483
+ {
13484
+ id: '17',
13485
+ country: 'Bangladesh',
13486
+ capital: 'Dhaka'
13487
+ },
13488
+ {
13489
+ id: '18',
13490
+ country: 'Barbados',
13491
+ capital: 'Bridgetown'
13492
+ },
13493
+ {
13494
+ id: '19',
13495
+ country: 'Belarus',
13496
+ capital: 'Minsk'
13497
+ },
13498
+ {
13499
+ id: '20',
13500
+ country: 'Belgium',
13501
+ capital: 'Bruxelles [Brussel]'
13502
+ },
13503
+ {
13504
+ id: '21',
13505
+ country: 'Belize',
13506
+ capital: 'Belmopan'
13507
+ },
13508
+ {
13509
+ id: '22',
13510
+ country: 'Benin',
13511
+ capital: 'Porto-Novo'
13512
+ },
13513
+ {
13514
+ id: '23',
13515
+ country: 'Bermuda',
13516
+ capital: 'Hamilton'
13517
+ },
13518
+ {
13519
+ id: '24',
13520
+ country: 'Bhutan',
13521
+ capital: 'Thimphu'
13522
+ },
13523
+ {
13524
+ id: '25',
13525
+ country: 'Bolivia',
13526
+ capital: 'La Paz'
13527
+ },
13528
+ {
13529
+ id: '26',
13530
+ country: 'Bosnia and Herzegovina',
13531
+ capital: 'Sarajevo'
13532
+ },
13533
+ {
13534
+ id: '27',
13535
+ country: 'Botswana',
13536
+ capital: 'Gaborone'
13537
+ },
13538
+ {
13539
+ id: '28',
13540
+ country: 'Bouvet Island'
13541
+ },
13542
+ {
13543
+ id: '29',
13544
+ country: 'Brazil',
13545
+ capital: 'Brasília'
13546
+ },
13547
+ {
13548
+ id: '30',
13549
+ country: 'British Indian Ocean Territory'
13550
+ },
13551
+ {
13552
+ id: '31',
13553
+ country: 'Brunei',
13554
+ capital: 'Bandar Seri Begawan'
13555
+ },
13556
+ {
13557
+ id: '32',
13558
+ country: 'Bulgaria',
13559
+ capital: 'Sofia'
13560
+ },
13561
+ {
13562
+ id: '33',
13563
+ country: 'Burkina Faso',
13564
+ capital: 'Ouagadougou'
13565
+ },
13566
+ {
13567
+ id: '34',
13568
+ country: 'Burundi',
13569
+ capital: 'Bujumbura'
13570
+ },
13571
+ {
13572
+ id: '35',
13573
+ country: 'Cambodia',
13574
+ capital: 'Phnom Penh'
13575
+ },
13576
+ {
13577
+ id: '36',
13578
+ country: 'Cameroon',
13579
+ capital: 'Yaound'
13580
+ },
13581
+ {
13582
+ id: '37',
13583
+ country: 'Canada',
13584
+ capital: 'Ottawa'
13585
+ },
13586
+ {
13587
+ id: '38',
13588
+ country: 'Cape Verde',
13589
+ capital: 'Praia'
13590
+ },
13591
+ {
13592
+ id: '39',
13593
+ country: 'Cayman Islands',
13594
+ capital: 'George Town'
13595
+ },
13596
+ {
13597
+ id: '40',
13598
+ country: 'Central African Republic',
13599
+ capital: 'Bangui'
13600
+ },
13601
+ {
13602
+ id: '41',
13603
+ country: 'Chad',
13604
+ capital: "N'Djam"
13605
+ },
13606
+ {
13607
+ id: '42',
13608
+ country: 'Chile',
13609
+ capital: 'Santiago de Chile'
13610
+ },
13611
+ {
13612
+ id: '43',
13613
+ country: 'China',
13614
+ capital: 'Peking'
13615
+ },
13616
+ {
13617
+ id: '44',
13618
+ country: 'Christmas Island',
13619
+ capital: 'Flying Fish Cove'
13620
+ },
13621
+ {
13622
+ id: '45',
13623
+ country: 'Cocos (Keeling) Islands',
13624
+ capital: 'West Island'
13625
+ },
13626
+ {
13627
+ id: '46',
13628
+ country: 'Colombia',
13629
+ capital: 'Santaf'
13630
+ },
13631
+ {
13632
+ id: '47',
13633
+ country: 'Comoros',
13634
+ capital: 'Moroni'
13635
+ },
13636
+ {
13637
+ id: '48',
13638
+ country: 'Congo',
13639
+ capital: 'Brazzaville'
13640
+ },
13641
+ {
13642
+ id: '49',
13643
+ country: 'Cook Islands',
13644
+ capital: 'Avarua'
13645
+ },
13646
+ {
13647
+ id: '50',
13648
+ country: 'Costa Rica',
13649
+ capital: 'San José'
13650
+ },
13651
+ {
13652
+ id: '51',
13653
+ country: 'Croatia',
13654
+ capital: 'Zagreb'
13655
+ },
13656
+ {
13657
+ id: '52',
13658
+ country: 'Cuba',
13659
+ capital: 'La Habana'
13660
+ },
13661
+ {
13662
+ id: '53',
13663
+ country: 'Cyprus',
13664
+ capital: 'Nicosia'
13665
+ },
13666
+ {
13667
+ id: '54',
13668
+ country: 'Czech Republic',
13669
+ capital: 'Praha'
13670
+ },
13671
+ {
13672
+ id: '55',
13673
+ country: 'Denmark',
13674
+ capital: 'Copenhagen'
13675
+ },
13676
+ {
13677
+ id: '56',
13678
+ country: 'Djibouti',
13679
+ capital: 'Djibouti'
13680
+ },
13681
+ {
13682
+ id: '57',
13683
+ country: 'Dominica',
13684
+ capital: 'Roseau'
13685
+ },
13686
+ {
13687
+ id: '58',
13688
+ country: 'Dominican Republic',
13689
+ capital: 'Santo Domingo de Guzm'
13690
+ },
13691
+ {
13692
+ id: '59',
13693
+ country: 'East Timor',
13694
+ capital: 'Dili'
13695
+ },
13696
+ {
13697
+ id: '60',
13698
+ country: 'Ecuador',
13699
+ capital: 'Quito'
13700
+ },
13701
+ {
13702
+ id: '61',
13703
+ country: 'Egypt',
13704
+ capital: 'Cairo'
13705
+ },
13706
+ {
13707
+ id: '62',
13708
+ country: 'El Salvador',
13709
+ capital: 'San Salvador'
13710
+ },
13711
+ {
13712
+ id: '63',
13713
+ country: 'England',
13714
+ capital: 'London'
13715
+ },
13716
+ {
13717
+ id: '64',
13718
+ country: 'Equatorial Guinea',
13719
+ capital: 'Malabo'
13720
+ },
13721
+ {
13722
+ id: '65',
13723
+ country: 'Eritrea',
13724
+ capital: 'Asmara'
13725
+ },
13726
+ {
13727
+ id: '66',
13728
+ country: 'Estonia',
13729
+ capital: 'Tallinn'
13730
+ },
13731
+ {
13732
+ id: '67',
13733
+ country: 'Ethiopia',
13734
+ capital: 'Addis Abeba'
13735
+ },
13736
+ {
13737
+ id: '68',
13738
+ country: 'Falkland Islands',
13739
+ capital: 'Stanley'
13740
+ },
13741
+ {
13742
+ id: '69',
13743
+ country: 'Faroe Islands',
13744
+ capital: 'Tórshavn'
13745
+ },
13746
+ {
13747
+ id: '70',
13748
+ country: 'Fiji Islands',
13749
+ capital: 'Suva'
13750
+ },
13751
+ {
13752
+ id: '71',
13753
+ country: 'Finland',
13754
+ capital: 'Helsinki [Helsingfors]'
13755
+ },
13756
+ {
13757
+ id: '72',
13758
+ country: 'France',
13759
+ capital: 'Paris'
13760
+ },
13761
+ {
13762
+ id: '73',
13763
+ country: 'French Guiana',
13764
+ capital: 'Cayenne'
13765
+ },
13766
+ {
13767
+ id: '74',
13768
+ country: 'French Polynesia',
13769
+ capital: 'Papeete'
13770
+ },
13771
+ {
13772
+ id: '75',
13773
+ country: 'French Southern territories'
13774
+ },
13775
+ {
13776
+ id: '76',
13777
+ country: 'Gabon',
13778
+ capital: 'Libreville'
13779
+ },
13780
+ {
13781
+ id: '77',
13782
+ country: 'Gambia',
13783
+ capital: 'Banjul'
13784
+ },
13785
+ {
13786
+ id: '78',
13787
+ country: 'Georgia',
13788
+ capital: 'Tbilisi'
13789
+ },
13790
+ {
13791
+ id: '79',
13792
+ country: 'Germany',
13793
+ capital: 'Berlin'
13794
+ },
13795
+ {
13796
+ id: '80',
13797
+ country: 'Ghana',
13798
+ capital: 'Accra'
13799
+ },
13800
+ {
13801
+ id: '81',
13802
+ country: 'Gibraltar',
13803
+ capital: 'Gibraltar'
13804
+ },
13805
+ {
13806
+ id: '82',
13807
+ country: 'Greece',
13808
+ capital: 'Athenai'
13809
+ },
13810
+ {
13811
+ id: '83',
13812
+ country: 'Greenland',
13813
+ capital: 'Nuuk'
13814
+ },
13815
+ {
13816
+ id: '84',
13817
+ country: 'Grenada',
13818
+ capital: "Saint George's"
13819
+ },
13820
+ {
13821
+ id: '85',
13822
+ country: 'Guadeloupe',
13823
+ capital: 'Basse-Terre'
13824
+ },
13825
+ {
13826
+ id: '86',
13827
+ country: 'Guam',
13828
+ capital: 'Aga'
13829
+ },
13830
+ {
13831
+ id: '87',
13832
+ country: 'Guatemala',
13833
+ capital: 'Ciudad de Guatemala'
13834
+ },
13835
+ {
13836
+ id: '88',
13837
+ country: 'Guinea',
13838
+ capital: 'Conakry'
13839
+ },
13840
+ {
13841
+ id: '89',
13842
+ country: 'Guinea-Bissau',
13843
+ capital: 'Bissau'
13844
+ },
13845
+ {
13846
+ id: '90',
13847
+ country: 'Guyana',
13848
+ capital: 'Georgetown'
13849
+ },
13850
+ {
13851
+ id: '91',
13852
+ country: 'Haiti',
13853
+ capital: 'Port-au-Prince'
13854
+ },
13855
+ {
13856
+ id: '92',
13857
+ country: 'Heard Island and McDonald Islands'
13858
+ },
13859
+ {
13860
+ id: '93',
13861
+ country: 'Holy See (Vatican City State)',
13862
+ capital: 'Citt'
13863
+ },
13864
+ {
13865
+ id: '94',
13866
+ country: 'Honduras',
13867
+ capital: 'Tegucigalpa'
13868
+ },
13869
+ {
13870
+ id: '95',
13871
+ country: 'Hong Kong',
13872
+ capital: 'Victoria'
13873
+ },
13874
+ {
13875
+ id: '96',
13876
+ country: 'Hungary',
13877
+ capital: 'Budapest'
13878
+ },
13879
+ {
13880
+ id: '97',
13881
+ country: 'Iceland',
13882
+ capital: 'Reykjavík'
13883
+ },
13884
+ {
13885
+ id: '98',
13886
+ country: 'India',
13887
+ capital: 'New Delhi'
13888
+ },
13889
+ {
13890
+ id: '99',
13891
+ country: 'Indonesia',
13892
+ capital: 'Jakarta'
13893
+ },
13894
+ {
13895
+ id: '100',
13896
+ country: 'Iran',
13897
+ capital: 'Tehran'
13898
+ },
13899
+ {
13900
+ id: '101',
13901
+ country: 'Iraq',
13902
+ capital: 'Baghdad'
13903
+ },
13904
+ {
13905
+ id: '102',
13906
+ country: 'Ireland',
13907
+ capital: 'Dublin'
13908
+ },
13909
+ {
13910
+ id: '103',
13911
+ country: 'Israel',
13912
+ capital: 'Jerusalem'
13913
+ },
13914
+ {
13915
+ id: '104',
13916
+ country: 'Italy',
13917
+ capital: 'Roma'
13918
+ },
13919
+ {
13920
+ id: '105',
13921
+ country: 'Ivory Coast',
13922
+ capital: 'Yamoussoukro'
13923
+ },
13924
+ {
13925
+ id: '106',
13926
+ country: 'Jamaica',
13927
+ capital: 'Kingston'
13928
+ },
13929
+ {
13930
+ id: '107',
13931
+ country: 'Japan',
13932
+ capital: 'Tokyo'
13933
+ },
13934
+ {
13935
+ id: '108',
13936
+ country: 'Jordan',
13937
+ capital: 'Amman'
13938
+ },
13939
+ {
13940
+ id: '109',
13941
+ country: 'Kazakhstan',
13942
+ capital: 'Astana'
13943
+ },
13944
+ {
13945
+ id: '110',
13946
+ country: 'Kenya',
13947
+ capital: 'Nairobi'
13948
+ },
13949
+ {
13950
+ id: '111',
13951
+ country: 'Kiribati',
13952
+ capital: 'Bairiki'
13953
+ },
13954
+ {
13955
+ id: '112',
13956
+ country: 'Kuwait',
13957
+ capital: 'Kuwait'
13958
+ },
13959
+ {
13960
+ id: '113',
13961
+ country: 'Kyrgyzstan',
13962
+ capital: 'Bishkek'
13963
+ },
13964
+ {
13965
+ id: '114',
13966
+ country: 'Laos',
13967
+ capital: 'Vientiane'
13968
+ },
13969
+ {
13970
+ id: '115',
13971
+ country: 'Latvia',
13972
+ capital: 'Riga'
13973
+ },
13974
+ {
13975
+ id: '116',
13976
+ country: 'Lebanon',
13977
+ capital: 'Beirut'
13978
+ },
13979
+ {
13980
+ id: '117',
13981
+ country: 'Lesotho',
13982
+ capital: 'Maseru'
13983
+ },
13984
+ {
13985
+ id: '118',
13986
+ country: 'Liberia',
13987
+ capital: 'Monrovia'
13988
+ },
13989
+ {
13990
+ id: '119',
13991
+ country: 'Libyan Arab Jamahiriya',
13992
+ capital: 'Tripoli'
13993
+ },
13994
+ {
13995
+ id: '120',
13996
+ country: 'Liechtenstein',
13997
+ capital: 'Vaduz'
13998
+ },
13999
+ {
14000
+ id: '121',
14001
+ country: 'Lithuania',
14002
+ capital: 'Vilnius'
14003
+ },
14004
+ {
14005
+ id: '122',
14006
+ country: 'Luxembourg',
14007
+ capital: 'Luxembourg [Luxemburg/L'
14008
+ },
14009
+ {
14010
+ id: '123',
14011
+ country: 'Macao',
14012
+ capital: 'Macao'
14013
+ },
14014
+ {
14015
+ id: '124',
14016
+ country: 'North Macedonia',
14017
+ capital: 'Skopje'
14018
+ },
14019
+ {
14020
+ id: '125',
14021
+ country: 'Madagascar',
14022
+ capital: 'Antananarivo'
14023
+ },
14024
+ {
14025
+ id: '126',
14026
+ country: 'Malawi',
14027
+ capital: 'Lilongwe'
14028
+ },
14029
+ {
14030
+ id: '127',
14031
+ country: 'Malaysia',
14032
+ capital: 'Kuala Lumpur'
14033
+ },
14034
+ {
14035
+ id: '128',
14036
+ country: 'Maldives',
14037
+ capital: 'Male'
14038
+ },
14039
+ {
14040
+ id: '129',
14041
+ country: 'Mali',
14042
+ capital: 'Bamako'
14043
+ },
14044
+ {
14045
+ id: '130',
14046
+ country: 'Malta',
14047
+ capital: 'Valletta'
14048
+ },
14049
+ {
14050
+ id: '131',
14051
+ country: 'Marshall Islands',
14052
+ capital: 'Dalap-Uliga-Darrit'
14053
+ },
14054
+ {
14055
+ id: '132',
14056
+ country: 'Martinique',
14057
+ capital: 'Fort-de-France'
14058
+ },
14059
+ {
14060
+ id: '133',
14061
+ country: 'Mauritania',
14062
+ capital: 'Nouakchott'
14063
+ },
14064
+ {
14065
+ id: '134',
14066
+ country: 'Mauritius',
14067
+ capital: 'Port-Louis'
14068
+ },
14069
+ {
14070
+ id: '135',
14071
+ country: 'Mayotte',
14072
+ capital: 'Mamoutzou'
14073
+ },
14074
+ {
14075
+ id: '136',
14076
+ country: 'Mexico',
14077
+ capital: 'Ciudad de M'
14078
+ },
14079
+ {
14080
+ id: '137',
14081
+ country: 'Micronesia, Federated States of',
14082
+ capital: 'Palikir'
14083
+ },
14084
+ {
14085
+ id: '138',
14086
+ country: 'Moldova',
14087
+ capital: 'Chisinau'
14088
+ },
14089
+ {
14090
+ id: '139',
14091
+ country: 'Monaco',
14092
+ capital: 'Monaco-Ville'
14093
+ },
14094
+ {
14095
+ id: '140',
14096
+ country: 'Mongolia',
14097
+ capital: 'Ulan Bator'
14098
+ },
14099
+ {
14100
+ id: '141',
14101
+ country: 'Montenegro',
14102
+ capital: 'Podgorica'
14103
+ },
14104
+ {
14105
+ id: '142',
14106
+ country: 'Montserrat',
14107
+ capital: 'Plymouth'
14108
+ },
14109
+ {
14110
+ id: '143',
14111
+ country: 'Morocco',
14112
+ capital: 'Rabat'
14113
+ },
14114
+ {
14115
+ id: '144',
14116
+ country: 'Mozambique',
14117
+ capital: 'Maputo'
14118
+ },
14119
+ {
14120
+ id: '145',
14121
+ country: 'Myanmar',
14122
+ capital: 'Rangoon (Yangon)'
14123
+ },
14124
+ {
14125
+ id: '146',
14126
+ country: 'Namibia',
14127
+ capital: 'Windhoek'
14128
+ },
14129
+ {
14130
+ id: '147',
14131
+ country: 'Nauru',
14132
+ capital: 'Yaren'
14133
+ },
14134
+ {
14135
+ id: '148',
14136
+ country: 'Nepal',
14137
+ capital: 'Kathmandu'
14138
+ },
14139
+ {
14140
+ id: '149',
14141
+ country: 'Netherlands',
14142
+ capital: 'Amsterdam'
14143
+ },
14144
+ {
14145
+ id: '150',
14146
+ country: 'Netherlands Antilles',
14147
+ capital: 'Willemstad'
14148
+ },
14149
+ {
14150
+ id: '151',
14151
+ country: 'New Caledonia',
14152
+ capital: 'Noum'
14153
+ },
14154
+ {
14155
+ id: '152',
14156
+ country: 'New Zealand',
14157
+ capital: 'Wellington'
14158
+ },
14159
+ {
14160
+ id: '153',
14161
+ country: 'Nicaragua',
14162
+ capital: 'Managua'
14163
+ },
14164
+ {
14165
+ id: '154',
14166
+ country: 'Niger',
14167
+ capital: 'Niamey'
14168
+ },
14169
+ {
14170
+ id: '155',
14171
+ country: 'Nigeria',
14172
+ capital: 'Abuja'
14173
+ },
14174
+ {
14175
+ id: '156',
14176
+ country: 'Niue',
14177
+ capital: 'Alofi'
14178
+ },
14179
+ {
14180
+ id: '157',
14181
+ country: 'Norfolk Island',
14182
+ capital: 'Kingston'
14183
+ },
14184
+ {
14185
+ id: '158',
14186
+ country: 'North Korea',
14187
+ capital: 'Pyongyang'
14188
+ },
14189
+ {
14190
+ id: '159',
14191
+ country: 'Northern Ireland',
14192
+ capital: 'Belfast'
14193
+ },
14194
+ {
14195
+ id: '160',
14196
+ country: 'Northern Mariana Islands',
14197
+ capital: 'Garapan'
14198
+ },
14199
+ {
14200
+ id: '161',
14201
+ country: 'Norway',
14202
+ capital: 'Oslo'
14203
+ },
14204
+ {
14205
+ id: '162',
14206
+ country: 'Oman',
14207
+ capital: 'Masqat'
14208
+ },
14209
+ {
14210
+ id: '163',
14211
+ country: 'Pakistan',
14212
+ capital: 'Islamabad'
14213
+ },
14214
+ {
14215
+ id: '164',
14216
+ country: 'Palau',
14217
+ capital: 'Koror'
14218
+ },
14219
+ {
14220
+ id: '165',
14221
+ country: 'Palestine',
14222
+ capital: 'Gaza'
14223
+ },
14224
+ {
14225
+ id: '166',
14226
+ country: 'Panama',
14227
+ capital: 'Ciudad de Panamá'
14228
+ },
14229
+ {
14230
+ id: '167',
14231
+ country: 'Papua New Guinea',
14232
+ capital: 'Port Moresby'
14233
+ },
14234
+ {
14235
+ id: '168',
14236
+ country: 'Paraguay',
14237
+ capital: 'Asunción'
14238
+ },
14239
+ {
14240
+ id: '169',
14241
+ country: 'Peru',
14242
+ capital: 'Lima'
14243
+ },
14244
+ {
14245
+ id: '170',
14246
+ country: 'Philippines',
14247
+ capital: 'Manila'
14248
+ },
14249
+ {
14250
+ id: '171',
14251
+ country: 'Pitcairn',
14252
+ capital: 'Adamstown'
14253
+ },
14254
+ {
14255
+ id: '172',
14256
+ country: 'Poland',
14257
+ capital: 'Warszawa'
14258
+ },
14259
+ {
14260
+ id: '173',
14261
+ country: 'Portugal',
14262
+ capital: 'Lisboa'
14263
+ },
14264
+ {
14265
+ id: '174',
14266
+ country: 'Puerto Rico',
14267
+ capital: 'San Juan'
14268
+ },
14269
+ {
14270
+ id: '175',
14271
+ country: 'Qatar',
14272
+ capital: 'Doha'
14273
+ },
14274
+ {
14275
+ id: '176',
14276
+ country: 'Reunion',
14277
+ capital: 'Saint-Denis'
14278
+ },
14279
+ {
14280
+ id: '177',
14281
+ country: 'Romania',
14282
+ capital: 'Bucuresti'
14283
+ },
14284
+ {
14285
+ id: '178',
14286
+ country: 'Russian Federation',
14287
+ capital: 'Moscow'
14288
+ },
14289
+ {
14290
+ id: '179',
14291
+ country: 'Rwanda',
14292
+ capital: 'Kigali'
14293
+ },
14294
+ {
14295
+ id: '180',
14296
+ country: 'Saint Helena',
14297
+ capital: 'Jamestown'
14298
+ },
14299
+ {
14300
+ id: '181',
14301
+ country: 'Saint Kitts and Nevis',
14302
+ capital: 'Basseterre'
14303
+ },
14304
+ {
14305
+ id: '182',
14306
+ country: 'Saint Lucia',
14307
+ capital: 'Castries'
14308
+ },
14309
+ {
14310
+ id: '183',
14311
+ country: 'Saint Pierre and Miquelon',
14312
+ capital: 'Saint-Pierre'
14313
+ },
14314
+ {
14315
+ id: '184',
14316
+ country: 'Saint Vincent and the Grenadines',
14317
+ capital: 'Kingstown'
14318
+ },
14319
+ {
14320
+ id: '185',
14321
+ country: 'Samoa',
14322
+ capital: 'Apia'
14323
+ },
14324
+ {
14325
+ id: '186',
14326
+ country: 'San Marino',
14327
+ capital: 'San Marino'
14328
+ },
14329
+ {
14330
+ id: '187',
14331
+ country: 'Sao Tome and Principe',
14332
+ capital: 'São Tomé'
14333
+ },
14334
+ {
14335
+ id: '188',
14336
+ country: 'Saudi Arabia',
14337
+ capital: 'Riyadh'
14338
+ },
14339
+ {
14340
+ id: '189',
14341
+ country: 'Scotland',
14342
+ capital: 'Edinburgh'
14343
+ },
14344
+ {
14345
+ id: '190',
14346
+ country: 'Senegal',
14347
+ capital: 'Dakar'
14348
+ },
14349
+ {
14350
+ id: '191',
14351
+ country: 'Serbia',
14352
+ capital: 'Belgrade'
14353
+ },
14354
+ {
14355
+ id: '192',
14356
+ country: 'Seychelles',
14357
+ capital: 'Victoria'
14358
+ },
14359
+ {
14360
+ id: '193',
14361
+ country: 'Sierra Leone',
14362
+ capital: 'Freetown'
14363
+ },
14364
+ {
14365
+ id: '194',
14366
+ country: 'Singapore',
14367
+ capital: 'Singapore'
14368
+ },
14369
+ {
14370
+ id: '195',
14371
+ country: 'Slovakia',
14372
+ capital: 'Bratislava'
14373
+ },
14374
+ {
14375
+ id: '196',
14376
+ country: 'Slovenia',
14377
+ capital: 'Ljubljana'
14378
+ },
14379
+ {
14380
+ id: '197',
14381
+ country: 'Solomon Islands',
14382
+ capital: 'Honiara'
14383
+ },
14384
+ {
14385
+ id: '198',
14386
+ country: 'Somalia',
14387
+ capital: 'Mogadishu'
14388
+ },
14389
+ {
14390
+ id: '199',
14391
+ country: 'South Africa',
14392
+ capital: 'Pretoria'
14393
+ },
14394
+ {
14395
+ id: '200',
14396
+ country: 'South Georgia and the South Sandwich Islands'
14397
+ },
14398
+ {
14399
+ id: '201',
14400
+ country: 'South Korea',
14401
+ capital: 'Seoul'
14402
+ },
14403
+ {
14404
+ id: '202',
14405
+ country: 'South Sudan',
14406
+ capital: 'Juba'
14407
+ },
14408
+ {
14409
+ id: '203',
14410
+ country: 'Spain',
14411
+ capital: 'Madrid'
14412
+ },
14413
+ {
14414
+ id: '204',
14415
+ country: 'Sri Lanka',
14416
+ capital: 'Colombo, Sri Jayawardenepura Kotte'
14417
+ },
14418
+ {
14419
+ id: '205',
14420
+ country: 'Sudan',
14421
+ capital: 'Khartum'
14422
+ },
14423
+ {
14424
+ id: '206',
14425
+ country: 'Suriname',
14426
+ capital: 'Paramaribo'
14427
+ },
14428
+ {
14429
+ id: '207',
14430
+ country: 'Svalbard and Jan Mayen',
14431
+ capital: 'Longyearbyen'
14432
+ },
14433
+ {
14434
+ id: '208',
14435
+ country: 'Swaziland',
14436
+ capital: 'Mbabane'
14437
+ },
14438
+ {
14439
+ id: '209',
14440
+ country: 'Sweden',
14441
+ capital: 'Stockholm'
14442
+ },
14443
+ {
14444
+ id: '210',
14445
+ country: 'Switzerland',
14446
+ capital: 'Bern'
14447
+ },
14448
+ {
14449
+ id: '211',
14450
+ country: 'Syria',
14451
+ capital: 'Damascus'
14452
+ },
14453
+ {
14454
+ id: '212',
14455
+ country: 'Tajikistan',
14456
+ capital: 'Dushanbe'
14457
+ },
14458
+ {
14459
+ id: '213',
14460
+ country: 'Tanzania',
14461
+ capital: 'Dodoma'
14462
+ },
14463
+ {
14464
+ id: '214',
14465
+ country: 'Thailand',
14466
+ capital: 'Bangkok'
14467
+ },
14468
+ {
14469
+ id: '215',
14470
+ country: 'The Democratic Republic of Congo',
14471
+ capital: 'Kinshasa'
14472
+ },
14473
+ {
14474
+ id: '216',
14475
+ country: 'Togo',
14476
+ capital: 'Lomé'
14477
+ },
14478
+ {
14479
+ id: '217',
14480
+ country: 'Tokelau',
14481
+ capital: 'Fakaofo'
14482
+ },
14483
+ {
14484
+ id: '218',
14485
+ country: 'Tonga',
14486
+ capital: "Nuku'alofa"
14487
+ },
14488
+ {
14489
+ id: '219',
14490
+ country: 'Trinidad and Tobago',
14491
+ capital: 'Port-of-Spain'
14492
+ },
14493
+ {
14494
+ id: '220',
14495
+ country: 'Tunisia',
14496
+ capital: 'Tunis'
14497
+ },
14498
+ {
14499
+ id: '221',
14500
+ country: 'Turkey',
14501
+ capital: 'Ankara'
14502
+ },
14503
+ {
14504
+ id: '222',
14505
+ country: 'Turkmenistan',
14506
+ capital: 'Ashgabat'
14507
+ },
14508
+ {
14509
+ id: '223',
14510
+ country: 'Turks and Caicos Islands',
14511
+ capital: 'Cockburn Town'
14512
+ },
14513
+ {
14514
+ id: '224',
14515
+ country: 'Tuvalu',
14516
+ capital: 'Funafuti'
14517
+ },
14518
+ {
14519
+ id: '225',
14520
+ country: 'Uganda',
14521
+ capital: 'Kampala'
14522
+ },
14523
+ {
14524
+ id: '226',
14525
+ country: 'Ukraine',
14526
+ capital: 'Kyiv'
14527
+ },
14528
+ {
14529
+ id: '227',
14530
+ country: 'United Arab Emirates',
14531
+ capital: 'Abu Dhabi'
14532
+ },
14533
+ {
14534
+ id: '228',
14535
+ country: 'United Kingdom',
14536
+ capital: 'London'
14537
+ },
14538
+ {
14539
+ id: '229',
14540
+ country: 'United States',
14541
+ capital: 'Washington'
14542
+ },
14543
+ {
14544
+ id: '230',
14545
+ country: 'United States Minor Outlying Islands'
14546
+ },
14547
+ {
14548
+ id: '231',
14549
+ country: 'Uruguay',
14550
+ capital: 'Montevideo'
14551
+ },
14552
+ {
14553
+ id: '232',
14554
+ country: 'Uzbekistan',
14555
+ capital: 'Toskent'
14556
+ },
14557
+ {
14558
+ id: '233',
14559
+ country: 'Vanuatu',
14560
+ capital: 'Port-Vila'
14561
+ },
14562
+ {
14563
+ id: '234',
14564
+ country: 'Venezuela',
14565
+ capital: 'Caracas'
14566
+ },
14567
+ {
14568
+ id: '235',
14569
+ country: 'Vietnam',
14570
+ capital: 'Hanoi'
14571
+ },
14572
+ {
14573
+ id: '236',
14574
+ country: 'Virgin Islands, British',
14575
+ capital: 'Road Town'
14576
+ },
14577
+ {
14578
+ id: '237',
14579
+ country: 'Virgin Islands, U.S.',
14580
+ capital: 'Charlotte Amalie'
14581
+ },
14582
+ {
14583
+ id: '238',
14584
+ country: 'Wales',
14585
+ capital: 'Cardiff'
14586
+ },
14587
+ {
14588
+ id: '239',
14589
+ country: 'Wallis and Futuna',
14590
+ capital: 'Mata-Utu'
14591
+ },
14592
+ {
14593
+ id: '240',
14594
+ country: 'Western Sahara',
14595
+ capital: 'El-Aai'
14596
+ },
14597
+ {
14598
+ id: '241',
14599
+ country: 'Yemen',
14600
+ capital: 'Sanaa'
14601
+ },
14602
+ {
14603
+ id: '242',
14604
+ country: 'Zambia',
14605
+ capital: 'Lusaka'
14606
+ },
14607
+ {
14608
+ id: '243',
14609
+ country: 'Zimbabwe',
14610
+ capital: 'Harare'
14611
+ }
14612
+ ];
14613
+
12406
14614
  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}}";
12407
14615
 
12408
14616
  const CatSkeleton = class {
@@ -12926,6 +15134,6 @@ const CatTooltip = class {
12926
15134
  CatTooltip.OFFSET = 4;
12927
15135
  CatTooltip.style = catTooltipCss;
12928
15136
 
12929
- 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, 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 };
15137
+ 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, CatSelectRemote as cat_select_remote, CatSelectRemoteTest as cat_select_remote_test, 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 };
12930
15138
 
12931
- //# sourceMappingURL=cat-alert_22.entry.js.map
15139
+ //# sourceMappingURL=cat-alert_24.entry.js.map