/**
 * Copyright 2019 The Pennsylvania State University
 * @license Apache-2.0, see License.md for full text.
 */
import{LitElement as e,html as t,css as i}from"../../../../../lit/index.js";import{store as s}from"../../core/haxcms-site-store.js";import{autorun as o,toJS as r}from"../../../../../mobx/dist/mobx.esm.js";import"../../../../license-element/license-element.js";class SiteFooter extends e{static get styles(){return[i`
        :host {
          display: block;
          transition: 0.2s opacity linear;
          opacity: 1;
        }
        :host([edit-mode]) {
          opacity: 0.2;
          pointer-events: none;
        }
      `]}static get tag(){return"site-footer"}constructor(){super(),this.__disposer=[],o((e=>{this.manifest=r(s.manifest),this.__disposer.push(e)})),o((e=>{this.editMode=r(s.editMode),this.__disposer.push(e)})),o((e=>{this.siteTitle=r(s.siteTitle),this.__disposer.push(e)}))}render(){return t`
      <div class="wrapper">
        ${this.manifest?t`
              <license-element
                .title="${this.siteTitle}"
                .creator="${this.manifest.author}"
                .source="${this.manifest.domain}"
                .license="${this.manifest.license}"
              >
              </license-element>
            `:""}
      </div>
    `}static get properties(){return{siteTitle:{type:String,attribute:"site-title"},manifest:{type:Object},editMode:{type:Boolean,reflect:!0,attribute:"edit-mode"}}}disconnectedCallback(){for(var e in this.__disposer)this.__disposer[e].dispose();super.disconnectedCallback()}}customElements.define(SiteFooter.tag,SiteFooter);export{SiteFooter};