!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-minimal-side-navigation"]=t(require("react")):e["react-minimal-side-navigation"]=t(e.react)}(this,(function(e){return(()=>{"use strict";var t={966:function(e,t,n){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&l.default.createElement("nav",{role:"navigation","aria-label":"side-navigation",className:"side-navigation-panel"},i.map((function(e){var t=e.elemBefore,n=e.itemId===r.selectedId,i=r.expanded&&(n||e.subNav&&e.subNav.some((function(e){return e.itemId===r.selectedId}))||!1);return l.default.createElement("ul",{key:e.itemId,className:"side-navigation-panel-select"},l.default.createElement("li",{className:"side-navigation-panel-select-wrap"},l.default.createElement("div",{onClick:function(){!function(e){if(r.expanded){var t=e.itemId===r.selectedId||e.subNav&&e.subNav.some((function(e){return e.itemId===r.selectedId}))||!1;c({expanded:!!(e.subNav&&e.subNav.length>0)&&!t,selectedId:e.itemId})}else c({expanded:!!(e.subNav&&e.subNav.length>0),selectedId:e.itemId})}(e),d(e.itemId)},className:"side-navigation-panel-select-option "+(n?"side-navigation-panel-select-option-selected":"")},l.default.createElement("span",{className:"side-navigation-panel-select-option-wrap"},t&&l.default.createElement(t,null),l.default.createElement("span",{className:"side-navigation-panel-select-option-text"},e.title)),e.subNav&&e.subNav.length>0&&(i?l.default.createElement(s.ChevronUpIcon,null):l.default.createElement(s.ChevronDownIcon,null)))),e.subNav&&e.subNav.length>0&&i&&l.default.createElement("ul",{className:"side-navigation-panel-select-inner"},e.subNav.map((function(e){var t=e.elemBefore;return l.default.createElement("li",{key:e.itemId,className:"side-navigation-panel-select-inner-wrap"},l.default.createElement("div",{onClick:function(){c(a(a({},r),{selectedId:e.itemId})),d(e.itemId)},className:"side-navigation-panel-select-inner-option "+(r.selectedId===e.itemId?"side-navigation-panel-select-inner-option-selected":"")+" "},l.default.createElement("span",{className:"side-navigation-panel-select-inner-option-wrap"},t&&l.default.createElement(t,null),l.default.createElement("span",{className:"side-navigation-panel-select-inner-option-text"},e.title))))}))))}))))}},645:(e,t,n)=>{n.r(t)},297:t=>{t.exports=e}},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,a),o.exports}return a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(851)})()}));