/*! 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 from"./7OU6NVXW.js";import{b as r}from"./IMJMO6DB.js";import{J as m,K as s,P as g,a as c,b as l}from"./RNRMSLW5.js";import"./G6QKOIC3.js";export default $arcgis.t(([{a:d,g:o,h:p}])=>{var _=c`.arcgis-legend__size-ramp--container{margin-left:var(--calcite-spacing-sm);display:table}:dir(rtl) .arcgis-legend__size-ramp--container{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__size-ramp--row{display:table-row}.arcgis-legend__size-ramp--cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:table-cell}.arcgis-legend__size-ramp--label{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__size-ramp--symbol-container{min-width:10px;text-align:center}.arcgis-legend__size-ramp--symbol{display:flex;justify-content:center}`,e={container:"arcgis-legend__size-ramp--container",row:"arcgis-legend__size-ramp--row",cell:"arcgis-legend__size-ramp--cell",label:"arcgis-legend__size-ramp--label",symbol:"arcgis-legend__size-ramp--symbol",symbolContainer:"arcgis-legend__size-ramp--symbol-container"},n=class extends m{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=_}render(){let a=this.legendElement.infos.map(i=>this._renderRow(i)).filter(Boolean);return a.length?this.legendElement.theme==="spike"?l`<arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp>`:l`<div class=${s(e.container)}>${a}</div>`:null}_renderRow(a){let{preview:i}=a;if(!i)return null;let t=d(this.messages,a.label,!1);return p(i,o(this.messages,t)),l`<div class=${s(e.row)}><div class=${s(r(e.cell,e.symbolContainer))}><div class=${s(e.symbol)}>${i}</div></div><div class=${s(r(e.cell,e.label))}>${t}</div></div>`}};g("arcgis-legend-classic-size-ramp",n);return n},a)