import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Component } from 'react';
import { Config } from '../config.js';
import { Link } from './link.js';
export class Footer extends Component {
    constructor() {
        super(...arguments);
        Object.defineProperty(this, "_events", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: []
        });
    }
    componentDidMount() {
        this._events.push(Config.map.on('change', () => this.forceUpdate()));
    }
    componentWillUnmount() {
        for (const e of this._events)
            e();
        this._events = [];
    }
    render() {
        if (Config.map.isDebug)
            return;
        return (_jsx("footer", { className: "lui-footer lui-footer-small lui-hide-sm lui-hide-xs", role: "contentinfo", children: _jsxs("div", { className: "lui-footer-columns", children: [_jsx("div", { style: { display: 'flex', alignItems: 'center' }, children: _jsx(Link, { href: "http://www.govt.nz/", ariaLabel: "New Zealand Government", children: _jsx("img", { src: "/assets/logo-nz-govt.svg", width: "211px" }) }) }), _jsx("div", { style: { display: 'flex', alignItems: 'center' }, children: _jsxs("ul", { className: "lui-footer-list", children: [_jsx("li", { className: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/contact-us", children: "Contact" }) }), _jsx("li", { className: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/privacy", children: "Privacy" }) }), _jsx("li", { className: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution", children: "Data Attribution" }) }), _jsx("li", { className: "lui-footer-inline-list-item", children: _jsx(Link, { href: "https://www.linz.govt.nz/copyright", children: "Copyright" }) })] }) })] }) }));
    }
}
//# sourceMappingURL=layout.footer.js.map