1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11949],{11949:function(e,t,r){r.r(t),r.d(t,{MenuItemCollapse:function(){return o}});var a=r(85893),n=r(22468),s=r(41664),i=r.n(s),l=r(11163),c=r(67294);let o=e=>{var t;let{link:r}=e,[s,o]=(0,c.useState)(!1),d=(null==r?void 0:null===(t=r.subMenus)||void 0===t?void 0:t.length)>0,[h,x]=(0,c.useState)(!1),u=(0,l.useRouter)();if(!r||!r.show)return null;let g=u.pathname===r.href||u.asPath===r.href;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(g?"bg-gray-600 text-white hover:text-white":"hover:text-gray-600")+" px-5 w-full text-left duration-200 dark:bg-hexo-black-gray dark:border-black",onClick:()=>{o(!s)},children:[!d&&(0,a.jsx)(i(),{href:null==r?void 0:r.href,target:null==r?void 0:r.target,className:"dark:text-gray-200 py-2 w-full my-auto items-center justify-between flex ",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]})}),d&&(0,a.jsxs)("div",{onClick:d?()=>{x(!h)}:null,className:"py-2 font-extralight flex justify-between cursor-pointer dark:text-gray-200 no-underline tracking-widest",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]}),(0,a.jsx)("div",{className:"inline-flex items-center ",children:(0,a.jsx)("i",{className:"px-2 fas fa-chevron-right transition-all duration-200 ".concat(h?"rotate-90":"")})})]})]}),d&&(0,a.jsx)(n.Z,{isOpen:h,onHeightChange:e.onHeightChange,children:r.subMenus.map((e,t)=>(0,a.jsx)("div",{className:"whitespace-nowrap dark:text-gray-200 not:last-child:border-b-0 border-b dark:border-gray-800 py-2 px-14 cursor-pointer hover:bg-gray-100 font-extralight dark:bg-black text-left justify-start text-gray-600 bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200",children:(0,a.jsx)(i(),{href:e.href,target:null==r?void 0:r.target,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(e.icon," text-center w-3 mr-3 text-xs")}),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.