@ncino/web-components 3.3.0 → 3.4.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/gator/button.gator.js +5 -3
- package/dist/components/checkbox-group/checkbox-group.gator.js +1 -1
- package/dist/components/input/base/input-base.gator.js +2 -2
- package/dist/components/input/base/input-base.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +12 -22
- package/dist/components/list/gator/list/list.gator.js +2 -4
- package/dist/components/list/gator/list-item/list-item.gator.js +7 -9
- package/dist/components/modal/gator/modal.gator.js +7 -7
- package/dist/components/selection-box-group/selection-box-group.gator.js +4 -4
- package/dist/components/tabs/gator/tabset/tabset.gator.js +14 -14
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/types/components/checkbox-group/checkbox-group.gator.d.ts +1 -1
- package/dist/types/components/input/base/input-base.d.ts +1 -1
- package/dist/types/components/input/base/input-base.gator.d.ts +2 -2
- package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +5 -2
- package/dist/types/components/list/gator/list/list.gator.d.ts +13 -6
- package/dist/types/components/list/gator/list-item/list-item.gator.d.ts +4 -1
- package/dist/types/components/modal/gator/modal.gator.d.ts +3 -1
- package/dist/types/components/selection-box-group/selection-box-group.gator.d.ts +1 -1
- package/dist/types/components/tabs/gator/tabset/tabset.gator.d.ts +8 -2
- package/dist/types/custom-aria.d.js +1 -0
- package/dist/types/utils/accessibility-utils.d.ts +1 -0
- package/dist/types/utils/components/ngc-component.d.ts +11 -0
- package/dist/types/utils/mixins/attribute-deletion.d.ts +15 -0
- package/dist/types/utils/vitest-a11y-utils.d.ts +1 -0
- package/dist/utils/accessibility-utils.js +1 -0
- package/dist/utils/components/ngc-component.js +1 -1
- package/dist/utils/mixins/attribute-deletion.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +1 -1
- package/web-types.json +314 -52
|
@@ -8,9 +8,11 @@ import{NjcButton as d}from"../button.js";import"../../../node_modules/.pnpm/@lit
|
|
|
8
8
|
@click="${this.handleClick}"
|
|
9
9
|
>
|
|
10
10
|
${this.loading?this.loadingMarkup:null}
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
<div class="gator-button-content">
|
|
12
|
+
<slot name="start-icon">${this.startIconMarkup}</slot>
|
|
13
|
+
<span class="gator-button-text"><slot></slot></span>
|
|
14
|
+
<slot name="end-icon">${this.endIconMarkup}</slot>
|
|
15
|
+
</div>
|
|
14
16
|
</button>
|
|
15
17
|
`}get startIconMarkup(){return this.startIcon?m`<ngc-icon name="${this.startIcon}"></ngc-icon>`:n}get endIconMarkup(){return this.endIcon?m`<ngc-icon name="${this.endIcon}"></ngc-icon>`:n}get buttonAriaLabel(){return this.loading?this.loadingAriaLabel:this.dataset.ariaLabel?this.dataset.ariaLabel:this.ariaLabel?this.ariaLabel:n}get variantClass(){return this.variant?`gator-button_${this.variant}`:null}get sizeClass(){return this.size?`gator-button_${this.size}`:null}get loadingClass(){return this.loading?"gator-button_loading":null}get skeletonMarkup(){let t,i;const r=this.variant==="base";switch(this.size){case"small":t=r?44:67,i=28;break;case"medium":t=r?50:81,i=36;break;case"xlarge":t=r?57:137,i=56;break;case"large":default:t=r?57:98,i=48;break}return m`
|
|
16
18
|
<ngc-skeleton-loader
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as g,getElementId as u}from"../../utils/string-utils.js";import b from"../../packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js";import x from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import"../checkbox/checkbox.gator.js";import"../input/gator/input-label/input-label.gator.js";import"../input/gator/help-text/help-text.gator.js";import{handleDataTestid as y}from"../../utils/datatestid-utils.js";import{TestableLitElement as v}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{ifDefined as c}from"../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(e,t,s,r)=>{for(var i=r>1?void 0:r?E(t,s):t,l=e.length-1,p;l>=0;l--)(p=e[l])&&(i=(r?p(t,s,i):p(i))||i);return r&&i&&$(t,s,i),i};let o=class extends v{constructor(){super(...arguments),this.id="",this.label="",this.helpText="",this.value=
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as g,getElementId as u}from"../../utils/string-utils.js";import b from"../../packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js";import x from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import"../checkbox/checkbox.gator.js";import"../input/gator/input-label/input-label.gator.js";import"../input/gator/help-text/help-text.gator.js";import{handleDataTestid as y}from"../../utils/datatestid-utils.js";import{TestableLitElement as v}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{ifDefined as c}from"../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(e,t,s,r)=>{for(var i=r>1?void 0:r?E(t,s):t,l=e.length-1,p;l>=0;l--)(p=e[l])&&(i=(r?p(t,s,i):p(i))||i);return r&&i&&$(t,s,i),i};let o=class extends v{constructor(){super(...arguments),this.id="",this.label="",this.helpText="",this.value=void 0,this.disabled=!1,this.hasError=!1,this.errorMessage="",this.options=[],this._randomId=g()}render(){const e=this.elementId;return h`
|
|
2
2
|
<div class="gator-checkbox-group-container">
|
|
3
3
|
${this.label?h`<ngc-input-label id="${e}-label" data-testid=${c(this.labelDataTestid)}>${this.label}</ngc-input-label>`:null}
|
|
4
4
|
<div id="${e}-group"
|
|
@@ -9,7 +9,7 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit
|
|
|
9
9
|
.required="${this.required}"
|
|
10
10
|
>
|
|
11
11
|
${this.label}
|
|
12
|
-
</ngc-input-label>`}get labelId(){return`${this.id}-label`}get ariaLabelledbyValue(){return this.iconAsLabel?this.startIconId:this.label?this.labelId:
|
|
12
|
+
</ngc-input-label>`}get labelId(){return`${this.id}-label`}get ariaLabelledbyValue(){return this.iconAsLabel?this.startIconId:this.label?this.labelId:""}get helpTextMarkup(){return this.helpText?i`
|
|
13
13
|
<ngc-help-text icon id=${this.helpTextId}>
|
|
14
14
|
${this.helpText}
|
|
15
15
|
</ngc-help-text>`:null}get helpTextId(){return`${this.id}-help-text`}get bottomText(){return i`
|
|
@@ -20,4 +20,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit
|
|
|
20
20
|
data-testid=${l(this.errorMessageDataTestid)}
|
|
21
21
|
id=${this.errorTextId}>
|
|
22
22
|
${this.errorText}
|
|
23
|
-
</ngc-help-text>`:null}get errorTextId(){return`${this.id}-error-text`}get ariaDescribedby(){const t=[];return this._ariaDescribedBy&&t.push(this._ariaDescribedBy),this.errorTextMarkup&&t.push(this.errorTextId),this.helpTextMarkup&&t.push(this.helpTextId),t.length?t.join(" "):
|
|
23
|
+
</ngc-help-text>`:null}get errorTextId(){return`${this.id}-error-text`}get ariaDescribedby(){const t=[];return this._ariaDescribedBy&&t.push(this._ariaDescribedBy),this.errorTextMarkup&&t.push(this.errorTextId),this.helpTextMarkup&&t.push(this.helpTextId),t.length?t.join(" "):""}handleClick(t){}handleKeydown(t){}handleKeyup(t){}handleInputFocusIn(){var t;(t=this.controlRef.value)==null||t.classList.add("gator-input-has-focus")}handleInputFocusOut(){var t;(t=this.controlRef.value)==null||t.classList.remove("gator-input-has-focus")}};e.styles=[o(d),o(c),o(I),o(f)];let p=e;u([h()],p.prototype,"_startIconAsText");u([h()],p.prototype,"_ariaDescribedBy");export{p as NgcInputBase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{property as t}from"../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as n}from"../../../utils/components/testable-lit-element/testable-lit-element.js";var y=Object.defineProperty,e=(a,
|
|
1
|
+
import{property as t}from"../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as n}from"../../../utils/components/testable-lit-element/testable-lit-element.js";var y=Object.defineProperty,e=(a,p,l,d)=>{for(var o=void 0,i=a.length-1,s;i>=0;i--)(s=a[i])&&(o=s(p,l,o)||o);return o&&y(p,l,o),o};class r extends n{constructor(){super(...arguments),this.id="",this.required=!1,this.disabled=!1,this.label="",this.ariaDescription=null,this.ariaLabelledByElements=void 0,this.placeholder="",this.errorText="",this.helpText="",this.type="text",this.startIcon="",this.endIcon="",this.maxLength=void 0,this.iconAsLabel=!1}}e([t()],r.prototype,"id");e([t({type:Boolean})],r.prototype,"required");e([t({type:Boolean})],r.prototype,"disabled");e([t()],r.prototype,"label");e([t({attribute:"aria-description"})],r.prototype,"ariaDescription");e([t({type:Array,attribute:"aria-labelled-by-elements"})],r.prototype,"ariaLabelledByElements");e([t()],r.prototype,"placeholder");e([t()],r.prototype,"value");e([t({attribute:"error-text"})],r.prototype,"errorText");e([t({attribute:"help-text"})],r.prototype,"helpText");e([t()],r.prototype,"type");e([t({attribute:"start-icon"})],r.prototype,"startIcon");e([t({attribute:"end-icon"})],r.prototype,"endIcon");e([t({attribute:"max-length"})],r.prototype,"maxLength");e([t({type:Boolean,attribute:"icon-as-label"})],r.prototype,"iconAsLabel");export{r as InputBase};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as m,nothing as v}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../../icon/gator/templates/flags/flag-al-albania.js";import"../../../icon/gator/templates/flags/flag-am-armenia.js";import"../../../icon/gator/templates/flags/flag-ao-angola.js";import"../../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../../icon/gator/templates/flags/flag-at-austria.js";import"../../../icon/gator/templates/flags/flag-au-australia.js";import"../../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../../icon/gator/templates/flags/flag-be-belgium.js";import"../../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../../icon/gator/templates/flags/flag-bj-benin.js";import"../../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../../icon/gator/templates/flags/flag-br-brazil.js";import"../../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../../icon/gator/templates/flags/flag-by-belarus.js";import"../../../icon/gator/templates/flags/flag-bz-belize.js";import"../../../icon/gator/templates/flags/flag-ca-canada.js";import"../../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../../icon/gator/templates/flags/flag-cl-chile.js";import"../../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../../icon/gator/templates/flags/flag-cn-china.js";import"../../../icon/gator/templates/flags/flag-co-colombia.js";import"../../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../../icon/gator/templates/flags/flag-de-germany.js";import"../../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../../icon/gator/templates/flags/flag-es-sain.js";import"../../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../../icon/gator/templates/flags/flag-fi-finland.js";import"../../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../../icon/gator/templates/flags/flag-fr-france.js";import"../../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../../icon/gator/templates/flags/flag-gr-greece.js";import"../../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../../icon/gator/templates/flags/flag-gu-guam.js";import"../../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../../icon/gator/templates/flags/flag-il-isreal.js";import"../../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../../icon/gator/templates/flags/flag-in-india.js";import"../../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../../icon/gator/templates/flags/flag-ir-iran.js";import"../../../icon/gator/templates/flags/flag-is-iceland.js";import"../../../icon/gator/templates/flags/flag-it-italy.js";import"../../../icon/gator/templates/flags/flag-je-jersey.js";import"../../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../../icon/gator/templates/flags/flag-jp-japan.js";import"../../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../../icon/gator/templates/flags/flag-km-comoros.js";import"../../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../../icon/gator/templates/flags/flag-la-laos.js";import"../../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../../icon/gator/templates/flags/flag-ly-libya.js";import"../../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../../icon/gator/templates/flags/flag-md-moldova.js";import"../../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../../icon/gator/templates/flags/flag-ml-mali.js";import"../../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../../icon/gator/templates/flags/flag-mo-macao.js";import"../../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../../icon/gator/templates/flags/flag-mt-malta.js";import"../../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../../icon/gator/templates/flags/flag-na-namibia.js";import"../../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../../icon/gator/templates/flags/flag-ne-niger.js";import"../../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../../icon/gator/templates/flags/flag-no-norway.js";import"../../../icon/gator/templates/flags/flag-np-nepal.js";import"../../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../../icon/gator/templates/flags/flag-nu-niue.js";import"../../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../../icon/gator/templates/flags/flag-om-oman.js";import"../../../icon/gator/templates/flags/flag-pa-panama.js";import"../../../icon/gator/templates/flags/flag-pe-peru.js";import"../../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../../icon/gator/templates/flags/flag-pl-poland.js";import"../../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../../icon/gator/templates/flags/flag-pw-palau.js";import"../../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../../icon/gator/templates/flags/flag-re-reunion.js";import"../../../icon/gator/templates/flags/flag-ro-romania.js";import"../../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../../icon/gator/templates/flags/flag-se-seden.js";import"../../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../../icon/gator/templates/flags/flag-so-smalia.js";import"../../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../../icon/gator/templates/flags/flag-sy-sria.js";import"../../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../../icon/gator/templates/flags/flag-td-chad.js";import"../../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../../icon/gator/templates/flags/flag-tg-togo.js";import"../../../icon/gator/templates/flags/flag-th-thailand.js";import"../../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../../icon/gator/templates/flags/flag-to-tonga.js";import"../../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../../icon/gator/templates/flags/flag-us-united-states.js";import"../../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../../icon/gator/templates/payments/payment-amex.js";import"../../../icon/gator/templates/payments/payment-apple-pay.js";import"../../../icon/gator/templates/payments/payment-discover.js";import"../../../icon/gator/templates/payments/payment-google-pay.js";import"../../../icon/gator/templates/payments/payment-mastercard.js";import"../../../icon/gator/templates/payments/payment-visa.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import"../../../icon-button/gator/icon-button.gator.js";import{customElement as b}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js";import{createRef as h,ref as n}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/ref.js";import g from"../../../../packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js";import{autoUpdate as x,computePosition as y,flip as $}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as e}from"../../../../consts/key-constants.js";import{NgcInputBase as R}from"../../base/input-base.gator.js";import{formattedCountriesForDropdown as _,formattedStatesForDropdown as D}from"../../../../utils/places-utils.js";import{formattedNaicsCodes as C}from"../../../../utils/industry-utils.js";import{formattedPhoneCountryCodes as E}from"../../../../utils/phone-utils.js";import{ifDefined as w}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/if-defined.js";import{msg as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as O}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as k}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";var M=Object.defineProperty,A=Object.getOwnPropertyDescriptor,I=Object.getPrototypeOf,P=Reflect.get,p=(t,i,o,s)=>{for(var a=s>1?void 0:s?A(i,o):i,d=t.length-1,u;d>=0;d--)(u=t[d])&&(a=(s?u(i,o,a):u(a))||a);return s&&a&&M(i,o,a),a},T=(t,i,o)=>P(I(t),o,i);let r=class extends R{constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this.maxAutocompleteResults=250,this._expanded=!1,this._searchValue="",this.listboxRef=h(),this.listRef=h(),this.inputRef=h()}render(){return m`
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as v}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../../icon/gator/templates/flags/flag-al-albania.js";import"../../../icon/gator/templates/flags/flag-am-armenia.js";import"../../../icon/gator/templates/flags/flag-ao-angola.js";import"../../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../../icon/gator/templates/flags/flag-at-austria.js";import"../../../icon/gator/templates/flags/flag-au-australia.js";import"../../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../../icon/gator/templates/flags/flag-be-belgium.js";import"../../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../../icon/gator/templates/flags/flag-bj-benin.js";import"../../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../../icon/gator/templates/flags/flag-br-brazil.js";import"../../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../../icon/gator/templates/flags/flag-by-belarus.js";import"../../../icon/gator/templates/flags/flag-bz-belize.js";import"../../../icon/gator/templates/flags/flag-ca-canada.js";import"../../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../../icon/gator/templates/flags/flag-cl-chile.js";import"../../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../../icon/gator/templates/flags/flag-cn-china.js";import"../../../icon/gator/templates/flags/flag-co-colombia.js";import"../../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../../icon/gator/templates/flags/flag-de-germany.js";import"../../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../../icon/gator/templates/flags/flag-es-sain.js";import"../../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../../icon/gator/templates/flags/flag-fi-finland.js";import"../../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../../icon/gator/templates/flags/flag-fr-france.js";import"../../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../../icon/gator/templates/flags/flag-gr-greece.js";import"../../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../../icon/gator/templates/flags/flag-gu-guam.js";import"../../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../../icon/gator/templates/flags/flag-il-isreal.js";import"../../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../../icon/gator/templates/flags/flag-in-india.js";import"../../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../../icon/gator/templates/flags/flag-ir-iran.js";import"../../../icon/gator/templates/flags/flag-is-iceland.js";import"../../../icon/gator/templates/flags/flag-it-italy.js";import"../../../icon/gator/templates/flags/flag-je-jersey.js";import"../../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../../icon/gator/templates/flags/flag-jp-japan.js";import"../../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../../icon/gator/templates/flags/flag-km-comoros.js";import"../../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../../icon/gator/templates/flags/flag-la-laos.js";import"../../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../../icon/gator/templates/flags/flag-ly-libya.js";import"../../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../../icon/gator/templates/flags/flag-md-moldova.js";import"../../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../../icon/gator/templates/flags/flag-ml-mali.js";import"../../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../../icon/gator/templates/flags/flag-mo-macao.js";import"../../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../../icon/gator/templates/flags/flag-mt-malta.js";import"../../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../../icon/gator/templates/flags/flag-na-namibia.js";import"../../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../../icon/gator/templates/flags/flag-ne-niger.js";import"../../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../../icon/gator/templates/flags/flag-no-norway.js";import"../../../icon/gator/templates/flags/flag-np-nepal.js";import"../../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../../icon/gator/templates/flags/flag-nu-niue.js";import"../../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../../icon/gator/templates/flags/flag-om-oman.js";import"../../../icon/gator/templates/flags/flag-pa-panama.js";import"../../../icon/gator/templates/flags/flag-pe-peru.js";import"../../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../../icon/gator/templates/flags/flag-pl-poland.js";import"../../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../../icon/gator/templates/flags/flag-pw-palau.js";import"../../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../../icon/gator/templates/flags/flag-re-reunion.js";import"../../../icon/gator/templates/flags/flag-ro-romania.js";import"../../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../../icon/gator/templates/flags/flag-se-seden.js";import"../../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../../icon/gator/templates/flags/flag-so-smalia.js";import"../../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../../icon/gator/templates/flags/flag-sy-sria.js";import"../../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../../icon/gator/templates/flags/flag-td-chad.js";import"../../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../../icon/gator/templates/flags/flag-tg-togo.js";import"../../../icon/gator/templates/flags/flag-th-thailand.js";import"../../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../../icon/gator/templates/flags/flag-to-tonga.js";import"../../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../../icon/gator/templates/flags/flag-us-united-states.js";import"../../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../../icon/gator/templates/payments/payment-amex.js";import"../../../icon/gator/templates/payments/payment-apple-pay.js";import"../../../icon/gator/templates/payments/payment-discover.js";import"../../../icon/gator/templates/payments/payment-google-pay.js";import"../../../icon/gator/templates/payments/payment-mastercard.js";import"../../../icon/gator/templates/payments/payment-visa.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import"../../../icon-button/gator/icon-button.gator.js";import{customElement as b}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js";import{createRef as h,ref as n}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/ref.js";import y from"../../../../packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js";import{autoUpdate as g,computePosition as x,flip as $}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as p}from"../../../../consts/key-constants.js";import{NgcInputBase as R}from"../../base/input-base.gator.js";import{formattedCountriesForDropdown as E,formattedStatesForDropdown as _}from"../../../../utils/places-utils.js";import{formattedNaicsCodes as D}from"../../../../utils/industry-utils.js";import{formattedPhoneCountryCodes as A}from"../../../../utils/phone-utils.js";import{ifDefined as C}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/if-defined.js";import{msg as f}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as w}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as B}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";var O=Object.defineProperty,I=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,k=Reflect.get,s=(t,i,o,m)=>{for(var r=m>1?void 0:m?I(i,o):i,u=t.length-1,d;u>=0;u--)(d=t[u])&&(r=(m?d(i,o,r):d(r))||r);return m&&r&&O(i,o,r),r},L=(t,i,o)=>k(M(t),o,i);let e=class extends R{constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this.maxAutocompleteResults=250,this._expanded=!1,this._searchValue="",this.listboxRef=h(),this.listRef=h(),this.inputRef=h()}render(){return a`
|
|
2
2
|
<div class="gator-form-element">
|
|
3
3
|
<slot name="label">
|
|
4
4
|
${this.label?this.labelMarkup:null}
|
|
@@ -6,26 +6,20 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
6
6
|
<div
|
|
7
7
|
${n(this.controlRef)}
|
|
8
8
|
class="gator-form-element-control ${this.errorClass} ${this.disabledClass}"
|
|
9
|
-
data-testid=${
|
|
10
|
-
aria-controls="listbox-${this.id}"
|
|
11
|
-
aria-expanded="${this._expanded}"
|
|
12
|
-
aria-haspopup="listbox"
|
|
9
|
+
data-testid=${C(this.dataTestid)}-listbox
|
|
13
10
|
aria-disabled="${this.disabled}"
|
|
14
|
-
aria-labelledby="${this.ariaLabelledbyValue}"
|
|
15
|
-
aria-describedby="${this.ariaDescribedby}"
|
|
16
11
|
id="listbox-control-${this.id}"
|
|
17
12
|
tabindex="${this.tabIndexForControl}"
|
|
18
|
-
role="combobox"
|
|
19
13
|
@click="${this.toggleListbox}"
|
|
20
14
|
@keydown="${this.handleComboboxKeydown}"
|
|
21
15
|
@focusout="${this._topLevelFocusOut}"
|
|
22
16
|
>
|
|
23
17
|
<div class="gator-input-container">
|
|
24
|
-
${this.shouldHaveStartMarkup?
|
|
18
|
+
${this.shouldHaveStartMarkup?a`
|
|
25
19
|
<div class="gator-input-start">
|
|
26
20
|
${this.startIconMarkup}
|
|
27
21
|
</div>`:null}
|
|
28
|
-
${this.autocomplete?
|
|
22
|
+
${this.autocomplete?a`
|
|
29
23
|
<input
|
|
30
24
|
${n(this.inputRef)}
|
|
31
25
|
type="${this.type}"
|
|
@@ -35,8 +29,6 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
35
29
|
.disabled="${this.disabled}"
|
|
36
30
|
class="gator-input"
|
|
37
31
|
autocomplete="one-time-code"
|
|
38
|
-
aria-labelledby="${this.ariaLabelledbyValue}"
|
|
39
|
-
aria-describedby="${this.ariaDescribedby}"
|
|
40
32
|
.value="${this.displayedValue}"
|
|
41
33
|
@input="${this.handleInput}"
|
|
42
34
|
@keydown="${this.handleInputKeydown}"
|
|
@@ -57,11 +49,11 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
57
49
|
|
|
58
50
|
${this.listboxMarkup}
|
|
59
51
|
</div>
|
|
60
|
-
`}_topLevelFocusOut(t){t.relatedTarget||(this._expanded=!1)}get tabIndexForControl(){return this.disabled||this.autocomplete?"-1":"0"}firstUpdated(){this._expanded&&this.toggleListbox(
|
|
52
|
+
`}_topLevelFocusOut(t){t.relatedTarget||(this._expanded=!1)}get tabIndexForControl(){return this.disabled||this.autocomplete?"-1":"0"}firstUpdated(){this._expanded&&this.toggleListbox(p.ENTER,!0)}updated(t){var i;this.setComboboxAriaAttributes(),this._expanded&&this.setAriaActiveDescendant(),t.has("ariaLabelledByElements")&&this.ariaLabelledByElements&&(this.controlRef.value.ariaLabelledByElements=this.ariaLabelledByElements,this.listRef.value.ariaLabelledByElements=this.ariaLabelledByElements),t.has("label")&&this.label&&(this.listRef.value.ariaLabelledByElements=[(i=this.shadowRoot)==null?void 0:i.getElementById(this.labelId)])}setComboboxAriaAttributes(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value,i=this.autocomplete?this.controlRef.value:this.inputRef.value,o={role:"combobox","aria-autocomplete":"list","aria-controls":`listbox-${this.id}`,"aria-expanded":`${this._expanded}`,"aria-labelledby":this.ariaLabelledbyValue,"aria-describedby":this.ariaDescribedby,"aria-required":`${this.required}`};Object.entries(o).forEach(([m,r])=>{t==null||t.setAttribute(m,r),i==null||i.removeAttribute(m)}),this.ariaLabelledByElements&&(t.ariaLabelledByElements=this.ariaLabelledByElements,i.ariaLabelledByElements=void 0)}setAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=this._activeDescendant)}clearAriaActiveDescendant(){const t=this.autocomplete?this.inputRef.value:this.controlRef.value;t&&(t.ariaActiveDescendantElement=void 0)}get fauxInputMarkup(){return a`
|
|
61
53
|
<div class="gator-faux-input ${this.showPlaceholder?"gator-faux-input-placeholder":null}">
|
|
62
54
|
${this.displayedValue||this.placeholder}
|
|
63
55
|
</div>
|
|
64
|
-
`}get displayedValue(){var t;return this.value?this.valueDisplayed?this.value:((t=this.displayedOptions.find(i=>i.value===this.value))==null?void 0:t.label)??this.value:""}get showPlaceholder(){return this.placeholder&&!this.value}get
|
|
56
|
+
`}get displayedValue(){var t;return this.value?this.valueDisplayed?this.value:((t=this.displayedOptions.find(i=>i.value===this.value))==null?void 0:t.label)??this.value:""}get showPlaceholder(){return this.placeholder&&!this.value}get listboxMarkup(){var t;return a`
|
|
65
57
|
<div
|
|
66
58
|
${n(this.listboxRef)}
|
|
67
59
|
class="gator-dropdown-listbox ${this._expanded?"gator-dropdown-listbox_expanded":""}"
|
|
@@ -69,30 +61,28 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
69
61
|
${this.listboxMessageMarkup}
|
|
70
62
|
<ngc-list
|
|
71
63
|
${n(this.listRef)}
|
|
72
|
-
|
|
64
|
+
id="listbox-${this.id}"
|
|
73
65
|
selectable
|
|
74
66
|
faux-focus
|
|
75
67
|
.title="${this.label||this.placeholder} List"
|
|
76
|
-
.aria-labelledby="${this.ariaLabelledbyValue}"
|
|
77
|
-
.ariaDescribedby="${this.listboxMessageMarkup?`listbox-message-${this.id}`:void 0}"
|
|
78
68
|
@selected="${this.handleSelected}"
|
|
79
69
|
>
|
|
80
|
-
${((t=this.displayedOptions)==null?void 0:t.map(i=>
|
|
70
|
+
${((t=this.displayedOptions)==null?void 0:t.map(i=>a`
|
|
81
71
|
<ngc-list-item
|
|
82
72
|
text="${i.label}"
|
|
83
73
|
value="${i.value}"
|
|
84
74
|
?selected="${i.value===this.value}"
|
|
85
|
-
|
|
75
|
+
id="${this.id}-${i.value}"
|
|
86
76
|
faux-focus
|
|
87
77
|
></ngc-list-item>
|
|
88
78
|
`))??v}
|
|
89
79
|
</ngc-list>
|
|
90
80
|
</div>
|
|
91
|
-
`}get listboxMessageMarkup(){if(!this.autocomplete)return null;let t;return this.displayedOptions.length===0&&(t=this.noResultsMessage),this.resultsExceedMax&&(t=this.resultsExceedMaxMessage),t?
|
|
81
|
+
`}get listboxMessageMarkup(){if(!this.autocomplete)return null;let t;return this.displayedOptions.length===0&&(t=this.noResultsMessage),this.resultsExceedMax&&(t=this.resultsExceedMaxMessage),this.setListboxMessageAriaDescribedByElements(),t?a`
|
|
92
82
|
<div class="gator-dropdown-listbox-message" id="listbox-message-${this.id}" data-testid="${this.dataTestid}-listbox-message">
|
|
93
83
|
${t}
|
|
94
84
|
</div>
|
|
95
|
-
`:null}get resultsExceedMaxMessage(){return f(
|
|
85
|
+
`:null}setListboxMessageAriaDescribedByElements(){requestAnimationFrame(()=>{var m;const t=(m=this.shadowRoot)==null?void 0:m.getElementById(`listbox-message-${this.id}`);if(!this.inputRef.value)return;const i=this.inputRef.value.ariaDescribedByElements||[],o=this.listRef.value.ariaDescribedByElements||[];if(t){i.includes(t)||(this.inputRef.value.ariaDescribedByElements=[t,...i]),o.includes(t)||(this.listRef.value.ariaDescribedByElements=[t,...o]);return}this.inputRef.value.ariaDescribedByElements=i.filter(r=>r.id!==`listbox-message-${this.id}`),this.listRef.value.ariaDescribedByElements=o.filter(r=>r.id!==`listbox-message-${this.id}`)})}get resultsExceedMaxMessage(){return f(a`Showing ${this.maxAutocompleteResults} results. Refine your search to see more.`)}get noResultsMessage(){return f("No results found. Refine your search.")}get displayedOptions(){return this.autocomplete?this.limitedOptions:this.filteredOptions}get filteredOptions(){let t=this.options??[];return this.dataType==="country"?t=E():this.dataType==="state"&&this.countryCode?t=_(this.countryCode):this.dataType==="naics"?t=D():this.dataType==="phoneCodes"&&(t=A()),this._searchValue?[...t.filter(o=>o.label.toLowerCase().includes(this._searchValue.toLowerCase()))]:t}get limitedOptions(){return this.filteredOptions.slice(0,this.maxAutocompleteResults)}get resultsExceedMax(){return!this.autocomplete||!this.maxAutocompleteResults?!1:this.filteredOptions.length>this.maxAutocompleteResults}handleSelected(t){t.stopImmediatePropagation(),this._expanded=!1,this._activeDescendant=void 0,this.clearAriaActiveDescendant(),this.emitChangeEvent(t.detail.value)}handleComboboxKeydown(t){!this._expanded&&(t.key===p.ENTER||t.key===p.SPACE||t.key===p.DOWN)?this.toggleListbox(t.key,!1):this._expanded&&this.listRef.value&&((t.key===p.ENTER||t.key===p.SPACE)&&this.listRef.value.selectFalseFocusedItem(),t.key===p.DOWN&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusNextItem(),this.setAriaActiveDescendant()),t.key===p.UP&&(t.preventDefault(),this._activeDescendant=this.listRef.value.falseFocusPreviousItem(),this.setAriaActiveDescendant())),(t.key===p.ESCAPE||t.key===p.TAB)&&(this._expanded=!1)}get errorClass(){return this.errorText?"gator-has-error":""}get disabledClass(){return this.disabled?"gator-disabled":"gator-cursor-pointer"}toggleListbox(t,i){this.disabled||(i||(this._expanded=!this._expanded),this.assignPosition(),this.listRef.value&&(t==p.DOWN||!this.value)?this._activeDescendant=this.listRef.value.falseFocusFirstItem():this.value&&this.listRef.value&&(this._activeDescendant=this.listRef.value.setFalseFocusToValue(this.value)),this._expanded&&this.setAriaActiveDescendant(),this._expanded||(this._activeDescendant=void 0,this.clearAriaActiveDescendant()))}get endIconMarkup(){return a`<ngc-icon class="gator-dropdown-chevron" .name="${this.endIcon||"chevron-down"}"></ngc-icon>`}get clearIconButtonMarkup(){var t;return!this.autocomplete||!this.value&&!((t=this.inputRef.value)!=null&&t.value)?null:a`
|
|
96
86
|
<ngc-icon-button
|
|
97
87
|
data-testid="${this.dataTestid}-clear-button"
|
|
98
88
|
icon-name="exit"
|
|
@@ -100,4 +90,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
100
90
|
size="medium"
|
|
101
91
|
@click="${this.clearValue}"
|
|
102
92
|
></ngc-icon-button>
|
|
103
|
-
`}clearValue(){var t;this.inputRef.value&&(this.inputRef.value.value=""),this._searchValue="",(t=this.inputRef.value)==null||t.focus(),this.emitChangeEvent("")}assignPosition(){const t=this.controlRef.value;!this.listboxRef||!this.listboxRef.value||!t||(this._cleanup=
|
|
93
|
+
`}clearValue(){var t;this.inputRef.value&&(this.inputRef.value.value=""),this._searchValue="",(t=this.inputRef.value)==null||t.focus(),this.emitChangeEvent("")}assignPosition(){const t=this.controlRef.value;!this.listboxRef||!this.listboxRef.value||!t||(this._cleanup=g(t,this.listboxRef.value,async()=>{if(!this.listboxRef||!this.listboxRef.value||!t)return;const{x:i,y:o,placement:m}=await x(t,this.listboxRef.value,{placement:"bottom-start",middleware:[$()]});let r=m==="bottom-start"?4:-4;Object.assign(this.listboxRef.value.style,{left:`${i}px`,top:`${o+r}px`,width:`${this.listWidth??t.clientWidth}px`})}))}handleInput(t){t.preventDefault(),t.stopPropagation();let i=t.target;i.value.length===0&&this.emitChangeEvent(""),this._searchValue=i.value,this._expanded=!0,this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:i.value}}))}handleInputKeydown(t){if((t.key===p.DOWN||t.key===p.UP)&&t.preventDefault(),t.key===p.SPACE){t.stopPropagation();return}}emitChangeEvent(t){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:t}}))}};e.styles=[...L(e,e,"styles"),B(y)];s([l({type:Array})],e.prototype,"options",2);s([l({type:Boolean})],e.prototype,"autocomplete",2);s([l({type:String,attribute:"data-type"})],e.prototype,"dataType",2);s([l({type:String,attribute:"country-code"})],e.prototype,"countryCode",2);s([l({type:String,attribute:"list-width"})],e.prototype,"listWidth",2);s([l({type:Boolean,attribute:"value-displayed"})],e.prototype,"valueDisplayed",2);s([l({type:Number,attribute:"max-autocomplete-results"})],e.prototype,"maxAutocompleteResults",2);s([c()],e.prototype,"_activeDescendant",2);s([c()],e.prototype,"_expanded",2);s([c()],e.prototype,"_searchValue",2);e=s([b("ngc-input-dropdown"),w()],e);export{e as NgcInputDropdown};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as u}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import{LitElement as
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";import{html as u}from"../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js";import{LitElement as m}from"../../../../node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js";import{customElement as f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js";import"../list-item/list-item.gator.js";import{NgcDivider as I}from"../../../divider/gator/divider.gator.js";import{KEY_CONSTANTS as h}from"../../../../consts/key-constants.js";import{NgcComponent as p}from"../../../../utils/components/ngc-component.js";var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,r=(e,t,s,o)=>{for(var l=o>1?void 0:o?b(t,s):t,i=e.length-1,d;i>=0;i--)(d=e[i])&&(l=(o?d(t,s,l):d(l))||l);return o&&l&&y(t,s,l),l};let a=class extends p{constructor(){super(...arguments),this.id="",this.density="default",this.selectable=!1,this.multiselect=!1,this.ariaLabelledBy="",this.ariaLabelledByElements=void 0,this.ariaDescribedByElements=void 0,this.title="",this.fauxFocus=!1,this.hideCheckmarks=!1,this._selectedListItem=null,this._activeIndex=0,this._totalListItems=0,this._hasIndexChanged=!1}updated(e){var t,s,o,l;if(e.has("density")&&this.assignChildNodeDensity(),(this.selectable||this.multiselect)&&this.updateSlottedItems(((s=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"))==null?void 0:s.assignedElements())||[]),e.has("hideCheckmarks")&&this.assignChildNodeHideCheckmark(),e.has("ariaLabelledByElements")&&this.ariaLabelledByElements){const i=(o=this.shadowRoot)==null?void 0:o.getElementById(this.id);i&&(i.ariaLabelledByElements=this.ariaLabelledByElements)}if(e.has("ariaDescribedByElements")&&this.ariaDescribedByElements){const i=(l=this.shadowRoot)==null?void 0:l.getElementById(this.id);i&&(i.ariaDescribedByElements=this.ariaDescribedByElements)}}render(){return u`
|
|
2
2
|
<div
|
|
3
|
-
aria-labelledby="${this.ariaLabelledBy}"
|
|
4
|
-
aria-describedby="${p(this.ariaDescribedby)}"
|
|
5
3
|
class="gator-list"
|
|
6
4
|
title="${this.title}"
|
|
7
5
|
role="${this.listRole}"
|
|
@@ -12,4 +10,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@
|
|
|
12
10
|
>
|
|
13
11
|
<slot @slotchange="${this.handleSlotChanged}"></slot>
|
|
14
12
|
</div>
|
|
15
|
-
`}get listRole(){
|
|
13
|
+
`}get listRole(){return this.selectable?"listbox":"list"}handleSlotChanged(e){const s=e.target.assignedElements();this.updateSlottedItems(s)}updateSlottedItems(e){this._totalListItems=0;for(const t of e)t.nodeName=="NGC-LIST-ITEM"&&(this._totalListItems++,this.selectable?(t.selectable=!0,t.role="option"):t.role="listitem",this.multiselect&&(t.multiselect=!0),t.addEventListener("selected",s=>{this._selectedListItem=s.detail.id,this.multiselect?(t.selected=!t.selected,t.multiselect=!0):(this.unselectAllListItems(),t.selected=!0)}));this.setCurrentListItem()}setFalseFocusToValue(e){var s,o;const t=(o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"))==null?void 0:o.assignedElements();if(t){for(const[l,i]of t.entries())if(i.nodeName=="NGC-LIST-ITEM"&&i.value==e)return this._activeIndex=l,i}}setCurrentListItem(){var s,o;const e=(o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"))==null?void 0:o.assignedElements();if(!e||this._focusFirstSelectedItem(e))return;let t;for(const[l,i]of e.filter(d=>d.nodeName=="NGC-LIST-ITEM").entries())this._activeIndex==-1&&(this._activeIndex=this._totalListItems-1),this._activeIndex==this._totalListItems&&(this._activeIndex=0),i.nodeName=="NGC-LIST-ITEM"&&(i.currentListItem=l==this._activeIndex,i.currentListItem?(this.fauxFocus?this._setFauxFocus(i):i.focus(),t=i):this.fauxFocus&&this._removeFauxFocus(i));return t}_focusFirstSelectedItem(e){if(this._hasIndexChanged)return!1;let t=!1;for(const s of e){if(t)break;s.nodeName=="NGC-LIST-ITEM"&&(s.selected?(this.fauxFocus?this._setFauxFocus(s):s.focus(),t=!0):this.fauxFocus&&this._removeFauxFocus(s))}return this._hasIndexChanged=!0,t}_setFauxFocus(e){e.falseFocus()}_removeFauxFocus(e){e.removeFalseFocus()}falseFocusFirstItem(){return this._activeIndex=0,this.setCurrentListItem()}falseFocusPreviousItem(){return this._activeIndex--,this.setCurrentListItem()}falseFocusNextItem(){return this._activeIndex++,this.setCurrentListItem()}selectFalseFocusedItem(){var t,s;const e=(s=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"))==null?void 0:s.assignedElements();if(e)for(const o of e)o.nodeName=="NGC-LIST-ITEM"&&o.falseFocusing&&o.selectItem()}unselectAllListItems(){var t,s;const e=(s=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"))==null?void 0:s.assignedElements();if(e)for(const o of e)o.nodeName=="NGC-LIST-ITEM"&&(o.selected=!1)}handleKeyUp(e){switch(e.key){case h.UP:this._activeIndex--,this.setCurrentListItem(),e.preventDefault();break;case h.DOWN:this._activeIndex++,this.setCurrentListItem(),e.preventDefault();break}}get nodes(){var e,t;return(t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot"))==null?void 0:t.assignedElements()}assignChildNodeDensity(){if(this.nodes)for(const e of this.nodes)(e.nodeName=="NGC-LIST-ITEM"||e.nodeName=="NGC-DIVIDER")&&((e||I).density=this.density)}assignChildNodeHideCheckmark(){if(this.nodes)for(const e of this.nodes)e.nodeName=="NGC-LIST-ITEM"&&(e.hideCheckmark=this.hideCheckmarks)}};a.shadowRootOptions={...m.shadowRootOptions,mode:"open"};r([n()],a.prototype,"id",2);r([n()],a.prototype,"density",2);r([n({type:Boolean})],a.prototype,"selectable",2);r([n({type:Boolean})],a.prototype,"multiselect",2);r([n({attribute:"aria-labelledby"})],a.prototype,"ariaLabelledBy",2);r([n({type:Array,attribute:"aria-labelled-by-elements"})],a.prototype,"ariaLabelledByElements",2);r([n({type:Array,attribute:"aria-described-by-elements"})],a.prototype,"ariaDescribedByElements",2);r([n({attribute:"aria-describedby"})],a.prototype,"ariaDescribedby",2);r([n()],a.prototype,"title",2);r([n({type:Boolean,attribute:"faux-focus"})],a.prototype,"fauxFocus",2);r([n({type:Boolean,attribute:"hide-checkmarks"})],a.prototype,"hideCheckmarks",2);r([c()],a.prototype,"_selectedListItem",2);r([c()],a.prototype,"_activeIndex",2);a=r([f("ngc-list")],a);export{a as NgcList};
|