import{r as a,c as e,h as t,g as i}from"./p-cdf3f581.js";import"./p-fb698d64.js";import"./p-933b240c.js";import{T as c,I as s}from"./p-2152cae9.js";import"./p-fc8feabd.js";import{m as r,d as o,s as p,h as l,g as n,k as d,i as h,a as b,c as f,b as g,e as u,f as m,j as v,L as k}from"./p-5a0c9fc9.js";const x=class{constructor(t){a(this,t),this.calciteListChange=e(this,"calciteListChange",7),this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.textFilterPlaceholder=c.filterResults,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(r.bind(this)),this.deselectSiblingItems=o.bind(this),this.selectSiblings=p.bind(this),this.handleFilter=l.bind(this),this.getItemData=n.bind(this),this.keyDownHandler=d.bind(this)}connectedCallback(){h.call(this),b.call(this)}disconnectedCallback(){f.call(this)}calciteListItemChangeHandler(a){g.call(this,a)}calciteListItemPropsChangeHandler(a){a.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(a){u.call(this,a)}setUpItems(){m.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(){return v.call(this)}getIconType(){return this.multiple?s.square:s.circle}render(){return t(k,{props:this,onKeyDown:this.keyDownHandler})}get el(){return i(this)}};x.style=":host{box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{box-sizing:border-box}:host{align-items:stretch;display:flex;flex:1 0 auto;flex-flow:column;padding-bottom:var(--calcite-app-cap-spacing);position:relative}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}header{background-color:var(--calcite-app-background);display:flex;justify-content:flex-end;align-items:center;margin-bottom:var(--calcite-app-cap-spacing-half);box-shadow:0 -1px 0 var(--calcite-app-border) inset}header.sticky{position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}calcite-scrim{display:flex;flex:0 0 auto;flex-flow:column;pointer-events:none}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}:host([loading][disabled]){min-height:2rem}";export{x as calcite_pick_list}