@next-bricks/nav 1.24.3 → 1.24.4

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/types.json CHANGED
@@ -4,6 +4,59 @@
4
4
  "events": [],
5
5
  "methods": []
6
6
  },
7
+ "eo-app-bar-wrapper": {
8
+ "properties": [
9
+ {
10
+ "name": "isFixed",
11
+ "annotation": {
12
+ "type": "keyword",
13
+ "value": "boolean"
14
+ }
15
+ },
16
+ {
17
+ "name": "position",
18
+ "annotation": {
19
+ "type": "union",
20
+ "types": [
21
+ {
22
+ "type": "jsLiteral",
23
+ "value": "static"
24
+ },
25
+ {
26
+ "type": "jsLiteral",
27
+ "value": "fixed"
28
+ }
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "displayCenter",
34
+ "annotation": {
35
+ "type": "keyword",
36
+ "value": "boolean"
37
+ }
38
+ },
39
+ {
40
+ "name": "extraAppBarContentStyle",
41
+ "annotation": {
42
+ "type": "reference",
43
+ "typeName": {
44
+ "type": "qualifiedName",
45
+ "left": {
46
+ "type": "identifier",
47
+ "name": "React"
48
+ },
49
+ "right": {
50
+ "type": "identifier",
51
+ "name": "CSSProperties"
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ "events": [],
58
+ "methods": []
59
+ },
7
60
  "eo-frame-breadcrumb": {
8
61
  "properties": [
9
62
  {
@@ -92,59 +145,6 @@
92
145
  }
93
146
  ]
94
147
  },
95
- "eo-app-bar-wrapper": {
96
- "properties": [
97
- {
98
- "name": "isFixed",
99
- "annotation": {
100
- "type": "keyword",
101
- "value": "boolean"
102
- }
103
- },
104
- {
105
- "name": "position",
106
- "annotation": {
107
- "type": "union",
108
- "types": [
109
- {
110
- "type": "jsLiteral",
111
- "value": "static"
112
- },
113
- {
114
- "type": "jsLiteral",
115
- "value": "fixed"
116
- }
117
- ]
118
- }
119
- },
120
- {
121
- "name": "displayCenter",
122
- "annotation": {
123
- "type": "keyword",
124
- "value": "boolean"
125
- }
126
- },
127
- {
128
- "name": "extraAppBarContentStyle",
129
- "annotation": {
130
- "type": "reference",
131
- "typeName": {
132
- "type": "qualifiedName",
133
- "left": {
134
- "type": "identifier",
135
- "name": "React"
136
- },
137
- "right": {
138
- "type": "identifier",
139
- "name": "CSSProperties"
140
- }
141
- }
142
- }
143
- }
144
- ],
145
- "events": [],
146
- "methods": []
147
- },
148
148
  "eo-sidebar-menu-item": {
149
149
  "properties": [
150
150
  {
@@ -577,22 +577,6 @@
577
577
  "events": [],
578
578
  "methods": []
579
579
  },
580
- "eo-launchpad-recent-visits": {
581
- "properties": [
582
- {
583
- "name": "target",
584
- "annotation": {
585
- "type": "reference",
586
- "typeName": {
587
- "type": "identifier",
588
- "name": "Target"
589
- }
590
- }
591
- }
592
- ],
593
- "events": [],
594
- "methods": []
595
- },
596
580
  "eo-sidebar-menu-submenu": {
597
581
  "properties": [
598
582
  {
@@ -630,6 +614,22 @@
630
614
  "events": [],
631
615
  "methods": []
632
616
  },
617
+ "eo-launchpad-recent-visits": {
618
+ "properties": [
619
+ {
620
+ "name": "target",
621
+ "annotation": {
622
+ "type": "reference",
623
+ "typeName": {
624
+ "type": "identifier",
625
+ "name": "Target"
626
+ }
627
+ }
628
+ }
629
+ ],
630
+ "events": [],
631
+ "methods": []
632
+ },
633
633
  "eo-sidebar-menu": {
634
634
  "properties": [
635
635
  {
@@ -1191,40 +1191,6 @@
1191
1191
  }
1192
1192
  ]
1193
1193
  },
1194
- "eo-sidebar-menu-group": {
1195
- "properties": [
1196
- {
1197
- "name": "collapsable",
1198
- "annotation": {
1199
- "type": "keyword",
1200
- "value": "boolean"
1201
- }
1202
- },
1203
- {
1204
- "name": "collapsed",
1205
- "annotation": {
1206
- "type": "keyword",
1207
- "value": "boolean"
1208
- }
1209
- },
1210
- {
1211
- "name": "selected",
1212
- "annotation": {
1213
- "type": "keyword",
1214
- "value": "boolean"
1215
- }
1216
- },
1217
- {
1218
- "name": "menuCollapsed",
1219
- "annotation": {
1220
- "type": "keyword",
1221
- "value": "boolean"
1222
- }
1223
- }
1224
- ],
1225
- "events": [],
1226
- "methods": []
1227
- },
1228
1194
  "eo-sidebar": {
1229
1195
  "properties": [
1230
1196
  {
@@ -1337,6 +1303,40 @@
1337
1303
  }
1338
1304
  ]
1339
1305
  },
1306
+ "eo-sidebar-menu-group": {
1307
+ "properties": [
1308
+ {
1309
+ "name": "collapsable",
1310
+ "annotation": {
1311
+ "type": "keyword",
1312
+ "value": "boolean"
1313
+ }
1314
+ },
1315
+ {
1316
+ "name": "collapsed",
1317
+ "annotation": {
1318
+ "type": "keyword",
1319
+ "value": "boolean"
1320
+ }
1321
+ },
1322
+ {
1323
+ "name": "selected",
1324
+ "annotation": {
1325
+ "type": "keyword",
1326
+ "value": "boolean"
1327
+ }
1328
+ },
1329
+ {
1330
+ "name": "menuCollapsed",
1331
+ "annotation": {
1332
+ "type": "keyword",
1333
+ "value": "boolean"
1334
+ }
1335
+ }
1336
+ ],
1337
+ "events": [],
1338
+ "methods": []
1339
+ },
1340
1340
  "eo-directory-tree-leaf": {
1341
1341
  "properties": [
1342
1342
  {
@@ -1384,11 +1384,6 @@
1384
1384
  ],
1385
1385
  "methods": []
1386
1386
  },
1387
- "nav.query-search": {
1388
- "properties": [],
1389
- "events": [],
1390
- "methods": []
1391
- },
1392
1387
  "nav.poll-announce": {
1393
1388
  "properties": [
1394
1389
  {
@@ -1864,6 +1859,11 @@
1864
1859
  }
1865
1860
  ]
1866
1861
  },
1862
+ "nav.query-search": {
1863
+ "properties": [],
1864
+ "events": [],
1865
+ "methods": []
1866
+ },
1867
1867
  "eo-launchpad-quick-access": {
1868
1868
  "properties": [
1869
1869
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/nav",
3
- "version": "1.24.3",
3
+ "version": "1.24.4",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/nav",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/form": "*",
44
44
  "@next-bricks/icons": "*"
45
45
  },
46
- "gitHead": "62fd81a2173efeca71ac1bf850917b5fb510e8fa"
46
+ "gitHead": "b794a10e6478928894814b385ef60e1c93f9dedc"
47
47
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[9149],{1724:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,':root{--eo-launchpad-v2-background:#fff;--eo-launchpad-v2-menu-icon-color:#8c8c8c}html[data-theme="dark"],\nhtml[data-theme="dark-v2"]{--eo-launchpad-v2-background:#26262a;--eo-launchpad-v2-menu-icon-color:rgba(255,255,255,0.45)}',""]);const o=i},3693:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".platform-category-name,\n.platform-category-sidebar-menu-item-label,\n.platform-item-name,\n.platform-item-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-category-sidebar-menu-item{display:flex;gap:8px;align-items:center;padding:0px 12px 0px 16px}.platform-category-sidebar-menu-item > eo-link{display:block;min-width:0px;color:var(--color-header-text);cursor:pointer}.platform-category-sidebar-menu-item > eo-link:hover,\n.platform-category-sidebar-menu-item\n > eo-link:hover\n .platform-category-sidebar-menu-icon{color:var(--color-brand-hover)}.platform-category-sidebar-menu-item > eo-link.active,\n.platform-category-sidebar-menu-item\n > eo-link.active\n .platform-category-sidebar-menu-icon{color:var(--color-brand-active)}.platform-category-sidebar-menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px}.platform-category-sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.platform-category-name{font-size:18px;font-weight:500;color:var(--text-color-secondary);flex-shrink:0}.platform-items{display:grid;grid-template-columns:repeat(2,1fr);gap:0 54px}.platform-items > li{min-width:0}.platform-items > li > eo-link{width:100%;cursor:pointer}.platform-item{padding:12px 0;display:flex;flex-direction:column}.platform-item:hover .platform-item-icon,\n.platform-item:hover .platform-item-name{color:var(--color-brand-hover)}.platform-item-title{display:flex;align-items:center;margin-bottom:4px}.platform-item-icon{margin-right:8px;font-size:14px;color:var(--text-color-secondary);flex-shrink:0}.platform-item-name{font-weight:500;color:var(--text-color-title);line-height:18px}.platform-item-description{margin-left:22px;color:var(--text-color-secondary);line-height:18px}",""]);const o=i.toString()},5924:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,":host{display:inline-block;width:32px;height:32px;--eo-launchpad-v2-max-height:calc(100vh - var(--app-bar-height) - 36px)}:host([hidden]){display:none}.launchpad-button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px}.launchpad-button:hover,\n.launchpad-button.active{background-color:var(--color-fill-bg-base-1)}.launchpad-button.active{color:var(--color-brand)}.mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.mask.active{display:block}.launchpad{display:none;position:absolute;margin-top:4px;z-index:1;width:1110px;max-width:calc(100vw - 100px);height:var(--eo-launchpad-v2-max-height);background-color:var(--eo-launchpad-v2-background);border:1px solid var(--color-text-divider-line);border-radius:6px;box-shadow:var(--fullscreen-overlay-shadow)}.launchpad.active{display:flex}.sidebar{width:190px;display:flex;flex-direction:column;background:var(--color-fill-bg-base-3);min-width:0;background-size:205px 205px;background-repeat:no-repeat;background-position:left 52px bottom 27px}.sidebar > *:not(:last-child){border-bottom:1px solid var(--stroke-color-default)}.quick-nav-label,\n.platform-nav-label,\n.jump-nav-label,\n.menu-group-label,\n.menu-item-label,\n.recent-visits span{overflow:auto;white-space:normal;word-break:break-word;width:90px}.recent-visits span{width:100%}.sidebar-menu,\n.menu-groups,\n.menu,\n.sub-menu,\n.recent-visits,\n.platform-items{list-style:none;margin:0;padding:0}.sidebar-menu,\n.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.sidebar-menu-item > eo-link,\n.menu-item > eo-link,\n.recent-visits eo-link{display:block;min-width:0;height:100%}.sidebar-menu-item > eo-link::part(link),\n.menu-item > eo-link::part(link){display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.sidebar-menu-item{padding:0 12px 0 16px;justify-content:space-between}.sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.union{flex:1;display:flex;flex-direction:column;overflow-y:auto}.quick-nav,\n.platform-nav{display:flex;flex-direction:column;padding:20px 0 24px}.platform-nav{padding:0 0 24px}.quick-nav-label,\n.platform-nav-label{color:var(--color-header-text);font-weight:500;margin-bottom:14px;padding:0 16px}.quick-nav-menu,\n.platform-nav-menu{flex:1}.jump-nav > eo-link{display:block;cursor:pointer}.jump-nav > eo-link::part(link){padding:10px 16px;display:flex;justify-content:space-between;align-items:center}.jump-nav-label{flex:1;color:var(--color-header-text);font-weight:500}.jump-nav > eo-icon{font-size:14px;color:var(--text-color-default)}.content{flex:1;padding:20px 24px 24px;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.search-box{border-bottom:1px solid var(--color-text-divider-line);display:flex;gap:8px;align-items:center;padding:10px 0;margin-top:-10px;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)}.menu-groups,\n.recent-visits{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;width:100%}.sidebar-menu-item,\n.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-icon{color:var(--eo-launchpad-v2-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-remove,\n.menu-item-star{cursor:pointer}.menu-item-remove,\n.menu-item-star,\n.menu-item-toggle{color:var(--color-secondary-text)}.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)}.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)}.recent-visits-label{margin-bottom:12px;font-size:var(--card-title-font-size);color:var(--color-header-text);font-weight:500}.recent-visits{display:grid;gap:8px}.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:100%;padding:0 8px}.sidebar-menu-item > eo-link:hover::part(link),\n.sidebar-menu-item > eo-link:hover .sidebar-menu-icon,\n.menu-item > eo-link:hover::part(link),\n.menu-item > eo-link:hover .menu-icon,\n.menu-item > eo-link:hover .menu-item-toggle,\n.recent-visits eo-link:hover::part(link){color:var(--color-brand-hover)}.spinner{display:flex;justify-content:center;align-items:center;color:var(--theme-doderblue-color);flex:1;font-size:30px}.empty,\n.loading > :not(.spinner){display:none}@supports not (inset: 0){.content,\n .search-box,\n .sidebar-menu,\n .menu,\n .sub-menu,\n .sidebar-menu-item,\n .menu-item:not(.folder),\n .sidebar-menu-item > eo-link::part(link),\n .menu-item > eo-link::part(link){gap:0}.sidebar-menu > :not(:first-child),\n .menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.search-icon,\n .sidebar-menu-icon,\n .menu-icon{margin-right:8px}.search-clear,\n .menu-item-star,\n .menu-item-toggle{margin-left:8px}.content > :not(:last-child){margin-bottom:24px}}",""]);const o=i.toString()},8356:(e,t,a)=>{a.d(t,{P:()=>i,z:()=>r});var n=a(8769),l=a.n(n);const r=l().createContext({}),i=()=>l().useContext(r)},8776:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".fadeEnter{opacity:0;transform:scale(0.95)}.fadeEnterActive{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit{transform:translate(-30px,0)}.fadeExitActive{transform:translate(-100%,0);transition:transform 300ms ease-out}.fadeExitDone{display:none}",""]);const o=i.toString()},8839:(e,t,a)=>{a.d(t,{F:()=>g,r:()=>d});var n=a(9575),l=a(8769),r=a.n(l),i=a(1030),o=a(3373),c=a.n(o),m=a(9393),s=a(8356),p=a(6934),u=a(403);function d(e){let{name:t,items:a}=e;return r().createElement("li",{className:"menu-group"},r().createElement("div",{className:"menu-group-label"},t),r().createElement("ul",{className:"menu"},a.map((e=>"dir"===e.type?r().createElement(f,{key:`${e.type}-${e.id}`,name:e.localeName,items:e.items}):r().createElement(v,{key:`${e.type}-${e.id}`,item:e})))))}function v(e){var t;let{item:a}=e;const{t:o}=(0,p.useTranslation)(u.NS),{loadingFavorites:d,readonly:v,pushRecentVisit:g,toggleStar:f,isStarred:h}=(0,s.P)(),b=(0,l.useMemo)((()=>h(a)),[h,a]),x=(0,l.useCallback)((()=>{f(a)}),[a,f]),y=(0,l.useCallback)((()=>{g(a)}),[a,g]);return r().createElement("li",{className:c()("menu-item",{starred:b,"can-star":!d})},r().createElement(m.EM,(0,n.A)({onClick:y},"app"===a.type?{url:a.url}:{href:a.url}),r().createElement(m.Bj,(0,n.A)({className:"menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.localeName)),!v&&r().createElement(m.Bj,{lib:"fa",prefix:b?"fas":"far",icon:"star",className:"menu-item-star",title:o(b?u.K.UNFAVORITE:u.K.FAVORITE),onClick:x,"data-testid":"menu-item-star"}))}function g(e){var t;let{item:a,target:o}=e;const{readonly:c,pushRecentVisit:p,toggleStar:u}=(0,s.P)(),d=(0,l.useCallback)((()=>{"link"!==a.type&&p(a)}),[a,p]),v=(0,l.useCallback)((()=>{u(a)}),[a,u]);return r().createElement("li",{className:"sidebar-menu-item"},r().createElement(m.EM,(0,n.A)({onClick:d},"app"===a.type?{url:a.url}:{href:a.url},o?{target:o}:null),r().createElement(m.Bj,(0,n.A)({className:"sidebar-menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.name)),!c&&r().createElement(m.Bj,{lib:"fa",icon:"xmark",className:"menu-item-remove",onClick:v}))}function f(e){let{name:t,items:a}=e;const{searching:n}=(0,s.P)(),[i,o]=(0,l.useState)(!1),[p,u]=(0,l.useState)(!1),d=(0,l.useCallback)((()=>{n?u((e=>!e)):o((e=>!e))}),[n]);(0,l.useEffect)((()=>{u(!0)}),[n]);const g=n?p:i;return r().createElement("li",{className:"menu-item folder"},r().createElement(m.EM,{onClick:d},r().createElement(m.Bj,{lib:"fa",prefix:"far",icon:"folder-open",className:"menu-icon"}),r().createElement("span",{className:"menu-item-label"},t),r().createElement(m.Bj,{lib:"antd",icon:g?"up":"down",className:"menu-item-toggle"})),r().createElement("ul",{className:c()("sub-menu",{expanded:g})},a.map((e=>r().createElement(v,{key:`${e.type}-${e.id}`,item:e})))))}(0,p.initializeReactI18n)(u.NS,u.I)},9262:(e,t,a)=>{var n=a(2591),l=a.n(n),r=a(1740),i=a.n(r),o=a(8128),c=a.n(o),m=a(855),s=a.n(m),p=a(3051),u=a.n(p),d=a(3656),v=a.n(d),g=a(1724),f={};f.styleTagTransform=v(),f.setAttributes=s(),f.insert=c().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u(),l()(g.A,f),g.A&&g.A.locals&&g.A.locals},9302:(e,t,a)=>{a.d(t,{r:()=>y});var n=a(9575),l=a(8769),r=a.n(l),i=a(3373),o=a.n(i),c=a(9393),m=a(2133),s=a(8839),p=a(8356),u=a(1030);function d(e){var t;let{item:a,active:l,onClick:i}=e;return r().createElement("li",{className:"platform-category-sidebar-menu-item"},r().createElement(c.EM,{type:"plain",className:o()({active:l}),onClick:()=>null==i?void 0:i(a)},r().createElement(c.Bj,(0,n.A)({className:"platform-category-sidebar-menu-icon",lib:"easyops",category:"second-menu",icon:"serve-second-menu"},null!==(t=a.icon)&&void 0!==t&&t.lib&&a.icon.icon?(0,u.pick)(a.icon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"platform-category-sidebar-menu-item-label"},a.name)))}function v(e){var t;let{item:a}=e;return r().createElement("li",null,r().createElement(c.EM,(0,n.A)({type:"plain"},"app"===a.type?{url:a.url}:{href:a.url,target:"_blank"}),r().createElement("div",{className:"platform-item"},r().createElement("div",{className:"platform-item-title"},r().createElement(c.Bj,(0,n.A)({className:"platform-item-icon",lib:"easyops",category:"third-menu",icon:"deploy-orchestration-tasks-third-menu"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,u.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("div",{className:"platform-item-name"},a.name)),r().createElement("div",{className:"platform-item-description"},a.description))))}var g=a(3081),f=a(1675),h=a(2865),b=a(6934),x=a(403);function y(e){let{active:t}=e;const{t:a}=(0,b.useTranslation)(x.NS),i=(0,l.useRef)(null),[u,y]=(0,l.useState)([]),k=(0,l.useCallback)((()=>{var e;null===(e=i.current)||void 0===e||e.focus()}),[]),[N,w]=(0,l.useState)("#all"),A=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-platform-category"]}),[]),C=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-scenario-center"]}),[]),j=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-solution-center"]}),[]),S=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-open-platform"]}),[]),{loading:I,q:R,setQ:F,menuGroups:M,favorites:z,loadingFavorites:B,recentVisits:T,pushRecentVisit:_,toggleStar:K,isStarred:P,platformCategories:O}=(0,m.sZ)(t),q=!!R,V=(0,l.useCallback)((e=>{F(e.target.value)}),[F]),$=(0,l.useCallback)((()=>{F("")}),[F]);(0,l.useEffect)((()=>{var e;t&&(null===(e=i.current)||void 0===e||e.focus())}),[t]);const L=(0,l.useCallback)((e=>{w(e.id)}),[]),D=(0,l.useMemo)((()=>O.find((e=>e.id===N))),[N,O]);return(0,l.useEffect)((()=>{z.length>u.length?y(z):setTimeout((()=>{y(z)}),300)}),[z,u.length]),r().createElement("div",{className:o()("launchpad",{active:t})},r().createElement(p.z.Provider,{value:{searching:q,loadingFavorites:B,pushRecentVisit:_,toggleStar:K,isStarred:P}},r().createElement("div",{className:"sidebar"},r().createElement("div",{className:"union"},r().createElement("div",{className:"quick-nav"},r().createElement("div",{className:"quick-nav-label"},a(x.K.QUICK_ACCESS)),r().createElement(f.A,null,r().createElement("ul",{className:"sidebar-menu quick-nav-menu"},u.map(((e,t)=>r().createElement(h.A,{key:t,timeout:300,in:!!z.find((t=>t.id===e.id)),classNames:{enter:"fadeEnter",enterActive:"fadeEnterActive",exit:"fadeExit",exitActive:"fadeExitActive",exitDone:"fadeExitDone"}},r().createElement(s.F,{key:t,item:e}))))))),A&&r().createElement("div",{className:"platform-nav"},r().createElement("div",{className:"platform-nav-label"},a(x.K.PLATFORM_BASE)),r().createElement("ul",{className:"sidebar-menu platform-nav-menu"},O.map(((e,t)=>r().createElement(d,{key:t,onClick:L,item:e,active:N===e.id})))))),C&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/scenario"},r().createElement("div",{className:"jump-nav-label"},a(x.K.SCENARIO_CENTER)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),j&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/solution"},r().createElement("div",{className:"jump-nav-label"},a(x.K.SOLUTIONS)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),S&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/developers"},r().createElement("div",{className:"jump-nav-label"},a(x.K.OPEN_PLATFORM)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"})))),r().createElement("div",{className:o()("content",{loading:I})},r().createElement(E,{loading:I}),"#all"!==N&&r().createElement("div",{className:"platform-category-name"},null==D?void 0:D.name),r().createElement("div",{className:"search-box",onClick:k},r().createElement(c.Bj,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),r().createElement("input",{ref:i,placeholder:a(x.K.SEARCH_PLACEHOLDER),value:R,onChange:V,className:"search-input"}),r().createElement(c.Bj,{lib:"antd",theme:"filled",icon:"close-circle",className:o()("search-clear",{searching:q}),onClick:$})),"#all"===N&&r().createElement("div",{className:o()({empty:0===T.length})},r().createElement("div",{className:"recent-visits-label"},a(x.K.RECENT_VISITS)),r().createElement("ul",{className:"recent-visits"},T.map(((e,t)=>r().createElement("li",{key:t},r().createElement(c.EM,(0,n.A)({onClick:()=>_(e)},"app"===e.type?{url:e.url}:{href:e.url,target:"_blank"}),r().createElement("span",null,e.name))))))),"#all"===N&&r().createElement("ul",{className:"menu-groups"},M.map((e=>r().createElement(s.r,{key:e.name,name:e.localeName,items:e.items})))),"#all"!==N&&r().createElement("ul",{className:o()("platform-items",{empty:0===(null==D?void 0:D.items.length)})},null==D?void 0:D.items.map(((e,t)=>r().createElement(v,{item:e,key:t})))))))}function E(e){let{loading:t}=e;return t&&r().createElement("div",{className:"spinner"},r().createElement(c.Bj,{lib:"fa",icon:"spinner",spinning:!0}))}(0,b.initializeReactI18n)(x.NS,x.I)}}]);
2
- //# sourceMappingURL=9149.0f9ad72a.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/9149.0f9ad72a.js","mappings":"iLAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,wOACmF,KAE5H,S,kECLIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,0uDAU+X,KAExa,QAAeH,EAAwBI,U,kECdnCJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,82LA8C+C,KAExF,QAAeH,EAAwBI,U,iECzChC,MAAMC,EAAoBC,IAAAA,cAC/B,CAAC,GAGUC,EAAsBA,IACjCD,IAAAA,WAAiBD,E,kECdfL,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,+SAAgT,KAEzV,QAAeH,EAAwBI,U,+ICchC,SAASI,EAASC,GAAkC,IAAjC,KAAEC,EAAI,MAAEC,GAAuBF,EACvD,OACEH,IAAAA,cAAA,MAAIM,UAAU,cACZN,IAAAA,cAAA,OAAKM,UAAU,oBAAoBF,GACnCJ,IAAAA,cAAA,MAAIM,UAAU,QACXD,EAAME,KAAKC,GACI,QAAdA,EAAKC,KACHT,IAAAA,cAACU,EAAc,CACbC,IAAK,GAAGH,EAAKC,QAAQD,EAAKX,KAC1BO,KAAMI,EAAKI,WACXP,MAAOG,EAAKH,QAGdL,IAAAA,cAACa,EAAQ,CAACF,IAAK,GAAGH,EAAKC,QAAQD,EAAKX,KAAMW,KAAMA,OAM5D,CAMA,SAASK,EAAQC,GAA0B,IAAAC,EAAA,IAAzB,KAAEP,GAAqBM,EACvC,MAAM,EAA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,CAAE8G,MAA+B,IAAxBrC,EAAaY,UAC/ClH,IAAAA,cAAA,OAAKM,UAAU,uBAAuBU,EAAE0B,EAAAA,EAAEkG,gBAC1C5I,IAAAA,cAAA,MAAIM,UAAU,iBACXgG,EAAa/F,KAAI,CAACC,EAAM+G,IACvBvH,IAAAA,cAAA,MAAIW,IAAK4G,GACPvH,IAAAA,cAAC8B,EAAAA,IAAWC,EAAAA,EAAAA,GAAA,CACVC,QAASA,IAAMX,EAAgBb,IACZ,QAAdA,EAAKC,KACN,CACEwB,IAAKzB,EAAKyB,KAEZ,CACEC,KAAM1B,EAAKyB,IACXe,OAAQ,WAGdhD,IAAAA,cAAA,YAAOQ,EAAKJ,YAOV,SAAbiF,GACCrF,IAAAA,cAAA,MAAIM,UAAU,eACX8F,EAAW7F,KAAKsI,GACf7I,IAAAA,cAACE,EAAAA,EAAS,CACRS,IAAKkI,EAAMzI,KACXA,KAAMyI,EAAMjI,WACZP,MAAOwI,EAAMxI,WAKP,SAAbgF,GACCrF,IAAAA,cAAA,MACEM,UAAWuB,IAAW,iBAAkB,CACtC8G,MAAqC,KAA9B5B,aAAW,EAAXA,EAAa1G,MAAM6G,WAG3BH,aAAW,EAAXA,EAAa1G,MAAME,KAAI,CAACC,EAAM+G,IAC7BvH,IAAAA,cAAC0E,EAAY,CAAClE,KAAMA,EAAMG,IAAK4G,SAQ/C,CAEA,SAASe,EAAOxH,GAAoC,IAAnC,QAAEmF,GAA+BnF,EAChD,OACEmF,GACEjG,IAAAA,cAAA,OAAKM,UAAU,WACbN,IAAAA,cAACmC,EAAAA,GAAW,CAACC,IAAI,KAAKC,KAAK,UAAUyG,UAAQ,IAIrD,EA/PAjF,EAAAA,EAAAA,qBAAoB3C,EAAAA,GAAI4C,EAAAA,E","sources":["webpack:///./src/launchpad-button-v2/host-context.css","webpack:///./src/launchpad-button-v2/PlatformCategory.shadow.css","webpack:///./src/launchpad-button-v2/styles.shadow.css","webpack:///./src/launchpad-button-v2/LaunchpadContext.ts","webpack:///./src/launchpad-button-v2/Launchpad.shadow.css","webpack:///./src/launchpad-button-v2/MenuGroup.tsx","webpack:///./src/launchpad-button-v2/host-context.css?59a8","webpack:///./src/launchpad-button-v2/PlatformCategory.tsx","webpack:///./src/launchpad-button-v2/Launchpad.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:root{--eo-launchpad-v2-background:#fff;--eo-launchpad-v2-menu-icon-color:#8c8c8c}html[data-theme=\"dark\"],\nhtml[data-theme=\"dark-v2\"]{--eo-launchpad-v2-background:#26262a;--eo-launchpad-v2-menu-icon-color:rgba(255,255,255,0.45)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.platform-category-name,\n.platform-category-sidebar-menu-item-label,\n.platform-item-name,\n.platform-item-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-category-sidebar-menu-item{display:flex;gap:8px;align-items:center;padding:0px 12px 0px 16px}.platform-category-sidebar-menu-item > eo-link{display:block;min-width:0px;color:var(--color-header-text);cursor:pointer}.platform-category-sidebar-menu-item > eo-link:hover,\n.platform-category-sidebar-menu-item\n > eo-link:hover\n .platform-category-sidebar-menu-icon{color:var(--color-brand-hover)}.platform-category-sidebar-menu-item > eo-link.active,\n.platform-category-sidebar-menu-item\n > eo-link.active\n .platform-category-sidebar-menu-icon{color:var(--color-brand-active)}.platform-category-sidebar-menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px}.platform-category-sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.platform-category-name{font-size:18px;font-weight:500;color:var(--text-color-secondary);flex-shrink:0}.platform-items{display:grid;grid-template-columns:repeat(2,1fr);gap:0 54px}.platform-items > li{min-width:0}.platform-items > li > eo-link{width:100%;cursor:pointer}.platform-item{padding:12px 0;display:flex;flex-direction:column}.platform-item:hover .platform-item-icon,\n.platform-item:hover .platform-item-name{color:var(--color-brand-hover)}.platform-item-title{display:flex;align-items:center;margin-bottom:4px}.platform-item-icon{margin-right:8px;font-size:14px;color:var(--text-color-secondary);flex-shrink:0}.platform-item-name{font-weight:500;color:var(--text-color-title);line-height:18px}.platform-item-description{margin-left:22px;color:var(--text-color-secondary);line-height:18px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:inline-block;width:32px;height:32px;--eo-launchpad-v2-max-height:calc(100vh - var(--app-bar-height) - 36px)}:host([hidden]){display:none}.launchpad-button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px}.launchpad-button:hover,\n.launchpad-button.active{background-color:var(--color-fill-bg-base-1)}.launchpad-button.active{color:var(--color-brand)}.mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.mask.active{display:block}.launchpad{display:none;position:absolute;margin-top:4px;z-index:1;width:1110px;max-width:calc(100vw - 100px);height:var(--eo-launchpad-v2-max-height);background-color:var(--eo-launchpad-v2-background);border:1px solid var(--color-text-divider-line);border-radius:6px;box-shadow:var(--fullscreen-overlay-shadow)}.launchpad.active{display:flex}.sidebar{width:190px;display:flex;flex-direction:column;background:var(--color-fill-bg-base-3);min-width:0;background-size:205px 205px;background-repeat:no-repeat;background-position:left 52px bottom 27px}.sidebar > *:not(:last-child){border-bottom:1px solid var(--stroke-color-default)}.quick-nav-label,\n.platform-nav-label,\n.jump-nav-label,\n.menu-group-label,\n.menu-item-label,\n.recent-visits span{overflow:auto;white-space:normal;word-break:break-word;width:90px}.recent-visits span{width:100%}.sidebar-menu,\n.menu-groups,\n.menu,\n.sub-menu,\n.recent-visits,\n.platform-items{list-style:none;margin:0;padding:0}.sidebar-menu,\n.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.sidebar-menu-item > eo-link,\n.menu-item > eo-link,\n.recent-visits eo-link{display:block;min-width:0;height:100%}.sidebar-menu-item > eo-link::part(link),\n.menu-item > eo-link::part(link){display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.sidebar-menu-item{padding:0 12px 0 16px;justify-content:space-between}.sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.union{flex:1;display:flex;flex-direction:column;overflow-y:auto}.quick-nav,\n.platform-nav{display:flex;flex-direction:column;padding:20px 0 24px}.platform-nav{padding:0 0 24px}.quick-nav-label,\n.platform-nav-label{color:var(--color-header-text);font-weight:500;margin-bottom:14px;padding:0 16px}.quick-nav-menu,\n.platform-nav-menu{flex:1}.jump-nav > eo-link{display:block;cursor:pointer}.jump-nav > eo-link::part(link){padding:10px 16px;display:flex;justify-content:space-between;align-items:center}.jump-nav-label{flex:1;color:var(--color-header-text);font-weight:500}.jump-nav > eo-icon{font-size:14px;color:var(--text-color-default)}.content{flex:1;padding:20px 24px 24px;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.search-box{border-bottom:1px solid var(--color-text-divider-line);display:flex;gap:8px;align-items:center;padding:10px 0;margin-top:-10px;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)}.menu-groups,\n.recent-visits{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;width:100%}.sidebar-menu-item,\n.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-icon{color:var(--eo-launchpad-v2-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-remove,\n.menu-item-star{cursor:pointer}.menu-item-remove,\n.menu-item-star,\n.menu-item-toggle{color:var(--color-secondary-text)}.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)}.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)}.recent-visits-label{margin-bottom:12px;font-size:var(--card-title-font-size);color:var(--color-header-text);font-weight:500}.recent-visits{display:grid;gap:8px}.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:100%;padding:0 8px}.sidebar-menu-item > eo-link:hover::part(link),\n.sidebar-menu-item > eo-link:hover .sidebar-menu-icon,\n.menu-item > eo-link:hover::part(link),\n.menu-item > eo-link:hover .menu-icon,\n.menu-item > eo-link:hover .menu-item-toggle,\n.recent-visits eo-link:hover::part(link){color:var(--color-brand-hover)}.spinner{display:flex;justify-content:center;align-items:center;color:var(--theme-doderblue-color);flex:1;font-size:30px}.empty,\n.loading > :not(.spinner){display:none}@supports not (inset: 0){.content,\n .search-box,\n .sidebar-menu,\n .menu,\n .sub-menu,\n .sidebar-menu-item,\n .menu-item:not(.folder),\n .sidebar-menu-item > eo-link::part(link),\n .menu-item > eo-link::part(link){gap:0}.sidebar-menu > :not(:first-child),\n .menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.search-icon,\n .sidebar-menu-icon,\n .menu-icon{margin-right:8px}.search-clear,\n .menu-item-star,\n .menu-item-toggle{margin-left:8px}.content > :not(:last-child){margin-bottom:24px}}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import React from \"react\";\nimport type { MenuItemDataLink, MenuItemDataNormal } from \"./interfaces\";\n\nexport interface LaunchpadContextData {\n searching: boolean;\n loadingFavorites: boolean;\n readonly?: boolean;\n pushRecentVisit(item: MenuItemDataNormal): void;\n toggleStar(item: MenuItemDataNormal | MenuItemDataLink): void;\n isStarred(item: MenuItemDataNormal): boolean;\n}\n\nexport const LaunchpadsContext = React.createContext<LaunchpadContextData>(\n {} as LaunchpadContextData\n);\n\nexport const useLaunchpadContext = (): LaunchpadContextData =>\n React.useContext(LaunchpadsContext);\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.fadeEnter{opacity:0;transform:scale(0.95)}.fadeEnterActive{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit{transform:translate(-30px,0)}.fadeExitActive{transform:translate(-100%,0);transition:transform 300ms ease-out}.fadeExitDone{display:none}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { pick } from \"lodash\";\nimport classNames from \"classnames\";\nimport { WrappedIcon, WrappedLink } from \"./wrapped-bricks\";\nimport { useLaunchpadContext } from \"./LaunchpadContext\";\nimport type {\n MenuItemData,\n MenuItemDataNormal,\n SidebarMenuItemData,\n} from \"./interfaces\";\nimport { Target } from \"@next-bricks/basic/link\";\nimport { initializeReactI18n, useTranslation } from \"@next-core/i18n/react\";\nimport { K, NS, locales } from \"./i18n\";\n\ninitializeReactI18n(NS, locales);\n\nexport interface MenuGroupProps {\n name: string;\n items: MenuItemData[];\n}\n\nexport function MenuGroup({ name, items }: MenuGroupProps) {\n return (\n <li className=\"menu-group\">\n <div className=\"menu-group-label\">{name}</div>\n <ul className=\"menu\">\n {items.map((item) =>\n item.type === \"dir\" ? (\n <MenuItemFolder\n key={`${item.type}-${item.id}`}\n name={item.localeName as string}\n items={item.items}\n />\n ) : (\n <MenuItem key={`${item.type}-${item.id}`} item={item} />\n )\n )}\n </ul>\n </li>\n );\n}\n\nexport interface MenuItemProps {\n item: MenuItemDataNormal;\n}\n\nfunction MenuItem({ item }: MenuItemProps) {\n const { t } = useTranslation(NS);\n const { loadingFavorites, readonly, pushRecentVisit, toggleStar, isStarred } =\n useLaunchpadContext();\n\n const starred = useMemo(() => isStarred(item), [isStarred, item]);\n\n const handleStarClick = useCallback(() => {\n toggleStar(item);\n }, [item, toggleStar]);\n\n const handleClick = useCallback(() => {\n pushRecentVisit(item);\n }, [item, pushRecentVisit]);\n\n return (\n <li\n className={classNames(\"menu-item\", {\n starred,\n \"can-star\": !loadingFavorites,\n })}\n >\n <WrappedLink\n onClick={handleClick}\n {...(item.type === \"app\"\n ? {\n url: item.url,\n }\n : {\n href: item.url,\n })}\n >\n <WrappedIcon\n className=\"menu-icon\"\n lib=\"easyops\"\n icon=\"micro-app-center\"\n {...(item.menuIcon?.lib && item.menuIcon.icon\n ? (pick(item.menuIcon, [\n \"lib\",\n \"icon\",\n \"theme\",\n \"category\",\n \"prefix\",\n ]) as any)\n : null)}\n />\n <span className=\"menu-item-label\">{item.localeName}</span>\n </WrappedLink>\n {!readonly && (\n <WrappedIcon\n lib=\"fa\"\n prefix={starred ? \"fas\" : \"far\"}\n icon=\"star\"\n className=\"menu-item-star\"\n title={(starred ? t(K.UNFAVORITE) : t(K.FAVORITE)) as string}\n onClick={handleStarClick}\n data-testid=\"menu-item-star\"\n />\n )}\n </li>\n );\n}\n\nexport interface SidebarMenuItemProps {\n item: SidebarMenuItemData;\n target?: Target;\n}\n\nexport function SidebarMenuItem({ item, target }: SidebarMenuItemProps) {\n const { readonly, pushRecentVisit, toggleStar } = useLaunchpadContext();\n\n const handleClick = useCallback(() => {\n if (item.type !== \"link\") {\n pushRecentVisit(item);\n }\n }, [item, pushRecentVisit]);\n\n const handleRemoveStar = useCallback(() => {\n toggleStar(item);\n }, [item, toggleStar]);\n\n return (\n <li className=\"sidebar-menu-item\">\n <WrappedLink\n onClick={handleClick}\n {...(item.type === \"app\"\n ? {\n url: item.url,\n }\n : {\n href: item.url,\n })}\n {...(target\n ? {\n target,\n }\n : null)}\n >\n <WrappedIcon\n className={`sidebar-menu-icon`}\n lib=\"easyops\"\n icon=\"micro-app-center\"\n {...(item.menuIcon?.lib && item.menuIcon.icon\n ? (pick(item.menuIcon, [\n \"lib\",\n \"icon\",\n \"theme\",\n \"category\",\n \"prefix\",\n ]) as any)\n : null)}\n />\n <span className=\"menu-item-label\">{item.name}</span>\n </WrappedLink>\n {!readonly && (\n <WrappedIcon\n lib=\"fa\"\n icon=\"xmark\"\n className=\"menu-item-remove\"\n onClick={handleRemoveStar}\n />\n )}\n </li>\n );\n}\n\nexport interface MenuItemFolderProps {\n name: string;\n items: MenuItemDataNormal[];\n}\n\nfunction MenuItemFolder({ name, items }: MenuItemFolderProps) {\n const { searching } = useLaunchpadContext();\n const [expanded, setExpanded] = useState(false);\n const [searchingExpanded, setSearchingExpanded] = useState(false);\n\n const toggle = useCallback(() => {\n // Use separated expanded states for searching and non-searching.\n if (searching) {\n setSearchingExpanded((previous) => !previous);\n } else {\n setExpanded((previous) => !previous);\n }\n }, [searching]);\n\n useEffect(() => {\n // Each time when start searching, set it as expanded.\n setSearchingExpanded(true);\n }, [searching]);\n\n const actualExpanded = searching ? searchingExpanded : expanded;\n\n return (\n <li className=\"menu-item folder\">\n <WrappedLink onClick={toggle}>\n <WrappedIcon\n lib=\"fa\"\n prefix=\"far\"\n icon=\"folder-open\"\n className=\"menu-icon\"\n />\n <span className=\"menu-item-label\">{name}</span>\n <WrappedIcon\n lib=\"antd\"\n icon={actualExpanded ? \"up\" : \"down\"}\n className=\"menu-item-toggle\"\n />\n </WrappedLink>\n <ul className={classNames(\"sub-menu\", { expanded: actualExpanded })}>\n {items.map((item) => (\n <MenuItem key={`${item.type}-${item.id}`} item={item} />\n ))}\n </ul>\n </li>\n );\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./host-context.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./host-context.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React from \"react\";\nimport { WrappedLink, WrappedIcon } from \"./wrapped-bricks\";\nimport { MenuItemDataNormal, PlatformCategoryItem } from \"./interfaces\";\nimport { pick } from \"lodash\";\nimport classNames from \"classnames\";\n\nexport interface PlatformCategorySidebarMenuItemProps {\n item: PlatformCategoryItem;\n active?: boolean;\n onClick?: (item: PlatformCategoryItem) => void;\n}\n\nexport function PlatformCategorySidebarMenuItem({\n item,\n active,\n onClick,\n}: PlatformCategorySidebarMenuItemProps) {\n return (\n <li className=\"platform-category-sidebar-menu-item\">\n <WrappedLink\n type=\"plain\"\n className={classNames({ active })}\n onClick={() => onClick?.(item)}\n >\n <WrappedIcon\n className={\"platform-category-sidebar-menu-icon\"}\n lib=\"easyops\"\n category=\"second-menu\"\n icon=\"serve-second-menu\"\n {...(item.icon?.lib && item.icon.icon\n ? (pick(item.icon, [\n \"lib\",\n \"icon\",\n \"theme\",\n \"category\",\n \"prefix\",\n ]) as any)\n : null)}\n />\n <span className=\"platform-category-sidebar-menu-item-label\">\n {item.name}\n </span>\n </WrappedLink>\n </li>\n );\n}\n\nexport interface PlatformItemProps {\n item: MenuItemDataNormal;\n}\n\nexport function PlatformItem({ item }: PlatformItemProps) {\n return (\n <li>\n <WrappedLink\n type=\"plain\"\n {...(item.type === \"app\"\n ? {\n url: item.url,\n }\n : {\n href: item.url,\n target: \"_blank\",\n })}\n >\n <div className=\"platform-item\">\n <div className=\"platform-item-title\">\n <WrappedIcon\n className=\"platform-item-icon\"\n lib=\"easyops\"\n category=\"third-menu\"\n icon=\"deploy-orchestration-tasks-third-menu\"\n {...(item.menuIcon?.lib && item.menuIcon.icon\n ? (pick(item.menuIcon, [\n \"lib\",\n \"icon\",\n \"theme\",\n \"category\",\n \"prefix\",\n ]) as any)\n : null)}\n />\n <div className=\"platform-item-name\">{item.name}</div>\n </div>\n <div className=\"platform-item-description\">{item.description}</div>\n </div>\n </WrappedLink>\n </li>\n );\n}\n","import React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport classNames from \"classnames\";\nimport { WrappedIcon, WrappedLink } from \"./wrapped-bricks\";\nimport { useLaunchpadInfo } from \"./useLaunchpadInfo.js\";\nimport { MenuGroup, SidebarMenuItem } from \"./MenuGroup.js\";\nimport { LaunchpadsContext } from \"./LaunchpadContext.js\";\nimport {\n FavMenuItem,\n PlatformCategoryItem,\n SidebarMenuItemData,\n} from \"./interfaces\";\nimport {\n PlatformItem,\n PlatformCategorySidebarMenuItem,\n} from \"./PlatformCategory\";\nimport { getRuntime } from \"@next-core/runtime\";\nimport { CSSTransition, TransitionGroup } from \"react-transition-group\";\nimport { initializeReactI18n, useTranslation } from \"@next-core/i18n/react\";\nimport { K, NS, locales } from \"./i18n\";\n\ninitializeReactI18n(NS, locales);\n\nexport function Launchpad({ active }: { active?: boolean }) {\n const { t } = useTranslation(NS);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const [favorites, setFavorites] = useState<FavMenuItem[]>([]);\n const handleClickSearchBox = useCallback(() => {\n searchInputRef.current?.focus();\n }, []);\n const [platform, setPlatform] = useState(\"#all\");\n\n const showPlatformCategory = React.useMemo(\n () => getRuntime()?.getFeatureFlags()[\"launchpad-show-platform-category\"],\n []\n );\n\n const showScenarioCenter = React.useMemo(\n () => getRuntime()?.getFeatureFlags()[\"launchpad-show-scenario-center\"],\n []\n );\n\n const showSolutionCenter = React.useMemo(\n () => getRuntime()?.getFeatureFlags()[\"launchpad-show-solution-center\"],\n []\n );\n\n const showOpenPlatform = React.useMemo(\n () => getRuntime()?.getFeatureFlags()[\"launchpad-show-open-platform\"],\n []\n );\n\n const {\n loading,\n q,\n setQ,\n menuGroups,\n favorites: _favorites,\n loadingFavorites,\n recentVisits,\n pushRecentVisit,\n toggleStar,\n isStarred,\n platformCategories,\n } = useLaunchpadInfo(active);\n const searching = !!q;\n\n const handleSearch = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setQ(e.target.value);\n },\n [setQ]\n );\n\n const clearSearch = useCallback(() => {\n setQ(\"\");\n }, [setQ]);\n\n useEffect(() => {\n if (active) {\n searchInputRef.current?.focus();\n }\n }, [active]);\n\n const handlePlatformCategoryClick = useCallback(\n (item: PlatformCategoryItem) => {\n setPlatform(item.id);\n },\n []\n );\n\n const curCategory = useMemo(() => {\n return platformCategories.find((v) => v.id === platform);\n }, [platform, platformCategories]);\n\n useEffect(() => {\n if (_favorites.length > favorites.length) {\n // 新增无需等待直接更新列表\n setFavorites(_favorites);\n } else {\n // 删除操作需要等待动画执行完后才更新列表数据\n setTimeout(() => {\n setFavorites(_favorites);\n }, 300);\n }\n }, [_favorites, favorites.length]);\n\n return (\n <div className={classNames(\"launchpad\", { active })}>\n <LaunchpadsContext.Provider\n value={{\n searching,\n loadingFavorites,\n pushRecentVisit,\n toggleStar,\n isStarred,\n }}\n >\n <div className=\"sidebar\">\n <div className=\"union\">\n <div className=\"quick-nav\">\n <div className=\"quick-nav-label\">{t(K.QUICK_ACCESS)}</div>\n {/* <Loading loading={loading || loadingFavorites} /> */}\n <TransitionGroup>\n <ul className=\"sidebar-menu quick-nav-menu\">\n {favorites.map((item, index) => (\n <CSSTransition\n key={index}\n timeout={300}\n in={!!_favorites.find((i) => i.id === item.id)}\n classNames={{\n enter: \"fadeEnter\",\n enterActive: \"fadeEnterActive\",\n exit: \"fadeExit\",\n exitActive: \"fadeExitActive\",\n exitDone: \"fadeExitDone\",\n }}\n >\n <SidebarMenuItem\n key={index}\n item={item as SidebarMenuItemData}\n />\n </CSSTransition>\n ))}\n </ul>\n </TransitionGroup>\n </div>\n\n {showPlatformCategory && (\n <div className=\"platform-nav\">\n <div className=\"platform-nav-label\">{t(K.PLATFORM_BASE)}</div>\n <ul className=\"sidebar-menu platform-nav-menu\">\n {platformCategories.map((item, index) => (\n <PlatformCategorySidebarMenuItem\n key={index}\n onClick={handlePlatformCategoryClick}\n item={item}\n active={platform === item.id}\n />\n ))}\n </ul>\n </div>\n )}\n </div>\n {showScenarioCenter && (\n <div className=\"jump-nav\">\n <WrappedLink type=\"plain\" url={\"/portal/scenario\"}>\n <div className=\"jump-nav-label\">{t(K.SCENARIO_CENTER)}</div>\n <WrappedIcon lib=\"antd\" icon=\"right\" theme=\"outlined\" />\n </WrappedLink>\n </div>\n )}\n\n {showSolutionCenter && (\n <div className=\"jump-nav\">\n <WrappedLink type=\"plain\" url={\"/portal/solution\"}>\n <div className=\"jump-nav-label\">{t(K.SOLUTIONS)}</div>\n <WrappedIcon lib=\"antd\" icon=\"right\" theme=\"outlined\" />\n </WrappedLink>\n </div>\n )}\n {showOpenPlatform && (\n <div className=\"jump-nav\">\n <WrappedLink type=\"plain\" url={\"/developers\"}>\n <div className=\"jump-nav-label\">{t(K.OPEN_PLATFORM)}</div>\n <WrappedIcon lib=\"antd\" icon=\"right\" theme=\"outlined\" />\n </WrappedLink>\n </div>\n )}\n </div>\n <div className={classNames(\"content\", { loading })}>\n <Loading loading={loading} />\n {platform !== \"#all\" && (\n <div className=\"platform-category-name\">{curCategory?.name}</div>\n )}\n <div className=\"search-box\" onClick={handleClickSearchBox}>\n <WrappedIcon\n lib=\"fa\"\n icon=\"magnifying-glass\"\n className=\"search-icon\"\n />\n <input\n ref={searchInputRef}\n placeholder={t(K.SEARCH_PLACEHOLDER) as string}\n value={q}\n onChange={handleSearch}\n className=\"search-input\"\n />\n <WrappedIcon\n lib=\"antd\"\n theme=\"filled\"\n icon=\"close-circle\"\n className={classNames(\"search-clear\", { searching })}\n onClick={clearSearch}\n />\n </div>\n {platform === \"#all\" && (\n <div className={classNames({ empty: recentVisits.length === 0 })}>\n <div className=\"recent-visits-label\">{t(K.RECENT_VISITS)}</div>\n <ul className=\"recent-visits\">\n {recentVisits.map((item, index) => (\n <li key={index}>\n <WrappedLink\n onClick={() => pushRecentVisit(item)}\n {...(item.type === \"app\"\n ? {\n url: item.url,\n }\n : {\n href: item.url,\n target: \"_blank\",\n })}\n >\n <span>{item.name}</span>\n </WrappedLink>\n </li>\n ))}\n </ul>\n </div>\n )}\n {platform === \"#all\" && (\n <ul className=\"menu-groups\">\n {menuGroups.map((group) => (\n <MenuGroup\n key={group.name}\n name={group.localeName as string}\n items={group.items}\n />\n ))}\n </ul>\n )}\n {platform !== \"#all\" && (\n <ul\n className={classNames(\"platform-items\", {\n empty: curCategory?.items.length === 0,\n })}\n >\n {curCategory?.items.map((item, index) => (\n <PlatformItem item={item} key={index} />\n ))}\n </ul>\n )}\n </div>\n </LaunchpadsContext.Provider>\n </div>\n );\n}\n\nfunction Loading({ loading }: { loading: boolean }) {\n return (\n loading && (\n <div className=\"spinner\">\n <WrappedIcon lib=\"fa\" icon=\"spinner\" spinning />\n </div>\n )\n );\n}\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","toString","LaunchpadsContext","React","useLaunchpadContext","MenuGroup","_ref","name","items","className","map","item","type","MenuItemFolder","key","localeName","MenuItem","_ref2","_item$menuIcon","t","useTranslation","NS","loadingFavorites","readonly","pushRecentVisit","toggleStar","isStarred","starred","useMemo","handleStarClick","useCallback","handleClick","classNames","WrappedLink","_extends","onClick","url","href","WrappedIcon","lib","icon","menuIcon","pick","prefix","title","K","UNFAVORITE","FAVORITE","SidebarMenuItem","_ref3","_item$menuIcon2","target","handleRemoveStar","_ref4","searching","expanded","setExpanded","useState","searchingExpanded","setSearchingExpanded","toggle","previous","useEffect","actualExpanded","initializeReactI18n","locales","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","PlatformCategorySidebarMenuItem","_item$icon","active","category","PlatformItem","description","Launchpad","searchInputRef","useRef","favorites","setFavorites","handleClickSearchBox","_searchInputRef$curre","current","focus","platform","setPlatform","showPlatformCategory","_getRuntime","getRuntime","getFeatureFlags","showScenarioCenter","_getRuntime2","showSolutionCenter","_getRuntime3","showOpenPlatform","_getRuntime4","loading","q","setQ","menuGroups","_favorites","recentVisits","platformCategories","useLaunchpadInfo","handleSearch","e","value","clearSearch","_searchInputRef$curre2","handlePlatformCategoryClick","curCategory","find","v","length","setTimeout","Provider","QUICK_ACCESS","TransitionGroup","index","CSSTransition","timeout","in","i","enter","enterActive","exit","exitActive","exitDone","PLATFORM_BASE","SCENARIO_CENTER","theme","SOLUTIONS","OPEN_PLATFORM","Loading","ref","placeholder","SEARCH_PLACEHOLDER","onChange","empty","RECENT_VISITS","group","spinning"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (()=>{"use strict";var e,r,t,n,a,o,l,i,s,c,u,d,h,f,m,p,b,v,g,P,y,x,w,k={9461:(e,r,t)=>{var n={"./eo-nav-menu":()=>Promise.all([t.e(2241),t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(1361),t.e(6934),t.e(1732),t.e(4727),t.e(5821)]).then((()=>()=>t(816))),"./launchpad-config":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(7732),t.e(9384),t.e(4344)]).then((()=>()=>t(5658))),"./easyops-navbar-alerts":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(9384),t.e(4273),t.e(1916),t.e(1890)]).then((()=>()=>t(3028))),"./eo-launchpad-button-v2":()=>Promise.all([t.e(4934),t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(7732),t.e(1361),t.e(6934),t.e(9384),t.e(9435),t.e(2133),t.e(9149),t.e(470)]).then((()=>()=>t(797))),"./eo-launchpad-quick-access":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(7732),t.e(1361),t.e(6934),t.e(9384),t.e(2133),t.e(8533)]).then((()=>()=>t(6300))),"./eo-search-launchpad":()=>Promise.all([t.e(4691),t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(7732),t.e(1361),t.e(6934),t.e(9384),t.e(2133),t.e(131)]).then((()=>()=>t(306))),"./eo-launchpad-recent-visits":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(7732),t.e(1361),t.e(6934),t.e(9384),t.e(2133),t.e(5929)]).then((()=>()=>t(9666))),"./eo-launchpad-button":()=>Promise.all([t.e(4934),t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(1361),t.e(6934),t.e(9384),t.e(9435),t.e(6595),t.e(8649)]).then((()=>()=>t(3827))),"./eo-frame-breadcrumb":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(4273),t.e(8339)]).then((()=>()=>t(8738))),"./eo-app-bar-wrapper":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3927)]).then((()=>()=>t(6736))),"./app-bar-wrapper":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3927)]).then((()=>()=>t(6736))),"./eo-sidebar-menu-group":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(62)]).then((()=>()=>t(7144))),"./eo-sidebar-menu-submenu":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(7544)]).then((()=>()=>t(986))),"./eo-sidebar-menu-item":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(4444)]).then((()=>()=>t(1718))),"./eo-sidebar-menu":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(4612)]).then((()=>()=>t(7846))),"./eo-sidebar":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(6934),t.e(1732),t.e(4273),t.e(5532)]).then((()=>()=>t(7120))),"./eo-sidebar-sub-menu":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(1732),t.e(1131)]).then((()=>()=>t(9982))),"./eo-directory":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(4273),t.e(7257)]).then((()=>()=>t(5370))),"./eo-directory-tree":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(4273),t.e(2130)]).then((()=>()=>t(5215))),"./eo-directory-tree-leaf":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(2251)]).then((()=>()=>t(4373))),"./nav-logo":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(5350)]).then((()=>()=>t(9968))),"./eo-directory-tree-internal-node":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(7825)]).then((()=>()=>t(9443))),"./query-search":()=>Promise.all([t.e(6302),t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(1030),t.e(3081),t.e(79),t.e(1361),t.e(9384),t.e(4273),t.e(9435),t.e(3526)]).then((()=>()=>t(5256))),"./poll-announce":()=>Promise.all([t.e(8769),t.e(7921),t.e(1280),t.e(5168),t.e(3081),t.e(79),t.e(7732),t.e(1361),t.e(6934),t.e(7352)]).then((()=>()=>t(8266))),"./get-menu-config-options":()=>Promise.all([t.e(79),t.e(7732),t.e(1321),t.e(102),t.e(4167),t.e(7159)]).then((()=>()=>t(3162))),"./get-menu-config-tree":()=>Promise.all([t.e(1030),t.e(79),t.e(7732),t.e(1321),t.e(102),t.e(4167),t.e(1255)]).then((()=>()=>t(1794)))},a=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),o=(e,r)=>{if(t.S){var n="default",a=t.S[n];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>a,init:()=>o})}},j={};function S(e){var r=j[e];if(void 0!==r)return r.exports;var t=j[e]={id:e,loaded:!1,exports:{}};return k[e].call(t.exports,t,t.exports,S),t.loaded=!0,t.exports}S.m=k,S.c=j,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((r,t)=>(S.f[t](e,r),r)),[])),S.u=e=>"chunks/"+({62:"eo-sidebar-menu-group",131:"eo-search-launchpad",470:"eo-launchpad-button-v2",1131:"eo-sidebar-sub-menu",1255:"get-menu-config-tree",1890:"easyops-navbar-alerts",2130:"eo-directory-tree",2251:"eo-directory-tree-leaf",3526:"query-search",3927:"eo-app-bar-wrapper",4344:"launchpad-config",4444:"eo-sidebar-menu-item",4612:"eo-sidebar-menu",5350:"nav-logo",5532:"eo-sidebar",5821:"eo-nav-menu",5929:"eo-launchpad-recent-visits",7159:"get-menu-config-options",7257:"eo-directory",7352:"poll-announce",7544:"eo-sidebar-menu-submenu",7825:"eo-directory-tree-internal-node",8339:"eo-frame-breadcrumb",8533:"eo-launchpad-quick-access",8649:"eo-launchpad-button"}[e]||e)+"."+{62:"e459c1c4",114:"003b9cfd",131:"393d7776",470:"2924d210",726:"2d6ad3b6",871:"f78b6d2b",1045:"6f2ef8ee",1122:"873dcb9d",1131:"3d1261af",1255:"a1d6cf7f",1369:"110f5b02",1370:"cb8ff339",1889:"5ec75a7c",1890:"e5d48d87",2052:"14b1b2e4",2130:"e77ee6a7",2133:"db894d06",2241:"f4e16879",2251:"00d3c00b",2252:"e9bdb16d",2277:"ba342aae",3144:"702dfbe9",3171:"c2e676f8",3526:"aab4b569",3927:"d2a2c973",4041:"457ae2a2",4306:"7f2e4739",4344:"b5571d5c",4444:"3abd3d90",4612:"969bc4cc",4658:"94297dd4",4691:"5e4633d7",4727:"ceff4319",4765:"51a7d252",4837:"3cb52f40",4934:"01b89dd0",5250:"4c156a3c",5350:"7e553036",5384:"a93e34e9",5399:"9f6a36a0",5532:"b36031c5",5552:"5c906641",5821:"df20b5a9",5929:"49228467",6302:"f681cebd",6519:"731d398d",6595:"b1880e3d",6773:"57567d00",7146:"2efd4465",7159:"bda24b28",7218:"e9c67873",7257:"57dafeee",7304:"94d0e345",7352:"a36b3e83",7434:"2990513f",7544:"a2b01091",7721:"8cd25214",7733:"5f5419b4",7825:"15e385c0",8097:"94a00359",8339:"8078314a",8533:"d6349d06",8649:"ca77a7df",8989:"33ca9fdc",9140:"cac7be06",9149:"0f9ad72a",9515:"e919ad47",9559:"693f2629",9844:"b58a111c"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@next-bricks/nav:",S.l=(t,n,a,o)=>{if(e[t])e[t].push(n);else{var l,i;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var u=s[c];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+a){l=u;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var d=(r,n)=>{l.onerror=l.onload=null,clearTimeout(h);var a=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),r)return r(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var o=S.S[t],l="@next-bricks/nav",i=(e,r,t,n)=>{var a=o[e]=o[e]||{},i=a[r];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[r]={get:t,from:l,eager:!!n})},s=[];return"default"===t&&(i("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(6773))))),i("@easyops-cn/brick-next-pipes","0.7.2",(()=>Promise.all([S.e(4306),S.e(1030),S.e(1916),S.e(5310)]).then((()=>()=>S(4306))))),i("@next-core/cook","2.5.9",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(8741))))),i("@next-core/easyops-runtime","0.15.1",(()=>Promise.all([S.e(2252),S.e(1030),S.e(3081),S.e(79),S.e(7732),S.e(1361),S.e(1732),S.e(1321),S.e(102),S.e(9933),S.e(5310),S.e(1369)]).then((()=>()=>S(2252))))),i("@next-core/element","1.2.18",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.2.13",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n/react","1.0.81",(()=>Promise.all([S.e(79),S.e(8097)]).then((()=>()=>S(8097))))),i("@next-core/i18n","1.0.81",(()=>Promise.all([S.e(79),S.e(7732),S.e(671),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.57",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.6.16",(()=>S.e(5399).then((()=>()=>S(5399))))),i("@next-core/pipes","2.0.33",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.37",(()=>Promise.all([S.e(8769),S.e(7921),S.e(9435),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.7.22",(()=>Promise.all([S.e(8769),S.e(1280),S.e(1030),S.e(3081),S.e(4837)]).then((()=>()=>S(4837))))),i("@next-core/runtime","1.65.0",(()=>Promise.all([S.e(9140),S.e(1030),S.e(79),S.e(7732),S.e(1361),S.e(1732),S.e(1321),S.e(102),S.e(1916),S.e(4167),S.e(110)]).then((()=>()=>S(6759))))),i("@next-core/supply","2.3.6",(()=>Promise.all([S.e(1030),S.e(1916),S.e(9933),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.6.0",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.8.2",(()=>S.e(871).then((()=>()=>S(871))))),i("@next-core/utils/storyboard","1.8.2",(()=>Promise.all([S.e(1030),S.e(7732),S.e(1321),S.e(7146)]).then((()=>()=>S(7146))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(726))))),i("i18next","22.5.1",(()=>S.e(7304).then((()=>()=>S(7304))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(9515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(4041)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var r=S.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var a=e[n],o=(typeof a)[0];if(n>=r.length)return"u"==o;var l=r[n],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&a!=l)return a<l;n++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(i=e[o]))[0]?"-":(n>0?".":"")+(n=2,i);return t}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+s()+")":1===i?"("+s()+" || "+s()+")":2===i?l.pop()+" "+l.pop():a(i))}return s();function s(){return l.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var n=e[0],a=n<0;a&&(n=-n-1);for(var l=0,i=1,s=!0;;i++,l++){var c,u,d=i<e.length?(typeof e[i])[0]:"";if(l>=r.length||"o"==(u=(typeof(c=r[l]))[0]))return!s||("u"==d?i>n&&!a:""==d!=a);if("u"==u){if(!s||"u"!=d)return!1}else if(s)if(d==u)if(i<=n){if(c!=e[i])return!1}else{if(a?c>e[i]:c<e[i])return!1;c!=e[i]&&(s=!1)}else if("s"!=d&&"n"!=d){if(a||i<=n)return!1;s=!1,i--}else{if(i<=n||u<d!=a)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,i--)}}var h=[],f=h.pop.bind(h);for(l=1;l<e.length;l++){var m=e[l];h.push(1==m?f()|f():2==m?f()&f():m?o(m,r):!f())}return!!f()},l=(e,r)=>e&&S.o(e,r),i=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),c=(e,r,t,a)=>{var l=a?s(e[r]):e[r];return(r=Object.keys(l).reduce(((e,r)=>!o(t,r)||e&&!n(e,r)?e:r),0))&&l[r]},u=(e,r,t)=>{var a=t?s(e[r]):e[r];return Object.keys(a).reduce(((e,r)=>!e||!a[e].loaded&&n(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",h=(e,r,t,n,o)=>{var l=e[t];return"No satisfying version ("+a(n)+")"+(o?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(l).map((e=>e+" from "+l[e].from)).join(", ")},f=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},b=(e,r,t)=>t?t():((e,r)=>f("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(p=e=>function(r,t,n,a,o){var l=S.I(r);return l&&l.then&&!n?l.then(e.bind(e,r,S.S[r],t,!1,a,o)):e(r,S.S[r],t,n,a,o)})(((e,r,t,n,a,o)=>{if(!l(r,t))return b(e,t,o);var s=c(r,t,a,n);return s?i(s):o?o():void f(h(r,e,t,a,n))})),g=p(((e,r,t,n,a,s)=>{if(!l(r,t))return b(e,t,s);var c=u(r,t,n);return o(a,c)||m(d(r,t,c,a)),i(r[t][c])})),P={},y={1030:()=>g("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),1916:()=>g("default","moment",!1,[0],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),5310:()=>g("default","js-yaml",!1,[0],(()=>S.e(9515).then((()=>()=>S(9515))))),580:()=>g("default","@babel/parser",!1,[0],(()=>S.e(6773).then((()=>()=>S(6773))))),3081:()=>g("default","@next-core/runtime",!1,[1,1,65,0],(()=>Promise.all([S.e(9140),S.e(1030),S.e(79),S.e(7732),S.e(1361),S.e(1732),S.e(1321),S.e(102),S.e(1916),S.e(4167),S.e(110)]).then((()=>()=>S(6759))))),79:()=>g("default","@next-core/i18n",!1,[1,1,0,81],(()=>Promise.all([S.e(7732),S.e(671),S.e(3171)]).then((()=>()=>S(5552))))),7732:()=>g("default","@next-core/utils/general",!1,[1,1,8,2],(()=>S.e(871).then((()=>()=>S(871))))),1361:()=>g("default","@next-core/http",!1,[0],(()=>S.e(1370).then((()=>()=>S(8989))))),1732:()=>g("default","history",!1,[0],(()=>S.e(5384).then((()=>()=>S(5384))))),1321:()=>g("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(8741))))),102:()=>g("default","@next-core/utils/storyboard",!1,[1,1,8,2],(()=>Promise.all([S.e(1030),S.e(4765)]).then((()=>()=>S(7146))))),9933:()=>g("default","@next-core/pipes",!1,[0],(()=>S.e(6519).then((()=>()=>S(6519))))),7825:()=>g("default","react-i18next",!1,[1,12,3,1],(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(7434))))),848:()=>g("default","i18next-browser-languagedetector",!1,[0],(()=>S.e(726).then((()=>()=>S(726))))),5630:()=>g("default","i18next",!1,[0],(()=>S.e(7304).then((()=>()=>S(7304))))),8377:()=>g("default","@easyops-cn/brick-next-pipes",!1,[0],(()=>Promise.all([S.e(4306),S.e(1030),S.e(1916),S.e(5310)]).then((()=>()=>S(4306))))),8769:()=>v("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(4041))))),7921:()=>v("default","@next-core/element",!1,[1,1,2,18],(()=>S.e(1045).then((()=>()=>S(1045))))),9435:()=>v("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(3144))))),1280:()=>v("default","@next-core/react-element",!1,[1,1,0,37],(()=>Promise.all([S.e(7921),S.e(9435),S.e(7733)]).then((()=>()=>S(114))))),4167:()=>g("default","@next-core/supply",!1,[0],(()=>Promise.all([S.e(1030),S.e(1916),S.e(9933),S.e(9559)]).then((()=>()=>S(9559))))),1858:()=>g("default","moment/locale/zh-cn.js",!1,[0],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),5599:()=>g("default","@next-core/loader",!1,[0],(()=>S.e(5399).then((()=>()=>S(5399))))),9283:()=>g("default","@next-core/inject",!1,[0],(()=>Promise.all([S.e(9933),S.e(4658)]).then((()=>()=>S(2277))))),5168:()=>g("default","@next-core/theme",!1,[1,1,6,0],(()=>S.e(1889).then((()=>()=>S(1889))))),6934:()=>g("default","@next-core/i18n/react",!1,[1,1,0,81],(()=>Promise.all([S.e(79),S.e(8097)]).then((()=>()=>S(8097))))),9384:()=>g("default","@next-core/easyops-runtime",!1,[2,0,15,1],(()=>Promise.all([S.e(2252),S.e(1030),S.e(79),S.e(7732),S.e(1361),S.e(1732),S.e(1321),S.e(102),S.e(9933),S.e(5310)]).then((()=>()=>S(2252))))),4273:()=>v("default","@next-core/react-runtime",!1,[1,1,7,22],(()=>Promise.all([S.e(1030),S.e(3081),S.e(7218)]).then((()=>()=>S(4837)))))},x={79:[79],102:[102],110:[1858,5599,9283],580:[580],671:[848,5630],1030:[1030],1280:[1280],1321:[1321],1361:[1361],1732:[1732],1916:[1916],3081:[3081],4167:[4167],4273:[4273],5168:[5168],5310:[5310],6519:[8377],6934:[6934],7732:[7732],7921:[7921],8097:[7825],8769:[8769],9384:[9384],9435:[9435],9933:[9933]},w={},S.f.consumes=(e,r)=>{S.o(x,e)&&x[e].forEach((e=>{if(S.o(P,e))return r.push(P[e]);if(!w[e]){var t=r=>{P[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete P[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var a=y[e]();a.then?r.push(P[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}}))},(()=>{var e={2219:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1((03|1|28)0|02|321|361|732|916)|5(168|310|80)|7(732|9|921)|9(384|435|933)|3081|4167|4273|671|6934|8769)$/.test(r))e[r]=0;else{var a=new Promise(((t,a)=>n=e[r]=[t,a]));t.push(n[2]=a);var o=S.p+S.u(r),l=new Error;S.l(o,(t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[o,l,i]=t,s=0;if(o.some((r=>0!==e[r]))){for(n in l)S.o(l,n)&&(S.m[n]=l[n]);i&&i(S)}for(r&&r(t);s<o.length;s++)a=o[s],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var E=S(9461);window["bricks/nav"]=E})();
2
- //# sourceMappingURL=index.a4d57852.js.map