/**
 * @license
 *
 * Copyright IBM Corp. 2019, 2020
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */
/**
 * @license
 * 
 * This bundle contains the following third-party dependencies:
 * 
 * lit-element:
 * 
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 * 
 * lit-html:
 * 
 * @license
 * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 * 
 * flatpickr:
 * 
 flatpickr v4.6.1, @license MIT
 * 
 * Also refer to the following links for the license of other third-party dependencies:
 * 
 * https://www.npmjs.com/package/@carbon/icons
 * https://www.npmjs.com/package/lodash-es
 */

import{a as e,c as r,_ as a,L as t,h as s,s as i}from"./settings-33bc82ad.js";import{c as n}from"./class-map-144f86a7.js";import{s as o}from"./16-8b1addcb.js";import{s as c}from"./20-dcf1546f.js";import{s as b}from"./spread-f4ee602b.js";import{i as l}from"./if-non-empty-80d8bd7f.js";import{F as h}from"./focus-e60fabbb.js";import{I as x}from"./input-5ef4fc68.js";import{F as d}from"./shared-enums-1d46980b.js";import{p,c as u}from"./decorators-489b6336.js";var f=r(['a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:""}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:IBM Plex Sans,Helvetica Neue,Arial,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-productive-heading-06-font-size,2.625rem);font-weight:var(--cds-productive-heading-06-font-weight,300);line-height:var(--cds-productive-heading-06-line-height,1.199);letter-spacing:var(--cds-productive-heading-06-letter-spacing,0)}h2{font-size:var(--cds-productive-heading-05-font-size,2rem);font-weight:var(--cds-productive-heading-05-font-weight,400);line-height:var(--cds-productive-heading-05-line-height,1.25);letter-spacing:var(--cds-productive-heading-05-letter-spacing,0)}h3{font-size:var(--cds-productive-heading-04-font-size,1.75rem);font-weight:var(--cds-productive-heading-04-font-weight,400);line-height:var(--cds-productive-heading-04-line-height,1.28572);letter-spacing:var(--cds-productive-heading-04-letter-spacing,0)}h4{font-size:var(--cds-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-productive-heading-03-font-weight,400);line-height:var(--cds-productive-heading-03-line-height,1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing,0)}h5{font-size:var(--cds-productive-heading-02-font-size,1rem);font-weight:var(--cds-productive-heading-02-font-weight,600);line-height:var(--cds-productive-heading-02-line-height,1.375);letter-spacing:var(--cds-productive-heading-02-letter-spacing,0)}h6{font-size:var(--cds-productive-heading-01-font-size,.875rem);font-weight:var(--cds-productive-heading-01-font-weight,600);line-height:var(--cds-productive-heading-01-line-height,1.28572);letter-spacing:var(--cds-productive-heading-01-letter-spacing,.16px)}p{font-size:var(--cds-body-long-02-font-size,1rem);font-weight:var(--cds-body-long-02-font-weight,400);line-height:var(--cds-body-long-02-line-height,1.5);letter-spacing:var(--cds-body-long-02-letter-spacing,0)}a{color:#0f62fe}em{font-style:italic}@-webkit-keyframes skeleton{0%{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}20%{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}28%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}51%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}58%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}82%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}83%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}96%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}to{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}}@keyframes skeleton{0%{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}20%{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}28%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}51%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}58%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}82%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}83%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}96%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}to{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}}.bx--fieldset{box-sizing:border-box;padding:0;border:0;font-family:inherit;font-size:100%;vertical-align:baseline;margin:0 0 2rem}.bx--fieldset *,.bx--fieldset :after,.bx--fieldset :before{box-sizing:inherit}.bx--fieldset--no-margin{margin-bottom:0}.bx--form-item{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.bx--label{box-sizing:border-box;padding:0;border:0;font-family:inherit;font-size:100%;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px);display:inline-block;margin:0 0 .5rem;color:var(--cds-text-02,#525252);font-weight:400;line-height:1rem;vertical-align:baseline}.bx--label *,.bx--label :after,.bx--label :before{box-sizing:inherit}.bx--label .bx--tooltip__trigger{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px)}.bx--label.bx--skeleton{position:relative;padding:0;border:none;background:var(--cds-skeleton-01,#e5e5e5);box-shadow:none;pointer-events:none;width:4.6875rem;height:.875rem}.bx--label.bx--skeleton:active,.bx--label.bx--skeleton:focus,.bx--label.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--label.bx--skeleton:before{position:absolute;top:0;right:0;width:100%;height:100%;-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-02,#c6c6c6);content:"";will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.bx--label.bx--skeleton:before{-webkit-animation:none;animation:none}}input[type=number]{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace}.bx--combo-box[data-invalid] .bx--text-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline:2px solid var(--cds-support-01,#da1e28);outline-offset:-2px}@media screen and (prefers-contrast){.bx--combo-box[data-invalid] .bx--text-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline-style:dotted}}.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker-input__wrapper--warn~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--list-box--warning~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--number__input-wrapper--warning~.bx--form-requirement,.bx--select--warning .bx--select-input__wrapper~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--text-input__field-wrapper--warning>.bx--text-input~.bx--form-requirement,.bx--text-input__field-wrapper--warning~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,input[data-invalid]~.bx--form-requirement{display:block;overflow:visible;max-height:12.5rem;font-weight:400}.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,input[data-invalid]~.bx--form-requirement{color:var(--cds-text-error,#da1e28)}.bx--form--fluid .bx--text-input__field-wrapper--warning,.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]{display:block}.bx--form--fluid .bx--fieldset{margin:0}.bx--form--fluid input[data-invalid]{outline:none}.bx--form--fluid .bx--form-requirement{padding:.5rem 1rem .5rem 2.5rem;margin:0}input:not(output):not([data-invalid]):-moz-ui-invalid{box-shadow:none}.bx--form-requirement{box-sizing:border-box;padding:0;border:0;font-family:inherit;font-size:100%;vertical-align:baseline;font-size:var(--cds-caption-01-font-size,.75rem);font-weight:var(--cds-caption-01-font-weight,400);line-height:var(--cds-caption-01-line-height,1.33333);letter-spacing:var(--cds-caption-01-letter-spacing,.32px);display:none;overflow:hidden;max-height:0;margin:.25rem 0 0}.bx--form-requirement *,.bx--form-requirement :after,.bx--form-requirement :before{box-sizing:inherit}.bx--select--inline .bx--form__helper-text{margin-top:0}.bx--form__helper-text{font-size:var(--cds-helper-text-01-font-size,.75rem);line-height:var(--cds-helper-text-01-line-height,1.33333);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);z-index:0;width:100%;margin-top:.25rem;color:var(--cds-text-02,#525252);opacity:1}.bx--form__helper-text--disabled,.bx--label--disabled,fieldset[disabled] .bx--form__helper-text,fieldset[disabled] .bx--label{color:var(--cds-disabled-02,#c6c6c6)}.bx--search,:host(bx-search){position:relative;display:flex;width:100%;align-items:center}.bx--search .bx--label,:host(bx-search) .bx--label{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);visibility:inherit;white-space:nowrap}.bx--search-input{box-sizing:border-box;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);outline:2px solid transparent;outline-offset:-2px;width:100%;order:1;padding:0 2.5rem;border:none;border-bottom:1px solid var(--cds-ui-04,#8d8d8d);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--cds-field-01,#f4f4f4);color:var(--cds-text-01,#161616);text-overflow:ellipsis;transition:background-color .11s cubic-bezier(.2,0,.38,.9),outline .11s cubic-bezier(.2,0,.38,.9)}.bx--search-input *,.bx--search-input :after,.bx--search-input :before{box-sizing:inherit}.bx--search-input:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus{outline-style:dotted}}.bx--search-input::-webkit-input-placeholder{color:var(--cds-text-05,#6f6f6f);opacity:1}.bx--search-input:-ms-input-placeholder{color:var(--cds-text-05,#6f6f6f);opacity:1}.bx--search-input::-ms-input-placeholder{color:var(--cds-text-05,#6f6f6f);opacity:1}.bx--search-input::placeholder{color:var(--cds-text-05,#6f6f6f);opacity:1}.bx--search-input::-ms-clear{display:none}.bx--search-input[disabled]{border-bottom:1px solid transparent;background-color:var(--cds-field-disabled,#f4f4f4);color:var(--cds-disabled-02,#c6c6c6);cursor:not-allowed}.bx--search-input[disabled]::-webkit-input-placeholder{color:var(--cds-disabled-02,#c6c6c6)}.bx--search-input[disabled]:-ms-input-placeholder{color:var(--cds-disabled-02,#c6c6c6)}.bx--search-input[disabled]::-ms-input-placeholder{color:var(--cds-disabled-02,#c6c6c6)}.bx--search-input[disabled]::placeholder{color:var(--cds-disabled-02,#c6c6c6)}.bx--search--light .bx--search-close:before,.bx--search--light .bx--search-input,:host(bx-search[color-scheme=light]) .bx--search-close:before,:host(bx-search[color-scheme=light]) .bx--search-input{background:var(--cds-field-02,#fff)}.bx--search--sm.bx--search--expandable.bx--search--expanded .bx--search-input,.bx--search--sm .bx--search-input,:host(bx-search-skeleton[size=sm]) .bx--search-input,:host(bx-search[size=sm]) .bx--search-input{height:2rem;padding:0 var(--cds-spacing-07,2rem)}.bx--search--sm .bx--search-magnifier-icon,:host(bx-search-skeleton[size=sm]) .bx--search-magnifier-icon,:host(bx-search[size=sm]) .bx--search-magnifier-icon{right:.5rem}.bx--search--lg.bx--search--expandable.bx--search--expanded .bx--search-input,.bx--search--lg .bx--search-input,:host(bx-search) .bx--search-input,:host(bx-search-skeleton) .bx--search-input{height:2.5rem;padding:0 var(--cds-spacing-08,2.5rem)}.bx--search--lg .bx--search-magnifier-icon,:host(bx-search) .bx--search-magnifier-icon,:host(bx-search-skeleton) .bx--search-magnifier-icon{right:.75rem}.bx--search--xl.bx--search--expandable.bx--search--expanded .bx--search-input,.bx--search--xl .bx--search-input,:host(bx-search-skeleton[size=xl]) .bx--search-input,:host(bx-search[size=xl]) .bx--search-input{height:3rem;padding:0 var(--cds-spacing-09,3rem)}.bx--search-magnifier-icon{position:absolute;z-index:2;top:50%;right:var(--cds-spacing-05,1rem);width:1rem;height:1rem;fill:var(--cds-icon-02,#525252);pointer-events:none;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bx--search-close{box-sizing:border-box;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;display:inline-block;padding:0;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;cursor:pointer;outline:2px solid transparent;outline-offset:-2px;position:absolute;top:0;left:0}.bx--search-close *,.bx--search-close :after,.bx--search-close :before{box-sizing:inherit}.bx--search-close::-moz-focus-inner{border:0}.bx--search-close:before{position:absolute;top:.0625rem;right:0;display:block;width:2px;height:calc(100% - 2px);background-color:var(--cds-field-01,#f4f4f4);content:"";transition:background-color .11s cubic-bezier(.2,0,.38,.9)}.bx--search-close:hover{border-bottom:1px solid var(--cds-ui-04,#8d8d8d)}.bx--search-close:hover:before{background-color:var(--cds-hover-field,#e5e5e5)}.bx--search-button{flex-shrink:0;margin-right:.125rem;background-color:var(--cds-field-01,#f4f4f4)}.bx--search-button svg{fill:currentColor;vertical-align:middle}.bx--search-close svg{fill:inherit}.bx--search-button,.bx--search-close{display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border-color:transparent;border-style:solid;border-width:1px 0;cursor:pointer;fill:var(--cds-icon-01,#161616);opacity:1;transition:opacity .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9),outline .11s cubic-bezier(.2,0,.38,.9),border .11s cubic-bezier(.2,0,.38,.9);visibility:inherit}.bx--search-button:hover,.bx--search-close:hover{background-color:var(--cds-hover-field,#e5e5e5)}.bx--search-button:focus,.bx--search-close:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-button:focus,.bx--search-close:focus{outline-style:dotted}}.bx--search-button:active,.bx--search-close:active{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px;background-color:var(--cds-selected-ui,#e0e0e0)}@media screen and (prefers-contrast){.bx--search-button:active,.bx--search-close:active{outline-style:dotted}}.bx--search--disabled.bx--search--expandable .bx--search-magnifier,.bx--search--disabled .bx--search-close{cursor:not-allowed;outline:none}.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover,.bx--search--disabled .bx--search-close:hover{border-bottom-color:transparent;background-color:transparent}.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover:before,.bx--search--disabled .bx--search-close:hover:before{background-color:transparent}.bx--search--disabled svg{fill:var(--cds-disabled-02,#c6c6c6)}.bx--search-close:active:before,.bx--search-close:focus:before{background-color:var(--cds-focus,#0f62fe)}.bx--search-input:focus~.bx--search-close:hover{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus~.bx--search-close:hover{outline-style:dotted}}.bx--search--sm.bx--search--expandable,.bx--search--sm.bx--search--expandable .bx--search-magnifier,.bx--search--sm .bx--search-close,.bx--search--sm~.bx--search-button,:host(bx-search-skeleton[size=sm]) .bx--search-close,:host(bx-search-skeleton[size=sm])~.bx--search-button,:host(bx-search-skeleton[size=sm].bx--search--expandable),:host(bx-search-skeleton[size=sm].bx--search--expandable) .bx--search-magnifier,:host(bx-search[size=sm]) .bx--search-close,:host(bx-search[size=sm])~.bx--search-button,:host(bx-search[size=sm].bx--search--expandable),:host(bx-search[size=sm].bx--search--expandable) .bx--search-magnifier{width:2rem;height:2rem}.bx--search--expandable:host(bx-search-skeleton[size=sm]) .bx--search-input::-webkit-input-placeholder,.bx--search--expandable:host(bx-search[size=sm]) .bx--search-input::-webkit-input-placeholder,.bx--search--sm.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 2rem}.bx--search--expandable:host(bx-search-skeleton[size=sm]) .bx--search-input:-ms-input-placeholder,.bx--search--expandable:host(bx-search[size=sm]) .bx--search-input:-ms-input-placeholder,.bx--search--sm.bx--search--expandable .bx--search-input:-ms-input-placeholder{padding:0 2rem}.bx--search--expandable:host(bx-search-skeleton[size=sm]) .bx--search-input::-ms-input-placeholder,.bx--search--expandable:host(bx-search[size=sm]) .bx--search-input::-ms-input-placeholder,.bx--search--sm.bx--search--expandable .bx--search-input::-ms-input-placeholder{padding:0 2rem}.bx--search--sm.bx--search--expandable .bx--search-input::placeholder,:host(bx-search-skeleton[size=sm].bx--search--expandable) .bx--search-input::placeholder,:host(bx-search[size=sm].bx--search--expandable) .bx--search-input::placeholder{padding:0 2rem}.bx--search--lg.bx--search--expandable,.bx--search--lg.bx--search--expandable .bx--search-magnifier,.bx--search--lg .bx--search-close,.bx--search--lg~.bx--search-button,:host(bx-search) .bx--search-close,:host(bx-search)~.bx--search-button,:host(bx-search-skeleton) .bx--search-close,:host(bx-search-skeleton)~.bx--search-button,:host(bx-search-skeleton.bx--search--expandable),:host(bx-search-skeleton.bx--search--expandable) .bx--search-magnifier,:host(bx-search.bx--search--expandable),:host(bx-search.bx--search--expandable) .bx--search-magnifier{width:2.5rem;height:2.5rem}.bx--search--expandable:host(bx-search) .bx--search-input::-webkit-input-placeholder,.bx--search--expandable:host(bx-search-skeleton) .bx--search-input::-webkit-input-placeholder,.bx--search--lg.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 2.5rem}.bx--search--expandable:host(bx-search) .bx--search-input:-ms-input-placeholder,.bx--search--expandable:host(bx-search-skeleton) .bx--search-input:-ms-input-placeholder,.bx--search--lg.bx--search--expandable .bx--search-input:-ms-input-placeholder{padding:0 2.5rem}.bx--search--expandable:host(bx-search) .bx--search-input::-ms-input-placeholder,.bx--search--expandable:host(bx-search-skeleton) .bx--search-input::-ms-input-placeholder,.bx--search--lg.bx--search--expandable .bx--search-input::-ms-input-placeholder{padding:0 2.5rem}.bx--search--lg.bx--search--expandable .bx--search-input::placeholder,:host(bx-search-skeleton.bx--search--expandable) .bx--search-input::placeholder,:host(bx-search.bx--search--expandable) .bx--search-input::placeholder{padding:0 2.5rem}.bx--search--xl.bx--search--expandable,.bx--search--xl.bx--search--expandable .bx--search-magnifier,.bx--search--xl .bx--search-close,.bx--search--xl~.bx--search-button,:host(bx-search-skeleton[size=xl]) .bx--search-close,:host(bx-search-skeleton[size=xl])~.bx--search-button,:host(bx-search-skeleton[size=xl].bx--search--expandable),:host(bx-search-skeleton[size=xl].bx--search--expandable) .bx--search-magnifier,:host(bx-search[size=xl]) .bx--search-close,:host(bx-search[size=xl])~.bx--search-button,:host(bx-search[size=xl].bx--search--expandable),:host(bx-search[size=xl].bx--search--expandable) .bx--search-magnifier{width:3rem;height:3rem}.bx--search--expandable:host(bx-search-skeleton[size=xl]) .bx--search-input::-webkit-input-placeholder,.bx--search--expandable:host(bx-search[size=xl]) .bx--search-input::-webkit-input-placeholder,.bx--search--xl.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 3rem}.bx--search--expandable:host(bx-search-skeleton[size=xl]) .bx--search-input:-ms-input-placeholder,.bx--search--expandable:host(bx-search[size=xl]) .bx--search-input:-ms-input-placeholder,.bx--search--xl.bx--search--expandable .bx--search-input:-ms-input-placeholder{padding:0 3rem}.bx--search--expandable:host(bx-search-skeleton[size=xl]) .bx--search-input::-ms-input-placeholder,.bx--search--expandable:host(bx-search[size=xl]) .bx--search-input::-ms-input-placeholder,.bx--search--xl.bx--search--expandable .bx--search-input::-ms-input-placeholder{padding:0 3rem}.bx--search--xl.bx--search--expandable .bx--search-input::placeholder,:host(bx-search-skeleton[size=xl].bx--search--expandable) .bx--search-input::placeholder,:host(bx-search[size=xl].bx--search--expandable) .bx--search-input::placeholder{padding:0 3rem}.bx--search-close--hidden{opacity:0;visibility:hidden}.bx--search--lg.bx--skeleton .bx--search-input,.bx--search--sm.bx--skeleton .bx--search-input,.bx--search--xl.bx--skeleton .bx--search-input,:host(bx-search-skeleton.bx--skeleton) .bx--search-input,:host(bx-search.bx--skeleton) .bx--search-input{position:relative;padding:0;border:none;background:var(--cds-skeleton-01,#e5e5e5);box-shadow:none;pointer-events:none;width:100%}.bx--search--lg.bx--skeleton .bx--search-input:active,.bx--search--lg.bx--skeleton .bx--search-input:focus,.bx--search--lg.bx--skeleton .bx--search-input:hover,.bx--search--sm.bx--skeleton .bx--search-input:active,.bx--search--sm.bx--skeleton .bx--search-input:focus,.bx--search--sm.bx--skeleton .bx--search-input:hover,.bx--search--xl.bx--skeleton .bx--search-input:active,.bx--search--xl.bx--skeleton .bx--search-input:focus,.bx--search--xl.bx--skeleton .bx--search-input:hover,:host(bx-search-skeleton.bx--skeleton) .bx--search-input:active,:host(bx-search-skeleton.bx--skeleton) .bx--search-input:focus,:host(bx-search-skeleton.bx--skeleton) .bx--search-input:hover,:host(bx-search.bx--skeleton) .bx--search-input:active,:host(bx-search.bx--skeleton) .bx--search-input:focus,:host(bx-search.bx--skeleton) .bx--search-input:hover{border:none;cursor:default;outline:none}.bx--search--lg.bx--skeleton .bx--search-input:before,.bx--search--sm.bx--skeleton .bx--search-input:before,.bx--search--xl.bx--skeleton .bx--search-input:before,:host(bx-search-skeleton.bx--skeleton) .bx--search-input:before,:host(bx-search.bx--skeleton) .bx--search-input:before{position:absolute;top:0;right:0;width:100%;height:100%;-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-02,#c6c6c6);content:"";will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.bx--search--lg.bx--skeleton .bx--search-input:before,.bx--search--sm.bx--skeleton .bx--search-input:before,.bx--search--xl.bx--skeleton .bx--search-input:before,:host(bx-search-skeleton.bx--skeleton) .bx--search-input:before,:host(bx-search.bx--skeleton) .bx--search-input:before{-webkit-animation:none;animation:none}}.bx--search--lg.bx--skeleton .bx--search-input::-webkit-input-placeholder,.bx--search--sm.bx--skeleton .bx--search-input::-webkit-input-placeholder,.bx--search--xl.bx--skeleton .bx--search-input::-webkit-input-placeholder,.bx--skeleton:host(bx-search) .bx--search-input::-webkit-input-placeholder,.bx--skeleton:host(bx-search-skeleton) .bx--search-input::-webkit-input-placeholder{color:transparent}.bx--search--lg.bx--skeleton .bx--search-input:-ms-input-placeholder,.bx--search--sm.bx--skeleton .bx--search-input:-ms-input-placeholder,.bx--search--xl.bx--skeleton .bx--search-input:-ms-input-placeholder,.bx--skeleton:host(bx-search) .bx--search-input:-ms-input-placeholder,.bx--skeleton:host(bx-search-skeleton) .bx--search-input:-ms-input-placeholder{color:transparent}.bx--search--lg.bx--skeleton .bx--search-input::-ms-input-placeholder,.bx--search--sm.bx--skeleton .bx--search-input::-ms-input-placeholder,.bx--search--xl.bx--skeleton .bx--search-input::-ms-input-placeholder,.bx--skeleton:host(bx-search) .bx--search-input::-ms-input-placeholder,.bx--skeleton:host(bx-search-skeleton) .bx--search-input::-ms-input-placeholder{color:transparent}.bx--search--lg.bx--skeleton .bx--search-input::placeholder,.bx--search--sm.bx--skeleton .bx--search-input::placeholder,.bx--search--xl.bx--skeleton .bx--search-input::placeholder,:host(bx-search-skeleton.bx--skeleton) .bx--search-input::placeholder,:host(bx-search.bx--skeleton) .bx--search-input::placeholder{color:transparent}.bx--search--expandable{transition:width 70ms cubic-bezier(.2,0,.38,.9)}.bx--search--expandable.bx--search--expanded{width:100%}.bx--search--expandable .bx--search-input{width:0;padding:0;transition:padding 70ms cubic-bezier(.2,0,.38,.9),width 0s linear 70ms}.bx--search--expandable .bx--search-input::-webkit-input-placeholder{position:relative;opacity:0;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable .bx--search-input:-ms-input-placeholder{position:relative;opacity:0;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable .bx--search-input::-ms-input-placeholder{position:relative;opacity:0;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable .bx--search-input::placeholder{position:relative;opacity:0;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable.bx--search--expanded .bx--search-input{width:100%;transition:padding 70ms cubic-bezier(.2,0,.38,.9)}.bx--search--expandable.bx--search--expanded .bx--search-input::-webkit-input-placeholder{position:relative;padding:0;opacity:1}.bx--search--expandable.bx--search--expanded .bx--search-input:-ms-input-placeholder{position:relative;padding:0;opacity:1}.bx--search--expandable.bx--search--expanded .bx--search-input::-ms-input-placeholder{position:relative;padding:0;opacity:1}.bx--search--expandable.bx--search--expanded .bx--search-input::placeholder{position:relative;padding:0;opacity:1}.bx--search--expandable .bx--search-magnifier{position:absolute;cursor:pointer}.bx--search--expandable .bx--search-magnifier:hover{background-color:var(--cds-hover-ui,#e5e5e5)}.bx--search--expandable.bx--search--expanded .bx--search-magnifier{pointer-events:none}.bx--search--expandable .bx--search-magnifier-icon{fill:var(--cds-icon-01,#161616)}.bx--search--expandable.bx--search--expanded .bx--search-magnifier-icon{fill:var(--cds-icon-02,#525252)}@media (forced-colors:active),(prefers-contrast),screen and (-ms-high-contrast:active){.bx--search-close svg,.bx--search-magnifier-icon{fill:ButtonText}}:host(bx-search){outline:none}:host(bx-search-skeleton){width:100%}:host(bx-search-skeleton) .bx--search-input{position:relative;padding:0;border:none;background:var(--cds-skeleton-01,#e5e5e5);box-shadow:none;pointer-events:none;width:100%}:host(bx-search-skeleton) .bx--search-input:active,:host(bx-search-skeleton) .bx--search-input:focus,:host(bx-search-skeleton) .bx--search-input:hover{border:none;cursor:default;outline:none}:host(bx-search-skeleton) .bx--search-input:before{position:absolute;top:0;right:0;width:100%;height:100%;-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-02,#c6c6c6);content:"";will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){:host(bx-search-skeleton) .bx--search-input:before{-webkit-animation:none;animation:none}}:host(bx-search-skeleton) .bx--search-input::-webkit-input-placeholder{color:transparent}:host(bx-search-skeleton) .bx--search-input:-ms-input-placeholder{color:transparent}:host(bx-search-skeleton) .bx--search-input::-ms-input-placeholder{color:transparent}:host(bx-search-skeleton) .bx--search-input::placeholder{color:transparent}']);let m;const{prefix:g}=i;let v=a([u(`${g}-search`)],function(r,a){return{F:class extends a{constructor(...e){super(...e),r(this)}},d:[{kind:"method",key:"_handleInput",value:function(e){const{target:r}=e,{value:a}=r;this.dispatchEvent(new CustomEvent(this.constructor.eventInput,{bubbles:!0,composed:!0,cancelable:!1,detail:{value:a}})),this.value=a}},{kind:"method",key:"_handleClearInputButtonClick",value:function(){if(this.value){this.dispatchEvent(new CustomEvent(this.constructor.eventInput,{bubbles:!0,composed:!0,cancelable:!1,detail:{value:""}})),this.value="",this.shadowRoot.querySelector("input").focus()}}},{kind:"field",decorators:[p({attribute:"close-button-assistive-text"})],key:"closeButtonAssistiveText",value:()=>""},{kind:"field",decorators:[p({attribute:"color-scheme",reflect:!0})],key:"colorScheme",value:()=>d.REGULAR},{kind:"field",decorators:[p({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[p({attribute:"label-text"})],key:"labelText",value:()=>""},{kind:"field",decorators:[p()],key:"name",value:()=>""},{kind:"field",decorators:[p()],key:"placeholder",value:()=>""},{kind:"field",decorators:[p({reflect:!0})],key:"size",value:()=>x.REGULAR},{kind:"field",decorators:[p()],key:"type",value:()=>""},{kind:"field",decorators:[p({type:String})],key:"value",value:()=>""},{kind:"method",key:"createRenderRoot",value:function(){var e;return this.attachShadow({mode:"open",delegatesFocus:Number((null!==(e=/Safari\/(\d+)/.exec(navigator.userAgent))&&void 0!==e?e:["",0])[1])<=537})}},{kind:"method",key:"render",value:function(){const{closeButtonAssistiveText:r,disabled:a,labelText:t,name:i,placeholder:h,size:d,type:p,value:u="",_handleInput:f,_handleClearInputButtonClick:v}=this,k=n({[`${g}--search-close`]:!0,[`${g}--search-close--hidden`]:!this.value});return s(m||(m=(e=>e)` ${0} <label for="input" part="label-text" class="${0}--label"> <slot>${0}</slot> </label> <input id="input" part="input" type="${0}" class="${0}--search-input" ?disabled="${0}" name="${0}" placeholder="${0}" role="searchbox" .value="${0}" @input="${0}"> <button part="close-button" class="${0}" @click="${0}" type="button" aria-label="${0}"> ${0} </button> `),(({children:r,...a}={})=>e`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${b(a)}" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16">${r}${r}<path d="M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5	C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"></path></svg>`)({part:"search-icon",class:`${g}--search-magnifier-icon`,role:"img"}),g,t,l(p),g,a,l(i),l(h),u,f,k,v,r,(d===x.SMALL?o:c)({part:"close-icon","aria-label":r,role:"img"}))}},{kind:"get",static:!0,key:"eventInput",value:function(){return`${g}-search-input`}},{kind:"field",static:!0,key:"styles",value:()=>f}]}},h(t));export{v as B,f as s};
