!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=93)}({93:function(e,t){!function(e){Drupal.behaviors.journeySmartTabs={attach:function(t){e("journeySmartLiveTrainsRemoveFocus","form.journey-smart-live-times-tabs-form .js-form-item-orientation",t).forEach((function(e){e.addEventListener("click",(function(e){this.querySelector("input").blur()}))})),e("journeySmartLiveTrainsClearField","form.journey-smart-live-times-tabs-form .clear-field",t).forEach((function(e){var t=e.closest("form").querySelector("journey-smart-live-times");e.addEventListener("click",(function(e){this.classList.add("d-none");var r=this.parentNode.querySelector("input");r.value="",r.focus(),t.classList.add("d-none"),t.setAttribute("query","")}))})),e("journeySmartLiveTrainsSwapStations","form.journey-smart-live-times-tabs-form .swap",t).forEach((function(e){var t=e.parentNode.querySelector('input[name="station"]'),r=e.parentNode.querySelector('input[name="callingAt"]');e.addEventListener("click",(function(e){var n=t.value;t.value=r.value,r.value=n}))})),e("journeySmartLiveTrainsShowHideClearButton","form.journey-smart-live-times-tabs-form .js-lt-fields .field",t).forEach((function(e){var t=e.querySelector("input"),r=e.querySelector(".clear-field");t.value&&r.classList.remove("d-none"),t.addEventListener("change",(function(e){t.value&&r.classList.remove("d-none")}))}))}}}(once)}});
//# sourceMappingURL=journey-smart-tabs.js.map