| 12345678 |
- /**
- * Minified by jsDelivr using Terser v5.3.5.
- * Original file: /npm/flatpickr@4.6.9/dist/plugins/scrollPlugin.js
- *
- * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
- */
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).scrollPlugin=t()}(this,(function(){"use strict";if("function"!=typeof window.CustomEvent){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}function t(e){return Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))}var n=function(n){n.preventDefault();var o=new e("increment",{bubbles:!0});o.delta=t(n),function(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}(n).dispatchEvent(o)};return function(){return function(e){var o=function(e){return function(n){n.preventDefault();var o=t(n);e.changeMonth(o)}}(e);return{onReady:function(){e.timeContainer&&e.timeContainer.addEventListener("wheel",n),e.yearElements.forEach((function(e){return e.addEventListener("wheel",n)})),e.monthElements.forEach((function(e){return e.addEventListener("wheel",o)})),e.loadedPlugins.push("scroll")},onDestroy:function(){e.timeContainer&&e.timeContainer.removeEventListener("wheel",n),e.yearElements.forEach((function(e){return e.removeEventListener("wheel",n)})),e.monthElements.forEach((function(e){return e.removeEventListener("wheel",o)}))}}}}}));
- //# sourceMappingURL=/sm/000b96d33b381a01caaaab621598e209c852c4882c7e036a4ef1492e0a9daee2.map
|