!function(t){var o={};function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,o){if(1&o&&(t=e(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var r in t)e.d(n,r,function(o){return t[o]}.bind(null,r));return n},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},e.p="",e(e.s=94)}({94:function(t,o){!function(t,o,e){o.behaviors.routesBookingForm={attach:function(o){function n(){var o=t(this),e=o.closest(".route-booking-block").find(".route-booking-from"),n=o.closest(".route-booking-block").find(".route-booking-to"),r=o.closest(".route-booking-block").find(".routes-booking-submit"),i=n.html(),u=e.html();if(e.html(i),n.html(u),r.hasClass("buy-tickets-btn")){var a=r.data("fromStation"),c=r.data("toStation");r.data("toStation",a),r.data("fromStation",c),r[0].dataset.toStation=a,r[0].dataset.fromStation=c}}e("routesSwitchStations",".routes-booking-switch").forEach((function(t){t.addEventListener("click",n,!1)}))}}}(jQuery,Drupal,once)}});
//# sourceMappingURL=routes-booking-form.js.map