Advanced-Portals/assets/js/1be78505.d506ae26.js

1 line
9.9 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkadvanced_portals_docs=self.webpackChunkadvanced_portals_docs||[]).push([[514,608],{5642:function(e,t,a){a.r(t),a.d(t,{default:function(){return ee}});var n=a(7294),l=a(3905),o=a(6291),r=a(7019),c=a(6010),i=a(3616),s=a(3783),d=a(5537),m=a(7462);var u=function(e){return n.createElement("svg",(0,m.Z)({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"})))},p=a(5999),b=a(3366),h=a(9960),f=a(3919),v=a(541),E="menuLinkText_OKON",g="hasHref_TwRn",k=a(2389),_=["items"],C=["item"],N=["item","onItemClick","activePath","level"],Z=["item","onItemClick","activePath","level"],S=(0,n.memo)((function(e){var t=e.items,a=(0,b.Z)(e,_);return n.createElement(n.Fragment,null,t.map((function(e,t){return n.createElement(I,(0,m.Z)({key:t,item:e},a))})))}));function I(e){var t=e.item,a=(0,b.Z)(e,C);return"category"===t.type?0===t.items.length?null:n.createElement(T,(0,m.Z)({item:t},a)):n.createElement(M,(0,m.Z)({item:t},a))}function T(e){var t,a=e.item,l=e.onItemClick,o=e.activePath,r=e.level,s=(0,b.Z)(e,N),d=a.items,u=a.label,f=a.collapsible,v=a.className,_=a.href,C=function(e){var t=(0,k.Z)();return(0,n.useMemo)((function(){return e.href?e.href:!t&&e.collapsible?(0,i.Wl)(e):void 0}),[e,t])}(a),Z=(0,i._F)(a,o),I=(0,i.uR)({initialState:function(){return!!f&&(!Z&&a.collapsed)}}),T=I.collapsed,M=I.setCollapsed,y=I.toggleCollapsed;return function(e){var t=e.isActive,a=e.collapsed,l=e.setCollapsed,o=(0,i.D9)(t);(0,n.useEffect)((function(){t&&!o&&a&&l(!1)}),[t,o,a,l])}({isActive:Z,collapsed:T,setCollapsed:M}),n.createElement("li",{className:(0,c.Z)(i.kM.docs.docSidebarItemCategory,i.kM.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":T},v)},n.createElement("div",{className:"menu__list-item-collapsible"},n.createElement(h.Z,(0,m.Z)({className:(0,c.Z)("menu__link",(t={"menu__link--sublist":f&&!_,"menu__link--active":Z},t[E]=!f,t[g]=!!C,t)),onClick:f?function(e){null==l||l(a),_?M(!1):(e.preventDefault(),y())}:function(){null==l||l(a)},href:f?null!=C?C:"#":C},s),u),_&&f&&n.createElement("button",{"aria-label":(0,p.I)({id:"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel",message:"Toggle the collapsible sidebar category '{label}'",description:"The ARIA label to toggle the collapsible sidebar category"},{label:u}),type:"button",className:"clean-btn menu__caret",onClick:function(e){e.preventDefault(),y()}})),n.createElement(i.zF,{lazy:!0,as:"ul",className:"menu__list",collapsed:T},n.createElement(S,{items:d,tabIndex:T?-1:0,onItemClick:l,activePath:o,level:r+1})))}function M(e){var t=e.item,a=e.onItemClick,l=e.activePath,o=e.level,r=(0,b.Z)(e,Z),s=t.href,d=t.label,u=t.className,p=(0,i._F)(t,l);return n.createElement("li",{className:(0,c.Z)(i.kM.docs.docSidebarItemLink,i.kM.docs.docSidebarItemLinkLevel(o),"menu__list-item",u),key:d},n.createElement(h.Z,(0,m.Z)({className:(0,c.Z)("menu__link",{"menu__link--active":p}),"aria-current":p?"page":void 0,to:s},(0,f.Z)(s)&&{onClick:a?function(){return a(t)}:void 0},r),(0,f.Z)(s)?d:n.createElement("span",null,d,n.createElement(v.Z,null))))}var y="sidebar_a3j0",A="sidebarWithHideableNavbar_VlPv",w="sidebarHidden_OqfG",F="sidebarLogo_hmkv",L="menu_cyFh",B="menuWithAnnouncementBar_+O1J",P="collapseSidebarButton_eoK2",x="collapseSidebarButtonIcon_e+kA";function R(e){var t=e.onClick;return n.createElement("button",{type:"button",title:(0,p.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of d