1"use strict";(self.webpackChunkbrearley=self.webpackChunkbrearley||[]).push([[9650],{5606:function(e,l,t){t.d(l,{l:function(){return b}});var s=t(7462),n=t(5450),o=t(3493),r=t.n(o),a=t(7294),i=t(3935),c=t(523),d=t.n(c),u=t(693),v=t(8125);var f={name:"1jzg8tr",styles:"scroll-padding-left:var(--margin)"},h={name:"qor64",styles:"position:relative;min-height:min-content;display:flex;box-sizing:content-box;padding:0 var(--margin);>*{scroll-snap-align:start;}"},p={name:"1nx0grl",styles:"margin-top:0!important"},m={name:"1fo50kt",styles:"margin-top:1.5rem"};const b=(0,a.forwardRef)(((e,l)=>{let{children:t,navContainer:o,scrollAreaCss:c,contentCss:b,navCss:g,navVariant:w="OVERLAY",snap:y,navLink:x,lightTheme:k,...C}=e;const{0:j,1:R}=(0,a.useState)(0),{0:B,1:E}=(0,a.useState)(null),{0:L,1:A}=(0,a.useState)(null),{0:S,1:V}=(0,a.useState)(null),z=(0,u.R2)(L)||0,D=(0,u.R2)(B)||0,O=(0,u.R2)(S)||0,{0:T,1:q}=(0,a.useState)(!1);(0,a.useEffect)((()=>(d().polyfill(),q(!0),()=>{q(!1)})),[]);const F=(0,a.useCallback)((()=>{B&&L&&R(B.getBoundingClientRect().x-L.getBoundingClientRect().x)}),[B,L]),N=r()(F,50);(0,a.useEffect)((()=>(null==L||L.addEventListener("scroll",N),()=>{null==L||L.removeEventListener("scroll",N)})),[N,L]);const P=(0,a.useRef)(null),Y=L&&z<D-20,Z=o||P.current,G={outer:(0,n.css)("position:relative;overflow:hidden;","ABOVE"===w&&(Y?p:m)," [data-scroll-width]{width:var(--scroll-width, 100%);position:absolute;}","","",""),slider:(0,n.css)("position:relative;height:100%;>div{position:relative;display:flex;overflow-x:auto;overflow-y:visible;width:100%;-webkit-overflow-scrolling:touch;scroll-snap-type:",T&&y?"x mandatory":"unset",";scrollbar-width:none;-ms-overflow-style:none;overflow:-moz-scrollbars-none;&::-webkit-scrollbar{display:none;}}","","",""),content:h,scrollArea:f};return(0,n.jsx)("div",(0,s.Z)({css:G.outer,ref:l},C),!o&&(0,n.jsx)("div",{ref:P}),Y&&Z&&(0,i.createPortal)((0,n.jsx)(v.L,{navLink:x,css:g,onClickBack:()=>{null==L||L.scrollBy({top:0,left:-O,behavior:"smooth"})},backDisabled:j>=-10,onClickForward:()=>{null==L||L.scrollBy({top:0,left:O,behavior:"smooth"})},forwardDisabled:z-j>=D-10,navVariant:w,lightTheme:k}),Z),(0,n.jsx)("div",{"data-scroll-width":!0,ref:e=>{V(e)}}),(0,n.jsx)("div",{css:G.slider},(0,n.jsx)("div",{css:[G.scrollArea,c,"",""],ref:e=>{A(e)}},(0,n.jsx)("div",{css:[G.content,b,"",""],ref:e=>{E(e)}},t))))}));b.displayName="Carousel"}}]); 2//# sourceMappingURL=19fe9872-1f52f1aba2d87db7bd1c.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.