System.register(["./index-c820db66.system.js"],(function(o){"use strict";var t,e,r;return{setters:[function(o){t=o.r;e=o.h;r=o.g}],execute:function(){var i="smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";var n=o("smoothly_accordion",function(){function o(o){t(this,o);this.items=[]}o.prototype.valueChanged=function(o){this.updateItems()};o.prototype.handleOpenClose=function(o){if(o.detail.open)this.value=o.detail.name;else if(this.value==o.detail.name)this.value=undefined};o.prototype.onAccordionItemDidLoad=function(o){var t=o.target;this.items.push(t);if(this.value==undefined&&t.open)this.value=t.name;else this.updateItems()};o.prototype.onAccordionItemDidUnload=function(o){var t=this.items.indexOf(o.target);if(t>-1)this.items.splice(t,1)};o.prototype.componentDidLoad=function(){this.updateItems()};o.prototype.updateItems=function(){var o=false;for(var t=0,e=this.items;t<e.length;t++){var r=e[t];if(r.open=!o&&r.name==this.value)o=true}};o.prototype.render=function(){return[e("slot",null)]};Object.defineProperty(o.prototype,"me",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return o}());n.style=i}}}));