@next-bricks/nav 1.26.7 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bricks.json CHANGED
@@ -4,8 +4,8 @@
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",
8
+ "nav.nav-logo",
9
9
  "nav.get-menu-config-options",
10
10
  "nav.get-menu-config-tree",
11
11
  "nav.query-search"
@@ -13,19 +13,19 @@
13
13
  "elements": [
14
14
  "eo-nav-menu",
15
15
  "eo-launchpad-button",
16
- "eo-launchpad-button-v2",
17
16
  "eo-launchpad-quick-access",
18
- "eo-search-launchpad",
17
+ "eo-launchpad-button-v2",
19
18
  "eo-launchpad-recent-visits",
19
+ "eo-search-launchpad",
20
20
  "eo-app-bar-wrapper",
21
- "eo-frame-breadcrumb",
22
21
  "eo-sidebar-menu-item",
22
+ "eo-frame-breadcrumb",
23
23
  "eo-sidebar-menu-group",
24
24
  "eo-sidebar-menu-submenu",
25
25
  "eo-sidebar-menu",
26
- "eo-sidebar",
27
26
  "eo-sidebar-sub-menu",
28
27
  "eo-directory",
28
+ "eo-sidebar",
29
29
  "eo-directory-tree",
30
30
  "eo-directory-tree-leaf",
31
31
  "eo-directory-tree-internal-node"
@@ -42,23 +42,16 @@
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",
59
48
  "eo-dropdown-actions",
60
49
  "basic.show-dialog"
61
50
  ],
51
+ "eo-launchpad-button": [
52
+ "eo-icon",
53
+ "eo-link"
54
+ ],
62
55
  "nav.easyops-navbar-alerts": [
63
56
  "eo-icon",
64
57
  "eo-link"
@@ -69,7 +62,8 @@
69
62
  "basic.show-dialog",
70
63
  "basic.show-notification"
71
64
  ],
