dayjs_plugin_isBetween.js 1.1 KB

12345678910111213141516171819202122
  1. import {
  2. __commonJS
  3. } from "./chunk-2LSFTFF7.js";
  4. // node_modules/.pnpm/dayjs@1.11.7/node_modules/dayjs/plugin/isBetween.js
  5. var require_isBetween = __commonJS({
  6. "node_modules/.pnpm/dayjs@1.11.7/node_modules/dayjs/plugin/isBetween.js"(exports, module) {
  7. !function(e, i) {
  8. "object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isBetween = i();
  9. }(exports, function() {
  10. "use strict";
  11. return function(e, i, t) {
  12. i.prototype.isBetween = function(e2, i2, s, f) {
  13. var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
  14. return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
  15. };
  16. };
  17. });
  18. }
  19. });
  20. export default require_isBetween();
  21. //# sourceMappingURL=dayjs_plugin_isBetween.js.map