PageSourceSearch

https://www.cyclegear.com/js/redline/chunks/f2397efa631e.js

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

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6239],{6239:(t,e,n)=>{n.r(e),n.d(e,{RpmCashToggle:()=>h});var r=n(906),o=n(9117),a=n(9513);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.toggle=(0,o.Eu)("RpmCashToggle.toggle"),this.amount=(0,o.Eu)("RpmCashToggle.amount"),this.submitBtn=document.querySelectorAll('[data-js-payment-interface="CreditCard"]'),this.balance=e,this.loyaltyCoversOrder=n,this.observeRpmCashToggle()},(e=[{key:"observeRpmCashToggle",value:function(){var t=this;this.toggle.addEventListener("change",this.handleToggleChange.bind(this)),this.amount.addEventListener("change",(0,r.A)(this.handleAmountChange.bind(this),250)),this.amount.addEventListener("keydown",(function(e){"Enter"===e.key&&(e.preventDefault(),t.handleAmountChange())}))}},{key:"handleAmountChange",value:function(){var t=this.amount.value,e=this.amount.validity,n=e.valid,r=e.rangeOverflow,o=e.rangeUnderflow;if(n){var a=u(this.amount.value.split("."),2);t=[a[0],(a[1]||"").padEnd(2,0)].join(".")}else r?t=this.amount.max:o&&(t=this.amount.min);this.amount.value=t,this.toggle.checked&&this.postChange()}},{key:"handleToggleChange",value:function(){"0.00"!=this.amount.value&&this.postChange()}},{key:"postChange",value:function(){this.submitBtn.forEach((function(t){t.setAttribute("disabled",!0)}));var t={payment_allow_rpm_cash_capture:this.toggle.checked,payment_rpm_cash_capture_amount:this.amount.value,_csrf_token:a('input[name="_csrf_token"]').val()};a.ajax({url:"/checkout/billing/commit",type:"POST",data:t,success:function(){window.location.reload()},error:function(){window.location.reload()}})}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()}}]);

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.