1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7745],{47745:function(e,r,t){t.r(r);var l=t(14924),n=t(26042),a=t(99534),i=t(828),u=t(85893),s=t(67294),o=t(11163),f=t(60253),c=t(32427),h=t(41423),p=t(92553),v=t(98530),d=t(13048),b=t(57308),g=(0,c.Z)((function(e){return{root:(0,l.Z)({},e.breakpoints.up("sm"),{minWidth:"96px"})}})),Z=function(e){var r=e.value,t=(0,a.Z)(e,["value"]),l=g();return(0,u.jsx)(b.Z,{href:r,style:{flexShrink:0},children:(0,u.jsx)(h.Z,(0,n.Z)({classes:l,value:r},t))})};r.default=function(){var e=(0,o.useRouter)(),r=e.pathname,t=e.query,l=s.useMemo((function(){return r.startsWith("/post/[cid]")&&"string"===typeof t.cid?parseInt(t.cid,36):0}),[r,t.cid]),n=(0,d.Z)(l?v.Z.getPublicContent({id:l}):null).data,a=(0,f.$G)().t,c=(0,i.Z)(s.useState(!1),2),h=c[0],b=c[1],g=s.useMemo((function(){return[{label:"image",href:"/image"},{label:"blog",href:"/blog"},{label:"new",href:"/new"},{label:"ranking",href:"/ranking"},{label:"people",href:"/user"},{label:"tags",href:"/search"},{label:"help",href:"/help"}]}),[]);return s.useEffect((function(){if(r.startsWith("/post/[cid]"))(null===n||void 0===n?void 0:n.Type)&&b("/".concat(n.Type));else{for(var e=0;e<g.length;e+=1){var t=g[e].href;if(r.startsWith(t))return void b(t)}b(!1)}}),[null===n||void 0===n?void 0:n.Type,g,r]),(0,u.jsx)("nav",{children:(0,u.jsx)(p.Z,{value:h,scrollButtons:"on",variant:"scrollable",children:g.map((function(e){var r=e.label,t=e.href;return(0,u.jsx)(Z,{value:t,label:a(r)},r)}))})})}}}]);
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.