PageSourceSearch

https://tinnitus.org.uk/wp-content/themes/montere/dist/js/montere-798.b1b9026be414333c26b4.js

js tinnitus.org.uk collected 2026-10-02 05:20:54 UTC 2,197 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmontere=self.webpackChunkmontere||[]).push([[798],{9798:function(t,e,a){function n(t){if(t(".donation").length&&t(".donation").each((function(){var e=null,a=null,n=t(this),o=n.find('[role="tab"]'),r=[],i=t(".donation__custom-input"),c=t("#donation-type"),s=function(t){t.focus()},u=function(e){o.each((function(a){var n=t(this);n.is(e)?(n.attr("aria-selected","true"),n.removeAttr("tabindex"),n.addClass("donation__btn-active"),r[a].addClass("donation__active")):(n.attr("aria-selected","false"),n.attr("tabindex",-1),n.removeClass("donation__btn-active"),r[a].removeClass("donation__active"))})),c.val(e.attr("data-type")),i.each((function(){t(this).val("")}))},d=function(n){var r,i=n.currentTarget,c=!1;switch(n.key){case"ArrowLeft":r=t(i),e.is(r)?s(a):o.filter((function(e,a){t(a).is(r)&&s(o[e-1])})),c=!0;break;case"ArrowRight":!function(n){a.is(n)?s(e):o.filter((function(e,a){t(a).is(n)&&s(o[e+1])}))}(t(i)),c=!0;break;case"Home":s(e),c=!0;break;case"End":s(a),c=!0}c&&(n.stopPropagation(),n.preventDefault())},l=function(e){e.preventDefault(),u(t(e.currentTarget))};o.each((function(){var o=t(this),i=n.find("#".concat(o.attr("aria-controls")));o.attr("tabindex",-1),o.attr("aria-selected","false"),r.push(i),o.on("keydown",d),o.on("click",l),e||(e=o),a=o})),u(e)})),t(".donorfy-donation").length){var e=t("#Amount"),a=t("#OneOffPayment"),n=t("#RecurringPayment"),o=t("#PaymentScheduleRow"),r=t(".donation-switcher"),i=window.location.search,c=new URLSearchParams(i),s=c.get("amount"),u=c.get("type");if(s){var d=(Math.round(100*s)/100).toFixed(2);e.val(d)}u&&("single"===u?(a.prop("checked",!0),n.prop("checked",!1),o&&o.css("display","none")):"regular"===u&&(a.prop("checked",!1),n.prop("checked",!0),o&&o.css("display","block"))),e.on("input",(function(e){var a=t("strong[data-amount]"),n=new URL(window.location.href),o=""===e.target.value?0:e.target.value;if(n.searchParams.set("amount",o),window.history.replaceState({amount:o},document.title,n.toString()),a.length&&a.html(a.attr("data-amount")+o),r.length){var i=new URL(r.attr("href"));i.searchParams.set("amount",o),r.attr("href",i.toString())}}))}}a.r(e),a.d(e,{default:function(){return 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.