PageSourceSearch

https://whatsappbusiness.com/wp-content/themes/wab-theme/dist/js/p…/view-module.js?ver=378d1258b464db445b92

js whatsappbusiness.com collected 2026-10-02 03:20:42 UTC 1,140 bytes, 1 lines download raw bytes

1import{getContext as t,getElement as e,store as r,watch as a,withScope as n}from"@wordpress/interactivity";const c=".wab-interactive-split-accordion-list",i=".wp-block-tenup-accordion",o=".wab-interactive-media-display",s=(t,e)=>{if(!e)return-1;return Array.from(t.querySelectorAll(i)).findIndex(t=>{const r=(t=>{if(!t)return null;const e=t.getAttribute("data-wp-context");if(!e)return null;try{return JSON.parse(e)}catch(t){return null}})(t);return r?.accordionId===e})};r("tenup/accordion",{callbacks:{setupPatternImageSync(){const{ref:r}=e();if(!(r instanceof Element))return;const i=r.closest(c);i&&a(n(()=>{const e=t(),r=s(i,e?.activeId);((t,e)=>{const r=t.querySelector(o);if(!r)return;const a=Array.from(r.children);if(!a.length)return;const n=a[0]?.classList.contains("wab-interactive-media-display__featured-item");let c;c=n?e>=0?e+1:0:e>=0?e:0;const i=Math.max(0,Math.min(c,a.length-1));a.forEach((t,e)=>{const r=e===i;t.classList.toggle("is-active",r);const a=t.querySelector("video");a&&(r?a.hasAttribute("autoplay")||a.play().catch(()=>{}):(a.pause(),a.hasAttribute("autoplay")&&a.removeAttribute("autoplay")))})})(i,r)}))}}});

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.