"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uuidNotInLocalStorage = void 0;
const id_1 = require("../../../util/id");
function uuidNotInLocalStorage(prefix) {
    let id;
    let _id;
    do {
        id = (0, id_1.uuid)();
        _id = `${prefix}/${id}`;
    } while (localStorage.getItem(_id) !== null);
    return [id, _id];
}
exports.uuidNotInLocalStorage = uuidNotInLocalStorage;
//# sourceMappingURL=uuidNotInLocalStorage.js.map