@next-bricks/nav 1.26.7 → 1.27.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 +26 -26
- package/dist/chunks/9832.2dffdf5d.js +2 -0
- package/dist/chunks/9832.2dffdf5d.js.map +1 -0
- package/dist/chunks/easyops-navbar-alerts.e7c0a4dc.js +2 -0
- package/dist/chunks/easyops-navbar-alerts.e7c0a4dc.js.map +1 -0
- package/dist/chunks/{main.df115de6.js → main.5a9def1e.js} +2 -2
- package/dist/chunks/{main.df115de6.js.map → main.5a9def1e.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.20edc5f8.js +2 -0
- package/dist/index.20edc5f8.js.map +1 -0
- package/dist/manifest.json +78 -78
- package/dist/types.json +109 -109
- package/dist-types/easyops-navbar-alerts/i18n.d.ts +16 -0
- package/package.json +2 -2
- package/dist/chunks/6128.42a4dc65.js +0 -2
- package/dist/chunks/6128.42a4dc65.js.map +0 -1
- package/dist/chunks/easyops-navbar-alerts.e7e4d655.js +0 -2
- package/dist/chunks/easyops-navbar-alerts.e7e4d655.js.map +0 -1
- package/dist/index.7434eac1.js +0 -2
- package/dist/index.7434eac1.js.map +0 -1
package/dist/bricks.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"nav.launchpad-config",
|
|
5
5
|
"nav.easyops-navbar-alerts",
|
|
6
6
|
"nav.app-bar-wrapper",
|
|
7
|
-
"nav.nav-logo",
|
|
8
7
|
"nav.poll-announce",
|
|
9
8
|
"nav.get-menu-config-options",
|
|
10
9
|
"nav.get-menu-config-tree",
|
|
11
|
-
"nav.query-search"
|
|
10
|
+
"nav.query-search",
|
|
11
|
+
"nav.nav-logo"
|
|
12
12
|
],
|
|
13
13
|
"elements": [
|
|
14
14
|
"eo-nav-menu",
|
|
15
|
-
"eo-launchpad-button",
|
|
16
15
|
"eo-launchpad-button-v2",
|
|
17
16
|
"eo-launchpad-quick-access",
|
|
18
|
-
"eo-
|
|
17
|
+
"eo-launchpad-button",
|
|
19
18
|
"eo-launchpad-recent-visits",
|
|
19
|
+
"eo-search-launchpad",
|
|
20
20
|
"eo-app-bar-wrapper",
|
|
21
21
|
"eo-frame-breadcrumb",
|
|
22
22
|
"eo-sidebar-menu-item",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"eo-sidebar",
|
|
27
27
|
"eo-sidebar-sub-menu",
|
|
28
28
|
"eo-directory",
|
|
29
|
-
"eo-directory-tree",
|
|
30
29
|
"eo-directory-tree-leaf",
|
|
30
|
+
"eo-directory-tree",
|
|
31
31
|
"eo-directory-tree-internal-node"
|
|
32
32
|
],
|
|
33
33
|
"processors": [],
|
|
@@ -42,17 +42,6 @@
|
|
|
42
42
|
"eo-input",
|
|
43
43
|
"eo-tooltip"
|
|
44
44
|
],
|
|
45
|
-
"eo-launchpad-button": [
|
|
46
|
-
"eo-icon",
|
|
47
|
-
"eo-link"
|
|
48
|
-
],
|
|
49
|
-
"eo-launchpad-button-v2": [
|
|
50
|
-
"basic.lock-body-scroll",
|
|
51
|
-
"eo-icon",
|
|
52
|
-
"eo-link",
|
|
53
|
-
"basic.show-dialog",
|
|
54
|
-
"basic.show-notification"
|
|
55
|
-
],
|
|
56
45
|
"nav.launchpad-config": [
|
|
57
46
|
"eo-icon",
|
|
58
47
|
"eo-link",
|
|
@@ -63,24 +52,35 @@
|
|
|
63
52
|
"eo-icon",
|
|
64
53
|
"eo-link"
|
|
65
54
|
],
|
|
66
|
-
"eo-launchpad-
|
|
55
|
+
"eo-launchpad-button-v2": [
|
|
56
|
+
"basic.lock-body-scroll",
|
|
67
57
|
"eo-icon",
|
|
68
58
|
"eo-link",
|
|
69
59
|
"basic.show-dialog",
|
|
70
60
|
"basic.show-notification"
|
|
71
61
|
],
|
|
72
|
-
"eo-
|
|
62
|
+
"eo-launchpad-quick-access": [
|
|
73
63
|
"eo-icon",
|
|
74
64
|
"eo-link",
|
|
75
65
|
"basic.show-dialog",
|
|
76
66
|
"basic.show-notification"
|
|
77
67
|
],
|
|
68
|
+
"eo-launchpad-button": [
|
|
69
|
+
"eo-icon",
|
|
70
|
+
"eo-link"
|
|
71
|
+
],
|
|
78
72
|
"eo-launchpad-recent-visits": [
|
|
79
73
|
"eo-link",
|
|
80
74
|
"eo-icon",
|
|
81
75
|
"basic.show-dialog",
|
|
82
76
|
"basic.show-notification"
|
|
83
77
|
],
|
|
78
|
+
"eo-search-launchpad": [
|
|
79
|
+
"eo-icon",
|
|
80
|
+
"eo-link",
|
|
81
|
+
"basic.show-dialog",
|
|
82
|
+
"basic.show-notification"
|
|
83
|
+
],
|
|
84
84
|
"eo-frame-breadcrumb": [
|
|
85
85
|
"eo-breadcrumb",
|
|
86
86
|
"eo-breadcrumb-item",
|
|
@@ -126,22 +126,18 @@
|
|
|
126
126
|
"eo-icon",
|
|
127
127
|
"eo-tooltip"
|
|
128
128
|
],
|
|
129
|
+
"eo-directory-tree-leaf": [
|
|
130
|
+
"eo-icon"
|
|
131
|
+
],
|
|
129
132
|
"eo-directory-tree": [
|
|
130
133
|
"eo-search",
|
|
131
134
|
"eo-directory-tree-leaf",
|
|
132
135
|
"eo-directory-tree-internal-node",
|
|
133
136
|
"eo-icon"
|
|
134
137
|
],
|
|
135
|
-
"eo-directory-tree-leaf": [
|
|
136
|
-
"eo-icon"
|
|
137
|
-
],
|
|
138
138
|
"eo-directory-tree-internal-node": [
|
|
139
139
|
"eo-icon"
|
|
140
140
|
],
|
|
141
|
-
"nav.nav-logo": [
|
|
142
|
-
"eo-icon",
|
|
143
|
-
"eo-link"
|
|
144
|
-
],
|
|
145
141
|
"nav.poll-announce": [
|
|
146
142
|
"basic.show-notification"
|
|
147
143
|
],
|
|
@@ -150,7 +146,11 @@
|
|
|
150
146
|
"eo-button",
|
|
151
147
|
"eo-search",
|
|
152
148
|
"eo-tooltip"
|
|
149
|
+
],
|
|
150
|
+
"nav.nav-logo": [
|
|
151
|
+
"eo-icon",
|
|
152
|
+
"eo-link"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"filePath": "bricks/nav/dist/index.
|
|
155
|
+
"filePath": "bricks/nav/dist/index.20edc5f8.js"
|
|
156
156
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[9832],{500:(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()},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()},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()},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:auto}.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()},9832:(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(870),m=n(128),p=n(981),h=n(6370),g=n(100),f=n(63),v=(n(4419),n(3373)),b=n.n(v),x=n(1418),y=n(9863),E=n(9998),A=n(839),k=n(1122);let w,S,C,N,I,T,R;n(4211);const{defineElement:_,property:M}=(0,u.createDecorators)(),B=(0,p.wrapBrick)("eo-menu-item"),L=(0,p.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"});function P(e){const{item:t}=e;return(0,g.Wf)(t,e.topData)?d().createElement(z,(0,s.A)({},e,{item:t})):(0,g.IZ)(t)?d().createElement(H,(0,s.A)({},e,{item:t})):d().createElement(W,(0,s.A)({},e,{item:t}))}function W(e){const{item:t,index:n,hidden:i,showTooltip:r,selectedKey:a=[]}=e;return d().createElement(B,{"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 D;const K=e=>{const t=null!=D?D:D=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 z(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(L,{"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(B,{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(P,{item:e,selectedKey:o,showTooltip:l})))))):null}function H(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(O,{item:n,selectedKey:r,showTooltip:i,placement:"right-start",anchorDisplay:"block"}):"siteMap"===n.childLayout?d().createElement(F,{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(P,{item:e,showTooltip:i,selectedKey:r})))))):null}function O(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(L,{"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:K},d().createElement(B,{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 F(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(L,{"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),K(e)}},d().createElement(B,{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 U;var G=new WeakMap,V=new WeakMap,$=new WeakMap;class X extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,G,S(this)),(0,r.A)(this,V,(C(this),N(this))),(0,r.A)(this,$,(I(this),T(this))),R(this)}get menu(){return(0,l.A)(G,this)}set menu(e){(0,a.A)(G,this,e)}get mainMenuTitleStyle(){return(0,l.A)(V,this)}set mainMenuTitleStyle(e){(0,a.A)(V,this,e)}get showTooltip(){return(0,l.A)($,this)}set showTooltip(e){(0,a.A)($,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(O,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,mainMenuTitleStyle:e.mainMenuTitleStyle}):"group"===t.type&&"siteMap"===t.childLayout?d().createElement(F,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}):d().createElement(P,{index:i,hidden:a,item:t,showTooltip:n,selectedKey:v,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}))})),d().createElement(P,{hidden:o>h.length,item:b,showTooltip:n,selectedKey:v,overflow:!0,topData:!0,mainMenuTitleStyle:e.mainMenuTitleStyle}),d().createElement("slot",{name:"afterMenu"}))}i=X,({e:[S,C,N,I,T,R],c:[U,w]}=(0,o.A)(i,[_("eo-nav-menu",{styleTexts:[E.A,A.A,k.A,h.A]})],[[M({attribute:!1}),1,"menu"],[M({attribute:!1}),1,"mainMenuTitleStyle"],[M({type:Boolean}),1,"showTooltip"]],0,void 0,p.ReactNextElement)),w();var j,Y=n(70),Q=n(5620),Z=n(1692),J=n(1);let ee;(0,Q.initializeReactI18n)(Z.NS,Z.I);const{defineElement:te}=(0,u.createDecorators)();let ne;class ie extends p.ReactNextElement{render(){return d().createElement(Y.D,null)}}j=ie,[ne,ee]=(0,o.A)(j,[te("eo-launchpad-button",{styleTexts:[J.A]})],[],0,void 0,p.ReactNextElement).c,ee();var re,ae=n(410),le=n(6674),oe=n(2240),se=n(5924),ce=n(3693),de=n(3991),ue=n(6502),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),Ee=n(5536),Ae=n(1380),ke=n(1030);const we=(0,p.wrapBrick)("eo-icon"),Se=(0,p.wrapBrick)("eo-link"),Ce=(0,p.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"});(0,ae.unwrapProvider)("basic.show-dialog");var Ne=n(4806);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,locales:p,items:h}=n,[g,f]=(0,c.useState)(!1),v=(0,c.useMemo)((()=>m.__secret_internals.legacyDoTransform(n,null==i?void 0:i.filter((e=>(0,m.checkIfByTransform)(e,n))))),[i,n]),x=(0,c.useCallback)((e=>{null==s||s({data:n,action:e.detail})}),[n,s]);return d().createElement("li",{className:b()("menu-group",{empty:0===h.length,blocked:n.allBlocked})},d().createElement("div",{className:"menu-group-label-wrapper"},d().createElement("span",{className:"menu-group-label"},(0,Ne.y)(p,u)),"menu-config"!==r&&!(null==v||!v.length)&&d().createElement(Ce,{actions:v,onVisibleChange:e=>{f(e.detail)},onActionClick:x},d().createElement(we,{lib:"fa",icon:"gear",className:b()("menu-config",{active:g})}))),d().createElement("ul",{className:"menu"},h.map((e=>"dir"===e.type?d().createElement(Re,{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)((()=>(0,Ne.y)(n.locales,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,E="";if("launchpad-config"===r||"menu-config"===r)if("app"===n.type)E=_e(a,n,"");else{const e=new URL(n.url,location.origin);x=e.pathname,y=e.origin!==location.origin,E=y?"":_e(l,{...n,__pathname:x},"")}return d().createElement("li",{className:b()("menu-item",{disabled:y||n.allBlocked}),onClick:()=>{null==o||o({__pathname:x})}},d().createElement(Se,{tooltip:y?"该菜单项为外链,不支持配置":"",url:E},d().createElement(we,(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,ke.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(Ce,{actions:f,onVisibleChange:e=>{g(e.detail)},onClick:e=>{e.stopPropagation()},onActionClick:v,"data-testid":`menu-item-actions-${n.id}`},d().createElement(we,{lib:"fa",icon:"gear",className:b()("menu-config",{active:h})})))}function Re(e){let{data:t,actions:n,variant:i,urlTemplate:r,customUrlTemplate:a,onMenuItemClick:l,onActionClick:o}=e;const{name:s,locales:u,items:p}=t,[h,g]=(0,c.useState)(!1),[f,v]=(0,c.useState)(!1),x=(0,c.useMemo)((()=>m.__secret_internals.legacyDoTransform(t,null==n?void 0:n.filter((e=>(0,m.checkIfByTransform)(e,t))))),[n,t]),y=(0,c.useCallback)((()=>{v((e=>!e))}),[]),E=(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===p.length,blocked:t.allBlocked})},d().createElement("div",{className:"menu-folder-label-wrapper"},d().createElement(Se,{onClick:y},d().createElement(we,{lib:"fa",prefix:"far",icon:"folder-open",className:"menu-icon"}),d().createElement("span",{className:"menu-item-label"},(0,Ne.y)(u,s)),d().createElement(we,{lib:"antd",icon:f?"up":"down",className:"menu-item-toggle"})),"menu-config"!==i&&!(null==x||!x.length)&&d().createElement(Ce,{actions:x,onVisibleChange:e=>{g(e.detail)},onActionClick:E},d().createElement(we,{lib:"fa",icon:"gear",className:b()("menu-config",{active:h})}))),d().createElement("ul",{className:b()("sub-menu",{expanded:f})},p.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 _e(e,t,n){var i;return null!==(i=null==e?void 0:e.replace(/{{(.*?)}}/g,((e,n)=>encodeURIComponent(String((0,ke.get)(t,n.trim()))))))&&void 0!==i?i:n}var Me,Be=n(4081);let Le,Pe,We,De,Ke,ze,He,Oe,Fe,Ue,Ge,Ve,$e,Xe,qe,je,Ye,Qe,Ze,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,Pe(this)),(0,r.A)(this,ot,(We(this),De(this))),(0,r.A)(this,st,(Ke(this),ze(this))),(0,r.A)(this,ct,(He(this),Oe(this))),(0,r.A)(this,dt,(Fe(this),Ue(this))),(0,r.A)(this,ut,(Ge(this),Ve(this))),(0,r.A)(this,mt,($e(this),Xe(this))),(0,r.A)(this,ht,(Ye(this),Qe(this))),(0,r.A)(this,gt,(et(this),e=>{(0,Ee.A)(pt,this,qe).emit(e)})),(0,r.A)(this,ft,(e=>{(0,Ee.A)(pt,this,Ze).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{...e,items:t}})).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{...e,items:t}}return"app"===e.type?e.url&&Ae.auth.isBlockedPath(e.url)?null:e:e.url&&Ae.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}}Me=vt,({e:[Pe,We,De,Ke,ze,He,Oe,Fe,Ue,Ge,Ve,$e,Xe,qe,je,Ye,Qe,Ze,Je,et],c:[at,Le]}=(0,o.A)(Me,[tt("nav.launchpad-config",{styleTexts:[Be.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)),Le();var Et=n(8772),At=n(7137),kt=n(1916),wt=n.n(kt),St=n(7061);let Ct=function(e){return e.PAGE_RENDER_SLOW_TIP="PAGE_RENDER_SLOW_TIP",e.VIEW_SUGGESTION="VIEW_SUGGESTION",e.LICENSE_EXPIRES_IN_DAY="LICENSE_EXPIRES_IN_DAY",e}({});const Nt="bricks/nav/easyops-navbar-alerts";var It;let Tt;const Rt=(0,p.wrapBrick)("eo-icon"),_t=(0,p.wrapBrick)("eo-link"),{defineElement:Mt}=(0,u.createDecorators)();let Bt;(0,Q.initializeReactI18n)(Nt,{en:{PAGE_RENDER_SLOW_TIP:"Your page is running slowly. The current render time is {{renderTime}} seconds, exceeding the threshold of {{suggestTime}} seconds. Please optimize this page.",VIEW_SUGGESTION:"View suggestions",LICENSE_EXPIRES_IN_DAY:"License expires in {{count}} day",LICENSE_EXPIRES_IN_DAY_plural:"License expires in {{count}} days"},zh:{PAGE_RENDER_SLOW_TIP:"您的页面存在性能问题,当前页面渲染时间为 {{renderTime}} 秒,超过规定阈值 {{suggestTime}} 秒。请针对该页面进行性能优化!",VIEW_SUGGESTION:"建议解决思路",LICENSE_EXPIRES_IN_DAY:"离 License 过期还有 {{count}} 天"}});class Lt extends p.ReactNextElement{render(){return d().createElement(Wt,null)}}It=Lt,[Bt,Tt]=(0,o.A)(It,[Mt("nav.easyops-navbar-alerts",{styleTexts:[St.A]})],[],0,void 0,p.ReactNextElement).c,Tt();const Pt=new At.G(localStorage);function Wt(){const{t:e}=(0,Q.useTranslation)(Nt),[t,n]=(0,c.useState)(!1),[i,r]=(0,c.useState)(null),a=(0,Et.useCurrentApp)(),l=(0,c.useMemo)((()=>`license:${Ae.auth.getAuth().org}`),[]),o=(0,c.useMemo)((()=>{var e;const n=Ae.auth.getAuth(),i=null===(e=n.license)||void 0===e?void 0:e.validDaysLeft;let r;return t?null:i&&i<=15&&n.isAdmin&&(r=Pt.getItem(l),!r||wt()().unix()>r)?i:null}),[l,t]);(0,c.useEffect)((()=>{const e=e=>{const t=e.detail.renderTime,{loadTime:n,loadInfoPage:i}=(0,m.getRuntime)().getMiscSettings();null!=a&&a.isBuildPush&&n>0&&t>n&&r({renderTime:Kt(t),suggestTime:Kt(n),suggestUrl:i})};return window.addEventListener("route.render",e),()=>{window.removeEventListener("route.render",e)}}),[a]);const s=(0,c.useCallback)((()=>{Pt.setItem(l,wt()().unix()+86400),n(!0)}),[l]);return d().createElement(d().Fragment,null,i&&d().createElement(Dt,{text:e(Ct.PAGE_RENDER_SLOW_TIP,{renderTime:i.renderTime,suggestTime:i.suggestTime}),type:"warning",link:i.suggestUrl?{label:e(Ct.VIEW_SUGGESTION),url:i.suggestUrl}:void 0}),null!==o&&d().createElement(Dt,{text:e(Ct.LICENSE_EXPIRES_IN_DAY,{count:o}),type:"info",closable:!0,onClose:s}))}function Dt(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(_t,{className:"link",href:r.url,target:"_blank"},r.label),i&&d().createElement(Rt,{lib:"antd",icon:"close",className:"icon",role:"button",onClick:a}))}function Kt(e){return Math.floor(100*e)/1e5}var zt,Ht=n(500),Ot=n(6981),Ft=n(8942);let Ut,Gt,Vt,$t,Xt;const{defineElement:qt,property:jt}=(0,u.createDecorators)();let Yt;var Qt=new WeakMap,Zt=new WeakMap;class Jt extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Qt,Gt(this)),(0,r.A)(this,Zt,(Vt(this),$t(this))),Xt(this)}get readonly(){return(0,l.A)(Qt,this)}set readonly(e){(0,a.A)(Qt,this,e)}get target(){return(0,l.A)(Zt,this)}set target(e){(0,a.A)(Zt,this,e)}render(){return d().createElement(en,{readonly:this.readonly,target:this.target})}}function en(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(Ot.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(Ft.F,{key:t,target:n,item:e})))))}zt=Jt,({e:[Gt,Vt,$t,Xt],c:[Yt,Ut]}=(0,o.A)(zt,[qt("eo-launchpad-quick-access",{styleTexts:[Ht.A]})],[[jt({type:Boolean}),1,"readonly"],[jt(),1,"target"]],0,void 0,p.ReactNextElement)),Ut();var tn=n(3873),nn=n(2591),rn=n.n(nn),an=n(1740),ln=n.n(an),on=n(8128),sn=n.n(on),cn=n(855),dn=n.n(cn),un=n(5432),mn=n.n(un),pn=n(3656),hn=n.n(pn),gn=n(7839),fn={};fn.styleTagTransform=hn(),fn.setAttributes=dn(),fn.insert=sn().bind(null,"head"),fn.domAPI=ln(),fn.insertStyleElement=mn(),rn()(gn.A,fn),gn.A&&gn.A.locals&&gn.A.locals;let vn=function(e){return e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e}({});const bn="bricks/nav/search-launchpad";var xn;let yn,En,An;(0,Q.initializeReactI18n)(bn,{en:{SEARCH_PLACEHOLDER:"Search products/micro-applications"},zh:{SEARCH_PLACEHOLDER:"搜索产品/微应用"}});const kn=(0,p.wrapBrick)("eo-icon"),{defineElement:wn,property:Sn}=(0,u.createDecorators)();let Cn;var Nn=new WeakMap;class In extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Nn,En(this)),An(this)}get readonly(){return(0,l.A)(Nn,this)}set readonly(e){(0,a.A)(Nn,this,e)}render(){return d().createElement(Tn,{readonly:this.readonly})}}function Tn(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,{t:v}=(0,Q.useTranslation)(bn),x=(0,c.useCallback)((e=>{s(e.target.value)}),[s]),y=(0,c.useCallback)((()=>{s("")}),[s]);return d().createElement(Ot.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(kn,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),d().createElement("input",{ref:n,placeholder:v(vn.SEARCH_PLACEHOLDER),value:o,onChange:x,className:"search-input",onFocus:()=>a(!0),onBlur:()=>a(!1)}),d().createElement(kn,{lib:"antd",theme:"filled",icon:"close-circle",className:b()("search-clear",{searching:f}),onClick:y,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(Rn,{loading:l}),d().createElement("ul",{className:"menu-groups"},u.map((e=>d().createElement(Ft.r,{key:e.name,name:e.name,items:e.items}))))))))}function Rn(e){let{loading:t}=e;return t&&d().createElement("div",{className:"spinner"},d().createElement(kn,{lib:"fa",icon:"spinner",spinning:!0}))}xn=In,({e:[En,An],c:[Cn,yn]}=(0,o.A)(xn,[wn("eo-search-launchpad",{styleTexts:[tn.A]})],[[Sn({type:Boolean}),1,"readonly"]],0,void 0,p.ReactNextElement)),yn();var _n,Mn=n(6859);let Bn,Ln,Pn;const Wn=(0,p.wrapBrick)("eo-link"),{defineElement:Dn,property:Kn}=(0,u.createDecorators)();let zn;var Hn=new WeakMap;class On extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Hn,Ln(this)),Pn(this)}get target(){return(0,l.A)(Hn,this)}set target(e){(0,a.A)(Hn,this,e)}render(){return d().createElement(Fn,{target:this.target})}}function Fn(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))))))}_n=On,({e:[Ln,Pn],c:[zn,Bn]}=(0,o.A)(_n,[Dn("eo-launchpad-recent-visits",{styleTexts:[Mn.A]})],[[Kn({attribute:!1}),1,"target"]],0,void 0,p.ReactNextElement)),Bn();var Un,Gn=n(6405);let Vn,$n,Xn,qn,jn,Yn,Qn,Zn,Jn;const{defineElement:ei,property:ti}=(0,u.createDecorators)();let ni;var ii=new WeakMap,ri=new WeakMap,ai=new WeakMap,li=new WeakMap;class oi extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ii,$n(this)),(0,r.A)(this,ri,(Xn(this),qn(this))),(0,r.A)(this,ai,(jn(this),Yn(this))),(0,r.A)(this,li,(Qn(this),Zn(this))),Jn(this)}get isFixed(){return(0,l.A)(ii,this)}set isFixed(e){(0,a.A)(ii,this,e)}get position(){return(0,l.A)(ri,this)}set position(e){(0,a.A)(ri,this,e)}get displayCenter(){return(0,l.A)(ai,this)}set displayCenter(e){(0,a.A)(ai,this,e)}get extraAppBarContentStyle(){return(0,l.A)(li,this)}set extraAppBarContentStyle(e){(0,a.A)(li,this,e)}render(){return d().createElement(si,{displayCenter:this.displayCenter,isFixed:this.isFixed,position:this.position,extraAppBarContentStyle:this.extraAppBarContentStyle})}}function si(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"})))))}Un=oi,({e:[$n,Xn,qn,jn,Yn,Qn,Zn,Jn],c:[ni,Vn]}=(0,o.A)(Un,[ei("eo-app-bar-wrapper",{styleTexts:[Gn.A],alias:["basic.app-bar-wrapper"]})],[[ti({type:Boolean}),1,"isFixed"],[ti(),1,"position"],[ti({type:Boolean}),1,"displayCenter"],[ti({attribute:!1}),1,"extraAppBarContentStyle"]],0,void 0,p.ReactNextElement)),Vn();var ci,di=n(2689);let ui,mi,pi,hi,gi,fi,vi;const{defineElement:bi,property:xi}=(0,u.createDecorators)(),yi=(0,p.wrapBrick)("eo-breadcrumb"),Ei=(0,p.wrapBrick)("eo-breadcrumb-item"),Ai=(0,p.wrapBrick)("eo-icon");let ki;var wi=new WeakMap,Si=new WeakMap,Ci=new WeakMap;class Ni extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,wi,mi(this)),(0,r.A)(this,Si,(pi(this),hi(this))),(0,r.A)(this,Ci,(gi(this),fi(this))),vi(this)}get breadcrumb(){return(0,l.A)(wi,this)}set breadcrumb(e){(0,a.A)(wi,this,e)}get noCurrentApp(){return(0,l.A)(Si,this)}set noCurrentApp(e){(0,a.A)(Si,this,e)}get menu(){return(0,l.A)(Ci,this)}set menu(e){(0,a.A)(Ci,this,e)}render(){return d().createElement(Ii,{breadcrumb:this.breadcrumb,noCurrentApp:this.noCurrentApp,menu:this.menu})}}function Ii(e){var t,n,i;const{menu:r}=e,a=(0,Et.useNavConfig)(),l=(0,Et.useCurrentApp)(),o=null==l?void 0:l.breadcrumb,c=null==o||null===(t=o.items)||void 0===t?void 0:t.map((e=>({...e,text:(0,m.getRealValue)(e.text)}))),u=null!==(n=e.breadcrumb)&&void 0!==n&&n.length?e.breadcrumb:null==a?void 0:a.breadcrumb,p=null!==(i=e.noCurrentApp)&&void 0!==i?i:null==o?void 0:o.noCurrentApp,h=null==o?void 0:o.useCurrentMenuTitle;return d().createElement(yi,null,d().createElement("span",{slot:"separator"},"/"),null==c?void 0:c.map(((e,t)=>d().createElement(Ei,{key:t,url:e.to},e.icon?d().createElement(Ai,(0,s.A)({className:"breadcrumb-item-prefix-icon",slot:"prefix"},e.icon)):0===t&&d().createElement(Ai,{className:"breadcrumb-item-prefix-icon",slot:"prefix",lib:"antd",icon:"home",theme:"outlined"}),e.text))),l&&!p?d().createElement(Ei,{url:null!=u&&u.length&&l.homepage&&!l.internal?l.homepage:void 0},!(null!=c&&c.length)&&d().createElement(Ai,(0,s.A)({},l.menuIcon,{slot:"prefix",className:"breadcrumb-item-prefix-icon"})),l.localeName):null,h&&r?d().createElement(Ei,{url:r.link},r.icon&&d().createElement(Ai,(0,s.A)({},r.icon,{className:"breadcrumb-item-prefix-icon",slot:"prefix"})),r.title):null,null==u?void 0:u.map(((e,t)=>d().createElement(Ei,{key:t,url:e.to},e.text))))}ci=Ni,({e:[mi,pi,hi,gi,fi,vi],c:[ki,ui]}=(0,o.A)(ci,[bi("eo-frame-breadcrumb",{styleTexts:[di.A]})],[[xi({attribute:!1}),1,"breadcrumb"],[xi({type:Boolean}),1,"noCurrentApp"],[xi({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),ui();var Ti,Ri=n(4239);let _i,Mi,Bi,Li,Pi,Wi,Di,Ki,zi,Hi,Oi,Fi,Ui,Gi,Vi;const{defineElement:$i,property:Xi}=(0,u.createDecorators)(),qi=(0,p.wrapBrick)("eo-link"),ji=(0,p.wrapBrick)("eo-icon");let Yi;var Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,ir=new WeakMap;class rr extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Qi,Mi(this)),(0,r.A)(this,Zi,(Bi(this),Li(this))),(0,r.A)(this,Ji,(Pi(this),Wi(this))),(0,r.A)(this,er,(Di(this),Ki(this))),(0,r.A)(this,tr,(zi(this),Hi(this))),(0,r.A)(this,nr,(Oi(this),Fi(this))),(0,r.A)(this,ir,(Ui(this),Gi(this))),Vi(this)}get url(){return(0,l.A)(Qi,this)}set url(e){(0,a.A)(Qi,this,e)}get href(){return(0,l.A)(Zi,this)}set href(e){(0,a.A)(Zi,this,e)}get target(){return(0,l.A)(Ji,this)}set target(e){(0,a.A)(Ji,this,e)}get icon(){return(0,l.A)(er,this)}set icon(e){(0,a.A)(er,this,e)}get selected(){return(0,l.A)(tr,this)}set selected(e){(0,a.A)(tr,this,e)}get inSubmenu(){return(0,l.A)(nr,this)}set inSubmenu(e){(0,a.A)(nr,this,e)}get menuCollapsed(){return(0,l.A)(ir,this)}set menuCollapsed(e){(0,a.A)(ir,this,e)}render(){return d().createElement(ar,{url:this.url,href:this.href,target:this.target,icon:this.icon,selected:this.selected})}}function ar(e){const{url:t,href:n,target:i,icon:r,selected:a}=e;return d().createElement(qi,{type:"plain",url:t,href:n,target:i},d().createElement("div",{className:"menu-item"},d().createElement("span",{className:"menu-item-icon-container"},d().createElement(ji,(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))))}Ti=rr,({e:[Mi,Bi,Li,Pi,Wi,Di,Ki,zi,Hi,Oi,Fi,Ui,Gi,Vi],c:[Yi,_i]}=(0,o.A)(Ti,[$i("eo-sidebar-menu-item",{styleTexts:[Ri.A]})],[[Xi({attribute:!1}),1,"url"],[Xi(),1,"href"],[Xi(),1,"target"],[Xi({attribute:!1}),1,"icon"],[Xi({type:Boolean}),1,"selected"],[Xi({type:Boolean}),1,"inSubmenu"],[Xi({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),_i();var lr=n(8619);const or=new Set(["EO-SIDEBAR-MENU-ITEM","EO-SIDEBAR-MENU-GROUP","EO-SIDEBAR-MENU-SUBMENU"]);function sr(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,or.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 cr="side-bar-has-been-used",dr="side-bar-expand-state",ur="side-bar-resize-width";let mr=function(e){return e.Collapsed="collapsed",e.Hovered="hovered",e.Expanded="expanded",e}({});const pr=parseInt((0,m.getCssPropertyValue)("--side-bar-width",document.body),10)||220,hr=parseInt((0,m.getCssPropertyValue)("--side-bar-collapsed-width",document.body),10)||60,gr=(0,c.createContext)({selectedKeys:[],openedKeys:[],matchedKeys:[]}),fr=(0,p.wrapBrick)("eo-sidebar-menu"),vr=(0,p.wrapBrick)("eo-sidebar-menu-item"),br=(0,p.wrapBrick)("eo-sidebar-menu-group"),xr=(0,p.wrapBrick)("eo-sidebar-menu-submenu");function yr(e){const{to:t,href:n,target:i,icon:r,text:a,id:l,inSubmenu:o}=e,{selectedKeys:s}=(0,c.useContext)(gr);return d().createElement(vr,{url:t,href:n,target:i,icon:r,inSubmenu:o,selected:s.includes(l)},a)}function Er(e){const{title:t,items:n,id:i,top:r,inSubmenu:a}=e,{matchedKeys:l}=(0,c.useContext)(gr),o=i&&l.includes(i);return(null==n?void 0:n.length)>0?d().createElement(br,{selected:!!o,collapsable:!r},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(kr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:a}))))):null}function Ar(e){const{title:t,icon:n,items:i,id:r}=e,{openedKeys:a,matchedKeys:l}=(0,c.useContext)(gr),o=r&&l.includes(r);return(null==i?void 0:i.length)>0?d().createElement(xr,{icon:n,collapsed:!a.includes(r),selected:!!o},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(kr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:!0}))))):null}function kr(e){return"subMenu"===e.type?d().createElement(Ar,e):"group"===e.type?d().createElement(Er,e):d().createElement(yr,e)}function wr(e){var t;const{menu:n,expandedState:i,selectedKeys:r,openedKeys:a,matchedKeys:l}=e;return d().createElement(gr.Provider,{value:{selectedKeys:r||[],openedKeys:a||[],matchedKeys:l||[]}},d().createElement(fr,{menuCollapsed:i===mr.Collapsed},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map((e=>d().createElement(kr,(0,s.A)({key:e.key},e,{id:e.key,top:!0}))))))}var Sr;let Cr,Nr,Ir,Tr,Rr,_r,Mr,Br,Lr;const{defineElement:Pr,property:Wr}=(0,u.createDecorators)();let Dr;var Kr=new WeakMap,zr=new WeakMap,Hr=new WeakMap,Or=new WeakMap,Fr=new WeakMap;class Ur extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Kr,Nr(this)),(0,r.A)(this,zr,(Ir(this),Tr(this))),(0,r.A)(this,Hr,(Rr(this),_r(this))),(0,r.A)(this,Or,(Mr(this),Br(this))),(0,r.A)(this,Fr,(Lr(this),e=>{this.collapsed=e}))}get collapsable(){return(0,l.A)(Kr,this)}set collapsable(e){(0,a.A)(Kr,this,e)}get collapsed(){return(0,l.A)(zr,this)}set collapsed(e){(0,a.A)(zr,this,e)}get selected(){return(0,l.A)(Hr,this)}set selected(e){(0,a.A)(Hr,this,e)}get menuCollapsed(){return(0,l.A)(Or,this)}set menuCollapsed(e){(0,a.A)(Or,this,e)}render(){return d().createElement(Gr,{collapsable:this.collapsable,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(Fr,this)})}}function Gr(e){const{collapsable:t=!1,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=sr(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}))))}Sr=Ur,({e:[Nr,Ir,Tr,Rr,_r,Mr,Br,Lr],c:[Dr,Cr]}=(0,o.A)(Sr,[Pr("eo-sidebar-menu-group",{styleTexts:[lr.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)),Cr();var Vr,$r=n(8797);let Xr,qr,jr,Yr,Qr,Zr,Jr,ea,ta;const{defineElement:na,property:ia}=(0,u.createDecorators)(),ra=(0,p.wrapBrick)("eo-icon");let aa;var la=new WeakMap,oa=new WeakMap,sa=new WeakMap,ca=new WeakMap,da=new WeakMap;class ua extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,la,qr(this)),(0,r.A)(this,oa,(jr(this),Yr(this))),(0,r.A)(this,sa,(Qr(this),Zr(this))),(0,r.A)(this,ca,(Jr(this),ea(this))),(0,r.A)(this,da,(ta(this),e=>{this.collapsed=e}))}get icon(){return(0,l.A)(la,this)}set icon(e){(0,a.A)(la,this,e)}get selected(){return(0,l.A)(oa,this)}set selected(e){(0,a.A)(oa,this,e)}get collapsed(){return(0,l.A)(sa,this)}set collapsed(e){(0,a.A)(sa,this,e)}get menuCollapsed(){return(0,l.A)(ca,this)}set menuCollapsed(e){(0,a.A)(ca,this,e)}render(){return d().createElement(ma,{icon:this.icon,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(da,this)})}}function ma(e){const{icon:t,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=sr(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(ra,(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}))))}Vr=ua,({e:[qr,jr,Yr,Qr,Zr,Jr,ea,ta],c:[aa,Xr]}=(0,o.A)(Vr,[na("eo-sidebar-menu-submenu",{styleTexts:[$r.A]})],[[ia({attribute:!1}),1,"icon"],[ia({type:Boolean}),1,"selected"],[ia({type:Boolean}),1,"collapsed"],[ia({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),Xr();var pa,ha=n(2469);let ga,fa,va;const{defineElement:ba,property:xa}=(0,u.createDecorators)();let ya;var Ea=new WeakMap;class Aa extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ea,fa(this)),va(this)}get menuCollapsed(){return(0,l.A)(Ea,this)}set menuCollapsed(e){(0,a.A)(Ea,this,e)}render(){return d().createElement(ka,{menuCollapsed:this.menuCollapsed})}}function ka(e){const{menuCollapsed:t}=e,[n]=sr(t);return d().createElement("div",{className:"sidebar-menu"},d().createElement("div",{className:"sidebar-menu-item-list"},d().createElement("slot",{ref:n})))}pa=Aa,({e:[fa,va],c:[ya,ga]}=(0,o.A)(pa,[ba("eo-sidebar-menu",{styleTexts:[ha.A]})],[[xa({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),ga();var wa=n(3694);const Sa=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"}))),Ca=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 Na=n(8013);let Ia=function(e){return e.CLICK_TO_FIX_NAVIGATION="CLICK_TO_FIX_NAVIGATION",e.UNPIN_NAVIGATION="UNPIN_NAVIGATION",e.FIXED_NAVIGATION="FIXED_NAVIGATION",e}({});const Ta="bricks/nav/eo-sidebar";var Ra;let _a,Ma,Ba,La,Pa,Wa,Da,Ka,za,Ha,Oa,Fa,Ua,Ga,Va,$a,Xa;(0,Q.initializeReactI18n)(Ta,{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:qa,property:ja,event:Ya}=(0,u.createDecorators)(),Qa=(0,p.wrapBrick)("eo-tooltip"),Za=(0,p.wrapBrick)("eo-icon");let Ja;var el=new WeakMap,tl=new WeakMap,nl=new WeakMap,il=new WeakMap,rl=new WeakMap,al=new WeakSet,ll=new WeakMap,ol=new WeakMap,sl=new WeakMap;class cl extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,al),(0,r.A)(this,el,Ma(this)),(0,r.A)(this,tl,(Ba(this),La(this))),(0,r.A)(this,nl,(Pa(this),Wa(this))),(0,r.A)(this,il,(Da(this),Ka(this))),(0,r.A)(this,rl,(za(this),Ha(this))),(0,r.A)(this,ll,(Ua(this),e=>{(0,Ee.A)(al,this,Oa).emit(e)})),(0,r.A)(this,ol,Ga(this)),(0,r.A)(this,sl,(Xa(this),e=>{this.expandedState=e,(0,Ee.A)(al,this,Va).emit(e)}))}get menu(){return(0,l.A)(el,this)}set menu(e){(0,a.A)(el,this,e)}get hiddenFixedIcon(){return(0,l.A)(tl,this)}set hiddenFixedIcon(e){(0,a.A)(tl,this,e)}get expandedState(){return(0,l.A)(nl,this)}set expandedState(e){(0,a.A)(nl,this,e)}get position(){return(0,l.A)(il,this)}set position(e){(0,a.A)(il,this,e)}render(){return d().createElement(dl,{menu:this.menu,expandedState:this.expandedState,hiddenFixedIcon:this.hiddenFixedIcon,position:this.position,onActualWidthChange:(0,l.A)(ll,this),onExpandedStateChange:(0,l.A)(sl,this)})}}function dl(e){const{t}=(0,Q.useTranslation)(Ta),{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,Et.useCurrentApp)(),[g,v]=(0,c.useState)(p.location),{pathname:x,search:y}=g,[E,A]=(0,c.useState)(!u.getItem(cr)),[k,w]=(0,c.useState)(),[S,C]=(0,c.useState)(),[N,I]=(0,c.useState)(e.expandedState||u.getItem(dr)||mr.Collapsed),T=o?null==n?void 0:n.icon:null==h?void 0:h.menuIcon,{selectedKeys:R,openedKeys:_,matchedKeys:M}=(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 B=(0,c.useRef)(null);(0,c.useEffect)((()=>{if(B.current){const e=new IntersectionObserver((e=>{e.forEach((e=>{e.target===B.current&&w(!e.isIntersecting)}))}),{threshold:1});return e.observe(B.current),()=>{e.disconnect()}}}),[]),(0,c.useEffect)((()=>{I(e.expandedState||u.getItem(dr)||mr.Collapsed)}),[e.expandedState]),(0,c.useEffect)((()=>{u.setItem(dr,N===mr.Expanded?mr.Expanded:mr.Collapsed)}),[N]);const[L,P]=(0,c.useState)((()=>{let e=parseInt(u.getItem(ur),10);return(e<pr||Number.isNaN(e))&&(e=pr),e}));(0,c.useEffect)((()=>{u.setItem(ur,L)}),[L]);const W=(0,c.useRef)(null),D=()=>{I((e=>{const t=e===mr.Expanded?mr.Expanded:mr.Hovered;return t!==e&&(null==l||l(t)),t}))},K=()=>{I((e=>{const t=e===mr.Expanded?mr.Expanded:mr.Collapsed;return t!==e&&(null==l||l(t)),t}))},z=(0,c.useMemo)((()=>N===mr.Expanded?L:hr),[N,L]);(0,c.useEffect)((()=>{null==a||a(z)}),[a,z]);const H=e=>"static"===r?N===mr.Expanded||e&&N===mr.Hovered?L:hr:N===mr.Collapsed?hr:L;return(0,c.useEffect)((()=>{const e=W.current;return null==e||e.addEventListener("mouseenter",D),null==e||e.addEventListener("mouseleave",K),()=>{null==e||e.removeEventListener("mouseenter",D),null==e||e.removeEventListener("mouseleave",K)}}),[]),d().createElement("div",{className:b()("sidebar-container",`state-${N}`,{dragging:S}),style:{width:H()},ref:W,"data-testid":"side-bar"},d().createElement("div",{className:"inner",style:{width:H(!0)}},d().createElement("div",{className:"header"},d().createElement("div",{className:"menu-title"},d().createElement("div",{className:b()("menu-title-icon-container")},T?d().createElement(Za,(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":k})},d().createElement(wr,{selectedKeys:R,openedKeys:_,matchedKeys:M,menu:n,expandedState:N}),d().createElement("div",{ref:B})),d().createElement("div",{className:"footer"},!i&&d().createElement(Qa,{content:N===mr.Expanded?E?t(Ia.CLICK_TO_FIX_NAVIGATION,{action:t(Ia.UNPIN_NAVIGATION)}):t(Ia.UNPIN_NAVIGATION):E?t(Ia.CLICK_TO_FIX_NAVIGATION,{action:t(Ia.FIXED_NAVIGATION)}):t(Ia.FIXED_NAVIGATION)},d().createElement("i",{className:"fixed-icon",onClick:()=>{A(!1),u.setItem(cr,!0),I((e=>{const t=e===mr.Expanded?mr.Collapsed:mr.Expanded;return t!==e&&(null==l||l(t)),t}))}},d().createElement(Sa,{style:{display:N===mr.Expanded?void 0:"none"}}),d().createElement(Ca,{style:{display:N===mr.Expanded?"none":void 0}})))),N===mr.Expanded&&d().createElement("span",{className:"resize-line",onMouseDown:e=>{var t,n;C(!0),e.cancelable&&e.preventDefault();const i=null!==(t=null===(n=W.current)||void 0===n?void 0:n.getBoundingClientRect().left)&&void 0!==t?t:0,r=(0,Na.G)((e=>{const t=e.clientX-i;P(t>=pr?t:pr)})),a=e=>{C(!1),e.preventDefault(),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r,{passive:!0}),window.addEventListener("mouseup",a)}})))}Ra=cl,({e:[Ma,Ba,La,Pa,Wa,Da,Ka,za,Ha,Oa,Fa,Ua,Ga,Va,$a,Xa],c:[Ja,_a]}=(0,o.A)(Ra,[qa("eo-sidebar",{styleTexts:[wa.A]})],[[ja({attribute:!1}),1,"menu"],[ja({type:Boolean}),1,"hiddenFixedIcon"],[ja(),1,"expandedState"],[ja(),1,"position"],[Ya({type:"actual.width.change"}),1,"actualWidthChangeEvent",e=>(0,l.A)(rl,e),(e,t)=>(0,a.A)(rl,e,t)],[Ya({type:"expanded.state.change"}),1,"expandedStateChangeEvent",e=>(0,l.A)(ol,e),(e,t)=>(0,a.A)(ol,e,t)]],0,(e=>sl.has((0,ye.A)(e))),p.ReactNextElement)),_a();var ul,ml=n(1409);let pl,hl,gl;const fl=(0,p.wrapBrick)("eo-icon"),vl=(0,p.wrapBrick)("eo-menu"),bl=(0,p.wrapBrick)("eo-menu-group"),xl=(0,p.wrapBrick)("eo-menu-item-sub-menu"),yl=(0,p.wrapBrick)("eo-menu-item"),El=(0,p.wrapBrick)("eo-link"),{defineElement:Al,property:kl}=(0,u.createDecorators)();let wl;var Sl=new WeakMap;class Cl extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Sl,hl(this)),gl(this)}get menu(){return(0,l.A)(Sl,this)}set menu(e){(0,a.A)(Sl,this,e)}render(){return d().createElement(Nl,{menu:this.menu})}}function Nl(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(xl,{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(bl,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(yl,{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(El,{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(vl,{className:"menu-container",mode:"vertical"},(null==t?void 0:t.title)&&d().createElement("div",{className:"header"},(null==t?void 0:t.icon)&&d().createElement(fl,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))))))}ul=Cl,({e:[hl,gl],c:[wl,pl]}=(0,o.A)(ul,[Al("eo-sidebar-sub-menu",{styleTexts:[ml.A]})],[[kl({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),pl();var Il,Tl=n(2763);let Rl,_l,Ml,Bl,Ll,Pl,Wl,Dl,Kl,zl,Hl,Ol,Fl,Ul,Gl,Vl,$l,Xl,ql,jl,Yl;const{defineElement:Ql,property:Zl,event:Jl}=(0,u.createDecorators)(),eo=(0,p.wrapBrick)("eo-icon"),to=(0,p.wrapBrick)("eo-tooltip");let no;var io=new WeakMap,ro=new WeakMap,ao=new WeakMap,lo=new WeakMap,oo=new WeakMap,so=new WeakMap,co=new WeakMap,uo=new WeakSet,mo=new WeakMap,po=new WeakMap,ho=new WeakMap;class go extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,uo),(0,r.A)(this,io,_l(this,"fixed")),(0,r.A)(this,ro,(Ml(this),Bl(this))),(0,r.A)(this,ao,(Ll(this),Pl(this,[]))),(0,r.A)(this,lo,(Wl(this),Dl(this,!1))),(0,r.A)(this,oo,(Kl(this),zl(this))),(0,r.A)(this,so,(Hl(this),Ol(this))),(0,r.A)(this,co,(Fl(this),Ul(this))),(0,r.A)(this,mo,($l(this),Xl(this))),(0,r.A)(this,po,(Yl(this),e=>{(0,Ee.A)(uo,this,Gl).emit(e)})),(0,r.A)(this,ho,(e=>{(0,Ee.A)(uo,this,ql).emit({key:e})}))}get position(){return(0,l.A)(io,this)}set position(e){(0,a.A)(io,this,e)}get directoryTitle(){return(0,l.A)(ro,this)}set directoryTitle(e){(0,a.A)(ro,this,e)}get menuItems(){return(0,l.A)(ao,this)}set menuItems(e){(0,a.A)(ao,this,e)}get hideRightBorder(){return(0,l.A)(lo,this)}set hideRightBorder(e){(0,a.A)(lo,this,e)}get suffixBrick(){return(0,l.A)(oo,this)}set suffixBrick(e){(0,a.A)(oo,this,e)}get defaultSelectedKeys(){return(0,l.A)(so,this)}set defaultSelectedKeys(e){(0,a.A)(so,this,e)}render(){return d().createElement(fo,{menuItems:this.menuItems,directoryTitle:this.directoryTitle,hideRightBorder:this.hideRightBorder,suffixIconClick:(0,l.A)(ho,this),menuItemClick:(0,l.A)(po,this),defaultSelectedKeys:this.defaultSelectedKeys,suffixBrick:this.suffixBrick})}}function fo(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(Et.ReactUseMultipleBricks,{useBrick:o.useBrick,data:{data:e}}):null,e.suffixIcon&&d().createElement(to,{content:e.suffixIconTooltip,placement:"top"},d().createElement(eo,(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)))))}))))}Il=go,({e:[_l,Ml,Bl,Ll,Pl,Wl,Dl,Kl,zl,Hl,Ol,Fl,Ul,Gl,Vl,$l,Xl,ql,jl,Yl],c:[no,Rl]}=(0,o.A)(Il,[Ql("eo-directory",{styleTexts:[Tl.A]})],[[Zl(),1,"position"],[Zl(),1,"directoryTitle"],[Zl({attribute:!1}),1,"menuItems"],[Zl({type:Boolean}),1,"hideRightBorder"],[Zl({attribute:!1}),1,"suffixBrick"],[Zl({attribute:!1}),1,"defaultSelectedKeys"],[Jl({type:"menu.item.click"}),1,"menuItemClickEvent",e=>(0,l.A)(co,e),(e,t)=>(0,a.A)(co,e,t)],[Jl({type:"suffix.icon.click"}),1,"suffixIconClickEvent",e=>(0,l.A)(mo,e),(e,t)=>(0,a.A)(mo,e,t)]],0,(e=>ho.has((0,ye.A)(e))),p.ReactNextElement)),Rl();var vo=n(6384);const bo=d().createContext({expandedKeysSet:new Set,selectedKeysSet:new Set,onExpand:()=>{},onSelect:()=>{}}),xo=()=>d().useContext(bo),yo=(0,p.wrapBrick)("eo-directory-tree-leaf",{onSelect:"select"}),Eo=(0,p.wrapBrick)("eo-directory-tree-internal-node",{onExpand:"expand",onSelect:"select"});function Ao(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{selectedKeysSet:a,onSelect:l,suffixBrick:o}=xo(),s=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(yo,{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(Et.ReactUseMultipleBricks,{useBrick:o.useBrick,data:s})))}function ko(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{expandedKeysSet:a,onExpand:l,selectedKeysSet:o,onSelect:s,internalNodeSelectable:u,suffixBrick:m}=xo(),p=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(Eo,{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(Et.ReactUseMultipleBricks,{useBrick:m.useBrick,data:p})))}function wo(e){const{treeData:t}=e;return Array.isArray(t.children)?d().createElement(ko,{treeData:t}):d().createElement(Ao,{treeData:t})}function So(e){const{treeData:t}=e;return t.map((e=>d().createElement(wo,{key:e.key,treeData:e})))}function Co(e){return e.reduce(((e,t)=>{if(!Array.isArray(t.children))return e;{const n=[t.key].concat(Co(t.children));return e.concat(n)}}),[])}function No(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=No(n.children,t),l=a.concat(r||a.length?[n.key]:[]);return e.concat(l)}}),[])}function Io(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=>To((0,ke.get)(e,t)))).some((e=>e.toLowerCase().includes(t))))return e}(e,i,n);if(Array.isArray(e.children)){const t=Io(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 To(e){const t=[];if((0,ke.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(To(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const n in e)t.push(String(n),To(e[n]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}var Ro;let _o,Mo,Bo,Lo,Po,Wo,Do,Ko,zo,Ho,Oo,Fo,Uo,Go,Vo,$o,Xo,qo,jo,Yo,Qo,Zo,Jo,es,ts,ns,is,rs;const{defineElement:as,property:ls,method:os,event:ss}=(0,u.createDecorators)(),cs=(0,p.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"});let ds;var us=new WeakMap,ms=new WeakMap,ps=new WeakMap,hs=new WeakMap,gs=new WeakMap,fs=new WeakMap,vs=new WeakMap,bs=new WeakMap,xs=new WeakMap,ys=new WeakMap,Es=new WeakSet,As=new WeakMap,ks=new WeakMap,ws=new WeakMap;class Ss extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Es),(0,r.A)(this,us,(_o(this),Bo(this,[]))),(0,r.A)(this,ms,(Lo(this),Po(this))),(0,r.A)(this,ps,(Wo(this),Do(this))),(0,r.A)(this,hs,(Ko(this),zo(this))),(0,r.A)(this,gs,(Ho(this),Oo(this))),(0,r.A)(this,fs,(Fo(this),Uo(this))),(0,r.A)(this,vs,(Go(this),Vo(this))),(0,r.A)(this,bs,($o(this),Xo(this))),(0,r.A)(this,xs,(qo(this),jo(this))),(0,r.A)(this,ys,(Yo(this),Qo(this))),(0,r.A)(this,As,(es(this),e=>{this.expandedKeys=e.keys,(0,Ee.A)(Es,this,Zo).emit(e)})),(0,r.A)(this,ks,ts(this)),(0,r.A)(this,ws,(rs(this),e=>{this.selectedKeys=e.keys,(0,Ee.A)(Es,this,ns).emit(e)}))}get data(){return(0,l.A)(us,this)}set data(e){(0,a.A)(us,this,e)}get directoryTitle(){return(0,l.A)(ms,this)}set directoryTitle(e){(0,a.A)(ms,this,e)}get internalNodeSelectable(){return(0,l.A)(ps,this)}set internalNodeSelectable(e){(0,a.A)(ps,this,e)}get searchable(){return(0,l.A)(hs,this)}set searchable(e){(0,a.A)(hs,this,e)}get placeholder(){return(0,l.A)(gs,this)}set placeholder(e){(0,a.A)(gs,this,e)}get searchFields(){return(0,l.A)(fs,this)}set searchFields(e){(0,a.A)(fs,this,e)}get suffixBrick(){return(0,l.A)(vs,this)}set suffixBrick(e){(0,a.A)(vs,this,e)}get selectedKeys(){return(0,l.A)(bs,this)}set selectedKeys(e){(0,a.A)(bs,this,e)}get expandedKeys(){return(0,l.A)(xs,this)}set expandedKeys(e){(0,a.A)(xs,this,e)}expandAll(){this.expandedKeys=Co(this.data)}collapseAll(){this.expandedKeys=[]}expandAccordingToSelectedKeys(){this.expandedKeys=No(this.data,new Set(this.selectedKeys))}render(){return d().createElement(Cs,{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)(As,this),onSelect:(0,l.A)(ws,this)})}}function Cs(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=Io(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(bo.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(cs,{className:"directory-search",trim:!0,placeholder:o,onSearch:e=>{f(e.detail)}}),d().createElement("div",{className:"tree"},d().createElement(So,{treeData:b}))))}Ro=Ss,({e:[Bo,Lo,Po,Wo,Do,Ko,zo,Ho,Oo,Fo,Uo,Go,Vo,$o,Xo,qo,jo,Yo,Qo,Zo,Jo,es,ts,ns,is,rs,_o],c:[ds,Mo]}=(0,o.A)(Ro,[as("eo-directory-tree",{styleTexts:[vo.A]})],[[ls({attribute:!1}),1,"data"],[ls(),1,"directoryTitle"],[ls({type:Boolean}),1,"internalNodeSelectable"],[ls({type:Boolean}),1,"searchable"],[ls(),1,"placeholder"],[ls({attribute:!1}),1,"searchFields"],[ls({attribute:!1}),1,"suffixBrick"],[ls({attribute:!1}),1,"selectedKeys"],[ls({attribute:!1}),1,"expandedKeys"],[os(),2,"expandAll"],[os(),2,"collapseAll"],[os(),2,"expandAccordingToSelectedKeys"],[ss({type:"expand"}),1,"expandEvent",e=>(0,l.A)(ys,e),(e,t)=>(0,a.A)(ys,e,t)],[ss({type:"select"}),1,"selectEvent",e=>(0,l.A)(ks,e),(e,t)=>(0,a.A)(ks,e,t)]],0,(e=>ws.has((0,ye.A)(e))),p.ReactNextElement)),Mo();var Ns,Is=n(8114);let Ts,Rs,_s,Ms,Bs,Ls,Ps,Ws,Ds,Ks,zs,Hs,Os;const{defineElement:Fs,property:Us,event:Gs}=(0,u.createDecorators)(),Vs=(0,p.wrapBrick)("eo-icon");let $s;var Xs=new WeakMap,qs=new WeakMap,js=new WeakMap,Ys=new WeakMap,Qs=new WeakMap,Zs=new WeakSet,Js=new WeakMap;class ec extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Zs),(0,r.A)(this,Xs,Rs(this,0)),(0,r.A)(this,qs,(_s(this),Ms(this))),(0,r.A)(this,js,(Bs(this),Ls(this))),(0,r.A)(this,Ys,(Ps(this),Ws(this))),(0,r.A)(this,Qs,(Ds(this),Ks(this))),(0,r.A)(this,Js,(Os(this),()=>{(0,Ee.A)(Zs,this,zs).emit()}))}get depth(){return(0,l.A)(Xs,this)}set depth(e){(0,a.A)(Xs,this,e)}get selected(){return(0,l.A)(qs,this)}set selected(e){(0,a.A)(qs,this,e)}get icon(){return(0,l.A)(js,this)}set icon(e){(0,a.A)(js,this,e)}get faded(){return(0,l.A)(Ys,this)}set faded(e){(0,a.A)(Ys,this,e)}render(){return d().createElement(tc,{depth:this.depth,icon:this.icon,onSelect:(0,l.A)(Js,this)})}}function tc(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(Vs,(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"})))}Ns=ec,({e:[Rs,_s,Ms,Bs,Ls,Ps,Ws,Ds,Ks,zs,Hs,Os],c:[$s,Ts]}=(0,o.A)(Ns,[Fs("eo-directory-tree-leaf",{styleTexts:[Is.A]})],[[Us({type:Number}),1,"depth"],[Us({type:Boolean}),1,"selected"],[Us({attribute:!1}),1,"icon"],[Us({type:Boolean,render:!1}),1,"faded"],[Gs({type:"select"}),1,"selectEvent",e=>(0,l.A)(Qs,e),(e,t)=>(0,a.A)(Qs,e,t)]],0,(e=>Js.has((0,ye.A)(e))),p.ReactNextElement)),Ts();var nc=n(9010);const ic=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 rc;let ac,lc,oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,Ec,Ac,kc,wc,Sc;const{defineElement:Cc,property:Nc,event:Ic}=(0,u.createDecorators)(),Tc=(0,p.wrapBrick)("eo-icon");let Rc;var _c=new WeakMap,Mc=new WeakMap,Bc=new WeakMap,Lc=new WeakMap,Pc=new WeakMap,Wc=new WeakMap,Dc=new WeakMap,Kc=new WeakSet,zc=new WeakMap,Hc=new WeakMap,Oc=new WeakMap;class Fc extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Kc),(0,r.A)(this,_c,lc(this,0)),(0,r.A)(this,Mc,(oc(this),sc(this))),(0,r.A)(this,Bc,(cc(this),dc(this))),(0,r.A)(this,Lc,(uc(this),mc(this))),(0,r.A)(this,Pc,(pc(this),hc(this))),(0,r.A)(this,Wc,(gc(this),fc(this))),(0,r.A)(this,Dc,(vc(this),bc(this))),(0,r.A)(this,zc,(Ec(this),()=>{(0,Ee.A)(Kc,this,xc).emit(!this.expanded)})),(0,r.A)(this,Hc,Ac(this)),(0,r.A)(this,Oc,(Sc(this),()=>{(0,Ee.A)(Kc,this,kc).emit()}))}get depth(){return(0,l.A)(_c,this)}set depth(e){(0,a.A)(_c,this,e)}get expanded(){return(0,l.A)(Mc,this)}set expanded(e){(0,a.A)(Mc,this,e)}get selectable(){return(0,l.A)(Bc,this)}set selectable(e){(0,a.A)(Bc,this,e)}get selected(){return(0,l.A)(Lc,this)}set selected(e){(0,a.A)(Lc,this,e)}get icon(){return(0,l.A)(Pc,this)}set icon(e){(0,a.A)(Pc,this,e)}get faded(){return(0,l.A)(Wc,this)}set faded(e){(0,a.A)(Wc,this,e)}render(){return d().createElement(Uc,{depth:this.depth,selectable:this.selectable,expanded:this.expanded,icon:this.icon,onExpand:(0,l.A)(zc,this),onSelect:(0,l.A)(Oc,this)})}}function Uc(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(ic,{className:"tree-item-expand-arrow"})),i&&d().createElement(Tc,(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))))}rc=Fc,({e:[lc,oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,Ec,Ac,kc,wc,Sc],c:[Rc,ac]}=(0,o.A)(rc,[Cc("eo-directory-tree-internal-node",{styleTexts:[nc.A]})],[[Nc({type:Number}),1,"depth"],[Nc({type:Boolean}),1,"expanded"],[Nc({type:Boolean}),1,"selectable"],[Nc({type:Boolean}),1,"selected"],[Nc({attribute:!1}),1,"icon"],[Nc({type:Boolean,render:!1}),1,"faded"],[Ic({type:"expand"}),1,"expandEvent",e=>(0,l.A)(Dc,e),(e,t)=>(0,a.A)(Dc,e,t)],[Ic({type:"select"}),1,"selectEvent",e=>(0,l.A)(Hc,e),(e,t)=>(0,a.A)(Hc,e,t)]],0,(e=>Oc.has((0,ye.A)(e))),p.ReactNextElement)),ac();var Gc,Vc=n(5367);let $c;const{defineElement:Xc}=(0,u.createDecorators)(),qc=(0,p.wrapBrick)("eo-icon"),jc=(0,p.wrapBrick)("eo-link");let Yc;class Qc extends p.ReactNextElement{render(){return d().createElement(Zc,null)}}function Zc(){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(qc,{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(jc,{type:"plain",url:"/",className:"logo-link"},t))}Gc=Qc,[Yc,$c]=(0,o.A)(Gc,[Xc("nav.nav-logo",{styleTexts:[Vc.A]})],[],0,void 0,p.ReactNextElement).c,$c();var Jc=n(7177),ed=n(9896),td=n(8627),nd=n(7439);let id=function(e){return e.VIEW_DETAILS="VIEW_DETAILS",e.DISMISS="DISMISS",e}({});const rd="bricks/nav/poll-announce";var ad=n(6651),ld=n(1784),od={};od.styleTagTransform=hn(),od.setAttributes=dn(),od.insert=sn().bind(null,"head"),od.domAPI=ln(),od.insertStyleElement=mn(),rn()(ld.A,od);const sd=ld.A&&ld.A.locals?ld.A.locals:void 0;var cd;let dd,ud,md,pd,hd,gd,fd,vd,bd,xd,yd,Ed,Ad;(0,Q.initializeReactI18n)(rd,{en:{VIEW_DETAILS:"View details",DISMISS:"Dismiss"},zh:{VIEW_DETAILS:"查看详情",DISMISS:"忽略"}});const{defineElement:kd,property:wd,event:Sd}=(0,u.createDecorators)(),Cd=(0,ae.unwrapProvider)("basic.show-notification"),Nd=new Set;let Id;var Td=new WeakMap,Rd=new WeakMap,_d=new WeakMap,Md=new WeakSet,Bd=new WeakMap,Ld=new WeakMap,Pd=new WeakMap;class Wd extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Md),(0,r.A)(this,Td,ud(this)),(0,r.A)(this,Rd,(md(this),pd(this))),(0,r.A)(this,_d,(hd(this),gd(this))),(0,r.A)(this,Bd,(bd(this),()=>{(0,Ee.A)(Md,this,fd).emit()})),(0,r.A)(this,Ld,xd(this)),(0,r.A)(this,Pd,(Ad(this),()=>{(0,Ee.A)(Md,this,yd).emit()}))}get pollEnabled(){return(0,l.A)(Td,this)}set pollEnabled(e){(0,a.A)(Td,this,e)}get realTimeMessage(){return(0,l.A)(Rd,this)}set realTimeMessage(e){(0,a.A)(Rd,this,e)}render(){return d().createElement(Kd,{pollEnabled:this.pollEnabled,realTimeMessage:this.realTimeMessage,onOpen:(0,l.A)(Pd,this),onClose:(0,l.A)(Bd,this)})}}async function Dd(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 Cd({placement:"topRight",icon:{lib:"antd",theme:"filled",icon:"sound",style:{color:"var(--theme-orange-color)"}},title:n,htmlMessage:`<div class="${sd.message}">${l}</div>`,closable:!0,showConfirm:!0,confirmText:Jc.i18n.t(`${rd}:${id.VIEW_DETAILS}`),confirmLink:{url:`/announcement-management/announcement-front/content?instanceId=${r}`,target:"_blank"},showCancel:!0,cancelText:Jc.i18n.t(`${rd}:${id.DISMISS}`)})}catch{}finally{if(!Nd.has(r)){Nd.add(r);try{await(0,ed.w)({instanceIds:[r]}),t()}catch(e){console.error("ignore announce failed:",e)}}}}function Kd(e){let{pollEnabled:t,realTimeMessage:n,onOpen:i,onClose:r}=e;return(0,c.useEffect)((()=>{(async()=>{const e=(await(0,td.F)({})).list;e.length&&e.filter((e=>e.isPopup)).reverse().forEach((e=>{Dd(e,r)}))})()}),[]),(0,c.useEffect)((()=>{!t&&n&&Dd(n,r)}),[r,t,n]),(0,c.useEffect)((()=>{if(!t)return;let e=!1;const n=async()=>{if(!e)try{Dd(await(0,nd.$)({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}cd=Wd,({e:[ud,md,pd,hd,gd,fd,vd,bd,xd,yd,Ed,Ad],c:[Id,dd]}=(0,o.A)(cd,[kd("nav.poll-announce",{styleTexts:[ad.A]})],[[wd({type:Boolean}),1,"pollEnabled"],[wd({attribute:!1}),1,"realTimeMessage"],[Sd({type:"notification.close"}),1,"closeEvent",e=>(0,l.A)(_d,e),(e,t)=>(0,a.A)(_d,e,t)],[Sd({type:"notification.open"}),1,"openEvent",e=>(0,l.A)(Ld,e),(e,t)=>(0,a.A)(Ld,e,t)]],0,(e=>Pd.has((0,ye.A)(e))),p.ReactNextElement)),dd();var zd=n(1321),Hd=n(4167),Od=n(5188);const Fd=new Set(["name","id","homepage","localeName"]);function Ud(e,t,n){if("string"==typeof e){if((0,zd.isEvaluable)(e)){let i;const r={usedProperties:new Set,hasNonStaticUsage:!1};try{i=(0,zd.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:(0,Od.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=>Fd.has(e))))){const r={};for(const e of i.attemptToVisitGlobals)switch(e){case"I18N":r[e]=Jc.i18n.getFixedT(null,[t].filter(Boolean));break;case"APP":r[e]={...n,localeName:null==n?void 0:n.name}}const a=(0,Hd.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,zd.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 Gd(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;Jc.i18n.addResourceBundle(n,e,i)})),t.set(n,e)}return{menuWithI18n:t,dispose:()=>{for(const[e,t]of n)Jc.i18n.removeResourceBundle(e,t)}}}const Vd=Symbol("menuI18nNamespace"),$d=Symbol("overrideApp"),Xd={lib:"fa",icon:"bars"};function qd(e){return null!=e&&e.imgSrc?Xd:null!=e?e:Xd}function jd(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=jd(e.children,t,n,i))&&void 0!==r?r:[]).concat(a?a.flatMap((e=>jd(e.items,e,n,i))):[]),[$d]:t.overrideApp,[Vd]:i.get(t)}}))}function Yd(e){return function(e){return(0,ke.sortBy)(e,(e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}),"text")}(e).map((e=>({...e,children:Yd(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}=Gd(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=Yd(r.flatMap((e=>jd(e.items,e,a,l)))),d=[{key:"0",__keys:n,title:null!==(t=Ud(i.title,l.get(i),i.overrideApp))&&void 0!==t?t:i.menuId,data:i,icon:qd(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=Ud(t.text,t[Vd],t[$d]))&&void 0!==a?a:"",data:t,icon:qd(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}=Gd(e);for(const i of e){var r;t.push({label:`${null!==(r=Ud(i.title,n.get(i),i.overrideApp))&&void 0!==r?r:""} (${i.menuId})`,value:i.menuId})}return i(),t})));let Qd=function(e){return e.FULL_TEXT_SEARCH="FULL_TEXT_SEARCH",e.IP_SEARCH="IP_SEARCH",e.TICKET_SEARCH="TICKET_SEARCH",e.TICKET_SEARCH_PLACEHOLDER="TICKET_SEARCH_PLACEHOLDER",e.IP_SEARCH_PLACEHOLDER="IP_SEARCH_PLACEHOLDER",e.FULL_TEXT_SEARCH_PLACEHOLDER="FULL_TEXT_SEARCH_PLACEHOLDER",e.IP_SEARCH_TOOLTIP="IP_SEARCH_TOOLTIP",e.RECENT_SEARCH="RECENT_SEARCH",e.NO_SEARCH_HISTORY="NO_SEARCH_HISTORY",e.QUICK_SEARCH_TIP="QUICK_SEARCH_TIP",e}({});const Zd="bricks/nav/query-search",Jd=Jc.i18n.getFixedT(null,Zd);var eu,tu=n(9139),nu=n(3748),iu=n(6768),ru=n(5862),au=n(5694),lu=n(8406);let ou;(0,Jc.initializeI18n)(Zd,{en:{FULL_TEXT_SEARCH:"Full-text search",IP_SEARCH:"IP search",TICKET_SEARCH:"Ticket search",TICKET_SEARCH_PLACEHOLDER:"Enter ticket number/title and other keywords",IP_SEARCH_PLACEHOLDER:"Enter IP to query hosts and related applications, systems and other resources",FULL_TEXT_SEARCH_PLACEHOLDER:'Search applications, hosts and other information, supports "" exact search',IP_SEARCH_TOOLTIP:"IP Search",RECENT_SEARCH:"Recent Search",NO_SEARCH_HISTORY:"No search history",QUICK_SEARCH_TIP:"Quick Search (Cmd/Ctrl+K)"},zh:{FULL_TEXT_SEARCH:"全文搜索",IP_SEARCH:"ip搜索",TICKET_SEARCH:"工单搜索",TICKET_SEARCH_PLACEHOLDER:"输入工单编号/标题等关键字",IP_SEARCH_PLACEHOLDER:"输入IP查询主机关联的应用、系统等资源",FULL_TEXT_SEARCH_PLACEHOLDER:'搜索应用、主机等信息,支持""精确搜索',IP_SEARCH_TOOLTIP:"IP搜索",RECENT_SEARCH:"最近搜索",NO_SEARCH_HISTORY:"暂无搜索记录",QUICK_SEARCH_TIP:"快捷搜索(Cmd/Ctrl+K)"}});const{defineElement:su}=(0,u.createDecorators)(),cu=new At.G(localStorage),du="search/result?q=%{q}%",uu="search/new/ipSearch?q=%{q}%",mu=(0,p.wrapBrick)("eo-icon"),pu=(0,p.wrapBrick)("eo-button"),hu=((0,p.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"}),(0,p.wrapBrick)("eo-tooltip"));let gu;class fu extends p.ReactNextElement{render(){return d().createElement(Eu,{shadowRoot:this.shadowRoot})}}eu=fu,[gu,ou]=(0,o.A)(eu,[su("nav.query-search",{styleTexts:[tu.A]})],[],0,void 0,p.ReactNextElement).c,ou();var vu=function(e){return e.fullText="fullText",e.instanceSearch="instanceSearch",e.relationSearch="relationSearch",e.link="link",e.ipSearch="ipSearch",e}(vu||{});const bu=()=>{var e;return(null===(e=Ae.auth.getAuth())||void 0===e?void 0:e.org)||""},xu=()=>`querier-search-recent-visits:${bu()}`,yu=()=>`querier-search-querier:${bu()}`;function Eu(e){var t;const{shadowRoot:n}=e,i=(0,c.useRef)(null),r=(0,c.useRef)(null),a=(null===(t=(0,m.getRuntime)().getCurrentApp())||void 0===t?void 0:t.id)||"",l=(0,Et.useCurrentTheme)(),[o,s]=(0,c.useState)(null),[u,p]=(0,c.useState)(""),[h,g]=(0,c.useState)([]),[f,v]=(0,c.useState)([]),[x,y]=(0,c.useState)([]),[E,A]=(0,c.useState)(),k=(0,c.useMemo)((()=>(0,au.VC)()),[]),w=(0,c.useCallback)((()=>{var e;const t=(null==n||null===(e=n.host)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.clientWidth)||0;return document.documentElement.clientWidth-t-500<200}),[n]),S=(0,c.useCallback)((e=>{var t;const n=o&&null!=E&&null!==(t=E.config)&&void 0!==t&&t.url?E.config.url:uu,i=n.startsWith("/")?n:"/"+n,r=e||u||"",a=i.replaceAll("%{q}%",r);(0,m.getHistory)().push(a)}),[o,E,u]);return(0,c.useEffect)((()=>{const e=e=>{(/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)?e.metaKey:e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),s((e=>e||(w(),!0))),w()&&!o&&(S(),s(!1)))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[w,S]),(0,c.useEffect)((()=>{var e;if(!o)return;null===(e=i.current)||void 0===e||e.focus();const t=e=>{r.current&&!e.composedPath().includes(r.current)&&s(!1)},n=e=>{"Escape"!==e.key&&"Esc"!==e.key||s(!1)};return window.addEventListener("click",t,!0),window.addEventListener("keydown",n),()=>{window.removeEventListener("click",t,!0),window.removeEventListener("keydown",n)}}),[o]),(0,c.useEffect)((()=>{o&&0===f.length&&(async()=>{const e=[{type:vu.fullText,name:Jd(Qd.FULL_TEXT_SEARCH),disabled:!1,showInApps:[],config:{url:du,searchPlaceholder:""}},{type:vu.ipSearch,name:Jd(Qd.IP_SEARCH),disabled:!1,showInApps:[],config:{url:uu,searchPlaceholder:""}},{type:vu.link,name:Jd(Qd.TICKET_SEARCH),disabled:!1,showInApps:[],config:{url:"/itsc-ticket-center/ticket-list?q=%{q}%",searchPlaceholder:Jd(Qd.TICKET_SEARCH_PLACEHOLDER)}}];try{var t;const n=(null===(t=(await(0,lu.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:"",searchPlaceholder:""};return t.type===vu.fullText?n.url=du:t.type===vu.ipSearch?n.url=uu:[vu.instanceSearch,vu.relationSearch].includes(t.type)&&(n.url=`search/instance-or-relation-path/search/${t.name}?q=%{q}%`),{...t,config:n}})))||[];v(n.length>0?n:e)}catch{v(e)}})()}),[o,f.length]),(0,c.useEffect)((()=>{if(0===f.length)return;const e=f.filter((e=>{var t;return!e.disabled&&(!(null!==(t=e.showInApps)&&void 0!==t&&t.length)||e.showInApps.includes(a))})).map((e=>({...e,label:e.name,value:e.name})));y(e);const t=cu.getItem(yu()),n=e.find((e=>e.name===t)),i=e.find((e=>e.type===vu.ipSearch))||e[0];A(n||i)}),[f,a]),(0,c.useEffect)((()=>{if(E){var e;const t=`${xu()}-${E.name}`;g(null!==(e=cu.getItem(t))&&void 0!==e?e:[])}}),[E]),d().createElement(nu.Ay,{theme:{algorithm:"dark-v2"===l?iu.A.darkAlgorithm:iu.A.defaultAlgorithm}},d().createElement(au.N7,{container:n,cache:k,hashPriority:"high"},d().createElement("div",{style:{position:"relative"},ref:r},d().createElement("div",{className:b()("container",{containerShowInput:o,inputContentSlideout:!1===o}),onClick:e=>e.stopPropagation()},d().createElement("div",{className:b()("inputContent",{inputContentSlidein:o,inputContentSlideout:!1===o})},d().createElement("div",{className:"input-addon-wrapper"},d().createElement("span",{className:"input-affix-wrapper"},d().createElement("span",{className:"input-before-addon"},d().createElement(ru.A,{value:null==E?void 0:E.value,getPopupContainer:e=>e.parentElement,showSearch:!0,variant:"borderless",style:{width:"100px"},options:x,onChange:e=>{cu.setItem(yu(),e),A(x.find((t=>t.name===e)))}})),d().createElement("input",{placeholder:null!=E&&null!==(C=E.config)&&void 0!==C&&C.searchPlaceholder?E.config.searchPlaceholder:(null==E?void 0:E.type)===vu.ipSearch?Jd(Qd.IP_SEARCH_PLACEHOLDER):(null==E?void 0:E.type)===vu.fullText?Jd(Qd.FULL_TEXT_SEARCH_PLACEHOLDER):"",ref:i,value:u,onChange:e=>p(e.target.value),onKeyDown:e=>{if("Enter"===e.key&&u&&E){const e=`${xu()}-${E.name}`;cu.setItem(e,(0,ke.uniq)([u,...h].slice(0,5))),S()}}}),!!u&&d().createElement("span",{className:"input-suffix"},d().createElement(mu,{className:"input-clear-icon",lib:"antd",icon:"close-circle",theme:"filled",onClick:()=>p("")}))))),!o&&d().createElement(hu,{content:Jd(Qd.IP_SEARCH_TOOLTIP),placement:"left"},d().createElement(pu,{onClick:()=>{w()?S():s(!0)},className:b()("button",{buttonSildeint:!1===o}),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:o,historySearchContainerSlideout:!1===o})},d().createElement("div",{className:"historySearchContent"},d().createElement("div",{className:"latestSearchText"},Jd(Qd.RECENT_SEARCH)),d().createElement("div",{className:"latestSearchTagContainer"},h.map((e=>d().createElement("span",{key:e,className:"latestSearchTagContent",onClick:()=>(e=>{if(E){const t=`${xu()}-${E.name}`;cu.setItem(t,(0,ke.uniq)([e,...h].slice(0,5))),S(e)}})(e)},d().createElement("span",{className:"latestSearchTagText",title:e},e)))),!h.length&&d().createElement("div",{className:"emptyText"},Jd(Qd.NO_SEARCH_HISTORY)))),d().createElement("div",{className:"quickSearchTip"},Jd(Qd.QUICK_SEARCH_TIP))))));var C}}}]);
|
|
2
|
+
//# sourceMappingURL=9832.2dffdf5d.js.map
|