https://mrsmeyers.com/cdn/shop/t/126/assets/__section--header_anno…?v=128600914334007578401790291340
1var __defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value,configurable:!0});const initAnnouncementBar=__name(($el,$refs)=>{const initialChildren=[...$el.children].filter(child=>(child.tagName==="STYLE"&&$el.parentElement.appendChild(child),child.tagName!=="STYLE")),settings=utils.JSONParse($el.getAttribute("data-settings"));let block_scroll_events=!1,timeout=null;const minChildren=6,initialLength=initialChildren.length,minCopies=Math.ceil(minChildren/initialLength),totalCopies=Math.max(minCopies,1);let children=[...initialChildren];for(let i=1;i<totalCopies;i++){const clones=initialChildren.map(child=>{const newChild=child.cloneNode(!0);return newChild.removeAttribute("data-block-id"),newChild.removeAttribute("data-shopify-editor-block"),newChild});children.push(...clones)}children=children.map((child,index,arr)=>(child.style.order=`${index>arr.length-3?-arr.length+index:index}`,child)),$el.scrollLeft=$el.clientWidth*2,$el.replaceChildren(...children);const handleScroll=__name(()=>{block_scroll_events||(resetIndex(),$el.scrollLeft>$el.clientWidth*3&&(block_scroll_events=!0,[...children].sort((a,b)=>+a.style.order-+b.style.order).forEach((child,index,arr)=>{child.style.order=`${index===0?arr.length-3:+child.style.order-1}`}),$el.scrollLeft=$el.scrollLeft-$el.clientWidth,block_scroll_events=!1),$el.scrollLeft<$el.clientWidth&&(block_scroll_events=!0,[...children].sort((a,b)=>+a.style.order-+b.style.order).forEach((child,index,arr)=>{child.style.order=`${index===arr.length-1?-2:+child.style.order+1}`}),$el.scrollLeft=$el.scrollLeft+$el.clientWidth,block_scroll_events=!1),children.forEach(el=>{const{width,height,left,right}=el.getBoundingClientRect();width&&height&&left+width/2>0&&right-width/2<$el.clientWidth?(el.removeAttribute("tabindex"),el.querySelectorAll("*").forEach(child=>child.removeAttribute("tabindex"))):(el.tabIndex=-1,el.querySelectorAll("*").forEach(child=>child.tabIndex=-1))}))},"handleScroll"),resetIndex=__name(()=>{!settings.display_duration||block_scroll_events||(clearTimeout(timeout),timeout=setTimeout(()=>{block_scroll_events=!0,$el.classList.remove("snap-x"),utils.scrollToX(300,$el.scrollLeft+$el.clientWidth,$el,()=>{[...children].sort((a,b)=>+a.style.order-+b.style.order).forEach((child,index,arr)=>{child.style.order=`${index===0?arr.length-3:+child.style.order-1}`}),$el.scrollLeft=$el.scrollLeft-$el.clientWidth,block_scroll_events=!1,$el.classList.add("snap-x"),resetIndex()})},settings.display_duration*1e3))},"resetIndex"),handleEditorBlockSelect=__name((sectionId="",blockId)=>{const focusChild=children.find(el=>el.getAttribute("data-style-id")===`${sectionId}--${blockId}`)?.closest("[data-announcement]");$el.classList.toggle("!overflow-hidden",!!focusChild),$el.classList.toggle("snap-x",!focusChild),block_scroll_events=!!focusChild,focusChild?($el.scrollLeft=focusChild?.offsetLeft,clearTimeout(timeout),timeout=null):!timeout&&settings.display_duration&&resetIndex()},"handleEditorBlockSelect");return resetIndex(),{handleScroll,resetIndex,handleEditorBlockSelect}},"initAnnouncementBar");window._sections.initAnnouncementBar=initAnnouncementBar; 2//# sourceMappingURL=/cdn/shop/t/126/assets/__section--header_announcement_bar.js.map?v=128600914334007578401790291340
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.