1(()=>{"use strict";if(window.__fbA11yMotionControls)return;window.__fbA11yMotionControls=!0;const TOGGLE_SELECTOR="[data-fb-motion-toggle]",PLAY_STATE_PROPERTY="--play-state",prefersReducedMotion=()=>window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,isPaused=button=>button.getAttribute("data-fb-motion-state")==="paused",setState=(button,paused)=>{button.setAttribute("data-fb-motion-state",paused?"paused":"playing");const label=button.getAttribute(paused?"data-fb-motion-label-play":"data-fb-motion-label-pause");label&&button.setAttribute("aria-label",label)},targetOf=button=>{const selector=button.getAttribute("data-fb-motion-target");return selector?document.querySelector(selector):null},autoplayOf=root=>{const splide=root&&root.splide;return splide&&splide.Components&&splide.Components.Autoplay||null},applyMarquee=(region,paused)=>{region.style.setProperty(PLAY_STATE_PROPERTY,paused?"paused":"running")},applySplide=(root,paused)=>{const autoplay=autoplayOf(root);return autoplay?(paused?autoplay.pause():autoplay.play(),!0):!1},apply=(button,paused)=>{const target=targetOf(button);target&&(button.getAttribute("data-fb-motion-type")==="splide"?applySplide(target,paused):applyMarquee(target,paused))},onSplideInit=(root,callback)=>{let initialized=root.classList.contains("is-initialized");initialized&&callback(),new MutationObserver(()=>{const nowInitialized=root.classList.contains("is-initialized");nowInitialized!==initialized&&(initialized=nowInitialized,initialized&&callback())}).observe(root,{attributes:!0,attributeFilter:["class"]})},initSplideToggle=(button,root)=>{onSplideInit(root,()=>{const track=root.querySelector(".splide__track");track&&track.id&&!button.hasAttribute("aria-controls")&&button.setAttribute("aria-controls",track.id),isPaused(button)&&applySplide(root,!0)})},initToggle=button=>{const target=targetOf(button);if(!target){button.remove();return}prefersReducedMotion()&&setState(button,!0),button.getAttribute("data-fb-motion-type")==="splide"&&initSplideToggle(button,target),button.addEventListener("click",()=>{const paused=!isPaused(button);setState(button,paused),apply(button,paused)})};document.querySelectorAll(TOGGLE_SELECTOR).forEach(initToggle)})(); 2//# sourceMappingURL=/cdn/shop/t/1448/assets/custom-a11y-motion-controls.js.map?v=8199958553650591461790734838
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.