PageSourceSearch

https://www.mccormick.com/cdn/shop/t/2/assets/product-tabs-CSLH946t.js

js mccormick.com collected 2026-10-01 10:12:38 UTC 2,157 bytes, 1 lines download raw bytes

1import{r as h,n as e,t as o,e as l}from"./index-DS8uTh6M.js";import{A as b}from"./accordions-VcqqQa2w.js";import{i as d}from"./intersection-watcher-DADyd6E-.js";import{d as n}from"./delay-offset-CTJE-YpR.js";import{s as m}from"./shouldAnimate-CeW36j6E.js";import"./slide-anim.module-BFvSBue6.js";import"./media-queries-CokWIw5y.js";const c={controls:".product-tabs__tab-buttons",items:".product-tabs__tab-list-wrapper",accordionItems:".accordion"},u=s=>{n(s,[c.controls,c.items]),n(s,[c.accordionItems]);const t=d(s);return{destroy(){t==null||t.destroy()}}},a={tabLabels:"[data-tab-label]",tabItems:"[data-tab-item]",tabList:"[data-tab-list]",activeTabItem:"[data-tab-item][aria-hidden='false']"};h("product-tabs",{onLoad(){this.accordions=[],this.tabItems=o(a.tabItems,this.container),this.tabLabels=o(a.tabLabels,this.container),this.tabList=e(a.tabList,this.container),this.activeTabItem=e(a.activeTabItem,this.container),this.activeTabItem&&this._setTabHeight(this.activeTabItem),this.clickHandlers=l(this.tabLabels,"click",t=>{t.preventDefault();const i=t.currentTarget.getAttribute("aria-controls"),r=e(`#${i}`,this.container);this._closeAll(),this._open(t.currentTarget,r)}),o(".accordion",this.container).forEach(t=>{const i=t.classList.contains("accordion--open");this.accordions.push(b(t,{firstOpen:i})),t.classList.add("rte--product","accordion--product")}),m(this.container)&&(this.animateProductTabs=u(this.container))}
1,_closeAll(){this.tabLabels.forEach(s=>{const t=s.getAttribute("aria-controls"),i=e(`#${t}`,this.container);this._isVisible(i)&&this._close(s,i)})},_open(s,t){s.setAttribute("aria-expanded",!0),t.setAttribute("aria-hidden",!1),this._setTabHeight(t)},_close(s,t){s.setAttribute("aria-expanded",!1),t.setAttribute("aria-hidden",!0)},_isVisible(s){return s.getAttribute("aria-hidden")==="false"},_setTabHeight(s){const t=s.offsetHeight;this.tabList.style.height=`${t}px`},onBlockSelect({target:s}){const t=s.getAttribute("aria-controls"),i=e(`#${t}`,this.container);this._closeAll(),this._open(s,i)},onUnload(){var s;this.clickHandlers(),this.accordions.forEach(t=>t.unload()),(s=this.animateProductTabs)==null||s.destroy()}});

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.