72
- "eo-search-launchpad": [
65
+ "eo-launchpad-button-v2": [
66
+ "basic.lock-body-scroll",
73
67
  "eo-icon",
74
68
  "eo-link",
75
69
  "basic.show-dialog",
@@ -81,15 +75,21 @@
81
75
  "basic.show-dialog",
82
76
  "basic.show-notification"
83
77
  ],
84
- "eo-frame-breadcrumb": [
85
- "eo-breadcrumb",
86
- "eo-breadcrumb-item",
87
- "eo-icon"
78
+ "eo-search-launchpad": [
79
+ "eo-icon",
80
+ "eo-link",
81
+ "basic.show-dialog",
82
+ "basic.show-notification"
88
83
  ],
89
84
  "eo-sidebar-menu-item": [
90
85
  "eo-link",
91
86
  "eo-icon"
92
87
  ],
88
+ "eo-frame-breadcrumb": [
89
+ "eo-breadcrumb",
90
+ "eo-breadcrumb-item",
91
+ "eo-icon"
92
+ ],
93
93
  "eo-sidebar-menu-group": [
94
94
  "eo-sidebar-menu",
95
95
  "eo-sidebar-menu-item",
@@ -106,14 +106,6 @@
106
106
  "eo-sidebar-menu-group",
107
107
  "eo-sidebar-menu-submenu"
108
108
  ],
109
- "eo-sidebar": [
110
- "eo-tooltip",
111
- "eo-icon",
112
- "eo-sidebar-menu",
113
- "eo-sidebar-menu-item",
114
- "eo-sidebar-menu-group",
115
- "eo-sidebar-menu-submenu"
116
- ],
117
109
  "eo-sidebar-sub-menu": [
118
110
  "eo-icon",
119
111
  "eo-menu",
@@ -126,6 +118,14 @@
126
118
  "eo-icon",
127
119
  "eo-tooltip"
128
120
  ],
121
+ "eo-sidebar": [
122
+ "eo-tooltip",
123
+ "eo-icon",
124
+ "eo-sidebar-menu",
125
+ "eo-sidebar-menu-item",
126
+ "eo-sidebar-menu-group",
127
+ "eo-sidebar-menu-submenu"
128
+ ],
129
129
  "eo-directory-tree": [
130
130
  "eo-search",
131
131
  "eo-directory-tree-leaf",
@@ -138,13 +138,13 @@
138
138
  "eo-directory-tree-internal-node": [
139
139
  "eo-icon"
140
140
  ],
141
+ "nav.poll-announce": [
142
+ "basic.show-notification"
143
+ ],
141
144
  "nav.nav-logo": [
142
145
  "eo-icon",
143
146
  "eo-link"
144
147
  ],
145
- "nav.poll-announce": [
146
- "basic.show-notification"
147
- ],
148
148
  "nav.query-search": [
149
149
  "eo-icon",
150
150
  "eo-button",
@@ -152,5 +152,5 @@
152
152
  "eo-tooltip"
153
153
  ]
154
154
  },
155
- "filePath": "bricks/nav/dist/index.7434eac1.js"
155
+ "filePath": "bricks/nav/dist/index.3221ffae.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(7177),Ct=n(7061);let Nt=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 It="bricks/nav/easyops-navbar-alerts";var Tt;let Rt;const _t=(0,p.wrapBrick)("eo-icon"),Mt=(0,p.wrapBrick)("eo-link"),{defineElement:Bt}=(0,u.createDecorators)();let Lt;(0,St.initializeI18n)(It,{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 Pt extends p.ReactNextElement{render(){return d().createElement(Dt,null)}}Tt=Pt,[Lt,Rt]=(0,o.A)(Tt,[Bt("nav.easyops-navbar-alerts",{styleTexts:[Ct.A]})],[],0,void 0,p.ReactNextElement).c,Rt();const Wt=new At.G(localStorage);function Dt(){const e=St.i18n.getFixedT(St.i18n.language,It),[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=Wt.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:zt(t),suggestTime:zt(n),suggestUrl:i})};return window.addEventListener("route.render",e),()=>{window.removeEventListener("route.render",e)}}),[a]);const s=(0,c.useCallback)((()=>{Wt.setItem(l,wt()().unix()+86400),n(!0)}),[l]);return d().createElement(d().Fragment,null,i&&d().createElement(Kt,{text:e(Nt.PAGE_RENDER_SLOW_TIP,{renderTime:i.renderTime,suggestTime:i.suggestTime}),type:"warning",link:i.suggestUrl?{label:e(Nt.VIEW_SUGGESTION),url:i.suggestUrl}:void 0}),null!==o&&d().createElement(Kt,{text:e(Nt.LICENSE_EXPIRES_IN_DAY,{count:o}),type:"info",closable:!0,onClose:s}))}function Kt(e){let{text:t,type:n,closable:i,link:r,onClose:a}=e;return d().createElement("div",{className:`alert ${n}`},d().createElement("span",{className:"text"},t),r&&d().createElement(Mt,{className:"link",href:r.url,target:"_blank"},r.label),i&&d().createElement(_t,{lib:"antd",icon:"close",className:"icon",role:"button",onClick:a}))}function zt(e){return Math.floor(100*e)/1e5}var Ht,Ot=n(500),Ft=n(6981),Ut=n(8942);let Gt,Vt,$t,Xt,qt;const{defineElement:jt,property:Yt}=(0,u.createDecorators)();let Qt;var Zt=new WeakMap,Jt=new WeakMap;class en extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Zt,Vt(this)),(0,r.A)(this,Jt,($t(this),Xt(this))),qt(this)}get readonly(){return(0,l.A)(Zt,this)}set readonly(e){(0,a.A)(Zt,this,e)}get target(){return(0,l.A)(Jt,this)}set target(e){(0,a.A)(Jt,this,e)}render(){return d().createElement(tn,{readonly:this.readonly,target:this.target})}}function tn(e){let{readonly:t,target:n}=e;const{favorites:i,loadingFavorites:r,pushRecentVisit:a,toggleStar:l,isStarred:o}=(0,ue.sZ)(!0);return d().createElement(Ft.z.Provider,{value:{searching:!1,loadingFavorites:r,readonly:t,pushRecentVisit:a,toggleStar:l,isStarred:o}},d().createElement("ul",{className:"quick-access-list"},i.map(((e,t)=>d().createElement(Ut.F,{key:t,target:n,item:e})))))}Ht=en,({e:[Vt,$t,Xt,qt],c:[Qt,Gt]}=(0,o.A)(Ht,[jt("eo-launchpad-quick-access",{styleTexts:[Ot.A]})],[[Yt({type:Boolean}),1,"readonly"],[Yt(),1,"target"]],0,void 0,p.ReactNextElement)),Gt();var nn=n(3873),rn=n(2591),an=n.n(rn),ln=n(1740),on=n.n(ln),sn=n(8128),cn=n.n(sn),dn=n(855),un=n.n(dn),mn=n(5432),pn=n.n(mn),hn=n(3656),gn=n.n(hn),fn=n(7839),vn={};vn.styleTagTransform=gn(),vn.setAttributes=un(),vn.insert=cn().bind(null,"head"),vn.domAPI=on(),vn.insertStyleElement=pn(),an()(fn.A,vn),fn.A&&fn.A.locals&&fn.A.locals;let bn=function(e){return e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e}({});const xn="bricks/nav/search-launchpad";var yn;let En,An,kn;(0,Q.initializeReactI18n)(xn,{en:{SEARCH_PLACEHOLDER:"Search products/micro-applications"},zh:{SEARCH_PLACEHOLDER:"搜索产品/微应用"}});const wn=(0,p.wrapBrick)("eo-icon"),{defineElement:Sn,property:Cn}=(0,u.createDecorators)();let Nn;var In=new WeakMap;class Tn extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,In,An(this)),kn(this)}get readonly(){return(0,l.A)(In,this)}set readonly(e){(0,a.A)(In,this,e)}render(){return d().createElement(Rn,{readonly:this.readonly})}}function Rn(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)(xn),x=(0,c.useCallback)((e=>{s(e.target.value)}),[s]),y=(0,c.useCallback)((()=>{s("")}),[s]);return d().createElement(Ft.z.Provider,{value:{searching:f,loadingFavorites:m,readonly:t,pushRecentVisit:p,toggleStar:h,isStarred:g}},d().createElement("div",{className:"container"},d().createElement("div",{className:"search-box",onClick:i},d().createElement(wn,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),d().createElement("input",{ref:n,placeholder:v(bn.SEARCH_PLACEHOLDER),value:o,onChange:x,className:"search-input",onFocus:()=>a(!0),onBlur:()=>a(!1)}),d().createElement(wn,{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(_n,{loading:l}),d().createElement("ul",{className:"menu-groups"},u.map((e=>d().createElement(Ut.r,{key:e.name,name:e.name,items:e.items}))))))))}function _n(e){let{loading:t}=e;return t&&d().createElement("div",{className:"spinner"},d().createElement(wn,{lib:"fa",icon:"spinner",spinning:!0}))}yn=Tn,({e:[An,kn],c:[Nn,En]}=(0,o.A)(yn,[Sn("eo-search-launchpad",{styleTexts:[nn.A]})],[[Cn({type:Boolean}),1,"readonly"]],0,void 0,p.ReactNextElement)),En();var Mn,Bn=n(6859);let Ln,Pn,Wn;const Dn=(0,p.wrapBrick)("eo-link"),{defineElement:Kn,property:zn}=(0,u.createDecorators)();let Hn;var On=new WeakMap;class Fn extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,On,Pn(this)),Wn(this)}get target(){return(0,l.A)(On,this)}set target(e){(0,a.A)(On,this,e)}render(){return d().createElement(Un,{target:this.target})}}function Un(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(Dn,(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))))))}Mn=Fn,({e:[Pn,Wn],c:[Hn,Ln]}=(0,o.A)(Mn,[Kn("eo-launchpad-recent-visits",{styleTexts:[Bn.A]})],[[zn({attribute:!1}),1,"target"]],0,void 0,p.ReactNextElement)),Ln();var Gn,Vn=n(6405);let $n,Xn,qn,jn,Yn,Qn,Zn,Jn,ei;const{defineElement:ti,property:ni}=(0,u.createDecorators)();let ii;var ri=new WeakMap,ai=new WeakMap,li=new WeakMap,oi=new WeakMap;class si extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ri,Xn(this)),(0,r.A)(this,ai,(qn(this),jn(this))),(0,r.A)(this,li,(Yn(this),Qn(this))),(0,r.A)(this,oi,(Zn(this),Jn(this))),ei(this)}get isFixed(){return(0,l.A)(ri,this)}set isFixed(e){(0,a.A)(ri,this,e)}get position(){return(0,l.A)(ai,this)}set position(e){(0,a.A)(ai,this,e)}get displayCenter(){return(0,l.A)(li,this)}set displayCenter(e){(0,a.A)(li,this,e)}get extraAppBarContentStyle(){return(0,l.A)(oi,this)}set extraAppBarContentStyle(e){(0,a.A)(oi,this,e)}render(){return d().createElement(ci,{displayCenter:this.displayCenter,isFixed:this.isFixed,position:this.position,extraAppBarContentStyle:this.extraAppBarContentStyle})}}function ci(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"})))))}Gn=si,({e:[Xn,qn,jn,Yn,Qn,Zn,Jn,ei],c:[ii,$n]}=(0,o.A)(Gn,[ti("eo-app-bar-wrapper",{styleTexts:[Vn.A],alias:["basic.app-bar-wrapper"]})],[[ni({type:Boolean}),1,"isFixed"],[ni(),1,"position"],[ni({type:Boolean}),1,"displayCenter"],[ni({attribute:!1}),1,"extraAppBarContentStyle"]],0,void 0,p.ReactNextElement)),$n();var di,ui=n(2689);let mi,pi,hi,gi,fi,vi,bi;const{defineElement:xi,property:yi}=(0,u.createDecorators)(),Ei=(0,p.wrapBrick)("eo-breadcrumb"),Ai=(0,p.wrapBrick)("eo-breadcrumb-item"),ki=(0,p.wrapBrick)("eo-icon");let wi;var Si=new WeakMap,Ci=new WeakMap,Ni=new WeakMap;class Ii extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Si,pi(this)),(0,r.A)(this,Ci,(hi(this),gi(this))),(0,r.A)(this,Ni,(fi(this),vi(this))),bi(this)}get breadcrumb(){return(0,l.A)(Si,this)}set breadcrumb(e){(0,a.A)(Si,this,e)}get noCurrentApp(){return(0,l.A)(Ci,this)}set noCurrentApp(e){(0,a.A)(Ci,this,e)}get menu(){return(0,l.A)(Ni,this)}set menu(e){(0,a.A)(Ni,this,e)}render(){return d().createElement(Ti,{breadcrumb:this.breadcrumb,noCurrentApp:this.noCurrentApp,menu:this.menu})}}function Ti(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(Ei,null,d().createElement("span",{slot:"separator"},"/"),null==c?void 0:c.map(((e,t)=>d().createElement(Ai,{key:t,url:e.to},e.icon?d().createElement(ki,(0,s.A)({className:"breadcrumb-item-prefix-icon",slot:"prefix"},e.icon)):0===t&&d().createElement(ki,{className:"breadcrumb-item-prefix-icon",slot:"prefix",lib:"antd",icon:"home",theme:"outlined"}),e.text))),l&&!p?d().createElement(Ai,{url:null!=u&&u.length&&l.homepage&&!l.internal?l.homepage:void 0},!(null!=c&&c.length)&&d().createElement(ki,(0,s.A)({},l.menuIcon,{slot:"prefix",className:"breadcrumb-item-prefix-icon"})),l.localeName):null,h&&r?d().createElement(Ai,{url:r.link},r.icon&&d().createElement(ki,(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(Ai,{key:t,url:e.to},e.text))))}di=Ii,({e:[pi,hi,gi,fi,vi,bi],c:[wi,mi]}=(0,o.A)(di,[xi("eo-frame-breadcrumb",{styleTexts:[ui.A]})],[[yi({attribute:!1}),1,"breadcrumb"],[yi({type:Boolean}),1,"noCurrentApp"],[yi({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),mi();var Ri,_i=n(4239);let Mi,Bi,Li,Pi,Wi,Di,Ki,zi,Hi,Oi,Fi,Ui,Gi,Vi,$i;const{defineElement:Xi,property:qi}=(0,u.createDecorators)(),ji=(0,p.wrapBrick)("eo-link"),Yi=(0,p.wrapBrick)("eo-icon");let Qi;var Zi=new WeakMap,Ji=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,ir=new WeakMap,rr=new WeakMap;class ar extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Zi,Bi(this)),(0,r.A)(this,Ji,(Li(this),Pi(this))),(0,r.A)(this,er,(Wi(this),Di(this))),(0,r.A)(this,tr,(Ki(this),zi(this))),(0,r.A)(this,nr,(Hi(this),Oi(this))),(0,r.A)(this,ir,(Fi(this),Ui(this))),(0,r.A)(this,rr,(Gi(this),Vi(this))),$i(this)}get url(){return(0,l.A)(Zi,this)}set url(e){(0,a.A)(Zi,this,e)}get href(){return(0,l.A)(Ji,this)}set href(e){(0,a.A)(Ji,this,e)}get target(){return(0,l.A)(er,this)}set target(e){(0,a.A)(er,this,e)}get icon(){return(0,l.A)(tr,this)}set icon(e){(0,a.A)(tr,this,e)}get selected(){return(0,l.A)(nr,this)}set selected(e){(0,a.A)(nr,this,e)}get inSubmenu(){return(0,l.A)(ir,this)}set inSubmenu(e){(0,a.A)(ir,this,e)}get menuCollapsed(){return(0,l.A)(rr,this)}set menuCollapsed(e){(0,a.A)(rr,this,e)}render(){return d().createElement(lr,{url:this.url,href:this.href,target:this.target,icon:this.icon,selected:this.selected})}}function lr(e){const{url:t,href:n,target:i,icon:r,selected:a}=e;return d().createElement(ji,{type:"plain",url:t,href:n,target:i},d().createElement("div",{className:"menu-item"},d().createElement("span",{className:"menu-item-icon-container"},d().createElement(Yi,(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))))}Ri=ar,({e:[Bi,Li,Pi,Wi,Di,Ki,zi,Hi,Oi,Fi,Ui,Gi,Vi,$i],c:[Qi,Mi]}=(0,o.A)(Ri,[Xi("eo-sidebar-menu-item",{styleTexts:[_i.A]})],[[qi({attribute:!1}),1,"url"],[qi(),1,"href"],[qi(),1,"target"],[qi({attribute:!1}),1,"icon"],[qi({type:Boolean}),1,"selected"],[qi({type:Boolean}),1,"inSubmenu"],[qi({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),Mi();var or=n(8619);const sr=new Set(["EO-SIDEBAR-MENU-ITEM","EO-SIDEBAR-MENU-GROUP","EO-SIDEBAR-MENU-SUBMENU"]);function cr(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,sr.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 dr="side-bar-has-been-used",ur="side-bar-expand-state",mr="side-bar-resize-width";let pr=function(e){return e.Collapsed="collapsed",e.Hovered="hovered",e.Expanded="expanded",e}({});const hr=parseInt((0,m.getCssPropertyValue)("--side-bar-width",document.body),10)||220,gr=parseInt((0,m.getCssPropertyValue)("--side-bar-collapsed-width",document.body),10)||60,fr=(0,c.createContext)({selectedKeys:[],openedKeys:[],matchedKeys:[]}),vr=(0,p.wrapBrick)("eo-sidebar-menu"),br=(0,p.wrapBrick)("eo-sidebar-menu-item"),xr=(0,p.wrapBrick)("eo-sidebar-menu-group"),yr=(0,p.wrapBrick)("eo-sidebar-menu-submenu");function Er(e){const{to:t,href:n,target:i,icon:r,text:a,id:l,inSubmenu:o}=e,{selectedKeys:s}=(0,c.useContext)(fr);return d().createElement(br,{url:t,href:n,target:i,icon:r,inSubmenu:o,selected:s.includes(l)},a)}function Ar(e){const{title:t,items:n,id:i,top:r,inSubmenu:a}=e,{matchedKeys:l}=(0,c.useContext)(fr),o=i&&l.includes(i);return(null==n?void 0:n.length)>0?d().createElement(xr,{selected:!!o,collapsable:!r},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(wr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:a}))))):null}function kr(e){const{title:t,icon:n,items:i,id:r}=e,{openedKeys:a,matchedKeys:l}=(0,c.useContext)(fr),o=r&&l.includes(r);return(null==i?void 0:i.length)>0?d().createElement(yr,{icon:n,collapsed:!a.includes(r),selected:!!o},d().createElement("span",{slot:"title"},t),e.items.map((e=>d().createElement(wr,(0,s.A)({key:e.key},e,{id:e.key,top:!1,inSubmenu:!0}))))):null}function wr(e){return"subMenu"===e.type?d().createElement(kr,e):"group"===e.type?d().createElement(Ar,e):d().createElement(Er,e)}function Sr(e){var t;const{menu:n,expandedState:i,selectedKeys:r,openedKeys:a,matchedKeys:l}=e;return d().createElement(fr.Provider,{value:{selectedKeys:r||[],openedKeys:a||[],matchedKeys:l||[]}},d().createElement(vr,{menuCollapsed:i===pr.Collapsed},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map((e=>d().createElement(wr,(0,s.A)({key:e.key},e,{id:e.key,top:!0}))))))}var Cr;let Nr,Ir,Tr,Rr,_r,Mr,Br,Lr,Pr;const{defineElement:Wr,property:Dr}=(0,u.createDecorators)();let Kr;var zr=new WeakMap,Hr=new WeakMap,Or=new WeakMap,Fr=new WeakMap,Ur=new WeakMap;class Gr extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,zr,Ir(this)),(0,r.A)(this,Hr,(Tr(this),Rr(this))),(0,r.A)(this,Or,(_r(this),Mr(this))),(0,r.A)(this,Fr,(Br(this),Lr(this))),(0,r.A)(this,Ur,(Pr(this),e=>{this.collapsed=e}))}get collapsable(){return(0,l.A)(zr,this)}set collapsable(e){(0,a.A)(zr,this,e)}get collapsed(){return(0,l.A)(Hr,this)}set collapsed(e){(0,a.A)(Hr,this,e)}get selected(){return(0,l.A)(Or,this)}set selected(e){(0,a.A)(Or,this,e)}get menuCollapsed(){return(0,l.A)(Fr,this)}set menuCollapsed(e){(0,a.A)(Fr,this,e)}render(){return d().createElement(Vr,{collapsable:this.collapsable,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(Ur,this)})}}function Vr(e){const{collapsable:t=!1,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=cr(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}))))}Cr=Gr,({e:[Ir,Tr,Rr,_r,Mr,Br,Lr,Pr],c:[Kr,Nr]}=(0,o.A)(Cr,[Wr("eo-sidebar-menu-group",{styleTexts:[or.A]})],[[Dr({type:Boolean}),1,"collapsable"],[Dr({type:Boolean}),1,"collapsed"],[Dr({type:Boolean}),1,"selected"],[Dr({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),Nr();var $r,Xr=n(8797);let qr,jr,Yr,Qr,Zr,Jr,ea,ta,na;const{defineElement:ia,property:ra}=(0,u.createDecorators)(),aa=(0,p.wrapBrick)("eo-icon");let la;var oa=new WeakMap,sa=new WeakMap,ca=new WeakMap,da=new WeakMap,ua=new WeakMap;class ma extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,oa,jr(this)),(0,r.A)(this,sa,(Yr(this),Qr(this))),(0,r.A)(this,ca,(Zr(this),Jr(this))),(0,r.A)(this,da,(ea(this),ta(this))),(0,r.A)(this,ua,(na(this),e=>{this.collapsed=e}))}get icon(){return(0,l.A)(oa,this)}set icon(e){(0,a.A)(oa,this,e)}get selected(){return(0,l.A)(sa,this)}set selected(e){(0,a.A)(sa,this,e)}get collapsed(){return(0,l.A)(ca,this)}set collapsed(e){(0,a.A)(ca,this,e)}get menuCollapsed(){return(0,l.A)(da,this)}set menuCollapsed(e){(0,a.A)(da,this,e)}render(){return d().createElement(pa,{icon:this.icon,selected:this.selected,collapsed:this.collapsed,menuCollapsed:this.menuCollapsed,onCollapseChange:(0,l.A)(ua,this)})}}function pa(e){const{icon:t,collapsed:n,menuCollapsed:i,onCollapseChange:r}=e,[a]=cr(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(aa,(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}))))}$r=ma,({e:[jr,Yr,Qr,Zr,Jr,ea,ta,na],c:[la,qr]}=(0,o.A)($r,[ia("eo-sidebar-menu-submenu",{styleTexts:[Xr.A]})],[[ra({attribute:!1}),1,"icon"],[ra({type:Boolean}),1,"selected"],[ra({type:Boolean}),1,"collapsed"],[ra({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),qr();var ha,ga=n(2469);let fa,va,ba;const{defineElement:xa,property:ya}=(0,u.createDecorators)();let Ea;var Aa=new WeakMap;class ka extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Aa,va(this)),ba(this)}get menuCollapsed(){return(0,l.A)(Aa,this)}set menuCollapsed(e){(0,a.A)(Aa,this,e)}render(){return d().createElement(wa,{menuCollapsed:this.menuCollapsed})}}function wa(e){const{menuCollapsed:t}=e,[n]=cr(t);return d().createElement("div",{className:"sidebar-menu"},d().createElement("div",{className:"sidebar-menu-item-list"},d().createElement("slot",{ref:n})))}ha=ka,({e:[va,ba],c:[Ea,fa]}=(0,o.A)(ha,[xa("eo-sidebar-menu",{styleTexts:[ga.A]})],[[ya({type:Boolean}),1,"menuCollapsed"]],0,void 0,p.ReactNextElement)),fa();var Sa=n(3694);const 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:"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"}))),Na=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 Ia=n(8013);let Ta=function(e){return e.CLICK_TO_FIX_NAVIGATION="CLICK_TO_FIX_NAVIGATION",e.UNPIN_NAVIGATION="UNPIN_NAVIGATION",e.FIXED_NAVIGATION="FIXED_NAVIGATION",e}({});const Ra="bricks/nav/eo-sidebar";var _a;let Ma,Ba,La,Pa,Wa,Da,Ka,za,Ha,Oa,Fa,Ua,Ga,Va,$a,Xa,qa;(0,Q.initializeReactI18n)(Ra,{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:ja,property:Ya,event:Qa}=(0,u.createDecorators)(),Za=(0,p.wrapBrick)("eo-tooltip"),Ja=(0,p.wrapBrick)("eo-icon");let el;var tl=new WeakMap,nl=new WeakMap,il=new WeakMap,rl=new WeakMap,al=new WeakMap,ll=new WeakSet,ol=new WeakMap,sl=new WeakMap,cl=new WeakMap;class dl extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,ll),(0,r.A)(this,tl,Ba(this)),(0,r.A)(this,nl,(La(this),Pa(this))),(0,r.A)(this,il,(Wa(this),Da(this))),(0,r.A)(this,rl,(Ka(this),za(this))),(0,r.A)(this,al,(Ha(this),Oa(this))),(0,r.A)(this,ol,(Ga(this),e=>{(0,Ee.A)(ll,this,Fa).emit(e)})),(0,r.A)(this,sl,Va(this)),(0,r.A)(this,cl,(qa(this),e=>{this.expandedState=e,(0,Ee.A)(ll,this,$a).emit(e)}))}get menu(){return(0,l.A)(tl,this)}set menu(e){(0,a.A)(tl,this,e)}get hiddenFixedIcon(){return(0,l.A)(nl,this)}set hiddenFixedIcon(e){(0,a.A)(nl,this,e)}get expandedState(){return(0,l.A)(il,this)}set expandedState(e){(0,a.A)(il,this,e)}get position(){return(0,l.A)(rl,this)}set position(e){(0,a.A)(rl,this,e)}render(){return d().createElement(ul,{menu:this.menu,expandedState:this.expandedState,hiddenFixedIcon:this.hiddenFixedIcon,position:this.position,onActualWidthChange:(0,l.A)(ol,this),onExpandedStateChange:(0,l.A)(cl,this)})}}function ul(e){const{t}=(0,Q.useTranslation)(Ra),{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(dr)),[k,w]=(0,c.useState)(),[S,C]=(0,c.useState)(),[N,I]=(0,c.useState)(e.expandedState||u.getItem(ur)||pr.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(ur)||pr.Collapsed)}),[e.expandedState]),(0,c.useEffect)((()=>{u.setItem(ur,N===pr.Expanded?pr.Expanded:pr.Collapsed)}),[N]);const[L,P]=(0,c.useState)((()=>{let e=parseInt(u.getItem(mr),10);return(e<hr||Number.isNaN(e))&&(e=hr),e}));(0,c.useEffect)((()=>{u.setItem(mr,L)}),[L]);const W=(0,c.useRef)(null),D=()=>{I((e=>{const t=e===pr.Expanded?pr.Expanded:pr.Hovered;return t!==e&&(null==l||l(t)),t}))},K=()=>{I((e=>{const t=e===pr.Expanded?pr.Expanded:pr.Collapsed;return t!==e&&(null==l||l(t)),t}))},z=(0,c.useMemo)((()=>N===pr.Expanded?L:gr),[N,L]);(0,c.useEffect)((()=>{null==a||a(z)}),[a,z]);const H=e=>"static"===r?N===pr.Expanded||e&&N===pr.Hovered?L:gr:N===pr.Collapsed?gr: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(Ja,(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(Sr,{selectedKeys:R,openedKeys:_,matchedKeys:M,menu:n,expandedState:N}),d().createElement("div",{ref:B})),d().createElement("div",{className:"footer"},!i&&d().createElement(Za,{content:N===pr.Expanded?E?t(Ta.CLICK_TO_FIX_NAVIGATION,{action:t(Ta.UNPIN_NAVIGATION)}):t(Ta.UNPIN_NAVIGATION):E?t(Ta.CLICK_TO_FIX_NAVIGATION,{action:t(Ta.FIXED_NAVIGATION)}):t(Ta.FIXED_NAVIGATION)},d().createElement("i",{className:"fixed-icon",onClick:()=>{A(!1),u.setItem(dr,!0),I((e=>{const t=e===pr.Expanded?pr.Collapsed:pr.Expanded;return t!==e&&(null==l||l(t)),t}))}},d().createElement(Ca,{style:{display:N===pr.Expanded?void 0:"none"}}),d().createElement(Na,{style:{display:N===pr.Expanded?"none":void 0}})))),N===pr.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,Ia.G)((e=>{const t=e.clientX-i;P(t>=hr?t:hr)})),a=e=>{C(!1),e.preventDefault(),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r,{passive:!0}),window.addEventListener("mouseup",a)}})))}_a=dl,({e:[Ba,La,Pa,Wa,Da,Ka,za,Ha,Oa,Fa,Ua,Ga,Va,$a,Xa,qa],c:[el,Ma]}=(0,o.A)(_a,[ja("eo-sidebar",{styleTexts:[Sa.A]})],[[Ya({attribute:!1}),1,"menu"],[Ya({type:Boolean}),1,"hiddenFixedIcon"],[Ya(),1,"expandedState"],[Ya(),1,"position"],[Qa({type:"actual.width.change"}),1,"actualWidthChangeEvent",e=>(0,l.A)(al,e),(e,t)=>(0,a.A)(al,e,t)],[Qa({type:"expanded.state.change"}),1,"expandedStateChangeEvent",e=>(0,l.A)(sl,e),(e,t)=>(0,a.A)(sl,e,t)]],0,(e=>cl.has((0,ye.A)(e))),p.ReactNextElement)),Ma();var ml,pl=n(1409);let hl,gl,fl;const vl=(0,p.wrapBrick)("eo-icon"),bl=(0,p.wrapBrick)("eo-menu"),xl=(0,p.wrapBrick)("eo-menu-group"),yl=(0,p.wrapBrick)("eo-menu-item-sub-menu"),El=(0,p.wrapBrick)("eo-menu-item"),Al=(0,p.wrapBrick)("eo-link"),{defineElement:kl,property:wl}=(0,u.createDecorators)();let Sl;var Cl=new WeakMap;class Nl extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Cl,gl(this)),fl(this)}get menu(){return(0,l.A)(Cl,this)}set menu(e){(0,a.A)(Cl,this,e)}render(){return d().createElement(Il,{menu:this.menu})}}function Il(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(yl,{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(xl,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(El,{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(Al,{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(bl,{className:"menu-container",mode:"vertical"},(null==t?void 0:t.title)&&d().createElement("div",{className:"header"},(null==t?void 0:t.icon)&&d().createElement(vl,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))))))}ml=Nl,({e:[gl,fl],c:[Sl,hl]}=(0,o.A)(ml,[kl("eo-sidebar-sub-menu",{styleTexts:[pl.A]})],[[wl({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),hl();var Tl,Rl=n(2763);let _l,Ml,Bl,Ll,Pl,Wl,Dl,Kl,zl,Hl,Ol,Fl,Ul,Gl,Vl,$l,Xl,ql,jl,Yl,Ql;const{defineElement:Zl,property:Jl,event:eo}=(0,u.createDecorators)(),to=(0,p.wrapBrick)("eo-icon"),no=(0,p.wrapBrick)("eo-tooltip");let io;var ro=new WeakMap,ao=new WeakMap,lo=new WeakMap,oo=new WeakMap,so=new WeakMap,co=new WeakMap,uo=new WeakMap,mo=new WeakSet,po=new WeakMap,ho=new WeakMap,go=new WeakMap;class fo extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,mo),(0,r.A)(this,ro,Ml(this,"fixed")),(0,r.A)(this,ao,(Bl(this),Ll(this))),(0,r.A)(this,lo,(Pl(this),Wl(this,[]))),(0,r.A)(this,oo,(Dl(this),Kl(this,!1))),(0,r.A)(this,so,(zl(this),Hl(this))),(0,r.A)(this,co,(Ol(this),Fl(this))),(0,r.A)(this,uo,(Ul(this),Gl(this))),(0,r.A)(this,po,(Xl(this),ql(this))),(0,r.A)(this,ho,(Ql(this),e=>{(0,Ee.A)(mo,this,Vl).emit(e)})),(0,r.A)(this,go,(e=>{(0,Ee.A)(mo,this,jl).emit({key:e})}))}get position(){return(0,l.A)(ro,this)}set position(e){(0,a.A)(ro,this,e)}get directoryTitle(){return(0,l.A)(ao,this)}set directoryTitle(e){(0,a.A)(ao,this,e)}get menuItems(){return(0,l.A)(lo,this)}set menuItems(e){(0,a.A)(lo,this,e)}get hideRightBorder(){return(0,l.A)(oo,this)}set hideRightBorder(e){(0,a.A)(oo,this,e)}get suffixBrick(){return(0,l.A)(so,this)}set suffixBrick(e){(0,a.A)(so,this,e)}get defaultSelectedKeys(){return(0,l.A)(co,this)}set defaultSelectedKeys(e){(0,a.A)(co,this,e)}render(){return d().createElement(vo,{menuItems:this.menuItems,directoryTitle:this.directoryTitle,hideRightBorder:this.hideRightBorder,suffixIconClick:(0,l.A)(go,this),menuItemClick:(0,l.A)(ho,this),defaultSelectedKeys:this.defaultSelectedKeys,suffixBrick:this.suffixBrick})}}function vo(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(no,{content:e.suffixIconTooltip,placement:"top"},d().createElement(to,(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)))))}))))}Tl=fo,({e:[Ml,Bl,Ll,Pl,Wl,Dl,Kl,zl,Hl,Ol,Fl,Ul,Gl,Vl,$l,Xl,ql,jl,Yl,Ql],c:[io,_l]}=(0,o.A)(Tl,[Zl("eo-directory",{styleTexts:[Rl.A]})],[[Jl(),1,"position"],[Jl(),1,"directoryTitle"],[Jl({attribute:!1}),1,"menuItems"],[Jl({type:Boolean}),1,"hideRightBorder"],[Jl({attribute:!1}),1,"suffixBrick"],[Jl({attribute:!1}),1,"defaultSelectedKeys"],[eo({type:"menu.item.click"}),1,"menuItemClickEvent",e=>(0,l.A)(uo,e),(e,t)=>(0,a.A)(uo,e,t)],[eo({type:"suffix.icon.click"}),1,"suffixIconClickEvent",e=>(0,l.A)(po,e),(e,t)=>(0,a.A)(po,e,t)]],0,(e=>go.has((0,ye.A)(e))),p.ReactNextElement)),_l();var bo=n(6384);const xo=d().createContext({expandedKeysSet:new Set,selectedKeysSet:new Set,onExpand:()=>{},onSelect:()=>{}}),yo=()=>d().useContext(xo),Eo=(0,p.wrapBrick)("eo-directory-tree-leaf",{onSelect:"select"}),Ao=(0,p.wrapBrick)("eo-directory-tree-internal-node",{onExpand:"expand",onSelect:"select"});function ko(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{selectedKeysSet:a,onSelect:l,suffixBrick:o}=yo(),s=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(Eo,{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 wo(e){const{treeData:t}=e,{data:n,index:i,depth:r}=t,{expandedKeysSet:a,onExpand:l,selectedKeysSet:o,onSelect:s,internalNodeSelectable:u,suffixBrick:m}=yo(),p=(0,c.useMemo)((()=>({data:n,index:i,depth:r})),[n,i,r]);return d().createElement(Ao,{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 So(e){const{treeData:t}=e;return Array.isArray(t.children)?d().createElement(wo,{treeData:t}):d().createElement(ko,{treeData:t})}function Co(e){const{treeData:t}=e;return t.map((e=>d().createElement(So,{key:e.key,treeData:e})))}function No(e){return e.reduce(((e,t)=>{if(!Array.isArray(t.children))return e;{const n=[t.key].concat(No(t.children));return e.concat(n)}}),[])}function Io(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=Io(n.children,t),l=a.concat(r||a.length?[n.key]:[]);return e.concat(l)}}),[])}function To(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=>Ro((0,ke.get)(e,t)))).some((e=>e.toLowerCase().includes(t))))return e}(e,i,n);if(Array.isArray(e.children)){const t=To(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 Ro(e){const t=[];if((0,ke.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(Ro(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const n in e)t.push(String(n),Ro(e[n]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}var _o;let 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,as;const{defineElement:ls,property:os,method:ss,event:cs}=(0,u.createDecorators)(),ds=(0,p.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"});let us;var 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 WeakMap,As=new WeakSet,ks=new WeakMap,ws=new WeakMap,Ss=new WeakMap;class Cs extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,As),(0,r.A)(this,ms,(Mo(this),Lo(this,[]))),(0,r.A)(this,ps,(Po(this),Wo(this))),(0,r.A)(this,hs,(Do(this),Ko(this))),(0,r.A)(this,gs,(zo(this),Ho(this))),(0,r.A)(this,fs,(Oo(this),Fo(this))),(0,r.A)(this,vs,(Uo(this),Go(this))),(0,r.A)(this,bs,(Vo(this),$o(this))),(0,r.A)(this,xs,(Xo(this),qo(this))),(0,r.A)(this,ys,(jo(this),Yo(this))),(0,r.A)(this,Es,(Qo(this),Zo(this))),(0,r.A)(this,ks,(ts(this),e=>{this.expandedKeys=e.keys,(0,Ee.A)(As,this,Jo).emit(e)})),(0,r.A)(this,ws,ns(this)),(0,r.A)(this,Ss,(as(this),e=>{this.selectedKeys=e.keys,(0,Ee.A)(As,this,is).emit(e)}))}get data(){return(0,l.A)(ms,this)}set data(e){(0,a.A)(ms,this,e)}get directoryTitle(){return(0,l.A)(ps,this)}set directoryTitle(e){(0,a.A)(ps,this,e)}get internalNodeSelectable(){return(0,l.A)(hs,this)}set internalNodeSelectable(e){(0,a.A)(hs,this,e)}get searchable(){return(0,l.A)(gs,this)}set searchable(e){(0,a.A)(gs,this,e)}get placeholder(){return(0,l.A)(fs,this)}set placeholder(e){(0,a.A)(fs,this,e)}get searchFields(){return(0,l.A)(vs,this)}set searchFields(e){(0,a.A)(vs,this,e)}get suffixBrick(){return(0,l.A)(bs,this)}set suffixBrick(e){(0,a.A)(bs,this,e)}get selectedKeys(){return(0,l.A)(xs,this)}set selectedKeys(e){(0,a.A)(xs,this,e)}get expandedKeys(){return(0,l.A)(ys,this)}set expandedKeys(e){(0,a.A)(ys,this,e)}expandAll(){this.expandedKeys=No(this.data)}collapseAll(){this.expandedKeys=[]}expandAccordingToSelectedKeys(){this.expandedKeys=Io(this.data,new Set(this.selectedKeys))}render(){return d().createElement(Ns,{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)(ks,this),onSelect:(0,l.A)(Ss,this)})}}function Ns(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=To(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(xo.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(ds,{className:"directory-search",trim:!0,placeholder:o,onSearch:e=>{f(e.detail)}}),d().createElement("div",{className:"tree"},d().createElement(Co,{treeData:b}))))}_o=Cs,({e:[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,as,Mo],c:[us,Bo]}=(0,o.A)(_o,[ls("eo-directory-tree",{styleTexts:[bo.A]})],[[os({attribute:!1}),1,"data"],[os(),1,"directoryTitle"],[os({type:Boolean}),1,"internalNodeSelectable"],[os({type:Boolean}),1,"searchable"],[os(),1,"placeholder"],[os({attribute:!1}),1,"searchFields"],[os({attribute:!1}),1,"suffixBrick"],[os({attribute:!1}),1,"selectedKeys"],[os({attribute:!1}),1,"expandedKeys"],[ss(),2,"expandAll"],[ss(),2,"collapseAll"],[ss(),2,"expandAccordingToSelectedKeys"],[cs({type:"expand"}),1,"expandEvent",e=>(0,l.A)(Es,e),(e,t)=>(0,a.A)(Es,e,t)],[cs({type:"select"}),1,"selectEvent",e=>(0,l.A)(ws,e),(e,t)=>(0,a.A)(ws,e,t)]],0,(e=>Ss.has((0,ye.A)(e))),p.ReactNextElement)),Bo();var Is,Ts=n(8114);let Rs,_s,Ms,Bs,Ls,Ps,Ws,Ds,Ks,zs,Hs,Os,Fs;const{defineElement:Us,property:Gs,event:Vs}=(0,u.createDecorators)(),$s=(0,p.wrapBrick)("eo-icon");let Xs;var qs=new WeakMap,js=new WeakMap,Ys=new WeakMap,Qs=new WeakMap,Zs=new WeakMap,Js=new WeakSet,ec=new WeakMap;class tc extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,Js),(0,r.A)(this,qs,_s(this,0)),(0,r.A)(this,js,(Ms(this),Bs(this))),(0,r.A)(this,Ys,(Ls(this),Ps(this))),(0,r.A)(this,Qs,(Ws(this),Ds(this))),(0,r.A)(this,Zs,(Ks(this),zs(this))),(0,r.A)(this,ec,(Fs(this),()=>{(0,Ee.A)(Js,this,Hs).emit()}))}get depth(){return(0,l.A)(qs,this)}set depth(e){(0,a.A)(qs,this,e)}get selected(){return(0,l.A)(js,this)}set selected(e){(0,a.A)(js,this,e)}get icon(){return(0,l.A)(Ys,this)}set icon(e){(0,a.A)(Ys,this,e)}get faded(){return(0,l.A)(Qs,this)}set faded(e){(0,a.A)(Qs,this,e)}render(){return d().createElement(nc,{depth:this.depth,icon:this.icon,onSelect:(0,l.A)(ec,this)})}}function nc(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($s,(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"})))}Is=tc,({e:[_s,Ms,Bs,Ls,Ps,Ws,Ds,Ks,zs,Hs,Os,Fs],c:[Xs,Rs]}=(0,o.A)(Is,[Us("eo-directory-tree-leaf",{styleTexts:[Ts.A]})],[[Gs({type:Number}),1,"depth"],[Gs({type:Boolean}),1,"selected"],[Gs({attribute:!1}),1,"icon"],[Gs({type:Boolean,render:!1}),1,"faded"],[Vs({type:"select"}),1,"selectEvent",e=>(0,l.A)(Zs,e),(e,t)=>(0,a.A)(Zs,e,t)]],0,(e=>ec.has((0,ye.A)(e))),p.ReactNextElement)),Rs();var ic=n(9010);const rc=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 ac;let lc,oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,Ec,Ac,kc,wc,Sc,Cc;const{defineElement:Nc,property:Ic,event:Tc}=(0,u.createDecorators)(),Rc=(0,p.wrapBrick)("eo-icon");let _c;var Mc=new WeakMap,Bc=new WeakMap,Lc=new WeakMap,Pc=new WeakMap,Wc=new WeakMap,Dc=new WeakMap,Kc=new WeakMap,zc=new WeakSet,Hc=new WeakMap,Oc=new WeakMap,Fc=new WeakMap;class Uc extends p.ReactNextElement{constructor(){super(...arguments),(0,xe.A)(this,zc),(0,r.A)(this,Mc,oc(this,0)),(0,r.A)(this,Bc,(sc(this),cc(this))),(0,r.A)(this,Lc,(dc(this),uc(this))),(0,r.A)(this,Pc,(mc(this),pc(this))),(0,r.A)(this,Wc,(hc(this),gc(this))),(0,r.A)(this,Dc,(fc(this),vc(this))),(0,r.A)(this,Kc,(bc(this),xc(this))),(0,r.A)(this,Hc,(Ac(this),()=>{(0,Ee.A)(zc,this,yc).emit(!this.expanded)})),(0,r.A)(this,Oc,kc(this)),(0,r.A)(this,Fc,(Cc(this),()=>{(0,Ee.A)(zc,this,wc).emit()}))}get depth(){return(0,l.A)(Mc,this)}set depth(e){(0,a.A)(Mc,this,e)}get expanded(){return(0,l.A)(Bc,this)}set expanded(e){(0,a.A)(Bc,this,e)}get selectable(){return(0,l.A)(Lc,this)}set selectable(e){(0,a.A)(Lc,this,e)}get selected(){return(0,l.A)(Pc,this)}set selected(e){(0,a.A)(Pc,this,e)}get icon(){return(0,l.A)(Wc,this)}set icon(e){(0,a.A)(Wc,this,e)}get faded(){return(0,l.A)(Dc,this)}set faded(e){(0,a.A)(Dc,this,e)}render(){return d().createElement(Gc,{depth:this.depth,selectable:this.selectable,expanded:this.expanded,icon:this.icon,onExpand:(0,l.A)(Hc,this),onSelect:(0,l.A)(Fc,this)})}}function Gc(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(rc,{className:"tree-item-expand-arrow"})),i&&d().createElement(Rc,(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))))}ac=Uc,({e:[oc,sc,cc,dc,uc,mc,pc,hc,gc,fc,vc,bc,xc,yc,Ec,Ac,kc,wc,Sc,Cc],c:[_c,lc]}=(0,o.A)(ac,[Nc("eo-directory-tree-internal-node",{styleTexts:[ic.A]})],[[Ic({type:Number}),1,"depth"],[Ic({type:Boolean}),1,"expanded"],[Ic({type:Boolean}),1,"selectable"],[Ic({type:Boolean}),1,"selected"],[Ic({attribute:!1}),1,"icon"],[Ic({type:Boolean,render:!1}),1,"faded"],[Tc({type:"expand"}),1,"expandEvent",e=>(0,l.A)(Kc,e),(e,t)=>(0,a.A)(Kc,e,t)],[Tc({type:"select"}),1,"selectEvent",e=>(0,l.A)(Oc,e),(e,t)=>(0,a.A)(Oc,e,t)]],0,(e=>Fc.has((0,ye.A)(e))),p.ReactNextElement)),lc();var Vc,$c=n(5367);let Xc;const{defineElement:qc}=(0,u.createDecorators)(),jc=(0,p.wrapBrick)("eo-icon"),Yc=(0,p.wrapBrick)("eo-link");let Qc;class Zc extends p.ReactNextElement{render(){return d().createElement(Jc,null)}}function Jc(){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(jc,{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(Yc,{type:"plain",url:"/",className:"logo-link"},t))}Vc=Zc,[Qc,Xc]=(0,o.A)(Vc,[qc("nav.nav-logo",{styleTexts:[$c.A]})],[],0,void 0,p.ReactNextElement).c,Xc();var 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=gn(),od.setAttributes=un(),od.insert=cn().bind(null,"head"),od.domAPI=on(),od.insertStyleElement=pn(),an()(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(/<[^>]+>|&nbsp;/gim,"\r\n").replace(/&ldquo;/gim,"“").replace(/&rdquo;/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:St.i18n.t(`${rd}:${id.VIEW_DETAILS}`),confirmLink:{url:`/announcement-management/announcement-front/content?instanceId=${r}`,target:"_blank"},showCancel:!0,cancelText:St.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]=St.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;St.i18n.addResourceBundle(n,e,i)})),t.set(n,e)}return{menuWithI18n:t,dispose:()=>{for(const[e,t]of n)St.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=St.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,St.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.8b17a1b8.js.map