PageSourceSearch

https://www.brother-usa.com/mobify/bundle/1020/components-nav-bar.js

js brother-usa.com collected 2026-09-24 08:32:53 UTC 3,182 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5723],{5906:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var o=n(75826),l=n.n(o),i=n(77810),r=n(59146),a=n(69290),d=n(67234),s=n(77176),c=n(78041),u=n(51931),m=n(87275);const v=({content:e})=>{if(!e)return null;const t=(null==e?void 0:e.navItems)||[],n=(null==e?void 0:e.icon)||"",[o,l]=(0,i.useState)(!1),v=(0,i.useRef)(),[w,p]=(0,i.useState)(0),g=(0,u.z)(null==e?void 0:e._meta),b=(0,i.useCallback)((()=>{const e=document.getElementById("app-main");if(!e)return;const t=e.getBoundingClientRect().top,n=window.scrollY||document.documentElement.scrollTop||0;p(Math.round(t+n))}),[]);(0,i.useEffect)((()=>{const e=()=>window.requestAnimationFrame(b);return b(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),window.addEventListener("aboveHeaderToggle",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),window.removeEventListener("aboveHeaderToggle",e)}}),[b]),(0,i.useEffect)((()=>{let e=!1;const t=()=>{e||(window.requestAnimationFrame((()=>{const t=document.getElementById(g);if(t&&w>0){const e=t.getBoundingClientRect().top;l(e<=w+2)}e=!1})),e=!0)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)}),[w,g]);const f=(e,t)=>{const n=document.getElementById(e);if(!n)return;const o=document.getElementById(g);console.log(null==o?void 0:o.offsetHeight);const l=null!=o&&o.offsetHeight?(null==o?void 0:o.offsetHeight)-10:60,i=n.getBoundingClientRect().top+window.scrollY-w-l;window.scrollTo({top:t??i,behavior:"smooth"})};return i.createElement(r.a,{as:"section",id:g,zIndex:100,bg:"brand.white",borderBottom:"1px",borderTop:"1px",borderColor:"brand.gray200",transition:"box-shadow 0.3s ease",width:"full",top:`${w}px`,position:"sticky"},i.createElement(a.m,{maxW:"container.xxl",px:{base:5,md:20},bg:"brand.white",width:"full",id:"navBar"},i.createElement(d.s,{m:0,height:{base:"54px",md:"62px"},align:"center",gap:0,fontWeight:"bold"},i.createElement(s.K,{"aria-label":"Scroll to top",icon:i.createElement(c.eg,{name:n.name}),w:6,h:6,variant:"ghost",isDisabled:o,onClick:()=>{var e,n;return f((null==t||null===(e=t[0])||void 0===e||null===(n=e.contentReference)||void 0===n?void 0:n.id)||g)},_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"brand.gray100"}}),i.createElement(d.s,{ref:v,overflowX:"auto",css:{"&::-webkit-scrollbar":{display:"none"}},scrollSnapType:"x mandatory",w:"full",display:"flex",listStyleType:"none",flexWrap:"nowrap",alignItems:"center",width:"max-content"},t.map((e=>{var t;return i.createElement(r.a,{as:e.url?m.Link:"button",to:e.url||void 0,onClick:e.url?void 0:()=>{var t;return f(null==e||null===(t=e.contentReference)||void 0===t?void 0:t.id)},key:null==e||null===(t=e.contentReference)||void 0===t?void 0:t.id,textStyle:"subtitle3",width:"auto",color:"brand.gray600black",whiteSpace:"nowrap",px:{base:4,md:6},height:{base:"54px",md:"62px"},display:"inline-flex",alignItems:"center"},e.label)}))))))};v.propTypes={content:l().object};const w=v},51931:(e,t,n)=>{n.d(t,{z:()=>o});const o=e=>(null==e?void 0:e.deliveryId)||""}}]);

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.