import {Logger, WebpackModules, React, Settings} from "modules"; export default class Modals { static get shouldShowContentErrors() {return Settings.get("settings", "content", "contentErrors");} static get ModalStack() {return WebpackModules.getByProps("push", "update", "pop", "popWithKey");} static get AlertModal() {return WebpackModules.getByPrototypes("handleCancel", "handleSubmit", "handleMinorConfirm");} static get TextElement() {return WebpackModules.getByProps("Sizes", "Weights");} static get ConfirmationModal() {return WebpackModules.getModule(m => m.defaultProps && m.key && m.key() == "confirm-modal");} static default(title, content) { const modal = $(`