PageSourceSearch

https://www.chefworks.com/js/26.bundle.cf3038c58b3794e7fa06.js

js chefworks.com collected 2026-09-26 01:44:00 UTC 2,723 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkchefworks_theme=self.webpackChunkchefworks_theme||[]).push([[26],{9088(t,e,o){o.r(e),o.d(e,{HeaderSwapper:()=>p});var i,n=o(14041),r=o(71354),s=o(17229),c=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){var o=t.call(this,e)||this;return o.state=o.computeState({isMobile:!1,isPersistent:!1,isCheckout:!1,scrollPosition:0,scrollDirection:""}),o.updateState=o.updateState.bind(o),o.setRef=o.setRef.bind(o),o}return c(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.scrolling,o=t.window;e.addListener(this.updateState),o.addEventListener("resize",this.updateState)},e.prototype.componentDidUpdate=function(t){this.props.currentLocation!==t.currentLocation&&this.updateState()},e.prototype.componentWillUnmount=function(){this.updateState();var t=this.props,e=t.scrolling,o=t.window;e.removeListener(this.updateState),o.removeEventListener("resize",this.updateState)},e.prototype.setRef=function(t){t&&(this.containerRef=t,this.updateState())},e.prototype.computeHeight=function(){var t=this.props.defaultHeight;return this.containerRef&&this.containerRef.clientHeight?this.containerRef.clientHeight:t},e.prototype.computeState=function(t){var e=this.props,o=e.window,i=e.scrolling,n=e.mobileBreakpoint,r=e.currentLocation,s=t.scrollPosition,c=o.innerWidth,a=i.windowScrollPosition.y;return{isMobile:c<=n,isPersistent:a>this.computeHeight(),scrollPosition:a,scrollDirection:a<s?"up":"down",isCheckout:r.startsWith("/checkout")&&!r.startsWith("/checkout/cart")&&!r.startsWith("/checkout/success")&&!r.startsWith("/checkout/index/index")}},e.prototype.updateState=function(){var t=this;this.setState(function(e){return t.computeState(e)})},e.prototype.render=function(){var t=this.props,e=t.MobileHeader,o=t.PersistentHeader,i=t.DefaultHeader,r=t.CheckoutHeader,s=this.state,c=s.isMobile,a=s.isPersistent,p=s.scrollPosition,u=s.scrollDirection;return s.isCheckout?n.createElement(r,{isMobile:c}):c?n.createElement(e,{scrollPosition:p,scrollDirection:u}):n.createElement("div",{ref:this.setRef},n.createElement("div",{style:{display:a?"block":"none"}},n.createElement(o,null)),n.createElement(i,null))},e}(n.PureComponent),p=(0,s.connectRouter)((0,r.injectProps)("scrolling","window")(a))}}]);
2//# sourceMappingURL=26.bundle.cf3038c58b3794e7fa06.js.map

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.