!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=87)}({87:function(e,t){!function(e){Drupal.behaviors.fareComparator={attach:function(t){e("fareComparatorCalendar",".fare-comparator-form .date-field").forEach((function(e){var t=e.querySelector("input"),r=e.querySelector("button"),n=r.innerText,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.setAttribute("min",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=t?new Date(t):new Date;var r=e.getMonth()+1;r<10&&(r="0"+r);return e.getFullYear()+"-"+r+"-"+e.getDate()}()),t.addEventListener("change",(function(e){var t="";if(e.currentTarget.value){var u=new Date(e.currentTarget.value);t="<br>"+u.getDate()+" "+o[u.getMonth()]+" "+u.getFullYear()}r.innerHTML=n+t})),r.addEventListener("click",(function(e){var r="function"==typeof t.showPicker;e.preventDefault(),t.focus(),r?t.showPicker():t.click()}))}))}}}(once)}});
//# sourceMappingURL=fare-comparator.js.map