@next-bricks/nav 1.21.10 → 1.22.1
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 +30 -30
- package/dist/chunks/4433.5c4fbcc4.js +2 -0
- package/dist/chunks/4433.5c4fbcc4.js.map +1 -0
- package/dist/chunks/launchpad-config.75391f5e.js +3 -0
- package/dist/chunks/launchpad-config.75391f5e.js.map +1 -0
- package/dist/chunks/{main.30f98088.js → main.9d7b3e70.js} +2 -2
- package/dist/chunks/{main.30f98088.js.map → main.9d7b3e70.js.map} +1 -1
- package/dist/chunks/{query-search.0cbe0898.js → query-search.ea67427a.js} +3 -3
- package/dist/chunks/query-search.ea67427a.js.map +1 -0
- package/dist/examples.json +8 -8
- package/dist/{index.96b262e7.js → index.6660ce64.js} +2 -2
- package/dist/{index.96b262e7.js.map → index.6660ce64.js.map} +1 -1
- package/dist/manifest.json +92 -86
- package/dist/types.json +126 -114
- package/dist-types/launchpad-config/MenuGroup.d.ts +10 -2
- package/dist-types/launchpad-config/index.d.ts +5 -10
- package/package.json +2 -2
- package/dist/chunks/4433.70c39ba9.js +0 -2
- package/dist/chunks/4433.70c39ba9.js.map +0 -1
- package/dist/chunks/launchpad-config.ee0e60b5.js +0 -3
- package/dist/chunks/launchpad-config.ee0e60b5.js.map +0 -1
- package/dist/chunks/query-search.0cbe0898.js.map +0 -1
- /package/dist/chunks/{launchpad-config.ee0e60b5.js.LICENSE.txt → launchpad-config.75391f5e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{query-search.0cbe0898.js.LICENSE.txt → query-search.ea67427a.js.LICENSE.txt} +0 -0
package/dist/bricks.json
CHANGED
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
],
|
|
13
13
|
"elements": [
|
|
14
14
|
"eo-nav-menu",
|
|
15
|
+
"eo-launchpad-button-v2",
|
|
16
|
+
"eo-launchpad-button",
|
|
15
17
|
"eo-launchpad-quick-access",
|
|
16
18
|
"eo-search-launchpad",
|
|
17
19
|
"eo-launchpad-recent-visits",
|
|
18
|
-
"eo-launchpad-button-v2",
|
|
19
|
-
"eo-launchpad-button",
|
|
20
20
|
"eo-app-bar-wrapper",
|
|
21
|
-
"eo-frame-breadcrumb",
|
|
22
|
-
"eo-sidebar-menu-item",
|
|
23
21
|
"eo-sidebar-menu-group",
|
|
22
|
+
"eo-sidebar-menu-item",
|
|
24
23
|
"eo-sidebar-menu-submenu",
|
|
25
24
|
"eo-sidebar-menu",
|
|
25
|
+
"eo-frame-breadcrumb",
|
|
26
26
|
"eo-sidebar",
|
|
27
|
-
"eo-sidebar-sub-menu",
|
|
28
27
|
"eo-directory",
|
|
28
|
+
"eo-sidebar-sub-menu",
|
|
29
29
|
"eo-directory-tree",
|
|
30
30
|
"eo-directory-tree-leaf",
|
|
31
31
|
"eo-directory-tree-internal-node"
|
|
@@ -52,49 +52,44 @@
|
|
|
52
52
|
"eo-icon",
|
|
53
53
|
"eo-link"
|
|
54
54
|
],
|
|
55
|
-
"eo-launchpad-
|
|
55
|
+
"eo-launchpad-button-v2": [
|
|
56
|
+
"basic.lock-body-scroll",
|
|
56
57
|
"eo-icon",
|
|
57
58
|
"eo-link",
|
|
58
59
|
"basic.show-dialog",
|
|
59
60
|
"basic.show-notification"
|
|
60
61
|
],
|
|
61
|
-
"eo-
|
|
62
|
+
"eo-launchpad-button": [
|
|
62
63
|
"eo-icon",
|
|
63
|
-
"eo-link"
|
|
64
|
-
"basic.show-dialog",
|
|
65
|
-
"basic.show-notification"
|
|
64
|
+
"eo-link"
|
|
66
65
|
],
|
|
67
|
-
"eo-launchpad-
|
|
68
|
-
"eo-link",
|
|
66
|
+
"eo-launchpad-quick-access": [
|
|
69
67
|
"eo-icon",
|
|
68
|
+
"eo-link",
|
|
70
69
|
"basic.show-dialog",
|
|
71
70
|
"basic.show-notification"
|
|
72
71
|
],
|
|
73
|
-
"eo-launchpad
|
|
74
|
-
"basic.lock-body-scroll",
|
|
72
|
+
"eo-search-launchpad": [
|
|
75
73
|
"eo-icon",
|
|
76
74
|
"eo-link",
|
|
77
75
|
"basic.show-dialog",
|
|
78
76
|
"basic.show-notification"
|
|
79
77
|
],
|
|
80
|
-
"eo-launchpad-
|
|
81
|
-
"eo-icon",
|
|
82
|
-
"eo-link"
|
|
83
|
-
],
|
|
84
|
-
"eo-frame-breadcrumb": [
|
|
85
|
-
"eo-breadcrumb",
|
|
86
|
-
"eo-breadcrumb-item",
|
|
87
|
-
"eo-icon"
|
|
88
|
-
],
|
|
89
|
-
"eo-sidebar-menu-item": [
|
|
78
|
+
"eo-launchpad-recent-visits": [
|
|
90
79
|
"eo-link",
|
|
91
|
-
"eo-icon"
|
|
80
|
+
"eo-icon",
|
|
81
|
+
"basic.show-dialog",
|
|
82
|
+
"basic.show-notification"
|
|
92
83
|
],
|
|
93
84
|
"eo-sidebar-menu-group": [
|
|
94
85
|
"eo-sidebar-menu",
|
|
95
86
|
"eo-sidebar-menu-item",
|
|
96
87
|
"eo-sidebar-menu-submenu"
|
|
97
88
|
],
|
|
89
|
+
"eo-sidebar-menu-item": [
|
|
90
|
+
"eo-link",
|
|
91
|
+
"eo-icon"
|
|
92
|
+
],
|
|
98
93
|
"eo-sidebar-menu-submenu": [
|
|
99
94
|
"eo-icon",
|
|
100
95
|
"eo-sidebar-menu",
|
|
@@ -106,6 +101,11 @@
|
|
|
106
101
|
"eo-sidebar-menu-group",
|
|
107
102
|
"eo-sidebar-menu-submenu"
|
|
108
103
|
],
|
|
104
|
+
"eo-frame-breadcrumb": [
|
|
105
|
+
"eo-breadcrumb",
|
|
106
|
+
"eo-breadcrumb-item",
|
|
107
|
+
"eo-icon"
|
|
108
|
+
],
|
|
109
109
|
"eo-sidebar": [
|
|
110
110
|
"eo-tooltip",
|
|
111
111
|
"eo-icon",
|
|
@@ -114,6 +114,10 @@
|
|
|
114
114
|
"eo-sidebar-menu-group",
|
|
115
115
|
"eo-sidebar-menu-submenu"
|
|
116
116
|
],
|
|
117
|
+
"eo-directory": [
|
|
118
|
+
"eo-icon",
|
|
119
|
+
"eo-tooltip"
|
|
120
|
+
],
|
|
117
121
|
"eo-sidebar-sub-menu": [
|
|
118
122
|
"eo-icon",
|
|
119
123
|
"eo-menu",
|
|
@@ -122,10 +126,6 @@
|
|
|
122
126
|
"eo-menu-item",
|
|
123
127
|
"eo-link"
|
|
124
128
|
],
|
|
125
|
-
"eo-directory": [
|
|
126
|
-
"eo-icon",
|
|
127
|
-
"eo-tooltip"
|
|
128
|
-
],
|
|
129
129
|
"eo-directory-tree": [
|
|
130
130
|
"eo-search",
|
|
131
131
|
"eo-directory-tree-leaf",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"eo-tooltip"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"filePath": "bricks/nav/dist/index.
|
|
155
|
+
"filePath": "bricks/nav/dist/index.6660ce64.js"
|
|
156
156
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[4433],{1409:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.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,.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),.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,.menu-container .menu-group-text,.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 o=l.toString()},1784:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,".message--Fxvh9j9V{color:var(--color-normal-text);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}",""]),l.locals={message:"message--Fxvh9j9V"};const o=l},2469:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block;transition:width var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar-menu-item-list slot::slotted(*){margin-top:6px}",""]);const o=l.toString()},2689:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:flex;height:22px;align-items:center}:host([hidden]){display:none}.breadcrumb-item-prefix-icon{font-size:14px}",""]);const o=l.toString()},2763:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.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-container-not-border{border-right: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}",""]);const o=l.toString()},3694:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.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:998;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 o=l.toString()},3873:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.container{position:relative}.dropdown{margin-top:5px;position:absolute;top:100%;left:0px;width:100%;z-index:1050;padding:20px 24px 24px;overflow:hidden;box-sizing:border-box;background-color:var(--antd-select-dropdown-bg);border-radius:4px;box-shadow:var(--antd-box-shadow-base);display:none}.dropdown-active{display:block}.search-box{border-bottom:1px solid var(--color-text-divider-line);display:flex;gap:8px;align-items:center;padding:10px 0;cursor:text}.search-icon{color:var(--color-auxiliary-text)}.search-input{padding:0;margin:0;border:none;outline:none;color:inherit;background-color:transparent;font-size:14px;line-height:22px;flex:1;min-width:0}.search-input::placeholder{color:var(--color-disabled-text);opacity:1}.search-clear{display:none;color:var(--color-secondary-text);cursor:pointer}.search-clear.searching{display:inline-block}.search-clear:hover{color:var(--color-auxiliary-text)}.dropdown-content{min-width:0;display:flex;flex-direction:column;gap:24px;max-height:260px;overflow-y:auto}.spinner{display:flex;justify-content:center;align-items:center;color:var(--theme-doderblue-color);flex:1;font-size:30px}.loading > :not(.spinner){display:none}.menu-group-label,\n.menu-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-groups,\n.menu,\n.sub-menu{list-style:none;margin:0;padding:0}.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.menu-item > eo-link{display:block;min-width:0}.menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.menu-groups{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.menu-groups{display:grid;gap:32px 8px}.menu-group{padding-right:12px;color:var(--color-header-text)}.menu-group-label{font-size:var(--card-title-font-size);font-weight:500;color:var(--color-header-text);margin-bottom:14px}.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-icon{color:var(--eo-search-launchpad-menu-icon-color)}.menu-item.active,\n.menu-item.active .menu-icon{color:var(--color-brand-active)}.sub-menu:not(.expanded){display:none}.sub-menu{margin-top:14px;margin-left:8px;border-left:1px solid var(--color-text-divider-line);padding-left:15px}.menu-item-star{cursor:pointer}.menu-item-star,\n.menu-item-toggle{color:var(--color-secondary-text)}.menu-item-star{display:none}.can-star.starred > .menu-item-star,\n.can-star:hover > .menu-item-star{display:inline-block}.can-star:not(.starred) > .menu-item-star{color:var(--color-secondary-text)}.starred > .menu-item-star{color:var(--palette-yellow-6)}.menu-item > eo-link:hover::part(link),\n.menu-item > eo-link:hover .menu-icon,\n.menu-item > eo-link:hover .menu-item-toggle{color:var(--color-brand-hover)}@supports not (inset: 0){.search-box,\n .menu,\n .sub-menu,\n .menu-item:not(.folder),\n .menu-item > eo-link::part(link){gap:0}.dropdown-content{display:grid;grid-auto-flow:row}.dropdown-content:not(.loading){height:min-content}.menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.search-icon,\n .menu-icon{margin-right:8px}.search-clear,\n .menu-item-star,\n .menu-item-toggle{margin-left:8px}}",""]);const o=l.toString()},4081:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block;--local-menu-icon-color:#8c8c8c}:host([hidden]){display:none;--local-menu-icon-color:rgba(255,255,255,0.45)}ul{list-style:none;margin:0;padding:0}.menu-groups{display:grid;gap:32px 16px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.menu-folder-label-wrapper > eo-link,\n.menu-item > eo-link{display:block}.menu-folder-label-wrapper > eo-link::part(link),\n.menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.menu-group-label-wrapper,\n.menu-folder-label-wrapper,\n.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-group-label-wrapper{gap:3px}.menu-group:not(.empty) .menu-group-label-wrapper{margin-bottom:14px}.menu-group-label,\n.menu-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-group-label{font-size:var(--card-title-font-size);font-weight:500;color:var(--color-header-text)}.menu-icon{color:var(--local-menu-icon-color)}.menu-group.blocked .menu-group-label,\n.menu-item.blocked > .menu-folder-label-wrapper .menu-item-label,\n.menu-item.blocked > .menu-folder-label-wrapper .menu-icon,\n.menu-item.blocked > .menu-folder-label-wrapper .menu-item-toggle,\n.menu-item.disabled > eo-link::part(link),\n.menu-item.disabled .menu-icon{color:var(--color-disabled-text)}.menu-folder-label-wrapper > eo-link,\n.menu-item > eo-link{max-width:100%;width:-moz-fit-content;width:fit-content;min-width:0}.sub-menu:not(.expanded){display:none}.sub-menu{margin-left:8px;border-left:1px solid var(--color-text-divider-line);padding-left:15px}.menu-item:not(.empty) .sub-menu{margin-top:14px}.menu-item-toggle{color:var(--color-secondary-text)}.menu-config{visibility:hidden;color:var(--color-brand);cursor:pointer;display:flex;justify-content:center;align-items:center;height:24px;width:0}.menu-config.active,\n.menu-group-label-wrapper:hover .menu-config,\n.menu-item:not(.folder):not(.disabled):hover .menu-config,\n.menu-item:not(.folder):not(.blocked):hover .menu-config,\n.menu-folder-label-wrapper:hover .menu-config{visibility:visible;width:24px}.menu-config:hover,\n.menu-item:not(.disabled) > eo-link:hover::part(link),\n.menu-item:not(.disabled) > eo-link:hover .menu-icon,\n.menu-folder-label-wrapper > eo-link:hover::part(link),\n.menu-folder-label-wrapper > eo-link:hover .menu-icon,\n.menu-folder-label-wrapper > eo-link:hover .menu-item-toggle{color:var(--color-brand-hover)}@supports not (inset: 0){.sub-menu,\n .menu,\n .menu-group-label-wrapper,\n .menu-folder-label-wrapper,\n .menu-item:not(.folder),\n .menu-item > eo-link::part(link){gap:0}.menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.menu-icon{margin-right:8px}eo-dropdown-actions,\n .menu-item-toggle{margin-left:8px}}",""]);const o=l.toString()},4239:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block;--menu-item-icon-size:20px}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}eo-link{display:block}.menu-item{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 12px;line-height:20px;color:var(--left-sidebar-item-normal-color);border-radius:var(--medius-border-radius);cursor:pointer;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-item-icon-container{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:var(--menu-item-icon-size);height:var(--menu-item-icon-size);font-size:var(--menu-item-icon-size);color:var(--left-sidebar-item-collapsed-icon-color)}:host([in-submenu]):host(:not([selected])) .menu-item{color:var(--left-sidebar-item-collapsed-color)}.menu-item-text{flex:1;margin-left:14px;margin-right:12px;font-size:14px;overflow:hidden;white-space:nowrap;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-item:hover{background:var(--left-sidebar-item-hover-bg)}:host([selected]) .menu-item{color:var(--left-sidebar-item-selected-color);background:var(--left-sidebar-item-selected-bg);box-shadow:0px 2px 12px 0px rgba(26,122,255,0.30196)}:host([selected]) .menu-item-icon-container{color:var(--left-sidebar-item-selected-color)}:host([selected]) .menu-item:hover{background-color:var(--left-sidebar-item-selected-hover-bg)}:host([menu-collapsed]) .menu-item{padding:0px calc(50% - var(--menu-item-icon-size) / 2)}:host([menu-collapsed]) .menu-item-text{opacity:0}:host(:not([menu-collapsed])) .menu-item-text{white-space:pre-wrap;display:-webkit-inline-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}",""]);const o=l.toString()},4433:(e,t,n)=>{var i,r=n(918),a=n(6121),l=n(829),o=n(2740),s=n(9575),c=n(8769),d=n.n(c),u=n(6192),m=n(8974),p=n(9859),h=n(6370),g=n(9527),f=n(63),v=(n(6477),n(3373)),b=n.n(v),x=n(1283),y=n(9044),k=n(9998),w=n(839),A=n(1122);let E,N,S,C,I,T,M;n(4211);const{defineElement:B,property:W}=(0,u.createDecorators)(),R=(0,p.wrapBrick)("eo-menu-item"),z=(0,p.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"});function K(e){const{item:t}=e;return(0,g.Wf)(t,e.topData)?d().createElement(F,(0,s.A)({},e,{item:t})):(0,g.IZ)(t)?d().createElement(L,(0,s.A)({},e,{item:t})):d().createElement(D,(0,s.A)({},e,{item:t}))}function D(e){const{item:t,index:n,hidden:i,showTooltip:r,selectedKey:a=[]}=e;return d().createElement(R,{"data-index":n,className:i?"overflow-menu-item":"",key:t.key,title:r?t.text:"",active:!!t.key&&a.includes(t.key)},(0,g.q5)(t,{width:"100%"},e.mainMenuTitleStyle))}let _;const P=e=>{const t=null!=_?_:_=window.innerWidth-document.body.clientWidth;document.body.style.paddingRight=e.detail?t+"px":"",document.body.style.overflow=e.detail?"hidden":"",document.body.style.touchAction=e.detail?"none":""};function F(e){var t;let{index:n,hidden:i,item:r,topData:a,showTooltip:l,selectedKey:o=[],overflow:s,mainMenuTitleStyle:c}=e;return(null===(t=r.items)||void 0===t?void 0:t.length)>0?d().createElement(z,{"data-index":n,className:b()("popover",{subprime:!a,"overflow-menu-item":i}),arrow:!1,trigger:"hover",placement:a?"bottom-start":"right-start",distance:0,anchorDisplay:"block",strategy:"fixed"},d().createElement(R,{className:"sub-menu-item-label 22",key:r.key,slot:"anchor",title:l?r.title:""},(0,g.Gn)(r,!a,{...c})),d().createElement("div",{className:b()("sub-menu-wrapper",{"overflow-menu-wrapper":s})},r.items.map((e=>d().createElement(d().Fragment,{key:e.key},d().createElement(K,{item:e,selectedKey:o,showTooltip:l})))))):null}function L(e){var t;let{item:n,showTooltip:i,selectedKey:r=[]}=e;return(null===(t=n.items)||void 0===t?void 0:t.length)>0?"category"===n.childLayout?d().createElement(U,{item:n,selectedKey:r,showTooltip:i,placement:"right-start",anchorDisplay:"block"}):"siteMap"===n.childLayout?d().createElement(V,{item:n,selectedKey:r,showTooltip:i,placement:"right-start",anchorDisplay:"block",topData:!1}):d().createElement(d().Fragment,null,d().createElement("div",{className:"group-label"},n.title),d().createElement("div",{className:"group-wrapper"},n.items.map((e=>d().createElement(d().Fragment,{key:e.key},d().createElement(K,{item:e,showTooltip:i,selectedKey:r})))))):null}function U(e){var t;let{index:n,hidden:i,item:r,selectedKey:a=[],showTooltip:l,placement:o="bottom-start",anchorDisplay:s,mainMenuTitleStyle:c}=e;return(null===(t=r.items)||void 0===t?void 0:t.length)>0?d().createElement(z,{"data-index":n,className:b()("three-level-menu-popover","popover",{"overflow-menu-item":i}),arrow:!1,trigger:"hover",placement:o,distance:0,key:r.key,strategy:"fixed",anchorDisplay:s,onBeforeVisibleChange:P},d().createElement(R,{className:"sub-menu-item-label",key:r.key,slot:"anchor",title:l?r.title:""},(0,g.Gn)(r,!1,c)),d().createElement("div",{className:"sub-menu-wrapper"},d().createElement(x.s,{menuItem:r,selectedKey:a}))):null}function V(e){var t;let{index:n,hidden:i,item:r,selectedKey:a=[],showTooltip:l,placement:o="bottom-start",anchorDisplay:s,topData:u,mainMenuTitleStyle:m}=e;const[p,h]=(0,c.useState)();return(null===(t=r.items)||void 0===t?void 0:t.length)>0?d().createElement(z,{"data-index":n,className:b()("popover",{"overflow-menu-item":i}),trigger:"hover",placement:o,distance:0,key:r.key,strategy:"fixed",arrow:!1,anchorDisplay:s,onBeforeVisibleChange:e=>{h(e.detail),P(e)}},d().createElement(R,{className:"sub-menu-item-label",key:r.key,slot:"anchor",title:l?r.title:""},(0,g.Gn)(r,!1,m)),d().createElement("div",{className:b()("sub-menu-sit-map-wrapper",{"in-group-site-map":!u}),onClick:e=>e.stopPropagation()},d().createElement(y.bw,{menuGroup:r,selectedKey:a,visible:p}))):null}let G;var $=new WeakMap,O=new WeakMap,j=new WeakMap;class X extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,$,N(this)),(0,r.A)(this,O,(S(this),C(this))),(0,r.A)(this,j,(I(this),T(this))),M(this)}get menu(){return(0,l.A)($,this)}set menu(e){(0,a.A)($,this,e)}get mainMenuTitleStyle(){return(0,l.A)(O,this)}set mainMenuTitleStyle(e){(0,a.A)(O,this,e)}get showTooltip(){return(0,l.A)(j,this)}set showTooltip(e){(0,a.A)(j,this,e)}render(){return d().createElement(q,{menu:this.menu,showTooltip:this.showTooltip,mainMenuTitleStyle:this.mainMenuTitleStyle})}}function q(e){const{menu:t,showTooltip:n}=e,i=(0,m.getHistory)(),r=(0,c.useRef)(null),[a,l]=(0,c.useState)(i.location),[o,s]=(0,c.useState)(Number.MAX_SAFE_INTEGER),{pathname:u,search:p}=a,h=(0,c.useMemo)((()=>{var e;return(null!==(e=null==t?void 0:t.menuItems)&&void 0!==e?e:[]).filter((e=>{var t;return"default"===e.type||!e.type||["group","subMenu"].includes(e.type)&&(null===(t=e.items)||void 0===t?void 0:t.length)}))}),[null==t?void 0:t.menuItems]),v=(0,c.useMemo)((()=>{const{selectedKeys:e}=(0,f.LP)(null!=h?h:[],u,p,"");return e}),[h,u,p]);(0,c.useEffect)((()=>{const e=i.listen((e=>{l(e)}));return e}),[]),(0,c.useEffect)((()=>{if(r.current){const e=new ResizeObserver((()=>{if(r.current){var e;const{width:t}=null!==(e=r.current.getClientRects()[0])&&void 0!==e?e:{},n=r.current.childNodes;if(n.length&&t){let e=t,i=n.length;for(let t=0;t<n.length;t++){const{width:r,height:a}=n[t].getClientRects()[0];if(!a&&e-40<0){i=t-1;break}if(e=e-r-(t>0?8:0),e<0){i=t;break}}s(i<0?0:i)}}}));return e.observe(r.current),()=>{e.disconnect()}}}),[]);const b=(0,c.useMemo)((()=>({type:"subMenu",title:"···",items:h.slice(o,h.length).map((e=>({...e,type:"group"===e.type&&e.items.length?"subMenu":e.type})))})),[h,o]);return d().createElement("div",{ref:r,className:"nav-menu-wrapper"},h.map(((t,i)=>{var r;const a=o<=i;return d().createElement(d().Fragment,{key:t.key},(0,g.Wf)(t,!0)&&"category"===t.childLayout&&null!==(r=t.items)&&void 0!==r&&r.length?d().createElement(U,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,mainMenuTitleStyle:e.mainMenuTitleStyle}):"group"===t.type&&"siteMap"===t.childLayout?d().createElement(V,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}):d().createElement(K,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}))})),d().createElement(K,{hidden:o>h.length,item:b,showTooltip:n,selectedKey:v,overflow:!0,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}))}i=X,({e:[N,S,C,I,T,M],c:[G,E]}=(0,o.A)(i,[B("eo-nav-menu",{styleTexts:[k.A,w.A,A.A,h.A]})],[[W({attribute:!1}),1,"menu"],[W({attribute:!1}),1,"mainMenuTitleStyle"],[W({type:Boolean}),1,"showTooltip"]],0,void 0,p.ReactNextElement)),E();var H,Y=n(6293),Z=n(8399),Q=n(9929),J=n(1);let ee;(0,Z.initializeReactI18n)(Q.NS,Q.I);const{defineElement:te}=(0,u.createDecorators)();let ne;class ie extends p.ReactNextElement{render(){return d().createElement(Y.D,null)}}H=ie,[ne,ee]=(0,o.A)(H,[te("eo-launchpad-button",{styleTexts:[J.A]})],[],0,void 0,p.ReactNextElement).c,ee();var re,ae=n(4427),le=n(6674),oe=n(2240),se=n(5924),ce=n(3693),de=n(9302),ue=n(2133),me=n(8776);let pe;n(9262);const{defineElement:he}=(0,u.createDecorators)(),ge=(0,ae.unwrapProvider)("basic.lock-body-scroll");let fe;class ve extends p.ReactNextElement{disconnectedCallback(){super.disconnectedCallback(),ge(this,!1)}render(){return d().createElement(be,{host:this})}}function be(e){let{host:t}=e;const[n,i]=(0,c.useState)(!1),[r,a]=(0,c.useState)(!1),l=()=>{a((e=>!e))};return(0,c.useEffect)((()=>(0,m.getHistory)().listen((()=>{a(!1)}))),[]),(0,c.useEffect)((()=>{r&&!n&&i(!0)}),[r,n]),(0,c.useEffect)((()=>(le.A.filter=function(){return!0},(0,le.A)("alt+l",(e=>{e.preventDefault(),a((e=>!e))})),(0,le.A)("esc",(()=>{a(!1)})),()=>{le.A.unbind("alt+l"),le.A.unbind("esc")})),[]),(0,c.useEffect)((()=>{ge(t,r)}),[r,t]),(0,c.useEffect)((()=>{var e;ue.ir.schedulePrefetch(),ue.fm.schedulePrefetch(),(null===(e=(0,m.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-platform-category"])&&ue.pU.schedulePrefetch()}),[]),d().createElement(d().Fragment,null,d().createElement("a",{role:"button",className:b()("launchpad-button",{active:r}),onClick:l},d().createElement(oe.A,null)),d().createElement("div",{className:b()("mask",{active:r}),onClick:l}),n&&d().createElement(de.r,{active:r}))}re=ve,[fe,pe]=(0,o.A)(re,[he("eo-launchpad-button-v2",{styleTexts:[se.A,ce.A,me.A]})],[],0,void 0,p.ReactNextElement).c,pe();var xe=n(4635),ye=n(6902),ke=n(5536),we=n(480),Ae=n(1030);const Ee=(0,p.wrapBrick)("eo-icon"),Ne=(0,p.wrapBrick)("eo-link"),Se=(0,p.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"});(0,ae.unwrapProvider)("basic.show-dialog");var Ce=n(6659);function Ie(e){var t;let{data:n,actions:i,variant:r,urlTemplate:a,customUrlTemplate:l,onMenuItemClick:o,onActionClick:s}=e;null!==(t=n.type)&&void 0!==t||(n.type="group");const{name:u,items:p}=n,[h,g]=(0,c.useState)(!1),f=(0,c.useMemo)((()=>m.__secret_internals.legacyDoTransform(n,null==i?void 0:i.filter((e=>(0,m.checkIfByTransform)(e,n))))),[i,n]),v=(0,c.useCallback)((e=>{null==s||s({data:n,action:e.detail})}),[n,s]);return d().createElement("li",{className:b()("menu-group",{empty:0===p.length,blocked:n.allBlocked})},d().createElement("div",{className:"menu-group-label-wrapper"},d().createElement("span",{className:"menu-group-label"},u),"menu-config"!==r&&!(null==f||!f.length)&&d().createElement(Se,{actions:f,onVisibleChange:e=>{g(e.detail)},onActionClick:v},d().createElement(Ee,{lib:"fa",icon:"gear",className:b()("menu-config",{active:h})}))),d().createElement("ul",{className:"menu"},p.map((e=>"dir"===e.type?d().createElement(Me,{key:e.instanceId,data:e,actions:i,variant:r,urlTemplate:a,customUrlTemplate:l,onMenuItemClick:o,onActionClick:s}):d().createElement(Te,{key:`${e.type}-${e.id}`,data:e,actions:i,variant:r,urlTemplate:a,customUrlTemplate:l,onClick:t=>{null==o||o({...e,...t})},onActionClick:s})))))}function Te(e){var t;let{data:n,actions:i,variant:r,urlTemplate:a,customUrlTemplate:l,onClick:o,onActionClick:u}=e;const p=(0,c.useMemo)((()=>"app"===n.type?(0,Ce.F)(n.locales,n.name):n.name),[n]),[h,g]=(0,c.useState)(!1),f=(0,c.useMemo)((()=>m.__secret_internals.legacyDoTransform(n,null==i?void 0:i.filter((e=>(0,m.checkIfByTransform)(e,n))))),[i,n]),v=(0,c.useCallback)((e=>{null==u||u({data:n,action:e.detail})}),[n,u]);let x,y=!1,k="";if("launchpad-config"===r||"menu-config"===r)if("app"===n.type)k=Be(a,n,"");else{const e=new URL(n.url,location.origin);x=e.pathname,y=e.origin!==location.origin,k=y?"":Be(l,{...n,__pathname:x},"")}return d().createElement("li",{className:b()("menu-item",{disabled:y||n.allBlocked}),onClick:()=>{null==o||o({__pathname:x})}},d().createElement(Ne,{tooltip:y?"该菜单项为外链,不支持配置":"",url:k},d().createElement(Ee,(0,s.A)({className:"menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=n.menuIcon)&&void 0!==t&&t.lib&&n.menuIcon.icon?(0,Ae.pick)(n.menuIcon,["lib","icon","theme","category","prefix"]):null)),d().createElement("span",{className:"menu-item-label"},p)),"menu-config"!==r&&!(null==f||!f.length)&&d().createElement(Se,{actions:f,onVisibleChange:e=>{g(e.detail)},onClick:e=>{e.stopPropagation()},onActionClick:v,"data-testid":`menu-item-actions-${n.id}`},d().createElement(Ee,{lib:"fa",icon:"gear",className:b()("menu-config",{active:h})})))}function Me(e){let{data:t,actions:n,variant:i,urlTemplate:r,customUrlTemplate:a,onMenuItemClick:l,onActionClick:o}=e;const{name:s,items:u}=t,[p,h]=(0,c.useState)(!1),[g,f]=(0,c.useState)(!1),v=(0,c.useMemo)((()=>m.__secret_internals.legacyDoTransform(t,null==n?void 0:n.filter((e=>(0,m.checkIfByTransform)(e,t))))),[n,t]),x=(0,c.useCallback)((()=>{f((e=>!e))}),[]),y=(0,c.useCallback)((e=>{null==o||o({data:t,action:e.detail})}),[t,o]);return d().createElement("li",{className:b()("menu-item folder",{empty:0===u.length,blocked:t.allBlocked})},d().createElement("div",{className:"menu-folder-label-wrapper"},d().createElement(Ne,{onClick:x},d().createElement(Ee,{lib:"fa",prefix:"far",icon:"folder-open",className:"menu-icon"}),d().createElement("span",{className:"menu-item-label"},s),d().createElement(Ee,{lib:"antd",icon:g?"up":"down",className:"menu-item-toggle"})),"menu-config"!==i&&!(null==v||!v.length)&&d().createElement(Se,{actions:v,onVisibleChange:e=>{h(e.detail)},onActionClick:y},d().createElement(Ee,{lib:"fa",icon:"gear",className:b()("menu-config",{active:p})}))),d().createElement("ul",{className:b()("sub-menu",{expanded:g})},u.map((e=>d().createElement(Te,{key:e.instanceId,data:e,actions:n,variant:i,urlTemplate:r,customUrlTemplate:a,onClick:t=>{null==l||l({...e,...t})},onActionClick:o})))))}function Be(e,t,n){var i;return null!==(i=null==e?void 0:e.replace(/{{(.*?)}}/g,((e,n)=>encodeURIComponent(String((0,Ae.get)(t,n.trim()))))))&&void 0!==i?i:n}var We,Re=n(4081);let ze,Ke,De,_e,Pe,Fe,Le,Ue,Ve,Ge,$e,Oe,je,Xe,qe,He,Ye,Ze,Qe,Je,et;const{defineElement:tt,property:nt,event:it}=(0,u.createDecorators)(),rt="/next/";let at;var lt=new WeakMap,ot=new WeakMap,st=new WeakMap,ct=new WeakMap,dt=new WeakMap,ut=new WeakMap,mt=new WeakMap,pt=new WeakSet,ht=new WeakMap,gt=new WeakMap,ft=new WeakMap;class vt extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,pt),(0,r.A)(this,lt,Ke(this)),(0,r.A)(this,ot,(De(this),_e(this))),(0,r.A)(this,st,(Pe(this),Fe(this))),(0,r.A)(this,ct,(Le(this),Ue(this))),(0,r.A)(this,dt,(Ve(this),Ge(this))),(0,r.A)(this,ut,($e(this),Oe(this))),(0,r.A)(this,mt,(je(this),Xe(this))),(0,r.A)(this,ht,(Ye(this),Ze(this))),(0,r.A)(this,gt,(et(this),e=>{(0,ke.A)(pt,this,qe).emit(e)})),(0,r.A)(this,ft,(e=>{(0,ke.A)(pt,this,Qe).emit(e)}))}get menuGroups(){return(0,l.A)(lt,this)}set menuGroups(e){(0,a.A)(lt,this,e)}get actions(){return(0,l.A)(ot,this)}set actions(e){(0,a.A)(ot,this,e)}get variant(){return(0,l.A)(st,this)}set variant(e){(0,a.A)(st,this,e)}get urlTemplate(){return(0,l.A)(ct,this)}set urlTemplate(e){(0,a.A)(ct,this,e)}get customUrlTemplate(){return(0,l.A)(dt,this)}set customUrlTemplate(e){(0,a.A)(dt,this,e)}get blacklist(){return(0,l.A)(ut,this)}set blacklist(e){(0,a.A)(ut,this,e)}render(){var e;return d().createElement(bt,{menuGroups:this.menuGroups,actions:this.actions,variant:null!==(e=this.variant)&&void 0!==e?e:"launchpad-config",urlTemplate:this.urlTemplate,customUrlTemplate:this.customUrlTemplate,blacklist:this.blacklist,onMenuItemClick:(0,l.A)(gt,this),onActionClick:(0,l.A)(ft,this)})}}function bt(e){let{menuGroups:t,actions:n,variant:i,urlTemplate:r,customUrlTemplate:a,blacklist:l,onMenuItemClick:o,onActionClick:s}=e;const u=(0,c.useMemo)((()=>{return"blacklist-config"===i?null==t?void 0:t.map((e=>{const t=e.items.map((e=>yt(e,l))),n=t.some((e=>e.blockable)),i=n&&t.some((e=>e.hasBlocked)),r=n&&t.some((e=>e.hasUnblocked)),a=t.length>0&&t.every((e=>e.allBlocked)),o=t.flatMap((e=>{var t,n;return e.blockable?null!==(t=null!==(n=e.blockableUrls)&&void 0!==n?n:e.blockableUrl)&&void 0!==t?t:e.url:[]}));return{...e,type:"group",items:t,blockable:n,hasBlocked:i,hasUnblocked:r,allBlocked:a,blockableUrls:o}})):"launchpad-config"===i?null===(e=function(e){return null==e?void 0:e.map((e=>{const t=e.items.map((e=>xt(e))).filter(Boolean);return t.length>0?{...e,items:t}:null})).filter(Boolean)}(t))||void 0===e?void 0:e.filter(Boolean):t;var e}),[i,t,l]);return d().createElement("ul",{className:"menu-groups"},null==u?void 0:u.map((e=>d().createElement(Ie,{key:e.instanceId,data:e,actions:n,variant:i,urlTemplate:r,customUrlTemplate:a,onMenuItemClick:o,onActionClick:s}))))}function xt(e){if("dir"===e.type){const t=e.items.map((e=>xt(e))).filter(Boolean);return t.length>0?{...e,items:t}:null}return"app"===e.type?e.url&&we.auth.isBlockedPath(e.url)?null:e:e.url&&we.auth.isBlockedHref(e.url)?null:e}function yt(e,t){if("dir"===e.type){const n=e.items.map((e=>yt(e,t))),i=n.some((e=>e.blockable)),r=n.some((e=>e.hasBlocked)),a=i&&n.some((e=>e.hasUnblocked)),l=n.length>0&&n.every((e=>e.allBlocked)),o=n.flatMap((e=>{var t,n;return e.blockable?null!==(t=null!==(n=e.blockableUrls)&&void 0!==n?n:e.blockableUrl)&&void 0!==t?t:e.url:[]}));return{...e,items:n,blockable:i,hasBlocked:r,hasUnblocked:a,allBlocked:l,blockableUrls:o}}if("app"===e.type){const n=!!e.url,i=n&&(null==t?void 0:t.includes(e.url)),r=n&&!i;return{...e,blockable:n,hasBlocked:i,hasUnblocked:r,allBlocked:i}}const{blockable:n,blockableUrl:i}=function(e){let t,n=!(null==e||!e.startsWith(rt));if(n){const i=new URL(e,location.origin);i.origin===location.origin&&i.pathname.startsWith(rt)?t=i.pathname.substring(5):(n=!1,t=void 0)}return{blockable:n,blockableUrl:t}}(e.url),r=n&&(null==t?void 0:t.includes(i)),a=n&&!r;return{...e,blockable:n,hasBlocked:r,hasUnblocked:a,allBlocked:r,blockableUrl:i}}We=vt,({e:[Ke,De,_e,Pe,Fe,Le,Ue,Ve,Ge,$e,Oe,je,Xe,qe,He,Ye,Ze,Qe,Je,et],c:[at,ze]}=(0,o.A)(We,[tt("nav.launchpad-config",{styleTexts:[Re.A]})],[[nt({attribute:!1}),1,"menuGroups"],[nt({attribute:!1}),1,"actions"],[nt(),1,"variant"],[nt(),1,"urlTemplate"],[nt(),1,"customUrlTemplate"],[nt({attribute:!1}),1,"blacklist"],[it({type:"menu-item.click"}),1,"menuItemClickEvent",e=>(0,l.A)(mt,e),(e,t)=>(0,a.A)(mt,e,t)],[it({type:"action.click"}),1,"actionClickEvent",e=>(0,l.A)(ht,e),(e,t)=>(0,a.A)(ht,e,t)]],0,(e=>ft.has((0,ye.A)(e))),p.ReactNextElement)),ze();var kt,wt=n(8361),At=n(7137),Et=n(1916),Nt=n.n(Et),St=n(7061);let Ct;const It=(0,p.wrapBrick)("eo-icon"),Tt=(0,p.wrapBrick)("eo-link"),{defineElement:Mt}=(0,u.createDecorators)();let Bt;class Wt extends p.ReactNextElement{render(){return d().createElement(zt,null)}}kt=Wt,[Bt,Ct]=(0,o.A)(kt,[Mt("nav.easyops-navbar-alerts",{styleTexts:[St.A]})],[],0,void 0,p.ReactNextElement).c,Ct();const Rt=new At.G(localStorage);function zt(){const[e,t]=(0,c.useState)(!1),[n,i]=(0,c.useState)(null),r=(0,wt.useCurrentApp)(),a=(0,c.useMemo)((()=>`license:${we.auth.getAuth().org}`),[]),l=(0,c.useMemo)((()=>{var t;const n=we.auth.getAuth(),i=null===(t=n.license)||void 0===t?void 0:t.validDaysLeft;let r;return e?null:i&&i<=15&&n.isAdmin&&(r=Rt.getItem(a),!r||Nt()().unix()>r)?i:null}),[a,e]);(0,c.useEffect)((()=>{const e=e=>{const t=e.detail.renderTime,{loadTime:n,loadInfoPage:a}=(0,m.getRuntime)().getMiscSettings();null!=r&&r.isBuildPush&&n>0&&t>n&&i({renderTime:Dt(t),suggestTime:Dt(n),suggestUrl:a})};return window.addEventListener("route.render",e),()=>{window.removeEventListener("route.render",e)}}),[r]);const o=(0,c.useCallback)((()=>{Rt.setItem(a,Nt()().unix()+86400),t(!0)}),[a]);return d().createElement(d().Fragment,null,n&&d().createElement(Kt,{text:`您的页面存在性能问题, 当前页面渲染时间 ${n.renderTime} 秒, 规定阈值为: ${n.suggestTime} 秒, 您已超过。请您针对该页面进行性能优化!`,type:"warning",link:n.suggestUrl?{label:"建议解决思路",url:n.suggestUrl}:void 0}),null!==l&&d().createElement(Kt,{text:`离 License 过期还有 ${l} 天`,type:"info",closable:!0,onClose:o}))}function Kt(e){let{text:t,type:n,closable:i,link:r,onClose:a}=e;return d().createElement("div",{className:`alert ${n}`},d().createElement("span",{className:"text"},t),r&&d().createElement(Tt,{className:"link",href:r.url,target:"_blank"},r.label),i&&d().createElement(It,{lib:"antd",icon:"close",className:"icon",role:"button",onClick:a}))}function Dt(e){return Math.floor(100*e)/1e5}var _t,Pt=n(8119),Ft=n(8356),Lt=n(8839);let Ut,Vt,Gt,$t,Ot;const{defineElement:jt,property:Xt}=(0,u.createDecorators)();let qt;var Ht=new WeakMap,Yt=new WeakMap;class Zt extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ht,Vt(this)),(0,r.A)(this,Yt,(Gt(this),$t(this))),Ot(this)}get readonly(){return(0,l.A)(Ht,this)}set readonly(e){(0,a.A)(Ht,this,e)}get target(){return(0,l.A)(Yt,this)}set target(e){(0,a.A)(Yt,this,e)}render(){return d().createElement(Qt,{readonly:this.readonly,target:this.target})}}function Qt(e){let{readonly:t,target:n}=e;const{favorites:i,loadingFavorites:r,pushRecentVisit:a,toggleStar:l,isStarred:o}=(0,ue.sZ)(!0);return d().createElement(Ft.z.Provider,{value:{searching:!1,loadingFavorites:r,readonly:t,pushRecentVisit:a,toggleStar:l,isStarred:o}},d().createElement("ul",{className:"quick-access-list"},i.map(((e,t)=>d().createElement(Lt.F,{key:t,target:n,item:e})))))}_t=Zt,({e:[Vt,Gt,$t,Ot],c:[qt,Ut]}=(0,o.A)(_t,[jt("eo-launchpad-quick-access",{styleTexts:[Pt.A]})],[[Xt({type:Boolean}),1,"readonly"],[Xt(),1,"target"]],0,void 0,p.ReactNextElement)),Ut();var Jt,en=n(3873),tn=n(2591),nn=n.n(tn),rn=n(1740),an=n.n(rn),ln=n(8128),on=n.n(ln),sn=n(855),cn=n.n(sn),dn=n(3051),un=n.n(dn),mn=n(3656),pn=n.n(mn),hn=n(7839),gn={};let fn,vn,bn;gn.styleTagTransform=pn(),gn.setAttributes=cn(),gn.insert=on().bind(null,"head"),gn.domAPI=an(),gn.insertStyleElement=un(),nn()(hn.A,gn),hn.A&&hn.A.locals&&hn.A.locals;const xn=(0,p.wrapBrick)("eo-icon"),{defineElement:yn,property:kn}=(0,u.createDecorators)();let wn;var An=new WeakMap;class En extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,An,vn(this)),bn(this)}get readonly(){return(0,l.A)(An,this)}set readonly(e){(0,a.A)(An,this,e)}render(){return d().createElement(Nn,{readonly:this.readonly})}}function Nn(e){let{readonly:t}=e;const n=(0,c.useRef)(null),i=(0,c.useCallback)((()=>{var e;null===(e=n.current)||void 0===e||e.focus()}),[]),[r,a]=(0,c.useState)(!1),{loading:l,q:o,setQ:s,menuGroups:u,loadingFavorites:m,pushRecentVisit:p,toggleStar:h,isStarred:g}=(0,ue.sZ)(r),f=!!o,v=(0,c.useCallback)((e=>{s(e.target.value)}),[s]),x=(0,c.useCallback)((()=>{s("")}),[s]);return d().createElement(Ft.z.Provider,{value:{searching:f,loadingFavorites:m,readonly:t,pushRecentVisit:p,toggleStar:h,isStarred:g}},d().createElement("div",{className:"container"},d().createElement("div",{className:"search-box",onClick:i},d().createElement(xn,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),d().createElement("input",{ref:n,placeholder:"搜索产品/微应用",value:o,onChange:v,className:"search-input",onFocus:()=>a(!0),onBlur:()=>a(!1)}),d().createElement(xn,{lib:"antd",theme:"filled",icon:"close-circle",className:b()("search-clear",{searching:f}),onClick:x,onMouseDown:e=>e.preventDefault()})),d().createElement("div",{className:b()("dropdown",{"dropdown-active":r}),onMouseDown:e=>e.preventDefault()},d().createElement("div",{className:b()("dropdown-content",{loading:l})},d().createElement(Sn,{loading:l}),d().createElement("ul",{className:"menu-groups"},u.map((e=>d().createElement(Lt.r,{key:e.name,name:e.name,items:e.items}))))))))}function Sn(e){let{loading:t}=e;return t&&d().createElement("div",{className:"spinner"},d().createElement(xn,{lib:"fa",icon:"spinner",spinning:!0}))}Jt=En,({e:[vn,bn],c:[wn,fn]}=(0,o.A)(Jt,[yn("eo-search-launchpad",{styleTexts:[en.A]})],[[kn({type:Boolean}),1,"readonly"]],0,void 0,p.ReactNextElement)),fn();var Cn,In=n(6859);let Tn,Mn,Bn;const Wn=(0,p.wrapBrick)("eo-link"),{defineElement:Rn,property:zn}=(0,u.createDecorators)();let Kn;var Dn=new WeakMap;class _n extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Dn,Mn(this)),Bn(this)}get target(){return(0,l.A)(Dn,this)}set target(e){(0,a.A)(Dn,this,e)}render(){return d().createElement(Pn,{target:this.target})}}function Pn(e){let{target:t}=e;const{recentVisits:n,pushRecentVisit:i}=(0,ue.sZ)(!0);return d().createElement("ul",{className:"recent-visits"},n.map(((e,n)=>d().createElement("li",{key:n},d().createElement(Wn,(0,s.A)({onClick:()=>i(e)},"app"===e.type?{url:e.url,target:t}:{href:e.url,target:"_blank"}),d().createElement("span",null,e.name))))))}Cn=_n,({e:[Mn,Bn],c:[Kn,Tn]}=(0,o.A)(Cn,[Rn("eo-launchpad-recent-visits",{styleTexts:[In.A]})],[[zn({attribute:!1}),1,"target"]],0,void 0,p.ReactNextElement)),Tn();var Fn,Ln=n(6405);let Un,Vn,Gn,$n,On,jn,Xn,qn,Hn;const{defineElement:Yn,property:Zn}=(0,u.createDecorators)();let Qn;var Jn=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap;class ii extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Jn,Vn(this)),(0,r.A)(this,ei,(Gn(this),$n(this))),(0,r.A)(this,ti,(On(this),jn(this))),(0,r.A)(this,ni,(Xn(this),qn(this))),Hn(this)}get isFixed(){return(0,l.A)(Jn,this)}set isFixed(e){(0,a.A)(Jn,this,e)}get position(){return(0,l.A)(ei,this)}set position(e){(0,a.A)(ei,this,e)}get displayCenter(){return(0,l.A)(ti,this)}set displayCenter(e){(0,a.A)(ti,this,e)}get extraAppBarContentStyle(){return(0,l.A)(ni,this)}set extraAppBarContentStyle(e){(0,a.A)(ni,this,e)}render(){return d().createElement(ri,{displayCenter:this.displayCenter,isFixed:this.isFixed,position:this.position,extraAppBarContentStyle:this.extraAppBarContentStyle})}}function ri(e){let{isFixed:t=!0,position:n,displayCenter:i=!1,extraAppBarContentStyle:r={}}=e;return d().useEffect((()=>{const e=document.getElementById("main-mount-point"),t=document.getElementById("legacy-iframe-mount-point");e&&(e.style.marginTop=""),t&&(t.style.marginTop="")}),[]),d().createElement("div",{className:"app-bar-container"},d().createElement("div",{className:b()("app-bar","static"===n?"static":"fixed"===n||t?"fixed":"absolute")},d().createElement("div",{className:"app-bar-content",style:{justifyContent:i?"space-around":"space-between",...r}},d().createElement("div",{className:"left"},d().createElement("slot",{name:"left"})),d().createElement("div",{className:"right"},d().createElement("slot",{name:"right"})))))}Fn=ii,({e:[Vn,Gn,$n,On,jn,Xn,qn,Hn],c:[Qn,Un]}=(0,o.A)(Fn,[Yn("eo-app-bar-wrapper",{styleTexts:[Ln.A],alias:["basic.app-bar-wrapper"]})],[[Zn({type:Boolean}),1,"isFixed"],[Zn(),1,"position"],[Zn({type:Boolean}),1,"displayCenter"],[Zn({attribute:!1}),1,"extraAppBarContentStyle"]],0,void 0,p.ReactNextElement)),Un();var ai,li=n(2689);let oi,si,ci,di,ui,mi,pi;const{defineElement:hi,property:gi}=(0,u.createDecorators)(),fi=(0,p.wrapBrick)("eo-breadcrumb"),vi=(0,p.wrapBrick)("eo-breadcrumb-item"),bi=(0,p.wrapBrick)("eo-icon");let xi;var yi=new WeakMap,ki=new WeakMap,wi=new WeakMap;class Ai extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,yi,si(this)),(0,r.A)(this,ki,(ci(this),di(this))),(0,r.A)(this,wi,(ui(this),mi(this))),pi(this)}get breadcrumb(){return(0,l.A)(yi,this)}set breadcrumb(e){(0,a.A)(yi,this,e)}get noCurrentApp(){return(0,l.A)(ki,this)}set noCurrentApp(e){(0,a.A)(ki,this,e)}get menu(){return(0,l.A)(wi,this)}set menu(e){(0,a.A)(wi,this,e)}render(){return d().createElement(Ei,{breadcrumb:this.breadcrumb,noCurrentApp:this.noCurrentApp,menu:this.menu})}}function Ei(e){var t,n;const{menu:i}=e,r=(0,wt.useNavConfig)(),a=(0,wt.useCurrentApp)(),l=null==a?void 0:a.breadcrumb,o=null==l?void 0:l.items,c=null!==(t=e.breadcrumb)&&void 0!==t&&t.length?e.breadcrumb:null==r?void 0:r.breadcrumb,u=null!==(n=e.noCurrentApp)&&void 0!==n?n:null==l?void 0:l.noCurrentApp,m=null==l?void 0:l.useCurrentMenuTitle;return d().createElement(fi,null,d().createElement("span",{slot:"separator"},"/"),null==o?void 0:o.map(((e,t)=>d().createElement(vi,{key:t,url:e.to},e.icon?d().createElement(bi,(0,s.A)({className:"breadcrumb-item-prefix-icon",slot:"prefix"},e.icon)):0===t&&d().createElement(bi,{className:"breadcrumb-item-prefix-icon",slot:"prefix",lib:"antd",icon:"home",theme:"outlined"}),e.text))),a&&!u?d().createElement(vi,{url:null!=c&&c.length&&a.homepage&&!a.internal?a.homepage:void 0},!(null!=o&&o.length)&&d().createElement(bi,(0,s.A)({},a.menuIcon,{slot:"prefix",className:"breadcrumb-item-prefix-icon"})),a.localeName):null,m&&i?d().createElement(vi,{url:i.link},i.icon&&d().createElement(bi,(0,s.A)({},i.icon,{className:"breadcrumb-item-prefix-icon",slot:"prefix"})),i.title):null,null==c?void 0:c.map(((e,t)=>d().createElement(vi,{key:t,url:e.to},e.text))))}ai=Ai,({e:[si,ci,di,ui,mi,pi],c:[xi,oi]}=(0,o.A)(ai,[hi("eo-frame-breadcrumb",{styleTexts:[li.A]})],[[gi({attribute:!1}),1,"breadcrumb"],[gi({type:Boolean}),1,"noCurrentApp"],[gi({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),oi();var Ni,Si=n(4239);let Ci,Ii,Ti,Mi,Bi,Wi,Ri,zi,Ki,Di,_i,Pi,Fi,Li,Ui;const{defineElement:Vi,property:Gi}=(0,u.createDecorators)(),$i=(0,p.wrapBrick)("eo-link"),Oi=(0,p.wrapBrick)("eo-icon");let ji;var Xi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Yi=new WeakMap,Zi=new WeakMap,Qi=new WeakMap,Ji=new WeakMap;class er extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Xi,Ii(this)),(0,r.A)(this,qi,(Ti(this),Mi(this))),(0,r.A)(this,Hi,(Bi(this),Wi(this))),(0,r.A)(this,Yi,(Ri(this),zi(this))),(0,r.A)(this,Zi,(Ki(this),Di(this))),(0,r.A)(this,Qi,(_i(this),Pi(this))),(0,r.A)(this,Ji,(Fi(this),Li(this))),Ui(this)}get url(){return(0,l.A)(Xi,this)}set url(e){(0,a.A)(Xi,this,e)}get href(){return(0,l.A)(qi,this)}set href(e){(0,a.A)(qi,this,e)}get target(){return(0,l.A)(Hi,this)}set target(e){(0,a.A)(Hi,this,e)}get icon(){return(0,l.A)(Yi,this)}set icon(e){(0,a.A)(Yi,this,e)}get selected(){return(0,l.A)(Zi,this)}set selected(e){(0,a.A)(Zi,this,e)}get inSubmenu(){return(0,l.A)(Qi,this)}set inSubmenu(e){(0,a.A)(Qi,this,e)}get menuCollapsed(){return(0,l.A)(Ji,this)}set menuCollapsed(e){(0,a.A)(Ji,this,e)}render(){return d().createElement(tr,{url:this.url,href:this.href,target:this.target,icon:this.icon,selected:this.selected})}}function tr(e){const{url:t,href:n,target:i,icon:r,selected:a}=e;return d().createElement($i,{type:"plain",url:t,href:n,target:i},d().createElement("div",{className:"menu-item"},d().createElement("span",{className:"menu-item-icon-container"},d().createElement(Oi,(0,s.A)({},r,{className:"menu-item-icon"},r&&"imgSrc"in r?{imgStyle:{filter:a?"brightness(7)":void 0}}:{}))),d().createElement("span",{className:"menu-item-text"},d().createElement("slot",null))))}Ni=er,({e:[Ii,Ti,Mi,Bi,Wi,Ri,zi,Ki,Di,_i,Pi,Fi,Li,Ui],c:[ji,Ci]}=(0,o.A)(Ni,[Vi("eo-sidebar-menu-item",{styleTexts:[Si.A]})],[[Gi({attribute:!1}),1,"url"],[Gi(),1,"href"],[Gi(),1,"target"],[Gi({attribute:!1}),1,"icon"],[Gi({type:Boolean}),1,"selected"],[Gi({type:Boolean}),1,"inSubmenu"],[Gi({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),Ci();var nr=n(8619);const ir=new Set(["EO-SIDEBAR-MENU-ITEM","EO-SIDEBAR-MENU-GROUP","EO-SIDEBAR-MENU-SUBMENU"]);function rr(e){const t=(0,c.useRef)(null),n=(0,c.useCallback)((()=>{var n;null===(n=t.current)||void 0===n||n.assignedElements().forEach((t=>{var n;n=t,ir.has(n.tagName)&&(t.menuCollapsed=e)}))}),[e]);return(0,c.useEffect)((()=>{n()}),[e,n]),(0,c.useEffect)((()=>{const e=t.current,i=()=>{n()};return null==e||e.addEventListener("slotchange",i),()=>{null==e||e.removeEventListener("slotchange",i)}}),[n]),[t]}const ar="side-bar-has-been-used",lr="side-bar-expand-state",or="side-bar-resize-width";let sr=function(e){return e.Collapsed="collapsed",e.Hovered="hovered",e.Expanded="expanded",e}({});const cr=parseInt((0,m.getCssPropertyValue)("--side-bar-width",document.body),10)||220,dr=parseInt((0,m.getCssPropertyValue)("--side-bar-collapsed-width",document.body),10)||60,ur=(0,c.createContext)({selectedKeys:[],openedKeys:[],matchedKeys:[]}),mr=(0,p.wrapBrick)("eo-sidebar-menu"),pr=(0,p.wrapBrick)("eo-sidebar-menu-item"),hr=(0,p.wrapBrick)("eo-sidebar-menu-group"),gr=(0,p.wrapBrick)("eo-sidebar-menu-submenu");function fr(e){const{to:t,href:n,target:i,icon:r,text:a,id:l,inSubmenu:o}=e,{selectedKeys:s}=(0,c.useContext)(ur);return d().createElement(pr,{url:t,href:n,target:i,icon:r,inSubmenu:o,selected:s.includes(l)},a)}function vr(e){const{title:t,items:n,id:i,top:r,inSubmenu:a}=e,{matchedKeys:l}=(0,c.useContext)(ur),o=i&&l.includes(i);return(null==n?void 0:n.length)>0?d().createElement(hr,{selected:!!o,collapsable:!r},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(xr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:a}))))):null}function br(e){const{title:t,icon:n,items:i,id:r}=e,{openedKeys:a,matchedKeys:l}=(0,c.useContext)(ur),o=r&&l.includes(r);return(null==i?void 0:i.length)>0?d().createElement(gr,{icon:n,collapsed:!a.includes(r),selected:!!o},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(xr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:!0}))))):null}function xr(e){return"subMenu"===e.type?d().createElement(br,e):"group"===e.type?d().createElement(vr,e):d().createElement(fr,e)}function yr(e){var t;const{menu:n,expandedState:i,selectedKeys:r,openedKeys:a,matchedKeys:l}=e;return d().createElement(ur.Provider,{value:{selectedKeys:r||[],openedKeys:a||[],matchedKeys:l||[]}},d().createElement(mr,{menuCollapsed:i===sr.Collapsed},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map((e=>d().createElement(xr,(0,s.A)({key:e.key},e,{id:e.key,top:!0}))))))}var kr;let wr,Ar,Er,Nr,Sr,Cr,Ir,Tr,Mr;const{defineElement:Br,property:Wr}=(0,u.createDecorators)();let Rr;var zr=new WeakMap,Kr=new WeakMap,Dr=new WeakMap,_r=new WeakMap,Pr=new WeakMap;class Fr extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,zr,Ar(this)),(0,r.A)(this,Kr,(Er(this),Nr(this))),(0,r.A)(this,Dr,(Sr(this),Cr(this))),(0,r.A)(this,_r,(Ir(this),Tr(this))),(0,r.A)(this,Pr,(Mr(this),e=>{this.collapsed=e}))}get collapsable(){return(0,l.A)(zr,this)}set collapsable(e){(0,a.A)(zr,this,e)}get collapsed(){return(0,l.A)(Kr,this)}set collapsed(e){(0,a.A)(Kr,this,e)}get selected(){return(0,l.A)(Dr,this)}set selected(e){(0,a.A)(Dr,this,e)}get menuCollapsed(){return(0,l.A)(_r,this)}set menuCollapsed(e){(0,a.A)(_r,this,e)}render(){return d().createElement(Lr,{collapsable:this.collapsable,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(Pr,this)})}}function Lr(e){const{collapsable:t=!1,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=rr(i),l=(0,c.useRef)(null),o=(0,c.useCallback)((()=>{!i&&(null==r||r(!n))}),[i,r,n]);return(0,c.useEffect)((()=>{const e=l.current;return null==e||e.addEventListener("click",o),()=>{null==e||e.removeEventListener("click",o)}}),[o]),d().createElement("div",{className:b()("menu-group",{"menu-group-collapsed":!!i||n})},d().createElement("div",{className:"menu-group-title",ref:l},d().createElement("span",{className:"menu-group-title-icon-container"},d().createElement("span",{className:"menu-group-title-icon"})),d().createElement("div",{className:"menu-group-title-text"},d().createElement("slot",{name:"title"})),t&&d().createElement("span",{className:"menu-group-arrow"})),d().createElement("div",{className:"menu-group-list"},d().createElement("div",{className:"menu-group-list-inner"},d().createElement("slot",{ref:a}))))}kr=Fr,({e:[Ar,Er,Nr,Sr,Cr,Ir,Tr,Mr],c:[Rr,wr]}=(0,o.A)(kr,[Br("eo-sidebar-menu-group",{styleTexts:[nr.A]})],[[Wr({type:Boolean}),1,"collapsable"],[Wr({type:Boolean}),1,"collapsed"],[Wr({type:Boolean}),1,"selected"],[Wr({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),wr();var Ur,Vr=n(8797);let Gr,$r,Or,jr,Xr,qr,Hr,Yr,Zr;const{defineElement:Qr,property:Jr}=(0,u.createDecorators)(),ea=(0,p.wrapBrick)("eo-icon");let ta;var na=new WeakMap,ia=new WeakMap,ra=new WeakMap,aa=new WeakMap,la=new WeakMap;class oa extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,na,$r(this)),(0,r.A)(this,ia,(Or(this),jr(this))),(0,r.A)(this,ra,(Xr(this),qr(this))),(0,r.A)(this,aa,(Hr(this),Yr(this))),(0,r.A)(this,la,(Zr(this),e=>{this.collapsed=e}))}get icon(){return(0,l.A)(na,this)}set icon(e){(0,a.A)(na,this,e)}get selected(){return(0,l.A)(ia,this)}set selected(e){(0,a.A)(ia,this,e)}get collapsed(){return(0,l.A)(ra,this)}set collapsed(e){(0,a.A)(ra,this,e)}get menuCollapsed(){return(0,l.A)(aa,this)}set menuCollapsed(e){(0,a.A)(aa,this,e)}render(){return d().createElement(sa,{icon:this.icon,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(la,this)})}}function sa(e){const{icon:t,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=rr(i),l=(0,c.useRef)(null),o=(0,c.useCallback)((()=>{!i&&(null==r||r(!n))}),[i,r,n]);return(0,c.useEffect)((()=>{const e=l.current;return null==e||e.addEventListener("click",o),()=>{null==e||e.removeEventListener("click",o)}}),[o]),d().createElement("div",{className:b()("menu-submenu",{"menu-submenu-collapsed":!!i||n})},d().createElement("div",{className:"menu-submenu-title",ref:l},d().createElement("span",{className:"menu-submenu-title-icon-container"},d().createElement(ea,(0,s.A)({},t,{className:"menu-submenu-title-icon"}))),d().createElement("span",{className:"menu-submenu-title-text"},d().createElement("slot",{name:"title"})),d().createElement("span",{className:"menu-submenu-arrow"})),d().createElement("div",{className:"menu-sub"},d().createElement("div",{className:"menu-sub-inner"},d().createElement("slot",{ref:a}))))}Ur=oa,({e:[$r,Or,jr,Xr,qr,Hr,Yr,Zr],c:[ta,Gr]}=(0,o.A)(Ur,[Qr("eo-sidebar-menu-submenu",{styleTexts:[Vr.A]})],[[Jr({attribute:!1}),1,"icon"],[Jr({type:Boolean}),1,"selected"],[Jr({type:Boolean}),1,"collapsed"],[Jr({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),Gr();var ca,da=n(2469);let ua,ma,pa;const{defineElement:ha,property:ga}=(0,u.createDecorators)();let fa;var va=new WeakMap;class ba extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,va,ma(this)),pa(this)}get menuCollapsed(){return(0,l.A)(va,this)}set menuCollapsed(e){(0,a.A)(va,this,e)}render(){return d().createElement(xa,{menuCollapsed:this.menuCollapsed})}}function xa(e){const{menuCollapsed:t}=e,[n]=rr(t);return d().createElement("div",{className:"sidebar-menu"},d().createElement("div",{className:"sidebar-menu-item-list"},d().createElement("slot",{ref:n})))}ca=ba,({e:[ma,pa],c:[fa,ua]}=(0,o.A)(ca,[ha("eo-sidebar-menu",{styleTexts:[da.A]})],[[ga({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),ua();var ya=n(3694);const ka=e=>c.createElement("svg",(0,s.A)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("path",{d:"M0 0h20v20H0z"}),c.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"}))),wa=e=>c.createElement("svg",(0,s.A)({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("path",{d:"M0 0h20v20H0z"}),c.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.02q-.42-.63 0-1.26c.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.54q1.05-.21 1.68-.84c.42-.28 2.1-1.82 3.22-2.8"})));var Aa=n(8013);let Ea=function(e){return e.CLICK_TO_FIX_NAVIGATION="CLICK_TO_FIX_NAVIGATION",e.UNPIN_NAVIGATION="UNPIN_NAVIGATION",e.FIXED_NAVIGATION="FIXED_NAVIGATION",e}({});const Na="bricks/nav/eo-sidebar";var Sa;let Ca,Ia,Ta,Ma,Ba,Wa,Ra,za,Ka,Da,_a,Pa,Fa,La,Ua,Va,Ga;(0,Z.initializeReactI18n)(Na,{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}}"}});const{defineElement:$a,property:Oa,event:ja}=(0,u.createDecorators)(),Xa=(0,p.wrapBrick)("eo-tooltip"),qa=(0,p.wrapBrick)("eo-icon");let Ha;var Ya=new WeakMap,Za=new WeakMap,Qa=new WeakMap,Ja=new WeakMap,el=new WeakMap,tl=new WeakSet,nl=new WeakMap,il=new WeakMap,rl=new WeakMap;class al extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,tl),(0,r.A)(this,Ya,Ia(this)),(0,r.A)(this,Za,(Ta(this),Ma(this))),(0,r.A)(this,Qa,(Ba(this),Wa(this))),(0,r.A)(this,Ja,(Ra(this),za(this))),(0,r.A)(this,el,(Ka(this),Da(this))),(0,r.A)(this,nl,(Fa(this),e=>{(0,ke.A)(tl,this,_a).emit(e)})),(0,r.A)(this,il,La(this)),(0,r.A)(this,rl,(Ga(this),e=>{this.expandedState=e,(0,ke.A)(tl,this,Ua).emit(e)}))}get menu(){return(0,l.A)(Ya,this)}set menu(e){(0,a.A)(Ya,this,e)}get hiddenFixedIcon(){return(0,l.A)(Za,this)}set hiddenFixedIcon(e){(0,a.A)(Za,this,e)}get expandedState(){return(0,l.A)(Qa,this)}set expandedState(e){(0,a.A)(Qa,this,e)}get position(){return(0,l.A)(Ja,this)}set position(e){(0,a.A)(Ja,this,e)}render(){return d().createElement(ll,{menu:this.menu,expandedState:this.expandedState,hiddenFixedIcon:this.hiddenFixedIcon,position:this.position,onActualWidthChange:(0,l.A)(nl,this),onExpandedStateChange:(0,l.A)(rl,this)})}}function ll(e){const{t}=(0,Z.useTranslation)(Na),{menu:n,hiddenFixedIcon:i,position:r,onActualWidthChange:a,onExpandedStateChange:l}=e,o=d().useMemo((()=>{var e;return null===(e=(0,m.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["sidebar-show-user-defined-icon"]}),[]),u=(0,c.useMemo)((()=>new At.G(localStorage)),[]),p=(0,m.getHistory)(),h=(0,wt.useCurrentApp)(),[g,v]=(0,c.useState)(p.location),{pathname:x,search:y}=g,[k,w]=(0,c.useState)(!u.getItem(ar)),[A,E]=(0,c.useState)(),[N,S]=(0,c.useState)(),[C,I]=(0,c.useState)(e.expandedState||u.getItem(lr)||sr.Collapsed),T=o?null==n?void 0:n.icon:null==h?void 0:h.menuIcon,{selectedKeys:M,openedKeys:B,matchedKeys:W}=(0,c.useMemo)((()=>{var e;return(0,f.LP)(null!==(e=null==n?void 0:n.menuItems)&&void 0!==e?e:[],x,y,"")}),[null==n?void 0:n.menuItems,x,y]);(0,c.useEffect)((()=>{const e=p.listen((e=>{v(e)}));return e}),[p]);const R=(0,c.useRef)(null);(0,c.useEffect)((()=>{if(R.current){const e=new IntersectionObserver((e=>{e.forEach((e=>{e.target===R.current&&E(!e.isIntersecting)}))}),{threshold:1});return e.observe(R.current),()=>{e.disconnect()}}}),[]),(0,c.useEffect)((()=>{I(e.expandedState||u.getItem(lr)||sr.Collapsed)}),[e.expandedState]),(0,c.useEffect)((()=>{u.setItem(lr,C===sr.Expanded?sr.Expanded:sr.Collapsed)}),[C]);const[z,K]=(0,c.useState)((()=>{let e=parseInt(u.getItem(or),10);return(e<cr||Number.isNaN(e))&&(e=cr),e}));(0,c.useEffect)((()=>{u.setItem(or,z)}),[z]);const D=(0,c.useRef)(null),_=()=>{I((e=>{const t=e===sr.Expanded?sr.Expanded:sr.Hovered;return t!==e&&(null==l||l(t)),t}))},P=()=>{I((e=>{const t=e===sr.Expanded?sr.Expanded:sr.Collapsed;return t!==e&&(null==l||l(t)),t}))},F=(0,c.useMemo)((()=>C===sr.Expanded?z:dr),[C,z]);(0,c.useEffect)((()=>{null==a||a(F)}),[a,F]);const L=e=>"static"===r?C===sr.Expanded||e&&C===sr.Hovered?z:dr:C===sr.Collapsed?dr:z;return(0,c.useEffect)((()=>{const e=D.current;return null==e||e.addEventListener("mouseenter",_),null==e||e.addEventListener("mouseleave",P),()=>{null==e||e.removeEventListener("mouseenter",_),null==e||e.removeEventListener("mouseleave",P)}}),[]),d().createElement("div",{className:b()("sidebar-container",`state-${C}`,{dragging:N}),style:{width:L()},ref:D,"data-testid":"side-bar"},d().createElement("div",{className:"inner",style:{width:L(!0)}},d().createElement("div",{className:"header"},d().createElement("div",{className:"menu-title"},d().createElement("div",{className:b()("menu-title-icon-container")},T?d().createElement(qa,(0,s.A)({},T,{className:"menu-title-icon"})):d().createElement("span",{className:"menu-title-point"})),d().createElement("div",{className:"menu-title-text",title:null==n?void 0:n.title},null==n?void 0:n.title))),d().createElement("div",{className:b()("content",{"show-shadow":A})},d().createElement(yr,{selectedKeys:M,openedKeys:B,matchedKeys:W,menu:n,expandedState:C}),d().createElement("div",{ref:R})),d().createElement("div",{className:"footer"},!i&&d().createElement(Xa,{content:C===sr.Expanded?k?t(Ea.CLICK_TO_FIX_NAVIGATION,{action:t(Ea.UNPIN_NAVIGATION)}):t(Ea.UNPIN_NAVIGATION):k?t(Ea.CLICK_TO_FIX_NAVIGATION,{action:t(Ea.FIXED_NAVIGATION)}):t(Ea.FIXED_NAVIGATION)},d().createElement("i",{className:"fixed-icon",onClick:()=>{w(!1),u.setItem(ar,!0),I((e=>{const t=e===sr.Expanded?sr.Collapsed:sr.Expanded;return t!==e&&(null==l||l(t)),t}))}},d().createElement(ka,{style:{display:C===sr.Expanded?void 0:"none"}}),d().createElement(wa,{style:{display:C===sr.Expanded?"none":void 0}})))),C===sr.Expanded&&d().createElement("span",{className:"resize-line",onMouseDown:e=>{var t,n;S(!0),e.cancelable&&e.preventDefault();const i=null!==(t=null===(n=D.current)||void 0===n?void 0:n.getBoundingClientRect().left)&&void 0!==t?t:0,r=(0,Aa.G)((e=>{const t=e.clientX-i;K(t>=cr?t:cr)})),a=e=>{S(!1),e.preventDefault(),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r,{passive:!0}),window.addEventListener("mouseup",a)}})))}Sa=al,({e:[Ia,Ta,Ma,Ba,Wa,Ra,za,Ka,Da,_a,Pa,Fa,La,Ua,Va,Ga],c:[Ha,Ca]}=(0,o.A)(Sa,[$a("eo-sidebar",{styleTexts:[ya.A]})],[[Oa({attribute:!1}),1,"menu"],[Oa({type:Boolean}),1,"hiddenFixedIcon"],[Oa(),1,"expandedState"],[Oa(),1,"position"],[ja({type:"actual.width.change"}),1,"actualWidthChangeEvent",e=>(0,l.A)(el,e),(e,t)=>(0,a.A)(el,e,t)],[ja({type:"expanded.state.change"}),1,"expandedStateChangeEvent",e=>(0,l.A)(il,e),(e,t)=>(0,a.A)(il,e,t)]],0,(e=>rl.has((0,ye.A)(e))),p.ReactNextElement)),Ca();var ol,sl=n(1409);let cl,dl,ul;const ml=(0,p.wrapBrick)("eo-icon"),pl=(0,p.wrapBrick)("eo-menu"),hl=(0,p.wrapBrick)("eo-menu-group"),gl=(0,p.wrapBrick)("eo-menu-item-sub-menu"),fl=(0,p.wrapBrick)("eo-menu-item"),vl=(0,p.wrapBrick)("eo-link"),{defineElement:bl,property:xl}=(0,u.createDecorators)();let yl;var kl=new WeakMap;class wl extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,kl,dl(this)),ul(this)}get menu(){return(0,l.A)(kl,this)}set menu(e){(0,a.A)(kl,this,e)}render(){return d().createElement(Al,{menu:this.menu})}}function Al(e){const{menu:t}=e,n=(0,m.getHistory)(),[i,r]=(0,c.useState)(n.location),{pathname:a,search:l}=i,[o,s]=(0,c.useState)([]),[u,p]=(0,c.useState)([]),h=(0,c.useCallback)((()=>{var e;const{selectedKeys:n,openedKeys:i}=(0,f.LP)(null!==(e=null==t?void 0:t.menuItems)&&void 0!==e?e:[],a,l,"");s(n),p(i)}),[null==t?void 0:t.menuItems,a,l]);(0,c.useEffect)((()=>{const e=n.listen((e=>{r(e)}));return h(),e}),[n,h]);const g=(0,c.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 v(e,t){return(0,f.Wf)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return d().createElement(gl,{className:"menu-sub-item",icon:e.icon,titleStyle:{paddingLeft:g(e)},bodyStyle:{paddingLeft:g(e)/2},collapsed:!u.includes(e.key)},d().createElement("span",{slot:"title"},e.title),e.items.map((e=>d().createElement(d().Fragment,{key:e.key},v(e,{inSubmenu:!0})))))})(e):(0,f.IZ)(e)?(e=>{var t;if((null===(t=e.items)||void 0===t?void 0:t.length)>0)return d().createElement(hl,null,d().createElement("span",{slot:"title"},e.title),e.items.map((e=>d().createElement(d().Fragment,{key:e.key},v(e)))))})(e):((e,t)=>d().createElement(fl,{className:b()("menu-item",{"in-submenu":null==t?void 0:t.inSubmenu}),style:{paddingLeft:g(e)||16},icon:e.icon,active:!!e.key&&o.includes(e.key)},d().createElement(vl,{className:"menu-item-link",type:"plain",url:e.to,href:e.href,title:e.text,target:e.target},d().createElement("span",{className:b()("menu-item-text",{"item-has-icon":e.icon})},e.text))))(e,t)}return d().createElement(pl,{className:"menu-container",mode:"vertical"},(null==t?void 0:t.title)&&d().createElement("div",{className:"header"},(null==t?void 0:t.icon)&&d().createElement(ml,null==t?void 0:t.icon),d().createElement("span",{className:"title"},null==t?void 0:t.title)),d().createElement("div",{className:"content"},null==t?void 0:t.menuItems.map((e=>d().createElement(d().Fragment,{key:e.key},v(e))))))}ol=wl,({e:[dl,ul],c:[yl,cl]}=(0,o.A)(ol,[bl("eo-sidebar-sub-menu",{styleTexts:[sl.A]})],[[xl({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),cl();var El,Nl=n(2763);let Sl,Cl,Il,Tl,Ml,Bl,Wl,Rl,zl,Kl,Dl,_l,Pl,Fl,Ll,Ul,Vl,Gl,$l,Ol,jl;const{defineElement:Xl,property:ql,event:Hl}=(0,u.createDecorators)(),Yl=(0,p.wrapBrick)("eo-icon"),Zl=(0,p.wrapBrick)("eo-tooltip");let Ql;var Jl=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,io=new WeakMap,ro=new WeakMap,ao=new WeakMap,lo=new WeakSet,oo=new WeakMap,so=new WeakMap,co=new WeakMap;class uo extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,lo),(0,r.A)(this,Jl,Cl(this,"fixed")),(0,r.A)(this,eo,(Il(this),Tl(this))),(0,r.A)(this,to,(Ml(this),Bl(this,[]))),(0,r.A)(this,no,(Wl(this),Rl(this,!1))),(0,r.A)(this,io,(zl(this),Kl(this))),(0,r.A)(this,ro,(Dl(this),_l(this))),(0,r.A)(this,ao,(Pl(this),Fl(this))),(0,r.A)(this,oo,(Vl(this),Gl(this))),(0,r.A)(this,so,(jl(this),e=>{(0,ke.A)(lo,this,Ll).emit(e)})),(0,r.A)(this,co,(e=>{(0,ke.A)(lo,this,$l).emit({key:e})}))}get position(){return(0,l.A)(Jl,this)}set position(e){(0,a.A)(Jl,this,e)}get directoryTitle(){return(0,l.A)(eo,this)}set directoryTitle(e){(0,a.A)(eo,this,e)}get menuItems(){return(0,l.A)(to,this)}set menuItems(e){(0,a.A)(to,this,e)}get hideRightBorder(){return(0,l.A)(no,this)}set hideRightBorder(e){(0,a.A)(no,this,e)}get suffixBrick(){return(0,l.A)(io,this)}set suffixBrick(e){(0,a.A)(io,this,e)}get defaultSelectedKeys(){return(0,l.A)(ro,this)}set defaultSelectedKeys(e){(0,a.A)(ro,this,e)}render(){return d().createElement(mo,{menuItems:this.menuItems,directoryTitle:this.directoryTitle,hideRightBorder:this.hideRightBorder,suffixIconClick:(0,l.A)(co,this),menuItemClick:(0,l.A)(so,this),defaultSelectedKeys:this.defaultSelectedKeys,suffixBrick:this.suffixBrick})}}function mo(e){const{menuItems:t,directoryTitle:n,hideRightBorder:i,menuItemClick:r,suffixIconClick:a,defaultSelectedKeys:l,suffixBrick:o}=e;return d().createElement("div",{className:b()("directory-container",{"directory-container-not-border":i})},n&&d().createElement("div",{className:"directory-title",title:n},n),d().createElement("div",{className:"directory-menu-list"},t.map(((e,t)=>{var n;return d().createElement("div",{className:b()("menu-item",`menu-item-${e.type}`),key:`${e.key}-${t}`},d().createElement("div",{className:b()(`menu-item-title-${e.type}`),onClick:()=>"item"===e.type&&(null==r?void 0:r({data:e}))},d().createElement("span",{className:b()("menu-title-text",{"menu-title-text-active":null==l?void 0:l.includes(e.key)})},e.title),null!=o&&o.useBrick?d().createElement(wt.ReactUseMultipleBricks,{useBrick:o.useBrick,data:{data:e}}):null,e.suffixIcon&&d().createElement(Zl,{content:e.suffixIconTooltip,placement:"top"},d().createElement(Yl,(0,s.A)({},e.suffixIcon,{className:b()("menu-item-title-suffix-icon",{"menu-item-title-suffix-icon-disabled":e.suffixIconDisabled}),onClick:t=>{t.stopPropagation(),e.suffixIconDisabled?t.preventDefault():null==a||a(e.key)}})))),"group"===e.type&&!(null===(n=e.children)||void 0===n||!n.length)&&e.children.map(((t,n)=>d().createElement("div",{className:"menu-item-title-item",onClick:()=>null==r?void 0:r({data:t,groupKey:e.key}),key:`${t.key}-${n}`},d().createElement("span",{className:b()("menu-title-text",{"menu-title-text-active":null==l?void 0:l.includes(t.key)})},t.title)))))}))))}El=uo,({e:[Cl,Il,Tl,Ml,Bl,Wl,Rl,zl,Kl,Dl,_l,Pl,Fl,Ll,Ul,Vl,Gl,$l,Ol,jl],c:[Ql,Sl]}=(0,o.A)(El,[Xl("eo-directory",{styleTexts:[Nl.A]})],[[ql(),1,"position"],[ql(),1,"directoryTitle"],[ql({attribute:!1}),1,"menuItems"],[ql({type:Boolean}),1,"hideRightBorder"],[ql({attribute:!1}),1,"suffixBrick"],[ql({attribute:!1}),1,"defaultSelectedKeys"],[Hl({type:"menu.item.click"}),1,"menuItemClickEvent",e=>(0,l.A)(ao,e),(e,t)=>(0,a.A)(ao,e,t)],[Hl({type:"suffix.icon.click"}),1,"suffixIconClickEvent",e=>(0,l.A)(oo,e),(e,t)=>(0,a.A)(oo,e,t)]],0,(e=>co.has((0,ye.A)(e))),p.ReactNextElement)),Sl();var po=n(6384);const ho=d().createContext({expandedKeysSet:new Set,selectedKeysSet:new Set,onExpand:()=>{},onSelect:()=>{}}),go=()=>d().useContext(ho),fo=(0,p.wrapBrick)("eo-directory-tree-leaf",{onSelect:"select"}),vo=(0,p.wrapBrick)("eo-directory-tree-internal-node",{onExpand:"expand",onSelect:"select"});function bo(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{selectedKeysSet:a,onSelect:l,suffixBrick:o}=go(),s=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(fo,{depth:r,selected:a.has(n.key),icon:n.icon,faded:n.faded,onSelect:()=>{const e=[n.key];l({keys:e,node:s})},className:b()({"show-suffix-when-hover":"hover"===(null==o?void 0:o.when)})},d().createElement("span",{title:n.title},n.title),(null==o?void 0:o.useBrick)&&d().createElement("div",{className:"suffix",slot:"suffix"},d().createElement(wt.ReactUseMultipleBricks,{useBrick:o.useBrick,data:s})))}function xo(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{expandedKeysSet:a,onExpand:l,selectedKeysSet:o,onSelect:s,internalNodeSelectable:u,suffixBrick:m}=go(),p=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(vo,{depth:r,selectable:u,icon:n.icon,faded:n.faded,expanded:a.has(n.key),selected:o.has(n.key),onExpand:e=>{e.detail?a.add(n.key):a.delete(n.key);const t=[...a];l({keys:t,node:p})},onSelect:()=>{const e=[n.key];s({keys:e,node:p})},className:b()({"show-suffix-when-hover":"hover"===(null==m?void 0:m.when)})},d().createElement("span",{slot:"label",title:n.title},n.title),(null==m?void 0:m.useBrick)&&d().createElement("div",{className:"suffix",slot:"suffix"},d().createElement(wt.ReactUseMultipleBricks,{useBrick:m.useBrick,data:p})))}function yo(e){const{treeData:t}=e;return Array.isArray(t.children)?d().createElement(xo,{treeData:t}):d().createElement(bo,{treeData:t})}function ko(e){const{treeData:t}=e;return t.map((e=>d().createElement(yo,{key:e.key,treeData:e})))}function wo(e){return e.reduce(((e,t)=>{if(!Array.isArray(t.children))return e;{const n=[t.key].concat(wo(t.children));return e.concat(n)}}),[])}function Ao(e,t){return e.reduce(((e,n)=>{if(!Array.isArray(n.children))return e;{var i;const r=null===(i=n.children)||void 0===i?void 0:i.some((e=>t.has(e.key))),a=Ao(n.children,t),l=a.concat(r||a.length?[n.key]:[]);return e.concat(l)}}),[])}function Eo(e,t,n){if(!t)return{data:e,expandedKeys:[]};const i=t.toLowerCase(),r=[],a=e.map((e=>{const t=function(e,t,n){if(n.flatMap((t=>No((0,Ae.get)(e,t)))).some((e=>e.toLowerCase().includes(t))))return e}(e,i,n);if(Array.isArray(e.children)){const t=Eo(e.children,i,n),a=t.data;if(null!=a&&a.length)return r.push(e.key,...t.expandedKeys),{...e,children:a}}if(t)return e})).filter(Boolean);return{data:a,expandedKeys:r}}function No(e){const t=[];if((0,Ae.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(No(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const n in e)t.push(String(n),No(e[n]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}var So;let Co,Io,To,Mo,Bo,Wo,Ro,zo,Ko,Do,_o,Po,Fo,Lo,Uo,Vo,Go,$o,Oo,jo,Xo,qo,Ho,Yo,Zo,Qo,Jo,es;const{defineElement:ts,property:ns,method:is,event:rs}=(0,u.createDecorators)(),as=(0,p.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"});let ls;var os=new WeakMap,ss=new WeakMap,cs=new WeakMap,ds=new WeakMap,us=new WeakMap,ms=new WeakMap,ps=new WeakMap,hs=new WeakMap,gs=new WeakMap,fs=new WeakMap,vs=new WeakSet,bs=new WeakMap,xs=new WeakMap,ys=new WeakMap;class ks extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,vs),(0,r.A)(this,os,(Co(this),To(this,[]))),(0,r.A)(this,ss,(Mo(this),Bo(this))),(0,r.A)(this,cs,(Wo(this),Ro(this))),(0,r.A)(this,ds,(zo(this),Ko(this))),(0,r.A)(this,us,(Do(this),_o(this))),(0,r.A)(this,ms,(Po(this),Fo(this))),(0,r.A)(this,ps,(Lo(this),Uo(this))),(0,r.A)(this,hs,(Vo(this),Go(this))),(0,r.A)(this,gs,($o(this),Oo(this))),(0,r.A)(this,fs,(jo(this),Xo(this))),(0,r.A)(this,bs,(Yo(this),e=>{this.expandedKeys=e.keys,(0,ke.A)(vs,this,qo).emit(e)})),(0,r.A)(this,xs,Zo(this)),(0,r.A)(this,ys,(es(this),e=>{this.selectedKeys=e.keys,(0,ke.A)(vs,this,Qo).emit(e)}))}get data(){return(0,l.A)(os,this)}set data(e){(0,a.A)(os,this,e)}get directoryTitle(){return(0,l.A)(ss,this)}set directoryTitle(e){(0,a.A)(ss,this,e)}get internalNodeSelectable(){return(0,l.A)(cs,this)}set internalNodeSelectable(e){(0,a.A)(cs,this,e)}get searchable(){return(0,l.A)(ds,this)}set searchable(e){(0,a.A)(ds,this,e)}get placeholder(){return(0,l.A)(us,this)}set placeholder(e){(0,a.A)(us,this,e)}get searchFields(){return(0,l.A)(ms,this)}set searchFields(e){(0,a.A)(ms,this,e)}get suffixBrick(){return(0,l.A)(ps,this)}set suffixBrick(e){(0,a.A)(ps,this,e)}get selectedKeys(){return(0,l.A)(hs,this)}set selectedKeys(e){(0,a.A)(hs,this,e)}get expandedKeys(){return(0,l.A)(gs,this)}set expandedKeys(e){(0,a.A)(gs,this,e)}expandAll(){this.expandedKeys=wo(this.data)}collapseAll(){this.expandedKeys=[]}expandAccordingToSelectedKeys(){this.expandedKeys=Ao(this.data,new Set(this.selectedKeys))}render(){return d().createElement(ws,{element:this,data:this.data,directoryTitle:this.directoryTitle,internalNodeSelectable:this.internalNodeSelectable,placeholder:this.placeholder,searchable:this.searchable,searchFields:this.searchFields,suffixBrick:this.suffixBrick,selectedKeys:this.selectedKeys,expandedKeys:this.expandedKeys,onExpand:(0,l.A)(bs,this),onSelect:(0,l.A)(ys,this)})}}function ws(e){const{element:t,data:n,directoryTitle:i,internalNodeSelectable:r,searchable:a,searchFields:l,placeholder:o,suffixBrick:s,onSelect:u,onExpand:m}=e,p=(0,c.useMemo)((()=>new Set(e.expandedKeys)),[e.expandedKeys]),h=(0,c.useMemo)((()=>new Set(e.selectedKeys)),[e.selectedKeys]),[g,f]=(0,c.useState)(""),v=(0,c.useMemo)((()=>{const e=Eo(n,g,(l||[]).concat("title"));return g&&(t.expandedKeys=e.expandedKeys),e.data}),[n,g,l]),b=(0,c.useMemo)((()=>function(e,t){const n=[];return function e(i,r){return i.map(((i,a)=>{const l=r?`${r.pos}-${a}`:String(a),o={title:i.title,key:i.key,pos:l,depth:l.split("-").length-1,index:a,data:i,parent:r};return n.push(o),Array.isArray(i.children)?o.children=t.has(i.key)?e(i.children,o):[]:o.children=void 0,o}))}(e),n}(v,p)),[v,p]);return d().createElement(ho.Provider,{value:{expandedKeysSet:p,selectedKeysSet:h,internalNodeSelectable:r,onSelect:u,onExpand:m,suffixBrick:s}},d().createElement("div",{className:"directory-container"},i&&d().createElement("div",{className:"directory-title-container"},d().createElement("div",{className:"directory-title",title:i},i),d().createElement("div",{className:"directory-title-toolbar"},d().createElement("slot",{name:"toolbar"}))),a&&d().createElement(as,{className:"directory-search",trim:!0,placeholder:o,onSearch:e=>{f(e.detail)}}),d().createElement("div",{className:"tree"},d().createElement(ko,{treeData:b}))))}So=ks,({e:[To,Mo,Bo,Wo,Ro,zo,Ko,Do,_o,Po,Fo,Lo,Uo,Vo,Go,$o,Oo,jo,Xo,qo,Ho,Yo,Zo,Qo,Jo,es,Co],c:[ls,Io]}=(0,o.A)(So,[ts("eo-directory-tree",{styleTexts:[po.A]})],[[ns({attribute:!1}),1,"data"],[ns(),1,"directoryTitle"],[ns({type:Boolean}),1,"internalNodeSelectable"],[ns({type:Boolean}),1,"searchable"],[ns(),1,"placeholder"],[ns({attribute:!1}),1,"searchFields"],[ns({attribute:!1}),1,"suffixBrick"],[ns({attribute:!1}),1,"selectedKeys"],[ns({attribute:!1}),1,"expandedKeys"],[is(),2,"expandAll"],[is(),2,"collapseAll"],[is(),2,"expandAccordingToSelectedKeys"],[rs({type:"expand"}),1,"expandEvent",e=>(0,l.A)(fs,e),(e,t)=>(0,a.A)(fs,e,t)],[rs({type:"select"}),1,"selectEvent",e=>(0,l.A)(xs,e),(e,t)=>(0,a.A)(xs,e,t)]],0,(e=>ys.has((0,ye.A)(e))),p.ReactNextElement)),Io();var As,Es=n(8114);let Ns,Ss,Cs,Is,Ts,Ms,Bs,Ws,Rs,zs,Ks,Ds,_s;const{defineElement:Ps,property:Fs,event:Ls}=(0,u.createDecorators)(),Us=(0,p.wrapBrick)("eo-icon");let Vs;var Gs=new WeakMap,$s=new WeakMap,Os=new WeakMap,js=new WeakMap,Xs=new WeakMap,qs=new WeakSet,Hs=new WeakMap;class Ys extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,qs),(0,r.A)(this,Gs,Ss(this,0)),(0,r.A)(this,$s,(Cs(this),Is(this))),(0,r.A)(this,Os,(Ts(this),Ms(this))),(0,r.A)(this,js,(Bs(this),Ws(this))),(0,r.A)(this,Xs,(Rs(this),zs(this))),(0,r.A)(this,Hs,(_s(this),()=>{(0,ke.A)(qs,this,Ks).emit()}))}get depth(){return(0,l.A)(Gs,this)}set depth(e){(0,a.A)(Gs,this,e)}get selected(){return(0,l.A)($s,this)}set selected(e){(0,a.A)($s,this,e)}get icon(){return(0,l.A)(Os,this)}set icon(e){(0,a.A)(Os,this,e)}get faded(){return(0,l.A)(js,this)}set faded(e){(0,a.A)(js,this,e)}render(){return d().createElement(Zs,{depth:this.depth,icon:this.icon,onSelect:(0,l.A)(Hs,this)})}}function Zs(e){let{depth:t,icon:n,onSelect:i}=e;const r=(0,c.useRef)(null),a=(0,c.useRef)(null);return(0,c.useEffect)((()=>{const e=r.current,t=()=>{i()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[i]),(0,c.useEffect)((()=>{const e=a.current,t=e=>{e.stopPropagation()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[]),d().createElement("div",{className:"tree-item",ref:r},d().createElement("div",{className:"tree-item-indentation",style:{width:10*t}}),d().createElement("div",{className:"tree-item-content"},d().createElement("div",{className:"tree-item-expand-button"}),n&&d().createElement(Us,(0,s.A)({},n,{className:"tree-item-icon"})),d().createElement("div",{className:"tree-item-label"},d().createElement("slot",null))),d().createElement("div",{className:"tree-item-suffix",ref:a},d().createElement("slot",{name:"suffix"})))}As=Ys,({e:[Ss,Cs,Is,Ts,Ms,Bs,Ws,Rs,zs,Ks,Ds,_s],c:[Vs,Ns]}=(0,o.A)(As,[Ps("eo-directory-tree-leaf",{styleTexts:[Es.A]})],[[Fs({type:Number}),1,"depth"],[Fs({type:Boolean}),1,"selected"],[Fs({attribute:!1}),1,"icon"],[Fs({type:Boolean,render:!1}),1,"faded"],[Ls({type:"select"}),1,"selectEvent",e=>(0,l.A)(Xs,e),(e,t)=>(0,a.A)(Xs,e,t)]],0,(e=>Hs.has((0,ye.A)(e))),p.ReactNextElement)),Ns();var Qs=n(9010);const Js=e=>c.createElement("svg",(0,s.A)({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14"},e),c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.743 9.42-4.49-5.206a.34.34 0 0 0-.506 0L2.257 9.42c-.167.194-.016.478.253.478h8.98c.27 0 .42-.284.253-.478"}));var ec;let tc,nc,ic,rc,ac,lc,oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,kc;const{defineElement:wc,property:Ac,event:Ec}=(0,u.createDecorators)(),Nc=(0,p.wrapBrick)("eo-icon");let Sc;var Cc=new WeakMap,Ic=new WeakMap,Tc=new WeakMap,Mc=new WeakMap,Bc=new WeakMap,Wc=new WeakMap,Rc=new WeakMap,zc=new WeakSet,Kc=new WeakMap,Dc=new WeakMap,_c=new WeakMap;class Pc extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,zc),(0,r.A)(this,Cc,nc(this,0)),(0,r.A)(this,Ic,(ic(this),rc(this))),(0,r.A)(this,Tc,(ac(this),lc(this))),(0,r.A)(this,Mc,(oc(this),sc(this))),(0,r.A)(this,Bc,(cc(this),dc(this))),(0,r.A)(this,Wc,(uc(this),mc(this))),(0,r.A)(this,Rc,(pc(this),hc(this))),(0,r.A)(this,Kc,(vc(this),()=>{(0,ke.A)(zc,this,gc).emit(!this.expanded)})),(0,r.A)(this,Dc,bc(this)),(0,r.A)(this,_c,(kc(this),()=>{(0,ke.A)(zc,this,xc).emit()}))}get depth(){return(0,l.A)(Cc,this)}set depth(e){(0,a.A)(Cc,this,e)}get expanded(){return(0,l.A)(Ic,this)}set expanded(e){(0,a.A)(Ic,this,e)}get selectable(){return(0,l.A)(Tc,this)}set selectable(e){(0,a.A)(Tc,this,e)}get selected(){return(0,l.A)(Mc,this)}set selected(e){(0,a.A)(Mc,this,e)}get icon(){return(0,l.A)(Bc,this)}set icon(e){(0,a.A)(Bc,this,e)}get faded(){return(0,l.A)(Wc,this)}set faded(e){(0,a.A)(Wc,this,e)}render(){return d().createElement(Fc,{depth:this.depth,selectable:this.selectable,expanded:this.expanded,icon:this.icon,onExpand:(0,l.A)(Kc,this),onSelect:(0,l.A)(_c,this)})}}function Fc(e){let{depth:t,selectable:n,icon:i,onExpand:r,onSelect:a}=e;const l=(0,c.useRef)(null),o=(0,c.useRef)(null),u=(0,c.useRef)(null);return(0,c.useEffect)((()=>{if(n){const e=l.current,t=o.current,n=()=>{a()},i=e=>{e.stopPropagation(),r()};return null==e||e.addEventListener("click",n),null==t||t.addEventListener("click",i),()=>{null==e||e.removeEventListener("click",n),null==t||t.removeEventListener("click",i)}}{const e=l.current,t=()=>{r()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}}),[n,a,r]),(0,c.useEffect)((()=>{const e=u.current,t=e=>{e.stopPropagation()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[]),d().createElement(d().Fragment,null,d().createElement("div",{className:"tree-item",ref:l},d().createElement("div",{className:"tree-item-indentation",style:{width:10*t}}),d().createElement("div",{className:"tree-item-content"},d().createElement("div",{className:"tree-item-expand-button",ref:o},d().createElement(Js,{className:"tree-item-expand-arrow"})),i&&d().createElement(Nc,(0,s.A)({},i,{className:"tree-item-icon"})),d().createElement("div",{className:"tree-item-label"},d().createElement("slot",{name:"label"}))),d().createElement("div",{className:"tree-item-suffix",ref:u},d().createElement("slot",{name:"suffix"}))),d().createElement("div",{className:"tree-item-children"},d().createElement("div",{className:"tree-item-inner"},d().createElement("slot",null))))}ec=Pc,({e:[nc,ic,rc,ac,lc,oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,kc],c:[Sc,tc]}=(0,o.A)(ec,[wc("eo-directory-tree-internal-node",{styleTexts:[Qs.A]})],[[Ac({type:Number}),1,"depth"],[Ac({type:Boolean}),1,"expanded"],[Ac({type:Boolean}),1,"selectable"],[Ac({type:Boolean}),1,"selected"],[Ac({attribute:!1}),1,"icon"],[Ac({type:Boolean,render:!1}),1,"faded"],[Ec({type:"expand"}),1,"expandEvent",e=>(0,l.A)(Rc,e),(e,t)=>(0,a.A)(Rc,e,t)],[Ec({type:"select"}),1,"selectEvent",e=>(0,l.A)(Dc,e),(e,t)=>(0,a.A)(Dc,e,t)]],0,(e=>_c.has((0,ye.A)(e))),p.ReactNextElement)),tc();var Lc,Uc=n(5367);let Vc;const{defineElement:Gc}=(0,u.createDecorators)(),$c=(0,p.wrapBrick)("eo-icon"),Oc=(0,p.wrapBrick)("eo-link");let jc;class Xc extends p.ReactNextElement{render(){return d().createElement(qc,null)}}function qc(){const e=(0,m.getRuntime)().getBrandSettings(),t=(0,c.useMemo)((()=>e.menu_bar_logo_url?d().createElement("img",{src:e.menu_bar_logo_url,className:"personalized-logo"}):d().createElement($c,{category:"blueprint",icon:"easyops",lib:"easyops",className:"easyops-icon"})),[e.menu_bar_logo_url]);return d().createElement("div",{className:"logo-container"},"true"===e.menu_bar_logo_no_link?t:d().createElement(Oc,{type:"plain",url:"/",className:"logo-link"},t))}Lc=Xc,[jc,Vc]=(0,o.A)(Lc,[Gc("nav.nav-logo",{styleTexts:[Uc.A]})],[],0,void 0,p.ReactNextElement).c,Vc();var Hc=n(3922),Yc=n(9896),Zc=n(8627),Qc=n(7439);let Jc=function(e){return e.VIEW_DETAILS="VIEW_DETAILS",e.DISMISS="DISMISS",e}({});const ed="bricks/nav/poll-announce";var td=n(6651),nd=n(1784),id={};id.styleTagTransform=pn(),id.setAttributes=cn(),id.insert=on().bind(null,"head"),id.domAPI=an(),id.insertStyleElement=un(),nn()(nd.A,id);const rd=nd.A&&nd.A.locals?nd.A.locals:void 0;var ad;let ld,od,sd,cd,dd,ud,md,pd,hd,gd,fd,vd,bd;(0,Z.initializeReactI18n)(ed,{en:{VIEW_DETAILS:"View details",DISMISS:"Dismiss"},zh:{VIEW_DETAILS:"查看详情",DISMISS:"忽略"}});const{defineElement:xd,property:yd,event:kd}=(0,u.createDecorators)(),wd=(0,ae.unwrapProvider)("basic.show-notification"),Ad=new Set;let Ed;var Nd=new WeakMap,Sd=new WeakMap,Cd=new WeakMap,Id=new WeakSet,Td=new WeakMap,Md=new WeakMap,Bd=new WeakMap;class Wd extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Id),(0,r.A)(this,Nd,od(this)),(0,r.A)(this,Sd,(sd(this),cd(this))),(0,r.A)(this,Cd,(dd(this),ud(this))),(0,r.A)(this,Td,(hd(this),()=>{(0,ke.A)(Id,this,md).emit()})),(0,r.A)(this,Md,gd(this)),(0,r.A)(this,Bd,(bd(this),()=>{(0,ke.A)(Id,this,fd).emit()}))}get pollEnabled(){return(0,l.A)(Nd,this)}set pollEnabled(e){(0,a.A)(Nd,this,e)}get realTimeMessage(){return(0,l.A)(Sd,this)}set realTimeMessage(e){(0,a.A)(Sd,this,e)}render(){return d().createElement(zd,{pollEnabled:this.pollEnabled,realTimeMessage:this.realTimeMessage,onOpen:(0,l.A)(Bd,this),onClose:(0,l.A)(Td,this)})}}async function Rd(e,t){let{title:n,data:i,instanceId:r}=e;const a=i.replace(/<[^>]+>| /gim,"\r\n").replace(/“/gim,"“").replace(/”/gim,"”"),l=a.length>100?a.slice(0,100):a;try{await wd({placement:"topRight",icon:{lib:"antd",theme:"filled",icon:"sound",style:{color:"var(--theme-orange-color)"}},title:n,htmlMessage:`<div class="${rd.message}">${l}</div>`,closable:!0,showConfirm:!0,confirmText:Hc.i18n.t(`${ed}:${Jc.VIEW_DETAILS}`),confirmLink:{url:`/announcement-management/announcement-front/content?instanceId=${r}`,target:"_blank"},showCancel:!0,cancelText:Hc.i18n.t(`${ed}:${Jc.DISMISS}`)})}catch{}finally{if(!Ad.has(r)){Ad.add(r);try{await(0,Yc.w)({instanceIds:[r]}),t()}catch(e){console.error("ignore announce failed:",e)}}}}function zd(e){let{pollEnabled:t,realTimeMessage:n,onOpen:i,onClose:r}=e;return(0,c.useEffect)((()=>{(async()=>{const e=(await(0,Zc.F)({})).list;e.length&&e.filter((e=>e.isPopup)).reverse().forEach((e=>{Rd(e,r)}))})()}),[]),(0,c.useEffect)((()=>{!t&&n&&Rd(n,r)}),[r,t,n]),(0,c.useEffect)((()=>{if(!t)return;let e=!1;const n=async()=>{if(!e)try{Rd(await(0,Qc.$)({interceptorParams:{ignoreLoadingBar:!0}}),r),i(),n()}catch(e){var t;const i=(0,m.httpErrorToString)(e);null!=i&&null!==(t=i.toLowerCase())&&void 0!==t&&t.includes("timeout")&&n()}};return n(),()=>{e=!0}}),[r,i,t]),null}ad=Wd,({e:[od,sd,cd,dd,ud,md,pd,hd,gd,fd,vd,bd],c:[Ed,ld]}=(0,o.A)(ad,[xd("nav.poll-announce",{styleTexts:[td.A]})],[[yd({type:Boolean}),1,"pollEnabled"],[yd({attribute:!1}),1,"realTimeMessage"],[kd({type:"notification.close"}),1,"closeEvent",e=>(0,l.A)(Cd,e),(e,t)=>(0,a.A)(Cd,e,t)],[kd({type:"notification.open"}),1,"openEvent",e=>(0,l.A)(Md,e),(e,t)=>(0,a.A)(Md,e,t)]],0,(e=>Bd.has((0,ye.A)(e))),p.ReactNextElement)),ld();var Kd=n(1321),Dd=n(4167),_d=n(2105);const Pd=new Set(["name","id","homepage","localeName"]);function Fd(e,t,n){if("string"==typeof e){if((0,Kd.isEvaluable)(e)){let i;const r={usedProperties:new Set,hasNonStaticUsage:!1};try{i=(0,Kd.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:(0,_d.beforeVisitGlobalMember)(r,["APP"])}})}catch(t){console.error(`Parse menu title expression "${e}" failed:`,t)}if(i&&(!i.attemptToVisitGlobals.has("APP")||n&&!r.hasNonStaticUsage&&[...r.usedProperties].every((e=>Pd.has(e))))){const r={};for(const e of i.attemptToVisitGlobals)switch(e){case"I18N":r[e]=Hc.i18n.getFixedT(null,[t].filter(Boolean));break;case"APP":r[e]={...n,localeName:null==n?void 0:n.name}}const a=(0,Dd.supply)(i.attemptToVisitGlobals,r);let l=!0;for(const e of i.attemptToVisitGlobals)if(!(0,ae.hasOwnProperty)(a,e)){l=!1;break}if(l)try{const t=(0,Kd.cook)(i.expression,i.source,{globalVariables:a});if("string"==typeof t)return t;console.error(`The result of menu title expression "${e}" is not a string:`,t)}catch(t){console.error(`Evaluate menu title expression "${e}" failed:`,t)}}}else if(n)return e.replace(/\$\{\s*APP\s*\.\s*(?:name|localeName)\s*\}/g,(()=>n.name));return e}}function Ld(e){const t=new WeakMap,n=[];for(const n of e){var i;const e=`customize-menu/${n.menuId}~${n.app[0].appId}+${n.instanceId}`;Object.entries(null!==(i=n.i18n)&&void 0!==i?i:{}).forEach((t=>{let[n,i]=t;Hc.i18n.addResourceBundle(n,e,i)})),t.set(n,e)}return{menuWithI18n:t,dispose:()=>{for(const[e,t]of n)Hc.i18n.removeResourceBundle(e,t)}}}const Ud=Symbol("menuI18nNamespace"),Vd=Symbol("overrideApp"),Gd={lib:"fa",icon:"bars"};function $d(e){return null!=e&&e.imgSrc?Gd:null!=e?e:Gd}function Od(e,t,n,i){return null==e?void 0:e.map((e=>{var r;const a=e.groupId&&n.get(e.groupId);return a&&n.delete(e.groupId),{...e,children:(null!==(r=Od(e.children,t,n,i))&&void 0!==r?r:[]).concat(a?a.flatMap((e=>Od(e.items,e,n,i))):[]),[Vd]:t.overrideApp,[Ud]:i.get(t)}}))}function jd(e){return function(e){return(0,Ae.sortBy)(e,(e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}),"text")}(e).map((e=>({...e,children:jd(e.children)})))}customElements.define("nav.get-menu-config-tree",(0,ae.createProviderClass)((async function(e){var t;const n=[],i=e.find((e=>"main"===e.type));if(!i)return[];const r=[],a=new Map,{menuWithI18n:l,dispose:o}=Ld(e);for(const t of e){var s;if((!t.dynamicItems||!t.itemsResolve)&&null!==(s=t.items)&&void 0!==s&&s.length)if("inject"===t.type&&t.injectMenuGroupId){let e=a.get(t.injectMenuGroupId);e||(e=[],a.set(t.injectMenuGroupId,e)),e.push(t)}else r.push(t)}n.push("0");const c=jd(r.flatMap((e=>Od(e.items,e,a,l)))),d=[{key:"0",__keys:n,title:null!==(t=Fd(i.title,l.get(i),i.overrideApp))&&void 0!==t?t:i.menuId,data:i,icon:$d(i.icon),children:function e(t,i){const r=null==t?void 0:t.map(((t,r)=>{var a;const l=`${i}-${r}`;return n.push(l),{key:l,title:null!==(a=Fd(t.text,t[Ud],t[Vd]))&&void 0!==a?a:"",data:t,icon:$d(t.icon),faded:t.hidden,children:e(t.children,l)}}));return null!=r&&r.length?r:void 0}(c,"0")}];return o(),d}))),customElements.define("nav.get-menu-config-options",(0,ae.createProviderClass)((async function(e){const t=[],{menuWithI18n:n,dispose:i}=Ld(e);for(const i of e){var r;t.push({label:`${null!==(r=Fd(i.title,n.get(i),i.overrideApp))&&void 0!==r?r:""} (${i.menuId})`,value:i.menuId})}return i(),t})));const Xd="bricks/nav/query-search";Hc.i18n.getFixedT(null,Xd);var qd=n(9139),Hd=n(3748),Yd=n(6768),Zd=n(5862),Qd=n(5694),Jd=n(8406);let eu;var tu,nu;(0,Hc.initializeI18n)(Xd,{en:{},zh:{}});const{defineElement:iu}=(0,u.createDecorators)(),ru=`querier-search-recent-visits:${null===(tu=we.auth.getAuth())||void 0===tu?void 0:tu.org}`,au=new At.G(localStorage),lu="search/result?q=%{q}%",ou="search/new/ipSearch?q=%{q}%",su=(0,p.wrapBrick)("eo-icon"),cu=(0,p.wrapBrick)("eo-button"),du=((0,p.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"}),(0,p.wrapBrick)("eo-tooltip"));let uu;class mu extends p.ReactNextElement{render(){return d().createElement(hu,{shadowRoot:this.shadowRoot})}}nu=mu,[uu,eu]=(0,o.A)(nu,[iu("nav.query-search",{styleTexts:[qd.A]})],[],0,void 0,p.ReactNextElement).c,eu();var pu=function(e){return e.fullText="fullText",e.instanceSearch="instanceSearch",e.relationSearch="relationSearch",e.link="link",e.ipSearch="ipSearch",e}(pu||{});function hu(e){var t,n;const{shadowRoot:i}=e,r=(0,c.useRef)(null),a=(0,c.useRef)(null),l=(null===(t=(0,m.getRuntime)().getCurrentApp())||void 0===t?void 0:t.id)||"",[o,s]=(0,c.useState)([]),u=(0,wt.useCurrentTheme)(),[p,h]=(0,c.useState)(),[g,f]=(0,c.useState)(),[v,x]=(0,c.useState)([]),[y,k]=(0,c.useState)([]),[w,A]=(0,c.useState)(),E=()=>{var e;return document.documentElement.clientWidth-((null==i||null===(e=i.host)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.clientWidth)||0)-500<200},N=(0,c.useMemo)((()=>(0,Qd.VC)()),[]),S=e=>{var t;const n=p?(null==w||null===(t=w.config)||void 0===t?void 0:t.url)||"":ou,i=(n.startsWith("/")?n:"/"+n).replaceAll("%{q}%",e||g||"");(0,m.getHistory)().push(i)};return(0,c.useEffect)((()=>{var e;p&&(null===(e=r.current)||void 0===e||e.focus());const t=e=>{p&&a.current&&!e.composedPath().includes(a.current)&&h(!1)},n=e=>{const t=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey";!p&&e[t]&&"k"===e.key?(e.preventDefault(),E()?S():h(!0)):"Escape"!==e.key&&"Esc"!==e.key||!p||h(!1)};return window.addEventListener("click",t,!0),window.addEventListener("keydown",n),()=>{window.removeEventListener("click",t),window.removeEventListener("keydown",n)}}),[p]),(0,c.useEffect)((()=>{!v.length&&p&&(async()=>{const e=[{type:pu.fullText,name:"全文搜索",config:{url:lu}},{type:pu.ipSearch,name:"ip搜索",config:{url:ou}}];try{var t;const n=(null===(t=(await(0,Jd.y)("QUERIER_CONFIG@EASYOPS",{page:1,page_size:100,fields:["name","type","disabled","config","showInApps"]})).list)||void 0===t?void 0:t.map((e=>{const t=e,n=t.config||{url:""};return t.type===pu.fullText?n.url=lu:t.type===pu.ipSearch&&(n.url=ou),{...t,config:n}})))||[];x((null==n?void 0:n.length)>0?n:e)}catch{x(e)}})()}),[p]),(0,c.useEffect)((()=>{const e=v.filter((e=>{var t,n;return!e.disabled&&(!(null!==(t=e.showInApps)&&void 0!==t&&t.length)||(null===(n=e.showInApps)||void 0===n?void 0:n.length)&&e.showInApps.includes(l))})).map((e=>({...e,label:e.name,value:e.instanceId||e.type})));k(e),A(e.find((e=>e.type===pu.ipSearch))||e[0])}),[v]),(0,c.useEffect)((()=>{var e;s(null!==(e=au.getItem(`${ru}-${null==w?void 0:w.name}`))&&void 0!==e?e:[])}),[w]),d().createElement(Hd.Ay,{theme:{algorithm:"dark-v2"===u?Yd.A.darkAlgorithm:Yd.A.defaultAlgorithm}},d().createElement(Qd.N7,{container:i,cache:N},d().createElement("div",{style:{position:"relative"},ref:a},d().createElement("div",{className:b()("container",{containerShowInput:p,inputContentSlideout:!1===p}),onClick:e=>{e.stopPropagation()}},d().createElement("div",{className:b()("inputContent",{inputContentSlidein:p,inputContentSlideout:!1===p})},d().createElement("div",{className:b()("input-addon-wrapper")},d().createElement("span",{className:"input-affix-wrapper"},d().createElement("span",{className:"input-before-addon"},d().createElement(Zd.A,{value:null==w?void 0:w.value,getPopupContainer:e=>e.parentElement,showSearch:!0,variant:"borderless",style:{width:"100px"},options:y,onChange:e=>{A(y.find((t=>t.type===e||t.instanceId===e)))}})),d().createElement("input",{placeholder:(null==w||null===(n=w.config)||void 0===n?void 0:n.searchPlaceholder)||((null==w?void 0:w.type)===pu.ipSearch?"输入IP查询主机关联的应用、系统等资源":(null==w?void 0:w.type)===pu.fullText?'搜索应用、主机等信息,支持""精确搜索':""),ref:r,value:g,onChange:e=>{f(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&g&&(au.setItem(`${ru}-${null==w?void 0:w.name}`,(0,Ae.uniq)([g,...o].slice(0,5))),S())}}),!!g&&d().createElement("span",{className:"input-suffix"},d().createElement(su,{className:"input-clear-icon",lib:"antd",icon:"close-circle",theme:"filled",onClick:()=>{f("")}}))))),!p&&d().createElement(du,{content:"IP搜索",placement:"left"},d().createElement(cu,{onClick:()=>{E()?S():h(!0)},className:b()("button",{buttonSildeint:!1===p}),shape:"circle",type:"ghost",buttonStyle:{border:"none",background:"none",fontSize:"16px"},icon:{icon:"search",theme:"outlined",lib:"antd"}}))),d().createElement("div",{className:b()("historySearchContainer",{historySearchContainerSlidein:p,historySearchContainerSlideout:!1===p})},d().createElement("div",{className:"historySearchContent"},d().createElement("div",{className:"latestSearchText"},"最近搜索"),d().createElement("div",{className:"latestSearchTagContainer"},o.map((e=>d().createElement("span",{key:e,className:"latestSearchTagContent",onClick:()=>{au.setItem(`${ru}-${null==w?void 0:w.name}`,(0,Ae.uniq)([e,...o].slice(0,5))),S(e)}},d().createElement("span",{className:"latestSearchTagText",title:e},e)))),!o.length&&d().createElement("div",{className:"emptyText"},"暂无搜索记录"))),d().createElement("div",{className:"quickSearchTip"},"快捷搜索(Cmd/Ctrl+K)")))))}},5367:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.logo-container{position:relative;display:flex;justify-content:flex-start;align-items:center}.logo-link{cursor:pointer}.personalized-logo{height:24px;vertical-align:top}.easyops-icon{display:block;font-size:24px;color:var(--color-brand)}",""]);const o=l.toString()},6384:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.directory-container{background-color:var(--color-fill-global-bg-3)}.directory-container .directory-title-container{margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:8px}.directory-container .directory-title-container .directory-title{font-size:16px;color:var(--text-color-title);line-height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.directory-container .directory-search{display:block;margin-bottom:12px}.directory-container .tree > *:not(:last-child){margin-bottom:8px}.show-suffix-when-hover:not(:hover) .suffix{display:none}",""]);const o=l.toString()},6405:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.app-bar-container{height:var(--app-bar-height)}.app-bar{position:relative;z-index:999;box-shadow:var(--top-nav-shadow)}.app-bar.fixed,\n.app-bar.absolute{right:0;left:0;top:0}.app-bar.fixed{position:fixed}.app-bar.absolute{position:absolute}.app-bar-content{display:flex;justify-content:space-between;align-items:center;height:var(--app-bar-height);background-color:var(--top-navigation-bg);padding:0 16px;transition:var(--launchpad-backdrop-transition)}.left{display:flex;flex:1}.right{display:flex;justify-content:end}",""]);const o=l.toString()},6651:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:inline-block}:host([hidden]){display:none}",""]);const o=l.toString()},6859:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.recent-visits{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));max-height:56px;overflow:hidden}.recent-visits span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-visits eo-link{display:block;min-width:0}.recent-visits eo-link::part(link){background-color:var(--color-fill-bg-base-1);border-radius:3px;color:var(--color-header-text);display:flex;align-items:center;height:24px;padding:0 8px}.recent-visits eo-link:hover::part(link){color:var(--color-brand-hover)}",""]);const o=l.toString()},7061:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.alert{height:32px;padding:0 20px;display:flex;justify-content:center;align-items:center}.text{color:var(--antd-text-color);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon{margin-left:20px;cursor:pointer;color:#8c8c8c}.info{background-color:var(--palette-blue-1)}.warning{background-color:var(--palette-amber-1)}",""]);const o=l.toString()},7839:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,':root{--eo-search-launchpad-menu-icon-color:#8c8c8c}html[data-theme="dark"],\nhtml[data-theme="dark-v2"]{--eo-search-launchpad-menu-icon-color:rgba(255,255,255,0.45)}',""]);const o=l},8114:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.tree-item{min-height:24px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:3px}.tree-item-indentation{flex-shrink:0}.tree-item-content{min-width:0;flex:1;display:flex;align-items:center}.tree-item-icon,\n.tree-item-expand-button{padding:3px;width:12px;height:12px;font-size:12px;flex-shrink:0}.tree-item-icon,\n.tree-item-label{color:var(--color-header-text)}.tree-item-icon{margin-right:4px}.tree-item-expand-button{margin:0 4px}.tree-item-label{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tree-item-suffix{flex-shrink:0}:host([selected]) .tree-item{background-color:var(--palette-blue-1)}:host([faded]) .tree-item-icon,:host([faded]) .tree-item-label{color:var(--color-disabled-text)}:host(:not([selected])) .tree-item:hover .tree-item-icon{color:var(--palette-blue-4)}:host(:not([selected])) .tree-item:hover .tree-item-label{color:var(--palette-blue-4)}",""]);const o=l.toString()},8119:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.quick-access-list{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);list-style:none;margin:0;padding:0}.sidebar-menu-item{display:flex;align-items:center;justify-content:space-between;overflow:hidden}.sidebar-menu-item > eo-link{display:block;min-width:0}.sidebar-menu-item > eo-link::part(link){display:flex;align-items:center;height:20px;gap:8px;color:var(--color-header-text)}.sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.menu-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-remove{color:var(--color-secondary-text);cursor:pointer}.sidebar-menu-item:not(:hover) .menu-item-remove{display:none}.menu-item-remove:hover{color:var(--color-normal-text)}.menu-item-remove:active{color:var(--color-strong-text)}.sidebar-menu-item > eo-link:hover::part(link),\n.sidebar-menu-item > eo-link:hover .sidebar-menu-icon{color:var(--color-brand-hover)}@supports not (inset: 0){.sidebar-menu-item,\n .sidebar-menu-item > eo-link::part(link){gap:0}.sidebar-menu-icon{margin-right:8px}}",""]);const o=l.toString()},8619:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,':host{display:block;--menu-item-icon-size:20px}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.menu-group-title{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 12px;line-height:20px;color:var(--left-secondary-text-color);border-radius:var(--larger-border-radius);transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-group-title-icon-container{flex-shrink:0;margin-right:14px;display:flex;align-items:center;justify-content:center;width:var(--menu-item-icon-size);height:var(--menu-item-icon-size);color:var(--left-sidebar-item-collapsed-icon-color);font-size:var(--menu-item-icon-size);transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-group-title-icon{width:1em;height:1em;border-bottom:2px solid var(--left-sidebar-group-border-color)}.menu-group-title-text{flex:1;font-size:12px;overflow:hidden;white-space:nowrap;margin-right:12px}.menu-group-list slot::slotted(*){margin-top:2px}.menu-group-arrow{position:absolute;top:50%;right:12px;width:10px;transform:translateY(-2px);transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1)}.menu-group-arrow::before,\n.menu-group-arrow::after{content:"";position:absolute;width:6px;height:1.5px;background-color:currentColor;border-radius:2px;transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1)}.menu-group-arrow::before{transform:rotate(45deg) translateX(2.5px)}.menu-group-arrow::after{transform:rotate(-45deg) translateX(-2.5px)}.menu-group-collapsed .menu-group-arrow{transform:translateY(-50%)}.menu-group-collapsed .menu-group-arrow::before{transform:rotate(-45deg) translateX(2.5px)}.menu-group-collapsed .menu-group-arrow::after{transform:rotate(45deg) translateX(-2.5px)}.menu-group-list{display:grid;grid-template-rows:1fr;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-group-list-inner{overflow:hidden}:host([menu-collapsed]) .menu-group-title{padding:0px calc(50% - var(--menu-item-icon-size) / 2)}:host(:not([menu-collapsed])) .menu-group-title-icon-container{width:0;margin-right:0;opacity:0}:host([menu-collapsed]) .menu-group-title-text{opacity:0}:host([menu-collapsed]) .menu-group-arrow{opacity:0}:host(:not([menu-collapsed])) .menu-group-title-text{white-space:pre-wrap;display:-webkit-inline-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis;color:#7f8ba6}:host([collapsable]) .menu-group-collapsed .menu-group-list{grid-template-rows:0fr;opacity:0}',""]);const o=l.toString()},8797:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,':host{display:block;--menu-item-icon-size:20px}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.menu-submenu-title{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 12px;line-height:20px;color:var(--left-sidebar-item-normal-color);border-radius:var(--larger-border-radius);cursor:pointer;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-submenu-title-icon-container{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:var(--menu-item-icon-size);height:var(--menu-item-icon-size);font-size:var(--menu-item-icon-size);color:var(--left-sidebar-item-collapsed-icon-color)}.menu-submenu-title-text{flex:1;margin-left:14px;margin-right:12px;font-size:14px;overflow:hidden;white-space:nowrap}.menu-submenu-arrow{position:absolute;top:50%;right:12px;width:10px;color:var(--left-sidebar-item-arrow-color);transform:translateY(-2px);transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1)}.menu-submenu-arrow::before,\n.menu-submenu-arrow::after{content:"";position:absolute;width:6px;height:1.5px;background-color:currentColor;border-radius:2px;transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1)}.menu-submenu-arrow::before{transform:rotate(45deg) translateX(2.5px)}.menu-submenu-arrow::after{transform:rotate(-45deg) translateX(-2.5px)}.menu-submenu-collapsed .menu-submenu-arrow{transform:translateY(-50%)}.menu-submenu-collapsed .menu-submenu-arrow::before{transform:rotate(-45deg) translateX(2.5px)}.menu-submenu-collapsed .menu-submenu-arrow::after{transform:rotate(45deg) translateX(-2.5px)}.menu-submenu-title:hover{background:var(--left-sidebar-item-hover-bg)}.menu-sub{display:grid;grid-template-rows:1fr;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.menu-submenu-collapsed .menu-sub{grid-template-rows:0fr;opacity:0}.menu-sub-inner{overflow:hidden}.menu-sub-inner slot::slotted(*){margin-top:2px}:host([menu-collapsed]) .menu-submenu-title{padding:0px calc(50% - var(--menu-item-icon-size) / 2)}:host([menu-collapsed]) .menu-submenu-title-text{opacity:0}:host([menu-collapsed]) .menu-submenu-arrow{opacity:0}:host(:not([menu-collapsed])) .menu-submenu-title-text{white-space:pre-wrap;display:-webkit-inline-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}:host([selected]):host([menu-collapsed]) .menu-submenu-title{background:var(--left-sidebar-item-selected-bg);color:var(--left-sidebar-item-selected-color)}:host([selected]):host([collapsed]) .menu-submenu-title{background:var(--left-sidebar-item-selected-bg);color:var(--left-sidebar-item-selected-color)}:host([selected]):host([menu-collapsed]) .menu-submenu-title-icon-container{color:var(--left-sidebar-item-selected-color)}:host([selected]):host([collapsed]) .menu-submenu-title-icon-container{color:var(--left-sidebar-item-selected-color)}:host([selected]):host([menu-collapsed]) .menu-submenu-arrow{color:var(--left-sidebar-item-selected-color)}:host([selected]):host([collapsed]) .menu-submenu-arrow{color:var(--left-sidebar-item-selected-color)}:host([selected]) .menu-submenu-title-text{font-weight:var(--font-weight-500)}',""]);const o=l.toString()},9010:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:block}:host([hidden]){display:none}.tree-item{min-height:24px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:3px}.tree-item-indentation{flex-shrink:0}.tree-item-content{min-width:0;flex:1;display:flex;align-items:center}.tree-item-icon,\n.tree-item-expand-button{padding:3px;position:relative;width:12px;height:12px;font-size:12px;flex-shrink:0}.tree-item-icon,\n.tree-item-label{color:var(--color-header-text)}.tree-item-icon{margin-right:4px}.tree-item-expand-button{margin:0 4px}.tree-item-expand-button .tree-item-expand-arrow{color:var(--color-header-text);width:12px;height:12px;position:absolute;left:50%;top:50%;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.tree-item-label{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tree-item-suffix{flex-shrink:0}.tree-item-children{display:grid;grid-template-rows:1fr;transition:all var(--side-bar-collapse-transition-duration) var(--side-bar-collapse-transition-timing-function)}.tree-item-children .tree-item-inner{overflow:hidden}.tree-item-children .tree-item-inner slot::slotted(*){margin-top:8px}:host(:not([expanded])) .tree-item-children{grid-template-rows:0fr;opacity:0}:host([expanded]) .tree-item-expand-arrow{transform:translate(-50%,-50%) rotate(180deg)}:host(:not([expanded])) .tree-item-expand-arrow{transform:translate(-50%,-50%) rotate(90deg)}:host([selectable]) .tree-item-expand-button:hover{background-color:var(--color-fill-bg-base-1)}:host([selectable][selected]) .tree-item{background-color:var(--palette-blue-1)}:host([faded]) .tree-item-icon,:host([faded]) .tree-item-label{color:var(--color-disabled-text)}:host(:not([selected])) .tree-item:hover .tree-item-icon{color:var(--palette-blue-4)}:host(:not([selected])) .tree-item:hover .tree-item-label{color:var(--palette-blue-4)}",""]);const o=l.toString()},9139:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6758),r=n.n(i),a=n(935),l=n.n(a)()(r());l.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.container{position:relative;width:32px;height:32px}.containerShowInput{width:500px}.inputContent{background:rgba(204,209,219,0.3);border-radius:3px;height:30px;position:absolute;right:0;width:0px;overflow:hidden}.inputContentSlidein{overflow:visible;animation:slidein 0.4s ease-in-out forwards}.inputContentSlideout{width:500px;animation:slideout 0.4s 0.2s ease-in-out forwards}input{flex:1;padding:0;margin:0;border:none;outline:none;font-size:14px;line-height:20px;color:inherit;background-color:transparent;cursor:inherit;width:100%}select{border:none;outline:none;width:150px;background:transparent}input:focus{border:none!important}input::placeholder{color:var(--color-disabled-text)}.button{position:absolute;right:0;top:0}.buttonSildeint{opacity:0;animation:btnSlidein 0.1ms 0.6s ease-in-out forwards}@keyframes btnSlidein{from{opacity:0}to{opacity:1}}@keyframes slidein{from{width:0px}to{width:500px}}@keyframes slideout{from{width:500px}to{width:0px}}.input-addon-wrapper{display:table;width:100%;line-height:22px}.input-affix-wrapper{display:inline-flex;position:relative;padding-bottom:4px;width:100%;transition:border-color 0.3s,box-shadow 0.3s;overflow:visible}.input-suffix,\n.input-before-addon{display:flex;flex:none;align-items:center;margin-left:4px;margin-right:4px;width:16px}.input-before-addon{width:100px}.input-clear-icon{margin-left:4px;font-size:12px;color:var(--text-color-disabled);cursor:pointer}.input-clear-icon:hover{color:var(--antd-text-color-secondary)}.historySearchContainer{width:500px;height:160px;box-shadow:0px 2px 6px 0px rgba(0,0,0,0.15);background-color:var(--antd-dropdown-menu-bg);top:35px;position:absolute;height:0px;right:0;overflow:hidden;border-radius:6px;z-index:1000}.historySearchContainerSlidein{top:35px;animation:historySlidein 0.4s 0.2s ease-in-out forwards}.historySearchContainerSlideout{animation:historySlideout 0.4s ease-in-out forwards}@keyframes historySlidein{from{height:0px}to{height:160px}}@keyframes historySlideout{from{height:160px}to{height:0px}}.quickSearchTip{width:140px;height:17px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;color:var(--color-auxiliary-text);line-height:17px;text-align:left;font-style:normal;padding:8px 16px 8px 16px;width:484px;border-top:1px solid var(--color-border-divider-line)}.historySearchContent{height:103px;padding:16px 16px 8px 16px;overflow:scroll}.latestSearchText{width:56px;height:20px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:var(--local-card-description-color);line-height:20px;text-align:left;font-style:normal;margin-bottom:10px}.latestSearchTagText{height:17px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:var(--color-strong-text);line-height:17px;text-align:center;font-style:normal;white-space:nowrap}.latestSearchTagContainer{display:flex;flex-wrap:wrap;row-gap:8px;column-gap:10px}.latestSearchTagContent{height:20px;background:var(--color-fill-bg-base-1);border-radius:3px;padding:1.5px 8px;cursor:pointer;max-width:480px;overflow:hidden;text-overflow:ellipsis}.emptyText{color:var(--text-color-secondary);text-align:center;width:100%}",""]);const o=l.toString()}}]);
|
|
2
|
+
//# sourceMappingURL=4433.5c4fbcc4.js.map
|