impulse_view_components 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8904d1c560f10a20815ffa6e5ea5b95f8d336ce77a8a515ab6f39cb683a3a6c7
|
4
|
+
data.tar.gz: 9d3976ae70dd32bfc2cb31a2a9157087b1c90fd3446ba10306c0fb8d0005c8bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7235fc8ad8b48ef0333ddc788891b5b7ad55f7e7377ee3fa4d7a6e2512e6611799a17434b1d4b3d0a41fce0c6ae2882b2b8906c1210c16b63987917c11890c92
|
7
|
+
data.tar.gz: b5a2d820d28efc7a240264fc38365025b795f6a5cdcba6729f10ad169f2f2936f496989c5fec9888dd7053411571ffee511995eb2204df5d91348edd815127f6
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ 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.2] - 2025-07-04
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Turn off adjusting autocomplete's height dynamically by default ([#166](https://github.com/Ambiki/impulse_view_components/pull/165))
|
14
|
+
|
9
15
|
## [0.7.1] - 2025-07-04
|
10
16
|
|
11
17
|
### Fixed
|
@@ -167,7 +173,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
167
173
|
|
168
174
|
- Everything!
|
169
175
|
|
170
|
-
[unreleased]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.
|
176
|
+
[unreleased]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.2...HEAD
|
177
|
+
[0.7.2]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.1...v0.7.2
|
171
178
|
[0.7.1]: https://github.com/Ambiki/impulse_view_components/compare/v0.7.0...v0.7.1
|
172
179
|
[0.7.0]: https://github.com/Ambiki/impulse_view_components/compare/v0.6.0...v0.7.0
|
173
180
|
[0.6.0]: https://github.com/Ambiki/impulse_view_components/compare/v0.5.1...v0.6.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: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)}}
|
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-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,kB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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":"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,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AAA,CACA,uBAAA,CAAA,CAIJ,+BACE,KACE,SAAA,CACA,0BAAA,CAEF,GACE,SAAA,CACA,uBAAA,CAAA,CAIJ,+BACE,KACE,SAAA,CACA,yBAAA,CAEF,GACE,SAAA,CACA,uBAAA,CAAA","file":"impulse_view_components.css"}
|
@@ -2,7 +2,7 @@
|
|
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}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`
|
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=!1,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;
|