/**
 * Copyright 2019 The Pennsylvania State University
 * @license Apache-2.0, see License.md for full text.
 */
import{LitElement as e}from"../../../../../lit/index.js";import{store as t}from"../../core/haxcms-site-store.js";import{autorun as i,toJS as s}from"../../../../../mobx/dist/mobx.esm.js";class SiteActiveFields extends e{static get tag(){return"site-active-fields"}static get properties(){return{fields:{type:Object}}}updated(e){e.forEach(((e,t)=>{"fields"==t&&this.dispatchEvent(new CustomEvent("fields-changed",{detail:this[t]}))}))}connectedCallback(){super.connectedCallback(),this.__disposer=i((()=>{this.fields=s(t.activeItemFields)}))}disconnectedCallback(){this.__disposer(),super.disconnectedCallback()}}customElements.define(SiteActiveFields.tag,SiteActiveFields);export{SiteActiveFields};