@next-bricks/nav 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +13 -8
- package/dist/chunks/{4504.0a34e5c5.js → 4504.bf55ef18.js} +2 -2
- package/dist/chunks/{4504.0a34e5c5.js.map → 4504.bf55ef18.js.map} +1 -1
- package/dist/chunks/622.0c7d8757.js +3 -0
- package/dist/chunks/622.0c7d8757.js.map +1 -0
- package/dist/chunks/{7632.5eb6d031.js → 7632.32801e60.js} +2 -2
- package/dist/chunks/7632.32801e60.js.map +1 -0
- package/dist/chunks/{9102.1a6633c8.js → 9102.b3a5fd52.js} +3 -3
- package/dist/chunks/{9102.1a6633c8.js.map → 9102.b3a5fd52.js.map} +1 -1
- package/dist/chunks/eo-directory.0c6a236e.js +3 -0
- package/dist/chunks/eo-directory.0c6a236e.js.map +1 -0
- package/dist/chunks/{eo-sidebar-sub-menu.c5c1b0e5.js → eo-sidebar-sub-menu.0058f660.js} +3 -3
- package/dist/chunks/eo-sidebar-sub-menu.0058f660.js.map +1 -0
- package/dist/chunks/{eo-sidebar.17b1cbcc.js → eo-sidebar.004dc2cd.js} +3 -3
- package/dist/chunks/eo-sidebar.004dc2cd.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-sidebar.004dc2cd.js.map +1 -0
- package/dist/chunks/main.adee579c.js +2 -0
- package/dist/chunks/{main.1141100c.js.map → main.adee579c.js.map} +1 -1
- package/dist/examples.json +3 -0
- package/dist/index.a71b970a.js +2 -0
- package/dist/index.a71b970a.js.map +1 -0
- package/dist/manifest.json +56 -10
- package/dist/types.json +264 -0
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/directory/index.d.ts +52 -0
- package/dist-types/directory/index.spec.d.ts +1 -0
- package/docs/eo-directory.md +52 -0
- package/package.json +3 -3
- package/dist/chunks/3981.da0a31e4.js +0 -3
- package/dist/chunks/3981.da0a31e4.js.map +0 -1
- package/dist/chunks/7632.5eb6d031.js.map +0 -1
- package/dist/chunks/eo-sidebar-sub-menu.c5c1b0e5.js.map +0 -1
- package/dist/chunks/eo-sidebar.17b1cbcc.js.map +0 -1
- package/dist/chunks/main.1141100c.js +0 -2
- package/dist/index.9c63ae8f.js +0 -2
- package/dist/index.9c63ae8f.js.map +0 -1
- /package/dist/chunks/{3981.da0a31e4.js.LICENSE.txt → 622.0c7d8757.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9102.1a6633c8.js.LICENSE.txt → 9102.b3a5fd52.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-sub-menu.c5c1b0e5.js.LICENSE.txt → eo-directory.0c6a236e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar.17b1cbcc.js.LICENSE.txt → eo-sidebar-sub-menu.0058f660.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/eo-directory.0c6a236e.js","mappings":";oOAqDuCA,0IAzCjC,cAAEC,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBACrCC,GAAcC,EAAAA,EAAAA,WAAyC,WACvDC,GAAiBD,EAAAA,EAAAA,WAAmC,cAE1DE,EAICP,EAAc,eAAgB,CAC7BQ,WAAY,CAACC,EAAAA,KACbC,EAKCT,IAAUU,EAQVV,EAAS,CAAEW,WAAW,IAAQC,EAM9BZ,EAAS,CAAEW,WAAW,IAAQE,EAM9BZ,EAAM,CAAEa,KAAM,oBAAoBC,EAMlCd,EAAM,CAAEa,KAAM,sBAAsB,IAAAE,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,EAAA,IAAAN,QAAAO,EAAA,IAAAP,QAAAQ,EAAA,IAAAR,QAjCvC,MAAAS,UAG0BC,EAAAA,iBAA6CC,cAAA,SAAAC,YAAAC,EAA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EAAUC,EAAY,OACrBhJ,GACvCA,CACT,+BENe,SAASyC,IAYtB,OAXAA,EAAW6B,OAAO8E,OAAS9E,OAAO8E,OAAOpB,OAAS,SAAUqB,GAC1D,IAAK,IAAIpG,EAAI,EAAGA,EAAI1D,UAAUwD,OAAQE,IAAK,CACzC,IAAIqG,EAAS/J,UAAU0D,GACvB,IAAK,IAAItC,KAAO2I,EACVhF,OAAOC,UAAUX,eAAeY,KAAK8E,EAAQ3I,KAC/C0I,EAAO1I,GAAO2I,EAAO3I,GAG3B,CACA,OAAO0I,CACT,EACO5G,EAAS2B,MAAM3D,KAAMlB,UAC9B,8ECXe,SAASmJ,EAAc9C,GACpC,IAAI3C,ECFS,SAAqB2C,EAAGM,GACrC,GAAI,WAAY,OAAQN,KAAOA,EAAG,OAAOA,EACzC,IAAIjD,EAAIiD,EAAEyC,OAAOkB,aACjB,QAAI,IAAW5G,EAAG,CAChB,IAAIM,EAAIN,EAAE6B,KAAKoB,EAAGM,UAClB,GAAI,WAAY,OAAQjD,GAAI,OAAOA,EACnC,MAAM,IAAIoD,UAAU,+CACtB,CACA,OAAyBmD,OAAiB5D,EAC5C,CDPU2D,CAAY3D,GACpB,MAAO,WAAY,OAAQ3C,GAAKA,EAAIuG,OAAOvG,EAC7C,+BELe,SAASwG,EAAQlG,GAG9B,OAAOkG,EAAU,mBAAqBpB,QAAU,iBAAmBA,OAAOqB,SAAW,SAAUnG,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqB8E,QAAU9E,EAAEjE,cAAgB+I,QAAU9E,IAAM8E,OAAO9D,UAAY,gBAAkBhB,CACpH,EAAGkG,EAAQlG,EACb","sources":["webpack:///./src/directory/index.tsx","webpack:///../../node_modules/classnames/index.js","webpack:///./src/directory/styles.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2305.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["import React from \"react\";\nimport { createDecorators, EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport styleText from \"./styles.shadow.css\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport classNames from \"classnames\";\nimport type { EoTooltip, ToolTipProps } from \"@next-bricks/basic/tooltip\";\n\nconst { defineElement, property, event } = createDecorators();\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\nconst WrappedTooltip = wrapBrick<EoTooltip, ToolTipProps>(\"eo-tooltip\");\n\n/**\n * 目录\n */\nexport\n@defineElement(\"eo-directory\", {\n styleTexts: [styleText],\n})\nclass EoDirectory extends ReactNextElement implements EoDirectoryProps {\n /**\n * 目录标题\n */\n @property()\n accessor directoryTitle: string | undefined;\n\n /**\n * 菜单数据\n * @default []\n * @required\n */\n @property({ attribute: false })\n accessor menuItems: MenuItem[] = [];\n\n /**\n * 默认选中高亮的菜单项\n */\n @property({ attribute: false })\n accessor defaultSelectedKeys: string[] | undefined;\n /**\n * 菜单点击,groupKey 表示对应分组的key,data 表示对应菜单项\n * @detail { groupKey: string, data: MenuChildrenItem }\n */\n @event({ type: \"menu.item.click\" })\n accessor #menuItemClickEvent!: EventEmitter<MenuItemClickEventDetail>;\n /**\n * 点击icon,detail为 对应菜单项或者是分组的key\n * @detail { key: string }\n */\n @event({ type: \"suffix.icon.click\" })\n accessor #suffixIconClickEvent!: EventEmitter<{ key: string }>;\n\n #menuItemClick = (data: MenuItemClickEventDetail) => {\n this.#menuItemClickEvent.emit(data);\n };\n #suffixIconClick = (key: string) => {\n this.#suffixIconClickEvent.emit({ key });\n };\n\n render() {\n return (\n <EoDirectoryComponent\n menuItems={this.menuItems}\n directoryTitle={this.directoryTitle}\n suffixIconClick={this.#suffixIconClick}\n menuItemClick={this.#menuItemClick}\n defaultSelectedKeys={this.defaultSelectedKeys}\n />\n );\n }\n}\nexport interface EoDirectoryProps {\n directoryTitle: string | undefined;\n menuItems: MenuItem[];\n menuItemClick?: (data: MenuItemClickEventDetail) => void;\n suffixIconClick?: (key: string) => void;\n defaultSelectedKeys?: string[] | undefined;\n}\ninterface MenuChildrenItem {\n title: string;\n key: string;\n [key: string]: any;\n}\ninterface MenuItem {\n title: string;\n key: string;\n type: \"group\" | \"item\";\n children?: MenuChildrenItem[];\n suffixIcon?: GeneralIconProps;\n suffixIconTooltip?: string;\n suffixIconDisabled?: boolean;\n}\ninterface MenuItemClickEventDetail {\n data: MenuChildrenItem;\n groupKey?: string;\n}\n\nexport function EoDirectoryComponent(props: EoDirectoryProps) {\n const {\n menuItems,\n directoryTitle,\n menuItemClick,\n suffixIconClick,\n defaultSelectedKeys,\n } = props;\n\n return (\n <div className=\"directory-container\">\n <div className=\"directory-title\" title={directoryTitle}>\n {directoryTitle}\n </div>\n <div className=\"directory-menu-list\">\n {menuItems.map((item, index) => {\n return (\n <div\n className={classNames(\"menu-item\", `menu-item-${item.type}`)}\n key={`${item.key}-${index}`}\n >\n <div\n className={classNames(`menu-item-title-${item.type}`)}\n onClick={() =>\n item.type === \"item\" && menuItemClick?.({ data: item })\n }\n >\n <span\n className={classNames(\"menu-title-text\", {\n \"menu-title-text-active\": defaultSelectedKeys?.includes(\n item.key\n ),\n })}\n >\n {item.title}\n </span>\n {item.suffixIcon && (\n <WrappedTooltip\n content={item.suffixIconTooltip}\n placement=\"top\"\n >\n <WrappedIcon\n {...(item.suffixIcon as GeneralIconProps)}\n className={classNames(\"menu-item-title-suffix-icon\", {\n \"menu-item-title-suffix-icon-disabled\":\n item.suffixIconDisabled,\n })}\n onClick={(e) => {\n e.stopPropagation();\n if (item.suffixIconDisabled) {\n e.preventDefault();\n } else {\n suffixIconClick?.(item.key);\n }\n }}\n />\n </WrappedTooltip>\n )}\n </div>\n {item.type === \"group\" &&\n !!item.children?.length &&\n item.children.map((child, i) => {\n return (\n <div\n className=\"menu-item-title-item\"\n onClick={() =>\n menuItemClick?.({ data: child, groupKey: item.key })\n }\n key={`${child.key}-${i}`}\n >\n <span\n className={classNames(\"menu-title-text\", {\n \"menu-title-text-active\":\n defaultSelectedKeys?.includes(child.key),\n })}\n >\n {child.title}\n </span>\n </div>\n );\n })}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block}:host([hidden]){display:none}.directory-container{padding:20px 8px 24px 24px;background:var(--color-fill-global-bg-2);border-right:1px solid var(--color-text-divider-line);height:calc(100vh - var(--app-bar-height) - 44px);overflow-y:auto;scrollbar-width:none}.directory-title{font-size:var(--sub-menu-title-font-size);margin-bottom:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.directory-menu-list > .menu-item-group{padding-top:14px}.directory-menu-list > .menu-item-group:first-child{padding-top:0}.directory-menu-list .menu-item-title-group,\n.directory-menu-list .menu-item-title-item{display:flex;align-items:center;justify-content:space-between}.directory-menu-list .menu-item-title-group{color:#8c8c8c;font-size:12px;margin-bottom:2px}.directory-menu-list .menu-item-title-item{font-size:14px;cursor:pointer;line-height:24px;padding:3px 0}.directory-menu-list .menu-item-title-suffix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;font-size:14px;border-radius:var(--small-border-radius);cursor:pointer}.directory-menu-list\n .menu-item-title-suffix-icon:not(\n .menu-item-title-suffix-icon-disabled\n ):hover{background:var(--color-info-icon-bg);color:var(--color-brand-hover)}.directory-menu-list .menu-item-title-item > .menu-title-text:hover{color:var(--color-brand-hover)}.directory-menu-list .menu-item-title-item > .menu-title-text-active{color:var(--color-brand)}.directory-menu-list .menu-item-title-suffix-icon-disabled{color:var(--color-disabled-text);cursor:not-allowed}.directory-menu-list .menu-title-text{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2305(e, t, r, n, o, a) {\n function i(e, t, r) {\n return function (n, o) {\n return r && r(n), e[t].call(n, o);\n };\n }\n function c(e, t) {\n for (var r = 0; r < e.length; r++) e[r].call(t);\n return t;\n }\n function s(e, t, r, n) {\n if (\"function\" != typeof e && (n || void 0 !== e)) throw new TypeError(t + \" must \" + (r || \"be\") + \" a function\" + (n ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) {\n function m(e) {\n if (!h(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var y,\n v,\n g = t[0],\n b = t[3],\n w = !u;\n if (!w) {\n r || Array.isArray(g) || (g = [g]);\n var S = {},\n A = [],\n P = 3 === o ? \"get\" : 4 === o || d ? \"set\" : \"value\";\n f ? (p || d ? S = {\n get: setFunctionName(function () {\n return b(this);\n }, n, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : S[P] = b, p || setFunctionName(S[P], n, 2 === o ? \"\" : P)) : p || (S = Object.getOwnPropertyDescriptor(e, n));\n }\n for (var j = g.length - 1; j >= 0; j -= r ? 2 : 1) {\n var D = g[j],\n E = r ? g[j - 1] : void 0,\n I = {},\n O = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: n,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw new Error(\"attempted to call addInitializer after decoration was finished\");\n s(t, \"An initializer\", \"be\", !0), c.push(t);\n }.bind(null, I)\n };\n try {\n if (w) v = D.call(E, e, O);else {\n var k, F;\n O[\"static\"] = l, O[\"private\"] = f, f || !p && 2 !== o ? 2 === o ? k = function k(e) {\n return m(e), S.value;\n } : ((o < 2 || 3 === o) && (k = i(S, \"get\", f && m)), (o < 2 || 4 === o) && (F = i(S, \"set\", f && m))) : (k = function k(e) {\n return e[n];\n }, p && (F = function F(e, t) {\n e[n] = t;\n }));\n var N = O.access = {\n has: f ? h.bind() : function (e) {\n return n in e;\n }\n };\n if (k && (N.get = k), F && (N.set = F), v = D.call(E, d ? {\n get: S.get,\n set: S.set\n } : S[P], O), d) {\n if (\"object\" == _typeof(v) && v) (y = s(v.get, \"accessor.get\")) && (S.get = y), (y = s(v.set, \"accessor.set\")) && (S.set = y), (y = s(v.init, \"accessor.init\")) && A.push(y);else if (void 0 !== v) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or void 0\");\n } else s(v, (p ? \"field\" : \"method\") + \" decorators\", \"return\") && (p ? A.push(v) : S[P] = v);\n }\n } finally {\n I.v = !0;\n }\n }\n return (p || d) && u.push(function (e, t) {\n for (var r = A.length - 1; r >= 0; r--) t = A[r].call(e, t);\n return t;\n }), p || w || (f ? d ? u.push(i(S, \"get\"), i(S, \"set\")) : u.push(2 === o ? S[P] : i.call.bind(S[P])) : Object.defineProperty(e, n, S)), v;\n }\n function u(e, t) {\n return Object.defineProperty(e, Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"), {\n configurable: !0,\n enumerable: !0,\n value: t\n });\n }\n if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\")];\n var f = Object.create(null == l ? null : l),\n p = function (e, t, r, n) {\n var o,\n a,\n i = [],\n s = function s(t) {\n return checkInRHS(t) === e;\n },\n u = new Map();\n function l(e) {\n e && i.push(c.bind(null, e));\n }\n for (var f = 0; f < t.length; f++) {\n var p = t[f];\n if (Array.isArray(p)) {\n var d = p[1],\n h = p[2],\n m = p.length > 3,\n y = 16 & d,\n v = !!(8 & d),\n g = 0 == (d &= 7),\n b = h + \"/\" + v;\n if (!g && !m) {\n var w = u.get(b);\n if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw new Error(\"Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: \" + h);\n u.set(b, !(d > 2) || d);\n }\n applyDec(v ? e : e.prototype, p, y, m ? \"#\" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r);\n }\n }\n return l(o), l(a), i;\n }(e, t, o, f);\n return r.length || u(e, f), {\n e: p,\n get c() {\n var t = [];\n return r.length && [u(s(applyDec(e, [r], n, e.name, 5, f, t), \"class decorators\", \"return\") || e, f), c.bind(null, t, e)];\n }\n };\n}","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}"],"names":["_EoDirectory","defineElement","property","event","createDecorators","WrappedIcon","wrapBrick","WrappedTooltip","_dec","styleTexts","styleText","_dec2","_dec3","attribute","_dec4","_dec5","type","_dec6","_A","WeakMap","_B","_C","_D","_menuItemClickEvent","_E","_suffixIconClickEvent","_menuItemClick","_suffixIconClick","EoDirectory","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","get","_get_suffixIconClickEvent2","set","_set_suffixIconClickEvent2","_get_menuItemClickEvent2","_set_menuItemClickEvent2","writable","value","_initProto","_init_directoryTitle","_init_menuItems","_init_defaultSelectedKeys","_init_menuItemClickEvent","_init_suffixIconClickEvent","data","_classPrivateFieldGet","this","emit","key","directoryTitle","v","_classPrivateFieldSet","menuItems","defaultSelectedKeys","render","React","EoDirectoryComponent","suffixIconClick","menuItemClick","_set_menuItemClickEvent","_get_menuItemClickEvent","_set_suffixIconClickEvent","_get_suffixIconClickEvent","props","className","title","map","item","index","_item$children","classNames","concat","onClick","includes","suffixIcon","content","suffixIconTooltip","placement","_extends","suffixIconDisabled","e","stopPropagation","preventDefault","children","length","child","i","groupKey","_class","c","_initClass","_applyDecs","o","_","has","_checkInRHS","hasOwn","hasOwnProperty","classes","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","call","join","module","exports","default","___CSS_LOADER_EXPORT___","id","cssWithMappingToString","list","needLayer","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","setFunctionName","t","n","description","defineProperty","configurable","applyDecs2305","r","a","s","TypeError","applyDec","u","l","f","p","d","h","m","y","g","b","w","S","A","P","getOwnPropertyDescriptor","j","D","E","I","O","kind","name","metadata","addInitializer","Error","bind","F","N","access","init","Symbol","enumerable","create","checkInRHS","Map","toPropertyKey","_checkPrivateRedeclaration","obj","privateCollection","_classExtractFieldDescriptor","receiver","privateMap","action","descriptor","classExtractFieldDescriptor","assign","target","source","toPrimitive","String","_typeof","iterator"],"sourceRoot":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see eo-sidebar-sub-menu.
|
|
2
|
-
(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1168,5850,5628],{6106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EoSidebarSubMenu:()=>l,EoSidebarSubMenuComponent:()=>z});var r,i,o,a,c,u,l,s=n(3395),m=n(381),d=n(687),p=n(5066),f=n(8657),h=n.n(f),v=n(5727),y=n(305),b=n(9464),g=(n(2006),n(7993)),x=n(7432),w=n(2779),k=n.n(w),E=(0,y.wrapBrick)("eo-icon"),S=(0,y.wrapBrick)("eo-menu"),Z=(0,y.wrapBrick)("eo-menu-group"),j=(0,y.wrapBrick)("eo-menu-item-sub-menu"),P=(0,y.wrapBrick)("eo-menu-item"),A=(0,y.wrapBrick)("eo-link"),{defineElement:O,property:N}=(0,v.createDecorators)();i=O("eo-sidebar-sub-menu",{styleTexts:[x.Z]}),o=N({attribute:!1});var T=new WeakMap;class K extends y.ReactNextElement{constructor(){super(...arguments),(0,s.Z)(this,T,{writable:!0,value:(c(this),a(this))})}get menu(){return(0,d.Z)(this,T)}set menu(e){(0,m.Z)(this,T,e)}render(){return h().createElement(z,{menu:this.menu})}}function z(e){var{menu:t}=e,n=(0,b.getHistory)(),[r,i]=(0,f.useState)(n.location),{pathname:o,search:a}=r,[c,u]=(0,f.useState)([]),[l,s]=(0,f.useState)([]),m=(0,f.useCallback)((()=>{var e,{selectedKeys:n,openedKeys:r}=(0,g.OZ)(null!==(e=null==t?void 0:t.menuItems)&&void 0!==e?e:[],o,a,"");u(n),s(r)}),[null==t?void 0:t.menuItems,o,a]);(0,f.useEffect)((()=>{var e=n.listen((e=>{i(e)}));return m(),e}),[n,m]);var d=(0,f.useCallback)((e=>{var t;return 16*((null===(t=e.key)||void 0===t||null===(t=t.split("."))||void 0===t?void 0:t.length)-1)}),[]);function p(e,t){return(0,g.cl)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return h().createElement(j,{className:"menu-sub-item",icon:e.icon,titleStyle:{paddingLeft:d(e)},bodyStyle:{paddingLeft:d(e)/2},collapsed:!l.includes(e.key)},h().createElement("span",{slot:"title"},e.title),e.items.map((e=>h().createElement(h().Fragment,{key:e.key},p(e,{inSubmenu:!0})))))})(e):(0,g.ty)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return h().createElement(Z,null,h().createElement("span",{slot:"title"},e.title),e.items.map((e=>h().createElement(h().Fragment,{key:e.key},p(e)))))})(e):((e,t)=>h().createElement(P,{className:k()("menu-item",{"in-submenu":null==t?void 0:t.inSubmenu}),style:{paddingLeft:d(e)||16},icon:e.icon,active:!!e.key&&c.includes(e.key)},h().createElement(A,{className:"menu-item-link",type:"plain",url:e.to,href:e.href,title:e.text,target:e.target},h().createElement("span",{className:k()("menu-item-text",{"item-has-icon":e.icon})},e.text))))(e,t)}return h().createElement(S,{className:"menu-container",mode:"vertical"},(null==t?void 0:t.title)&&h().createElement("div",{className:"header"},(null==t?void 0:t.icon)&&h().createElement(E,null==t?void 0:t.icon),h().createElement("span",{className:"title"},null==t?void 0:t.title)),h().createElement("div",{className:"content"},null==t?void 0:t.menuItems.map((e=>h().createElement(h().Fragment,{key:e.key},p(e))))))}u=K,({e:[a,c],c:[l,r]}=(0,p.Z)(u,[[o,1,"menu"]],[i],0,void 0,y.ReactNextElement)),r()},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},7432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9601),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.id,":host{display:block}:host([hidden]){display:none}.menu-container{box-sizing:border-box;background:var(--third-menu-default-bg);border:1px solid var(--stroke-color-default);border-width:0 1px 0 0;border-radius:0px;padding:20px 0px;height:100%}.menu-container .header{display:flex;gap:10px;align-items:center;font-size:var(--title-font-size);padding:0 20px 16px 20px;line-height:26px;color:var(--color-header-text)}.menu-container .header .title{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-wrap:break-word}.menu-container .content{padding:0 12px}.menu-container .menu-item,\n .menu-container .menu-sub-item::part(sub-menu-item-title){margin:0;padding-right:16px;height:40px;line-height:40px;border-radius:4px;margin-bottom:4px}.menu-container .menu-item::part(menu-item-icon),\n .menu-container .menu-sub-item::part(menu-item-icon){color:var(--color-secondary-text)}.menu-container .menu-item-link{width:100%;color:var(--color-secondary-text)}.menu-container .menu-item-text,\n .menu-container .menu-group-text,\n .menu-container .menu-item-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-container .menu-item-text{display:block;box-sizing:border-box;color:var(--antd-text-color)}.menu-container .menu-item:hover{background:var(--third-menu-item-hover-bg);color:var(--color-header-text)}.menu-container .menu-item:hover .menu-item-text{color:var(--color-header-text);font-weight:var(--font-weight-400)}.menu-container .in-submenu .menu-item-text{color:var(--color-normal-text)}.menu-container .menu-sub-item::part(sub-menu-item-title):hover{color:var(--color-header-text)}.menu-container .menu-item-text.item-has-icon{margin-left:6px}.menu-container .menu-item[active]{color:var(--color-brand);background-color:var(--third-menu-item-selected-bg)}.menu-container .menu-item[active] .menu-item-text{color:var(--color-brand);font-weight:var(--font-weight-500)}",""]);const c=a.toString()},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&a[s[0]]||(void 0!==o&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=o),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),i&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=i):s[4]="".concat(i)),t.push(s))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},5066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6522),i=n(1815);function o(e,t,n){"symbol"==(0,r.Z)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(5850);function c(e,t,n,c,u,l){function s(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function m(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function d(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function p(e,t,n,i,a,c,u,l,m,p,f,h,v){function y(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var b,g,x=t[0],w=t[3],k=!l;if(!k){n||Array.isArray(x)||(x=[x]);var E={},S=[],Z=3===a?"get":4===a||h?"set":"value";p?(f||h?E={get:o((function(){return w(this)}),i,"get"),set:function(e){t[4](this,e)}}:E[Z]=w,f||o(E[Z],i,2===a?"":Z)):f||(E=Object.getOwnPropertyDescriptor(e,i))}for(var j=x.length-1;j>=0;j-=n?2:1){var P=x[j],A=n?x[j-1]:void 0,O={},N={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:c,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");d(t,"An initializer","be",!0),u.push(t)}.bind(null,O)};try{if(k)g=P.call(A,e,N);else{var T,K;N.static=m,N.private=p,p||!f&&2!==a?2===a?T=function(e){return y(e),E.value}:((a<2||3===a)&&(T=s(E,"get",p&&y)),(a<2||4===a)&&(K=s(E,"set",p&&y))):(T=function(e){return e[i]},f&&(K=function(e,t){e[i]=t}));var z=N.access={has:p?v.bind():function(e){return i in e}};if(T&&(z.get=T),K&&(z.set=K),g=P.call(A,h?{get:E.get,set:E.set}:E[Z],N),h){if("object"==(0,r.Z)(g)&&g)(b=d(g.get,"accessor.get"))&&(E.get=b),(b=d(g.set,"accessor.set"))&&(E.set=b),(b=d(g.init,"accessor.init"))&&S.push(b);else if(void 0!==g)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else d(g,(f?"field":"method")+" decorators","return")&&(f?S.push(g):E[Z]=g)}}finally{O.v=!0}}return(f||h)&&l.push((function(e,t){for(var n=S.length-1;n>=0;n--)t=S[n].call(e,t);return t})),f||k||(p?h?l.push(s(E,"get"),s(E,"set")):l.push(2===a?E[Z]:s.call.bind(E[Z])):Object.defineProperty(e,i,E)),g}function f(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var h=l[Symbol.metadata||Symbol.for("Symbol.metadata")];var v=Object.create(null==h?null:h),y=function(e,t,n,r){var o,c,u=[],l=function(t){return(0,i.Z)(t)===e},s=new Map;function d(e){e&&u.push(m.bind(null,e))}for(var f=0;f<t.length;f++){var h=t[f];if(Array.isArray(h)){var v=h[1],y=h[2],b=h.length>3,g=16&v,x=!!(8&v),w=0==(v&=7),k=y+"/"+x;if(!w&&!b){var E=s.get(k);if(!0===E||3===E&&4!==v||4===E&&3!==v)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);s.set(k,!(v>2)||v)}p(x?e:e.prototype,h,g,b?"#"+y:(0,a.Z)(y),v,r,x?c=c||[]:o=o||[],u,x,b,w,1===v,x&&b?l:n)}}return d(o),d(c),u}(e,t,u,v);return n.length||f(e,v),{e:y,get c(){var t=[];return n.length&&[f(d(p(e,[n],c,e.name,5,v,t),"class decorators","return")||e,v),m.bind(null,t,e)]}}}},1815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.Z)(e):"null"));return e}},5863:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},5850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},6522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},7993:(e,t,n)=>{"use strict";n.d(t,{OZ:()=>c,cl:()=>a,ty:()=>o});var r=n(8353),i=n(9464);function o(e){return"group"===e.type}function a(e,t){return Boolean("subMenu"===e.type||t&&"group"===e.type)}function c(e,t,n,l){var s=[],m=[],d=[],p=0;return e.forEach((e=>{if(e.key=""===l?"".concat(p):"".concat(l,".").concat(p),o(e)||a(e)){var f=c(e.items,t,n,e.key);s.push(...f.selectedKeys),(f.selectedKeys.length||e.defaultExpanded)&&m.push(e.key),m.push(...f.openedKeys),d.push(...f.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var o="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),a=o.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),c=!!(0,i.matchPath)(t,{path:a,exact:e.exact});if(!c&&Array.isArray(e.activeIncludes))for(var l of e.activeIncludes){var s,m=void 0,d=l.includes("?");if(d&&(m=(0,r.parsePath)(l)),(c=!!(0,i.matchPath)(t,{path:d?m.pathname:l,exact:!0}))&&null!==(s=m)&&void 0!==s&&s.search&&(c=u(n,m.search)),c)break}if(c&&Array.isArray(e.activeExcludes))for(var p of e.activeExcludes)if(!(c=!(0,i.matchPath)(t,{path:p,exact:!0})))break;return c&&e.activeMatchSearch&&(c=u(n,o.search)),c}(e,t,n)){s.push(String(e.key));for(var h=e.key.split("."),v=0;v<h.length;v++)d.push(h.slice(0,v+1).join("."))}p+=1})),s.length&&""!==l&&m.push(l),{selectedKeys:s,openedKeys:m,matchedKeys:d}}function u(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[i,o]of r.entries())if(n.get(i)!==o)return!1;return!0}}}]);
|
|
3
|
-
//# sourceMappingURL=eo-sidebar-sub-menu.
|
|
1
|
+
/*! For license information please see eo-sidebar-sub-menu.0058f660.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1168,5850,5628],{6106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EoSidebarSubMenu:()=>l,EoSidebarSubMenuComponent:()=>z});var r,i,o,a,c,u,l,s=n(3395),m=n(381),d=n(687),p=n(5066),f=n(8657),v=n.n(f),h=n(5727),y=n(305),b=n(9464),g=(n(2006),n(7993)),x=n(7432),w=n(2779),k=n.n(w),E=(0,y.wrapBrick)("eo-icon"),S=(0,y.wrapBrick)("eo-menu"),Z=(0,y.wrapBrick)("eo-menu-group"),j=(0,y.wrapBrick)("eo-menu-item-sub-menu"),P=(0,y.wrapBrick)("eo-menu-item"),A=(0,y.wrapBrick)("eo-link"),{defineElement:O,property:N}=(0,h.createDecorators)();i=O("eo-sidebar-sub-menu",{styleTexts:[x.Z]}),o=N({attribute:!1});var T=new WeakMap;class K extends y.ReactNextElement{constructor(){super(...arguments),(0,s.Z)(this,T,{writable:!0,value:(c(this),a(this))})}get menu(){return(0,d.Z)(this,T)}set menu(e){(0,m.Z)(this,T,e)}render(){return v().createElement(z,{menu:this.menu})}}function z(e){var{menu:t}=e,n=(0,b.getHistory)(),[r,i]=(0,f.useState)(n.location),{pathname:o,search:a}=r,[c,u]=(0,f.useState)([]),[l,s]=(0,f.useState)([]),m=(0,f.useCallback)((()=>{var e,{selectedKeys:n,openedKeys:r}=(0,g.OZ)(null!==(e=null==t?void 0:t.menuItems)&&void 0!==e?e:[],o,a,"");u(n),s(r)}),[null==t?void 0:t.menuItems,o,a]);(0,f.useEffect)((()=>{var e=n.listen((e=>{i(e)}));return m(),e}),[n,m]);var d=(0,f.useCallback)((e=>{var t;return 16*((null===(t=e.key)||void 0===t||null===(t=t.split("."))||void 0===t?void 0:t.length)-1)}),[]);function p(e,t){return(0,g.cl)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return v().createElement(j,{className:"menu-sub-item",icon:e.icon,titleStyle:{paddingLeft:d(e)},bodyStyle:{paddingLeft:d(e)/2},collapsed:!l.includes(e.key)},v().createElement("span",{slot:"title"},e.title),e.items.map((e=>v().createElement(v().Fragment,{key:e.key},p(e,{inSubmenu:!0})))))})(e):(0,g.ty)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return v().createElement(Z,null,v().createElement("span",{slot:"title"},e.title),e.items.map((e=>v().createElement(v().Fragment,{key:e.key},p(e)))))})(e):((e,t)=>v().createElement(P,{className:k()("menu-item",{"in-submenu":null==t?void 0:t.inSubmenu}),style:{paddingLeft:d(e)||16},icon:e.icon,active:!!e.key&&c.includes(e.key)},v().createElement(A,{className:"menu-item-link",type:"plain",url:e.to,href:e.href,title:e.text,target:e.target},v().createElement("span",{className:k()("menu-item-text",{"item-has-icon":e.icon})},e.text))))(e,t)}return v().createElement(S,{className:"menu-container",mode:"vertical"},(null==t?void 0:t.title)&&v().createElement("div",{className:"header"},(null==t?void 0:t.icon)&&v().createElement(E,null==t?void 0:t.icon),v().createElement("span",{className:"title"},null==t?void 0:t.title)),v().createElement("div",{className:"content"},null==t?void 0:t.menuItems.map((e=>v().createElement(v().Fragment,{key:e.key},p(e))))))}u=K,({e:[a,c],c:[l,r]}=(0,p.Z)(u,[[o,1,"menu"]],[i],0,void 0,y.ReactNextElement)),r()},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},7432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9601),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.id,":host{display:block}:host([hidden]){display:none}.menu-container{box-sizing:border-box;background:var(--third-menu-default-bg);border:1px solid var(--stroke-color-default);border-width:0 1px 0 0;border-radius:0px;padding:20px 0px;height:100%}.menu-container .header{display:flex;gap:10px;align-items:center;font-size:var(--title-font-size);padding:0 20px 16px 20px;line-height:26px;color:var(--color-header-text)}.menu-container .header .title{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-wrap:break-word}.menu-container .content{padding:0 12px}.menu-container .menu-item,\n .menu-container .menu-sub-item::part(sub-menu-item-title){margin:0;padding-right:16px;height:40px;line-height:40px;border-radius:4px;margin-bottom:4px}.menu-container .menu-item::part(menu-item-icon),\n .menu-container .menu-sub-item::part(menu-item-icon){color:var(--color-secondary-text)}.menu-container .menu-item-link{width:100%;color:var(--color-secondary-text)}.menu-container .menu-item-text,\n .menu-container .menu-group-text,\n .menu-container .menu-item-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-container .menu-item-text{display:block;box-sizing:border-box;color:var(--antd-text-color)}.menu-container .menu-item:hover{background:var(--third-menu-item-hover-bg);color:var(--color-header-text)}.menu-container .menu-item:hover .menu-item-text{color:var(--color-header-text);font-weight:var(--font-weight-400)}.menu-container .in-submenu .menu-item-text{color:var(--color-normal-text)}.menu-container .menu-sub-item::part(sub-menu-item-title):hover{color:var(--color-header-text)}.menu-container .menu-item-text.item-has-icon{margin-left:6px}.menu-container .menu-item[active]{color:var(--color-brand);background-color:var(--third-menu-item-selected-bg)}.menu-container .menu-item[active] .menu-item-text{color:var(--color-brand);font-weight:var(--font-weight-500)}",""]);const c=a.toString()},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&a[s[0]]||(void 0!==o&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=o),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),i&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=i):s[4]="".concat(i)),t.push(s))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},5066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6522),i=n(1815);function o(e,t,n){"symbol"==(0,r.Z)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(5850);function c(e,t,n,c,u,l){function s(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function m(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function d(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function p(e,t,n,i,a,c,u,l,m,p,f,v,h){function y(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var b,g,x=t[0],w=t[3],k=!l;if(!k){n||Array.isArray(x)||(x=[x]);var E={},S=[],Z=3===a?"get":4===a||v?"set":"value";p?(f||v?E={get:o((function(){return w(this)}),i,"get"),set:function(e){t[4](this,e)}}:E[Z]=w,f||o(E[Z],i,2===a?"":Z)):f||(E=Object.getOwnPropertyDescriptor(e,i))}for(var j=x.length-1;j>=0;j-=n?2:1){var P=x[j],A=n?x[j-1]:void 0,O={},N={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:c,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");d(t,"An initializer","be",!0),u.push(t)}.bind(null,O)};try{if(k)g=P.call(A,e,N);else{var T,K;N.static=m,N.private=p,p||!f&&2!==a?2===a?T=function(e){return y(e),E.value}:((a<2||3===a)&&(T=s(E,"get",p&&y)),(a<2||4===a)&&(K=s(E,"set",p&&y))):(T=function(e){return e[i]},f&&(K=function(e,t){e[i]=t}));var z=N.access={has:p?h.bind():function(e){return i in e}};if(T&&(z.get=T),K&&(z.set=K),g=P.call(A,v?{get:E.get,set:E.set}:E[Z],N),v){if("object"==(0,r.Z)(g)&&g)(b=d(g.get,"accessor.get"))&&(E.get=b),(b=d(g.set,"accessor.set"))&&(E.set=b),(b=d(g.init,"accessor.init"))&&S.push(b);else if(void 0!==g)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else d(g,(f?"field":"method")+" decorators","return")&&(f?S.push(g):E[Z]=g)}}finally{O.v=!0}}return(f||v)&&l.push((function(e,t){for(var n=S.length-1;n>=0;n--)t=S[n].call(e,t);return t})),f||k||(p?v?l.push(s(E,"get"),s(E,"set")):l.push(2===a?E[Z]:s.call.bind(E[Z])):Object.defineProperty(e,i,E)),g}function f(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var v=l[Symbol.metadata||Symbol.for("Symbol.metadata")];var h=Object.create(null==v?null:v),y=function(e,t,n,r){var o,c,u=[],l=function(t){return(0,i.Z)(t)===e},s=new Map;function d(e){e&&u.push(m.bind(null,e))}for(var f=0;f<t.length;f++){var v=t[f];if(Array.isArray(v)){var h=v[1],y=v[2],b=v.length>3,g=16&h,x=!!(8&h),w=0==(h&=7),k=y+"/"+x;if(!w&&!b){var E=s.get(k);if(!0===E||3===E&&4!==h||4===E&&3!==h)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);s.set(k,!(h>2)||h)}p(x?e:e.prototype,v,g,b?"#"+y:(0,a.Z)(y),h,r,x?c=c||[]:o=o||[],u,x,b,w,1===h,x&&b?l:n)}}return d(o),d(c),u}(e,t,u,h);return n.length||f(e,h),{e:y,get c(){var t=[];return n.length&&[f(d(p(e,[n],c,e.name,5,h,t),"class decorators","return")||e,h),m.bind(null,t,e)]}}}},1815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.Z)(e):"null"));return e}},5863:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},5850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},6522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},7993:(e,t,n)=>{"use strict";n.d(t,{OZ:()=>c,cl:()=>a,ty:()=>o});var r=n(8353),i=n(9464);function o(e){return"group"===e.type}function a(e,t){return Boolean("subMenu"===e.type||t&&"group"===e.type)}function c(e,t,n,l){var s=[],m=[],d=[],p=0;return e.forEach((e=>{if(e.key=""===l?"".concat(p):"".concat(l,".").concat(p),o(e)||a(e)){var f=c(e.items,t,n,e.key);s.push(...f.selectedKeys),(f.selectedKeys.length||e.defaultExpanded)&&m.push(e.key),m.push(...f.openedKeys),d.push(...f.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var o="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),a=o.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),c=!!(0,i.matchPath)(t,{path:a,exact:e.exact});if(c&&e.activeMatchSearch&&(c=u(n,o.search)),!c&&Array.isArray(e.activeIncludes))for(var l of e.activeIncludes){var s,m=void 0,d=l.includes("?");if(d&&(m=(0,r.parsePath)(l)),(c=!!(0,i.matchPath)(t,{path:d?m.pathname:l,exact:!0}))&&null!==(s=m)&&void 0!==s&&s.search&&(c=u(n,m.search)),c)break}if(c&&Array.isArray(e.activeExcludes))for(var p of e.activeExcludes)if(!(c=!(0,i.matchPath)(t,{path:p,exact:!0})))break;return c}(e,t,n)){s.push(String(e.key));for(var v=e.key.split("."),h=0;h<v.length;h++)d.push(v.slice(0,h+1).join("."))}p+=1})),s.length&&""!==l&&m.push(l),{selectedKeys:s,openedKeys:m,matchedKeys:d}}function u(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[i,o]of r.entries()){var a;if((null!==(a=n.get(i))&&void 0!==a?a:"")!==o)return!1}return!0}}}]);
|
|
3
|
+
//# sourceMappingURL=eo-sidebar-sub-menu.0058f660.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/eo-sidebar-sub-menu.0058f660.js","mappings":";qNAsEIA,yIAnCEC,GAAcC,EAAAA,EAAAA,WAAyC,WAEvDC,GAAcD,EAAAA,EAAAA,WAA8B,WAE5CE,GAAmBF,EAAAA,EAAAA,WAA4B,iBAE/CG,GAAyBH,EAAAA,EAAAA,WAC7B,yBAGII,GAAkBJ,EAAAA,EAAAA,WAAwC,gBAE1DK,GAAkBL,EAAAA,EAAAA,WAA2B,YAO7C,cAAEM,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAEpCC,EAKCH,EAAc,sBAAuB,CACpCI,WAAY,CAACC,EAAAA,KACbC,EAKCL,EAAS,CACRM,WAAW,IACX,IAAAC,EAAA,IAAAC,QATJ,MAAAC,UAG+BC,EAAAA,iBAAiBC,cAAA,SAAAC,YAC9CC,EAAAA,EAAAA,GAAA,KAAAN,EAAA,CAAAO,UAAA,EAAAC,OAAAC,EAAA,MAAAC,EAAA,SAMSC,WAAI,OAAAC,EAAAA,EAAAA,GAAA,KAAAZ,EAAA,CAAJW,SAAIE,IAAAC,EAAAA,EAAAA,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C,EAAYH,EAAQjJ,SAAS,KAcnC,GAZIoJ,IACFD,GAAeZ,EAAAA,EAAAA,WAAUU,KAE3BP,KAAUC,EAAAA,EAAAA,WAAU3K,EAAU,CAC5B4K,KAAMQ,EAAYD,EAAcnL,SAAWiL,EAC3CJ,OAAO,MAGgB,QAAhBK,EAAIC,SAAY,IAAAD,GAAZA,EAAcjL,SACzByK,EAAQK,EAAiB9K,EAAQkL,EAAalL,SAG5CyK,EACF,KAEJ,CAGF,GAAIA,GAASzG,MAAMC,QAAQlD,EAAKqK,gBAC9B,IAAK,IAAMC,KAAWtK,EAAKqK,eAKzB,KAJAX,IAASC,EAAAA,EAAAA,WAAU3K,EAAU,CAC3B4K,KAAMU,EACNT,OAAO,KAGP,MAKN,OAAOH,CACT,CA7FUa,CAAcvK,EAAMhB,EAAUC,GAAS,CACzCQ,EAAauD,KAAK4F,OAAO5I,EAAKE,MAI9B,IAFA,IAAMsK,EAAUxK,EAAKE,IAAIC,MAAM,KAEtB0C,EAAI,EAAGA,EAAI2H,EAAQpK,OAAQyC,IAClCqG,EAAYlG,KAAKwH,EAAQC,MAAM,EAAG5H,EAAI,GAAGY,KAAK,KAElD,CAEF0F,GAAU,CAAC,IAET1J,EAAaW,QAA2B,KAAjB6I,GACzB7J,EAAW4D,KAAKiG,GAEX,CACLxJ,aAAcA,EACdL,WAAYA,EACZ8J,YAAaA,EAEjB,CAEA,SAASa,EACPW,EACAC,GAEA,IAAMC,EAAU,IAAIC,gBAAgBH,GAC9B1I,EAAK,IAAI6I,gBAAgBF,GAC/B,IAAK,IAAOzK,EAAKnC,KAAUiE,EAAG8I,UAAW,KAAAC,EAEvC,IAAqB,QAAjBA,EAACH,EAAQpE,IAAItG,UAAI,IAAA6K,EAAAA,EAAI,MAAQhN,EAC/B,OAAO,CAEX,CACA,OAAO,CACT","sources":["webpack:///./src/sidebar-sub-menu/index.tsx","webpack:///../../node_modules/classnames/index.js","webpack:///./src/sidebar-sub-menu/styles.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2305.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../src/menu.ts"],"sourcesContent":["import React, { useState, useEffect, useCallback } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { getHistory } from \"@next-core/runtime\";\nimport { UnregisterCallback } from \"history\";\nimport \"@next-core/theme\";\nimport {\n SidebarMenuSimpleItem,\n SidebarMenuGroup,\n SidebarMenuItem,\n} from \"@next-shared/general/types\";\nimport {\n initMenuItemAndMatchCurrentPathKeys,\n isGroup,\n isSubMenu,\n} from \"@next-shared/general/menu\";\nimport { Menu as MenuComponent, SidebarMenu } from \"@next-bricks/basic/menu\";\nimport { Link, LinkProps, Target } from \"@next-bricks/basic/link\";\nimport {\n EoMenuItemSubMenu,\n EoMenuSubMenuProps,\n} from \"@next-bricks/basic/menu-item-sub-menu\";\nimport { EoMenuGroup } from \"@next-bricks/basic/menu-group\";\nimport { MenuComponentProps, MenuItem } from \"@next-bricks/basic/menu-item\";\nimport styleText from \"./styles.shadow.css\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport classNames from \"classnames\";\n\n// --- NOTE: uncomment these lines below to enable i18n for your brick ---\n// import { useTranslation, initializeReactI18n } from \"@next-core/i18n/react\";\n// import { K, NS, locales } from \"./i18n.js\";\n// initializeReactI18n(NS, locales);\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\n\nconst WrappedMenu = wrapBrick<MenuComponent, any>(\"eo-menu\");\n\nconst WrappedMenuGroup = wrapBrick<EoMenuGroup, any>(\"eo-menu-group\");\n\nconst WrapperMenuItemSubMenu = wrapBrick<EoMenuItemSubMenu, EoMenuSubMenuProps>(\n \"eo-menu-item-sub-menu\"\n);\n\nconst WrappedMenuItem = wrapBrick<MenuItem, MenuComponentProps>(\"eo-menu-item\");\n\nconst WrappedLinkItem = wrapBrick<Link, LinkProps>(\"eo-link\");\n\ninterface SidebarSubMenuProps {\n menu?: SidebarMenu;\n showTooltip?: boolean;\n}\n\nconst { defineElement, property } = createDecorators();\n\n/**\n * 构件 `eo-sidebar-sub-menu`\n * @category navigation\n */\nexport\n@defineElement(\"eo-sidebar-sub-menu\", {\n styleTexts: [styleText],\n})\nclass EoSidebarSubMenu extends ReactNextElement {\n /**\n * 菜单项\n */\n @property({\n attribute: false,\n })\n accessor menu: SidebarMenu | undefined;\n\n render() {\n return <EoSidebarSubMenuComponent menu={this.menu} />;\n }\n}\n\nexport function EoSidebarSubMenuComponent(props: SidebarSubMenuProps) {\n // const { t } = useTranslation(NS);\n // const hello = t(K.HELLO);\n const { menu } = props;\n\n const history = getHistory();\n const [location, setLocation] = useState(history.location);\n const { pathname, search } = location;\n\n const [selectedKey, setSelectedKey] = useState<string[]>([]);\n const [openedKeys, setOpenedKeys] = useState<string[]>([]);\n\n const setSelected = useCallback((): void => {\n const { selectedKeys, openedKeys } = initMenuItemAndMatchCurrentPathKeys(\n menu?.menuItems ?? [],\n pathname,\n search,\n \"\"\n );\n setSelectedKey(selectedKeys);\n setOpenedKeys(openedKeys);\n }, [menu?.menuItems, pathname, search]);\n\n useEffect(() => {\n const unListen: UnregisterCallback = history.listen((location) => {\n setLocation(location);\n });\n setSelected();\n return unListen;\n }, [history, setSelected]);\n\n const getMenuItemIndent = useCallback((item: SidebarMenuItem): number => {\n return ((item.key?.split(\".\")?.length as number) - 1) * 16;\n }, []);\n\n const renderSimpleMenuItem = (\n item: SidebarMenuSimpleItem,\n options?: {\n inSubmenu?: boolean;\n }\n ) => {\n return (\n <WrappedMenuItem\n className={classNames(\"menu-item\", {\n \"in-submenu\": options?.inSubmenu,\n })}\n style={{ paddingLeft: getMenuItemIndent(item) || 16 }}\n icon={item.icon}\n active={item.key ? selectedKey.includes(item.key) : false}\n >\n <WrappedLinkItem\n className=\"menu-item-link\"\n type=\"plain\"\n url={item.to as string}\n href={item.href}\n title={item.text}\n target={item.target as Target}\n >\n <span\n className={classNames(\"menu-item-text\", {\n \"item-has-icon\": item.icon,\n })}\n >\n {item.text}\n </span>\n </WrappedLinkItem>\n </WrappedMenuItem>\n );\n };\n\n const renderSubMenuItem = (item: SidebarMenuGroup) => {\n // istanbul ignore else\n if (item.items?.length > 0) {\n return (\n <WrapperMenuItemSubMenu\n className=\"menu-sub-item\"\n icon={item.icon}\n titleStyle={{ paddingLeft: getMenuItemIndent(item) }}\n bodyStyle={{ paddingLeft: getMenuItemIndent(item) / 2 }}\n collapsed={!openedKeys.includes(item.key!)}\n >\n <span slot=\"title\">{item.title}</span>\n {item.items.map((innerItem) => (\n <React.Fragment key={innerItem.key}>\n {renderMenuItem(innerItem, {\n inSubmenu: true,\n })}\n </React.Fragment>\n ))}\n </WrapperMenuItemSubMenu>\n );\n }\n };\n\n const renderGroupMenuItem = (item: SidebarMenuGroup) => {\n // istanbul ignore else\n if (item.items?.length > 0) {\n return (\n <WrappedMenuGroup>\n <span slot=\"title\">{item.title}</span>\n\n {item.items.map((innerItem) => {\n return (\n <React.Fragment key={innerItem.key}>\n {renderMenuItem(innerItem)}\n </React.Fragment>\n );\n })}\n </WrappedMenuGroup>\n );\n }\n };\n\n function renderMenuItem(\n item: SidebarMenuItem,\n options?:\n | {\n inSubmenu?: boolean;\n }\n | undefined\n ) {\n return isSubMenu(item as SidebarMenuGroup)\n ? renderSubMenuItem(item as SidebarMenuGroup)\n : isGroup(item)\n ? renderGroupMenuItem(item)\n : renderSimpleMenuItem(item, options);\n }\n\n return (\n <WrappedMenu className=\"menu-container\" mode=\"vertical\">\n {menu?.title && (\n <div className=\"header\">\n {menu?.icon && <WrappedIcon {...(menu?.icon as GeneralIconProps)} />}\n <span className=\"title\">{menu?.title}</span>\n </div>\n )}\n <div className=\"content\">\n {menu?.menuItems.map((item) => {\n return (\n <React.Fragment key={item.key}>\n {renderMenuItem(item)}\n </React.Fragment>\n );\n })}\n </div>\n </WrappedMenu>\n );\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block}:host([hidden]){display:none}.menu-container{box-sizing:border-box;background:var(--third-menu-default-bg);border:1px solid var(--stroke-color-default);border-width:0 1px 0 0;border-radius:0px;padding:20px 0px;height:100%}.menu-container .header{display:flex;gap:10px;align-items:center;font-size:var(--title-font-size);padding:0 20px 16px 20px;line-height:26px;color:var(--color-header-text)}.menu-container .header .title{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-wrap:break-word}.menu-container .content{padding:0 12px}.menu-container .menu-item,\n .menu-container .menu-sub-item::part(sub-menu-item-title){margin:0;padding-right:16px;height:40px;line-height:40px;border-radius:4px;margin-bottom:4px}.menu-container .menu-item::part(menu-item-icon),\n .menu-container .menu-sub-item::part(menu-item-icon){color:var(--color-secondary-text)}.menu-container .menu-item-link{width:100%;color:var(--color-secondary-text)}.menu-container .menu-item-text,\n .menu-container .menu-group-text,\n .menu-container .menu-item-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-container .menu-item-text{display:block;box-sizing:border-box;color:var(--antd-text-color)}.menu-container .menu-item:hover{background:var(--third-menu-item-hover-bg);color:var(--color-header-text)}.menu-container .menu-item:hover .menu-item-text{color:var(--color-header-text);font-weight:var(--font-weight-400)}.menu-container .in-submenu .menu-item-text{color:var(--color-normal-text)}.menu-container .menu-sub-item::part(sub-menu-item-title):hover{color:var(--color-header-text)}.menu-container .menu-item-text.item-has-icon{margin-left:6px}.menu-container .menu-item[active]{color:var(--color-brand);background-color:var(--third-menu-item-selected-bg)}.menu-container .menu-item[active] .menu-item-text{color:var(--color-brand);font-weight:var(--font-weight-500)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2305(e, t, r, n, o, a) {\n function i(e, t, r) {\n return function (n, o) {\n return r && r(n), e[t].call(n, o);\n };\n }\n function c(e, t) {\n for (var r = 0; r < e.length; r++) e[r].call(t);\n return t;\n }\n function s(e, t, r, n) {\n if (\"function\" != typeof e && (n || void 0 !== e)) throw new TypeError(t + \" must \" + (r || \"be\") + \" a function\" + (n ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) {\n function m(e) {\n if (!h(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var y,\n v,\n g = t[0],\n b = t[3],\n w = !u;\n if (!w) {\n r || Array.isArray(g) || (g = [g]);\n var S = {},\n A = [],\n P = 3 === o ? \"get\" : 4 === o || d ? \"set\" : \"value\";\n f ? (p || d ? S = {\n get: setFunctionName(function () {\n return b(this);\n }, n, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : S[P] = b, p || setFunctionName(S[P], n, 2 === o ? \"\" : P)) : p || (S = Object.getOwnPropertyDescriptor(e, n));\n }\n for (var j = g.length - 1; j >= 0; j -= r ? 2 : 1) {\n var D = g[j],\n E = r ? g[j - 1] : void 0,\n I = {},\n O = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: n,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw new Error(\"attempted to call addInitializer after decoration was finished\");\n s(t, \"An initializer\", \"be\", !0), c.push(t);\n }.bind(null, I)\n };\n try {\n if (w) v = D.call(E, e, O);else {\n var k, F;\n O[\"static\"] = l, O[\"private\"] = f, f || !p && 2 !== o ? 2 === o ? k = function k(e) {\n return m(e), S.value;\n } : ((o < 2 || 3 === o) && (k = i(S, \"get\", f && m)), (o < 2 || 4 === o) && (F = i(S, \"set\", f && m))) : (k = function k(e) {\n return e[n];\n }, p && (F = function F(e, t) {\n e[n] = t;\n }));\n var N = O.access = {\n has: f ? h.bind() : function (e) {\n return n in e;\n }\n };\n if (k && (N.get = k), F && (N.set = F), v = D.call(E, d ? {\n get: S.get,\n set: S.set\n } : S[P], O), d) {\n if (\"object\" == _typeof(v) && v) (y = s(v.get, \"accessor.get\")) && (S.get = y), (y = s(v.set, \"accessor.set\")) && (S.set = y), (y = s(v.init, \"accessor.init\")) && A.push(y);else if (void 0 !== v) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or void 0\");\n } else s(v, (p ? \"field\" : \"method\") + \" decorators\", \"return\") && (p ? A.push(v) : S[P] = v);\n }\n } finally {\n I.v = !0;\n }\n }\n return (p || d) && u.push(function (e, t) {\n for (var r = A.length - 1; r >= 0; r--) t = A[r].call(e, t);\n return t;\n }), p || w || (f ? d ? u.push(i(S, \"get\"), i(S, \"set\")) : u.push(2 === o ? S[P] : i.call.bind(S[P])) : Object.defineProperty(e, n, S)), v;\n }\n function u(e, t) {\n return Object.defineProperty(e, Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"), {\n configurable: !0,\n enumerable: !0,\n value: t\n });\n }\n if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\")];\n var f = Object.create(null == l ? null : l),\n p = function (e, t, r, n) {\n var o,\n a,\n i = [],\n s = function s(t) {\n return checkInRHS(t) === e;\n },\n u = new Map();\n function l(e) {\n e && i.push(c.bind(null, e));\n }\n for (var f = 0; f < t.length; f++) {\n var p = t[f];\n if (Array.isArray(p)) {\n var d = p[1],\n h = p[2],\n m = p.length > 3,\n y = 16 & d,\n v = !!(8 & d),\n g = 0 == (d &= 7),\n b = h + \"/\" + v;\n if (!g && !m) {\n var w = u.get(b);\n if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw new Error(\"Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: \" + h);\n u.set(b, !(d > 2) || d);\n }\n applyDec(v ? e : e.prototype, p, y, m ? \"#\" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r);\n }\n }\n return l(o), l(a), i;\n }(e, t, o, f);\n return r.length || u(e, f), {\n e: p,\n get c() {\n var t = [];\n return r.length && [u(s(applyDec(e, [r], n, e.name, 5, f, t), \"class decorators\", \"return\") || e, f), c.bind(null, t, e)];\n }\n };\n}","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import { Location, parsePath } from \"history\";\nimport { matchPath } from \"@next-core/runtime\";\nimport type {\n SidebarMenuSimpleItem,\n SidebarMenuItem,\n SidebarMenuGroup,\n} from \"./types.js\";\n\nexport function isGroup(item: SidebarMenuItem): item is SidebarMenuGroup {\n return item.type === \"group\";\n}\n\nexport function isSubMenu(\n item: SidebarMenuItem,\n groupAsSubMenu?: boolean\n): item is SidebarMenuGroup {\n return Boolean(\n item.type === \"subMenu\" || (groupAsSubMenu && item.type === \"group\")\n );\n}\n\nexport function initMenuItemAndMatchCurrentPathKeys(\n menuItems: SidebarMenuItem[],\n pathname: string,\n search: string,\n parentCursor: string\n): {\n selectedKeys: string[];\n openedKeys: string[];\n matchedKeys: string[];\n} {\n const selectedKeys: string[] = [];\n const openedKeys: string[] = [];\n const matchedKeys: string[] = [];\n\n let cursor = 0;\n menuItems.forEach((item) => {\n // key的格式最终为0,1,2,0.1,0.2,0.1.1,0.1.2\n item.key = parentCursor === \"\" ? `${cursor}` : `${parentCursor}.${cursor}`;\n if (isGroup(item) || isSubMenu(item)) {\n const tmp = initMenuItemAndMatchCurrentPathKeys(\n item.items,\n pathname,\n search,\n item.key\n );\n selectedKeys.push(...tmp.selectedKeys);\n if (tmp.selectedKeys.length || item.defaultExpanded) {\n openedKeys.push(item.key);\n }\n openedKeys.push(...tmp.openedKeys);\n matchedKeys.push(...tmp.matchedKeys);\n } else {\n if (matchMenuItem(item, pathname, search)) {\n selectedKeys.push(String(item.key));\n\n const keyPath = item.key.split(\".\");\n\n for (let i = 0; i < keyPath.length; i++) {\n matchedKeys.push(keyPath.slice(0, i + 1).join(\".\"));\n }\n }\n }\n cursor += 1;\n });\n if (selectedKeys.length && parentCursor !== \"\") {\n openedKeys.push(parentCursor);\n }\n return {\n selectedKeys: selectedKeys,\n openedKeys: openedKeys,\n matchedKeys: matchedKeys,\n };\n}\n\nfunction getMatchOfSearch(\n currentSearch: string,\n toSearch: string | undefined\n): boolean {\n const current = new URLSearchParams(currentSearch);\n const to = new URLSearchParams(toSearch);\n for (const [key, value] of to.entries()) {\n // Allow `?k=` to match `?` (when `k` doesn't exist)\n if ((current.get(key) ?? \"\") !== value) {\n return false;\n }\n }\n return true;\n}\n\nexport function matchMenuItem(\n item: SidebarMenuSimpleItem,\n pathname: string,\n search: string\n): boolean {\n if (!item.to) return false;\n const to = typeof item.to === \"object\" ? item.to : parsePath(item.to);\n\n // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n const escapedPath = to.pathname!.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n\n let match = !!matchPath(pathname, {\n path: escapedPath,\n exact: item.exact,\n });\n\n if (match && item.activeMatchSearch) {\n match = getMatchOfSearch(search, to.search);\n }\n\n if (!match && Array.isArray(item.activeIncludes)) {\n for (const include of item.activeIncludes) {\n let parseInclude: Location | undefined;\n const hasSearch = include.includes(\"?\");\n\n if (hasSearch) {\n parseInclude = parsePath(include);\n }\n match = !!matchPath(pathname, {\n path: hasSearch ? parseInclude!.pathname : include,\n exact: true,\n });\n\n if (match && parseInclude?.search) {\n match = getMatchOfSearch(search, parseInclude.search);\n }\n\n if (match) {\n break;\n }\n }\n }\n\n if (match && Array.isArray(item.activeExcludes)) {\n for (const include of item.activeExcludes) {\n match = !matchPath(pathname, {\n path: include,\n exact: true,\n });\n if (!match) {\n break;\n }\n }\n }\n\n return match;\n}\n"],"names":["_EoSidebarSubMenu","WrappedIcon","wrapBrick","WrappedMenu","WrappedMenuGroup","WrapperMenuItemSubMenu","WrappedMenuItem","WrappedLinkItem","defineElement","property","createDecorators","_dec","styleTexts","styleText","_dec2","attribute","_A","WeakMap","EoSidebarSubMenu","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","writable","value","_initProto","_init_menu","menu","_classPrivateFieldGet","v","_classPrivateFieldSet","render","React","EoSidebarSubMenuComponent","this","props","history","getHistory","location","setLocation","useState","pathname","search","selectedKey","setSelectedKey","openedKeys","setOpenedKeys","setSelected","useCallback","_menu$menuItems","selectedKeys","initMenuItemAndMatchCurrentPathKeys","menuItems","useEffect","unListen","listen","getMenuItemIndent","item","_item$key","key","split","length","renderMenuItem","options","isSubMenu","_item$items","items","className","icon","titleStyle","paddingLeft","bodyStyle","collapsed","includes","slot","title","map","innerItem","inSubmenu","renderSubMenuItem","isGroup","_item$items2","renderGroupMenuItem","renderSimpleMenuItem","classNames","style","active","type","url","to","href","text","target","mode","_class","e","c","_initClass","_applyDecs","hasOwn","hasOwnProperty","classes","i","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","call","join","module","exports","default","___CSS_LOADER_EXPORT___","id","cssWithMappingToString","list","content","needLayer","concat","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","setFunctionName","t","n","description","defineProperty","configurable","applyDecs2305","r","o","a","s","TypeError","applyDec","u","l","f","p","d","h","m","y","g","b","w","S","A","P","get","set","getOwnPropertyDescriptor","j","D","E","I","O","kind","name","metadata","addInitializer","Error","bind","F","N","access","has","init","Symbol","enumerable","create","checkInRHS","Map","toPropertyKey","_checkInRHS","_checkPrivateRedeclaration","obj","privateCollection","_classExtractFieldDescriptor","receiver","privateMap","action","descriptor","classExtractFieldDescriptor","toPrimitive","String","_typeof","iterator","groupAsSubMenu","Boolean","parentCursor","matchedKeys","cursor","forEach","tmp","defaultExpanded","parsePath","escapedPath","replace","match","matchPath","path","exact","activeMatchSearch","getMatchOfSearch","activeIncludes","include","_parseInclude","parseInclude","hasSearch","activeExcludes","_include","matchMenuItem","keyPath","slice","currentSearch","toSearch","current","URLSearchParams","entries","_current$get"],"sourceRoot":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see eo-sidebar.
|
|
2
|
-
(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1612,5850,5628],{8196:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,NS:()=>i,k:()=>a});var r=function(e){return e.CLICK_TO_FIX_NAVIGATION="CLICK_TO_FIX_NAVIGATION",e.UNPIN_NAVIGATION="UNPIN_NAVIGATION",e.FIXED_NAVIGATION="FIXED_NAVIGATION",e}({}),i="bricks/nav/eo-sidebar",a={en:{UNPIN_NAVIGATION:"Unpin navigation",FIXED_NAVIGATION:"Fixed navigation",CLICK_TO_FIX_NAVIGATION:"Click to {{action}}"},zh:{UNPIN_NAVIGATION:"取消固定",FIXED_NAVIGATION:"固定导航",CLICK_TO_FIX_NAVIGATION:"点击{{action}}"}}},9886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EoSidebar:()=>U,EoSidebarComponent:()=>he});var r,i,a,o,s,l,c,u,d,p,h,v,f,m,g,b,y,x,I,E,w=n(7896),k=n(3395),N=n(1815),S=n(381),Z=n(687),A=n(5066),O=n(8657),K=n.n(O),C=n(5727),T=n(305),_=(n(2006),n(4487)),P=n(1082),M=n(5162),j=n(4655),F=n(2890),R=n(8671),z=n(1487),V=n(8196),G=n(2779),L=n.n(G),W=n(7993),B=n(9464),D=n(1150);(0,z.initializeReactI18n)(V.NS,V.k);var U,{defineElement:X,property:H,event:$}=(0,C.createDecorators)(),J=(0,T.wrapBrick)("eo-tooltip"),Q=(0,T.wrapBrick)("eo-icon");i=X("eo-sidebar",{styleTexts:[_.Z]}),a=H({attribute:!1}),s=H({type:Boolean}),c=H(),d=H(),h=$({type:"actual.width.change"}),g=$({type:"expanded.state.change"});var q=new WeakMap,Y=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,ae=new WeakMap,oe=new WeakMap,se=new WeakMap;class le extends T.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,oe,{get:pe,set:de}),(0,k.Z)(this,re,{get:ue,set:ce}),(0,k.Z)(this,q,{writable:!0,value:(I(this),o(this))}),(0,k.Z)(this,Y,{writable:!0,value:l(this)}),(0,k.Z)(this,ee,{writable:!0,value:u(this)}),(0,k.Z)(this,te,{writable:!0,value:p(this)}),(0,k.Z)(this,ne,{writable:!0,value:v(this)}),(0,k.Z)(this,ie,{writable:!0,value:e=>{(0,Z.Z)(this,re).emit(e)}}),(0,k.Z)(this,ae,{writable:!0,value:b(this)}),(0,k.Z)(this,se,{writable:!0,value:e=>{this.expandedState=e,(0,Z.Z)(this,oe).emit(e)}})}get menu(){return(0,Z.Z)(this,q)}set menu(e){(0,S.Z)(this,q,e)}get hiddenFixedIcon(){return(0,Z.Z)(this,Y)}set hiddenFixedIcon(e){(0,S.Z)(this,Y,e)}get expandedState(){return(0,Z.Z)(this,ee)}set expandedState(e){(0,S.Z)(this,ee,e)}get position(){return(0,Z.Z)(this,te)}set position(e){(0,S.Z)(this,te,e)}render(){return K().createElement(he,{menu:this.menu,expandedState:this.expandedState,hiddenFixedIcon:this.hiddenFixedIcon,position:this.position,onActualWidthChange:(0,Z.Z)(this,ie),onExpandedStateChange:(0,Z.Z)(this,se)})}}function ce(e){m(this,e)}function ue(){return f(this)}function de(e){x(this,e)}function pe(){return y(this)}function he(e){var{t}=(0,z.useTranslation)(V.NS),{hiddenFixedIcon:n,position:r,onActualWidthChange:i,onExpandedStateChange:a}=e,o=K().useMemo((()=>{var e;return null===(e=(0,B.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["sidebar-show-user-defined-icon"]}),[]),s=(0,O.useMemo)((()=>new F.o(localStorage)),[]),l=(0,B.getHistory)(),c=(0,D.useCurrentApp)(),[u,d]=(0,O.useState)(l.location),{pathname:p,search:h}=u,[v,f]=(0,O.useState)(!s.getItem(R.og)),[m,g]=(0,O.useState)(),[b,y]=(0,O.useState)(),[x,I]=(0,O.useState)(e.expandedState||s.getItem(R.W$)||R.kI.Collapsed),[E,k]=(0,O.useState)(),[N,S]=(0,O.useState)([]),[Z,A]=(0,O.useState)([]),[C,T]=(0,O.useState)([]),_=o?null==E?void 0:E.icon:null==c?void 0:c.menuIcon;(0,O.useEffect)((()=>{var t,n,{selectedKeys:r,openedKeys:i,matchedKeys:a}=(0,W.OZ)(null!==(t=null===(n=e.menu)||void 0===n?void 0:n.menuItems)&&void 0!==t?t:[],p,h,"");k(e.menu),S(r),A(i),T(a)}),[e.menu,p,h]),(0,O.useEffect)((()=>{var e=l.listen((e=>{d(e)}));return e}),[l]);var G=(0,O.useRef)(null);(0,O.useEffect)((()=>{if(G.current){var e=new IntersectionObserver((e=>{e.forEach((e=>{e.target===G.current&&g(!e.isIntersecting)}))}),{threshold:1});return e.observe(G.current),()=>{e.disconnect()}}}),[]),(0,O.useEffect)((()=>{I(e.expandedState||s.getItem(R.W$)||R.kI.Collapsed)}),[e.expandedState]),(0,O.useEffect)((()=>{s.setItem(R.W$,x===R.kI.Expanded?R.kI.Expanded:R.kI.Collapsed)}),[x]);var[U,X]=(0,O.useState)((()=>{var e=parseInt(s.getItem(R.cI),10);return(e<R.K7||Number.isNaN(e))&&(e=R.K7),e}));(0,O.useEffect)((()=>{s.setItem(R.cI,U)}),[U]);var H=(0,O.useRef)(null),$=()=>{I((e=>{var t=e===R.kI.Expanded?R.kI.Expanded:R.kI.Hovered;return t!==e&&(null==a||a(t)),t}))},q=()=>{I((e=>{var t=e===R.kI.Expanded?R.kI.Expanded:R.kI.Collapsed;return t!==e&&(null==a||a(t)),t}))},Y=(0,O.useMemo)((()=>x===R.kI.Expanded?U:R.eR),[x,U]);(0,O.useEffect)((()=>{null==i||i(Y)}),[i,Y]);var ee=e=>"static"===r?x===R.kI.Expanded||e&&x===R.kI.Hovered?U:R.eR:x===R.kI.Collapsed?R.eR:U;return(0,O.useEffect)((()=>{var e=H.current;return null==e||e.addEventListener("mouseenter",$),null==e||e.addEventListener("mouseleave",q),()=>{null==e||e.removeEventListener("mouseenter",$),null==e||e.removeEventListener("mouseleave",q)}}),[]),K().createElement("div",{className:L()("sidebar-container","state-".concat(x),{dragging:b}),style:{width:ee()},ref:H,"data-testid":"side-bar"},K().createElement("div",{className:"inner",style:{width:ee(!0)}},K().createElement("div",{className:"header"},K().createElement("div",{className:"menu-title"},K().createElement("div",{className:L()("menu-title-icon-container")},_?K().createElement(Q,(0,w.Z)({},_,{className:"menu-title-icon"})):K().createElement("span",{className:"menu-title-point"})),K().createElement("div",{className:"menu-title-text",title:null==E?void 0:E.title},null==E?void 0:E.title))),K().createElement("div",{className:L()("content",{"show-shadow":m})},K().createElement(R.w3,{selectedKeys:N,openedKeys:Z,matchedKeys:C,menu:E,expandedState:x}),K().createElement("div",{ref:G})),K().createElement("div",{className:"footer"},!n&&K().createElement(J,{content:x===R.kI.Expanded?v?t(V.K.CLICK_TO_FIX_NAVIGATION,{action:t(V.K.UNPIN_NAVIGATION)}):t(V.K.UNPIN_NAVIGATION):v?t(V.K.CLICK_TO_FIX_NAVIGATION,{action:t(V.K.FIXED_NAVIGATION)}):t(V.K.FIXED_NAVIGATION)},K().createElement("i",{className:"fixed-icon",onClick:()=>{f(!1),s.setItem(R.og,!0),I((e=>{var t=e===R.kI.Expanded?R.kI.Collapsed:R.kI.Expanded;return t!==e&&(null==a||a(t)),t}))}},K().createElement(P.Z,{style:{display:x===R.kI.Expanded?void 0:"none"}}),K().createElement(M.Z,{style:{display:x===R.kI.Expanded?"none":void 0}})))),x===R.kI.Expanded&&K().createElement("span",{className:"resize-line",onMouseDown:e=>{var t,n;y(!0),e.cancelable&&e.preventDefault();var r=null!==(t=null===(n=H.current)||void 0===n?void 0:n.getBoundingClientRect().left)&&void 0!==t?t:0,i=(0,j.Q)((e=>{var t=e.clientX-r,n=t>=R.K7?t:R.K7;X(n)})),a=e=>{y(!1),e.preventDefault(),window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",i,{passive:!0}),window.addEventListener("mouseup",a)}})))}E=le,({e:[o,l,u,p,v,f,m,b,y,x,I],c:[U,r]}=(0,A.Z)(E,[[a,1,"menu"],[s,1,"hiddenFixedIcon"],[c,1,"expandedState"],[d,1,"position"],[h,1,"actualWidthChangeEvent",e=>(0,Z.Z)(e,ne),(e,t)=>(0,S.Z)(e,ne,t)],[g,1,"expandedStateChangeEvent",e=>(0,Z.Z)(e,ae),(e,t)=>(0,S.Z)(e,ae,t)]],[i],0,(e=>se.has((0,N.Z)(e))),T.ReactNextElement)),r()},8671:(e,t,n)=>{"use strict";n.d(t,{Dw:()=>u,K7:()=>f,W$:()=>p,cI:()=>h,eR:()=>m,kI:()=>v,og:()=>d,w3:()=>S});var r=n(7896),i=n(8657),a=n.n(i),o=n(9464),s=n(305),l=new Set(["EO-SIDEBAR-MENU-ITEM","EO-SIDEBAR-MENU-GROUP","EO-SIDEBAR-MENU-SUBMENU"]),c=e=>l.has(e.tagName);function u(e){var t=(0,i.useRef)(null),n=(0,i.useCallback)((()=>{var n;null===(n=t.current)||void 0===n||n.assignedElements().forEach((t=>{c(t)&&(t.menuCollapsed=e)}))}),[e]);return(0,i.useEffect)((()=>{n()}),[e,n]),(0,i.useEffect)((()=>{var e=t.current,r=()=>{n()};return null==e||e.addEventListener("slotchange",r),()=>{null==e||e.removeEventListener("slotchange",r)}}),[n]),[t]}var d="side-bar-has-been-used",p="side-bar-expand-state",h="side-bar-resize-width",v=function(e){return e.Collapsed="collapsed",e.Hovered="hovered",e.Expanded="expanded",e}({}),f=parseInt((0,o.getCssPropertyValue)("--side-bar-width",document.body),10)||220,m=parseInt((0,o.getCssPropertyValue)("--side-bar-collapsed-width",document.body),10)||60,g=(0,i.createContext)({selectedKeys:[],openedKeys:[],matchedKeys:[]}),b=(0,s.wrapBrick)("eo-sidebar-menu"),y=(0,s.wrapBrick)("eo-sidebar-menu-item"),x=(0,s.wrapBrick)("eo-sidebar-menu-group"),I=(0,s.wrapBrick)("eo-sidebar-menu-submenu");function E(e){var{to:t,href:n,target:r,icon:o,text:s,id:l,inSubmenu:c}=e,{selectedKeys:u}=(0,i.useContext)(g);return a().createElement(y,{url:t,href:n,target:r,icon:o,inSubmenu:c,selected:u.includes(l)},s)}function w(e){var{title:t,items:n,id:o,top:s,inSubmenu:l}=e,{matchedKeys:c}=(0,i.useContext)(g),u=o&&c.includes(o);return(null==n?void 0:n.length)>0?a().createElement(x,{selected:!!u,collapsable:!s},a().createElement("span",{slot:"title"},t),e.items.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!1,inSubmenu:l}))))):null}function k(e){var{title:t,icon:n,items:o,id:s}=e,{openedKeys:l,matchedKeys:c}=(0,i.useContext)(g),u=s&&c.includes(s);return(null==o?void 0:o.length)>0?a().createElement(I,{icon:n,collapsed:!l.includes(s),selected:!!u},a().createElement("span",{slot:"title"},t),e.items.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!1,inSubmenu:!0}))))):null}function N(e){return"subMenu"===e.type?a().createElement(k,e):"group"===e.type?a().createElement(w,e):a().createElement(E,e)}function S(e){var t,{menu:n,expandedState:i,selectedKeys:o,openedKeys:s,matchedKeys:l}=e;return a().createElement(g.Provider,{value:{selectedKeys:o||[],openedKeys:s||[],matchedKeys:l||[]}},a().createElement(b,{menuCollapsed:i===v.Collapsed},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!0}))))))}},1082:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),i=n(8657);const a=e=>i.createElement("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M0 0h20v20H0z"}),i.createElement("path",{fill:"#595959",fillRule:"nonzero",d:"m14.599 11.59-1.685-1.606-.348-4.876.93-1.044s.617-.93-.62-1.045L7.323 3s-.85.657-.097 1.296l.754.755-.385 4.76-1.49 1.683s-.388.774.328 1.065l2.961-.02.668 3.887H6.388V17h7.832v-.574h-3.743l.6-3.946 3.154.097s.812-.464.368-.986"})))},5162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),i=n(8657);const a=e=>i.createElement("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M0 0h20v20H0z"}),i.createElement("path",{fill:"#595959",fillRule:"nonzero",d:"m13.06 3.765 3.22 3.08c.42.28.42.84.14 1.26-.42.42-.98.42-1.26.14l-.14-.14-.28-.28-3.22 4.62.98.98c.28.42.28.98-.14 1.26-.28.28-.7.28-1.12 0l-5.88-6.02c-.28-.42-.28-.84 0-1.26.28-.28.84-.28 1.12 0l.98.98 4.62-3.22-.14-.14c-.42-.42-.42-.84-.14-1.26.28-.28.84-.42 1.26 0m-4.76 9.1-1.12-1.12c-.98 1.12-2.52 2.8-2.8 3.22-.42.42-.7.98-.98 1.54.7-.14 1.26-.42 1.68-.84.42-.28 2.1-1.82 3.22-2.8"})))},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4487:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9601),i=n.n(r),a=n(2609),o=n.n(a)()(i());o.push([e.id,':host{display:block}:host([hidden]){display:none}:host([position="static"]){height:100%}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar-container{position:relative;z-index:999;height:100%}.sidebar-container,\n.inner{transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}:host(:not([position="static"])) .sidebar-container{position:fixed;left:0;top:var(--app-bar-height);height:calc(100vh - var(--app-bar-height))}.inner{position:absolute;left:0;height:100%;display:flex;flex-direction:column;background-color:var(--left-menu-bg);border-right:1px solid var(--left-sidebar-border-right)}.inner:hover{background-color:var(--left-menu-hover-bg)}.inner::before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;background:var(--sidebar-bg)}.header{padding:0 12px;margin-top:14px;height:52px;flex-shrink:0}.menu-title{height:100%;display:flex;align-items:center;color:var(--left-sidebar-large-title-color)}.menu-title-icon-container{flex-shrink:0;display:flex;justify-content:center;align-items:center;width:20px;height:20px;font-size:20px;line-height:0;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-title-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.menu-title-point{width:4px;height:4px;background:var(--antd-text-color);border-radius:50%}.menu-title-text{font-size:16px;font-weight:var(--font-weight-500);color:var(--left-sidebar-large-title-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.state-collapsed .menu-title{padding:0 calc(50% - 10px)}.state-hovered .menu-title,\n.state-expanded .menu-title{padding:0 12px}.state-collapsed .menu-title-icon-container{margin-right:12px}.state-hovered .menu-title-icon-container,\n.state-expanded .menu-title-icon-container{margin-right:0;width:0;opacity:0}.content{padding:0 12px;flex:1;overflow-y:auto;scrollbar-width:none}.content::-webkit-scrollbar{width:0;background:transparent}.content.show-shadow{box-shadow:0 -17px 10px -16px rgb(0 0 0/8%) inset}.footer{height:60px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end}.fixed-icon{display:flex;justify-content:center;align-items:center;width:20px;height:20px;margin-right:8px;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.fixed-icon > svg{width:100%;height:100%}.fixed-icon:hover > svg path[fill]{fill:var(--color-brand)}.state-collapsed .fixed-icon{visibility:hidden;opacity:0}.state-hovered .fixed-icon,\n.state-expanded .fixed-icon{visibility:visible;opacity:1}.state-hovered .inner{box-shadow:var(--left-sidebar-shadow)}.resize-line{position:absolute;right:-2px;height:100%;width:2px;cursor:col-resize}.resize-line:hover,\n.resize-line:active{background-color:rgba(26,122,255,1)}.dragging,\n.dragging .inner{transition:none}',""]);const s=o.toString()},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},5066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6522),i=n(1815);function a(e,t,n){"symbol"==(0,r.Z)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var o=n(5850);function s(e,t,n,s,l,c){function u(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function d(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function p(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function h(e,t,n,i,o,s,l,c,d,h,v,f,m){function g(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var b,y,x=t[0],I=t[3],E=!c;if(!E){n||Array.isArray(x)||(x=[x]);var w={},k=[],N=3===o?"get":4===o||f?"set":"value";h?(v||f?w={get:a((function(){return I(this)}),i,"get"),set:function(e){t[4](this,e)}}:w[N]=I,v||a(w[N],i,2===o?"":N)):v||(w=Object.getOwnPropertyDescriptor(e,i))}for(var S=x.length-1;S>=0;S-=n?2:1){var Z=x[S],A=n?x[S-1]:void 0,O={},K={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:s,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");p(t,"An initializer","be",!0),l.push(t)}.bind(null,O)};try{if(E)y=Z.call(A,e,K);else{var C,T;K.static=d,K.private=h,h||!v&&2!==o?2===o?C=function(e){return g(e),w.value}:((o<2||3===o)&&(C=u(w,"get",h&&g)),(o<2||4===o)&&(T=u(w,"set",h&&g))):(C=function(e){return e[i]},v&&(T=function(e,t){e[i]=t}));var _=K.access={has:h?m.bind():function(e){return i in e}};if(C&&(_.get=C),T&&(_.set=T),y=Z.call(A,f?{get:w.get,set:w.set}:w[N],K),f){if("object"==(0,r.Z)(y)&&y)(b=p(y.get,"accessor.get"))&&(w.get=b),(b=p(y.set,"accessor.set"))&&(w.set=b),(b=p(y.init,"accessor.init"))&&k.push(b);else if(void 0!==y)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else p(y,(v?"field":"method")+" decorators","return")&&(v?k.push(y):w[N]=y)}}finally{O.v=!0}}return(v||f)&&c.push((function(e,t){for(var n=k.length-1;n>=0;n--)t=k[n].call(e,t);return t})),v||E||(h?f?c.push(u(w,"get"),u(w,"set")):c.push(2===o?w[N]:u.call.bind(w[N])):Object.defineProperty(e,i,w)),y}function v(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var f=c[Symbol.metadata||Symbol.for("Symbol.metadata")];var m=Object.create(null==f?null:f),g=function(e,t,n,r){var a,s,l=[],c=function(t){return(0,i.Z)(t)===e},u=new Map;function p(e){e&&l.push(d.bind(null,e))}for(var v=0;v<t.length;v++){var f=t[v];if(Array.isArray(f)){var m=f[1],g=f[2],b=f.length>3,y=16&m,x=!!(8&m),I=0==(m&=7),E=g+"/"+x;if(!I&&!b){var w=u.get(E);if(!0===w||3===w&&4!==m||4===w&&3!==m)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);u.set(E,!(m>2)||m)}h(x?e:e.prototype,f,y,b?"#"+g:(0,o.Z)(g),m,r,x?s=s||[]:a=a||[],l,x,b,I,1===m,x&&b?c:n)}}return p(a),p(s),l}(e,t,l,m);return n.length||v(e,m),{e:g,get c(){var t=[];return n.length&&[v(p(h(e,[n],s,e.name,5,m,t),"class decorators","return")||e,m),d.bind(null,t,e)]}}}},1815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.Z)(e):"null"));return e}},5863:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},6522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},2890:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});class r{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=e,this.prefix=t}setItem(e,t){this.storage.setItem(this.prefix+e,JSON.stringify(t))}getItem(e){return JSON.parse(this.storage.getItem(this.prefix+e))}removeItem(e){return this.storage.removeItem(this.prefix+e)}clear(){return this.storage.clear()}}},4655:(e,t,n)=>{"use strict";function r(e){var t,n=()=>cancelAnimationFrame(t),r=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t&&n(),t=requestAnimationFrame((()=>{e(...i)}))};return r.cancel=n,r}n.d(t,{Q:()=>r})},7993:(e,t,n)=>{"use strict";n.d(t,{OZ:()=>s,cl:()=>o,ty:()=>a});var r=n(8353),i=n(9464);function a(e){return"group"===e.type}function o(e,t){return Boolean("subMenu"===e.type||t&&"group"===e.type)}function s(e,t,n,c){var u=[],d=[],p=[],h=0;return e.forEach((e=>{if(e.key=""===c?"".concat(h):"".concat(c,".").concat(h),a(e)||o(e)){var v=s(e.items,t,n,e.key);u.push(...v.selectedKeys),(v.selectedKeys.length||e.defaultExpanded)&&d.push(e.key),d.push(...v.openedKeys),p.push(...v.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var a="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),o=a.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),s=!!(0,i.matchPath)(t,{path:o,exact:e.exact});if(!s&&Array.isArray(e.activeIncludes))for(var c of e.activeIncludes){var u,d=void 0,p=c.includes("?");if(p&&(d=(0,r.parsePath)(c)),(s=!!(0,i.matchPath)(t,{path:p?d.pathname:c,exact:!0}))&&null!==(u=d)&&void 0!==u&&u.search&&(s=l(n,d.search)),s)break}if(s&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(s=!(0,i.matchPath)(t,{path:h,exact:!0})))break;return s&&e.activeMatchSearch&&(s=l(n,a.search)),s}(e,t,n)){u.push(String(e.key));for(var f=e.key.split("."),m=0;m<f.length;m++)p.push(f.slice(0,m+1).join("."))}h+=1})),u.length&&""!==c&&d.push(c),{selectedKeys:u,openedKeys:d,matchedKeys:p}}function l(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[i,a]of r.entries())if(n.get(i)!==a)return!1;return!0}}}]);
|
|
3
|
-
//# sourceMappingURL=eo-sidebar.
|
|
1
|
+
/*! For license information please see eo-sidebar.004dc2cd.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1612,5850,5628],{8196:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,NS:()=>i,k:()=>a});var r=function(e){return e.CLICK_TO_FIX_NAVIGATION="CLICK_TO_FIX_NAVIGATION",e.UNPIN_NAVIGATION="UNPIN_NAVIGATION",e.FIXED_NAVIGATION="FIXED_NAVIGATION",e}({}),i="bricks/nav/eo-sidebar",a={en:{UNPIN_NAVIGATION:"Unpin navigation",FIXED_NAVIGATION:"Fixed navigation",CLICK_TO_FIX_NAVIGATION:"Click to {{action}}"},zh:{UNPIN_NAVIGATION:"取消固定",FIXED_NAVIGATION:"固定导航",CLICK_TO_FIX_NAVIGATION:"点击{{action}}"}}},9886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EoSidebar:()=>U,EoSidebarComponent:()=>he});var r,i,a,o,s,l,c,u,d,p,h,v,f,m,g,b,y,x,I,E,w=n(7896),k=n(3395),N=n(1815),S=n(381),Z=n(687),A=n(5066),O=n(8657),K=n.n(O),C=n(5727),T=n(305),_=(n(2006),n(4487)),P=n(1082),M=n(5162),j=n(4655),F=n(2890),R=n(8671),z=n(1487),V=n(8196),G=n(2779),L=n.n(G),W=n(7993),B=n(9464),D=n(1150);(0,z.initializeReactI18n)(V.NS,V.k);var U,{defineElement:X,property:H,event:$}=(0,C.createDecorators)(),J=(0,T.wrapBrick)("eo-tooltip"),Q=(0,T.wrapBrick)("eo-icon");i=X("eo-sidebar",{styleTexts:[_.Z]}),a=H({attribute:!1}),s=H({type:Boolean}),c=H(),d=H(),h=$({type:"actual.width.change"}),g=$({type:"expanded.state.change"});var q=new WeakMap,Y=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,ae=new WeakMap,oe=new WeakMap,se=new WeakMap;class le extends T.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,oe,{get:pe,set:de}),(0,k.Z)(this,re,{get:ue,set:ce}),(0,k.Z)(this,q,{writable:!0,value:(I(this),o(this))}),(0,k.Z)(this,Y,{writable:!0,value:l(this)}),(0,k.Z)(this,ee,{writable:!0,value:u(this)}),(0,k.Z)(this,te,{writable:!0,value:p(this)}),(0,k.Z)(this,ne,{writable:!0,value:v(this)}),(0,k.Z)(this,ie,{writable:!0,value:e=>{(0,Z.Z)(this,re).emit(e)}}),(0,k.Z)(this,ae,{writable:!0,value:b(this)}),(0,k.Z)(this,se,{writable:!0,value:e=>{this.expandedState=e,(0,Z.Z)(this,oe).emit(e)}})}get menu(){return(0,Z.Z)(this,q)}set menu(e){(0,S.Z)(this,q,e)}get hiddenFixedIcon(){return(0,Z.Z)(this,Y)}set hiddenFixedIcon(e){(0,S.Z)(this,Y,e)}get expandedState(){return(0,Z.Z)(this,ee)}set expandedState(e){(0,S.Z)(this,ee,e)}get position(){return(0,Z.Z)(this,te)}set position(e){(0,S.Z)(this,te,e)}render(){return K().createElement(he,{menu:this.menu,expandedState:this.expandedState,hiddenFixedIcon:this.hiddenFixedIcon,position:this.position,onActualWidthChange:(0,Z.Z)(this,ie),onExpandedStateChange:(0,Z.Z)(this,se)})}}function ce(e){m(this,e)}function ue(){return f(this)}function de(e){x(this,e)}function pe(){return y(this)}function he(e){var{t}=(0,z.useTranslation)(V.NS),{hiddenFixedIcon:n,position:r,onActualWidthChange:i,onExpandedStateChange:a}=e,o=K().useMemo((()=>{var e;return null===(e=(0,B.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["sidebar-show-user-defined-icon"]}),[]),s=(0,O.useMemo)((()=>new F.o(localStorage)),[]),l=(0,B.getHistory)(),c=(0,D.useCurrentApp)(),[u,d]=(0,O.useState)(l.location),{pathname:p,search:h}=u,[v,f]=(0,O.useState)(!s.getItem(R.og)),[m,g]=(0,O.useState)(),[b,y]=(0,O.useState)(),[x,I]=(0,O.useState)(e.expandedState||s.getItem(R.W$)||R.kI.Collapsed),[E,k]=(0,O.useState)(),[N,S]=(0,O.useState)([]),[Z,A]=(0,O.useState)([]),[C,T]=(0,O.useState)([]),_=o?null==E?void 0:E.icon:null==c?void 0:c.menuIcon;(0,O.useEffect)((()=>{var t,n,{selectedKeys:r,openedKeys:i,matchedKeys:a}=(0,W.OZ)(null!==(t=null===(n=e.menu)||void 0===n?void 0:n.menuItems)&&void 0!==t?t:[],p,h,"");k(e.menu),S(r),A(i),T(a)}),[e.menu,p,h]),(0,O.useEffect)((()=>{var e=l.listen((e=>{d(e)}));return e}),[l]);var G=(0,O.useRef)(null);(0,O.useEffect)((()=>{if(G.current){var e=new IntersectionObserver((e=>{e.forEach((e=>{e.target===G.current&&g(!e.isIntersecting)}))}),{threshold:1});return e.observe(G.current),()=>{e.disconnect()}}}),[]),(0,O.useEffect)((()=>{I(e.expandedState||s.getItem(R.W$)||R.kI.Collapsed)}),[e.expandedState]),(0,O.useEffect)((()=>{s.setItem(R.W$,x===R.kI.Expanded?R.kI.Expanded:R.kI.Collapsed)}),[x]);var[U,X]=(0,O.useState)((()=>{var e=parseInt(s.getItem(R.cI),10);return(e<R.K7||Number.isNaN(e))&&(e=R.K7),e}));(0,O.useEffect)((()=>{s.setItem(R.cI,U)}),[U]);var H=(0,O.useRef)(null),$=()=>{I((e=>{var t=e===R.kI.Expanded?R.kI.Expanded:R.kI.Hovered;return t!==e&&(null==a||a(t)),t}))},q=()=>{I((e=>{var t=e===R.kI.Expanded?R.kI.Expanded:R.kI.Collapsed;return t!==e&&(null==a||a(t)),t}))},Y=(0,O.useMemo)((()=>x===R.kI.Expanded?U:R.eR),[x,U]);(0,O.useEffect)((()=>{null==i||i(Y)}),[i,Y]);var ee=e=>"static"===r?x===R.kI.Expanded||e&&x===R.kI.Hovered?U:R.eR:x===R.kI.Collapsed?R.eR:U;return(0,O.useEffect)((()=>{var e=H.current;return null==e||e.addEventListener("mouseenter",$),null==e||e.addEventListener("mouseleave",q),()=>{null==e||e.removeEventListener("mouseenter",$),null==e||e.removeEventListener("mouseleave",q)}}),[]),K().createElement("div",{className:L()("sidebar-container","state-".concat(x),{dragging:b}),style:{width:ee()},ref:H,"data-testid":"side-bar"},K().createElement("div",{className:"inner",style:{width:ee(!0)}},K().createElement("div",{className:"header"},K().createElement("div",{className:"menu-title"},K().createElement("div",{className:L()("menu-title-icon-container")},_?K().createElement(Q,(0,w.Z)({},_,{className:"menu-title-icon"})):K().createElement("span",{className:"menu-title-point"})),K().createElement("div",{className:"menu-title-text",title:null==E?void 0:E.title},null==E?void 0:E.title))),K().createElement("div",{className:L()("content",{"show-shadow":m})},K().createElement(R.w3,{selectedKeys:N,openedKeys:Z,matchedKeys:C,menu:E,expandedState:x}),K().createElement("div",{ref:G})),K().createElement("div",{className:"footer"},!n&&K().createElement(J,{content:x===R.kI.Expanded?v?t(V.K.CLICK_TO_FIX_NAVIGATION,{action:t(V.K.UNPIN_NAVIGATION)}):t(V.K.UNPIN_NAVIGATION):v?t(V.K.CLICK_TO_FIX_NAVIGATION,{action:t(V.K.FIXED_NAVIGATION)}):t(V.K.FIXED_NAVIGATION)},K().createElement("i",{className:"fixed-icon",onClick:()=>{f(!1),s.setItem(R.og,!0),I((e=>{var t=e===R.kI.Expanded?R.kI.Collapsed:R.kI.Expanded;return t!==e&&(null==a||a(t)),t}))}},K().createElement(P.Z,{style:{display:x===R.kI.Expanded?void 0:"none"}}),K().createElement(M.Z,{style:{display:x===R.kI.Expanded?"none":void 0}})))),x===R.kI.Expanded&&K().createElement("span",{className:"resize-line",onMouseDown:e=>{var t,n;y(!0),e.cancelable&&e.preventDefault();var r=null!==(t=null===(n=H.current)||void 0===n?void 0:n.getBoundingClientRect().left)&&void 0!==t?t:0,i=(0,j.Q)((e=>{var t=e.clientX-r,n=t>=R.K7?t:R.K7;X(n)})),a=e=>{y(!1),e.preventDefault(),window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",i,{passive:!0}),window.addEventListener("mouseup",a)}})))}E=le,({e:[o,l,u,p,v,f,m,b,y,x,I],c:[U,r]}=(0,A.Z)(E,[[a,1,"menu"],[s,1,"hiddenFixedIcon"],[c,1,"expandedState"],[d,1,"position"],[h,1,"actualWidthChangeEvent",e=>(0,Z.Z)(e,ne),(e,t)=>(0,S.Z)(e,ne,t)],[g,1,"expandedStateChangeEvent",e=>(0,Z.Z)(e,ae),(e,t)=>(0,S.Z)(e,ae,t)]],[i],0,(e=>se.has((0,N.Z)(e))),T.ReactNextElement)),r()},8671:(e,t,n)=>{"use strict";n.d(t,{Dw:()=>u,K7:()=>f,W$:()=>p,cI:()=>h,eR:()=>m,kI:()=>v,og:()=>d,w3:()=>S});var r=n(7896),i=n(8657),a=n.n(i),o=n(9464),s=n(305),l=new Set(["EO-SIDEBAR-MENU-ITEM","EO-SIDEBAR-MENU-GROUP","EO-SIDEBAR-MENU-SUBMENU"]),c=e=>l.has(e.tagName);function u(e){var t=(0,i.useRef)(null),n=(0,i.useCallback)((()=>{var n;null===(n=t.current)||void 0===n||n.assignedElements().forEach((t=>{c(t)&&(t.menuCollapsed=e)}))}),[e]);return(0,i.useEffect)((()=>{n()}),[e,n]),(0,i.useEffect)((()=>{var e=t.current,r=()=>{n()};return null==e||e.addEventListener("slotchange",r),()=>{null==e||e.removeEventListener("slotchange",r)}}),[n]),[t]}var d="side-bar-has-been-used",p="side-bar-expand-state",h="side-bar-resize-width",v=function(e){return e.Collapsed="collapsed",e.Hovered="hovered",e.Expanded="expanded",e}({}),f=parseInt((0,o.getCssPropertyValue)("--side-bar-width",document.body),10)||220,m=parseInt((0,o.getCssPropertyValue)("--side-bar-collapsed-width",document.body),10)||60,g=(0,i.createContext)({selectedKeys:[],openedKeys:[],matchedKeys:[]}),b=(0,s.wrapBrick)("eo-sidebar-menu"),y=(0,s.wrapBrick)("eo-sidebar-menu-item"),x=(0,s.wrapBrick)("eo-sidebar-menu-group"),I=(0,s.wrapBrick)("eo-sidebar-menu-submenu");function E(e){var{to:t,href:n,target:r,icon:o,text:s,id:l,inSubmenu:c}=e,{selectedKeys:u}=(0,i.useContext)(g);return a().createElement(y,{url:t,href:n,target:r,icon:o,inSubmenu:c,selected:u.includes(l)},s)}function w(e){var{title:t,items:n,id:o,top:s,inSubmenu:l}=e,{matchedKeys:c}=(0,i.useContext)(g),u=o&&c.includes(o);return(null==n?void 0:n.length)>0?a().createElement(x,{selected:!!u,collapsable:!s},a().createElement("span",{slot:"title"},t),e.items.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!1,inSubmenu:l}))))):null}function k(e){var{title:t,icon:n,items:o,id:s}=e,{openedKeys:l,matchedKeys:c}=(0,i.useContext)(g),u=s&&c.includes(s);return(null==o?void 0:o.length)>0?a().createElement(I,{icon:n,collapsed:!l.includes(s),selected:!!u},a().createElement("span",{slot:"title"},t),e.items.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!1,inSubmenu:!0}))))):null}function N(e){return"subMenu"===e.type?a().createElement(k,e):"group"===e.type?a().createElement(w,e):a().createElement(E,e)}function S(e){var t,{menu:n,expandedState:i,selectedKeys:o,openedKeys:s,matchedKeys:l}=e;return a().createElement(g.Provider,{value:{selectedKeys:o||[],openedKeys:s||[],matchedKeys:l||[]}},a().createElement(b,{menuCollapsed:i===v.Collapsed},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map((e=>a().createElement(N,(0,r.Z)({key:e.key},e,{id:e.key,top:!0}))))))}},1082:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),i=n(8657);const a=e=>i.createElement("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M0 0h20v20H0z"}),i.createElement("path",{fill:"#595959",fillRule:"nonzero",d:"m14.599 11.59-1.685-1.606-.348-4.876.93-1.044s.617-.93-.62-1.045L7.323 3s-.85.657-.097 1.296l.754.755-.385 4.76-1.49 1.683s-.388.774.328 1.065l2.961-.02.668 3.887H6.388V17h7.832v-.574h-3.743l.6-3.946 3.154.097s.812-.464.368-.986"})))},5162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),i=n(8657);const a=e=>i.createElement("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M0 0h20v20H0z"}),i.createElement("path",{fill:"#595959",fillRule:"nonzero",d:"m13.06 3.765 3.22 3.08c.42.28.42.84.14 1.26-.42.42-.98.42-1.26.14l-.14-.14-.28-.28-3.22 4.62.98.98c.28.42.28.98-.14 1.26-.28.28-.7.28-1.12 0l-5.88-6.02c-.28-.42-.28-.84 0-1.26.28-.28.84-.28 1.12 0l.98.98 4.62-3.22-.14-.14c-.42-.42-.42-.84-.14-1.26.28-.28.84-.42 1.26 0m-4.76 9.1-1.12-1.12c-.98 1.12-2.52 2.8-2.8 3.22-.42.42-.7.98-.98 1.54.7-.14 1.26-.42 1.68-.84.42-.28 2.1-1.82 3.22-2.8"})))},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4487:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9601),i=n.n(r),a=n(2609),o=n.n(a)()(i());o.push([e.id,':host{display:block}:host([hidden]){display:none}:host([position="static"]){height:100%}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar-container{position:relative;z-index:999;height:100%}.sidebar-container,\n.inner{transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}:host(:not([position="static"])) .sidebar-container{position:fixed;left:0;top:var(--app-bar-height);height:calc(100vh - var(--app-bar-height))}.inner{position:absolute;left:0;height:100%;display:flex;flex-direction:column;background-color:var(--left-menu-bg);border-right:1px solid var(--left-sidebar-border-right)}.inner:hover{background-color:var(--left-menu-hover-bg)}.inner::before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;background:var(--sidebar-bg)}.header{padding:0 12px;margin-top:14px;height:52px;flex-shrink:0}.menu-title{height:100%;display:flex;align-items:center;color:var(--left-sidebar-large-title-color)}.menu-title-icon-container{flex-shrink:0;display:flex;justify-content:center;align-items:center;width:20px;height:20px;font-size:20px;line-height:0;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-title-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.menu-title-point{width:4px;height:4px;background:var(--antd-text-color);border-radius:50%}.menu-title-text{font-size:16px;font-weight:var(--font-weight-500);color:var(--left-sidebar-large-title-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.state-collapsed .menu-title{padding:0 calc(50% - 10px)}.state-hovered .menu-title,\n.state-expanded .menu-title{padding:0 12px}.state-collapsed .menu-title-icon-container{margin-right:12px}.state-hovered .menu-title-icon-container,\n.state-expanded .menu-title-icon-container{margin-right:0;width:0;opacity:0}.content{padding:0 12px;flex:1;overflow-y:auto;scrollbar-width:none}.content::-webkit-scrollbar{width:0;background:transparent}.content.show-shadow{box-shadow:0 -17px 10px -16px rgb(0 0 0/8%) inset}.footer{height:60px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end}.fixed-icon{display:flex;justify-content:center;align-items:center;width:20px;height:20px;margin-right:8px;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.fixed-icon > svg{width:100%;height:100%}.fixed-icon:hover > svg path[fill]{fill:var(--color-brand)}.state-collapsed .fixed-icon{visibility:hidden;opacity:0}.state-hovered .fixed-icon,\n.state-expanded .fixed-icon{visibility:visible;opacity:1}.state-hovered .inner{box-shadow:var(--left-sidebar-shadow)}.resize-line{position:absolute;right:-2px;height:100%;width:2px;cursor:col-resize}.resize-line:hover,\n.resize-line:active{background-color:rgba(26,122,255,1)}.dragging,\n.dragging .inner{transition:none}',""]);const s=o.toString()},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},5066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6522),i=n(1815);function a(e,t,n){"symbol"==(0,r.Z)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var o=n(5850);function s(e,t,n,s,l,c){function u(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function d(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function p(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function h(e,t,n,i,o,s,l,c,d,h,v,f,m){function g(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var b,y,x=t[0],I=t[3],E=!c;if(!E){n||Array.isArray(x)||(x=[x]);var w={},k=[],N=3===o?"get":4===o||f?"set":"value";h?(v||f?w={get:a((function(){return I(this)}),i,"get"),set:function(e){t[4](this,e)}}:w[N]=I,v||a(w[N],i,2===o?"":N)):v||(w=Object.getOwnPropertyDescriptor(e,i))}for(var S=x.length-1;S>=0;S-=n?2:1){var Z=x[S],A=n?x[S-1]:void 0,O={},K={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:s,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");p(t,"An initializer","be",!0),l.push(t)}.bind(null,O)};try{if(E)y=Z.call(A,e,K);else{var C,T;K.static=d,K.private=h,h||!v&&2!==o?2===o?C=function(e){return g(e),w.value}:((o<2||3===o)&&(C=u(w,"get",h&&g)),(o<2||4===o)&&(T=u(w,"set",h&&g))):(C=function(e){return e[i]},v&&(T=function(e,t){e[i]=t}));var _=K.access={has:h?m.bind():function(e){return i in e}};if(C&&(_.get=C),T&&(_.set=T),y=Z.call(A,f?{get:w.get,set:w.set}:w[N],K),f){if("object"==(0,r.Z)(y)&&y)(b=p(y.get,"accessor.get"))&&(w.get=b),(b=p(y.set,"accessor.set"))&&(w.set=b),(b=p(y.init,"accessor.init"))&&k.push(b);else if(void 0!==y)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else p(y,(v?"field":"method")+" decorators","return")&&(v?k.push(y):w[N]=y)}}finally{O.v=!0}}return(v||f)&&c.push((function(e,t){for(var n=k.length-1;n>=0;n--)t=k[n].call(e,t);return t})),v||E||(h?f?c.push(u(w,"get"),u(w,"set")):c.push(2===o?w[N]:u.call.bind(w[N])):Object.defineProperty(e,i,w)),y}function v(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var f=c[Symbol.metadata||Symbol.for("Symbol.metadata")];var m=Object.create(null==f?null:f),g=function(e,t,n,r){var a,s,l=[],c=function(t){return(0,i.Z)(t)===e},u=new Map;function p(e){e&&l.push(d.bind(null,e))}for(var v=0;v<t.length;v++){var f=t[v];if(Array.isArray(f)){var m=f[1],g=f[2],b=f.length>3,y=16&m,x=!!(8&m),I=0==(m&=7),E=g+"/"+x;if(!I&&!b){var w=u.get(E);if(!0===w||3===w&&4!==m||4===w&&3!==m)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);u.set(E,!(m>2)||m)}h(x?e:e.prototype,f,y,b?"#"+g:(0,o.Z)(g),m,r,x?s=s||[]:a=a||[],l,x,b,I,1===m,x&&b?c:n)}}return p(a),p(s),l}(e,t,l,m);return n.length||v(e,m),{e:g,get c(){var t=[];return n.length&&[v(p(h(e,[n],s,e.name,5,m,t),"class decorators","return")||e,m),d.bind(null,t,e)]}}}},1815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.Z)(e):"null"));return e}},5863:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6522);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},6522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},2890:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});class r{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=e,this.prefix=t}setItem(e,t){this.storage.setItem(this.prefix+e,JSON.stringify(t))}getItem(e){return JSON.parse(this.storage.getItem(this.prefix+e))}removeItem(e){return this.storage.removeItem(this.prefix+e)}clear(){return this.storage.clear()}}},4655:(e,t,n)=>{"use strict";function r(e){var t,n=()=>cancelAnimationFrame(t),r=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t&&n(),t=requestAnimationFrame((()=>{e(...i)}))};return r.cancel=n,r}n.d(t,{Q:()=>r})},7993:(e,t,n)=>{"use strict";n.d(t,{OZ:()=>s,cl:()=>o,ty:()=>a});var r=n(8353),i=n(9464);function a(e){return"group"===e.type}function o(e,t){return Boolean("subMenu"===e.type||t&&"group"===e.type)}function s(e,t,n,c){var u=[],d=[],p=[],h=0;return e.forEach((e=>{if(e.key=""===c?"".concat(h):"".concat(c,".").concat(h),a(e)||o(e)){var v=s(e.items,t,n,e.key);u.push(...v.selectedKeys),(v.selectedKeys.length||e.defaultExpanded)&&d.push(e.key),d.push(...v.openedKeys),p.push(...v.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var a="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),o=a.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),s=!!(0,i.matchPath)(t,{path:o,exact:e.exact});if(s&&e.activeMatchSearch&&(s=l(n,a.search)),!s&&Array.isArray(e.activeIncludes))for(var c of e.activeIncludes){var u,d=void 0,p=c.includes("?");if(p&&(d=(0,r.parsePath)(c)),(s=!!(0,i.matchPath)(t,{path:p?d.pathname:c,exact:!0}))&&null!==(u=d)&&void 0!==u&&u.search&&(s=l(n,d.search)),s)break}if(s&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(s=!(0,i.matchPath)(t,{path:h,exact:!0})))break;return s}(e,t,n)){u.push(String(e.key));for(var f=e.key.split("."),m=0;m<f.length;m++)p.push(f.slice(0,m+1).join("."))}h+=1})),u.length&&""!==c&&d.push(c),{selectedKeys:u,openedKeys:d,matchedKeys:p}}function l(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[i,a]of r.entries()){var o;if((null!==(o=n.get(i))&&void 0!==o?o:"")!==a)return!1}return!0}}}]);
|
|
3
|
+
//# sourceMappingURL=eo-sidebar.004dc2cd.js.map
|