PageSourceSearch

https://www.rentscape.com/plugins/jedeye/rentway/assets/js/groupreservation.module.min.js

js rentscape.com collected 2026-10-06 11:25:18 UTC 5,327 bytes, 2 lines download raw bytes

1!function(o){"use strict";o(window.jQuery,window,document)}(function(o,e,a){o(a).router({jedeye_rw_group_reservation_form:function(e){function a(){""!=o("#pickupStation",e).val()&&""!=o("#dropoffStation",e).val()&&""!=o("#pickupDatePicker",e).val()&&""!=o("#dropoffDatePicker",e).val()&&""!=o("#pickupTimePicker",e).val()&&""!=o("#dropoffTimePicker",e).val()&&"1"==o(".booking-form.main",e).data("auto-trigger")&&"1"!=o(".booking-form.main",e).data("auto-lock-submit")&&o(".booking-form.main",e).submit()}function i(){o("#pickupTimePicker",e).prop("readonly",!1),o("#pickupTimePicker",e).timepicker("show"),o("#pickupTimePicker",e).prop("readonly",!0)}function t(){o("#dropoffTimePicker",e).prop("readonly",!1),o("#dropoffTimePicker",e).timepicker("show"),o("#dropoffTimePicker",e).prop("readonly",!0)}o("#pickupStation",e).on("change",function(i){null!=o("#pickupStation",e).val()&&(o("#pickupDatePicker",e).prop("disabled",!1),o("#pickupTimePicker",e).prop("disabled",!1),a())}),o("#dropoffStation",e).on("change",function(i){null!=o("#dropoffStation",e).val()&&(o("#dropoffDatePicker",e).prop("disabled",!1),o("#dropoffTimePicker",e).prop("disabled",!1),a())}),""!=o(".booking-form #pickupStation",e).val()&&o(".booking-form #pickupStation",e).trigger("change"),""!=o(".booking-form #dropoffStation",e).val()&&o(".booking-form #dropoffStation",e).trigger("change");var n=null,r=null;o("#pickupDatePicker",e).length>0&&(n=new Pikaday({field:o("#pickupDatePicker",e)[0],firstDay:1,numberOfMonths:1,minDate:new Date,maxDate:new Date((new Date).setFullYear((new Date).getFullYear()+1)),format:o("body").data("date-format"),bound:!0,yearRange:[2e3,2020],onSelect:function(o){r.setMinDate(this.getDate()),r.gotoDate(this.getDate())},onClose:function(){""!=this._o.field.value?("1"==o(".booking-form.main",e).data("auto-trigger")&&""==o("#pickupTimePicker",e).val()&&(o("#pickupTimePicker",e).data("force-showing","1"),i()),a()):o(".booking-form.main",e).data("auto-trigger","0")},disableDayFn:function(o){return"undefined"!=typeof pickupLocationData&&null!=pickupLocationData&&((null==pickupLocationData.WeekDayOpen||""==pickupLocationData.WeekDayOpen)&&o.getDay()>=1&&o.getDay()<=5||((null==pickupLocationData.SaturDayOpen||""==pickupLocationData.SaturDayOpen)&&6==o.getDay()||(null==pickupLocationData.SunDayOpen||""==pickupLocationData.SunDayClose)&&0==o.getDay()))},i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()}})),o("#dropoffDatePicker",e).length>0&&(r=new Pikaday({field:o("#dropoffDatePicker",e)[0],firstDay:1,numberOfMonths:1,minDate:new Date,maxDate:new Date((new Date).setFullYear((new Date).getFullYear()+1)),format:o("body").data("date-format"),bound:!0,yearRange:[2e3,2020],onSelect:function(o){n.setMaxDate(this.getDate())},onClose:function(){""!=this._o.field.value?("1"==o(".booking-form.main",e).data("auto-trigger")&&""==o("#dropoffTimePicker",e).val()&&(o("#dropoffTimePicker",e).data("force-showing","1"),t()),a()):o(".booking-form.main",e).data("auto-trigger","0")},disableDayFn:function(o){return"undefined"!=typeof dropoffLocationData&&null!=dropoffLocationData&&((null==dropoffLocationData.WeekDayOpen||""==dropoffLocationData.WeekDayOpen)&&o.getDay()>=1&&o.getDay()<=5||((null==dropoffLocationData.SaturDayOpen||""==dropoffLocationData.SaturDayOpen)&&6==o.getDay()||(null==dropoffLocationData.SunDayOpen||""==dropoffLocationData.SunDayClose)&&0==o.getDay()))},i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()}})),0==o(".booking-form.main",e).length&&(null!=n&&""!=o("#dropoffTimePicker",e).val()&&n.setMaxDate(r.getDate()),null!=r&&""!=o("#pickupTimePicker",e).val()&&r.setMinDate(n.getDate())),o("#pickupTimePicker, #dropoffTimePicker",e).each(function(){var e=o(this);e.timepicker({timeFormat:o("body").data("time-format"),disableTextInput:!0,scrollDefault:"10:00",className:e.attr("id")+"-timepicker"}),e.on("showTimepicker",function(){o("."+e.attr("id")+"-timepicker").css("width",e.closest(".time-field").width())})}),o("#pickupTimePicker",e).on("click",function(){i()}).on("changeTime",function(){""==o("#pickupTimePicker",e).val()?o(".booking-form.main",e).data("auto-trigger","0"):(o("#pickupTimePicker",e).parents(".time-field:first").addClass("has-value"),"1"==o(".booking-form.main",e).data("auto-trigger")&&setTimeout(function(){r.show()},500)),a()}),o("#dropoffTimePicker",e).on("click",function(){t()}).on("changeTime",function(){o("#dropoffTimePicker",e).parents(".time-field:first").addClass("has-value"),a()}),o(".booking-form.main #pickupStation",e).on("change",function(a){"1"==o(".booking-form.main",e).data("auto-trigger")&&(o(".booking-form #dropoffStation",e).val(o(this).val()).trigger("change"),""==o("#pickupDatePicker",e).val()&&n.show())}),o(".booking-form.main #pickupDatePicker",e).each(function(){""==o("#pickupStation",e).val()&&(o("#pickupDatePicker",e).prop("disabled",!0),o("#pickupTimePicker",e).prop("disabled",!0))}),o(".booking-form.main #dropoffDatePicker",e).each(function(){""==o("#dropoffStation").val()&&(o("#dropoffDatePicker").prop("disabled",!0),o("#dropoffTimePicker").prop("disabled",!0))})}},!0)});
2//# sourceMappingURL=groupreservation.module.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.