1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9be7bbbe-5584-4f2d-804d-cd637162d0c2",e._sentryDebugIdIdentifier="sentry-dbid-9be7bbbe-5584-4f2d-804d-cd637162d0c2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4812],{37621:function(e,n,t){t.r(n),t.d(n,{DashboardMobileNavbar:function(){return j},DashboardMobileNavbarContent:function(){return w}});var i=t(27573),a=t(7653),l=t(81695),o=t(96),r=t(49104),s=t(78399),d=s.default.ul.withConfig({componentId:"sc-a9f35fab-0"})(["",""],e=>{let{theme:{color:n,navbarHeight:t,space:i}}=e;return(0,s.css)(["width:100%;background-color:",";border-top:1px solid ",";z-index:10;display:flex;justify-content:space-between;align-items:center;list-style:none;margin:0;padding:0;.nav-link{height:calc(",");padding:0 ",";text-align:center;flex:1;.nav-link-button{color:",";font-size:",";display:flex;flex-direction:column;align-items:center;justify-content:center;gap:",";width:100%;height:100%;padding:0;border:none;background:transparent;cursor:pointer;.icon{fill:",";width:"," !important;height:"," !important;}.is-active{font-weight:600;}}}"],n.background.base,n.border.light,t,i[8],n.element.regular,i.lg,i[2],n.element.regular,i[20],i[20])});let c=[32,32,32,32,32],h=s.default.div.withConfig({componentId:"sc-89ba4ab7-0"})(["",""],e=>{let{theme:{color:n},$width:t="100%",$height:i,$flexShrink:a}=e;return(0,s.css)(["flex-shrink:",";width:",";"," background-color:",";border-radius:8px;"],null!=a?a:0,"number"==typeof t?"".concat(t,"px"):t,i?"height: ".concat(i,"px;"):"",n.background.light)}),u=s.default.div.withConfig({componentId:"sc-89ba4ab7-1"})(["",""],e=>{let{theme:{color:n,rounded:t},$width:i="100%",$height:a=16}=e;return(0,s.css)(["width:",";height:","px;border-radius:",";background-color:",";"],"number"==typeof i?"".concat(i,"px"):i,a,t[8],n.background.light)}),b=s.default.div.withConfig({componentId:"sc-cc967ea4-0"})(["",""],e=>{let{theme:{space:n}}=e;return(0,s.css)(["display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;gap:",";"],n[4])}),f=e=>{let{labelWidth:n=48}=e;return(0,i.jsxs)(b,{children:[(0,i.jsx)(h,{className:"icon",$width:24,$height:24}),(0,i.jsx)(u,{className:"label",$width:n,$height:12})]})};var m=(0,s.default)(d).withConfig({componentId:"sc-74e239d2-0"})(["",""],e=>{let{theme:{navbarHeight:n}}=e;return(0,s.css)(["height:calc("," - 1px);.nav-link{pointer-events:none;}"],n)});let g=()=>(0,i.jsx)(m,{"aria-hidden":!0,children:c.map((e,n)=>(0,i.jsx)("li",{className:"nav-link",children:(0,i.jsx)(f,{labelWidth:e})},"dashboard-navbar-loading-item-".concat(n)))}),p=e=>e&&e.replace(/\/+$/,"")||"/",x=["/dashboard/myvideos","/dashboard/videos"],v=e=>x.some(n=>e===n||e.startsWith("".concat(n,"/"))),k=(e,n)=>{if(!e||"#"===e)return!1;let t=p(e),i=p(n);return!!(t===i||v(t)&&v(i))||"/dashboard"!==t&&i.startsWith("".concat(t,"/"))},w=e=>{var n,t;let{navbarLinks:l,pathname:s,onNavigate:c}=e,[h,u]=(0,a.useState)(!1),b=null!==(t=null==l?void 0:null===(n=l.find(e=>"Misc"===e.icon))||void 0===n?void 0:n.data)&&void 0!==t?t:[],f=(e,n)=>n?(0,i.jsx)(r.ZT.Button,{size:"xsmall",className:"is-active",children:e}):(0,i.jsx)(r.ZT.Label,{size:"xs",children:e}),m=e=>{null==c||c((0,o.MuA)(e))},g=(e,n)=>{e.stopPropagation(),m(n),u(!1)},p=(0,i.jsx)("div",{className:"more-modal-options",children:null==b?void 0:b.map(e=>(0,i.jsx)(r.HC,{title:e.text,iconStart:e.icon,...k(e.link,s)&&{iconEnd:"Tick"},...c&&{onClick:n=>g(n,e.link)}},e.text))}),x=(e,n)=>n?e+"Filled":e;return l.length?(0,i.jsxs)(d,{children:[null==l?void 0:l.map(e=>{let n=k(e.link,s),t="Misc"===e.icon;return(0,i.jsx)("li",{className:(0,o.dhh)("nav-link",{"is-active":n}),...t&&{onClick:()=>u(!0)},children:(0,i.jsxs)("button",{type:"button",className:"nav-link-button",...!t&&{onClick:()=>m(e.link)},children:[(0,i.jsx)(r.JO,{name:x(e.icon,n)}),f(e.text,n)]})},t?"more":e.link)}),(0,i.jsx)(r.u_,{id:o.YDx.modals.dashboardNavbarMore,show:h,onClose:()=>u(!1),className:"mobile-navbar-more-modal",width:320,hasBottomSheet:!0,hasGrip:!0,children:p})]}):null},j=()=>{var e;let n=(0,l.usePathname)(),t=(0,o.RpX)(),{data:r,isLoading:s}=(0,o.mf0)(),d=null!==(e=null==r?void 0:r.navbar)&&void 0!==e?e:[],c=(0,a.useCallback)(e=>{if(e.startsWith("http")){window.location.href=e;return}t.push(e)},[t]);return s?(0,i.jsx)(g,{}):(0,i.jsx)(w,{navbarLinks:d,pathname:n,onNavigate:c})}}}]);
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.