System.register(["./p-b236363f.system.js","./p-1939e1c4.system.js"],function(t){"use strict";var e,r,i,n;return{setters:[function(t){e=t.r;r=t.h;i=t.d},function(t){n=t._}],execute:function(){var o=function(){function t(t){e(this,t);this.options=[];this.header=n("webmapgl.attribute-values.header");this.limit=1;this.valueMaxWidth="200px"}t.prototype.componentWillLoad=function(){this.parseAttributeOptions()};t.prototype.parseAttributeOptions=function(){this.options=typeof this.attributeOptions==="string"?JSON.parse(this.attributeOptions):this.attributeOptions};t.prototype.getItemsForFeature=function(t,e){var i=this;return e.filter(function(e){return e.name!=i.headerAttribute&&t.properties[e.name]!==undefined}).map(function(e){return r("ion-item",null,r("ion-label",{position:i.labelPosition},e.alias||e.name),r("ion-note",{slot:i.labelPosition!="stacked"?"end":null,"text-wrap":true,style:{"max-width":i.valueMaxWidth}},t.properties[e.name]))})};t.prototype.generateOptions=function(t){var e=[];for(var r in t.properties){e.push({name:r})}return e};t.prototype.render=function(){if(!this.features||!this.features.length)return null;var t=[];for(var e=0,i=this.features.slice(0,this.limit);e<i.length;e++){var n=i[e];var o=this.headerAttribute?n.properties[this.headerAttribute]:this.header;t.push(r("ion-item-divider",null,r("ion-label",null,o)));var s=this.options||this.generateOptions(n);Array.prototype.push.apply(t,this.getItemsForFeature(n,s))}return r("ion-list",null,t)};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{attributeOptions:["parseAttributeOptions"]}},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return"gl-attribute-values ion-note{font-size:14px;line-height:14px;padding-top:16px;text-align:right}"},enumerable:true,configurable:true});return t}();t("gl_attribute_values",o)}}});