/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as m}from"./P5EZZH6S.js";import"./EH5576ZY.js";import"./7QZVR2UR.js";import"./ZNBKMZP7.js";import{O as d,U as u,a as c,b as s,p as a,r as n}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";var g=c`.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-spacing-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}`,l=class extends d{constructor(){super(...arguments),this._messages=m({blocking:!0})}static{this.properties={namedTraceConfig:0}}static{this.styles=g}loaded(){this.namedTraceConfig||a("warn",this,n("namedTraceConfig"))}render(){let{_messages:e,namedTraceConfig:r}=this;if(!r?.traceConfiguration)return a("error",this,n("namedTraceConfig.traceConfiguration")),null;let{domainNetworkName:i,tierName:t,targetTierName:o}=r.traceConfiguration;return!i&&!t&&!o?(a("warn",this,"`namedTraceConfig.traceConfiguration` has no `domainNetworkName`, `tierName`, or `targetTierName`."),null):s`<div class="subnetwork-details">${i?this._renderKeyValuePair(e.headings.domainNetwork,i):null}${t?this._renderKeyValuePair(e.headings.tier,t):null}${o?this._renderKeyValuePair(e.headings.targetTier,o):null}</div>`}_renderKeyValuePair(e,r){return s`<div class="key-value-pair"><div class="key-value-pair__key">${e}</div><div class="key-value-pair__value">${r}</div></div>`}};u("arcgis-utility-network-subnetwork-info",l);export{l as ArcgisUtilityNetworkSubnetworkInfo};
