/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import e from"./AKERMTGF.js";import b from"./ZKOJATCN.js";import{e as p}from"./EH5576ZY.js";import"./7QZVR2UR.js";import"./ZNBKMZP7.js";import{O as c,Q as i,U as d,a as n,b as a}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";export default $arcgis.t(([,{a:m,b:f,c:v,d:y,f:g}])=>{var L=n`.layer-row,.symbol{display:flex;align-items:center}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{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)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,r=class extends c{constructor(){super(...arguments),this._direction=p(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=L}render(){let{legendElement:h,opacity:b}=this,{sizeRampElement:e,colorRampElement:u}=g(h,this.messages,"horizontal");if(!e)return null;let w=v(e,"full",!1,"horizontal"),x=y(e,"full",!1,"horizontal"),$=f(u,{width:x,height:12,rampAlignment:"horizontal",opacity:b,type:"full",cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages?.previewColorRampAriaLabel}),s=m(e,"card"),z=e.infos.length-1,E=e.infos.map((l,o)=>o===0||o===z?a`<div>${l.label}</div>`:null),R={display:"flex",flexDirection:"column"},k={display:"flex",flexDirection:"row"},t={marginTop:"3px",display:"flex"};this._direction==="rtl"?t.marginRight=`${s}px`:t.marginLeft=`${s}px`;let C={width:`${w}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${i(R)}><div class="symbol-container" style=${i(k)}>${e.infos.map(l=>a`<div class="symbol">${l.preview}</div>`)}</div><div class="univariate-color-ramp-card" style=${i(t)}><div>${$}</div></div><div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${i(C)}>${E}</div></div></div>`}};d("arcgis-legend-card-univariate-color-size-ramp",r);return r},b,e)