1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23948],{23948:function(e,n,t){t.r(n),t.d(n,{MenuItemCollapse:function(){return o}});var l=t(85893),a=t(82638),i=t(41664),s=t.n(i),r=t(67294);let o=e=>{var n,t;let{link:i}=e,[o,c]=(0,r.useState)(!1),d=(null==i?void 0:null===(n=i.subMenus)||void 0===n?void 0:n.length)>0,[u,x]=(0,r.useState)(!1),h=()=>{c(!o)},g=()=>{x(!u)};return i&&i.show?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full px-8 py-3 text-left dark:bg-hexo-black-gray",onClick:h,children:[!d&&(0,l.jsx)(s(),{href:null==i?void 0:i.to,target:(null==i?void 0:null===(t=i.to)||void 0===t?void 0:t.indexOf("http"))===0?"_blank":"_self",className:"font-extralight flex justify-between pl-2 pr-4 dark:text-gray-200 no-underline tracking-widest pb-1",children:(0,l.jsxs)("span",{className:" transition-all items-center duration-200",children:[(null==i?void 0:i.icon)&&(0,l.jsx)("i",{className:i.icon+" mr-4"}),null==i?void 0:i.name]})}),d&&(0,l.jsxs)("div",{onClick:d?g:null,className:"font-extralight flex items-center justify-between pl-2 pr-4 cursor-pointer dark:text-gray-200 no-underline tracking-widest pb-1",children:[(0,l.jsxs)("span",{className:"transition-all items-center duration-200",children:[(null==i?void 0:i.icon)&&(0,l.jsx)("i",{className:i.icon+" mr-4"}),null==i?void 0:i.name]}),(0,l.jsx)("i",{className:"px-2 fas fa-chevron-left transition-all duration-200 ".concat(u?"-rotate-90":""," text-gray-400")})]})]}),d&&(0,l.jsx)(a.Z,{isOpen:u,onHeightChange:e.onHeightChange,children:i.subMenus.map((e,n)=>{var t;return(0,l.jsx)("div",{className:"dark:bg-black dark:text-gray-200 text-left px-10 justify-start bg-gray-50 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 py-3 pr-6",children:(0,l.jsx)(s(),{href:e.to,target:(null==i?void 0:null===(t=i.to)||void 0===t?void 0:t.indexOf("http"))===0?"_blank":"_self",children:(0,l.jsxs)("span",{className:"text-sm ml-4 whitespace-nowrap",children:[(null==i?void 0:i.icon)&&(0,l.jsx)("i",{className:e.icon+" mr-2"})," ",e.title]})})},n)})})]}):null}}}]);
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.