"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const APINotImplementedError_1 = require("../../../../../exception/APINotImplementedError");
const _ids_1 = require("../../../../_ids");
const Storage_1 = require("../Storage_");
class SessionStorage extends Storage_1.default {
    constructor(system) {
        super(system, _ids_1.ID_SESSION_STORAGE, 'session');
        this._storage = () => {
            const { api: { window: { sessionStorage }, }, } = this.__system;
            if (!sessionStorage) {
                throw new APINotImplementedError_1.APINotSupportedError('Session Storage');
            }
            return sessionStorage;
        };
    }
}
exports.default = SessionStorage;
//# sourceMappingURL=index.js.map