PageSourceSearch

https://www.plaud.ai/cdn/shop/t/125/assets/sa-shop-subscription-new.js?v=3223886047879217001782965574

js plaud.ai collected 2026-09-24 08:29:07 UTC 2,641 bytes, 2 lines download raw bytes

1(function(){"use strict";var ROOT_TAG="sa-shop-subscription-new",TOGGLE_SEL=".js-sub-new-toggle",TABLE_WRAP_SEL=".sa-shop-sub-new__table-wrap",FOOTER_SEL=".sa-shop-sub-new__footer",TOGGLE_ACTIVE_CLASS="sa-shop-sub-new__toggle-btn--active",TABLE_VISIBLE_CLASS="sa-shop-sub-new__table-wrap--visible",FOOTER_VISIBLE_CLASS="sa-shop-sub-new__footer--visible";function SaShopSubNew(rootEl){this.root=rootEl,this.toggleBtns=rootEl?Array.from(rootEl.querySelectorAll(TOGGLE_SEL)):[],this.tableWraps=rootEl?Array.from(rootEl.querySelectorAll(TABLE_WRAP_SEL)):[],this.footers=rootEl?Array.from(rootEl.querySelectorAll(FOOTER_SEL)):[],this.handleToggleClick=this.handleToggleClick.bind(this)}SaShopSubNew.prototype.init=function(){!this.root||this.toggleBtns.length===0||this.toggleBtns.forEach(function(btn){btn.addEventListener("click",this.handleToggleClick)},this)},SaShopSubNew.prototype.destroy=function(){this.toggleBtns.forEach(function(btn){btn.removeEventListener("click",this.handleToggleClick)},this)},SaShopSubNew.prototype.handleToggleClick=function(e){var btn=e&&e.currentTarget;if(btn){var source=btn.getAttribute("data-sub-source");source&&this.switchTo(source)}},SaShopSubNew.prototype.switchTo=function(source){var i;for(i=0;i<this.toggleBtns.length;i++){var b=this.toggleBtns[i],active=b.getAttribute("data-sub-source")===source;b.classList.toggle(TOGGLE_ACTIVE_CLASS,active),b.setAttribute("aria-selected",active?"true":"false")}for(i=0;i<this.tableWraps.length;i++){var wrap=this.tableWraps[i],visible=wrap.getAttribute("data-sub-source")===source;wrap.classList.toggle(TABLE_VISIBLE_CLASS,visible),wrap.setAttribute("aria-hidden",visible?"false":"true"),visible&&wrap.removeAttribute("style")}for(i=0;i<this.footers.length;i++){var footer=this.footers[i],showFooter=footer.getAttribute("data-sub-footer")===source;footer.classList.toggle(FOOTER_VISIBLE_CLASS,showFooter),footer.setAttribute("aria-hidden",showFooter?"false":"true")}};var instances=new WeakMap;function initRoot(root){if(root){var existing=instances.get(root);existing&&(existing.destroy(),instances.delete(root));var inst=new SaShopSubNew(root);inst.init(),instances.set(root,inst)}}window.initSaShopSubNew=function(sectionId){var root=document.getElementById("sa-shop-subscription-new-"+sectionId);initRoot(root)},customElements.get(ROOT_TAG)||customElements.define(ROOT_TAG,class extends HTMLElement{connectedCallback(){initRoot(this)}disconnectedCallback(){var existing=instances.get(this);existing&&(existing.destroy(),instances.delete(this))}})})();
2//# sourceMappingURL=/cdn/shop/t/125/assets/sa-shop-subscription-new.js.map?v=3223886047879217001782965574

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.