/*
The MIT License (MIT)

Copyright (c) 2015-2016 Solid

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

If you would like to know more about the solid Solid project, please see
https://github.com/solidos/solid
*/
'use strict';
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.initFooter = exports.initHeader = exports.widgets = exports.utils = exports.tabs = exports.table = exports.style = exports.preferences = exports.participation = exports.pad = exports.infiniteMessageArea = exports.messageArea = exports.media = exports.matrix = exports.login = exports.log = exports.language = exports.icons = exports.dom = exports.createTypes = exports.create = exports.aclControl = exports.acl = exports.rdf = exports.ns = exports.store = exports.authn = void 0;
/**
 * Provides a Solid client helper object (which exposes various static modules).
 * @module solidUi.js
 * @main solidUi.js
 */
/**
 * @class SolidUi
 * @static
 */
// REMOVE @ts-ignore as you migrate files to TypeScript
const rdf = __importStar(require("rdflib")); // pull in first avoid cross-refs
exports.rdf = rdf;
// @ts-ignore
const ns_1 = __importDefault(require("./ns"));
exports.ns = ns_1.default;
const index_1 = require("./acl/index");
Object.defineProperty(exports, "acl", { enumerable: true, get: function () { return index_1.acl; } });
Object.defineProperty(exports, "aclControl", { enumerable: true, get: function () { return index_1.aclControl; } });
const index_2 = require("./create/index");
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return index_2.create; } });
// @ts-ignore
const iconBase_1 = require("./iconBase");
Object.defineProperty(exports, "icons", { enumerable: true, get: function () { return iconBase_1.icons; } });
const language = __importStar(require("./widgets/forms/autocomplete/language"));
exports.language = language;
const log = __importStar(require("./log"));
exports.log = log;
const index_3 = require("./matrix/index");
Object.defineProperty(exports, "matrix", { enumerable: true, get: function () { return index_3.matrix; } });
const index_4 = require("./media/index");
Object.defineProperty(exports, "media", { enumerable: true, get: function () { return index_4.media; } });
// @ts-ignore
const messageArea_1 = require("./messageArea");
Object.defineProperty(exports, "messageArea", { enumerable: true, get: function () { return messageArea_1.messageArea; } });
// @ts-ignore
const infinite_1 = require("./chat/infinite");
Object.defineProperty(exports, "infiniteMessageArea", { enumerable: true, get: function () { return infinite_1.infiniteMessageArea; } });
// @ts-ignore
const pad = __importStar(require("./pad"));
exports.pad = pad;
// @ts-ignore
const participation = __importStar(require("./participation"));
exports.participation = participation;
// @ts-ignore
const preferences = __importStar(require("./preferences"));
exports.preferences = preferences;
// @ts-ignore
const style_1 = require("./style");
Object.defineProperty(exports, "style", { enumerable: true, get: function () { return style_1.style; } });
// @ts-ignore
const table_1 = require("./table");
Object.defineProperty(exports, "table", { enumerable: true, get: function () { return table_1.renderTableViewPane; } });
const tabs = __importStar(require("./tabs"));
exports.tabs = tabs;
// @ts-ignore
const utils = __importStar(require("./utils"));
exports.utils = utils;
const login = __importStar(require("./login/login"));
exports.login = login;
const widgets = __importStar(require("./widgets/index"));
exports.widgets = widgets;
const header_1 = require("./header");
Object.defineProperty(exports, "initHeader", { enumerable: true, get: function () { return header_1.initHeader; } });
const footer_1 = require("./footer");
Object.defineProperty(exports, "initFooter", { enumerable: true, get: function () { return footer_1.initFooter; } });
const createTypes = __importStar(require("./create/types"));
exports.createTypes = createTypes;
const solid_logic_1 = require("solid-logic");
Object.defineProperty(exports, "authn", { enumerable: true, get: function () { return solid_logic_1.authn; } });
Object.defineProperty(exports, "store", { enumerable: true, get: function () { return solid_logic_1.store; } });
const dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
exports.dom = dom;
if (typeof window !== 'undefined') {
    ;
    window.UI = {
        authn: solid_logic_1.authn,
        store: solid_logic_1.store,
        ns: ns_1.default,
        rdf,
        acl: index_1.acl,
        aclControl: index_1.aclControl,
        create: index_2.create,
        createTypes,
        dom,
        icons: iconBase_1.icons,
        language,
        log,
        login,
        matrix: index_3.matrix,
        media: index_4.media,
        messageArea: messageArea_1.messageArea,
        infiniteMessageArea: infinite_1.infiniteMessageArea,
        pad,
        participation,
        preferences,
        style: style_1.style,
        table: table_1.renderTableViewPane,
        tabs,
        utils,
        widgets,
        initHeader: header_1.initHeader,
        initFooter: footer_1.initFooter
    }; // Simpler access by non-node scripts
}
//# sourceMappingURL=index.js.map