PageSourceSearch

https://fourthwall.com/products/_next/static/chunks/6258.aabd8040e576ffbf.js

js fourthwall.com collected 2026-09-24 07:00:18 UTC 10,982 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];if(null!=i)for(var s in i)i.hasOwnProperty(s)&&(t[s]=i[s])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:product-catalog-ssr":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7ae4c927-badd-431a-ac06-b10a71627923",t._sentryDebugIdIdentifier="sentry-dbid-7ae4c927-badd-431a-ac06-b10a71627923")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6258],{56258:(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});let s=(()=>{let t=".stickySidebar",e={topSpacing:0,bottomSpacing:0,containerSelector:!1,scrollContainer:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",minWidth:!1};class i{constructor(t,s={}){if(this.options=i.extend(e,s),this.sidebar="string"==typeof t?document.querySelector(t):t,void 0===this.sidebar)throw Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(t=>{this[t]=this[t].bind(this)}),this.initialize()}initialize(){if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){let t=document.createElement("div");for(t.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(t);this.sidebar.firstChild!=t;)t.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){let t=document.querySelectorAll(this.options.containerSelector);if((t=Array.prototype.slice.call(t)).forEach((t,e)=>{t.contains(this.sidebar)&&(this.container=t)}),!t.length)throw Error("The container does not contains on the sidebar.")}this.scrollContainer=this.options.scrollContainer?document.querySelector(this.options.scrollContainer):void 0,"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}bindEvents(){if(this.eventTarget=this.scrollContainer?this.scrollContainer:window,this.eventTarget.addEventListener("resize",this,{passive:!0,capture:!1}),this.eventTarget.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+t,this),"undefined"!=typeof ResizeObserver){let t=new ResizeObserver(()=>this.handleEvent());t.observe(this.sidebarInner),t.observe(this.container)}}handleEvent(t){this.updateSticky(t)}calcDimensions(){if(!this._breakpoint){var t=this.dimensions;t.containerTop=i.offsetRelative(this.container).top,t.containerHeight=this.container.clientHeight,t.containerBottom=t.containerTop+t.containerHeight,t.sidebarHeight=this.sidebarInner.offsetHeight,t.sidebarWidth=this.sidebarInner.offsetWidth,t.viewportHeight=window.innerHeight,t.maxTranslateY=t.containerHeight-t.sidebarHeight,this._calcDimensionsWithScroll()}}_calcDimensionsWithScroll(){var t=this.dimensions;t.sidebarLeft=i.offsetRelative(this.sidebar).left,this.scrollContainer?(t.viewportTop=this.scrollContainer.scrollTop,t.viewportLeft=this.scrollContainer.scrollLeft):(t.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,t.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft),t.viewportBottom=t.viewportTop+t.viewportHe
1ight,t.topSpacing=this.options.topSpacing,t.bottomSpacing=this.options.bottomSpacing,"function"==typeof t.topSpacing&&(t.topSpacing=parseInt(t.topSpacing(this.sidebar))||0),"function"==typeof t.bottomSpacing&&(t.bottomSpacing=parseInt(t.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?t.topSpacing<t.lastTopSpacing&&(t.translateY+=t.lastTopSpacing-t.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&t.bottomSpacing<t.lastBottomSpacing&&(t.translateY+=t.lastBottomSpacing-t.bottomSpacing,this._reStyle=!0),t.lastTopSpacing=t.topSpacing,t.lastBottomSpacing=t.bottomSpacing}isSidebarFitsViewport(){return this.dimensions.viewportHeight>=this.dimensions.lastBottomSpacing+this.dimensions.lastTopSpacing+this.dimensions.sidebarHeight}observeScrollDir(){var t=this.dimensions;if(t.lastViewportTop!==t.viewportTop){var e="down"===this.direction?Math.min:Math.max;t.viewportTop===e(t.viewportTop,t.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}getAffixType(){this._calcDimensionsWithScroll();var t=this.dimensions,e=t.viewportTop+t.topSpacing,i=this.affixedType;return e<=t.containerTop||t.containerHeight<=t.sidebarHeight?(t.translateY=0,i="STATIC"):i="up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.translateY=Math.round(t.translateY),t.lastViewportTop=t.viewportTop,i}_getAffixTypeScrollingDown(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,s=t.viewportBottom-t.bottomSpacing,n=this.affixedType;return this.isSidebarFitsViewport()?t.sidebarHeight+i>=t.containerBottom?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):i>=t.containerTop&&(t.translateY=i-t.containerTop,n="VIEWPORT-TOP"):t.containerBottom<=s?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):e+t.translateY<=s?(t.translateY=s-e,n="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(n="VIEWPORT-UNBOTTOM"),n}_getAffixTypeScrollingUp(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,s=t.viewportBottom-t.bottomSpacing,n=this.affixedType;return i<=t.translateY+t.containerTop?(t.translateY=i-t.containerTop,n="VIEWPORT-TOP"):t.containerBottom<=s?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):!this.isSidebarFitsViewport()&&t.containerTop<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(n="VIEWPORT-UNBOTTOM"),n}_getStyle(t){if(void 0!==t){var e={inner:{},outer:{}},s=this.dimensions;switch(t){case"VIEWPORT-TOP":e.inner={position:"fixed",top:s.topSpacing,left:s.sidebarLeft-s.viewportLeft,width:s.sidebarWidth};break;case"VIEWPORT-BOTTOM":e.inner={position:"fixed",top:"auto",left:s.sidebarLeft,bottom:s.bottomSpacing,width:s.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":let n=this._getTranslate(0,s.translateY+"px");n?e.inner={transform:n}:e.inner={position:"absolute",top:s.translateY,width:s.sidebarWidth}}switch(t){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":e.outer={height:s.sidebarHeight,position:"relative"}}return e.outer=i.extend({height:"",position:""},e.outer),e.inner=i.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},e.inner),e}}stickyPosition(e){if(!this._breakpoint){e=this._reStyle||e||!1,this.options.topSpacing,this.options.bottomSpacing;var s=this.getAffixType(),n=this._getStyle(s);if((this.affixedType!=s||e)&&s){let e="affix."+s.toLowerCase().replace("viewport-","")+t;for(let t in i.eventTrigger(this.sidebar,e),"STATIC"===s?i.removeClass(this.sidebar,this.options.stickyClass):i.addClass(this.sidebar,this.options.stickyClass),n.outer){let e="number"==typeof n.outer[t]?"px":"";this.sidebar.style[t]=n.outer[t]+e}for(let t in n.inner){let e="number"==typeof n.inner[t]?"px":"";this.sidebarInner.style[t]=n.inner[t]+e}let o="affixed."+s.toLowerCase().replace("viewport-","")+t;i.eventTrigger(this.sidebar,o)}else this._initialized&&(this.sidebarInner.style.left=n.inner.left);this.affixedType=s}}_widthBreakpoint(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),i.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}updateSticky(t={}){if(!this._running){var e;this._running=!0,e=t.type,requestAnimationFrame(()=>{"scroll"===e?(this._calcDimensionsWithScroll(),this.observeScrollDir(),this.stickyPosition()):(this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(!0)),this._running=!1})}}_setSupportFeatures(){var t=this.support;t.transform=i.supportTransform(),t.transform3d=i.supportTransform(!0)}_getTranslate(t=0,e=0,i=0){return this.support.transform3d?"translate3d("+t+", "+e+", "+i+")":!!this.support.translate&&"translate("+t+", "+e+")"}destroy(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+t,this);var e={inner:{},outer:{}};for(let t in e.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},e.outer={height:"",position:""},e.outer)this.sidebar.style[t]=e.outer[t];for(let t in e.inner)this.sidebarInner.style[t]=e.inner[t];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}
1static supportTransform(t){var e=!1,i=t?"perspective":"transform",s=i.charAt(0).toUpperCase()+i.slice(1),n=document.createElement("support").style;return(i+" "+["Webkit","Moz","O","ms"].join(s+" ")+s).split(" ").forEach(function(t,i){if(void 0!==n[t])return e=t,!1}),e}static eventTrigger(t,e,i){try{var s=new CustomEvent(e,{detail:i})}catch(t){var s=document.createEvent("CustomEvent");s.initCustomEvent(e,!0,!0,i)}t.dispatchEvent(s)}static extend(t,e){var i={};for(let s in t)void 0!==e[s]?i[s]=e[s]:i[s]=t[s];return i}static offsetRelative(t){var e={left:0,top:0};do{let i=t.offsetTop,s=t.offsetLeft;isNaN(i)||(e.top+=i),isNaN(s)||(e.left+=s),t="BODY"===t.tagName?t.parentElement:t.offsetParent}while(t);return e}static addClass(t,e){i.hasClass(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)}static removeClass(t,e){i.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(t,e){return t.classList?t.classList.contains(e):RegExp("(^| )"+e+"( |$)","gi").test(t.className)}static get defaults(){return e}}return i})(),n=s;window.StickySidebar=s}}]);

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.