mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-11 11:04:27 +01:00
1 line
No EOL
9.4 KiB
JavaScript
1 line
No EOL
9.4 KiB
JavaScript
"use strict";(self.webpackChunkdashy=self.webpackChunkdashy||[]).push([[714,90],{2379:(e,t,a)=>{a.r(t),a.d(t,{default:()=>P});var n=a(6540),o=a(5680),i=a(4586),r=a(5920),s=a(5593),l=a(8168),c=a(53),d=a(3155),m=a(4911),u=a(9312),b=a(5515),p=a(4676),h=a(6654),E=a(1773);const v=e=>n.createElement("svg",(0,l.A)({width:"20",height:"20","aria-hidden":"true"},e),n.createElement("g",{fill:"#7a7a7a"},n.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),n.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})));var f=a(1952),g=a(6359),_=a(4798);const C={sidebar:"sidebar_LIo8",sidebarWithHideableNavbar:"sidebarWithHideableNavbar_CMI-",sidebarHidden:"sidebarHidden_4BoQ",sidebarLogo:"sidebarLogo_P87M",menu:"menu_oAhv",menuLinkText:"menuLinkText_glFe",menuWithAnnouncementBar:"menuWithAnnouncementBar_IVfW",collapseSidebarButton:"collapseSidebarButton_EBxv",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_AF9Q",sidebarMenuIcon:"sidebarMenuIcon_nrF-",sidebarMenuCloseIcon:"sidebarMenuCloseIcon_4lQu","sidebar-ad":"sidebar-ad_fsI-",carbonads:"carbonads_5ThM","carbon-img":"carbon-img_ty1N","avatar__photo-link":"avatar__photo-link_oBgx","carbon-wrap":"carbon-wrap_r+ag","carbon-text":"carbon-text_arwI","carbon-poweredby":"carbon-poweredby_sdJP"};var A=a(6094);const k=24,N=(e,t)=>"link"===e.type?(0,d.ys)(e.href,t):"category"===e.type&&e.items.some((e=>N(e,t))),S=(0,n.memo)((function(e){let{items:t,...a}=e;return t.map(((e,t)=>n.createElement(I,(0,l.A)({key:t,item:e},a))))}));function I(e){return"category"===e.item.type?n.createElement(T,e):n.createElement(y,e)}function T(e){let{item:t,onItemClick:a,collapsible:o,activePath:i,...r}=e;const{items:s,label:m}=t,u=N(t,i),b=(0,d.ZC)(u),[p,h]=(0,n.useState)((()=>!!o&&(!u&&t.collapsed))),E=(0,n.useRef)(null),[v,f]=(0,n.useState)(void 0),g=function(e){void 0===e&&(e=!0),f(e?`${E.current?.scrollHeight}px`:void 0)};(0,n.useEffect)((()=>{u&&!b&&p&&h(!1)}),[u,b,p]);const _=(0,n.useCallback)((e=>{e.preventDefault(),v||g(),setTimeout((()=>h((e=>!e))),100)}),[v]);return 0===s.length?null:n.createElement("li",{className:(0,c.A)("menu__list-item",{"menu__list-item--collapsed":p})},n.createElement("a",(0,l.A)({className:(0,c.A)("menu__link",{"menu__link--sublist":o,"menu__link--active":o&&u,[C.menuLinkText]:!o}),onClick:o?_:void 0,href:o?"#!":void 0},r),m),n.createElement("ul",{className:"menu__list",ref:E,style:{height:v},onTransitionEnd:()=>{p||g(!1)}},n.createElement(S,{items:s,tabIndex:p?"-1":"0",onItemClick:a,collapsible:o,activePath:i})))}function y(e){let{item:t,onItemClick:a,activePath:o,collapsible:i,...r}=e;const{href:s,label:d}=t,m=N(t,o);return n.createElement("li",{className:"menu__list-item",key:d},n.createElement(p.A,(0,l.A)({className:(0,c.A)("menu__link",{"menu__link--active":m}),to:s},(0,h.A)(s)&&{isNavLink:!0,exact:!0,onClick:a},r),(0,h.A)(s)?d:n.createElement("span",null,d,n.createElement(g.A,null))))}function M(e){let{onClick:t}=e;return n.createElement("button",{type:"button",title:(0,_.T)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,_.T)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,c.A)("button button--secondary button--outline",C.collapseSidebarButton),onClick:t},n.createElement(v,{className:C.collapseSidebarButtonIcon}))}function x(e){let{responsiveSidebarOpened:t,onClick:a}=e;return n.createElement("button",{"aria-label":t?(0,_.T)({id:"theme.docs.sidebar.responsiveCloseButtonLabel",message:"Close menu",description:"The ARIA label for close button of mobile doc sidebar"}):(0,_.T)({id:"theme.docs.sidebar.responsiveOpenButtonLabel",message:"Open menu",description:"The ARIA label for open button of mobile doc sidebar"}),"aria-haspopup":"true",className:"button button--secondary button--sm menu__button",type:"button",onClick:a},t?n.createElement("span",{className:(0,c.A)(C.sidebarMenuIcon,C.sidebarMenuCloseIcon)},"\xd7"):n.createElement(f.A,{className:C.sidebarMenuIcon,height:k,width:k}))}const B=function(e){let{path:t,sidebar:a,sidebarCollapsible:o=!0,onCollapse:i,isHidden:r}=e;const s=function(){const{isClosed:e}=(0,d.Mj)(),[t,a]=(0,n.useState)(!e);return(0,b.A)((t=>{let{scrollY:n}=t;e||a(0===n)})),t}(),{navbar:{hideOnScroll:l},hideableSidebar:p}=(0,d.pN)(),{isClosed:h}=(0,d.Mj)(),{showResponsiveSidebar:v,closeResponsiveSidebar:f,toggleResponsiveSidebar:g}=function(){const[e,t]=(0,n.useState)(!1);(0,m.A)(e);const a=(0,u.A)();return(0,n.useEffect)((()=>{a===u.X.desktop&&t(!1)}),[a]),{showResponsiveSidebar:e,closeResponsiveSidebar:(0,n.useCallback)((e=>{e.target.blur(),t(!1)}),[t]),toggleResponsiveSidebar:(0,n.useCallback)((()=>{t((e=>!e))}),[t])}}();return n.createElement("div",{className:(0,c.A)(C.sidebar,{[C.sidebarWithHideableNavbar]:l,[C.sidebarHidden]:r})},l&&n.createElement(E.A,{tabIndex:-1,className:C.sidebarLogo}),n.createElement("nav",{className:(0,c.A)("menu","menu--responsive","thin-scrollbar",C.menu,{"menu--show":v,[C.menuWithAnnouncementBar]:!h&&s}),"aria-label":(0,_.T)({id:"theme.docs.sidebar.navAriaLabel",message:"Sidebar navigation",description:"The ARIA label for documentation menu"})},n.createElement(x,{responsiveSidebarOpened:v,onClick:g}),n.createElement("ul",{className:"menu__list"},n.createElement(S,{items:a,onItemClick:f,collapsible:o,activePath:t}))),n.createElement("div",{class:"sidebar-ad"},n.createElement(A.A,null)),p&&n.createElement(M,{onClick:i}))};var w=a(8607),L=a(9090),R=a(6347);const W={docPage:"docPage_lDyR",docMainContainer:"docMainContainer_r8cw",docMainContainerEnhanced:"docMainContainerEnhanced_SOUu",docSidebarContainer:"docSidebarContainer_0YBq",docSidebarContainerHidden:"docSidebarContainerHidden_Qlt2",collapsedDocSidebar:"collapsedDocSidebar_zZpm",expandSidebarButtonIcon:"expandSidebarButtonIcon_cxi8",docItemWrapperEnhanced:"docItemWrapperEnhanced_aT5H"};function H(e){let{currentDocRoute:t,versionMetadata:a,children:r}=e;const{siteConfig:l,isClient:m}=(0,i.A)(),{pluginId:u,version:b}=a,{sidebarName:p,sidebar:h}=function(e){let{versionMetadata:t,currentDocRoute:a}=e;const{permalinkToSidebar:n,docsSidebars:o}=t,i=n[a.path]||n[(r=a.path,r.endsWith("/")?r:`${r}/`)]||n[function(e){return e.endsWith("/")?e.slice(0,-1):e}(a.path)];var r;return{sidebar:o[i],sidebarName:i}}({versionMetadata:a,currentDocRoute:t}),[E,f]=(0,n.useState)(!1),[g,C]=(0,n.useState)(!1),A=(0,n.useCallback)((()=>{g&&C(!1),f(!E)}),[g]);return n.createElement(s.A,{key:m,wrapperClassName:d.GN.wrapper.docPages,pageClassName:d.GN.page.docPage,searchMetadatas:{version:b,tag:(0,d.tU)(u,b)}},n.createElement("div",{className:W.docPage},h&&n.createElement("aside",{className:(0,c.A)(W.docSidebarContainer,{[W.docSidebarContainerHidden]:E}),onTransitionEnd:e=>{e.currentTarget.classList.contains(W.docSidebarContainer)&&E&&C(!0)}},n.createElement(B,{key:p,sidebar:h,path:t.path,sidebarCollapsible:l.themeConfig?.sidebarCollapsible??!0,onCollapse:A,isHidden:g}),g&&n.createElement("div",{className:W.collapsedDocSidebar,title:(0,_.T)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,_.T)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:A,onClick:A},n.createElement(v,{className:W.expandSidebarButtonIcon}))),n.createElement("main",{className:(0,c.A)(W.docMainContainer,{[W.docMainContainerEnhanced]:E||!h})},n.createElement("div",{className:(0,c.A)("container padding-top--md padding-bottom--lg",W.docItemWrapper,{[W.docItemWrapperEnhanced]:E})},n.createElement(o.xA,{components:w.A},r)))))}const P=function(e){const{route:{routes:t},versionMetadata:a,location:o}=e,i=t.find((e=>(0,R.B6)(o.pathname,e)));return i?n.createElement(H,{currentDocRoute:i,versionMetadata:a},(0,r.A)(t,{versionMetadata:a})):n.createElement(L.default,e)}},9090:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(6540),o=a(5593),i=a(4798);const r=function(){return n.createElement(o.A,{title:(0,i.T)({id:"theme.NotFound.title",message:"Page Not Found"})},n.createElement("main",{className:"container margin-vert--xl"},n.createElement("div",{className:"row"},n.createElement("div",{className:"col col--6 col--offset-3"},n.createElement("h1",{className:"hero__title"},n.createElement(i.A,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),n.createElement("p",null,n.createElement(i.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),n.createElement("p",null,n.createElement(i.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."))))))}},6094:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6540);const o=()=>n.createElement("script",{async:!0,type:"text/javascript",src:"//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto",id:"_carbonads_js"})}}]); |