/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.7 */
import{a as g}from"./Y2THZUVL.js";import{e as p}from"./ED4IWIU6.js";import{a as m}from"./B7UYEEQJ.js";import"./SRDD32D4.js";import"./IMJMO6DB.js";import{J as r,K as o,P as n,a as l,b as t,s as c}from"./RNRMSLW5.js";import"./G6QKOIC3.js";var d=l`.arcgis-unit-select{width:100%}.arcgis-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}`,$="arcgis-unit-select",f={label:`${$}__label`},s=class extends r{constructor(){super(...arguments),this.messages=m({}),this.options=[],this.arcgisUnitSelectChange=c()}static{this.properties={options:[1,{type:Array}],selectLabel:1,value:0,messageOverrides:0,label:1}}static{this.styles=d}async destroy(){await this.manager.destroy()}render(){let{messages:a,options:u=[],selectLabel:i,value:h,arcgisUnitSelectChange:b}=this;return t`<calcite-label class=${o(f.label)}>${i}<calcite-select .label=${i} @calciteSelectChange=${e=>{b.emit(e.target.value)}}>${g(u,e=>e,e=>t`<calcite-option .selected=${e===h} .value=${e}>${p(e)?a.systems?.[e]:a.units?.[e]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};n("arcgis-unit-select",s);export{s as ArcgisUnitSelect};
