PageSourceSearch

https://www.wwf.se/app/themes/wwf/dist/assets/price-monthly-yearly-BgxVxS7N.js

js wwf.se collected 2026-10-02 03:06:24 UTC 1,560 bytes, 1 lines download raw bytes

1var d=Object.defineProperty;var l=(a,r,e)=>r in a?d(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e;var n=(a,r,e)=>l(a,typeof r!="symbol"?r+"":r,e);import{Subcomponent as u}from"./subcomponent-DdVSWgY2.js";class m extends u{constructor(e,i,t){super(i);n(this,"element");n(this,"formInstance");n(this,"itemList");n(this,"productvariant");n(this,"amount");n(this,"paymentType");this.element=e,this.formInstance=t,this.itemList=this.element.querySelector(".js-price-list"),this.productvariant=this.element.querySelector(".js-productvariant"),this.amount=this.element.querySelector(".js-amount"),this.paymentType="recurring",this.bindUIActions()}bindUIActions(){this.element.querySelectorAll(".js-predefined-price").forEach(e=>e.addEventListener("click",i=>{const t=i.target,s=parseInt(t.dataset.priceYearly);s!==0&&(this.updatePriceAndProductVariantFields(t),this.itemList.querySelectorAll("li").forEach(c=>{const o=parseInt(c.dataset.minPrice);c.setAttribute("aria-disabled",s<o?"true":"false")}),this.form.dispatchEvent(new Event("wwfPriceChanged")))})),this.form.addEventListener("wwfRecurringOrOneTimeChanged",e=>{const i=e;this.paymentType=i.detail;const t=this.element.querySelector(".js-predefined-price input:checked");t instanceof HTMLInputElement&&this.updatePriceAndProductVariantFields(t)})}updatePriceAndProductVariantFields(e){const i=this.paymentType==="recurring",{productvariantMonthly:t,productvariantYearly:s,priceMonthly:c,priceYearly:o}=e.dataset;this.amount.value=i?c:o,this.productvariant.value=i?t:s}}export{m as default};

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.