impulse_view_components 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -1
- data/app/assets/dist/impulse_view_components.css +1 -1
- data/app/assets/dist/impulse_view_components.css.map +1 -1
- data/app/assets/dist/impulse_view_components.js +3 -3
- data/app/components/impulse/autocomplete_component.html.erb +1 -1
- data/lib/impulse/view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0264f922e82a6a4e658b764daaa4b836a9ec28556bd64c027c5ded2dfbddc51e
|
4
|
+
data.tar.gz: 972642e8e32ce9036ebe122fba7b9a645e59886c3c1ff5da490a330ea65e47e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f6aff1414379669046685979f0429829d2d15081c69e1b9640b573b4269e981f6545164970dd62632b8f9f0472eb9b736dbb9d7fa7f068e5acccdcecd5b2b8
|
7
|
+
data.tar.gz: 05d14d9c45c90e6f6d75839a89654b4c6b28bc91b0742b4a21579bcab2ea2df4312090d4fcef8eb1a67de3d6f632b8d47ef852944a65ee5ff2dcf62883388cad
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.7.1] - 2025-07-04
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Fixed SCSS compile issues when using the `min` CSS function ([#165](https://github.com/Ambiki/impulse_view_components/pull/165))
|
14
|
+
|
15
|
+
## [0.7.0] - 2025-07-04
|
16
|
+
|
17
|
+
### Added
|
18
|
+
|
19
|
+
- Dynamically adjust autocomplete's height ([#159](https://github.com/Ambiki/impulse_view_components/pull/159))
|
20
|
+
- Add `value` and `text` property to the autocomplete `remove` event ([#152](https://github.com/Ambiki/impulse_view_components/pull/152))
|
21
|
+
- Add `value` and `text` property to the autocomplete `commit` event ([#151](https://github.com/Ambiki/impulse_view_components/pull/151))
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- Clear autocomplete cache when `src` changes ([#153](https://github.com/Ambiki/impulse_view_components/pull/153))
|
26
|
+
- Return early if popup element is not defined in `useFloatingUI` ([#146](https://github.com/Ambiki/impulse_view_components/pull/146))
|
27
|
+
- Remote autocomplete should not remove the `loading` attribute on `AbortError` ([#139](https://github.com/Ambiki/impulse_view_components/pull/139))
|
28
|
+
|
9
29
|
## [0.6.0] - 2025-02-07
|
10
30
|
|
11
31
|
### Added
|
@@ -147,7 +167,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
147
167
|
|
148
168
|
- Everything!
|
149
169
|
|
150
|
-
[unreleased]: https://github.com/Ambiki/impulse_view_components/compare/v0.
|
170
|
+
[unreleased]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.1...HEAD
|
171
|
+
[0.7.1]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.0...v0.7.1
|
172
|
+
[0.7.0]: https://github.com/Ambiki/impulse_view_components/compare/v0.6.0...v0.7.0
|
151
173
|
[0.6.0]: https://github.com/Ambiki/impulse_view_components/compare/v0.5.1...v0.6.0
|
152
174
|
[0.5.1]: https://github.com/Ambiki/impulse_view_components/compare/v0.5.0...v0.5.1
|
153
175
|
[0.5.0]: https://github.com/Ambiki/impulse_view_components/compare/v0.4.0...v0.5.0
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:root{--blue: #007bff;--indigo: #6610f2;--purple: #6f42c1;--pink: #e83e8c;--red: #dc3545;--orange: #fd7e14;--yellow: #ffc107;--green: #28a745;--teal: #20c997;--cyan: #17a2b8;--white: #fff;--gray: #6c757d;--gray-dark: #343a40;--primary: #007bff;--secondary: #6c757d;--success: #28a745;--info: #17a2b8;--warning: #ffc107;--danger: #dc3545;--light: #f8f9fa;--dark: #343a40;--breakpoint-xs: 0;--breakpoint-sm: 576px;--breakpoint-md: 768px;--breakpoint-lg: 992px;--breakpoint-xl: 1200px;--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--white: #ffffff;--n300: #627291;--color-fg-default: #1c3158;--color-fg-secondary: var(--n300);--color-border-default: #d0d7de;--rounded-sm: 2px;--rounded-default: 4px;--rounded-md: 6px;--rounded-lg: 8px;--rounded-full: 9999px;--fs-sm: 0.8125rem;--fs-default: 0.875rem;--fs-lg: 1rem;--fs-xl: 1.25rem;--fw-default: 400;--fw-medium: 500;--fw-semibold: 600;--fw-bold: 700;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow-default: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--space-1: 0.25rem;--space-2: 0.5rem;--space-3: 1rem;--space-4: 1.5rem;--awc-autocomplete-control-min-height: calc(1.5em + 0.75rem + 2px);--awc-autocomplete-control-min-height-sm: calc(1.5em + 0.5rem + 2px);--awc-autocomplete-control-min-height-lg: calc(1.5em + 1rem + 2px);--awc-autocomplete-control-focus-color: #495057;--awc-autocomplete-control-focus-border-color: #80bdff;--awc-autocomplete-control-disabled-bg-color: #eef4ff;--awc-autocomplete-control-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);--awc-autocomplete-control-focus-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);--awc-autocomplete-input-min-width: 2rem;--awc-autocomplete-input-height: calc(calc(1.5em + 0.75rem + 2px) - (0.375rem * 2) - (1px * 2));--awc-autocomplete-input-bg-color: #fff;--awc-autocomplete-adornment-item-size: 1.5rem;--awc-autocomplete-listbox-font-size: 0.875rem;--awc-autocomplete-listbox-max-height: 256px;--awc-autocomplete-option-padding-x: 1rem;--awc-autocomplete-option-padding-y: 0.5rem;--awc-autocomplete-option-font-size: 0.875rem;--awc-autocomplete-option-lh: 1.25rem;--awc-autocomplete-option-hover-bg-color: #e9ecef;--awc-autocomplete-option-check-color: #38b57c;--awc-autocomplete-option-check-disabled-color: #afe1cb;--awc-autocomplete-group-header-padding-x: var(--awc-autocomplete-option-padding-x);--awc-autocomplete-group-header-padding-y: 0.25rem;--awc-autocomplete-group-header-color: #384b6e;--awc-autocomplete-group-header-font-size: 0.75rem;--awc-autocomplete-group-header-lh: 18px;--awc-autocomplete-group-header-fw: 500;--awc-autocomplete-tag-padding-x: 0.5rem;--awc-autocomplete-tag-btn-size: 1.25rem;--awc-autocomplete-tag-btn-bg-hover-color: var(--n300);--awc-autocomplete-tag-gap: 0.25rem;--awc-autocomplete-tag-max-width: 24rem;--awc-autocomplete-tag-bg-color: #e0e7f7;--awc-autocomplete-tag-border-color: #c4cdde;--awc-autocomplete-tag-border-radius: 0.125rem;--awc-autocomplete-tag-font-size: 0.75rem;--awc-autocomplete-blankslate-color: #384b6e;--awc-autocomplete-blankslate-padding-x: 1rem;--awc-autocomplete-blankslate-padding-y: 0.5rem;--awc-autocomplete-error-color: #c01303;--awc-autocomplete-input-height-sm: calc( calc(1.5em + 0.5rem + 2px) - (0.25rem * 2) - (1px * 2) );--awc-autocomplete-input-height-lg: calc( calc(1.5em + 1rem + 2px) - (0.5rem * 2) - (1px * 2) );--awc-autocomplete-tag-font-size-lg: 0.875rem;--awc-autocomplete-tag-gap-lg: 0.375rem}[hidden][hidden]{display:none !important}.awc-autocomplete{position:relative;display:block}.awc-autocomplete-control{display:flex;align-items:center;position:relative;cursor:text;padding-right:2.5rem;height:100%;min-height:var(--awc-autocomplete-control-min-height)}.awc-autocomplete:focus-within .awc-autocomplete-control{color:var(--awc-autocomplete-control-focus-color);background-color:#fff;border-color:var(--awc-autocomplete-control-focus-border-color);outline:0;box-shadow:var(--awc-autocomplete-control-focus-box-shadow)}.awc-autocomplete[disabled] .awc-autocomplete-control{cursor:default;background-color:var(--awc-autocomplete-control-disabled-bg-color)}.awc-autocomplete[disabled] .awc-autocomplete-clear-btn{background-color:var(--awc-autocomplete-control-disabled-bg-color);border-color:var(--awc-autocomplete-control-disabled-bg-color)}.awc-autocomplete-input{display:block;min-width:var(--awc-autocomplete-input-min-width);height:var(--awc-autocomplete-input-height);width:100%;margin:0;padding:0;flex:1 1 0%;font:inherit;letter-spacing:inherit;background:none;color:currentColor;border:0;outline:none;background-clip:padding-box}.awc-autocomplete-input::-moz-placeholder{color:#6c757d}.awc-autocomplete-input::placeholder{color:#6c757d}.awc-autocomplete-end-adornment{flex-shrink:0;position:absolute;right:.75rem;top:0;bottom:0;display:flex;align-items:center;margin-right:calc(0.75rem/2*-1)}.awc-autocomplete-adornment-btn,.awc-autocomplete-adornment-decorator{width:var(--awc-autocomplete-adornment-item-size);height:var(--awc-autocomplete-adornment-item-size);padding:0;display:flex;align-items:center;justify-content:center;border-radius:var(--rounded-sm);font-size:var(--fs-sm)}.awc-autocomplete-adornment-btn i,.awc-autocomplete-adornment-decorator i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-autocomplete-adornment-btn i::before,.awc-autocomplete-adornment-decorator i::before{line-height:inherit}.awc-autocomplete-clear-btn{display:none;background-color:var(--awc-autocomplete-input-bg-color);border-color:var(--awc-autocomplete-input-bg-color)}.awc-autocomplete-adornment-decorator{pointer-events:none}.awc-autocomplete-listbox{font-size:var(--awc-autocomplete-listbox-font-size);max-height:var(--awc-autocomplete-listbox-max-height);overflow:hidden auto;box-shadow:var(--shadow-md)}.awc-autocomplete-options{margin:0;padding:0}.awc-autocomplete-options .awc-autocomplete-group:not([hidden])~:not([hidden]){border-top:1px solid var(--color-border-default);margin-top:var(--space-1)}.awc-autocomplete-group-header{padding:var(--awc-autocomplete-group-header-padding-y) var(--awc-autocomplete-group-header-padding-x);line-height:var(--awc-autocomplete-group-header-lh);font-size:var(--awc-autocomplete-group-header-font-size);font-weight:var(--awc-autocomplete-group-header-fw);color:var(--awc-autocomplete-group-header-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awc-autocomplete-option-check{color:var(--awc-autocomplete-option-check-color);flex-shrink:0;visibility:hidden;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-xl)}.awc-autocomplete-option{position:relative;display:flex;align-items:flex-start;justify-content:space-between;-moz-column-gap:.25rem;column-gap:.25rem;padding:var(--awc-autocomplete-option-padding-y) var(--awc-autocomplete-option-padding-x);line-height:var(--awc-autocomplete-option-lh);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;font-size:var(--awc-autocomplete-option-font-size);white-space:initial}.awc-autocomplete-option[data-active],.awc-autocomplete-option:active,.awc-autocomplete-option .active{color:#16181b;background-color:var(--awc-autocomplete-option-hover-bg-color)}.awc-autocomplete-option.disabled{pointer-events:auto;cursor:not-allowed}.awc-autocomplete-option[data-active].disabled{color:#adb5bd}.awc-autocomplete-option.disabled .awc-autocomplete-option-check{color:var(--awc-autocomplete-option-check-disabled-color)}.awc-autocomplete-option:not(.disabled) .awc-autocomplete-option-description{color:var(--color-fg-secondary)}.awc-autocomplete-option[aria-selected=true] .awc-autocomplete-option-check{visibility:visible}.awc-autocomplete-option-content{flex:1 1 0%;display:flex;flex-direction:column;row-gap:2px;word-break:break-word}.awc-autocomplete-option-text{display:block}.awc-autocomplete-option-description{font-size:var(--fs-sm)}.awc-autocomplete-tag{display:flex;align-items:center;-moz-column-gap:.25rem;column-gap:.25rem;padding-inline:var(--awc-autocomplete-tag-padding-x);min-width:0;max-width:var(--awc-autocomplete-tag-max-width);height:var(--awc-autocomplete-input-height);vertical-align:middle;background-color:var(--awc-autocomplete-tag-bg-color);border-radius:var(--awc-autocomplete-tag-border-radius);border:1px solid var(--awc-autocomplete-tag-border-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}.awc-autocomplete-tag-text{display:block;line-height:var(--awc-autocomplete-tag-btn-size);font-size:var(--awc-autocomplete-tag-font-size);text-decoration:none;flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awc-autocomplete-tag-end-adornment{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;margin-right:calc(var(--awc-autocomplete-tag-padding-x)/2*-1)}.awc-autocomplete-tag-dismiss-btn{padding:0;display:inline-flex;align-items:center;justify-content:center;height:var(--awc-autocomplete-tag-btn-size);width:var(--awc-autocomplete-tag-btn-size);border-radius:var(--rounded-sm);font-size:var(--fs-lg)}.awc-autocomplete-tag-dismiss-btn:hover{background-color:var(--awc-autocomplete-tag-btn-bg-hover-color);color:#fff}.awc-autocomplete-tag-dismiss-btn[disabled]{background-color:rgba(0,0,0,0);color:inherit}.awc-autocomplete-tag-dismiss-btn i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-autocomplete-tag-dismiss-btn i::before{line-height:inherit}.awc-autocomplete-blankslate{display:none;text-align:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x);color:var(--awc-autocomplete-blankslate-color)}.awc-autocomplete-error{display:none;text-align:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x);color:var(--awc-autocomplete-error-color)}.awc-autocomplete-spinner{display:none;align-items:center;justify-content:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x)}.awc-autocomplete[open] .awc-autocomplete-listbox{display:block}.awc-autocomplete--selected.awc-autocomplete--clearable .awc-autocomplete-adornment-decorator{display:none}.awc-autocomplete--selected .awc-autocomplete-clear-btn{display:inline-flex}.awc-autocomplete[loading] .awc-autocomplete-options,.awc-autocomplete[loading] .awc-autocomplete-blankslate{display:none}.awc-autocomplete[loading] .awc-autocomplete-spinner{display:flex}.awc-autocomplete[no-options] .awc-autocomplete-options{display:none}.awc-autocomplete[no-options]:not([error]):not([loading]) .awc-autocomplete-blankslate{display:block}.awc-autocomplete[error] .awc-autocomplete-error{display:block}.awc-autocomplete[multiple] .awc-autocomplete-control{flex-wrap:wrap;gap:var(--awc-autocomplete-tag-gap)}.awc-autocomplete--sm{--awc-autocomplete-input-height: var(--awc-autocomplete-input-height-sm);--awc-autocomplete-tag-btn-size: 1rem}.awc-autocomplete--sm .awc-autocomplete-control{min-height:var(--awc-autocomplete-control-min-height-sm);padding-right:2.25rem}.awc-autocomplete--sm .awc-autocomplete-end-adornment{right:.5rem;margin-right:calc(0.5rem/2*-1)}.awc-autocomplete--lg{--awc-autocomplete-input-height: var(--awc-autocomplete-input-height-lg);--awc-autocomplete-tag-font-size: var(--awc-autocomplete-tag-font-size-lg);--awc-autocomplete-tag-gap: var(--awc-autocomplete-tag-gap-lg)}.awc-autocomplete--lg .awc-autocomplete-control{min-height:var(--awc-autocomplete-control-min-height-lg);padding-right:2.75rem}.awc-autocomplete--lg .awc-autocomplete-end-adornment{right:1rem;margin-right:calc(1rem/2*-1)}.awc-dialog-dialog{--margin-y: 0.5rem;--margin-y-sm-up: 1.75rem;border:0;border-radius:var(--rounded-default);max-width:92vw;width:100%;color:inherit;background-color:var(--white);box-shadow:var(--shadow-lg);padding:0;margin:var(--margin-y) auto;max-height:calc(100vh - var(--margin-y)*2);overflow:hidden;animation:dialog-show 150ms cubic-bezier(0.16, 1, 0.3, 1)}.awc-dialog-dialog[open]{display:flex;flex-direction:column}.awc-dialog-dialog:focus-visible{outline:none}.awc-dialog-dialog::backdrop{background-color:rgba(0,23,66,.5);animation:dialog-overlay 150ms cubic-bezier(0.16, 1, 0.3, 1)}@media(min-width: 576px){.awc-dialog-dialog{max-width:498px;max-height:calc(100vh - var(--margin-y-sm-up)*2);margin-top:var(--margin-y-sm-up);margin-bottom:var(--margin-y-sm-up)}}.awc-dialog-dialog--centered{margin-top:auto;margin-bottom:auto}.awc-dialog--scrollable{flex-grow:1;display:flex;flex-direction:column;overflow-y:hidden}.awc-dialog-header{flex-shrink:0;display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-1) var(--space-2) var(--space-3);border-bottom:1px solid var(--color-border-default)}.awc-dialog-title-container{flex:1 1 0%;padding:var(--space-2) 0}.awc-dialog-title{margin:0 !important;font-size:var(--fs-lg);font-weight:var(--fw-medium);line-height:20px}.awc-dialog-close-btn{position:relative;flex-shrink:0;padding:0;width:32px;height:32px;font-size:1.25rem;line-height:20px;display:inline-flex;align-items:center;justify-content:center}.awc-dialog-close-btn:not(:hover){background-color:var(--white);border-color:var(--white)}.awc-dialog-close-btn:focus{box-shadow:none}.awc-dialog-close-btn:focus-visible{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.awc-dialog-close-btn i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-dialog-close-btn i::before{line-height:inherit}.awc-dialog-body{flex-grow:1;overflow-y:auto;padding:var(--space-3);font-size:var(--fs-default)}.awc-dialog-footer{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;padding:var(--space-3);flex-wrap:wrap;gap:var(--space-2);border-top:1px solid var(--color-border-default)}.awc-dialog--sm .awc-dialog-dialog{max-width:298px}.awc-dialog--lg .awc-dialog-dialog{max-width:798px}.awc-dialog--fullscreen .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen .awc-dialog-dialog{max-width:100dvw}}@media(max-width: 576px){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 768px){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 992px){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 1200px){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-width:100dvw}}}@keyframes dialog-show{from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:scale(1)}}@keyframes dialog-overlay{from{opacity:0}to{opacity:1}}.awc-popover{display:block}.awc-popover-container{outline:none;background-clip:padding-box;background-color:var(--white);border-radius:var(--rounded-default);box-shadow:var(--shadow-md);max-width:276px;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--fs-default);overflow:visible;border:1px solid var(--color-border-default);animation-duration:400ms;animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);word-wrap:break-word}.awc-popover-container::backdrop{display:none}.awc-popover-container .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.awc-popover-container .arrow::before,.awc-popover-container .arrow::after{position:absolute;display:block;content:"";border-color:rgba(0,0,0,0);border-style:solid}.bs-popover-auto[x-placement^=top]{margin-bottom:0;animation-name:slide-down-and-fade}.bs-popover-auto[x-placement^=top]>.arrow{bottom:-0.5rem;margin-left:0;margin-right:0}.bs-popover-auto[x-placement^=right]{margin-left:0;animation-name:slide-left-and-fade}.bs-popover-auto[x-placement^=right]>.arrow{left:-0.5rem;margin-top:0;margin-bottom:0}.bs-popover-auto[x-placement^=bottom]{margin-top:0;animation-name:slide-up-and-fade}.bs-popover-auto[x-placement^=bottom]>.arrow{top:-0.5rem;margin-left:0;margin-right:0}.bs-popover-auto[x-placement^=left]{margin-right:0;animation-name:slide-right-and-fade}.bs-popover-auto[x-placement^=left]>.arrow{right:-0.5rem;margin-top:0;margin-bottom:0}@keyframes slide-up-and-fade{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-right-and-fade{from{opacity:0;transform:translateX(-2px)}to{opacity:1;transform:translateX(0)}}@keyframes slide-down-and-fade{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-left-and-fade{from{opacity:0;transform:translateX(2px)}to{opacity:1;transform:translateX(0)}}
|
1
|
+
:root{--blue: #007bff;--indigo: #6610f2;--purple: #6f42c1;--pink: #e83e8c;--red: #dc3545;--orange: #fd7e14;--yellow: #ffc107;--green: #28a745;--teal: #20c997;--cyan: #17a2b8;--white: #fff;--gray: #6c757d;--gray-dark: #343a40;--primary: #007bff;--secondary: #6c757d;--success: #28a745;--info: #17a2b8;--warning: #ffc107;--danger: #dc3545;--light: #f8f9fa;--dark: #343a40;--breakpoint-xs: 0;--breakpoint-sm: 576px;--breakpoint-md: 768px;--breakpoint-lg: 992px;--breakpoint-xl: 1200px;--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--white: #ffffff;--n300: #627291;--color-fg-default: #1c3158;--color-fg-secondary: var(--n300);--color-border-default: #d0d7de;--rounded-sm: 2px;--rounded-default: 4px;--rounded-md: 6px;--rounded-lg: 8px;--rounded-full: 9999px;--fs-sm: 0.8125rem;--fs-default: 0.875rem;--fs-lg: 1rem;--fs-xl: 1.25rem;--fw-default: 400;--fw-medium: 500;--fw-semibold: 600;--fw-bold: 700;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow-default: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--space-1: 0.25rem;--space-2: 0.5rem;--space-3: 1rem;--space-4: 1.5rem;--awc-autocomplete-control-min-height: calc(1.5em + 0.75rem + 2px);--awc-autocomplete-control-min-height-sm: calc(1.5em + 0.5rem + 2px);--awc-autocomplete-control-min-height-lg: calc(1.5em + 1rem + 2px);--awc-autocomplete-control-focus-color: #495057;--awc-autocomplete-control-focus-border-color: #80bdff;--awc-autocomplete-control-disabled-bg-color: #eef4ff;--awc-autocomplete-control-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);--awc-autocomplete-control-focus-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);--awc-autocomplete-input-min-width: 2rem;--awc-autocomplete-input-height: calc(calc(1.5em + 0.75rem + 2px) - (0.375rem * 2) - (1px * 2));--awc-autocomplete-input-bg-color: #fff;--awc-autocomplete-adornment-item-size: 1.5rem;--awc-autocomplete-listbox-font-size: 0.875rem;--awc-autocomplete-listbox-max-height: 256px;--awc-autocomplete-option-padding-x: 1rem;--awc-autocomplete-option-padding-y: 0.5rem;--awc-autocomplete-option-font-size: 0.875rem;--awc-autocomplete-option-lh: 1.25rem;--awc-autocomplete-option-hover-bg-color: #e9ecef;--awc-autocomplete-option-check-color: #38b57c;--awc-autocomplete-option-check-disabled-color: #afe1cb;--awc-autocomplete-group-header-padding-x: var(--awc-autocomplete-option-padding-x);--awc-autocomplete-group-header-padding-y: 0.25rem;--awc-autocomplete-group-header-color: #384b6e;--awc-autocomplete-group-header-font-size: 0.75rem;--awc-autocomplete-group-header-lh: 18px;--awc-autocomplete-group-header-fw: 500;--awc-autocomplete-tag-padding-x: 0.5rem;--awc-autocomplete-tag-btn-size: 1.25rem;--awc-autocomplete-tag-btn-bg-hover-color: var(--n300);--awc-autocomplete-tag-gap: 0.25rem;--awc-autocomplete-tag-max-width: 24rem;--awc-autocomplete-tag-bg-color: #e0e7f7;--awc-autocomplete-tag-border-color: #c4cdde;--awc-autocomplete-tag-border-radius: 0.125rem;--awc-autocomplete-tag-font-size: 0.75rem;--awc-autocomplete-blankslate-color: #384b6e;--awc-autocomplete-blankslate-padding-x: 1rem;--awc-autocomplete-blankslate-padding-y: 0.5rem;--awc-autocomplete-error-color: #c01303;--awc-autocomplete-input-height-sm: calc( calc(1.5em + 0.5rem + 2px) - (0.25rem * 2) - (1px * 2) );--awc-autocomplete-input-height-lg: calc( calc(1.5em + 1rem + 2px) - (0.5rem * 2) - (1px * 2) );--awc-autocomplete-tag-font-size-lg: 0.875rem;--awc-autocomplete-tag-gap-lg: 0.375rem}[hidden][hidden]{display:none !important}.awc-autocomplete{position:relative;display:block}.awc-autocomplete-control{display:flex;align-items:center;position:relative;cursor:text;padding-right:2.5rem;height:100%;min-height:var(--awc-autocomplete-control-min-height)}.awc-autocomplete:focus-within .awc-autocomplete-control{color:var(--awc-autocomplete-control-focus-color);background-color:#fff;border-color:var(--awc-autocomplete-control-focus-border-color);outline:0;box-shadow:var(--awc-autocomplete-control-focus-box-shadow)}.awc-autocomplete[disabled] .awc-autocomplete-control{cursor:default;background-color:var(--awc-autocomplete-control-disabled-bg-color)}.awc-autocomplete[disabled] .awc-autocomplete-clear-btn{background-color:var(--awc-autocomplete-control-disabled-bg-color);border-color:var(--awc-autocomplete-control-disabled-bg-color)}.awc-autocomplete-input{display:block;min-width:var(--awc-autocomplete-input-min-width);height:var(--awc-autocomplete-input-height);width:100%;margin:0;padding:0;flex:1 1 0%;font:inherit;letter-spacing:inherit;background:none;color:currentColor;border:0;outline:none;background-clip:padding-box}.awc-autocomplete-input::-moz-placeholder{color:#6c757d}.awc-autocomplete-input::placeholder{color:#6c757d}.awc-autocomplete-end-adornment{flex-shrink:0;position:absolute;right:.75rem;top:0;bottom:0;display:flex;align-items:center;margin-right:calc(0.75rem/2*-1)}.awc-autocomplete-adornment-btn,.awc-autocomplete-adornment-decorator{width:var(--awc-autocomplete-adornment-item-size);height:var(--awc-autocomplete-adornment-item-size);padding:0;display:flex;align-items:center;justify-content:center;border-radius:var(--rounded-sm);font-size:var(--fs-sm)}.awc-autocomplete-adornment-btn i,.awc-autocomplete-adornment-decorator i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-autocomplete-adornment-btn i::before,.awc-autocomplete-adornment-decorator i::before{line-height:inherit}.awc-autocomplete-clear-btn{display:none;background-color:var(--awc-autocomplete-input-bg-color);border-color:var(--awc-autocomplete-input-bg-color)}.awc-autocomplete-adornment-decorator{pointer-events:none}.awc-autocomplete-listbox{font-size:var(--awc-autocomplete-listbox-font-size);max-height:min(var(--awc-autocomplete-listbox-max-height), var(--awc-auto-size-height, var(--awc-autocomplete-listbox-max-height)));overflow:hidden auto;box-shadow:var(--shadow-md)}.awc-autocomplete-options{margin:0;padding:0}.awc-autocomplete-options .awc-autocomplete-group:not([hidden])~:not([hidden]){border-top:1px solid var(--color-border-default);margin-top:var(--space-1)}.awc-autocomplete-group-header{padding:var(--awc-autocomplete-group-header-padding-y) var(--awc-autocomplete-group-header-padding-x);line-height:var(--awc-autocomplete-group-header-lh);font-size:var(--awc-autocomplete-group-header-font-size);font-weight:var(--awc-autocomplete-group-header-fw);color:var(--awc-autocomplete-group-header-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awc-autocomplete-option-check{color:var(--awc-autocomplete-option-check-color);flex-shrink:0;visibility:hidden;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-xl)}.awc-autocomplete-option{position:relative;display:flex;align-items:flex-start;justify-content:space-between;-moz-column-gap:.25rem;column-gap:.25rem;padding:var(--awc-autocomplete-option-padding-y) var(--awc-autocomplete-option-padding-x);line-height:var(--awc-autocomplete-option-lh);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;font-size:var(--awc-autocomplete-option-font-size);white-space:initial}.awc-autocomplete-option[data-active],.awc-autocomplete-option:active,.awc-autocomplete-option .active{color:#16181b;background-color:var(--awc-autocomplete-option-hover-bg-color)}.awc-autocomplete-option.disabled{pointer-events:auto;cursor:not-allowed}.awc-autocomplete-option[data-active].disabled{color:#adb5bd}.awc-autocomplete-option.disabled .awc-autocomplete-option-check{color:var(--awc-autocomplete-option-check-disabled-color)}.awc-autocomplete-option:not(.disabled) .awc-autocomplete-option-description{color:var(--color-fg-secondary)}.awc-autocomplete-option[aria-selected=true] .awc-autocomplete-option-check{visibility:visible}.awc-autocomplete-option-content{flex:1 1 0%;display:flex;flex-direction:column;row-gap:2px;word-break:break-word}.awc-autocomplete-option-text{display:block}.awc-autocomplete-option-description{font-size:var(--fs-sm)}.awc-autocomplete-tag{display:flex;align-items:center;-moz-column-gap:.25rem;column-gap:.25rem;padding-inline:var(--awc-autocomplete-tag-padding-x);min-width:0;max-width:var(--awc-autocomplete-tag-max-width);height:var(--awc-autocomplete-input-height);vertical-align:middle;background-color:var(--awc-autocomplete-tag-bg-color);border-radius:var(--awc-autocomplete-tag-border-radius);border:1px solid var(--awc-autocomplete-tag-border-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}.awc-autocomplete-tag-text{display:block;line-height:var(--awc-autocomplete-tag-btn-size);font-size:var(--awc-autocomplete-tag-font-size);text-decoration:none;flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awc-autocomplete-tag-end-adornment{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;margin-right:calc(var(--awc-autocomplete-tag-padding-x)/2*-1)}.awc-autocomplete-tag-dismiss-btn{padding:0;display:inline-flex;align-items:center;justify-content:center;height:var(--awc-autocomplete-tag-btn-size);width:var(--awc-autocomplete-tag-btn-size);border-radius:var(--rounded-sm);font-size:var(--fs-lg)}.awc-autocomplete-tag-dismiss-btn:hover{background-color:var(--awc-autocomplete-tag-btn-bg-hover-color);color:#fff}.awc-autocomplete-tag-dismiss-btn[disabled]{background-color:rgba(0,0,0,0);color:inherit}.awc-autocomplete-tag-dismiss-btn i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-autocomplete-tag-dismiss-btn i::before{line-height:inherit}.awc-autocomplete-blankslate{display:none;text-align:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x);color:var(--awc-autocomplete-blankslate-color)}.awc-autocomplete-error{display:none;text-align:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x);color:var(--awc-autocomplete-error-color)}.awc-autocomplete-spinner{display:none;align-items:center;justify-content:center;padding:var(--awc-autocomplete-blankslate-padding-y) var(--awc-autocomplete-blankslate-padding-x)}.awc-autocomplete[open] .awc-autocomplete-listbox{display:block}.awc-autocomplete--selected.awc-autocomplete--clearable .awc-autocomplete-adornment-decorator{display:none}.awc-autocomplete--selected .awc-autocomplete-clear-btn{display:inline-flex}.awc-autocomplete[loading] .awc-autocomplete-options,.awc-autocomplete[loading] .awc-autocomplete-blankslate{display:none}.awc-autocomplete[loading] .awc-autocomplete-spinner{display:flex}.awc-autocomplete[no-options] .awc-autocomplete-options{display:none}.awc-autocomplete[no-options]:not([error]):not([loading]) .awc-autocomplete-blankslate{display:block}.awc-autocomplete[error] .awc-autocomplete-error{display:block}.awc-autocomplete[multiple] .awc-autocomplete-control{flex-wrap:wrap;gap:var(--awc-autocomplete-tag-gap)}.awc-autocomplete--sm{--awc-autocomplete-input-height: var(--awc-autocomplete-input-height-sm);--awc-autocomplete-tag-btn-size: 1rem}.awc-autocomplete--sm .awc-autocomplete-control{min-height:var(--awc-autocomplete-control-min-height-sm);padding-right:2.25rem}.awc-autocomplete--sm .awc-autocomplete-end-adornment{right:.5rem;margin-right:calc(0.5rem/2*-1)}.awc-autocomplete--lg{--awc-autocomplete-input-height: var(--awc-autocomplete-input-height-lg);--awc-autocomplete-tag-font-size: var(--awc-autocomplete-tag-font-size-lg);--awc-autocomplete-tag-gap: var(--awc-autocomplete-tag-gap-lg)}.awc-autocomplete--lg .awc-autocomplete-control{min-height:var(--awc-autocomplete-control-min-height-lg);padding-right:2.75rem}.awc-autocomplete--lg .awc-autocomplete-end-adornment{right:1rem;margin-right:calc(1rem/2*-1)}.awc-dialog-dialog{--margin-y: 0.5rem;--margin-y-sm-up: 1.75rem;border:0;border-radius:var(--rounded-default);max-width:92vw;width:100%;color:inherit;background-color:var(--white);box-shadow:var(--shadow-lg);padding:0;margin:var(--margin-y) auto;max-height:calc(100vh - var(--margin-y)*2);overflow:hidden;animation:dialog-show 150ms cubic-bezier(0.16, 1, 0.3, 1)}.awc-dialog-dialog[open]{display:flex;flex-direction:column}.awc-dialog-dialog:focus-visible{outline:none}.awc-dialog-dialog::backdrop{background-color:rgba(0,23,66,.5);animation:dialog-overlay 150ms cubic-bezier(0.16, 1, 0.3, 1)}@media(min-width: 576px){.awc-dialog-dialog{max-width:498px;max-height:calc(100vh - var(--margin-y-sm-up)*2);margin-top:var(--margin-y-sm-up);margin-bottom:var(--margin-y-sm-up)}}.awc-dialog-dialog--centered{margin-top:auto;margin-bottom:auto}.awc-dialog--scrollable{flex-grow:1;display:flex;flex-direction:column;overflow-y:hidden}.awc-dialog-header{flex-shrink:0;display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-1) var(--space-2) var(--space-3);border-bottom:1px solid var(--color-border-default)}.awc-dialog-title-container{flex:1 1 0%;padding:var(--space-2) 0}.awc-dialog-title{margin:0 !important;font-size:var(--fs-lg);font-weight:var(--fw-medium);line-height:20px}.awc-dialog-close-btn{position:relative;flex-shrink:0;padding:0;width:32px;height:32px;font-size:1.25rem;line-height:20px;display:inline-flex;align-items:center;justify-content:center}.awc-dialog-close-btn:not(:hover){background-color:var(--white);border-color:var(--white)}.awc-dialog-close-btn:focus{box-shadow:none}.awc-dialog-close-btn:focus-visible{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.awc-dialog-close-btn i{display:inline-flex;align-items:center;justify-content:center;font-style:normal}.awc-dialog-close-btn i::before{line-height:inherit}.awc-dialog-body{flex-grow:1;overflow-y:auto;padding:var(--space-3);font-size:var(--fs-default)}.awc-dialog-footer{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;padding:var(--space-3);flex-wrap:wrap;gap:var(--space-2);border-top:1px solid var(--color-border-default)}.awc-dialog--sm .awc-dialog-dialog{max-width:298px}.awc-dialog--lg .awc-dialog-dialog{max-width:798px}.awc-dialog--fullscreen .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen .awc-dialog-dialog{max-width:100dvw}}@media(max-width: 576px){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-sm-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 768px){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-md-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 992px){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-lg-down .awc-dialog-dialog{max-width:100dvw}}}@media(max-width: 1200px){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-width:100vw;box-shadow:none;border-radius:0;max-height:100vh;height:100%}@supports(max-height: 100dvh){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-height:100dvh}}@supports(max-width: 100dvw){.awc-dialog--fullscreen-xl-down .awc-dialog-dialog{max-width:100dvw}}}@keyframes dialog-show{from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:scale(1)}}@keyframes dialog-overlay{from{opacity:0}to{opacity:1}}.awc-popover{display:block}.awc-popover-container{outline:none;background-clip:padding-box;background-color:var(--white);border-radius:var(--rounded-default);box-shadow:var(--shadow-md);max-width:276px;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--fs-default);overflow:visible;border:1px solid var(--color-border-default);animation-duration:400ms;animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);word-wrap:break-word}.awc-popover-container::backdrop{display:none}.awc-popover-container .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.awc-popover-container .arrow::before,.awc-popover-container .arrow::after{position:absolute;display:block;content:"";border-color:rgba(0,0,0,0);border-style:solid}.bs-popover-auto[x-placement^=top]{margin-bottom:0;animation-name:slide-down-and-fade}.bs-popover-auto[x-placement^=top]>.arrow{bottom:-0.5rem;margin-left:0;margin-right:0}.bs-popover-auto[x-placement^=right]{margin-left:0;animation-name:slide-left-and-fade}.bs-popover-auto[x-placement^=right]>.arrow{left:-0.5rem;margin-top:0;margin-bottom:0}.bs-popover-auto[x-placement^=bottom]{margin-top:0;animation-name:slide-up-and-fade}.bs-popover-auto[x-placement^=bottom]>.arrow{top:-0.5rem;margin-left:0;margin-right:0}.bs-popover-auto[x-placement^=left]{margin-right:0;animation-name:slide-right-and-fade}.bs-popover-auto[x-placement^=left]>.arrow{right:-0.5rem;margin-top:0;margin-bottom:0}@keyframes slide-up-and-fade{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-right-and-fade{from{opacity:0;transform:translateX(-2px)}to{opacity:1;transform:translateX(0)}}@keyframes slide-down-and-fade{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-left-and-fade{from{opacity:0;transform:translateX(2px)}to{opacity:1;transform:translateX(0)}}
|
2
2
|
|
3
3
|
/*# sourceMappingURL=impulse_view_components.css.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/bootstrap/scss/_root.scss","../../../src/styles/variables.scss","../../../src/styles/base.scss","../../../src/elements/autocomplete/index.scss","../../../node_modules/bootstrap/scss/_variables.scss","../../../node_modules/bootstrap/scss/mixins/_text-truncate.scss","../../../node_modules/bootstrap/scss/mixins/_gradients.scss","../../../src/elements/dialog/index.scss","../../../node_modules/bootstrap/scss/mixins/_breakpoints.scss","../../../src/elements/popover/index.scss","../../../node_modules/bootstrap/scss/mixins/_reset-text.scss","../../../node_modules/bootstrap/scss/vendor/_rfs.scss"],"names":[],"mappings":"AAAA,MAGI,eAAA,CAAA,iBAAA,CAAA,iBAAA,CAAA,eAAA,CAAA,cAAA,CAAA,iBAAA,CAAA,iBAAA,CAAA,gBAAA,CAAA,eAAA,CAAA,eAAA,CAAA,aAAA,CAAA,eAAA,CAAA,oBAAA,CAIA,kBAAA,CAAA,oBAAA,CAAA,kBAAA,CAAA,eAAA,CAAA,kBAAA,CAAA,iBAAA,CAAA,gBAAA,CAAA,eAAA,CAIA,kBAAA,CAAA,sBAAA,CAAA,sBAAA,CAAA,sBAAA,CAAA,uBAAA,CAKF,kOAAA,CACA,6GAAA,CCjBF,MAEE,gBAAA,CAEA,eAAA,CAEA,2BAAA,CACA,iCAAA,CACA,+BAAA,CAGA,iBAAA,CACA,sBAAA,CACA,iBAAA,CACA,iBAAA,CACA,sBAAA,CAGA,kBAAA,CACA,sBAAA,CACA,aAAA,CACA,gBAAA,CAGA,iBAAA,CACA,gBAAA,CACA,kBAAA,CACA,cAAA,CAGA,0CAAA,CACA,+EAAA,CACA,6EAAA,CACA,+EAAA,CAGA,kBAAA,CACA,iBAAA,CACA,eAAA,CACA,iBAAA,CAGA,kEAAA,CACA,oEAAA,CACA,kEAAA,CACA,+CAAA,CACA,sDAAA,CACA,qDAAA,CACA,2EAAA,CACA,iFAAA,CACA,wCAAA,CACA,+FAAA,CACA,uCAAA,CACA,8CAAA,CACA,8CAAA,CACA,4CAAA,CACA,yCAAA,CACA,2CAAA,CACA,6CAAA,CACA,qCAAA,CACA,iDAAA,CACA,8CAAA,CACA,uDAAA,CACA,mFAAA,CACA,kDAAA,CACA,8CAAA,CACA,kDAAA,CACA,wCAAA,CACA,uCAAA,CACA,wCAAA,CACA,wCAAA,CACA,sDAAA,CACA,mCAAA,CACA,uCAAA,CACA,wCAAA,CACA,4CAAA,CACA,8CAAA,CACA,yCAAA,CACA,4CAAA,CACA,6CAAA,CACA,+CAAA,CACA,uCAAA,CAEA,kGAAA,CAIA,+FAAA,CAGA,6CAAA,CACA,uCAAA,CC3FF,iBACE,uBAAA,CCDF,kBACE,iBAAA,CACA,aAAA,CAGF,0BACE,YAAA,CACA,kBAAA,CACA,iBAAA,CACA,WAAA,CACA,oBAAA,CACA,WAAA,CACA,qDAAA,CAKF,yDACE,iDAAA,CACA,qBCZS,CDaT,+DAAA,CACA,SAAA,CAKE,2DAAA,CAKF,sDACE,cAAA,CACA,kEAAA,CAGF,wDACE,kEAAA,CACA,8DAAA,CAIJ,wBACE,aAAA,CACA,iDAAA,CACA,2CAAA,CACA,UAAA,CACA,QAAA,CACA,SAAA,CACA,WAAA,CACA,YAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,QAAA,CACA,YAAA,CACA,2BAAA,CAEA,0CACE,aC9CO,CD6CT,qCACE,aC9CO,CDkDX,gCACE,aAAA,CACA,iBAAA,CACA,YCkU4B,CDjU5B,KAAA,CACA,QAAA,CACA,YAAA,CACA,kBAAA,CACA,+BAAA,CAGF,sEAEE,iDAAA,CACA,kDAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,+BAAA,CACA,sBAAA,CAEA,0EACE,mBAAA,CACA,kBAAA,CACA,sBAAA,CACA,iBAAA,CAEA,0FACE,mBAAA,CAMN,4BACE,YAAA,CACA,uDAAA,CACA,mDAAA,CAGF,sCACE,mBAAA,CAGF,0BACE,mDAAA,CACA,
|
1
|
+
{"version":3,"sources":["../../../node_modules/bootstrap/scss/_root.scss","../../../src/styles/variables.scss","../../../src/styles/base.scss","../../../src/elements/autocomplete/index.scss","../../../node_modules/bootstrap/scss/_variables.scss","../../../node_modules/bootstrap/scss/mixins/_text-truncate.scss","../../../node_modules/bootstrap/scss/mixins/_gradients.scss","../../../src/elements/dialog/index.scss","../../../node_modules/bootstrap/scss/mixins/_breakpoints.scss","../../../src/elements/popover/index.scss","../../../node_modules/bootstrap/scss/mixins/_reset-text.scss","../../../node_modules/bootstrap/scss/vendor/_rfs.scss"],"names":[],"mappings":"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","file":"impulse_view_components.css"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@floating-ui/dom")):"function"==typeof define&&define.amd?define(["@floating-ui/dom"],e):e(("undefined"!=typeof globalThis?globalThis:t||self).FloatingUIDOM)}(this,function(g){"use strict";function t(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;0<=a;a--)(o=t[a])&&(r=(n<3?o(r):3<n?o(e,i,r):o(e,i))||r);return 3<n&&r&&Object.defineProperty(e,i,r),r}const e=Symbol.for("impulse");class r{constructor(t,e){this.ctor=t,this.name=e,this.map=new Map,this.ctor=t,this.name=e,this.initialize()}add(t){var e;null!=(e=this.value)&&e.add(t)}get value(){return this.map.get(this.name)}initialize(){Object.prototype.hasOwnProperty.call(this.ctor,e)||(this.ctor[e]=new Map),this.map=this.ctor[e],this.map.has(this.name)||this.map.set(this.name,new Set)}}function i({type:i=String}={}){return(t,e)=>{new r(t,"property").add({key:e,type:i})}}function s(e){return t=>{try{window.customElements.define(e,t),window[t.name]=customElements.get(e)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}}function o(){return(t,e)=>{new r(t,"target").add({key:e,multiple:!1})}}function I(){return(t,e)=>{new r(t,"target").add({key:e,multiple:!0})}}function R(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}const B=/(?:(.+?)?(?:\.(.+?))?(?:@(window|document))?->)?(.+)#(.+)?$/,K=["stop","prevent","self"],F=["capture","once","passive"];function j(t){var[,t,e,i,s,o]=t.trim().match(B)||[],e=(null==e?void 0:e.split("."))||[];return{eventName:t,eventModifiers:e.filter(t=>K.includes(t)),eventListenerOptions:function(t){var e={};for(const i of t)F.includes(i)&&(e[i]=!0);return e}(e),eventTarget:"window"===(t=i)?window:"document"===t?document:void 0,methodName:o,identifier:s}}const H={prevent:t=>Boolean(t.preventDefault()),stop:t=>Boolean(t.stopPropagation()),self:t=>t.target!==t.currentTarget};class n{constructor(){this.map=new Map}add(t,e){U(this.map,t).add(e)}delete(t,e){U(this.map,t).delete(e),0===(null==(e=this.get(t))?void 0:e.size)&&this.deleteKey(t)}deleteKey(t){this.map.delete(t)}clear(){this.map.clear()}getValuesForKey(t){t=this.map.get(t);return t?Array.from(t):[]}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values()).reduce((t,e)=>t.concat(Array.from(e)),[])}get(t){return this.map.get(t)}has(t,e){return!(null==(t=this.get(t))||!t.has(e))}}function U(t,e){let i=t.get(e);return i||(i=new Set,t.set(e,i)),i}class z{constructor(t,e){this.instance=t,this.eventTarget=e.eventTarget,this.eventName=e.eventName,this.eventModifiers=e.eventModifiers,this.eventListenerOptions=e.eventListenerOptions,this.methodName=e.methodName}start(){this.eventTarget.addEventListener(this.eventName,this,this.eventListenerOptions)}stop(){this.eventTarget.removeEventListener(this.eventName,this,this.eventListenerOptions)}handleEvent(t){var e=this.instance[this.methodName];if("function"==typeof e){for(const s of this.eventModifiers){var i=H[s];if(null!=i&&i(t))return}e.call(this.instance,t)}}}class W{constructor(t,e,i){this.element=t,this.delegate=e,this.observerOptions=i,this.elements=new Set,this.started=!1,this.element=t,this.delegate=e,this.observer=new MutationObserver(t=>this.processMutations(t)),this.observerOptions=i}start(){this.started||(this.started=!0,this.observer.observe(this.element,Object.assign({childList:!0,subtree:!0},this.observerOptions)),this.initializeElements())}stop(){this.started&&(this.observer.takeRecords(),this.observer.disconnect(),this.started=!1)}initializeElements(){for(const t of this.getMatchingElements())this.addElement(t)}processMutations(t){if(this.started)for(const e of t)"attributes"===e.type&&e.target instanceof Element?this.processAttributeChange(e.target,e.attributeName):"childList"===e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(t,e){this.elements.has(t)?this.delegate.elementAttributeChanged&&this.matchesElement(t)?this.delegate.elementAttributeChanged(t,e||""):this.removeElement(t):this.matchesElement(t)&&this.addElement(t)}processRemovedNodes(t){for(const i of Array.from(t)){var e=this.elementFromNode(i);if(e)for(const s of this.getMatchingElements(e))this.removeElement(s)}}processAddedNodes(t){for(const i of Array.from(t)){var e=this.elementFromNode(i);if(e)for(const s of this.getMatchingElements(e))this.addElement(s)}}getMatchingElements(t=this.element){var e,i;return(null==(i=(e=this.delegate).getMatchingElements)?void 0:i.call(e,t))||[]}matchesElement(t){var e,i;return null==(i=null==(i=(e=this.delegate).matchesElement)?void 0:i.call(e,t))||i}addElement(t){var e,i;!this.elements.has(t)&&this.elementIsActive(t)&&(this.elements.add(t),null!=(i=(e=this.delegate).elementConnected))&&i.call(e,t)}removeElement(t){var e,i;this.elements.has(t)&&(this.elements.delete(t),null!=(i=(e=this.delegate).elementDisconnected))&&i.call(e,t)}elementFromNode(t){if(t.nodeType===Node.ELEMENT_NODE)return t}elementIsActive(t){return t.isConnected===this.element.isConnected&&this.element.contains(t)}}class _{constructor(t,e,i){this.instance=t,this.attributeName=e,this.delegate=i,this.instance=t,this.attributeName=e,this.elementObserver=new W(this.instance,this,{attributeFilter:[this.attributeName]}),this.delegate=i}start(){this.elementObserver.start()}stop(){this.elementObserver.stop()}elementConnected(t){var e,i;null!=(i=(e=this.delegate).elementConnected)&&i.call(e,t)}elementDisconnected(t){var e,i;null!=(i=(e=this.delegate).elementDisconnected)&&i.call(e,t)}elementAttributeChanged(t,e){var i,s;e===this.attributeName&&null!=(s=(i=this.delegate).elementAttributeChanged)&&s.call(i,t,e)}getMatchingElements(t){var e=Array.from(t.querySelectorAll(`[${this.attributeName}]`));return t.hasAttribute(this.attributeName)&&e.unshift(t),e}matchesElement(t){return t.hasAttribute(this.attributeName)}}class ${constructor(t,e,i){this.element=t,this.attributeName=e,this.delegate=i,this.element=t,this.attributeName=e,this.delegate=i,this.elementTokens=new n}start(){this.attributeObserver||(this.attributeObserver=new _(this.element,this.attributeName,this),this.attributeObserver.start())}stop(){this.attributeObserver&&(this.attributeObserver.stop(),this.attributeObserver=void 0)}elementConnected(t){this.readTokensForElement(t).forEach(t=>this.tokenMatched(t))}elementDisconnected(t){this.elementTokens.getValuesForKey(t).forEach(t=>this.tokenUnmatched(t))}elementAttributeChanged(t){var[t,e]=function(t,e){const i=new Set(t.map(({content:t})=>t)),s=new Set(e.map(({content:t})=>t)),o=e.filter(t=>!i.has(t.content)),n=t.filter(t=>!s.has(t.content));return[o,n]}(this.elementTokens.getValuesForKey(t),this.readTokensForElement(t));e.forEach(t=>this.tokenUnmatched(t)),t.forEach(t=>this.tokenMatched(t))}tokenMatched(t){var e,i;this.elementTokens.add(t.element,t),null!=(i=(e=this.delegate).tokenMatched)&&i.call(e,t)}tokenUnmatched(t){var e,i;this.elementTokens.delete(t.element,t),null!=(i=(e=this.delegate).tokenUnmatched)&&i.call(e,t)}readTokensForElement(t){var e,i,s=t.getAttribute(this.attributeName)||"";return e=t,i=this.attributeName,s.trim().split(/\s+/).filter(t=>t.length).map(t=>({element:e,attributeName:i,content:t}))}}class J{constructor(t){this.instance=t,this.scopedTarget=t=>t.closest(this.identifier)===this.instance,this.instance=t}findTarget(t){return this.instance.matches(t)?this.instance:this.getElements(t).find(this.scopedTarget)||null}findTargets(t){return[...this.instance.matches(t)?[this.instance]:[],...this.getElements(t).filter(this.scopedTarget)]}getElements(t){return Array.from(this.instance.querySelectorAll(t))}get identifier(){return this.instance.identifier}}class X{constructor(t){this.instance=t,this.eventListenerMap=new n,this.instance=t,this.scope=new J(this.instance)}start(){this.tokenListObserver||(this.tokenListObserver=new $(this.instance,"data-action",this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.destroyActions(),this.tokenListObserver.stop(),this.tokenListObserver=void 0)}tokenMatched({content:t,element:e}){var t=j(t),{identifier:i,eventTarget:s}=t,t=R(t,["identifier","eventTarget"]);t.eventName&&i===this.identifier&&t.methodName&&this.scope.scopedTarget(e)&&(i=new z(this.instance,Object.assign(Object.assign({},t),{eventTarget:s||e})),this.eventListenerMap.add(e,i),i.start())}tokenUnmatched({element:t}){var e=this.eventListenerMap.get(t);if(e)for(const i of e)i.stop(),this.eventListenerMap.delete(t,i)}destroyActions(){var t;for(const e of this.eventListenerMap.keys)null!=(t=this.tokenListObserver)&&t.elementDisconnected(e)}get identifier(){return this.instance.identifier}}const Y=/(-|_|\.|\s)+(.)?/g,G=/(^|\/)([A-Z])/g,Z=/[ _]/g,Q=/([a-z\d])([A-Z])/g;function tt(t){return t.replace(Q,"$1_$2").toLowerCase().replace(Z,"-")}function a(t,e=""){if(!t)return e;try{return JSON.parse(t)}catch(t){return e}}class et{constructor(t){this.instance=t,this.instance=t,this.store=new r(Object.getPrototypeOf(this.instance),"property")}start(){for(var[{key:t,type:e}]of this.properties.entries())this.initializeProperty(t,e)}stop(){}initializeProperty(t,e){var i=tt(t),s=this.instance[t],e=Object.assign({configurable:!0},function(e,i,t){switch(t){case Number:return{get:()=>{var t;return Number((null==(t=e.getAttribute(i))?void 0:t.replace(/_/g,""))||0)},set:t=>e.setAttribute(i,(t||0).toString())};case Boolean:return{get:()=>e.hasAttribute(i)&&"false"!==e.getAttribute(i),set:t=>{t?e.setAttribute(i,""):e.removeAttribute(i)}};case Array:return{get:()=>JSON.parse(e.getAttribute(i)||"[]"),set:t=>e.setAttribute(i,JSON.stringify(t)||"[]")};case Object:return{get:()=>JSON.parse(e.getAttribute(i)||"{}"),set:t=>e.setAttribute(i,JSON.stringify(t)||"{}")};default:return{get:()=>e.getAttribute(i)||"",set:t=>e.setAttribute(i,t||"")}}}(this.instance,i,e));Object.defineProperty(this.instance,t,e),this.instance.hasAttribute(i)||null!=(t=e.set)&&t.call(e,s)}get properties(){return this.store.value}}class it{constructor(t){this.instance=t,this.instance=t,this.store=new r(Object.getPrototypeOf(this.instance),"target"),this.scope=new J(this.instance),this.targetsByKey=new n}start(){for(const t of this.keys)this.defineProperty(t,this.isKeyMultiple(t)?[]:null);this.tokenListObserver||(this.tokenListObserver=new $(this.instance,"data-target",this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.destroyTargets(),this.tokenListObserver.stop(),this.tokenListObserver=void 0)}tokenMatched({content:t,element:e}){var[t,i]=t.split(".");if(this.isValidIdKeyPair(t,i)&&!this.targetsByKey.has(i,e)&&this.scope.scopedTarget(e)){this.targetsByKey.add(i,e);var s=this.targetsByKey.getValuesForKey(i);if(1<s.length&&!this.isKeyMultiple(i))throw new Error(`
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@floating-ui/dom")):"function"==typeof define&&define.amd?define(["@floating-ui/dom"],e):e(("undefined"!=typeof globalThis?globalThis:t||self).FloatingUIDOM)}(this,function(y){"use strict";function t(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;0<=a;a--)(o=t[a])&&(r=(n<3?o(r):3<n?o(e,i,r):o(e,i))||r);return 3<n&&r&&Object.defineProperty(e,i,r),r}const e=Symbol.for("impulse");class r{constructor(t,e){this.ctor=t,this.name=e,this.map=new Map,this.ctor=t,this.name=e,this.initialize()}add(t){var e;null!=(e=this.value)&&e.add(t)}get value(){return this.map.get(this.name)}initialize(){Object.prototype.hasOwnProperty.call(this.ctor,e)||(this.ctor[e]=new Map),this.map=this.ctor[e],this.map.has(this.name)||this.map.set(this.name,new Set)}}function i({type:i=String}={}){return(t,e)=>{new r(t,"property").add({key:e,type:i})}}function s(e){return t=>{try{window.customElements.define(e,t),window[t.name]=customElements.get(e)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}}function o(){return(t,e)=>{new r(t,"target").add({key:e,multiple:!1})}}function I(){return(t,e)=>{new r(t,"target").add({key:e,multiple:!0})}}function B(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}const R=/(?:(.+?)?(?:\.(.+?))?(?:@(window|document))?->)?(.+)#(.+)?$/,K=["stop","prevent","self"],z=["capture","once","passive"];function F(t){var[,t,e,i,s,o]=t.trim().match(R)||[],e=(null==e?void 0:e.split("."))||[];return{eventName:t,eventModifiers:e.filter(t=>K.includes(t)),eventListenerOptions:function(t){var e={};for(const i of t)z.includes(i)&&(e[i]=!0);return e}(e),eventTarget:"window"===(t=i)?window:"document"===t?document:void 0,methodName:o,identifier:s}}const j={prevent:t=>Boolean(t.preventDefault()),stop:t=>Boolean(t.stopPropagation()),self:t=>t.target!==t.currentTarget};class n{constructor(){this.map=new Map}add(t,e){H(this.map,t).add(e)}delete(t,e){H(this.map,t).delete(e),0===(null==(e=this.get(t))?void 0:e.size)&&this.deleteKey(t)}deleteKey(t){this.map.delete(t)}clear(){this.map.clear()}getValuesForKey(t){t=this.map.get(t);return t?Array.from(t):[]}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values()).reduce((t,e)=>t.concat(Array.from(e)),[])}get(t){return this.map.get(t)}has(t,e){return!(null==(t=this.get(t))||!t.has(e))}}function H(t,e){let i=t.get(e);return i||(i=new Set,t.set(e,i)),i}class U{constructor(t,e){this.instance=t,this.eventTarget=e.eventTarget,this.eventName=e.eventName,this.eventModifiers=e.eventModifiers,this.eventListenerOptions=e.eventListenerOptions,this.methodName=e.methodName}start(){this.eventTarget.addEventListener(this.eventName,this,this.eventListenerOptions)}stop(){this.eventTarget.removeEventListener(this.eventName,this,this.eventListenerOptions)}handleEvent(t){var e=this.instance[this.methodName];if("function"==typeof e){for(const s of this.eventModifiers){var i=j[s];if(null!=i&&i(t))return}e.call(this.instance,t)}}}class _{constructor(t,e,i){this.element=t,this.delegate=e,this.observerOptions=i,this.elements=new Set,this.started=!1,this.element=t,this.delegate=e,this.observer=new MutationObserver(t=>this.processMutations(t)),this.observerOptions=i}start(){this.started||(this.started=!0,this.observer.observe(this.element,Object.assign({childList:!0,subtree:!0},this.observerOptions)),this.initializeElements())}stop(){this.started&&(this.observer.takeRecords(),this.observer.disconnect(),this.started=!1)}initializeElements(){for(const t of this.getMatchingElements())this.addElement(t)}processMutations(t){if(this.started)for(const e of t)"attributes"===e.type&&e.target instanceof Element?this.processAttributeChange(e.target,e.attributeName):"childList"===e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(t,e){this.elements.has(t)?this.delegate.elementAttributeChanged&&this.matchesElement(t)?this.delegate.elementAttributeChanged(t,e||""):this.removeElement(t):this.matchesElement(t)&&this.addElement(t)}processRemovedNodes(t){for(const i of Array.from(t)){var e=this.elementFromNode(i);if(e)for(const s of this.getMatchingElements(e))this.removeElement(s)}}processAddedNodes(t){for(const i of Array.from(t)){var e=this.elementFromNode(i);if(e)for(const s of this.getMatchingElements(e))this.addElement(s)}}getMatchingElements(t=this.element){var e,i;return(null==(i=(e=this.delegate).getMatchingElements)?void 0:i.call(e,t))||[]}matchesElement(t){var e,i;return null==(i=null==(i=(e=this.delegate).matchesElement)?void 0:i.call(e,t))||i}addElement(t){var e,i;!this.elements.has(t)&&this.elementIsActive(t)&&(this.elements.add(t),null!=(i=(e=this.delegate).elementConnected))&&i.call(e,t)}removeElement(t){var e,i;this.elements.has(t)&&(this.elements.delete(t),null!=(i=(e=this.delegate).elementDisconnected))&&i.call(e,t)}elementFromNode(t){if(t.nodeType===Node.ELEMENT_NODE)return t}elementIsActive(t){return t.isConnected===this.element.isConnected&&this.element.contains(t)}}class W{constructor(t,e,i){this.instance=t,this.attributeName=e,this.delegate=i,this.instance=t,this.attributeName=e,this.elementObserver=new _(this.instance,this,{attributeFilter:[this.attributeName]}),this.delegate=i}start(){this.elementObserver.start()}stop(){this.elementObserver.stop()}elementConnected(t){var e,i;null!=(i=(e=this.delegate).elementConnected)&&i.call(e,t)}elementDisconnected(t){var e,i;null!=(i=(e=this.delegate).elementDisconnected)&&i.call(e,t)}elementAttributeChanged(t,e){var i,s;e===this.attributeName&&null!=(s=(i=this.delegate).elementAttributeChanged)&&s.call(i,t,e)}getMatchingElements(t){var e=Array.from(t.querySelectorAll(`[${this.attributeName}]`));return t.hasAttribute(this.attributeName)&&e.unshift(t),e}matchesElement(t){return t.hasAttribute(this.attributeName)}}class ${constructor(t,e,i){this.element=t,this.attributeName=e,this.delegate=i,this.element=t,this.attributeName=e,this.delegate=i,this.elementTokens=new n}start(){this.attributeObserver||(this.attributeObserver=new W(this.element,this.attributeName,this),this.attributeObserver.start())}stop(){this.attributeObserver&&(this.attributeObserver.stop(),this.attributeObserver=void 0)}elementConnected(t){this.readTokensForElement(t).forEach(t=>this.tokenMatched(t))}elementDisconnected(t){this.elementTokens.getValuesForKey(t).forEach(t=>this.tokenUnmatched(t))}elementAttributeChanged(t){var[t,e]=function(t,e){const i=new Set(t.map(({content:t})=>t)),s=new Set(e.map(({content:t})=>t)),o=e.filter(t=>!i.has(t.content)),n=t.filter(t=>!s.has(t.content));return[o,n]}(this.elementTokens.getValuesForKey(t),this.readTokensForElement(t));e.forEach(t=>this.tokenUnmatched(t)),t.forEach(t=>this.tokenMatched(t))}tokenMatched(t){var e,i;this.elementTokens.add(t.element,t),null!=(i=(e=this.delegate).tokenMatched)&&i.call(e,t)}tokenUnmatched(t){var e,i;this.elementTokens.delete(t.element,t),null!=(i=(e=this.delegate).tokenUnmatched)&&i.call(e,t)}readTokensForElement(t){var e,i,s=t.getAttribute(this.attributeName)||"";return e=t,i=this.attributeName,s.trim().split(/\s+/).filter(t=>t.length).map(t=>({element:e,attributeName:i,content:t}))}}class J{constructor(t){this.instance=t,this.scopedTarget=t=>t.closest(this.identifier)===this.instance,this.instance=t}findTarget(t){return this.instance.matches(t)?this.instance:this.getElements(t).find(this.scopedTarget)||null}findTargets(t){return[...this.instance.matches(t)?[this.instance]:[],...this.getElements(t).filter(this.scopedTarget)]}getElements(t){return Array.from(this.instance.querySelectorAll(t))}get identifier(){return this.instance.identifier}}class X{constructor(t){this.instance=t,this.eventListenerMap=new n,this.instance=t,this.scope=new J(this.instance)}start(){this.tokenListObserver||(this.tokenListObserver=new $(this.instance,"data-action",this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.destroyActions(),this.tokenListObserver.stop(),this.tokenListObserver=void 0)}tokenMatched({content:t,element:e}){var t=F(t),{identifier:i,eventTarget:s}=t,t=B(t,["identifier","eventTarget"]);t.eventName&&i===this.identifier&&t.methodName&&this.scope.scopedTarget(e)&&(i=new U(this.instance,Object.assign(Object.assign({},t),{eventTarget:s||e})),this.eventListenerMap.add(e,i),i.start())}tokenUnmatched({element:t}){var e=this.eventListenerMap.get(t);if(e)for(const i of e)i.stop(),this.eventListenerMap.delete(t,i)}destroyActions(){var t;for(const e of this.eventListenerMap.keys)null!=(t=this.tokenListObserver)&&t.elementDisconnected(e)}get identifier(){return this.instance.identifier}}const Y=/(-|_|\.|\s)+(.)?/g,G=/(^|\/)([A-Z])/g,Z=/[ _]/g,Q=/([a-z\d])([A-Z])/g;function tt(t){return t.replace(Q,"$1_$2").toLowerCase().replace(Z,"-")}function a(t,e=""){if(!t)return e;try{return JSON.parse(t)}catch(t){return e}}class et{constructor(t){this.instance=t,this.instance=t,this.store=new r(Object.getPrototypeOf(this.instance),"property")}start(){for(var[{key:t,type:e}]of this.properties.entries())this.initializeProperty(t,e)}stop(){}initializeProperty(t,e){var i=tt(t),s=this.instance[t],e=Object.assign({configurable:!0},function(e,i,t){switch(t){case Number:return{get:()=>{var t;return Number((null==(t=e.getAttribute(i))?void 0:t.replace(/_/g,""))||0)},set:t=>e.setAttribute(i,(t||0).toString())};case Boolean:return{get:()=>e.hasAttribute(i)&&"false"!==e.getAttribute(i),set:t=>{t?e.setAttribute(i,""):e.removeAttribute(i)}};case Array:return{get:()=>JSON.parse(e.getAttribute(i)||"[]"),set:t=>e.setAttribute(i,JSON.stringify(t)||"[]")};case Object:return{get:()=>JSON.parse(e.getAttribute(i)||"{}"),set:t=>e.setAttribute(i,JSON.stringify(t)||"{}")};default:return{get:()=>e.getAttribute(i)||"",set:t=>e.setAttribute(i,t||"")}}}(this.instance,i,e));Object.defineProperty(this.instance,t,e),this.instance.hasAttribute(i)||null!=(t=e.set)&&t.call(e,s)}get properties(){return this.store.value}}class it{constructor(t){this.instance=t,this.instance=t,this.store=new r(Object.getPrototypeOf(this.instance),"target"),this.scope=new J(this.instance),this.targetsByKey=new n}start(){for(const t of this.keys)this.defineProperty(t,this.isKeyMultiple(t)?[]:null);this.tokenListObserver||(this.tokenListObserver=new $(this.instance,"data-target",this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.destroyTargets(),this.tokenListObserver.stop(),this.tokenListObserver=void 0)}tokenMatched({content:t,element:e}){var[t,i]=t.split(".");if(this.isValidIdKeyPair(t,i)&&!this.targetsByKey.has(i,e)&&this.scope.scopedTarget(e)){this.targetsByKey.add(i,e);var s=this.targetsByKey.getValuesForKey(i);if(1<s.length&&!this.isKeyMultiple(i))throw new Error(`
|
2
2
|
Multiple "${i}" targets in the "${t}" element were defined using the @target() decorator.
|
3
3
|
Please use the @targets() decorator instead if you want to define multiple targets for the same key.
|
4
4
|
Learn more about the @targets() decorator: https://ambiki.github.io/impulse/reference/targets.html#multiple-targets
|
5
|
-
`);this.defineProperty(i,this.isKeyMultiple(i)?s:e),this.invokeCallback(i,e,"connected")}}tokenUnmatched({content:t,element:e}){var[t,i]=t.split(".");this.isValidIdKeyPair(t,i)&&this.targetsByKey.has(i,e)&&(this.targetsByKey.delete(i,e),this.invokeCallback(i,e,"disconnected"),this.defineProperty(i,this.isKeyMultiple(i)?this.targetsByKey.getValuesForKey(i):null))}destroyTargets(){for(const t of this.targetsByKey.keys)this.targetsByKey.getValuesForKey(t).forEach(t=>{var e;return null==(e=this.tokenListObserver)?void 0:e.elementDisconnected(t)})}defineProperty(t,e){Object.defineProperty(this.instance,t,{configurable:!0,get:()=>e})}isValidIdKeyPair(t,e){return!(!e||t!==this.identifier||!this.keys.includes(e))}invokeCallback(t,e,i){i=this.instance[""+t+((t=i).charAt(0).toUpperCase()+t.slice(1))];"function"==typeof i&&i.call(this.instance,e)}isKeyMultiple(e){var t;return null!=(t=null==(t=Array.from(this.targetKeys).find(t=>t.key===e))?void 0:t.multiple)&&t}get keys(){return Array.from(this.targetKeys).map(({key:t})=>t)}get targetKeys(){return this.store.value}get identifier(){return this.instance.identifier}}class l extends HTMLElement{constructor(){super(...arguments),this.property=new et(this),this.target=new it(this),this.action=new X(this),this._started=!1}async connectedCallback(){await new Promise(t=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>t()):t()}),customElements.upgrade(this),this.property.start(),await this._resolveUndefinedElements(),this.target.start(),this.action.start(),this._started=!0,this.setAttribute("data-impulse-element",""),this.connected()}static get observedAttributes(){var t=new r(this.prototype,"property");return Array.from(t.value).map(({key:t})=>tt(t))}attributeChangedCallback(t,e,i){if(this._started&&e!==i){const n=t.replace(Y,(t,e,i)=>i?i.toUpperCase():"").replace(G,t=>t.toLowerCase());var s=this[n+"Changed"];if("function"==typeof s){var o=new r(Object.getPrototypeOf(this),"property"),o=Array.from(o.value).map(({key:t,type:e})=>({key:t,type:e})).find(({key:t})=>t===n);if(!o)throw new Error(`Unregistered attribute changed: ${t}. Register the attribute using the @property() decorator.`);var{newValue:t,oldValue:i}=function(t,e,i){switch(i){case Boolean:var s=t=>null!==t&&"false"!==t;return{newValue:s(t),oldValue:s(e)};case Number:s=t=>null==t?void 0:t.replace(/_/g,"");return{newValue:Number(s(t)),oldValue:Number(s(e))};case Array:return{newValue:a(t,[]),oldValue:a(e,[])};case Object:return{newValue:a(t,{}),oldValue:a(e,{})};default:return{newValue:t,oldValue:e}}}(i,e,o.type);t!==i&&s.call(this,t,i)}}}disconnectedCallback(){this.disconnected(),this.action.stop(),this.target.stop(),this.property.stop(),this._started=!1}connected(){}disconnected(){}emit(t,e={}){var{target:i=this,prefix:s=this.identifier,detail:o={}}=e,e=R(e,["target","prefix","detail"]),s=new CustomEvent(s?s+":"+t:t,Object.assign({bubbles:!0,composed:!0,detail:o},e));return i.dispatchEvent(s),s}get identifier(){return this.tagName.toLowerCase()}_resolveUndefinedElements(){var t=Array.from(this.querySelectorAll(":not(:defined)")).map(t=>customElements.whenDefined(t.localName));return Promise.all(t)}}function st(t){return Number(t.replace(/[^-\d.]/g,""))}let h=class extends l{constructor(){super(...arguments),this.placement="bottom",this.active=!1,this.strategy="fixed",this.distance=0,this.skidding=0,this.flip=!0,this.flipPadding=0,this.fallbackPlacements=[],this.fallbackStrategy="bestFit",this.shift=!1,this.shiftPadding=0}connected(){this.start()}disconnected(){this.stop()}async anchorIdChanged(t){await this.stop(),t&&this.anchorElement&&this.start()}async activeChanged(t){t?this.start():await this.stop()}start(){this.anchorElement&&(this.style.position=this.strategy,this.style.top="0px",this.style.left="0px",this.cleanup=g.autoUpdate(this.anchorElement,this,this.reposition.bind(this)))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,requestAnimationFrame(()=>t())):t()})}async reposition(){if(this.active&&this.anchorElement){var t=[g.offset({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(g.size({apply:({rects:t})=>{var e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.style.width=e?t.reference.width+"px":"",this.style.height=i?t.reference.height+"px":""}})):(this.style.width="",this.style.height=""),this.flip&&t.push(g.flip({fallbackPlacements:this.fallbackPlacements.length?this.fallbackPlacements:void 0,fallbackStrategy:this.fallbackStrategy,padding:this.flipPadding})),this.shift&&t.push(g.shift({padding:this.shiftPadding})),this.arrowElement&&t.push(g.arrow({element:this.arrowElement,padding:this._arrowPadding}));const{x:e,y:i,placement:s,strategy:o,middlewareData:n}=await g.computePosition(this.anchorElement,this,{placement:this.placement,middleware:t,strategy:this.strategy});if(Object.assign(this.style,{left:e+"px",top:i+"px",position:o}),n.arrow&&this.arrowElement){const{x:e,y:i}=n.arrow;Object.assign(this.arrowElement.style,{left:"number"==typeof e?e+"px":"",top:"number"==typeof i?i+"px":""})}this.setAttribute("x-placement",s)}}get anchorElement(){return document.getElementById(this.anchorId)}get arrowElement(){return this.querySelector("[data-arrow]")}get _arrowPadding(){return"number"==typeof this.arrowPadding?this.arrowPadding:st(getComputedStyle(this).borderRadius)||2}};t([i()],h.prototype,"anchorId",void 0),t([i()],h.prototype,"placement",void 0),t([i({type:Boolean})],h.prototype,"active",void 0),t([i()],h.prototype,"strategy",void 0),t([i({type:Number})],h.prototype,"distance",void 0),t([i({type:Number})],h.prototype,"skidding",void 0),t([i()],h.prototype,"sync",void 0),t([i({type:Boolean})],h.prototype,"flip",void 0),t([i({type:Number})],h.prototype,"flipPadding",void 0),t([i({type:Array})],h.prototype,"fallbackPlacements",void 0),t([i()],h.prototype,"fallbackStrategy",void 0),t([i({type:Boolean})],h.prototype,"shift",void 0),t([i({type:Number})],h.prototype,"shiftPadding",void 0),t([i({type:Number})],h.prototype,"arrowPadding",void 0),h=t([s("awc-anchor")],h);var ot=0;function nt(){return ot+=1,`ambiki-${Math.random().toString().slice(2,6)}-`+ot}function rt(t){return!t.hasAttribute("disabled")&&"true"!==t.getAttribute("aria-disabled")}var at=!!navigator.userAgent.match(/Macintosh/),lt=class{input;list;multiple;isMouseMoving=!1;constructor(t,e,{multiple:i=!1}={}){this.input=t,this.list=e,this.multiple=i,this.list.id||(this.list.id=nt()),this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.multiple&&this.input.setAttribute("aria-multiselectable","true"),this.input.setAttribute("role","combobox"),this.input.setAttribute("aria-haspopup","listbox"),this.input.setAttribute("aria-autocomplete","list"),this.list.setAttribute("role","listbox"),this.onKeydown=this.onKeydown.bind(this),this.onClick=this.onClick.bind(this),this.onListMouseover=this.onListMouseover.bind(this),this.onListMousemove=this.onListMousemove.bind(this)}start(){this.isMouseMoving=!1,this.input.setAttribute("aria-expanded","true"),this.input.setAttribute("aria-controls",this.list.id),this.input.addEventListener("keydown",this.onKeydown),this.list.addEventListener("click",this.onClick),this.list.addEventListener("mouseover",this.onListMouseover),this.list.addEventListener("mousemove",this.onListMousemove),this.initializeOptions()}stop(){this.isMouseMoving=!1,this.input.setAttribute("aria-expanded","false"),this.input.removeAttribute("aria-controls"),this.input.removeEventListener("keydown",this.onKeydown),this.list.removeEventListener("click",this.onClick),this.list.removeEventListener("mouseover",this.onListMouseover),this.list.removeEventListener("mousemove",this.onListMousemove),this.deselectAll(),this.deactivate()}onKeydown(t){if(this.isMouseMoving=!1,!(t.shiftKey||t.metaKey||t.altKey||!at&&t.ctrlKey))switch(t.key){case"Enter":case"Tab":this.activeOption&&rt(this.activeOption)&&(t.preventDefault(),t.stopPropagation(),this.activeOption.click());break;case"Escape":this.deactivate();break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.activeOption?this.move(1):this.activate(this.visibleOptions[0],{scroll:!0});break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),this.activeOption?this.move(-1):this.activate(this.visibleOptions[this.visibleOptions.length-1],{scroll:!0});break;case"Home":t.preventDefault(),t.stopPropagation(),this.activate(this.visibleOptions[0],{scroll:!0});break;case"End":t.preventDefault(),t.stopPropagation(),this.activate(this.visibleOptions[this.visibleOptions.length-1],{scroll:!0});break;default:t.ctrlKey||this.deactivate()}}onClick(t){t=c(t.target);t&&rt(t)&&(this.multiple&&this.isSelected(t)?this.deselect(t):this.select(t),t.dispatchEvent(new CustomEvent("combobox:commit",{bubbles:!0})))}onListMouseover(t){var e;this.isMouseMoving?(e=c(t.target))&&this.activate(e):t.preventDefault()}onListMousemove(t){!this.isMouseMoving&&(this.isMouseMoving=!0,t=c(t.target))&&this.activate(t)}select(t){if(this.multiple)t.setAttribute("aria-selected","true");else for(var e of this.options)e.setAttribute("aria-selected",(e===t).toString())}deselect(t){t.setAttribute("aria-selected","false")}deselectAll(){for(var t of this.options)this.deselect(t)}activate(t,{scroll:e=!1}={}){for(var i of this.options)i.id===t.id?(i.setAttribute("data-active",""),this.input.setAttribute("aria-activedescendant",i.id),e&&i.scrollIntoView({block:"nearest"})):i.removeAttribute("data-active")}deactivate(){this.input.removeAttribute("aria-activedescendant");for(var t of Array.from(this.list.querySelectorAll('[role="option"][data-active]')))t.removeAttribute("data-active")}isSelected(t){return"true"===t.getAttribute("aria-selected")}get options(){return Array.from(this.list.querySelectorAll('[role="option"]'))}get visibleOptions(){return this.options.filter(ht)}get activeOption(){return this.list.querySelector("[data-active]")}move(t){this.activeOption&&(t=function(t,e,i){let s=t.indexOf(e),o=(s===t.length-1&&1===i&&(s=-1),1===i?0:t.length-1);return t[o=e&&0<=s&&0<=(e=s+i)&&e<t.length?e:o]}(this.visibleOptions,this.activeOption,t),this.activate(t,{scroll:!0}))}initializeOptions(){for(var t of this.options)t.setAttribute("tabindex","-1"),t.id||(t.id=nt()),t.hasAttribute("aria-selected")||this.deselect(t)}};function c(t){return t&&t.closest('[role="option"]')||!1}function ht(t){return!t.hidden&&!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(0<t.offsetWidth||0<t.offsetHeight)}function ct(t,e){void 0===e&&(e=!0);var i=null==t||null==(i=t.getAttribute)?void 0:i.call(t,"inert");return""===i||"true"===i||e&&t&&ct(t.parentNode)}function dt(t){var e=(t=t.getBoundingClientRect()).width,t=t.height;return 0===e&&0===t}function ut(t,e){var i=e.displayCheck,s=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return 1;if(e=d.call(t,"details>summary:first-of-type")?t.parentElement:t,d.call(e,"details:not([open]) *"))return 1;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return dt(t)}else{if("function"==typeof s){for(e=t;t;){var o=t.parentElement,n=u(t);if(o&&!o.shadowRoot&&!0===s(o))return dt(t);t=t.assignedSlot||(o||n===t.ownerDocument?o:n.host)}t=e}if(function(t){var e,i=t&&u(t),s=null==(e=i)?void 0:e.host,o=!1;if(i&&i!==t)for(o=!!(null!=(e=s)&&null!=(e=e.ownerDocument)&&e.contains(s)||null!=t&&null!=(e=t.ownerDocument)&&e.contains(t));!o&&s;)var n,o=!(null==(n=s=null==(n=i=u(s))?void 0:n.host)||null==(n=n.ownerDocument)||!n.contains(s));return o}(t))return!t.getClientRects().length;if("legacy-full"!==i)return 1}}var pt="undefined"==typeof Element,d=pt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!pt&&Element.prototype.getRootNode?function(t){var e;return null==t||null==(e=t.getRootNode)?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},mt=function(t,e){var i;return!(e.disabled||ct(e)||"INPUT"===(i=e).tagName&&"hidden"===i.type||ut(e,t)||"DETAILS"===(i=e).tagName&&Array.prototype.slice.apply(i.children).some(function(t){return"SUMMARY"===t.tagName})||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var s=e.children.item(i);if("LEGEND"===s.tagName)return!!d.call(e,"fieldset[disabled] *")||!s.contains(t)}return!0}e=e.parentElement}return!1}(e))},ft=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].concat("iframe").join(",");function vt(t){let e=t;for(;null!==e;){if(function(t,e){if(e=e||{},t)return!1!==d.call(t,ft)&&mt(e,t);throw new Error("No node provided")}(e)||e.hasAttribute("data-loosely-focusable"))return 1;e=e.parentElement}}function gt(t,{referenceElement:r,popupElement:a,arrowElement:l,arrowPadding:h=0,middleware:c=[],offsetOptions:d=0,placement:u="bottom-start",flipOptions:p,shiftOptions:m,strategy:f="fixed",sync:v}){let e;async function i(t=!1){if(t&&r){t=[g.offset(d)];v?t.push(g.size({apply:({rects:t})=>{var e="height"===v||"both"===v;a.style.width="width"===v||"both"===v?t.reference.width+"px":"",a.style.height=e?t.reference.height+"px":""}})):(a.style.width="",a.style.height=""),t.push(g.flip(p)),t.push(g.shift(m)),l&&t.push(g.arrow({element:l,padding:h})),t.concat(c);const{x:e,y:i,placement:s,strategy:o,middlewareData:n}=await g.computePosition(r,a,{placement:u,middleware:t,strategy:f});if(Object.assign(a.style,{left:e+"px",top:i+"px",position:o}),n.arrow&&l){const{x:e,y:i}=n.arrow;Object.assign(l.style,{left:"number"==typeof e?e+"px":"",top:"number"==typeof i?i+"px":""})}a.setAttribute("x-placement",s)}}async function s(){return new Promise(t=>{e?(e(),e=void 0,requestAnimationFrame(()=>t())):t()})}a.style.position=f,a.style.top="0px",a.style.left="0px",r&&(e=g.autoUpdate(r,a,()=>i(!0)),s());const o=t.disconnected.bind(t);return Object.assign(t,{disconnected(){s(),o()}}),{start:function(){r&&(e=g.autoUpdate(r,a,()=>i(t.open)))},update:async function(){await i(t.open)},stop:s}}function bt(t,{boundaries:o,callback:n}){let r=null;function e(t){var e;r=(null==(e=null==(e=t.composedPath)?void 0:e.call(t))?void 0:e[0])||t.target}function i(t,e){if(r&&!t.defaultPrevented){var i=e(t);if(i&&i.getRootNode().contains(i)&&i.isConnected){for(const s of o)if(null!==s){if(s.contains(i))return;if(t.composed&&t.composedPath().includes(s))return}n(t,i),r=null}}}document.addEventListener("mousedown",e,!0),document.addEventListener("click",t=>i(t,()=>r),!0);const s=t.disconnected.bind(t);Object.assign(t,{disconnected(){r=null,document.removeEventListener("mousedown",e,!0),document.removeEventListener("click",t=>i(t,()=>r),!0),s()}})}class yt{constructor(t){this.autocomplete=t}search(t){this.autocomplete.options.forEach((s=t,t=>{var e,i=t.closest('[role="group"]');s?(e=null==(e=t.getAttribute("data-text"))?void 0:e.toLowerCase().includes(s.toLowerCase()),t.hidden=!e,i&&(e=Array.from(i.querySelectorAll('[role="option"]')),i.hidden=e.every(t=>t.hidden))):(t.hidden=!1,i&&(i.hidden=!1))}));var s,t=this.autocomplete.visibleOptions[0];t&&this.autocomplete.combobox.activate(t),this.autocomplete.checkIfListIsEmpty()}start(){this.autocomplete.checkIfListIsEmpty()}stop(){this.resetOptions()}resetOptions(){for(const t of this.autocomplete.groups)t.hidden=!1;for(const e of this.autocomplete.options)e.hidden=!1}}class wt{constructor(t){this.selectedValues=new Set,this.defaultSelectedValues=[],this.findByValue=e=>t=>t.getAttribute("value")===e,this.autocomplete=t}connected(){this.defaultSelectedValues=this.tags.reduce((t,e)=>{var e=e.querySelector('[data-behavior="hidden-field"]'),i=e.value;return this.selectedValues.add(i),t.push({value:i,text:e.getAttribute("data-text")||""}),t},[])}start(){this.selectOrDeselectOptions(),this.firstActivableOption&&this.autocomplete.combobox.activate(this.firstActivableOption,{scroll:!0})}stop(){this.autocomplete.input.value=""}reset(){this.clear(),this.defaultSelectedValues.forEach(({value:t,text:e})=>this.setValue(t,e))}select(t){var e=t.getAttribute("value"),t=t.dataset["text"];e&&(this.selectedValues.has(e)?this.removeValue(e):this.setValue(e,t||""))}setValue(t,e){this.selectedValues.has(t)||(this.selectedValues.add(t),this.insertTag(t,e.trim()),this.toggleSelectedClass(),this.required=this.autocomplete.required,this.autocomplete.open&&(e=this.autocomplete.options.find(this.findByValue(t)))&&this.autocomplete.combobox.select(e))}clear(){this.selectedValues.forEach(t=>this.removeValue(t))}removeValue(t){this.selectedValues.has(t)&&(this.selectedValues.delete(t),this.removeTag(t),this.toggleSelectedClass(),this.required=this.autocomplete.required,t=this.autocomplete.options.find(this.findByValue(t)))&&this.autocomplete.combobox.deselect(t)}set required(t){!t||0<this.selectedValues.size?this.autocomplete.input.required=!1:this.autocomplete.input.required=!0}selectOrDeselectOptions(){for(const e of this.autocomplete.options){var t=e.getAttribute("value");t&&this.selectedValues.has(t)?this.autocomplete.combobox.select(e):this.autocomplete.combobox.deselect(e)}}insertTag(t,e){var i=this.template.content.cloneNode(!0),s=i.querySelector('[data-behavior="tag"]'),o=i.querySelector('[data-behavior="text"]'),n=i.querySelector('[data-behavior="hidden-field"]');s.setAttribute("value",t),o.innerText=e,n.value=t,n.setAttribute("data-text",e),this.autocomplete.control.insertBefore(i,this.template)}removeTag(t){t=this.tags.find(this.findByValue(t));null!=t&&t.remove()}toggleSelectedClass(){this.autocomplete.toggleSelectedClass(!!this.selectedValues.size)}get firstActivableOption(){return this.autocomplete.options.find(t=>this.selectedValues.has(t.getAttribute("value")))||this.autocomplete.visibleOptions[0]}get tags(){return this.autocomplete.tags}get template(){return this.autocomplete.querySelector('[data-behavior="tag-template"]')}}class Et{constructor(t){this.cachedOptions="",this.autocomplete=t,this.makeRequest=function(e,i){let s;function t(...t){clearTimeout(s),s=setTimeout(()=>{e.apply(this,t)},i)}return t.clear=()=>{clearTimeout(s)},t}(this.makeRequest.bind(this),300)}async search(t){this.autocomplete.setAttribute("loading",""),this.autocomplete.removeAttribute("error"),await this.makeRequest(t)}start(){this.cachedOptions?this.insertOptions(this.cachedOptions,{cached:!0}):this.search("")}stop(){}async makeRequest(t){var e=(this.emit("loadstart"),null!=(e=this.abortController)&&e.abort(),this.abortController=new AbortController)["signal"],i=new URL(this.autocomplete.src,window.location.href),s=new URLSearchParams(i.search.slice(1));s.append(this.autocomplete.param,t),i.search=s.toString();try{var o=await fetch(i.toString(),{signal:e,credentials:"same-origin",headers:{accept:"text/fragment+html"}});if(!o.ok)throw new Error;var n=await o.text();""===t&&(this.cachedOptions=n),await this.insertOptions(n),this.abortController=void 0,this.emit("load")}catch(t){t instanceof Error&&"AbortError"!==t.name&&(this.abortController=void 0,this.autocomplete.setAttribute("error",""),this.emit("error"))}finally{this.autocomplete.removeAttribute("loading"),this.emit("loadend")}}async insertOptions(t,{cached:e=!1}={}){this.autocomplete.optionsContainer.innerHTML=t,this.autocomplete.checkIfListIsEmpty(),e||this.autocomplete.combobox.initializeOptions(),this.autocomplete.selectVariant.start(),await this.autocomplete.reposition()}emit(t){this.autocomplete.emit(t,{bubbles:!1,prefix:!1})}}class At{constructor(t){this.defaultValue="",this.defaultText="",this.autocomplete=t}connected(){var t;this.defaultValue=this.hiddenField.value,this.defaultText=null!=(t=this.hiddenField.getAttribute("data-text"))?t:""}start(){var t;this.selectedOption?(this.autocomplete.combobox.select(this.selectedOption),this.autocomplete.combobox.activate(this.selectedOption,{scroll:!0})):(t=this.autocomplete.visibleOptions[0])&&this.autocomplete.combobox.activate(t,{scroll:!0})}stop(){var t=this.hiddenField.dataset["text"];this.autocomplete.input.value=null!=t?t:""}reset(){this.setValue(this.defaultValue,this.defaultText)}select(t){var e=null!=(e=t.getAttribute("value"))?e:"",t=t.dataset["text"];this.setValue(e,t||""),this.autocomplete.hide()}setValue(t,e){this.hiddenField.value=t;e=e.trim();this.hiddenField.setAttribute("data-text",e),this.autocomplete.input.value=e,this.autocomplete.toggleSelectedClass(!!t)}clear(){this.setValue("","")}set required(t){this.autocomplete.input.required=t}get selectedOption(){return this.autocomplete.options.find(t=>t.getAttribute("value")===this.autocomplete.value)}get hiddenField(){return this.autocomplete.querySelector('input[data-behavior="hidden-field"]')}}let p=class extends l{constructor(){super(),this.open=!1,this.disabled=!1,this.required=!1,this.multiple=!1,this.param="q",this.firstFocus=!0,this.preventOutsideClickEvent=!1,this.handleFormReset=this.handleFormReset.bind(this)}connected(){var t;null!=(t=this.form)&&t.addEventListener("reset",this.handleFormReset),this.floatingUI=gt(this,{referenceElement:this.control,popupElement:this.listbox,placement:"bottom",sync:"width",offsetOptions:4}),bt(this,{boundaries:[this.control,this.listbox],callback:(t,e)=>{this.preventOutsideClickEvent&&!vt(e)?t.preventDefault():this.open&&this.hide(),this.preventOutsideClickEvent=!1}}),this.combobox=new lt(this.input,this.listbox,{multiple:this.multiple}),this.selectVariant=new(this.multiple?wt:At)(this),this.selectVariant.connected(),this.searchVariant=new(this.src?Et:yt)(this),this.selectVariant.required=this.required}disconnected(){var t;this.hide(),null!=(t=this.form)&&t.removeEventListener("reset",this.handleFormReset),this.firstFocus=!0,this.preventOutsideClickEvent=!1}disabledChanged(t){this.input.disabled=t,this.clearButton&&(this.clearButton.disabled=t);for(const e of this.tagDismissButtons)e.disabled=t}requiredChanged(t){this.selectVariant.required=t}handleMousedown(t){t.target!==this.input&&t.preventDefault()}handleClick(t){this.disabled||(this.focus(),t.target.hasAttribute("data-trigger")&&this.show(),this.firstFocus&&this.input.value&&this.input.select(),this.firstFocus=!1)}handleInputMousedown(t){this.disabled||1===t.buttons&&this.show()}async handleInputBlur(){this.preventOutsideClickEvent=this.open,await this.hide(),this.firstFocus=!0}handleInputKeydown(t){switch(t.key){case"Enter":this.open&&t.preventDefault();break;case"Escape":this.open&&(t.preventDefault(),t.stopPropagation(),this.hide());break;case"ArrowDown":t.altKey&&!this.open&&(t.preventDefault(),this.show());break;case"ArrowUp":t.altKey&&this.open&&(t.preventDefault(),this.hide());break;case"Backspace":var e;this.multiple&&!this.input.value&&(e=this.removeLastTag())&&(t.preventDefault(),this.emit("remove",{detail:{target:e}}))}}handleCommit(t){t.stopPropagation();t=t.target;t instanceof HTMLElement&&(this.selectVariant.select(t),this.emit("commit",{detail:{target:t}}))}handleFormReset(){this.reset(),this.hide(),this.emit("reset")}handleClear(){this.clear(),this.hide(),this.emit("clear")}handleTagRemove(t){t=t.target.closest('[data-behavior="tag"]');t&&(this.removeTag(t),this.emit("remove",{detail:{target:t}}))}handleInput(t){var t=t["target"];t instanceof HTMLInputElement&&(t=t.value.trim(),this.show(),this.searchVariant.search(t))}show(){this.open||(this.emit("show"),this.open=!0,this.floatingUI.start(),this.combobox.start(),this.selectVariant.start(),this.searchVariant.start(),this.emit("shown"))}async hide(){this.open&&(this.emit("hide"),this.open=!1,this.combobox.stop(),this.selectVariant.stop(),this.searchVariant.stop(),this.removeAttribute("no-options"),this.removeAttribute("error"),await this.floatingUI.stop(),this.emit("hidden"))}setValue(e,t){var i=this.options.find(t=>t.getAttribute("value")===e),t=t||(null==i?void 0:i.getAttribute("data-text"))||"";this.selectVariant.setValue(e,t)}removeValue(t){this.multiple&&t?this.selectVariant.removeValue(t):this.selectVariant.clear()}activate(t,{scroll:e=!0}={}){this.combobox.activate(t,{scroll:e})}deactivate(){this.combobox.deactivate()}focus(t){this.input.focus(t)}blur(){this.input.blur()}reset(){this.selectVariant.reset()}clear(){this.selectVariant.clear()}async reposition(){await this.floatingUI.update()}removeLastTag(){var t=this.tags[this.tags.length-1];if(t)return this.removeTag(t),t}removeTag(t){t=t.getAttribute("value");t&&this.removeValue(t)}checkIfListIsEmpty(){this.toggleAttribute("no-options",0===this.visibleOptions.length)}toggleSelectedClass(t){this.classList.toggle("awc-autocomplete--selected",t)}get value(){var t;return this.multiple?this.tags.map(t=>{return null!=(t=t.getAttribute("value"))?t:""}):null!=(t=null==(t=this.querySelector('input[data-behavior="hidden-field"]'))?void 0:t.value)?t:""}get options(){return this.combobox.options}get visibleOptions(){return this.options.filter(t=>!t.hidden)}get activeOption(){return this.combobox.activeOption}get form(){return this.closest("form")}get tags(){return[...this.querySelectorAll('[data-behavior="tag"]')]}};t([i({type:Boolean})],p.prototype,"open",void 0),t([i({type:Boolean})],p.prototype,"disabled",void 0),t([i({type:Boolean})],p.prototype,"required",void 0),t([i({type:Boolean})],p.prototype,"multiple",void 0),t([i()],p.prototype,"src",void 0),t([i()],p.prototype,"param",void 0),t([o()],p.prototype,"control",void 0),t([o()],p.prototype,"input",void 0),t([o()],p.prototype,"listbox",void 0),t([o()],p.prototype,"optionsContainer",void 0),t([o()],p.prototype,"clearButton",void 0),t([I()],p.prototype,"tagDismissButtons",void 0),t([I()],p.prototype,"groups",void 0),p=t([s("awc-autocomplete")],p);let m=class extends l{constructor(){super(...arguments),this.open=!1,this.hideOnOutsideClick=!0}connected(){this.open&&this.show()}disconnected(){this.hideWithoutEmitting()}show(){this.dialog.showModal(),this.hideOverflow(),this.open=!0}hide(){this.hideWithoutEmitting(),this.emit("hidden")}handleClick(t){var e;this.hideOnOutsideClick&&!t.defaultPrevented&&(e=t.target)instanceof HTMLElement&&e===this.dialog&&((e=e.getBoundingClientRect()).top<=t.clientY&&t.clientY<=e.top+e.height&&e.left<=t.clientX&&t.clientX<=e.left+e.width||this.hide())}handleKeydown(t){"Escape"===t.key&&(t.stopPropagation(),this.emit("hidden"))}hideWithoutEmitting(){var t;this.dialog.open&&(this.dialog.close(),null!=(t=this.nestedDialog))&&t.hide(),this.showOverflow(),this.open=!1}hideOverflow(){this._scrollLockController=function({abortSignal:t}={}){var e,i=new AbortController,t=t||i.signal,s=window.innerWidth-document.documentElement.clientWidth;let o,n;return void 0===o&&0<s&&(e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10),o=document.body.style.paddingRight,document.body.style.paddingRight=e+s+"px"),void 0===n&&(n=document.body.style.overflow,document.body.style.overflow="hidden"),t.addEventListener("abort",()=>{void 0!==o&&(document.body.style.paddingRight=o,o=void 0),void 0!==n&&(document.body.style.overflow=n,n=void 0)}),i}()}showOverflow(){var t;this.closest("dialog[open]")||null!=(t=this._scrollLockController)&&t.abort()}get nestedDialog(){return this.querySelector(this.identifier)}};t([i({type:Boolean})],m.prototype,"open",void 0),t([i({type:Boolean})],m.prototype,"hideOnOutsideClick",void 0),t([o()],m.prototype,"dialog",void 0),m=t([s("awc-dialog")],m);var f=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:i="",...s}={}){super(t,s),this.oldState=String(e||""),this.newState=String(i||"")}},Ot=new WeakMap;function kt(t,e,i){Ot.set(t,setTimeout(()=>{Ot.has(t)&&t.dispatchEvent(new f("toggle",{cancelable:!1,oldState:e,newState:i}))},0))}var v=globalThis.ShadowRoot||function(){},St=globalThis.HTMLDialogElement||function(){},b=new WeakMap,y=new WeakMap,w=new WeakMap;function E(t){return w.get(t)||"hidden"}var A=new WeakMap;function O(t,e){return("auto"===t.popover||"manual"===t.popover)&&t.isConnected&&!(e&&"showing"!==E(t)||!e&&"hidden"!==E(t)||t instanceof St&&t.hasAttribute("open")||document.fullscreenElement===t)}function Lt(t){return t?Array.from(y.get(t.ownerDocument)||[]).indexOf(t)+1:0}function Mt(t){var e=xt(t),t=function(t){for(;t;){var e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=(t=t.parentElement||S(t))instanceof v?t.host:t)instanceof Document)return}}(t);return Lt(e)>Lt(t)?e:t}function k(t){var e=y.get(t);for(const i of e||[]){if(i.isConnected)return i;e.delete(i)}return null}function S(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?S(t.parentNode):t}function xt(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===w.get(t))return t;if((t=(t=t instanceof Element&&t.assignedSlot||t.parentElement||S(t))instanceof v?t.host:t)instanceof Document)return}}function Tt(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t,i=(e=e.shadowRoot?e.shadowRoot:e).querySelector("[autofocus]");if(i)return i;for(const r of e.querySelectorAll("slot"))for(const a of r.assignedElements({flatten:!0})){if(a.hasAttribute("autofocus"))return a;if(i=a.querySelector("[autofocus]"))return i}var s,o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let n=o.currentNode;for(;n;){if(!((s=n).hidden||s instanceof v||(s instanceof HTMLButtonElement||s instanceof HTMLInputElement||s instanceof HTMLSelectElement||s instanceof HTMLTextAreaElement||s instanceof HTMLOptGroupElement||s instanceof HTMLOptionElement||s instanceof HTMLFieldSetElement)&&s.disabled||s instanceof HTMLInputElement&&"hidden"===s.type||s instanceof HTMLAnchorElement&&""===s.href||"number"!=typeof s.tabIndex||-1===s.tabIndex))return n;n=o.nextNode()}}var L=new WeakMap;function M(e){if(O(e,!1)){var i=e.ownerDocument;if(e.dispatchEvent(new f("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))&&O(e,!1)){let t=!1;if("auto"===e.popover){var s=e.getAttribute("popover");if(T(function(t){const e=new Map;let i=0;for(const n of y.get(t.ownerDocument)||[])e.set(n,i),i+=1;e.set(t,i),i+=1;let s=null;var o;return t=t.parentElement||S(t),s=null!==(t=xt(t))&&(o=e.get(t),null===s||e.get(s)<o)?t:s}(e)||i,!1,!0),s!==e.getAttribute("popover")||!O(e,!1))return}k(i)||(t=!0),L.delete(e);s=i.activeElement;e.classList.add(":popover-open"),w.set(e,"showing"),b.has(i)||b.set(i,new Set),b.get(i).add(e),Tt(e)?.focus(),"auto"===e.popover&&(y.has(i)||y.set(i,new Set),y.get(i).add(e),Pt(A.get(e),!0)),t&&s&&"auto"===e.popover&&L.set(e,s),kt(e,"closed","open")}}}function x(t,e=!1,i=!1){var s;O(t,!0)&&(s=t.ownerDocument,"auto"===t.popover&&(T(t,e,i),!O(t,!0))||(Pt(A.get(t),!1),A.delete(t),i&&(t.dispatchEvent(new f("beforetoggle",{oldState:"open",newState:"closed"})),!O(t,!0)))||(b.get(s)?.delete(t),y.get(s)?.delete(t),t.classList.remove(":popover-open"),w.set(t,"hidden"),i&&kt(t,"open","closed"),(s=L.get(t))&&(L.delete(t),e)&&s.focus()))}function Ct(t,e=!1,i=!1){let s=k(t);for(;s;)x(s,e,i),s=k(t)}function T(t,e,i){var s=t.ownerDocument||t;if(t instanceof Document)return Ct(s,e,i);let o=null,n=!1;for(const r of y.get(s)||[])if(r===t)n=!0;else if(n){o=r;break}if(!n)return Ct(s,e,i);for(;o&&"showing"===E(o)&&y.get(s)?.size;)x(o,e,i)}var C=new WeakMap;function Nt(t){var e,i;t.isTrusted&&(i=t.composedPath()[0])&&k(e=i.ownerDocument)&&((i=Mt(i))&&"pointerdown"===t.type?C.set(e,i):"pointerup"===t.type&&(t=C.get(e)===i,C.delete(e),t)&&T(i||e,!1,!0))}var N=new WeakMap;function Pt(t,e=!1){var i;t&&(N.has(t)||N.set(t,t.getAttribute("aria-expanded")),(i=t.popoverTargetElement)instanceof HTMLElement&&"auto"===i.popover?t.setAttribute("aria-expanded",String(e)):(i=N.get(t))?t.setAttribute("aria-expanded",i):t.removeAttribute("aria-expanded"))}var Vt=globalThis.ShadowRoot||function(){};function P(t,e,i){const s=t[e];Object.defineProperty(t,e,{value(t){return s.call(this,i(t))}})}var Dt=/(^|[^\\]):popover-open\b/g;function qt(){var t="function"==typeof globalThis.CSSLayerBlockRule;return`
|
5
|
+
`);this.defineProperty(i,this.isKeyMultiple(i)?s:e),this.invokeCallback(i,e,"connected")}}tokenUnmatched({content:t,element:e}){var[t,i]=t.split(".");this.isValidIdKeyPair(t,i)&&this.targetsByKey.has(i,e)&&(this.targetsByKey.delete(i,e),this.invokeCallback(i,e,"disconnected"),this.defineProperty(i,this.isKeyMultiple(i)?this.targetsByKey.getValuesForKey(i):null))}destroyTargets(){for(const t of this.targetsByKey.keys)this.targetsByKey.getValuesForKey(t).forEach(t=>{var e;return null==(e=this.tokenListObserver)?void 0:e.elementDisconnected(t)})}defineProperty(t,e){Object.defineProperty(this.instance,t,{configurable:!0,get:()=>e})}isValidIdKeyPair(t,e){return!(!e||t!==this.identifier||!this.keys.includes(e))}invokeCallback(t,e,i){i=this.instance[""+t+((t=i).charAt(0).toUpperCase()+t.slice(1))];"function"==typeof i&&i.call(this.instance,e)}isKeyMultiple(e){var t;return null!=(t=null==(t=Array.from(this.targetKeys).find(t=>t.key===e))?void 0:t.multiple)&&t}get keys(){return Array.from(this.targetKeys).map(({key:t})=>t)}get targetKeys(){return this.store.value}get identifier(){return this.instance.identifier}}class l extends HTMLElement{constructor(){super(...arguments),this.property=new et(this),this.target=new it(this),this.action=new X(this),this._started=!1}connectedCallback(){this._started||this._asyncConnect()}static get observedAttributes(){var t=new r(this.prototype,"property");return Array.from(t.value).map(({key:t})=>tt(t))}attributeChangedCallback(t,e,i){if(this._started&&e!==i){const n=t.replace(Y,(t,e,i)=>i?i.toUpperCase():"").replace(G,t=>t.toLowerCase());var s=this[n+"Changed"];if("function"==typeof s){var o=new r(Object.getPrototypeOf(this),"property"),o=Array.from(o.value).map(({key:t,type:e})=>({key:t,type:e})).find(({key:t})=>t===n);if(!o)throw new Error(`Unregistered attribute changed: ${t}. Register the attribute using the @property() decorator.`);var{newValue:t,oldValue:i}=function(t,e,i){switch(i){case Boolean:var s=t=>null!==t&&"false"!==t;return{newValue:s(t),oldValue:s(e)};case Number:s=t=>null==t?void 0:t.replace(/_/g,"");return{newValue:Number(s(t)),oldValue:Number(s(e))};case Array:return{newValue:a(t,[]),oldValue:a(e,[])};case Object:return{newValue:a(t,{}),oldValue:a(e,{})};default:return{newValue:t,oldValue:e}}}(i,e,o.type);t!==i&&s.call(this,t,i)}}}disconnectedCallback(){this._started&&(this.disconnected(),this.action.stop(),this.target.stop(),this.property.stop(),this._started=!1)}connected(){}disconnected(){}emit(t,e={}){var{target:i=this,prefix:s=this.identifier,detail:o={}}=e,e=B(e,["target","prefix","detail"]),s=new CustomEvent(s?s+":"+t:t,Object.assign({bubbles:!0,composed:!0,detail:o},e));return i.dispatchEvent(s),s}get identifier(){return this.tagName.toLowerCase()}async _asyncConnect(){await new Promise(t=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>t()):t()}),customElements.upgrade(this),this.property.start(),await this._resolveUndefinedElements(),this.target.start(),this.action.start(),this._started=!0,this.setAttribute("data-impulse-element",""),this.connected()}_resolveUndefinedElements(){var t=Array.from(this.querySelectorAll(":not(:defined)")).map(t=>customElements.whenDefined(t.localName));return Promise.all(t)}}function st(t){return Number(t.replace(/[^-\d.]/g,""))}let h=class extends l{constructor(){super(...arguments),this.placement="bottom",this.active=!1,this.strategy="fixed",this.distance=0,this.skidding=0,this.flip=!0,this.flipPadding=0,this.fallbackPlacements=[],this.fallbackStrategy="bestFit",this.shift=!1,this.shiftPadding=0}connected(){this.start()}disconnected(){this.stop()}async anchorIdChanged(t){await this.stop(),t&&this.anchorElement&&this.start()}async activeChanged(t){t?this.start():await this.stop()}start(){this.anchorElement&&(this.style.position=this.strategy,this.style.top="0px",this.style.left="0px",this.cleanup=y.autoUpdate(this.anchorElement,this,this.reposition.bind(this)))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,requestAnimationFrame(()=>t())):t()})}async reposition(){if(this.active&&this.anchorElement){var t=[y.offset({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(y.size({apply:({rects:t})=>{var e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.style.width=e?t.reference.width+"px":"",this.style.height=i?t.reference.height+"px":""}})):(this.style.width="",this.style.height=""),this.flip&&t.push(y.flip({fallbackPlacements:this.fallbackPlacements.length?this.fallbackPlacements:void 0,fallbackStrategy:this.fallbackStrategy,padding:this.flipPadding})),this.shift&&t.push(y.shift({padding:this.shiftPadding})),this.arrowElement&&t.push(y.arrow({element:this.arrowElement,padding:this._arrowPadding}));const{x:e,y:i,placement:s,strategy:o,middlewareData:n}=await y.computePosition(this.anchorElement,this,{placement:this.placement,middleware:t,strategy:this.strategy});if(Object.assign(this.style,{left:e+"px",top:i+"px",position:o}),n.arrow&&this.arrowElement){const{x:e,y:i}=n.arrow;Object.assign(this.arrowElement.style,{left:"number"==typeof e?e+"px":"",top:"number"==typeof i?i+"px":""})}this.setAttribute("x-placement",s)}}get anchorElement(){return document.getElementById(this.anchorId)}get arrowElement(){return this.querySelector("[data-arrow]")}get _arrowPadding(){return"number"==typeof this.arrowPadding?this.arrowPadding:st(getComputedStyle(this).borderRadius)||2}};t([i()],h.prototype,"anchorId",void 0),t([i()],h.prototype,"placement",void 0),t([i({type:Boolean})],h.prototype,"active",void 0),t([i()],h.prototype,"strategy",void 0),t([i({type:Number})],h.prototype,"distance",void 0),t([i({type:Number})],h.prototype,"skidding",void 0),t([i()],h.prototype,"sync",void 0),t([i({type:Boolean})],h.prototype,"flip",void 0),t([i({type:Number})],h.prototype,"flipPadding",void 0),t([i({type:Array})],h.prototype,"fallbackPlacements",void 0),t([i()],h.prototype,"fallbackStrategy",void 0),t([i({type:Boolean})],h.prototype,"shift",void 0),t([i({type:Number})],h.prototype,"shiftPadding",void 0),t([i({type:Number})],h.prototype,"arrowPadding",void 0),h=t([s("awc-anchor")],h);var ot=0;function nt(){return ot+=1,`ambiki-${Math.random().toString().slice(2,6)}-`+ot}function rt(t){return!t.hasAttribute("disabled")&&"true"!==t.getAttribute("aria-disabled")}var at=!!navigator.userAgent.match(/Macintosh/),lt=class{input;list;multiple;isMouseMoving=!1;constructor(t,e,{multiple:i=!1}={}){this.input=t,this.list=e,this.multiple=i,this.list.id||(this.list.id=nt()),this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.multiple&&this.input.setAttribute("aria-multiselectable","true"),this.input.setAttribute("role","combobox"),this.input.setAttribute("aria-haspopup","listbox"),this.input.setAttribute("aria-autocomplete","list"),this.list.setAttribute("role","listbox"),this.onKeydown=this.onKeydown.bind(this),this.onClick=this.onClick.bind(this),this.onListMouseover=this.onListMouseover.bind(this),this.onListMousemove=this.onListMousemove.bind(this)}start(){this.isMouseMoving=!1,this.input.setAttribute("aria-expanded","true"),this.input.setAttribute("aria-controls",this.list.id),this.input.addEventListener("keydown",this.onKeydown),this.list.addEventListener("click",this.onClick),this.list.addEventListener("mouseover",this.onListMouseover),this.list.addEventListener("mousemove",this.onListMousemove),this.initializeOptions()}stop(){this.isMouseMoving=!1,this.input.setAttribute("aria-expanded","false"),this.input.removeAttribute("aria-controls"),this.input.removeEventListener("keydown",this.onKeydown),this.list.removeEventListener("click",this.onClick),this.list.removeEventListener("mouseover",this.onListMouseover),this.list.removeEventListener("mousemove",this.onListMousemove),this.deselectAll(),this.deactivate()}onKeydown(t){if(this.isMouseMoving=!1,!(t.shiftKey||t.metaKey||t.altKey||!at&&t.ctrlKey))switch(t.key){case"Enter":case"Tab":this.activeOption&&rt(this.activeOption)&&(t.preventDefault(),t.stopPropagation(),this.activeOption.click());break;case"Escape":this.deactivate();break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.activeOption?this.move(1):this.activate(this.visibleOptions[0],{scroll:!0});break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),this.activeOption?this.move(-1):this.activate(this.visibleOptions[this.visibleOptions.length-1],{scroll:!0});break;case"Home":t.preventDefault(),t.stopPropagation(),this.activate(this.visibleOptions[0],{scroll:!0});break;case"End":t.preventDefault(),t.stopPropagation(),this.activate(this.visibleOptions[this.visibleOptions.length-1],{scroll:!0});break;default:t.ctrlKey||this.deactivate()}}onClick(t){t=c(t.target);t&&rt(t)&&(this.multiple&&this.isSelected(t)?this.deselect(t):this.select(t),t.dispatchEvent(new CustomEvent("combobox:commit",{bubbles:!0})))}onListMouseover(t){var e;this.isMouseMoving?(e=c(t.target))&&this.activate(e):t.preventDefault()}onListMousemove(t){!this.isMouseMoving&&(this.isMouseMoving=!0,t=c(t.target))&&this.activate(t)}select(t){if(this.multiple)t.setAttribute("aria-selected","true");else for(var e of this.options)e.setAttribute("aria-selected",(e===t).toString())}deselect(t){t.setAttribute("aria-selected","false")}deselectAll(){for(var t of this.options)this.deselect(t)}activate(t,{scroll:e=!1}={}){for(var i of this.options)i.id===t.id?(i.setAttribute("data-active",""),this.input.setAttribute("aria-activedescendant",i.id),e&&i.scrollIntoView({block:"nearest"})):i.removeAttribute("data-active")}deactivate(){this.input.removeAttribute("aria-activedescendant");for(var t of Array.from(this.list.querySelectorAll('[role="option"][data-active]')))t.removeAttribute("data-active")}isSelected(t){return"true"===t.getAttribute("aria-selected")}get options(){return Array.from(this.list.querySelectorAll('[role="option"]'))}get visibleOptions(){return this.options.filter(ht)}get activeOption(){return this.list.querySelector("[data-active]")}move(t){this.activeOption&&(t=function(t,e,i){let s=t.indexOf(e),o=(s===t.length-1&&1===i&&(s=-1),1===i?0:t.length-1);return t[o=e&&0<=s&&0<=(e=s+i)&&e<t.length?e:o]}(this.visibleOptions,this.activeOption,t),this.activate(t,{scroll:!0}))}initializeOptions(){for(var t of this.options)t.setAttribute("tabindex","-1"),t.id||(t.id=nt()),t.hasAttribute("aria-selected")||this.deselect(t)}};function c(t){return t&&t.closest('[role="option"]')||!1}function ht(t){return!t.hidden&&!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(0<t.offsetWidth||0<t.offsetHeight)}function ct(t,e){void 0===e&&(e=!0);var i=null==t||null==(i=t.getAttribute)?void 0:i.call(t,"inert");return""===i||"true"===i||e&&t&&ct(t.parentNode)}function dt(t){var e=(t=t.getBoundingClientRect()).width,t=t.height;return 0===e&&0===t}function ut(t,e){var i=e.displayCheck,s=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return 1;if(e=d.call(t,"details>summary:first-of-type")?t.parentElement:t,d.call(e,"details:not([open]) *"))return 1;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return dt(t)}else{if("function"==typeof s){for(e=t;t;){var o=t.parentElement,n=u(t);if(o&&!o.shadowRoot&&!0===s(o))return dt(t);t=t.assignedSlot||(o||n===t.ownerDocument?o:n.host)}t=e}if(function(t){var e,i=t&&u(t),s=null==(e=i)?void 0:e.host,o=!1;if(i&&i!==t)for(o=!!(null!=(e=s)&&null!=(e=e.ownerDocument)&&e.contains(s)||null!=t&&null!=(e=t.ownerDocument)&&e.contains(t));!o&&s;)var n,o=!(null==(n=s=null==(n=i=u(s))?void 0:n.host)||null==(n=n.ownerDocument)||!n.contains(s));return o}(t))return!t.getClientRects().length;if("legacy-full"!==i)return 1}}var pt="undefined"==typeof Element,d=pt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!pt&&Element.prototype.getRootNode?function(t){var e;return null==t||null==(e=t.getRootNode)?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},mt=function(t,e){var i;return!(e.disabled||ct(e)||"INPUT"===(i=e).tagName&&"hidden"===i.type||ut(e,t)||"DETAILS"===(i=e).tagName&&Array.prototype.slice.apply(i.children).some(function(t){return"SUMMARY"===t.tagName})||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var s=e.children.item(i);if("LEGEND"===s.tagName)return!!d.call(e,"fieldset[disabled] *")||!s.contains(t)}return!0}e=e.parentElement}return!1}(e))},vt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].concat("iframe").join(",");function ft(t){let e=t;for(;null!==e;){if(function(t,e){if(e=e||{},t)return!1!==d.call(t,vt)&&mt(e,t);throw new Error("No node provided")}(e)||e.hasAttribute("data-loosely-focusable"))return 1;e=e.parentElement}}function gt(t,{referenceElement:r,popupElement:a,arrowElement:l,arrowPadding:h=0,middleware:c=[],offsetOptions:d=0,placement:u="bottom-start",flipOptions:p,shiftOptions:m,strategy:v="fixed",sync:f,autoSize:g,autoSizePadding:b=0}){let e;async function i(t=!1){if(t&&r&&a){t=[y.offset(d)];f?t.push(y.size({apply:({rects:t})=>{var e="height"===f||"both"===f;a.style.width="width"===f||"both"===f?t.reference.width+"px":"",a.style.height=e?t.reference.height+"px":""}})):(a.style.width="",a.style.height=""),t.push(y.flip(p)),t.push(y.shift(m)),g?t.push(y.size({padding:b,apply:({availableWidth:t,availableHeight:e})=>{"height"===g||"both"===g?a.style.setProperty("--awc-auto-size-height",e+"px"):a.style.removeProperty("--awc-auto-size-height"),"width"===g||"both"===g?a.style.setProperty("--awc-auto-size-width",t+"px"):a.style.removeProperty("--awc-auto-size-width")}})):(a.style.removeProperty("--awc-auto-size-height"),a.style.removeProperty("--awc-auto-size-width")),l&&t.push(y.arrow({element:l,padding:h})),t.concat(c);const{x:e,y:i,placement:s,strategy:o,middlewareData:n}=await y.computePosition(r,a,{placement:u,middleware:t,strategy:v});if(Object.assign(a.style,{left:e+"px",top:i+"px",position:o}),n.arrow&&l){const{x:e,y:i}=n.arrow;Object.assign(l.style,{left:"number"==typeof e?e+"px":"",top:"number"==typeof i?i+"px":""})}a.setAttribute("x-placement",s)}}async function s(){return new Promise(t=>{e?(e(),e=void 0,requestAnimationFrame(()=>t())):t()})}a&&(a.style.position=v,a.style.top="0px",a.style.left="0px",r)&&(e=y.autoUpdate(r,a,()=>i(!0)),s());const o=t.disconnected.bind(t);return Object.assign(t,{disconnected(){s(),o()}}),{start:function(){r&&a&&(e=y.autoUpdate(r,a,()=>i(t.open)))},update:async function(){await i(t.open)},stop:s}}function bt(t,{boundaries:o,callback:n}){let r=null;function e(t){var e;r=(null==(e=null==(e=t.composedPath)?void 0:e.call(t))?void 0:e[0])||t.target}function i(t,e){if(r&&!t.defaultPrevented){var i=e(t);if(i&&i.getRootNode().contains(i)&&i.isConnected){for(const s of o)if(null!==s){if(s.contains(i))return;if(t.composed&&t.composedPath().includes(s))return}n(t,i),r=null}}}document.addEventListener("mousedown",e,!0),document.addEventListener("click",t=>i(t,()=>r),!0);const s=t.disconnected.bind(t);Object.assign(t,{disconnected(){r=null,document.removeEventListener("mousedown",e,!0),document.removeEventListener("click",t=>i(t,()=>r),!0),s()}})}class yt{constructor(t){this.autocomplete=t}search(t){this.autocomplete.options.forEach((s=t,t=>{var e,i=t.closest('[role="group"]');s?(e=null==(e=t.getAttribute("data-text"))?void 0:e.toLowerCase().includes(s.toLowerCase()),t.hidden=!e,i&&(e=Array.from(i.querySelectorAll('[role="option"]')),i.hidden=e.every(t=>t.hidden))):(t.hidden=!1,i&&(i.hidden=!1))}));var s,t=this.autocomplete.visibleOptions[0];t&&this.autocomplete.combobox.activate(t),this.autocomplete.checkIfListIsEmpty()}start(){this.autocomplete.checkIfListIsEmpty()}stop(){this.resetOptions()}resetOptions(){for(const t of this.autocomplete.groups)t.hidden=!1;for(const e of this.autocomplete.options)e.hidden=!1}}class wt{constructor(t){this.selectedValues=new Set,this.defaultSelectedValues=[],this.findByValue=e=>t=>t.getAttribute("value")===e,this.autocomplete=t}connected(){this.defaultSelectedValues=this.tags.reduce((t,e)=>{var e=e.querySelector('[data-behavior="hidden-field"]'),i=e.value;return this.selectedValues.add(i),t.push({value:i,text:e.getAttribute("data-text")||""}),t},[])}start(){this.selectOrDeselectOptions(),this.firstActivableOption&&this.autocomplete.combobox.activate(this.firstActivableOption,{scroll:!0})}stop(){this.autocomplete.input.value=""}reset(){this.clear(),this.defaultSelectedValues.forEach(({value:t,text:e})=>this.setValue(t,e))}select(t){var e=t.getAttribute("value"),t=t.dataset["text"];e&&(this.selectedValues.has(e)?this.removeValue(e):this.setValue(e,t||""))}setValue(t,e){this.selectedValues.has(t)||(this.selectedValues.add(t),this.insertTag(t,e.trim()),this.toggleSelectedClass(),this.required=this.autocomplete.required,this.autocomplete.open&&(e=this.autocomplete.options.find(this.findByValue(t)))&&this.autocomplete.combobox.select(e))}clear(){this.selectedValues.forEach(t=>this.removeValue(t))}removeValue(t){this.selectedValues.has(t)&&(this.selectedValues.delete(t),this.removeTag(t),this.toggleSelectedClass(),this.required=this.autocomplete.required,t=this.autocomplete.options.find(this.findByValue(t)))&&this.autocomplete.combobox.deselect(t)}set required(t){!t||0<this.selectedValues.size?this.autocomplete.input.required=!1:this.autocomplete.input.required=!0}selectOrDeselectOptions(){for(const e of this.autocomplete.options){var t=e.getAttribute("value");t&&this.selectedValues.has(t)?this.autocomplete.combobox.select(e):this.autocomplete.combobox.deselect(e)}}insertTag(t,e){var i=this.template.content.cloneNode(!0),s=i.querySelector('[data-behavior="tag"]'),o=i.querySelector('[data-behavior="text"]'),n=i.querySelector('[data-behavior="hidden-field"]');s.setAttribute("value",t),s.setAttribute("data-text",e),o.innerText=e,n.value=t,n.setAttribute("data-text",e),this.autocomplete.control.insertBefore(i,this.template)}removeTag(t){t=this.tags.find(this.findByValue(t));null!=t&&t.remove()}toggleSelectedClass(){this.autocomplete.toggleSelectedClass(!!this.selectedValues.size)}get firstActivableOption(){return this.autocomplete.options.find(t=>this.selectedValues.has(t.getAttribute("value")))||this.autocomplete.visibleOptions[0]}get tags(){return this.autocomplete.tags}get template(){return this.autocomplete.querySelector('[data-behavior="tag-template"]')}}class Et{constructor(t){this.cachedOptions="",this.autocomplete=t,this.makeRequest=function(e,i){let s;function t(...t){clearTimeout(s),s=setTimeout(()=>{e.apply(this,t)},i)}return t.clear=()=>{clearTimeout(s)},t}(this.makeRequest.bind(this),300)}async search(t){this.autocomplete.setAttribute("loading",""),this.autocomplete.removeAttribute("error"),await this.makeRequest(t)}start(){this.cachedOptions?this.insertOptions(this.cachedOptions,{cached:!0}):this.search("")}stop(){}async makeRequest(t){var e=(this.emit("loadstart"),null!=(e=this.abortController)&&e.abort(),this.abortController=new AbortController)["signal"],i=new URL(this.autocomplete.src,window.location.href),s=new URLSearchParams(i.search.slice(1));s.append(this.autocomplete.param,t),i.search=s.toString();try{var o=await fetch(i.toString(),{signal:e,credentials:"same-origin",headers:{accept:"text/fragment+html"}});if(!o.ok)throw new Error(await o.text());var n=await o.text();""===t&&(this.cachedOptions=n),await this.insertOptions(n),this.abortController=void 0,this.emit("load"),this.autocomplete.removeAttribute("loading"),this.emit("loadend")}catch(t){t instanceof Error&&"AbortError"===t.name||(this.abortController=void 0,this.autocomplete.setAttribute("error",""),this.emit("error"),this.autocomplete.removeAttribute("loading"),this.emit("loadend"))}}async insertOptions(t,{cached:e=!1}={}){this.autocomplete.optionsContainer.innerHTML=t,this.autocomplete.checkIfListIsEmpty(),e||this.autocomplete.combobox.initializeOptions(),this.autocomplete.selectVariant.start(),await this.autocomplete.reposition()}emit(t){this.autocomplete.emit(t,{bubbles:!1,prefix:!1})}}class At{constructor(t){this.defaultValue="",this.defaultText="",this.autocomplete=t}connected(){var t;this.defaultValue=this.hiddenField.value,this.defaultText=null!=(t=this.hiddenField.getAttribute("data-text"))?t:""}start(){var t;this.selectedOption?(this.autocomplete.combobox.select(this.selectedOption),this.autocomplete.combobox.activate(this.selectedOption,{scroll:!0})):(t=this.autocomplete.visibleOptions[0])&&this.autocomplete.combobox.activate(t,{scroll:!0})}stop(){var t=this.hiddenField.dataset["text"];this.autocomplete.input.value=null!=t?t:""}reset(){this.setValue(this.defaultValue,this.defaultText)}select(t){var e=null!=(e=t.getAttribute("value"))?e:"",t=t.dataset["text"];this.setValue(e,t||""),this.autocomplete.hide()}setValue(t,e){this.hiddenField.value=t;e=e.trim();this.hiddenField.setAttribute("data-text",e),this.autocomplete.input.value=e,this.autocomplete.toggleSelectedClass(!!t)}clear(){this.setValue("","")}set required(t){this.autocomplete.input.required=t}get selectedOption(){return this.autocomplete.options.find(t=>t.getAttribute("value")===this.autocomplete.value)}get hiddenField(){return this.autocomplete.querySelector('input[data-behavior="hidden-field"]')}}let p=class extends l{constructor(){super(),this.open=!1,this.disabled=!1,this.required=!1,this.multiple=!1,this.param="q",this.autoSize=!0,this.autoSizePadding=4,this.firstFocus=!0,this.preventOutsideClickEvent=!1,this.handleFormReset=this.handleFormReset.bind(this)}connected(){var t;null!=(t=this.form)&&t.addEventListener("reset",this.handleFormReset),this.floatingUI=gt(this,{referenceElement:this.control,popupElement:this.listbox,placement:"bottom",sync:"width",offsetOptions:4,autoSize:this.autoSize?"height":void 0,autoSizePadding:this.autoSizePadding}),bt(this,{boundaries:[this.control,this.listbox],callback:(t,e)=>{this.preventOutsideClickEvent&&!ft(e)?t.preventDefault():this.open&&this.hide(),this.preventOutsideClickEvent=!1}}),this.combobox=new lt(this.input,this.listbox,{multiple:this.multiple}),this.selectVariant=new(this.multiple?wt:At)(this),this.selectVariant.connected(),this.searchVariant=new(this.src?Et:yt)(this),this.selectVariant.required=this.required}disconnected(){var t;this.hide(),null!=(t=this.form)&&t.removeEventListener("reset",this.handleFormReset),this.firstFocus=!0,this.preventOutsideClickEvent=!1}disabledChanged(t){this.input.disabled=t,this.clearButton&&(this.clearButton.disabled=t);for(const e of this.tagDismissButtons)e.disabled=t}requiredChanged(t){this.selectVariant.required=t}srcChanged(t){this.clear(),this.searchVariant=new(t?Et:yt)(this)}handleMousedown(t){t.target!==this.input&&t.preventDefault()}handleClick(t){this.disabled||(this.focus(),t.target.hasAttribute("data-trigger")&&this.show(),this.firstFocus&&this.input.value&&this.input.select(),this.firstFocus=!1)}handleInputMousedown(t){this.disabled||1===t.buttons&&this.show()}async handleInputBlur(){this.preventOutsideClickEvent=this.open,await this.hide(),this.firstFocus=!0}handleInputKeydown(t){var e,i,s;switch(t.key){case"Enter":this.open&&t.preventDefault();break;case"Escape":this.open&&(t.preventDefault(),t.stopPropagation(),this.hide());break;case"ArrowDown":t.altKey&&!this.open&&(t.preventDefault(),this.show());break;case"ArrowUp":t.altKey&&this.open&&(t.preventDefault(),this.hide());break;case"Backspace":this.multiple&&!this.input.value&&(e=this.removeLastTag())&&(t.preventDefault(),i=null!=(i=e.getAttribute("value"))?i:"",s=e.dataset["text"],this.emit("remove",{detail:{target:e,value:i,text:s||""}}))}}handleCommit(t){t.stopPropagation();var e,i,t=t.target;t instanceof HTMLElement&&(this.selectVariant.select(t),e=null!=(e=t.getAttribute("value"))?e:"",i=t.dataset["text"],this.emit("commit",{detail:{target:t,value:e,text:i||""}}))}handleFormReset(){this.reset(),this.hide(),this.emit("reset")}handleClear(){this.clear(),this.hide(),this.emit("clear")}handleTagRemove(t){var e,i,t=t.target.closest('[data-behavior="tag"]');t&&(this.removeTag(t),e=null!=(e=t.getAttribute("value"))?e:"",i=t.dataset["text"],this.emit("remove",{detail:{target:t,value:e,text:i||""}}))}handleInput(t){var t=t["target"];t instanceof HTMLInputElement&&(t=t.value.trim(),this.show(),this.searchVariant.search(t))}show(){this.open||(this.emit("show"),this.open=!0,this.floatingUI.start(),this.combobox.start(),this.selectVariant.start(),this.searchVariant.start(),this.emit("shown"))}async hide(){this.open&&(this.emit("hide"),this.open=!1,this.combobox.stop(),this.selectVariant.stop(),this.searchVariant.stop(),this.removeAttribute("no-options"),this.removeAttribute("error"),await this.floatingUI.stop(),this.emit("hidden"))}setValue(e,t){var i=this.options.find(t=>t.getAttribute("value")===e),t=t||(null==i?void 0:i.getAttribute("data-text"))||"";this.selectVariant.setValue(e,t)}removeValue(t){this.multiple&&t?this.selectVariant.removeValue(t):this.selectVariant.clear()}activate(t,{scroll:e=!0}={}){this.combobox.activate(t,{scroll:e})}deactivate(){this.combobox.deactivate()}focus(t){this.input.focus(t)}blur(){this.input.blur()}reset(){this.selectVariant.reset()}clear(){this.selectVariant.clear()}async reposition(){await this.floatingUI.update()}removeLastTag(){var t=this.tags[this.tags.length-1];if(t)return this.removeTag(t),t}removeTag(t){t=t.getAttribute("value");t&&this.removeValue(t)}checkIfListIsEmpty(){this.toggleAttribute("no-options",0===this.visibleOptions.length)}toggleSelectedClass(t){this.classList.toggle("awc-autocomplete--selected",t)}get value(){var t;return this.multiple?this.tags.map(t=>{return null!=(t=t.getAttribute("value"))?t:""}):null!=(t=null==(t=this.querySelector('input[data-behavior="hidden-field"]'))?void 0:t.value)?t:""}get options(){return this.combobox.options}get visibleOptions(){return this.options.filter(t=>!t.hidden)}get activeOption(){return this.combobox.activeOption}get form(){return this.closest("form")}get tags(){return[...this.querySelectorAll('[data-behavior="tag"]')]}};t([i({type:Boolean})],p.prototype,"open",void 0),t([i({type:Boolean})],p.prototype,"disabled",void 0),t([i({type:Boolean})],p.prototype,"required",void 0),t([i({type:Boolean})],p.prototype,"multiple",void 0),t([i()],p.prototype,"src",void 0),t([i()],p.prototype,"param",void 0),t([i({type:Boolean})],p.prototype,"autoSize",void 0),t([i({type:Number})],p.prototype,"autoSizePadding",void 0),t([o()],p.prototype,"control",void 0),t([o()],p.prototype,"input",void 0),t([o()],p.prototype,"listbox",void 0),t([o()],p.prototype,"optionsContainer",void 0),t([o()],p.prototype,"clearButton",void 0),t([I()],p.prototype,"tagDismissButtons",void 0),t([I()],p.prototype,"groups",void 0),p=t([s("awc-autocomplete")],p);const m=new Set;let v=class extends l{constructor(){super(...arguments),this.open=!1,this.hideOnOutsideClick=!0}connected(){this.open&&this.show()}disconnected(){this.hideWithoutEmitting()}show(){this.dialog.showModal(),this.hideOverflow(),this.open=!0}hide(){this.hideWithoutEmitting(),this.emit("hidden")}handleClick(t){var e;this.hideOnOutsideClick&&!t.defaultPrevented&&(e=t.target)instanceof HTMLElement&&e===this.dialog&&((e=e.getBoundingClientRect()).top<=t.clientY&&t.clientY<=e.top+e.height&&e.left<=t.clientX&&t.clientX<=e.left+e.width||this.hide())}handleKeydown(t){"Escape"===t.key&&(t.stopPropagation(),this.emit("hidden"))}hideWithoutEmitting(){var t;this.dialog.open&&(this.dialog.close(),null!=(t=this.nestedDialog))&&t.hide(),this.showOverflow(),this.open=!1}hideOverflow(){this._scrollLockController=function(t,{abortSignal:e}={}){m.add(t);var i,s=new AbortController,e=e||s.signal,o=window.innerWidth-document.documentElement.clientWidth;let n,r;return void 0===n&&0<o&&(i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10),n=document.body.style.paddingRight,document.body.style.paddingRight=i+o+"px"),void 0===r&&(r=document.body.style.overflow,document.body.style.overflow="hidden"),e.addEventListener("abort",()=>{m.delete(t),0===m.size&&(void 0!==n&&(document.body.style.paddingRight=n,n=void 0),void 0!==r)&&(document.body.style.overflow=r,r=void 0)}),s}(this)}showOverflow(){var t;null!=(t=this._scrollLockController)&&t.abort()}get nestedDialog(){return this.querySelector(this.identifier)}};t([i({type:Boolean})],v.prototype,"open",void 0),t([i({type:Boolean})],v.prototype,"hideOnOutsideClick",void 0),t([o()],v.prototype,"dialog",void 0),v=t([s("awc-dialog")],v);var f=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:i="",...s}={}){super(t,s),this.oldState=String(e||""),this.newState=String(i||"")}},Ot=new WeakMap;function kt(t,e,i){Ot.set(t,setTimeout(()=>{Ot.has(t)&&t.dispatchEvent(new f("toggle",{cancelable:!1,oldState:e,newState:i}))},0))}var g=globalThis.ShadowRoot||function(){},St=globalThis.HTMLDialogElement||function(){},b=new WeakMap,w=new WeakMap,E=new WeakMap;function A(t){return E.get(t)||"hidden"}var O=new WeakMap;function k(t,e){return("auto"===t.popover||"manual"===t.popover)&&t.isConnected&&!(e&&"showing"!==A(t)||!e&&"hidden"!==A(t)||t instanceof St&&t.hasAttribute("open")||document.fullscreenElement===t)}function xt(t){return t?Array.from(w.get(t.ownerDocument)||[]).indexOf(t)+1:0}function Lt(t){var e=Mt(t),t=function(t){for(;t;){var e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=(t=t.parentElement||x(t))instanceof g?t.host:t)instanceof Document)return}}(t);return xt(e)>xt(t)?e:t}function S(t){var e=w.get(t);for(const i of e||[]){if(i.isConnected)return i;e.delete(i)}return null}function x(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?x(t.parentNode):t}function Mt(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===E.get(t))return t;if((t=(t=t instanceof Element&&t.assignedSlot||t.parentElement||x(t))instanceof g?t.host:t)instanceof Document)return}}function Tt(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t,i=(e=e.shadowRoot?e.shadowRoot:e).querySelector("[autofocus]");if(i)return i;for(const r of e.querySelectorAll("slot"))for(const a of r.assignedElements({flatten:!0})){if(a.hasAttribute("autofocus"))return a;if(i=a.querySelector("[autofocus]"))return i}var s,o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let n=o.currentNode;for(;n;){if(!((s=n).hidden||s instanceof g||(s instanceof HTMLButtonElement||s instanceof HTMLInputElement||s instanceof HTMLSelectElement||s instanceof HTMLTextAreaElement||s instanceof HTMLOptGroupElement||s instanceof HTMLOptionElement||s instanceof HTMLFieldSetElement)&&s.disabled||s instanceof HTMLInputElement&&"hidden"===s.type||s instanceof HTMLAnchorElement&&""===s.href||"number"!=typeof s.tabIndex||-1===s.tabIndex))return n;n=o.nextNode()}}var L=new WeakMap;function M(e){if(k(e,!1)){var i=e.ownerDocument;if(e.dispatchEvent(new f("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))&&k(e,!1)){let t=!1;if("auto"===e.popover){var s=e.getAttribute("popover");if(P(function(t){const e=new Map;let i=0;for(const n of w.get(t.ownerDocument)||[])e.set(n,i),i+=1;e.set(t,i),i+=1;let s=null;var o;return t=t.parentElement||x(t),s=null!==(t=Mt(t))&&(o=e.get(t),null===s||e.get(s)<o)?t:s}(e)||i,!1,!0),s!==e.getAttribute("popover")||!k(e,!1))return}S(i)||(t=!0),L.delete(e);s=i.activeElement;e.classList.add(":popover-open"),E.set(e,"showing"),b.has(i)||b.set(i,new Set),b.get(i).add(e),Tt(e)?.focus(),"auto"===e.popover&&(w.has(i)||w.set(i,new Set),w.get(i).add(e),Vt(O.get(e),!0)),t&&s&&"auto"===e.popover&&L.set(e,s),kt(e,"closed","open")}}}function T(t,e=!1,i=!1){var s;k(t,!0)&&(s=t.ownerDocument,"auto"===t.popover&&(P(t,e,i),!k(t,!0))||(Vt(O.get(t),!1),O.delete(t),i&&(t.dispatchEvent(new f("beforetoggle",{oldState:"open",newState:"closed"})),!k(t,!0)))||(b.get(s)?.delete(t),w.get(s)?.delete(t),t.classList.remove(":popover-open"),E.set(t,"hidden"),i&&kt(t,"open","closed"),(s=L.get(t))&&(L.delete(t),e)&&s.focus()))}function Pt(t,e=!1,i=!1){let s=S(t);for(;s;)T(s,e,i),s=S(t)}function P(t,e,i){var s=t.ownerDocument||t;if(t instanceof Document)return Pt(s,e,i);let o=null,n=!1;for(const r of w.get(s)||[])if(r===t)n=!0;else if(n){o=r;break}if(!n)return Pt(s,e,i);for(;o&&"showing"===A(o)&&w.get(s)?.size;)T(o,e,i)}var C=new WeakMap;function Ct(t){var e,i;t.isTrusted&&(i=t.composedPath()[0])&&S(e=i.ownerDocument)&&((i=Lt(i))&&"pointerdown"===t.type?C.set(e,i):"pointerup"===t.type&&(t=C.get(e)===i,C.delete(e),t)&&P(i||e,!1,!0))}var Nt=new WeakMap;function Vt(t,e=!1){var i;t&&(Nt.has(t)||Nt.set(t,t.getAttribute("aria-expanded")),(i=t.popoverTargetElement)instanceof HTMLElement&&"auto"===i.popover?t.setAttribute("aria-expanded",String(e)):(i=Nt.get(t))?t.setAttribute("aria-expanded",i):t.removeAttribute("aria-expanded"))}var Dt=globalThis.ShadowRoot||function(){};function N(t,e,i){const s=t[e];Object.defineProperty(t,e,{value(t){return s.call(this,i(t))}})}var qt=/(^|[^\\]):popover-open\b/g;function It(){var t="function"==typeof globalThis.CSSLayerBlockRule;return`
|
6
6
|
${t?"@layer popover-polyfill {":""}
|
7
7
|
:where([popover]) {
|
8
8
|
position: fixed;
|
@@ -64,4 +64,4 @@ ${t?"@layer popover-polyfill {":""}
|
|
64
64
|
}
|
65
65
|
}
|
66
66
|
${t?"}":""}
|
67
|
-
`}var V=null;function
|
67
|
+
`}var V=null;function Bt(t){var e,i=It();if(null===V)try{(V=new CSSStyleSheet).replaceSync(i)}catch{V=!1}!1===V?((e=document.createElement("style")).textContent=i,(t instanceof Document?t.head:t).prepend(e)):t.adoptedStyleSheets=[V,...t.adoptedStyleSheets]}function Rt(){if("undefined"!=typeof window){window.ToggleEvent=window.ToggleEvent||f,N(Document.prototype,"querySelector",e),N(Document.prototype,"querySelectorAll",e),N(Element.prototype,"querySelector",e),N(Element.prototype,"querySelectorAll",e),N(Element.prototype,"matches",e),N(Element.prototype,"closest",e),N(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){var t;return this.hasAttribute("popover")?""===(t=(this.getAttribute("popover")||"").toLowerCase())||"auto"==t?"auto":"manual":null},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){M(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){T(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===E.get(this)&&void 0===t||!1===t?T(this,!0,!0):void 0!==t&&!0!==t||M(this)}}});const s=Element.prototype.attachShadow,o=(s&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){t=s.call(this,t);return Bt(t),t}}}),HTMLElement.prototype.attachInternals),n=(o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){var t=o.call(this);return t.shadowRoot&&Bt(t.shadowRoot),t}}}),new WeakMap),r=(i(HTMLButtonElement),i(HTMLInputElement),t=>{var e,i=t.composedPath(),s=i[0];s instanceof Element&&!s?.shadowRoot&&((s=x(s))instanceof Dt||s instanceof Document)&&(s=i.find(t=>t.matches?.("[popovertargetaction],[popovertarget]")))&&((s=(i=s).popoverTargetElement)instanceof HTMLElement&&(e=A(s),"show"===i.popoverTargetAction&&"showing"===e||"hide"===i.popoverTargetAction&&"hidden"===e||("showing"===e?T(s,!0,!0):k(s,!1)&&(O.set(s,i),M(s)))),t.preventDefault())}),a=t=>{var e=t.key,i=t.target;t.defaultPrevented||!i||"Escape"!==e&&"Esc"!==e||P(i.ownerDocument,!0,!0)};var t;function e(t){return t=t?.includes(":popover-open")?t.replace(qt,"$1.\\:popover-open"):t}function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){var t,e;return"button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type?null:(t=n.get(this))&&t.isConnected?t:t&&!t.isConnected?(n.delete(this),null):(t=x(this),e=this.getAttribute("popovertarget"),(t instanceof Document||t instanceof Dt)&&e&&t.getElementById(e)||null)}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){var t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}(t=document).addEventListener("click",r),t.addEventListener("keydown",a),t.addEventListener("pointerdown",Ct),t.addEventListener("pointerup",Ct),Bt(document)}}"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||Rt();const D=new Set;let q=class extends l{constructor(){super(...arguments),this.placement="bottom",this.strategy="fixed",this.clickBoundaries=[]}connected(){this.floatingUI=gt(this,{referenceElement:this.button,popupElement:this.panel,arrowElement:this.arrow,arrowPadding:this.arrowPadding,placement:this.placement,strategy:this.strategy,offsetOptions:8,flipOptions:{fallbackAxisSideDirection:"end"}}),bt(this,{boundaries:this.boundaries,callback:(t,e)=>{this.open&&!this.hasNestedOpenPopovers&&(this.hide(),ft(e)||(t.preventDefault(),this.button.focus()))}})}disconnected(){this.hide()}async handleToggle(){this.open?(D.add(this),this.closeOtherPopovers(),this.emit("show"),this.button.setAttribute("aria-expanded","true"),this.floatingUI.start(),this.emit("shown")):(this.emit("hide"),this.button.setAttribute("aria-expanded","false"),await this.floatingUI.stop(),D.delete(this),this.emit("hidden"))}toggle(){this.panel.togglePopover()}show(){this.open||this.panel.showPopover()}hide(t){this.open&&(this.panel.hidePopover(),t)&&this.button.focus()}handleKeydown(t){var e;"Escape"!==t.key||(e=t.target.closest(this.identifier))!==this&&null!=e&&e.open||this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.button.focus())}async reposition(){await this.floatingUI.update()}closeOtherPopovers(){for(const t of D)t===this||t.contains(this)||t.hide()}get hasNestedOpenPopovers(){var t=[...D].find(t=>t===this);return!!t&&Array.from(t.querySelectorAll(this.identifier)).some(t=>D.has(t))}get arrowPadding(){return st(getComputedStyle(this.panel).borderRadius)||2}get boundaries(){return this.clickBoundaries.map(t=>document.querySelector(t)).concat([this.button,this.panel])}get open(){if(!this.panel)return!1;try{return this.panel.matches(":popover-open")}catch(t){return this.panel.matches(".\\:popover-open")}}};t([i()],q.prototype,"placement",void 0),t([i()],q.prototype,"strategy",void 0),t([i({type:Array})],q.prototype,"clickBoundaries",void 0),t([o()],q.prototype,"button",void 0),t([o()],q.prototype,"panel",void 0),t([o()],q.prototype,"arrow",void 0),q=t([s("awc-popover")],q)});
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% if multiple? %>
|
4
4
|
<%= hidden_field @object_name, @method_name, id: nil, multiple: true, value: nil, data: { behavior: "hidden-field" }, **hidden_field_args if @include_hidden %>
|
5
5
|
<% @selected&.each do |selected| %>
|
6
|
-
<div class="awc-autocomplete-tag" value="<%= selected.value %>" data-behavior="tag" data-persisted>
|
6
|
+
<div class="awc-autocomplete-tag" value="<%= selected.value %>" data-text="<%= selected.text %>" data-behavior="tag" data-persisted>
|
7
7
|
<span class="awc-autocomplete-tag-text" data-behavior="text"><%= selected.text %></span>
|
8
8
|
<span class="awc-autocomplete-tag-end-adornment">
|
9
9
|
<%= content_tag :button, type: :button, class: "awc-autocomplete-tag-dismiss-btn btn", tabindex: "-1", title: "Remove", disabled: @disabled, data: { action: "click->awc-autocomplete#handleTagRemove", target: "awc-autocomplete.tagDismissButtons" } do %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: impulse_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abeidahmed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: view_component
|