1(function(){"use strict";var REDUCED_QUERY="(prefers-reduced-motion: reduce)",FADEUP_FAILSAFE_MS=2e3,SCROLL_STAGGER_CAP=3;function shouldRunLiteIOScan(){return!(window.HOG&&window.HOG.EDITORIAL_MOTION)}function shouldRunFadeupMotion(){return!window.matchMedia(REDUCED_QUERY).matches}function isOurStoryPage(){return window.HOG&&window.HOG.PAGE_TEMPLATE==="page.ourstory"}function isPageTemplate(){var t=window.HOG&&window.HOG.PAGE_TEMPLATE;return typeof t=="string"&&(t==="page"||t.indexOf("page.")===0)}var HEADING_SELECTOR="h1, h2",CARD_SELECTOR="product-card, .product-card, .product-card--hog, .card, .card-product, .product-item, .collection-card, .featured-blog-posts-card, .blog-post-card, .hog-image-cards__card",EXCLUDE_SELECTOR=".no-animation, marquee-component, #header-group, header-component, header-actions, cart-drawer-component, .cart-drawer, announcement-bar, announcement-bar-component, .slideshow-section, slideshow-arrows, predictive-search-component, .search-action, signup-popup-component, .signup-popup",CARD_SKIP_ANCESTOR=".hog-video-reels, .video-reel, .video-wrapper, .video-carousel, .hero, .slideshow-section",MEDIA_ENTRANCE_STAGGER=80,HEADING_LEAD_MS=400,SCROLL_CHOREOGRAPHY_STAGGER=120,FADEUP_Y="24px",READING_ORDER_Y_TOLERANCE=12,MOBILE_QUERY="(max-width: 750px)",observer=null,scrollFadeupObserver=null,pageChoreographyObserver=null,pageChoreographyPrepared=typeof WeakMap=="function"?new WeakMap:null,motionPendingCleared=!1;function clearMotionPending(){motionPendingCleared||(motionPendingCleared=!0,document.documentElement.classList.remove("hog-motion-pending","hog-motion-pending--gsap-heading"))}function isMobileViewport(){return window.matchMedia(MOBILE_QUERY).matches}function sortReadingOrder(els){return els.slice().sort(function(a,b){var ra=a.getBoundingClientRect(),rb=b.getBoundingClientRect(),dy=ra.top-rb.top;return Math.abs(dy)>READING_ORDER_Y_TOLERANCE?dy:ra.left-rb.left})}function isAtfOrNearViewport(el){return isAboveFold(el)||isIoNearViewport(el)}function shouldSkipAtfMotion(el){return el.closest(".hog-split-reveal")?!1:isAtfOrNearViewport(el)}function shouldSkipMobileAtfMotion(el){return el.closest(".hog-split-reveal")?!1:isMobileViewport()&&isAtfOrNearViewport(el)}function skipLoadEntranceIfMobileAtf(section,candidates){return shouldSkipMobileAtfMotion(section)?(clearMotionPending(),candidates&&candidates.forEach(function(c){markRevealSkipped(c.el)}),!0):!1}function markRevealSkipped(el){el.classList.add("reveal-text-animated","hog-reveal-done")}function isExcluded(el){return el.classList.contains("no-animation")||el.classList.contains("fade-animated")||el.classList.contains("reveal-text-animated")||el.classList.contains("hog-reveal")||!!el.closest(EXCLUDE_SELECTOR)}function isAboveFold(el){var rect=el.getBoundingClientRect();return rect.top<window.innerHeight&&rect.bottom>0}function resolveSplitRevealTarget(el){return el?el.matches("h1, h2, p")?el:el.querySelector(":scope > :is(p, h1, h2, h3, h4, h5, h6)")||el:null}function isIoNearViewport(el){var rect=el.getBoundingClientRect(),vh=window.innerHeight;return rect.top<vh*.92&&rect.bottom>0}function afterPaint(cb){var ran=!1;function run(){ran||(ran=!0,cb())}typeof window.requestAnimationFrame=="function"&&window.requestAnimationFrame(function(){window.requestAnimationFrame(run)}),window.setTimeout(run,120)}function isCarouselSlideVisible(slide){return!slide||slide.getAttribute("aria-hidden")!=="true"}function snapFadeupHidden(el,options){options=options||{},el.style.opacity="0",el.style.transform="translate3d(0, "+FADEUP_Y+", 0)",options.media&&(el.style.visibility="hidden",el.classList.add("hog-reveal--fadeup-media"))}function clearFadeupSnap(el){el.style.removeProperty("opacity"),el.style.removeProperty("transform"),el.style.removeProperty("visibility")}function markDone(el){el.classList.add("hog-reveal-done"),clearFadeupSnap(el)}function reveal(el){el.classList.contains("hog-reveal--fadeup")&&!el.classList.contains("is-visible")&&(clearFadeupSnap(el),el.offsetWidth),el.classList.add("is-visible");var done=!1;function onEnd(event){done||event&&event.target!==el||(done=!0,el.removeEventListener("transitionend",onEnd),markDone(el))}el.addEventListener("transitionend",onEnd),window.setTimeout(onEnd,1700)}function watchLateImageLoad(mediaEl){mediaEl.querySelectorAll("img").forEach(function(img){img.complete||img.addEventListener("load",function(){mediaEl.classList.contains("is-visible")||snapFadeup
1Hidden(mediaEl,{media:!0})},{once:!0})})}function prepFadeup(el,prepared,orderRef,options){options=options||{},el.classList.add("hog-reveal","hog-reveal--fadeup"),document.documentElement.classList.contains("hog-motion-pending")||snapFadeupHidden(el,options),prepared.push({el:el,order:orderRef.value}),orderRef.value+=1}function prepMediaFadeup(el,prepared,orderRef){el.classList.add("hog-reveal","hog-reveal--fadeup"),document.documentElement.classList.contains("hog-motion-pending")?el.classList.add("hog-reveal--fadeup-media"):snapFadeupHidden(el,{media:!0}),watchLateImageLoad(el),prepared.push({el:el,order:orderRef.value}),orderRef.value+=1}function playFadeupCascade(rootEl,prepared,options){options=options||{};var staggerMs=options.staggerMs!=null?options.staggerMs:MEDIA_ENTRANCE_STAGGER,baseDelayMs=options.baseDelayMs||0;if(!prepared.length){clearMotionPending();return}(rootEl||prepared[0].el).offsetWidth;var started=!1;function startCascade(){started||(started=!0,clearMotionPending(),prepared.forEach(function(item){window.setTimeout(function(){reveal(item.el)},baseDelayMs+item.order*staggerMs)}))}afterPaint(startCascade),window.setTimeout(startCascade,FADEUP_FAILSAFE_MS+baseDelayMs)}function isHeadingBlock(el){return/^H[12]$/.test(el.tagName)||el.classList.contains("hog-two-column-story__heading")||!!el.querySelector("h1, h2")}function headingOwnedByGsap(){return!!(window.HOG&&window.HOG.HEADING_MOTION||window.HOG&&window.HOG.EDITORIAL_MOTION)}function collectLoadEntranceCandidates(contentRoot,mediaEl,gsapOwnsHeading){var candidates=[];return contentRoot&&Array.prototype.forEach.call(contentRoot.children,function(child){isExcluded(child)||isHeadingBlock(child)&&gsapOwnsHeading||candidates.push({el:child,media:!1})}),mediaEl&&!isExcluded(mediaEl)&&candidates.push({el:mediaEl,media:!0}),candidates}function prepReadingOrderCascade(section,candidates){var sorted=sortReadingOrder(candidates.map(function(c){return c.el})),mediaSet=new Set(candidates.filter(function(c){return c.media}).map(function(c){return c.el})),prepared=[],orderRef={value:0};return sorted.forEach(function(el){mediaSet.has(el)?prepMediaFadeup(el,prepared,orderRef):prepFadeup(el,prepared,orderRef)}),prepared}function runReadingOrderCascade(section,candidates){if(!candidates.length){clearMotionPending();return}afterPaint(function(){if(!skipLoadEntranceIfMobileAtf(section,candidates)){var prepared=prepReadingOrderCascade(section,candidates);playFadeupCascade(section,prepared)}})}function playSectionChoreography(section,prepared){if(!section||section.dataset.hogChoreographyDone==="true")return;section.dataset.hogChoreographyDone="true";function playHeading(){return window.HOG&&typeof window.HOG.playSectionHeadingReveal=="function"&&window.HOG.playSectionHeadingReveal(section)||0}var headed=playHeading();headed||(window.setTimeout(playHeading,120),window.setTimeout(playHeading,400)),prepared&&prepared.length?playFadeupCascade(section,prepared,{baseDelayMs:HEADING_LEAD_MS,staggerMs:SCROLL_CHOREOGRAPHY_STAGGER}):clearMotionPending()}function ensurePageChoreographyObserver(){return pageChoreographyObserver||("IntersectionObserver"in window?(pageChoreographyObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){var section=entry.target,prepared=pageChoreographyPrepared?pageChoreographyPrepared.get(section):null;pageChoreographyPrepared&&pageChoreographyPrepared.delete(section),playSectionChoreography(section,prepared||[]),pageChoreographyObserver.unobserve(section)}})},{threshold:.15,rootMargin:"0px 0px -8% 0px"}),pageChoreographyObserver):null)}function registerChoreographedSection(section,candidates){!section||section.dataset.hogChoreographyObserved==="true"||(section.dataset.hogChoreographyObserved="true",afterPaint(function(){if(skipLoadEntranceIfMobileAtf(section,candidates)){section.dataset.hogChoreographyDone="true";return}if(!isMobileViewport()&&isAboveFold(section)){var atfPrepared=candidates.length?prepReadingOrderCascade(section,candidates):[];playSectionChoreography(section,atfPrepared);return}var prepared=candidates.length?prepReadingOrderCascade(section,candidates):[];pageChoreographyPrepared&&pageChoreographyPrepared.set(section,prepared);var obs=ensurePageChoreographyObserver();obs?obs.observe(section):playSectionChoreography(section,prepared)}))}function collectGenericSectionCandidates(sectionEl,gsapOwnsHeading){var wrapper=sectionEl.querySelector(".section-content-wrapper");if(!wrapper)return[];var candidates=[];function walk(el){if(!(!el||el.nodeType!==1)&&!isExcluded(el)&&!(isHeadingBlock(el)&&gsapOwnsHeading)){if(el.classList.contains("group-block")){var gbc=el.querySelector(":scope > .group-block-content");gbc&&Array.prototype.forEach.call(gbc.children,walk);return}(el.classList.contains("text-block")||el.classList.contains("button")||el.classList.contains("button-block")||el.tagName==="A"&&String(el.className).indexOf("button")!==-1||el.tagName==="BUTTON")&&candidates.push({el:el,media:!1})}}return Array.prototype.forEach.call(wrapper.children,walk),candidates}
1function scheduleLoadEntranceCascade(section,candidates){if(!candidates.length&&!headingOwnedByGsap()){clearMotionPending();return}if(!skipLoadEntranceIfMobileAtf(section,candidates)){if(!isMobileViewport()&&!isAboveFold(section)){registerChoreographedSection(section,candidates);return}if(!candidates.length){clearMotionPending();return}runReadingOrderCascade(section,candidates)}}function initMediaWithContentEntrance(section){if(!(!section||section.dataset.hogMediaEntrance)&&!isExcluded(section)){section.dataset.hogMediaEntrance="true";var candidates=collectLoadEntranceCandidates(section.querySelector(".group-block-content"),section.querySelector(".media-block"),headingOwnedByGsap());scheduleLoadEntranceCascade(section,candidates)}}function initTwoColumnStoryEntrance(section){if(!(!section||section.dataset.hogStoryEntrance)&&!isExcluded(section)){section.dataset.hogStoryEntrance="true";var candidates=collectLoadEntranceCandidates(section.querySelector(".hog-two-column-story__content"),section.querySelector(".hog-two-column-story__media"),headingOwnedByGsap());scheduleLoadEntranceCascade(section,candidates)}}function registerPageScrollSections(root){isPageTemplate()&&(root=root||document,root.querySelectorAll(".shopify-section").forEach(function(sectionEl){if(sectionEl.dataset.hogChoreographyObserved!=="true"&&!sectionEl.querySelector(".hero-slider, .hog-hero-pin-target, .slideshow-section")&&!sectionEl.querySelector(".media-with-content, .hog-two-column-story")&&!(isOurStoryPage()&§ionEl.querySelector(".multicolumn, .banner, .collapsible-content"))&§ionEl.querySelector(".section-content-wrapper")){var candidates=collectGenericSectionCandidates(sectionEl,headingOwnedByGsap());if(shouldSkipMobileAtfMotion(sectionEl)){sectionEl.dataset.hogChoreographyObserved="true",sectionEl.dataset.hogChoreographyDone="true";return}if(!isMobileViewport()&&isAboveFold(sectionEl)){sectionEl.dataset.hogChoreographyObserved="true",sectionEl.dataset.hogChoreographyDone="true";return}registerChoreographedSection(sectionEl,candidates)}}))}var LOAD_ENTRANCE_ADAPTERS=[{selector:".media-with-content",init:initMediaWithContentEntrance},{selector:".hog-two-column-story",init:initTwoColumnStoryEntrance}];function initAllLoadEntrances(root){root=root||document,LOAD_ENTRANCE_ADAPTERS.forEach(function(adapter){root.querySelectorAll(adapter.selector).forEach(adapter.init)})}function resetChoreographyFlags(root){root&&(root.querySelectorAll(".media-with-content").forEach(function(el){delete el.dataset.hogMediaEntrance,delete el.dataset.hogChoreographyObserved,delete el.dataset.hogChoreographyDone}),root.querySelectorAll(".hog-two-column-story").forEach(function(el){delete el.dataset.hogStoryEntrance,delete el.dataset.hogChoreographyObserved,delete el.dataset.hogChoreographyDone}),root.classList&&root.classList.contains("shopify-section")&&(delete root.dataset.hogChoreographyObserved,delete root.dataset.hogChoreographyDone,delete root.dataset.hogScrollFadeupObserved,delete root.dataset.hogScrollFadeupPrepped,delete root.dataset.hogScrollFadeup),root.querySelectorAll(".shopify-section").forEach(function(el){delete el.dataset.hogChoreographyObserved,delete el.dataset.hogChoreographyDone}))}function columnHasMedia(item){return!!item.querySelector("img, video, .multicolumn-media, .multicolumn-card__image, .multicolumn-card__background-media")}var scrollFadeupPrepared=typeof WeakMap=="function"?new WeakMap:null;function prepScrollFadeup(sectionEl){if(sectionEl.dataset.hogScrollFadeupPrepped)return scrollFadeupPrepared?scrollFadeupPrepared.get(sectionEl)||[]:[];if(sectionEl.querySelector(".hero-slider, .hog-hero-pin-target"))return[];if(sectionEl.querySelector(".hog-two-column-story"))return[];var prepared=[],orderRef={value:0};function add(el,options){!el||isExcluded(el)||(prepFadeup(el,prepared,orderRef,options),(options&&options.media||el.querySelector("img"))&&watchLateImageLoad(el))}var multicolumn=sectionEl.querySelector(".multicolumn");if(multicolumn){var title=multicolumn.querySelector(".multicolumn__title"),items=Array.prototype.slice.call(multicolumn.querySelectorAll(".multicolumn-list__item")),mediaItems=items.filter(columnHasMedia);if(add(title),mediaItems.length>0&&(mediaItems=sortReadingOrder(mediaItems),mediaItems.slice(0,SCROLL_STAGGER_CAP).forEach(function(item){add(item,{media:!0})}),mediaItems.length>SCROLL_STAGGER_CAP)){var lastOrder=Math.max(0,orderRef.value-1);mediaItems.slice(SCROLL_STAGGER_CAP).forEach(function(item){isExcluded(item)||(item.classList.add("hog-reveal","hog-reveal--fadeup"),snapFadeup
1Hidden(item,{media:!0}),watchLateImageLoad(item),prepared.push({el:item,order:lastOrder}))})}}else{var banner=sectionEl.querySelector(".banner");if(banner)add(banner,{media:!0});else{var collapsible=sectionEl.querySelector(".collapsible-content");collapsible&&add(collapsible.querySelector(".collapsible-content__heading"))}}return sectionEl.dataset.hogScrollFadeupPrepped="true",scrollFadeupPrepared&&scrollFadeupPrepared.set(sectionEl,prepared),prepared}function playScrollFadeup(sectionEl){if(sectionEl.dataset.hogScrollFadeup!=="done"){var prepared=scrollFadeupPrepared?scrollFadeupPrepared.get(sectionEl):null;!prepared||prepared.length===0||(sectionEl.dataset.hogScrollFadeup="done",playFadeupCascade(sectionEl,prepared))}}function registerOurStoryScrollSections(root){isOurStoryPage()&&scrollFadeupObserver&&(root=root||document,root.querySelectorAll(".shopify-section").forEach(function(sectionEl){if(!sectionEl.dataset.hogScrollFadeupObserved&&!sectionEl.querySelector(".hero-slider, .hog-hero-pin-target")&&!sectionEl.querySelector(".hog-two-column-story")&§ionEl.querySelector(".multicolumn, .banner, .collapsible-content")){if(sectionEl.dataset.hogScrollFadeupObserved="true",isAtfOrNearViewport(sectionEl)){if(isMobileViewport()){sectionEl.dataset.hogScrollFadeup="done";return}var atfPrepared=prepScrollFadeup(sectionEl);atfPrepared.length?playScrollFadeup(sectionEl):sectionEl.dataset.hogScrollFadeup="done";return}var prepared=prepScrollFadeup(sectionEl);if(!prepared.length){sectionEl.dataset.hogScrollFadeup="done";return}scrollFadeupObserver.observe(sectionEl)}}))}function initOurStoryScrollFadeup(){isOurStoryPage()&&"IntersectionObserver"in window&&(scrollFadeupObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting&&(playScrollFadeup(entry.target),scrollFadeupObserver.unobserve(entry.target))})},{threshold:.15,rootMargin:"0px 0px -8% 0px"}),registerOurStoryScrollSections(document))}function prepare(el,variant,index){return isExcluded(el)||variant==="card"&&el.closest(CARD_SKIP_ANCESTOR)||!el.textContent&&variant==="heading"||variant==="card"&&el.closest(".resource-list__carousel")?!1:shouldSkipAtfMotion(el)?(markRevealSkipped(el),!1):(el.classList.add("hog-reveal",variant==="heading"?"hog-reveal--heading":"hog-reveal--card"),index&&el.style.setProperty("--hog-reveal-index",String(index)),!0)}function headingMotionOwnsHeadings(){return!!(window.HOG&&window.HOG.HEADING_MOTION)}var carouselPending=typeof WeakMap=="function"?new WeakMap:null;function flushCarouselReveal(carousel){var cards=carouselPending?carouselPending.get(carousel):null;!cards||!cards.length||(carouselPending&&carouselPending.delete(carousel),sortReadingOrder(cards).forEac
1h(function(card,i){if(!(card.classList.contains("is-visible")||card.classList.contains("hog-reveal-done"))){var index=Math.min(i,8);index?card.style.setProperty("--hog-reveal-index",String(index)):card.style.removeProperty("--hog-reveal-index"),reveal(card)}}))}function prepareCarouselGroup(carousel){if(!(!carousel||!observer)){if(isAtfOrNearViewport(carousel)){carousel.querySelectorAll(CARD_SELECTOR).forEach(function(card){if(!(isExcluded(card)||card.closest(CARD_SKIP_ANCESTOR))){var slide=card.closest("slideshow-slide");slide&&!isCarouselSlideVisible(slide)||markRevealSkipped(card)}});return}var pending=carouselPending&&carouselPending.get(carousel);if(pending||(pending=[]),carousel.querySelectorAll(CARD_SELECTOR).forEach(function(card){if(!(isExcluded(card)||card.closest(CARD_SKIP_ANCESTOR))&&!(card.classList.contains("hog-reveal")||card.classList.contains("is-visible"))&&!(card.classList.contains("reveal-text-animated")||card.classList.contains("hog-reveal-done"))){var slide=card.closest("slideshow-slide");if(slide&&!isCarouselSlideVisible(slide)){markRevealSkipped(card);return}if(shouldSkipAtfMotion(card)){markRevealSkipped(card);return}card.classList.add("hog-reveal","hog-reveal--card"),pending.push(card)}}),!!pending.length){if(carouselPending&&carouselPending.set(carousel,pending),carousel.dataset.hogCarouselRevealObserved==="true"){observer.observe(carousel);return}carousel.dataset.hogCarouselRevealObserved="true",observer.observe(carousel)}}}function observeOrRevealNow(el){if(!(!observer||!el)){if(isIoNearViewport(el)){reveal(el);return}observer.observe(el)}}function scan(root){if(observer){headingMotionOwnsHeadings()||(root.querySelectorAll(HEADING_SELECTOR).forEach(function(heading){prepare(heading,"heading",0)&&observeOrRevealNow(heading)}),root.querySelectorAll(".hog-split-reveal").forEach(function(block){var target=resolveSplitRevealTarget(block);!target||target.matches("h1, h2")||prepare(target,"heading",0)&&observeOrRevealNow(target)}));var carousels=new Set,groups=new Map;root.querySelectorAll(CARD_SELECTOR).forEach(function(card){if(!(isExcluded(card)||card.closest(CARD_SKIP_ANCESTOR))){var carousel=card.closest(".resource-list__carousel");if(carousel){carousels.add(carousel);return}var container=card.closest("section, .container, .page-width, ul, .grid")||document.body;groups.has(container)||groups.set(container,0);var index=groups.get(container);prepare(card,"card",Math.min(index,8))&&(observeOrRevealNow(card),groups.set(container,index+1))}}),carousels.forEach(prepareCarouselGroup)}}function initLiteIOScan(){observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){var target=entry.target;if(target.classList&&target.classList.contains("resource-list__carousel")){flushCarouselReveal(target),observer.unobserve(target);return}reveal(target),observer.unobserve(target)}})},{threshold:.15,rootMargin:"0px 0px -8% 0px"}),scan(document),window.addEventListener("load",function(){scan(document),window.setTimeout(function(){scan(document)},500)},{once:!0});var pending=null,mo=new MutationObserver(function(mutations){if(!pending){var hasAdds=mutations.some(function(m){return m.addedNodes&&m.addedNodes.length});hasAdds&&(pending=window.requestAnimationFrame(function(){pending=null,scan(document)}))}});mo.observe(document.body,{childList:!0,subtree:!0})}function init(){if(!shouldRunFadeupMotion()){clearMotionPending();return}"IntersectionObserver"in window?(initAllLoadEntrances(),registerPageScrollSections(document),initOurStoryScrollFadeup()):clearMotionPending(),shouldRunLiteIOScan()&&"IntersectionObserver"in window&&initLiteIOScan(),document.querySelector(".media-with-content, .hog-two-column-story, .section-content-wrapper")||clearMotionPending(),window.Shopify&&window.Shopify.designMode&&document.addEventListener("shopify:section:load",function(event){var target=event.target;resetChoreographyFlags(target),initAllLoadEntrances(target),registerPageScrollSections(target),registerOurStoryScrollSections(target),observer&&scan(target)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(); 2//# sourceMappingURL=/cdn/shop/t/139/assets/hog-motion-reveal.js.map?v=46272114673926542461789706310
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.