1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5096],{5096:function(e,t,n){n.r(t),n.d(t,{MenuRelation:function(){return MenuRelation}});var a=n(6608),i=n(4512),r=n(7324),l=n(3058),c=n(7008),o=n(3280),s=n(7881),p=n(5484),m=n(2735),d=n(3258),h=n(6563);function _templateObject(){let e=(0,a._)(["\n position: sticky;\n top: var(--menu-sticky-top);\n right: var(--locked-padding-right, 0);\n z-index: var(--z-3);\n border-bottom: 1px solid var(--color-primary-100);\n "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,a._)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: stretch;\n padding: 16px 0;\n max-width: 100%;\n overflow-y: hidden;\n overflow-x: auto;\n\n ",";\n"]);return _templateObject1=function(){return e},e}let u=(0,d.ZP)(h.i).withConfig({displayName:"menu-relation__StyledWrapper",componentId:"sc-1adf82a0-0"})(_templateObject1(),e=>e.sticky?(0,d.iv)(_templateObject()):""),MenuRelation=e=>{let{item:t,index:n=0}=e;t.sticky=!1!==t.sticky;let a=(0,l.$Y)(),d=(0,l.qt)(),h=(0,m.useMemo)(()=>{let e=[],n=a.menu.main?a.menu.main.items:[],i=t.relation,r=i&&n.find(e=>"page"===e.type&&e.schema===i.schema&&e.page===i.id);if(r&&r.items){let t=r.items;t.forEach(t=>{"link"===t.type&&e.push({href:t.href,id:t.id,title:t.title,category:String(i.category||""),schema:i.schema||""})})}return e},[t.relation,a.menu.main]),f=t.sticky,g=t.variant||"white",y=(0,r.getClassNames)("menu-relation",{sticky:f});return(0,i.jsx)(i.Fragment,{children:h&&h.length>0&&(0,i.jsx)(u,{className:y,anchor:t.anchor,variant:g,sticky:f,forwardedAs:"nav",role:"navigation","aria-label":"Menu Padre",children:(0,i.jsx)(c.W2,{children:(0,i.jsx)(o.J.Row,{gap:"24px",gapMd:"32px",gapLg:"48px",paddingRight:"20px",color:"var(--color-primary-700)",children:h.filter(e=>!!e.href).map((e,t)=>(0,i.jsx)(s.r,{href:e.href,children:(0,i.jsx)(p.z,{className:(0,r.getClassNames)({active:e.title===d.title}),whiteSpace:"nowrap",as:"a",variant:"nav",children:e.title})},t))})})})})}}}]);
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.