PageSourceSearch

https://latepoint.com/wp-content/plugins/spectra-blocks/build/blocks/tabs/view.js?ver=265ad845ae5f69d80f58

js latepoint.com collected 2026-09-25 02:32:32 UTC 1,168 bytes, 1 lines download raw bytes

1import{getContext as t,getElement as e,store as a}from"@wordpress/interactivity";a("spectra/tabs",{actions:{updateActiveTab:()=>{const e=t("spectra/tabs"),{currentTab:a}=e;e.activeTab=a},switchTabs:a=>{if(![37,39].includes(a.keyCode))return;const s=t("spectra/tabs"),{blockId:i,currentTab:c,firstTab:r,lastTab:b}=s,{ref:o}=e();let n;switch(a.keyCode){case 37:n=c-1,n<r&&(n=b);break;case 39:n=c+1,n>b&&(n=r)}o.parentNode.querySelector(`#${i}-tab-${n}`).focus(),s.activeTab=n}},callbacks:{initializeTabs:()=>{const e=t("spectra/tabs"),{blockId:a,currentTab:s}=e;e.tabId=`${a}-tab-${s}`,e.tabPanelId=`${a}-tabpanel-${s}`},isActiveTab:()=>{const a=t("spectra/tabs"),{activeTab:s,currentTab:i}=a,c=a.isActive;if(a.isActive=s===i,void 0!==window.AOS&&window.AOS.refresh(),a.isActive&&!c){const{ref:t}=e();if(t){const e=t.querySelectorAll("[data-aos]");e.forEach(t=>{t.style.visibility="hidden",t.classList.remove("aos-init","aos-animate")}),setTimeout(()=>{e.forEach(t=>{t.style.visibility="visible"}),void 0!==window.AOS&&window.AOS.init()},100)}}},updateTabAttributes:()=>{const e=t("spectra/tabs"),{isActive:a}=e;e.ariaSelected=a?"true":"false",e.tabIndex=a?"0":"-1"}}});

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.