/** * Shared modal state vocabulary. * * @package AKSRT */ (function (window) { "use strict"; var statuses = { idle: "idle", loading: "loading", ready: "ready", empty: "empty", submitting: "submitting", success: "success", error: "error", unauthorized: "unauthorized", stale: "stale", }; function create(kind) { return { kind: String(kind || "generic"), status: statuses.idle, updatedAt: 0, error: null, }; } window.AksrtModalState = { statuses: statuses, create: create, }; })(window);