PageSourceSearch

https://www.chesterzoo.org/_next/static/chunks/3396.5852617eff62f6be.js

js chesterzoo.org collected 2026-09-24 08:42:38 UTC 21,085 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3396,1878,6753],{3396:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r(57437),a=r(23777),l=r(37776),o=r(78270),s=r(71686),i=r(54477),c=r(83015),u=r(77220);r(91878);var d=r(1921);function f(e){var t;let{heading:r,text:f,tabItems:m,links:p}=e;return(0,n.jsx)(d.Z,{className:"tabbed-cards",headingExcluded:!(null==r?void 0:r.heading),children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"tabbed-cards__backboard py-16 bg-primary-dark-1 rounded-2xl lg:rounded-3xl",children:[((null==r?void 0:r.headingCategory)&&r.showTag||(null==r?void 0:r.heading)||f)&&(0,n.jsxs)("header",{className:"text-center px-4 mb-4 lg:mb-6",children:[(null==r?void 0:r.headingCategory)&&r.showTag&&(0,n.jsx)("div",{className:"flex justify-center mb-2 lg:mb-4",children:(0,n.jsx)(c.Z,{name:r.headingCategory.name,link:r.headingCategory.link,target:null===(t=r.headingCategory.link)||void 0===t?void 0:t.target})}),(null==r?void 0:r.heading)&&(0,n.jsx)(i.Z,{className:"max-w-3xl mx-auto",level:null==r?void 0:r.headingLevel,size:"heading-2",margin:"mb-0",children:r.heading}),f&&(0,n.jsx)("div",{className:"rte body-base text-balance max-w-prose pt-4 lg:pt-6 mx-auto",dangerouslySetInnerHTML:{__html:f.markup}})]}),(0,n.jsxs)(a.RadixTabs,{defaultValue:m[0].cards[0].tabName,children:[(0,n.jsx)(a.TabsList,{className:"justify-center mb-10 md:mb-12",children:(0,n.jsx)("div",{className:"flex justify-center bg-primary-dark rounded-full overflow-hidden",children:m.map((e,t)=>(0,n.jsx)(a.TabsTrigger,{value:e.cards[0].tabName,className:"group flex flex-col items-center py-3 px-6 bg-primary-dark rounded-full data-[state=active]:bg-primary-dark-3",children:(0,n.jsx)("div",{className:"font-czoo-sharp-grotesk text-base leading-none uppercase underline-offset-2 group-focus:underline",children:e.cards[0].tabName})},t))})}),m.map((e,t)=>(0,n.jsx)(a.TabsContent,{value:e.cards[0].tabName,children:(0,n.jsx)(l.EmblaCarousel,{options:{align:"center",loop:!0,slidesToScroll:1,breakpoints:{"(min-width: 768px)":{active:!1}}},children:(null==e?void 0:e.cards[0].imageCards)&&e.cards[0].imageCards.map((e,t)=>(0,n.jsx)(l.EmblaCarouselSlide,{children:(0,n.jsx)(o.default,{title:e.title,text:e.text,link:e.link,image:e.image,video:e.video})},t))})},t))]}),p&&(0,n.jsx)("div",{className:"flex flex-wrap justify-center gap-3 pt-10 px-5",children:p.map((e,t)=>(0,n.jsx)(s.default,{type:"Primary"===e.theme?"primary/light":"secondary/light",text:e.text||e.title,link:{href:(0,u.n)(e),target:null==e?void 0:e.target}},t))})]})})})}},76753:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(57437),a=r(2265);let l=e=>{try{let t=new URL(e);if(t.href.includes("youtube.com/embed")||t.host.includes("player.vimeo.com"))return!0;return!1}catch(e){return!1}},o=e=>Object.entries(e).reduce((e,t)=>{let[r,n]=t,a="".concat(r,"=").concat(n);return""===e?a:e+"&"+a},"");var s=(0,a.forwardRef)(function(e,t){let{src:r,className:a,poster:s,preload:i,autoPlay:c,controls:u,playsInline:d,title:f,muted:m,loop:p}=e;if(!r)return null;if(l(r)){let e=(r.includes("?")?"&":"?")+o({"amp;autoplay":c?1:0,mute:m?1:0,loop:p?1:0});return(0,n.jsx)("iframe",{className:a,src:r+e,title:f,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}return(0,n.jsx)("video",{ref:t,className:a,src:r,poster:s,preload:i,autoPlay:c,loop:p,muted:m,controls:u,playsInline:d})})},37776:function(e,t,r){"use strict";r.r(t),r.d(t,{EmblaCarousel:function(){return p},EmblaCarouselSlide:function(){return m}});var n=r(57437),a=r(2265),l=r(74300),o=r(19281),s=r(95243),i=r(30286),c=r(44839);let u=e=>{let[t,r]=(0,a.useState)(!0),[n,l]=(0,a.useState)(!0),o=(0,a.useCallback)(()=>{e&&e.scrollPrev()},[e]),s=(0,a.useCallback)(()=>{e&&e.scrollNext()},[e]),i=(0,a.useCallback)(e=>{r(!e.canScrollPrev()),l(!e.canScrollNext())},[]);return(0,a.useEffect)(()=>{e&&(i(e),e.on("reInit",i).on("select",i))},[e,i]),{prevBtnDisabled:t,nextBtnDisabled:n,onPrevButtonClick:o,onNextButtonClick:s}},d=e=>{let{children:t,...r}=e,[l,o]=(0,a.useState)(!1);
1return(0,n.jsxs)("button",{className:(0,c.Z)("embla__button embla__button--next flex items-center justify-center w-12 h-12 bg-primary-light/75 rounded-full outline-none cursor-pointer pointer-events-auto transition-colors hover:bg-primary-light active:bg-primary-accent disabled:bg-primary-light/50 disabled:pointer-events-none",l&&"!bg-primary-accent"),type:"button",onMouseDown:()=>o(!0),onMouseUp:()=>setTimeout(()=>o(!1),150),onMouseLeave:()=>o(!1),...r,children:[(0,n.jsx)("div",{className:"mr-1",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"24",viewBox:"0 0 15 24",children:(0,n.jsx)("path",{d:"M-1.84048e-06 8.42105L15 0L15 3.53684C15 6.69474 14.3852 6.57895 12.2459 7.74737L4.92787 11.9789L12.3639 16.2526C14.3852 17.3684 15 17.2632 15 20.5895L15 24L-3.39338e-06 15.5263L-1.84048e-06 8.42105Z",fill:"#002526"})})}),t]})},f=e=>{let{children:t,...r}=e,[l,o]=(0,a.useState)(!1);return(0,n.jsxs)("button",{className:(0,c.Z)("embla__button embla__button--next flex items-center justify-center w-12 h-12 bg-primary-light/75 rounded-full outline-none cursor-pointer pointer-events-auto transition-colors hover:bg-primary-light active:bg-primary-accent disabled:bg-primary-light/50 disabled:pointer-events-none",l&&"!bg-primary-accent"),type:"button",onMouseDown:()=>o(!0),onMouseUp:()=>setTimeout(()=>o(!1),150),onMouseLeave:()=>o(!1),...r,children:[(0,n.jsx)("div",{className:"ml-1",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"24",viewBox:"0 0 15 24",children:(0,n.jsx)("path",{d:"M15 15.5789L0 24L4.22846e-08 20.4632C8.00386e-08 17.3053 0.614754 17.4211 2.7541 16.2526L10.0721 12.0211L2.63606 7.74737C0.614754 6.63158 2.06228e-07 6.73684 2.45996e-07 3.41052L2.8677e-07 0L15 8.47368L15 15.5789Z",fill:"#002526"})})}),t]})};r(31375);let m=(0,a.forwardRef)((e,t)=>(0,n.jsx)("div",{ref:t,className:"embla__slide",...e,children:e.children}));m.displayName="EmblaCarouselSlide";let p=e=>{let{children:t,arrowButtons:r=!1,dotButtons:c=!1,autoScroll:m=null,handleSlideInView:p,onBlur:v,onMouseEnter:h,onArrowButtonClick:g,onPointerDown:b,onPointerUp:x,setApi:y,options:j={}}=e,[w,N]=(0,l.Z)(j,(()=>{let e=[(0,s.Z)()];return m&&e.push((0,o.Z)(m)),e})());(0,a.useEffect)(()=>{N&&y&&y(N)},[N,y]);let{selectedIndex:k,scrollSnaps:C,onDotButtonClick:_}=(0,i.Y)(N),{prevBtnDisabled:E,nextBtnDisabled:L,onPrevButtonClick:T,onNextButtonClick:I}=u(N),S=(0,a.useCallback)(()=>{N&&g&&g(N),T()},[N,g,T]),R=(0,a.useCallback)(()=>{N&&g&&g(N),I()},[N,g,I]),[M,F]=(0,a.useState)(!1),{isIntersecting:Z,ref:D}=function(){var e;let{threshold:t=0,root:r=null,rootMargin:n="0%",freezeOnceVisible:l=!1,initialIsIntersecting:o=!1,onChange:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(()=>({isIntersecting:o,entry:void 0})),f=(0,a.useRef)();f.current=s;let m=(null===(e=u.entry)||void 0===e?void 0:e.isIntersecting)&&l;(0,a.useEffect)(()=>{let e;if(!i||!("IntersectionObserver"in window)||m)return;let a=new IntersectionObserver(t=>{let r=Array.isArray(a.thresholds)?a.thresholds:[a.thresholds];t.forEach(t=>{let n=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);d({isIntersecting:n,entry:t}),f.current&&f.current(n,t),n&&l&&e&&(e(),e=void 0)})},{threshold:t,root:r,rootMargin:n});return a.observe(i),()=>{a.disconnect()}},[i,JSON.stringify(t),r,n,m,l]);let p=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e;i||null===(e=u.entry)||void 0===e||!e.target||l||m||p.current===u.entry.target||(p.current=u.entry.target,d({isIntersecting:o,entry:void 0}))},[i,u.entry,l,m,o]);let v=[c,!!u.isIntersecting,u.entry];return v.ref=v[0],v.isIntersecting=v[1],v.entry=v[2],v}();return(0,a.useEffect)(()=>{var e;if(!m)return;let t=null==N?void 0:null===(e=N.plugins())||void 0===e?void 0:e.autoScroll;t&&(Z?(F(!0),t.play()):(F(!1),t.stop()))},[m,N,Z]),(0,a.useEffect)(()=>{var e;let t=null==N?void 0:null===(e=N.plugins())||void 0===e?void 0:e.autoScroll;t&&(F(t.isPlaying()),N.on("autoScroll:play",()=>F(!0)).on("autoScroll:stop",()=>F(!1)).on("reInit",()=>F(t.isPlaying())))},[N]),(0,a.useEffect)(()=>{p&&N&&N.on("slidesInView",()=>{p(N.slidesInView())})},[p,N]),(0,a.useEffect)(()=>
1{if(!v||!N)return;let e=N.rootNode(),t=()=>v(N),r=t=>{e.contains(t.relatedTarget)||v(N)};return e.addEventListener("mouseleave",t),e.addEventListener("focusout",r),()=>{e.removeEventListener("mouseleave",t),e.removeEventListener("focusout",r)}},[v,N]),(0,a.useEffect)(()=>{if(!h||!N)return;let e=N.rootNode(),t=()=>h(N);return e.addEventListener("mouseenter",t),()=>{e.removeEventListener("mouseenter",t)}},[h,N]),(0,a.useEffect)(()=>{if(!b||!N)return;let e=()=>b(N);return N.on("pointerDown",e),()=>{N.off("pointerDown",e)}},[b,N]),(0,a.useEffect)(()=>{if(!x||!N)return;let e=()=>x(N);return N.on("pointerUp",e),()=>{N.off("pointerUp",e)}},[x,N]),(0,n.jsxs)("div",{className:"embla",ref:D,children:[(0,n.jsx)("div",{className:"embla__viewport",ref:w,children:(0,n.jsx)("div",{className:"embla__container",children:t})}),(c||r)&&(0,n.jsxs)("div",{className:"embla__controls",children:[r&&(0,n.jsxs)("div",{className:"embla__buttons absolute top-1/2 left-0 max-w-container justify-between w-full px-10 pointer-events-none -translate-y-1/2",children:[(0,n.jsx)(d,{onClick:S,disabled:E}),(0,n.jsx)(f,{onClick:R,disabled:L})]}),c&&(0,n.jsx)("div",{className:"embla__dots",children:C.map((e,t)=>(0,n.jsx)(i.H,{className:"embla__dot".concat(t===k?" embla__dot--selected":""),onClick:()=>_(t)},t))})]})]})}},30286:function(e,t,r){"use strict";r.d(t,{H:function(){return o},Y:function(){return l}});var n=r(57437),a=r(2265);let l=e=>{let[t,r]=(0,a.useState)(0),[n,l]=(0,a.useState)([]),o=(0,a.useCallback)(t=>{e&&e.scrollTo(t)},[e]),s=(0,a.useCallback)(e=>{l(e.scrollSnapList())},[]),i=(0,a.useCallback)(e=>{r(e.selectedScrollSnap())},[]);return(0,a.useEffect)(()=>{e&&(s(e),i(e),e.on("reInit",s).on("reInit",i).on("select",i))},[e,s,i]),{selectedIndex:t,scrollSnaps:n,onDotButtonClick:o}},o=e=>{let{children:t,...r}=e;return(0,n.jsx)("button",{type:"button",...r,children:t})}},23777:function(e,t,r){"use strict";r.r(t),r.d(t,{RadixTabs:function(){return s},TabsContent:function(){return u},TabsList:function(){return i},TabsTrigger:function(){return c}});var n=r(57437),a=r(2265),l=r(9385),o=r(44839);let s=l.fC,i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(l.aV,{ref:t,className:(0,o.Z)("flex",r),...a})});i.displayName=l.aV.displayName;let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(l.xz,{ref:t,className:(0,o.Z)("transition-colors outline-none",r),...a})});c.displayName=l.xz.displayName;let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(l.VY,{ref:t,className:(0,o.Z)("outline-none",r),...a})});u.displayName=l.VY.displayName},78270:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r(57437),a=r(66648),l=r(87138),o=r(2265),s=r(44839),i=r(76753),c=r(34833),u=r(35348),d=r(77220);function f(e){let{category:t,title:r,text:f,subText:m,link:p,image:v,hoverImage:h,video:g,isReserveTheme:b=!1}=e,x=(0,o.useRef)(null),y=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,s.Z)('card__image group absolute inset-0 flex bg-primary-dark-3 after:content-[""] after:absolute after:inset-0 after:bg-gradient-to-b after:from-transparent after:from-1.5% after:via-black/50 after:via-35.49% after:via-black/67 after:via-58.94% after:to-black/75 after:pointer-events-none to-80%',p&&!g&&"transition-transform hover:scale-105",p&&g&&!(0,u.H)(g)&&"transition-transform hover:scale-105"),children:[(null==v?void 0:v.url)&&(0,n.jsx)(a.default,{className:"w-full h-full object-fit object-cover",src:v.url+"?width=560",alt:v.altText,width:v.width,height:v.height,loading:"lazy"}),!g&&(null==h?void 0:h.url)&&(0,n.jsx)(a.default,{className:"w-full h-full absolute inset-0 object-fit object-cover opacity-0 group-hover:opacity-100 transition-opacity duration-500",src:h.url+"?width=560",alt:h.altText,width:h.width,height:h.height,loading:"lazy"}),g&&(0,u.H)(g)&&(0,n.jsx)("div",{className:"absolute inset-0 opacity-100 group-hover:opacity-100 transition-opacity",children:(0,n.jsx)(i.default,{ref:x,className:"w-full h-full object-fit object-cover",src:g,poster:v.url,loop:!0,muted:!0})})]}),t&&(0,n.jsx)("div",{className:"flex p-6",children:(0,n.jsx)(c.Z,{type:"primary",name:t.name})}),(0,n.jsxs)("div",{className:"card__content relative grid gap-y-2 p-6 text-primary-light",children:[(0,n.jsx)("div",{className:"font-czoo-sharp-grotesk heading heading-5",children:r}),f&&(0,n.jsx)("div",{className:"body-xs line-clamp-[10]",dangerouslySetInnerHTML:{__html:f.markup}}),m&&(0,n.jsx)("div",{className:"text-xs lg:text-sm font-semibold",children:m})]})]}),j=(0,s.Z)("relative flex flex-col h-full aspect-7/9 md:aspect-11/16 lg:aspect-2/3 outline-none overflow-hidden",t?"justify-between":"justify-end",b?"rounded":"rounded-2xl lg:rou
1nded-3xl");return(0,n.jsx)("div",{className:"card-base",onMouseEnter:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.play()},onMouseLeave:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.pause()},children:p?(0,n.jsx)(l.default,{className:(0,s.Z)(j,"focus:outline-primary-accent focus:outline focus:outline-2"),href:(0,d.n)(p),target:null==p?void 0:p.target,children:y()}):(0,n.jsx)("div",{className:j,children:y()})})}},1921:function(e,t,r){"use strict";var n=r(57437),a=r(44839);t.Z=e=>{let{children:t,className:r,headingExcluded:l,style:o,hidePaddingOnMobile:s}=e;return(0,n.jsx)("div",{className:(0,a.Z)("component-section",l&&"heading-excluded",s&&"hide-padding-on-mobile",r),style:o,children:t})}},34833:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(57437);function a(e){let{type:t="primary",name:r}=e;return(0,n.jsx)("div",{className:"category-tag category-tag--".concat(t," relative flex items-center py-[2px] px-1 rounded"),children:(0,n.jsx)("span",{className:"category-tag-text font-czoo-sharp-grotesk text-sm leading-[0.875rem] uppercase tracking-wider",children:r})})}r(25592)},83015:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(57437),a=r(87138),l=r(44839),o=r(77220);function s(e){let{name:t,link:r,target:s="_self"}=e,i=(0,l.Z)("parent-tag relative flex items-center py-1",r&&"pl-6 pr-2",!r&&"px-2","rounded transition-colors focus:outline focus:outline-1 focus:outline-offset-2");return(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)(a.default,{className:i,href:(0,o.n)(r),target:s,children:[(0,n.jsx)("span",{className:"parent-tag-icon absolute top-1/2 left-2 w-[11px] h-3 bg-center bg-cover bg-no-repeat -translate-y-2/4"}),(0,n.jsx)("span",{className:"parent-tag-text font-czoo-sharp-grotesk text-base leading-4 uppercase tracking-wider",children:t})]}):(0,n.jsx)("div",{className:i,children:(0,n.jsx)("span",{className:"parent-tag-text font-czoo-sharp-grotesk text-base leading-4 uppercase tracking-wider",children:t})})})}r(99033)},35348:function(e,t,r){"use strict";r.d(t,{H:function(){return n}});let n=e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}},91878:function(){},31375:function(){},25592:function(){},99033:function(){},9385:function(e,t,r){"use strict";r.d(t,{VY:function(){return q},aV:function(){return O},fC:function(){return G},xz:function(){return Y}});var n=r(2265),a=r(78149),l=r(98324),o=r(90976),s=r(1584),i=r(53201),c=r(25171),u=r(75137),d=r(91715),f=r(87513),m=r(57437),p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,b,x]=(0,o.B)(h),[y,j]=(0,l.b)(h,[x]),[w,N]=y(h),k=n.forwardRef((e,t)=>(0,m.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(C,{...e,ref:t})})}));k.displayName=h;var C=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:o=!1,dir:i,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:y,preventScrollOnEntryFocus:j=!1,...N}=e,k=n.useRef(null),C=(0,s.e)(t,k),_=(0,f.gm)(i),[E=null,L]=(0,d.T)({prop:h,defaultProp:g,onChange:x}),[I,S]=n.useState(!1),R=(0,u.W)(y),M=b(r),F=n.useRef(!1),[Z,D]=n.useState(0);return n.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(p,R),()=>e.removeEventListener(p,R)},[R]),(0,m.jsx)(w,{scope:r,orientation:l,dir:_,loop:o,currentTabStopId:E,onItemFocus:n.useCallback(e=>L(e),[L]),onItemShiftTab:n.useCallback(()=>S(!0),[]),onFocusableItemAdd:n.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>D(e=>e-1),[]),children:(0,m.jsx)(c.WV.div,{tabIndex:I||0===Z?-1:0,"data-orientation":l,...N,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),j)}}F.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>S(!1))})})}),_="RovingFocusGroupItem",E=n.forwardRef((e,t)=>
1{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:o=!1,tabStopId:s,...u}=e,d=(0,i.M)(),f=s||d,p=N(_,r),v=p.currentTabStopId===f,h=b(r),{onFocusableItemAdd:x,onFocusableItemRemove:y}=p;return n.useEffect(()=>{if(l)return x(),()=>y()},[l,x,y]),(0,m.jsx)(g.ItemSlot,{scope:r,id:f,focusable:l,active:o,children:(0,m.jsx)(c.WV.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{l?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return L[a]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let l=a.indexOf(e.currentTarget);a=p.loop?(r=a,n=l+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(l+1)}setTimeout(()=>T(a))}})})})});E.displayName=_;var L={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=r(31383),S="Tabs",[R,M]=(0,l.b)(S,[j]),F=j(),[Z,D]=R(S),V=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:l,orientation:o="horizontal",dir:s,activationMode:u="automatic",...p}=e,v=(0,f.gm)(s),[h,g]=(0,d.T)({prop:n,onChange:a,defaultProp:l});return(0,m.jsx)(Z,{scope:r,baseId:(0,i.M)(),value:h,onValueChange:g,orientation:o,dir:v,activationMode:u,children:(0,m.jsx)(c.WV.div,{dir:v,"data-orientation":o,...p,ref:t})})});V.displayName=S;var A="TabsList",z=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,l=D(A,r),o=F(r);return(0,m.jsx)(k,{asChild:!0,...o,orientation:l.orientation,dir:l.dir,loop:n,children:(0,m.jsx)(c.WV.div,{role:"tablist","aria-orientation":l.orientation,...a,ref:t})})});z.displayName=A;var P="TabsTrigger",K=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:l=!1,...o}=e,s=D(P,r),i=F(r),u=W(s.baseId,n),d=B(s.baseId,n),f=n===s.value;return(0,m.jsx)(E,{asChild:!0,...i,focusable:!l,active:f,children:(0,m.jsx)(c.WV.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:u,...o,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,a.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;f||l||!e||s.onValueChange(n)})})})});K.displayName=P;var U="TabsContent",H=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:l,children:o,...s}=e,i=D(U,r),u=W(i.baseId,a),d=B(i.baseId,a),f=a===i.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(I.z,{present:l||f,children:r=>{let{present:n}=r;return(0,m.jsx)(c.WV.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&o})}})});function W(e,t){return"".concat(e,"-trigger-").concat(t)}function B(e,t){return"".concat(e,"-content-").concat(t)}H.displayName=U;var G=V,O=z,Y=K,q=H}}]);

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.