1!function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ShortcutButtonsPlugin=n():e.ShortcutButtonsPlugin=n()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,(function(e){return t[e]}).bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/index.ts")}({
1"./src/index.ts":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ShortcutButtonsPlugin=void 0;var o={theme:"light"},i=new Set(["accesskey","aria-label","class","tabindex",]);e.ShortcutButtonsPlugin=function t(e){var n=r(r({},o),e);return function(t){var e;function r(e){e.stopPropagation(),e.preventDefault();var r=e.target;if("button"===r.tagName.toLowerCase()&&void 0!==n.onClick)for(var o=parseInt(r.dataset.index,10),i=Array.isArray(n.onClick)?n.onClick:[n.onClick],a=0,u=i;a<u.length;a++){var s=u[a];"function"==typeof s&&s(o,t)}}function o(e){var n=e.target;"Tab"===e.key&&"button"===n.tagName.toLowerCase()&&((!e.shiftKey||n.previousSibling)&&(e.shiftKey||n.nextSibling)||(e.preventDefault(),t.element.focus()))}return{onReady:function(){if((e=document.createElement("div")).classList.add("shortcut-buttons-flatpickr-wrapper",n.theme),void 0!==n.label&&n.label.length){var a=document.createElement("div");a.classList.add("shortcut-buttons-flatpickr-label"),a.textContent=n.label,e.appendChild(a)}var u=document.createElement("div");u.classList.add("shortcut-buttons-flatpickr-buttons"),(Array.isArray(n.button)?n.button:[n.button]).forEach(function(e,n){var r=document.createElement("button");r.type="button",r.classList="btn my-2 btn-sm btn-light shortcut-buttons-flatpickr-button",r.textContent=e.label,r.dataset.index=String(n),void 0!==e.attributes&&function t(e,n){Object.keys(n).filter(function(t){return i.has(t)}).forEach(function(t){var r;if("class"===t){(r=e.classList).add.apply(r,n[t].split(" "));return}e.setAttribute(t,n[t])})}(r,e.attributes),u.appendChild(r),t.pluginElements.push(r)}),e.appendChild(u),t.calendarContainer.appendChild(e),e.addEventListener("click",r),e.addEventListener("keydown",o)},onDestroy:function(){e.removeEventListener("keydown",o),e.removeEventListener("click",r),e=void 0}}}}}
1}).ShortcutButtonsPlugin}); 2//# sourceMappingURL=shortcut-buttons-flatpickr.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.