(text, type, expire, id)
| 8868 | }, 1); |
| 8869 | }; |
| 8870 | var messageBox = function(text, type, expire, id) { |
| 8871 | text = params.apply(this, arguments); |
| 8872 | text.type = text.type || "info"; |
| 8873 | var subtype = text.type.split("-")[0]; |
| 8874 | switch (subtype) { |
| 8875 | case "alert": |
| 8876 | return alertPopup(text); |
| 8877 | case "confirm": |
| 8878 | return confirmPopup(text); |
| 8879 | case "modalbox": |
| 8880 | return boxPopup(text); |
| 8881 | default: |
| 8882 | return info(text); |
| 8883 | } |
| 8884 | }; |
| 8885 | messageBox.seed = (/* @__PURE__ */ new Date()).valueOf(); |
| 8886 | messageBox.uid = utils.uid; |
| 8887 | messageBox.expire = 4e3; |
nothing calls this directly
no test coverage detected