@haiilo/catalyst 0.14.3 → 0.15.2

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