import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
import { Component } from 'preact';
import { Config } from '../config.js';
import { Link } from './link.js';
export class Footer extends Component {
    constructor() {
        super(...arguments);
        this._events = [];
    }
    componentWillMount() {
        this._events.push(Config.map.on('change', () => this.setState(this.state)));
    }
    componentWillUnmount() {
        for (const e of this._events)
            e();
        this._events = [];
    }
    render() {
        if (Config.map.isDebug)
            return;
        return (_jsx("footer", { class: "lui-footer lui-footer-small lui-hide-sm lui-hide-xs", role: "contentinfo", children: _jsxs("div", { class: "lui-footer-columns", children: [_jsx("div", { style: "display:flex; align-items:center", children: _jsx(Link, { href: "http://www.govt.nz/", ariaLabel: "New Zealand Government", children: _jsx("img", { src: "/assets/logo-nz-govt.svg" }) }) }), _jsx("div", { class: "justify-end", children: _jsxs("ul", { class: "lui-footer-list", children: [_jsx("li", { class: "lui-footer-inline-list-item", children: "\u00A9 2021 Land Information New Zealand" }), _jsx("li", { class: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/contact-us", children: "Contact" }) }), _jsx("li", { class: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/privacy", children: "Privacy" }) }), _jsx("li", { class: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution", children: "Data Attribution" }) })] }) })] }) }));
    }
}
//# sourceMappingURL=layout.footer.js.map