1var S=(d,o)=>()=>(o||d((o={exports:{}}).exports,o),o.exports);var j=S((h,v)=>{(function(o,e){typeof h=="object"&&typeof v=="object"?v.exports=e():typeof define=="function"&&define.amd?define([],e):typeof h=="object"?h.ShortcutButtonsPlugin=e():o.ShortcutButtonsPlugin=e()})(window,function(){return function(d){var o={};function e(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,e),n.l=!0,n.exports}return e.m=d,e.c=o,e.d=function(t,n,f){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:f})},e.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(n&1&&(t=e(t)),n&8||n&4&&typeof t=="object"&&t&&t.__esModule)return t;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:t}),n&2&&typeof t!="string")for(var y in t)e.d(f,y,function(p){return t[p]}.bind(null,y));return f},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="./src/index.ts")}({
1"./src/index.ts":function(d,o,e){"use strict";var t=this&&this.__assign||function(){return t=Object.assign||function(p){for(var r,l=1,a=arguments.length;l<a;l++){r=arguments[l];for(var b in r)Object.prototype.hasOwnProperty.call(r,b)&&(p[b]=r[b])}return p},t.apply(this,arguments)};Object.defineProperty(o,"__esModule",{value:!0}),o.ShortcutButtonsPlugin=void 0;var n={theme:"light"},f=new Set(["accesskey","aria-label","class","tabindex"]);function y(p){var r=t(t({},n),p);return function(l){var a;function b(i){i.stopPropagation(),i.preventDefault();var u=i.target;if(!(u.tagName.toLowerCase()!=="button"||typeof r.onClick>"u"))for(var s=parseInt(u.dataset.index,10),g=Array.isArray(r.onClick)?r.onClick:[r.onClick],c=0,m=g;c<m.length;c++){var w=m[c];typeof w=="function"&&w(s,l)}}function _(i){var u=i.target;i.key!=="Tab"||u.tagName.toLowerCase()!=="button"||(i.shiftKey&&!u.previousSibling||!i.shiftKey&&!u.nextSibling)&&(i.preventDefault(),l.element.focus())}function C(i,u){Object.keys(u).filter(function(s){return f.has(s)}).forEach(function(s){var g;if(s==="class"){(g=i.classList).add.apply(g,u[s].split(" "));return}i.setAttribute(s,u[s])})}return{onReady:function(){if(a=document.createElement("div"),a.classList.add("shortcut-buttons-flatpickr-wrapper",r.theme),typeof r.label<"u"&&r.label.length){var i=document.createElement("div");i.classList.add("shortcut-buttons-flatpickr-label"),i.textContent=r.label,a.appendChild(i)}var u=document.createElement("div");u.classList.add("shortcut-buttons-flatpickr-buttons"),(Array.isArray(r.button)?r.button:[r.button]).forEach(function(s,g){var c=document.createElement("button");c.type="button",c.classList.add("shortcut-buttons-flatpickr-button"),c.textContent=s.label,c.dataset.index=String(g),typeof s.attributes<"u"&&C(c,s.attributes),u.appendChild(c),l.pluginElements.push(c)}),a.appendChild(u),l.calendarContainer.appendChild(a),a.addEventListener("click",b),a.addEventListener("keydown",_)},onDestroy:function(){a.removeEventListener("keydown",_),a.removeEventListener("click",b),a=void 0}}}}o.ShortcutButtonsPlugin=y}
1}).ShortcutButtonsPlugin})});export default j();
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.