You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
21 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[4368],{1796:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Fe});var i=n(7294),o=n(4334),r=n(1944),s=n(5281),a=n(3438),l=n(1116),c=n(5999),d=n(2466),p=n(5936);const u={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var m=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,i.useState)(!1),r=(0,i.useRef)(!1),{startScroll:s,cancelScroll:a}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:i}=e;const s=n?.scrollY;s&&(r.current?r.current=!1:i>=s?(a(),o(!1)):i<t?o(!1):i+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,p.S)((e=>{e.location.hash&&(r.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,m.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,u.backToTopButton,e&&u.backToTopButtonShow),type:"button",onClick:t})}var b=n(1442),x=n(6550),g=n(7524),f=n(6668);function j(e){return(0,m.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,m.jsxs)("g",{fill:"#7a7a7a",children:[(0,m.jsx)("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"}),(0,m.jsx)("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"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function k(e){let{onClick:t}=e;return(0,m.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,m.jsx)(j,{className:v.collapseSidebarButtonIcon})})}var y=n(9689),C=n(902);const _=Symbol("EmptyContext"),S=i.createContext(_);function Z(e){let{children:t}=e;const[n,o]=(0,i.useState)(null),r=(0,i.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,m.jsx)(S.Provider,{value:r,children:t})}var I=n(6043),w=n(8596),N=n(9960),T=n(2389);function A(e){let{collapsed:t,categoryLabel:n,onClick:i}=e;return(0,m.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:i})}function B(e){let{item:t,onItemClick:n,activePath:r,level:l,index:c,...d}=e;const{items:p,label:u,collapsible:h,className:b,href:x}=t,{docs:{sidebar:{autoCollapseCategories:g}}}=(0,f.L)(),j=function(e){const t=(0,T.Z)();return(0,i.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,a.LM)(e):void 0),[e,t])}(t),v=(0,a._F)(t,r),k=(0,w.Mg)(x,r),{collapsed:y,setCollapsed:Z}=(0,I.u)({initialState:()=>!!h&&(!v&&t.collapsed)}),{expandedItem:B,setExpandedItem:L}=function(){const e=(0,i.useContext)(S);if(e===_)throw new C.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!y),L(e?null:c),Z(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const r=(0,C.D9)(t);(0,i.useEffect)((()=>{t&&!r&&n&&o(!1)}),[t,r,n,o])}({isActiv