System.register(["./p-84426aeb.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.r;n=e.h;i=e.g}],execute:function(){var o=e("smoothly_accordion",function(){function e(e){t(this,e);this.items=[]}e.prototype.valueChanged=function(e){this.updateItems()};e.prototype.handleOpenClose=function(e){if(e.detail.open)this.value=e.detail.name;else if(this.value==e.detail.name)this.value=undefined};e.prototype.onAccordionItemDidLoad=function(e){var t=e.target;this.items.push(t);if(this.value==undefined&&t.open)this.value=t.name;else this.updateItems()};e.prototype.onAccordionItemDidUnload=function(e){var t=this.items.indexOf(e.target);if(t>-1)this.items.splice(t,1)};e.prototype.componentDidLoad=function(){this.updateItems()};e.prototype.updateItems=function(){var e=false;for(var t=0,n=this.items;t<n.length;t++){var i=n[t];if(i.open=!e&&i.name==this.value)e=true}};e.prototype.render=function(){return[n("slot",null)]};Object.defineProperty(e.prototype,"me",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return"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}"},enumerable:true,configurable:true});return e}())}}}));