"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5655],{65655:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var n=a(80318),r=a(92809),i=a(45258),o=a(28358),l=a(41749),s=a(70065),d=a(41423),c=a(41120),h=a(27361),u=a.n(h),p=a(67294),m=a(48122),f=a(58885),g=a(68751),b=a(85893),x=(0,c.Z)((function(e){return{appBar:function(t){return{zIndex:"1099",transition:"top 225ms",top:!0===t.mastheadOpen?t.mastheadHeight?t.mastheadHeight:e.masthead.totalHeight:0,background:"gray"===t.bgColor?e.palette.background.gray:e.palette.background.default}},indicatorColor:{borderBottom:"solid 3px ".concat(e.palette.primary.main)},tabLink:(0,r.Z)({padding:e.spacing(3),fontSize:"1.4rem",color:e.palette.text.heading?e.palette.text.heading:e.palette.text.primary},e.breakpoints.down("sm"),{fontSize:"1.2rem",padding:"22px 4px",width:"35%"})}}));function y(e){var t=(0,f.Oc)().query,a=(0,m.mN)(),r=(null!==u()(e,"label")&&u()(e,"label"),u()(e,"data.primary.alignment","left")),c=u()(e,"data.fields"),h=(0,f.yK)(),y=x({bgColor:u()(e,"data.primary.bg_color","gray"),mastheadOpen:h.header&&h.header.isOpen||!1,mastheadHeight:h.header&&h.header.mHeight||0}),k=p.useState(0),Z=(0,n.Z)(k,2),C=Z[0],j=Z[1];return(0,b.jsx)(i.Z,{position:"static",className:y.appBar,children:(0,b.jsx)(o.Z,{style:{alignItems:"center",justifyContent:"center"},children:(0,b.jsx)(l.Z,{container:!0,justifyContent:r,children:(0,b.jsx)(l.Z,{item:!0,children:(0,b.jsx)(l.Z,{container:!0,children:(0,b.jsx)(s.Z,{value:C,onChange:function(e,t){j(t)},classes:{indicator:y.indicatorColor},children:c&&c.map((function(e,n){var r=u()(e,"btn_label"),i=(0,m.Xv)(u()(e,"btn_link"));return(0,b.jsx)(d.Z,{className:y.tabLink,value:n,label:g.Z.asText(r),onClick:function(){return function(e){if(e.href.startsWith("#")){var n=document.getElementById(e.href.slice(1)).offsetTop;document.documentElement.scrollTop