PageSourceSearch

https://www.cyclegear.com/js/redline/chunks/6e9f2563d43d.js

js cyclegear.com collected 2026-10-02 19:34:07 UTC 3,860 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3974],{3974:(e,t,o)=>{o.r(t),o.d(t,{ReservationHelper:()=>u});var r=o(9117),n=o(9513);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modal=t,this.selectedStoreLocationId="",this.selectedStoreNode="",this.reservationNumber="",this.observeReserveButton(),this.observeForm(),this.maybeSelectStore()},(t=[{key:"maybeSelectStore",value:function(){var e=(0,r.Eu)("ReservationHelper.storeLocationIdInput");e.value&&this.selectStore(e.value)}},{key:"observeReserveButton",value:function(){var e=this;document.addEventListener("click",(function(t){t.target.matches(".js-ReservationHelper-reserveButton")&&e.selectStore(t.target.dataset.id)}))}},{key:"observeForm",value:function(){var e=this;document.querySelector(".js-ReservationHelper-reservationForm").addEventListener("submit",(function(t){t.target.dataset.js&&(t.preventDefault(),document.querySelector(".js-ReservationHelper-submitReservation").setAttribute("aria-busy",!0),e.submitReservationForm())}))}},{key:"selectStore",value:function(e){this.selectedStoreLocationId=e,this.selectedStoreNode=(0,r.Eu)("ReservationHelper.storeLocation-".concat(this.selectedStoreLocationId),this.modal),this.showReservationForm(),this.hideAllStoreLocations(),this.showSelectedStoreLocation(),this.addIdToForm(),this.cloneOutput()}},{key:"addIdToForm",value:function(){(0,r.Eu)("ReservationHelper.storeLocationIdInput").value=this.selectedStoreLocationId}},{key:"cloneOutput",value:function(){var e=(0,r.Eu)("GoogleMapsAutocomplete.output"),t=e.cloneNode(!0),o=e.parentNode;t.dataset.js="",o.insertBefore(t,e),e.classList.add("hide")}},{key:"hideAllStoreLocations",value:function(){[].slice.call(document.querySelectorAll(".js-ReservationHelper-result",this.modal)).forEac
1h((function(e){return e.classList.add("reservation-panel__hidden-element")}))}},{key:"submitReservationForm",value:function(){var e=this,t=document.querySelector(".js-ReservationHelper-reservationForm"),o=n("input[name='_csrf_token']").val(),r=n(t).serialize();n.ajax({type:"POST",url:"/store-location-reservation/create?".concat(r),beforeSend:function(e){e.setRequestHeader("X-CSRF-Token",o)},fail:function(){e.modal.textContent("Your reservation was not placed.  Please contact customer service at 800-292-5343")},success:function(t){e.setReservationNumber(t),e.showConfirmation()}})}},{key:"setReservationNumber",value:function(e){this.reservationNumber=(0,r.Eu)("ReservationHelper.reservationNumber",this.modal),this.reservationNumber.textContent=e.data.reservation_number}},{key:"showConfirmation",value:function(){this.modal.classList.remove("reservation-panel--pick-up-state"),this.modal.classList.add("reservation-panel--confirmation")}},{key:"showReservationForm",value:function(){this.modal.classList.add("reservation-panel--pick-up-state")}},{key:"showSelectedStoreLocation",value:function(){this.selectedStoreNode.classList.remove("reservation-panel__hidden-element")}}])&&s(e.prototype,t),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}()}}]);

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.