@next-bricks/nav 1.17.2 → 1.17.3
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 +18 -18
- package/dist/chunks/1045.2be35f04.js +2 -0
- package/dist/chunks/1045.2be35f04.js.map +1 -0
- package/dist/chunks/114.59938342.js +2 -0
- package/dist/chunks/{114.05400951.js.map → 114.59938342.js.map} +1 -1
- package/dist/chunks/{1477.eacfe479.js → 1477.ecc02980.js} +2 -2
- package/dist/chunks/{1477.eacfe479.js.map → 1477.ecc02980.js.map} +1 -1
- package/dist/chunks/{1491.5bd4248e.js → 1491.97db62dc.js} +3 -3
- package/dist/chunks/{1491.5bd4248e.js.map → 1491.97db62dc.js.map} +1 -1
- package/dist/chunks/{1940.c77fc820.js → 1940.92801c99.js} +2 -2
- package/dist/chunks/{1940.c77fc820.js.map → 1940.92801c99.js.map} +1 -1
- package/dist/chunks/{2133.d6ec3359.js → 2133.b61baf6d.js} +2 -2
- package/dist/chunks/{2133.d6ec3359.js.map → 2133.b61baf6d.js.map} +1 -1
- package/dist/chunks/{2252.208774a8.js → 2252.c6384bfa.js} +3 -3
- package/dist/chunks/{2252.208774a8.js.map → 2252.c6384bfa.js.map} +1 -1
- package/dist/chunks/{2277.d774e4c4.js → 2277.cca7bfbb.js} +2 -2
- package/dist/chunks/{4658.226b7328.js.map → 2277.cca7bfbb.js.map} +1 -1
- package/dist/chunks/{3171.bf134c77.js → 3171.341af692.js} +2 -2
- package/dist/chunks/{3171.bf134c77.js.map → 3171.341af692.js.map} +1 -1
- package/dist/chunks/3933.5beff826.js +2 -0
- package/dist/chunks/{6314.72a8afba.js.map → 3933.5beff826.js.map} +1 -1
- package/dist/chunks/{4658.226b7328.js → 4658.ec53b5a3.js} +2 -2
- package/dist/chunks/{2277.d774e4c4.js.map → 4658.ec53b5a3.js.map} +1 -1
- package/dist/chunks/{4837.f51d340b.js → 4837.3de45a75.js} +2 -2
- package/dist/chunks/{4837.f51d340b.js.map → 4837.3de45a75.js.map} +1 -1
- package/dist/chunks/{5552.a395e3e7.js → 5552.c19bf135.js} +2 -2
- package/dist/chunks/{5552.a395e3e7.js.map → 5552.c19bf135.js.map} +1 -1
- package/dist/chunks/6314.72f5466c.js +2 -0
- package/dist/chunks/{3933.a7d045ca.js.map → 6314.72f5466c.js.map} +1 -1
- package/dist/chunks/{6595.6d0368b4.js → 6595.a094555b.js} +2 -2
- package/dist/chunks/{6595.6d0368b4.js.map → 6595.a094555b.js.map} +1 -1
- package/dist/chunks/{7218.c7dcfb02.js → 7218.54273ee5.js} +2 -2
- package/dist/chunks/{7218.c7dcfb02.js.map → 7218.54273ee5.js.map} +1 -1
- package/dist/chunks/7733.62bea996.js +2 -0
- package/dist/chunks/{7733.c358be3a.js.map → 7733.62bea996.js.map} +1 -1
- package/dist/chunks/{8097.d19b8f60.js → 8097.5abb0469.js} +2 -2
- package/dist/chunks/{8097.d19b8f60.js.map → 8097.5abb0469.js.map} +1 -1
- package/dist/chunks/{8518.ac8f53a7.js → 8518.78035bf7.js} +2 -2
- package/dist/chunks/{8518.ac8f53a7.js.map → 8518.78035bf7.js.map} +1 -1
- package/dist/chunks/{9149.f26f74bb.js → 9149.1577ab1e.js} +2 -2
- package/dist/chunks/{9149.f26f74bb.js.map → 9149.1577ab1e.js.map} +1 -1
- package/dist/chunks/{9515.9c362d1f.js → 9515.df23b98d.js} +2 -2
- package/dist/chunks/{9515.9c362d1f.js.map → 9515.df23b98d.js.map} +1 -1
- package/dist/chunks/{9559.3956978c.js → 9559.98506a68.js} +2 -2
- package/dist/chunks/{9559.3956978c.js.map → 9559.98506a68.js.map} +1 -1
- package/dist/chunks/easyops-navbar-alerts.c7394ca5.js +2 -0
- package/dist/chunks/{easyops-navbar-alerts.59e43685.js.map → easyops-navbar-alerts.c7394ca5.js.map} +1 -1
- package/dist/chunks/eo-app-bar-wrapper.925d35a8.js +3 -0
- package/dist/chunks/{eo-app-bar-wrapper.b367af8d.js.map → eo-app-bar-wrapper.925d35a8.js.map} +1 -1
- package/dist/chunks/eo-directory-tree-internal-node.79084f52.js +2 -0
- package/dist/chunks/{eo-directory-tree-internal-node.9b27dad7.js.map → eo-directory-tree-internal-node.79084f52.js.map} +1 -1
- package/dist/chunks/eo-directory-tree-leaf.d355268c.js +2 -0
- package/dist/chunks/{eo-directory-tree-leaf.bfd0aeb0.js.map → eo-directory-tree-leaf.d355268c.js.map} +1 -1
- package/dist/chunks/eo-directory-tree.8fe2c82b.js +3 -0
- package/dist/chunks/{eo-directory-tree.6c753652.js.map → eo-directory-tree.8fe2c82b.js.map} +1 -1
- package/dist/chunks/eo-directory.9ccef6ae.js +3 -0
- package/dist/chunks/{eo-directory.981564a4.js.map → eo-directory.9ccef6ae.js.map} +1 -1
- package/dist/chunks/eo-frame-breadcrumb.84094125.js +2 -0
- package/dist/chunks/{eo-frame-breadcrumb.43f2d2ef.js.map → eo-frame-breadcrumb.84094125.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-button-v2.741943e0.js → eo-launchpad-button-v2.8514695c.js} +3 -3
- package/dist/chunks/{eo-launchpad-button-v2.741943e0.js.map → eo-launchpad-button-v2.8514695c.js.map} +1 -1
- package/dist/chunks/eo-launchpad-button.f3c77a56.js +3 -0
- package/dist/chunks/{eo-launchpad-button.f1433197.js.map → eo-launchpad-button.f3c77a56.js.map} +1 -1
- package/dist/chunks/eo-launchpad-quick-access.99e2399c.js +3 -0
- package/dist/chunks/{eo-launchpad-quick-access.d53425f7.js.map → eo-launchpad-quick-access.99e2399c.js.map} +1 -1
- package/dist/chunks/eo-launchpad-recent-visits.c071c457.js +3 -0
- package/dist/chunks/{eo-launchpad-recent-visits.bea0828f.js.map → eo-launchpad-recent-visits.c071c457.js.map} +1 -1
- package/dist/chunks/eo-nav-menu.fcd39b48.js +2 -0
- package/dist/chunks/{eo-nav-menu.2c67b500.js.map → eo-nav-menu.fcd39b48.js.map} +1 -1
- package/dist/chunks/eo-search-launchpad.9381d449.js +2 -0
- package/dist/chunks/{eo-search-launchpad.1f32d980.js.map → eo-search-launchpad.9381d449.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu-group.6cfc80fa.js +3 -0
- package/dist/chunks/{eo-sidebar-menu-group.bf48e0b6.js.map → eo-sidebar-menu-group.6cfc80fa.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu-item.b6480a0b.js +2 -0
- package/dist/chunks/{eo-sidebar-menu-item.281131dc.js.map → eo-sidebar-menu-item.b6480a0b.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu-submenu.d049eded.js +3 -0
- package/dist/chunks/{eo-sidebar-menu-submenu.a5a7b759.js.map → eo-sidebar-menu-submenu.d049eded.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu.dd865a26.js +2 -0
- package/dist/chunks/{eo-sidebar-menu.823ac225.js.map → eo-sidebar-menu.dd865a26.js.map} +1 -1
- package/dist/chunks/eo-sidebar-sub-menu.ea3de339.js +3 -0
- package/dist/chunks/{eo-sidebar-sub-menu.b40e39af.js.map → eo-sidebar-sub-menu.ea3de339.js.map} +1 -1
- package/dist/chunks/eo-sidebar.17988c6e.js +3 -0
- package/dist/chunks/{eo-sidebar.facc5198.js.map → eo-sidebar.17988c6e.js.map} +1 -1
- package/dist/chunks/get-menu-config-tree.97e0ed20.js +2 -0
- package/dist/chunks/{get-menu-config-tree.b334456f.js.map → get-menu-config-tree.97e0ed20.js.map} +1 -1
- package/dist/chunks/{launchpad-config.e132d755.js → launchpad-config.39e1639c.js} +3 -3
- package/dist/chunks/{launchpad-config.e132d755.js.map → launchpad-config.39e1639c.js.map} +1 -1
- package/dist/chunks/main.cef926f0.js +2 -0
- package/dist/chunks/{main.432590a6.js.map → main.cef926f0.js.map} +1 -1
- package/dist/chunks/nav-logo.098d84c2.js +2 -0
- package/dist/chunks/{nav-logo.69ab541c.js.map → nav-logo.098d84c2.js.map} +1 -1
- package/dist/chunks/{poll-announce.4f643769.js → poll-announce.398b6790.js} +3 -3
- package/dist/chunks/{poll-announce.4f643769.js.map → poll-announce.398b6790.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.04c740fe.js +2 -0
- package/dist/index.04c740fe.js.map +1 -0
- package/dist/manifest.json +29 -29
- package/dist/types.json +39 -39
- package/package.json +3 -3
- package/dist/chunks/1045.28eda4d4.js +0 -2
- package/dist/chunks/1045.28eda4d4.js.map +0 -1
- package/dist/chunks/114.05400951.js +0 -2
- package/dist/chunks/3933.a7d045ca.js +0 -2
- package/dist/chunks/6314.72a8afba.js +0 -2
- package/dist/chunks/7733.c358be3a.js +0 -2
- package/dist/chunks/easyops-navbar-alerts.59e43685.js +0 -2
- package/dist/chunks/eo-app-bar-wrapper.b367af8d.js +0 -3
- package/dist/chunks/eo-directory-tree-internal-node.9b27dad7.js +0 -2
- package/dist/chunks/eo-directory-tree-leaf.bfd0aeb0.js +0 -2
- package/dist/chunks/eo-directory-tree.6c753652.js +0 -3
- package/dist/chunks/eo-directory.981564a4.js +0 -3
- package/dist/chunks/eo-frame-breadcrumb.43f2d2ef.js +0 -2
- package/dist/chunks/eo-launchpad-button.f1433197.js +0 -3
- package/dist/chunks/eo-launchpad-quick-access.d53425f7.js +0 -3
- package/dist/chunks/eo-launchpad-recent-visits.bea0828f.js +0 -3
- package/dist/chunks/eo-nav-menu.2c67b500.js +0 -2
- package/dist/chunks/eo-search-launchpad.1f32d980.js +0 -2
- package/dist/chunks/eo-sidebar-menu-group.bf48e0b6.js +0 -3
- package/dist/chunks/eo-sidebar-menu-item.281131dc.js +0 -2
- package/dist/chunks/eo-sidebar-menu-submenu.a5a7b759.js +0 -3
- package/dist/chunks/eo-sidebar-menu.823ac225.js +0 -2
- package/dist/chunks/eo-sidebar-sub-menu.b40e39af.js +0 -3
- package/dist/chunks/eo-sidebar.facc5198.js +0 -3
- package/dist/chunks/get-menu-config-tree.b334456f.js +0 -2
- package/dist/chunks/main.432590a6.js +0 -2
- package/dist/chunks/nav-logo.69ab541c.js +0 -2
- package/dist/index.a809483d.js +0 -2
- package/dist/index.a809483d.js.map +0 -1
- /package/dist/chunks/{1491.5bd4248e.js.LICENSE.txt → 1491.97db62dc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2252.208774a8.js.LICENSE.txt → 2252.c6384bfa.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-app-bar-wrapper.b367af8d.js.LICENSE.txt → eo-app-bar-wrapper.925d35a8.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory-tree.6c753652.js.LICENSE.txt → eo-directory-tree.8fe2c82b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory.981564a4.js.LICENSE.txt → eo-directory.9ccef6ae.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button-v2.741943e0.js.LICENSE.txt → eo-launchpad-button-v2.8514695c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button.f1433197.js.LICENSE.txt → eo-launchpad-button.f3c77a56.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-quick-access.d53425f7.js.LICENSE.txt → eo-launchpad-quick-access.99e2399c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-recent-visits.bea0828f.js.LICENSE.txt → eo-launchpad-recent-visits.c071c457.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-group.bf48e0b6.js.LICENSE.txt → eo-sidebar-menu-group.6cfc80fa.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-submenu.a5a7b759.js.LICENSE.txt → eo-sidebar-menu-submenu.d049eded.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-sub-menu.b40e39af.js.LICENSE.txt → eo-sidebar-sub-menu.ea3de339.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar.facc5198.js.LICENSE.txt → eo-sidebar.17988c6e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{launchpad-config.e132d755.js.LICENSE.txt → launchpad-config.39e1639c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{poll-announce.4f643769.js.LICENSE.txt → poll-announce.398b6790.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -40,16 +40,6 @@
|
|
|
40
40
|
"description": "Launchpad 按钮构件",
|
|
41
41
|
"insider": true
|
|
42
42
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "eo-launchpad-button-v2",
|
|
45
|
-
"properties": [],
|
|
46
|
-
"events": [],
|
|
47
|
-
"slots": [],
|
|
48
|
-
"methods": [],
|
|
49
|
-
"parts": [],
|
|
50
|
-
"description": "构件 `eo-launchpad-button-v2`",
|
|
51
|
-
"insider": true
|
|
52
|
-
},
|
|
53
43
|
{
|
|
54
44
|
"name": "nav.launchpad-config",
|
|
55
45
|
"properties": [
|
|
@@ -94,6 +84,16 @@
|
|
|
94
84
|
"description": "进行 Launchpad 配置。\n\n也可用于菜单自定义显示产品功能清单。",
|
|
95
85
|
"insider": true
|
|
96
86
|
},
|
|
87
|
+
{
|
|
88
|
+
"name": "nav.easyops-navbar-alerts",
|
|
89
|
+
"properties": [],
|
|
90
|
+
"events": [],
|
|
91
|
+
"slots": [],
|
|
92
|
+
"methods": [],
|
|
93
|
+
"parts": [],
|
|
94
|
+
"description": "构件 `nav.easyops-navbar-alerts`",
|
|
95
|
+
"insider": true
|
|
96
|
+
},
|
|
97
97
|
{
|
|
98
98
|
"name": "eo-launchpad-quick-access",
|
|
99
99
|
"properties": [
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"insider": true
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"name": "
|
|
117
|
+
"name": "eo-launchpad-button-v2",
|
|
118
118
|
"properties": [],
|
|
119
119
|
"events": [],
|
|
120
120
|
"slots": [],
|
|
121
121
|
"methods": [],
|
|
122
122
|
"parts": [],
|
|
123
|
-
"description": "构件 `
|
|
123
|
+
"description": "构件 `eo-launchpad-button-v2`",
|
|
124
124
|
"insider": true
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -416,6 +416,23 @@
|
|
|
416
416
|
"description": "侧边栏",
|
|
417
417
|
"category": "navigation"
|
|
418
418
|
},
|
|
419
|
+
{
|
|
420
|
+
"name": "eo-sidebar-sub-menu",
|
|
421
|
+
"properties": [
|
|
422
|
+
{
|
|
423
|
+
"name": "menu",
|
|
424
|
+
"description": "菜单项",
|
|
425
|
+
"attribute": false,
|
|
426
|
+
"type": "SidebarMenu"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"events": [],
|
|
430
|
+
"slots": [],
|
|
431
|
+
"methods": [],
|
|
432
|
+
"parts": [],
|
|
433
|
+
"description": "构件 `eo-sidebar-sub-menu`",
|
|
434
|
+
"category": "navigation"
|
|
435
|
+
},
|
|
419
436
|
{
|
|
420
437
|
"name": "eo-directory",
|
|
421
438
|
"properties": [
|
|
@@ -480,23 +497,6 @@
|
|
|
480
497
|
"parts": [],
|
|
481
498
|
"description": "目录"
|
|
482
499
|
},
|
|
483
|
-
{
|
|
484
|
-
"name": "eo-sidebar-sub-menu",
|
|
485
|
-
"properties": [
|
|
486
|
-
{
|
|
487
|
-
"name": "menu",
|
|
488
|
-
"description": "菜单项",
|
|
489
|
-
"attribute": false,
|
|
490
|
-
"type": "SidebarMenu"
|
|
491
|
-
}
|
|
492
|
-
],
|
|
493
|
-
"events": [],
|
|
494
|
-
"slots": [],
|
|
495
|
-
"methods": [],
|
|
496
|
-
"parts": [],
|
|
497
|
-
"description": "构件 `eo-sidebar-sub-menu`",
|
|
498
|
-
"category": "navigation"
|
|
499
|
-
},
|
|
500
500
|
{
|
|
501
501
|
"name": "eo-directory-tree",
|
|
502
502
|
"properties": [
|
package/dist/types.json
CHANGED
|
@@ -233,6 +233,22 @@
|
|
|
233
233
|
"events": [],
|
|
234
234
|
"methods": []
|
|
235
235
|
},
|
|
236
|
+
"eo-sidebar-sub-menu": {
|
|
237
|
+
"properties": [
|
|
238
|
+
{
|
|
239
|
+
"name": "menu",
|
|
240
|
+
"annotation": {
|
|
241
|
+
"type": "reference",
|
|
242
|
+
"typeName": {
|
|
243
|
+
"type": "identifier",
|
|
244
|
+
"name": "SidebarMenu"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"events": [],
|
|
250
|
+
"methods": []
|
|
251
|
+
},
|
|
236
252
|
"eo-directory": {
|
|
237
253
|
"properties": [
|
|
238
254
|
{
|
|
@@ -543,22 +559,6 @@
|
|
|
543
559
|
}
|
|
544
560
|
]
|
|
545
561
|
},
|
|
546
|
-
"eo-sidebar-sub-menu": {
|
|
547
|
-
"properties": [
|
|
548
|
-
{
|
|
549
|
-
"name": "menu",
|
|
550
|
-
"annotation": {
|
|
551
|
-
"type": "reference",
|
|
552
|
-
"typeName": {
|
|
553
|
-
"type": "identifier",
|
|
554
|
-
"name": "SidebarMenu"
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
"events": [],
|
|
560
|
-
"methods": []
|
|
561
|
-
},
|
|
562
562
|
"nav.nav-logo": {
|
|
563
563
|
"properties": [],
|
|
564
564
|
"events": [],
|
|
@@ -1368,29 +1368,6 @@
|
|
|
1368
1368
|
}
|
|
1369
1369
|
]
|
|
1370
1370
|
},
|
|
1371
|
-
"eo-launchpad-quick-access": {
|
|
1372
|
-
"properties": [
|
|
1373
|
-
{
|
|
1374
|
-
"name": "readonly",
|
|
1375
|
-
"annotation": {
|
|
1376
|
-
"type": "keyword",
|
|
1377
|
-
"value": "boolean"
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
"name": "target",
|
|
1382
|
-
"annotation": {
|
|
1383
|
-
"type": "reference",
|
|
1384
|
-
"typeName": {
|
|
1385
|
-
"type": "identifier",
|
|
1386
|
-
"name": "Target"
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
],
|
|
1391
|
-
"events": [],
|
|
1392
|
-
"methods": []
|
|
1393
|
-
},
|
|
1394
1371
|
"eo-directory-tree": {
|
|
1395
1372
|
"properties": [
|
|
1396
1373
|
{
|
|
@@ -2404,6 +2381,29 @@
|
|
|
2404
2381
|
"events": [],
|
|
2405
2382
|
"methods": []
|
|
2406
2383
|
},
|
|
2384
|
+
"eo-launchpad-quick-access": {
|
|
2385
|
+
"properties": [
|
|
2386
|
+
{
|
|
2387
|
+
"name": "readonly",
|
|
2388
|
+
"annotation": {
|
|
2389
|
+
"type": "keyword",
|
|
2390
|
+
"value": "boolean"
|
|
2391
|
+
}
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
"name": "target",
|
|
2395
|
+
"annotation": {
|
|
2396
|
+
"type": "reference",
|
|
2397
|
+
"typeName": {
|
|
2398
|
+
"type": "identifier",
|
|
2399
|
+
"name": "Target"
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
],
|
|
2404
|
+
"events": [],
|
|
2405
|
+
"methods": []
|
|
2406
|
+
},
|
|
2407
2407
|
"eo-launchpad-button-v2": {
|
|
2408
2408
|
"properties": [],
|
|
2409
2409
|
"events": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/nav",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/nav",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.23.
|
|
38
|
+
"@next-core/build-next-bricks": "^1.23.7",
|
|
39
39
|
"@next-core/test-next": "^1.1.7"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/form": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b7f182cebf51a3edf5b94386ab3b508c8dc885c7"
|
|
47
47
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[1045,1369],{2559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},2016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2559);function i(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}},4586:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1369);function i(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},1369:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7545);function i(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},7545:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},1045:(t,e,n)=>{n.r(e),n.d(e,{NextElement:()=>A,createDecorators:()=>a,supportsAdoptingStyleSheets:()=>_});const r=Symbol.for("attributeHasBeenSet"),i=Symbol.for("markAttributeHasBeenSet"),o=Symbol.for("stopAttributeChangedCallback"),s={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},render:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function a(){const t=new Map,e=new Set,n=new Set,a=new Set;return{defineElement:function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(o,s)=>{let{kind:c,name:d,addInitializer:h}=s;h((function(){const s=Object.getPrototypeOf(this);if(u(this,"observedAttributes",l(s.observedAttributes??[],t.keys())),u(this,"__attributeReflections",new Map([...s.__attributeReflections??[],...t])),u(this,"styleTexts",i.styleTexts),u(this,"shadowOptions",!1!==i.shadowOptions?{mode:"open",...i.shadowOptions}:null),u(this,"__tagName",r),u(this,"_dev_only_definedProperties",l(s._dev_only_definedProperties??[],e)),u(this,"_dev_only_definedMethods",l(s._dev_only_definedMethods??[],n)),u(this,"_dev_only_definedEvents",l(s._dev_only_definedEvents??[],a)),customElements.define(r,this),Array.isArray(i.alias))for(const t of i.alias){const e=class extends o{};u(e,"__tagName",t),customElements.define(t,e)}}))}},property:function(n){return function(a,u){let{get:l,set:c}=a,{kind:d,name:h,static:f,private:b}=u;e.add(h);const p=Object.assign({},s,n),v=function(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}(h,p);return void 0!==v&&t.set(v,{...p,property:h}),{get(){return void 0!==v&&this[r](v)?p.converter.fromAttribute(this.getAttribute(v),p.type):l.call(this)},set(t){const e=l.call(this);if(c.call(this,t),p.hasChanged(t,e)){if(void 0!==v){const e=p.converter.toAttribute(t,p.type);this[o](!0),null==e?this.removeAttribute(v):this.setAttribute(v,e),this[i](v),this[o](!1)}p.render&&this._requestRender()}},init(t){if(void 0!==v&&p.hasChanged(t,void 0)){const e=p.converter.toAttribute(t,p.type);null!=e&&requestAnimationFrame((()=>{this[r](v)||(this[o](!0),this.setAttribute(v,e),this[o](!1))}))}return t}}}},method:function(t){return function(e,r){let{kind:i,name:o,static:s,private:a,addInitializer:u}=r;null!=t&&t.bound&&u((function(){this[o]=this[o].bind(this)})),n.add(o)}},event:function(t){return function(e,n){let{get:r}=e,{kind:i,name:o,static:s,private:u}=n;const{type:l,...c}=t;return a.add(l),{get(){return r.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(l,{...c,detail:t}))})}}}}}}function u(t,e,n){Object.defineProperty(t,e,{get:()=>n,configurable:!0})}function l(t,e){const n=new Set(t);for(const t of e)n.add(t);return[...n]}new Set(["prefix"]);var c=n(918),d=n(4586),h=n(829),f=n(6121),b=new WeakMap,p=new WeakMap,v=new WeakMap,y=new WeakMap;class A extends HTMLElement{constructor(){super(...arguments),(0,c.A)(this,b,!1),(0,c.A)(this,p,!1),(0,c.A)(this,v,!1),(0,c.A)(this,y,new Set)}_markConnectedCallbackCalled(){(0,f.A)(p,this,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[r](t){return(0,h.A)(y,this).has(t)}[i](t){(0,h.A)(y,this).add(t)}[o](t){(0,f.A)(v,this,t)}attributeChangedCallback(t,e,n){if((0,h.A)(y,this).add(t),!(0,h.A)(v,this)&&e!==n){const e=this.constructor.__attributeReflections.get(t),r=e.converter.fromAttribute(n,e.type);this[e.property]=r}}_requestRender(){this.isConnected&&(0,h.A)(p,this)&&!(0,h.A)(b,this)&&((0,f.A)(b,this,!0),Promise.resolve().then((()=>{(0,f.A)(b,this,!1),this._render()})))}}let m;function _(){return void 0===m&&(m=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),m}(0,d.A)(A,"styleTexts",void 0),(0,d.A)(A,"shadowOptions",void 0),(0,d.A)(A,"__attributeReflections",void 0),(0,d.A)(A,"__tagName",void 0)}}]);
|
|
2
|
-
//# sourceMappingURL=1045.28eda4d4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/1045.28eda4d4.js","mappings":"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","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/@next-core/element/dist/esm/internal/symbols.js","webpack:///../../node_modules/@next-core/element/dist/esm/createDecorators.js","webpack:///../../node_modules/@next-core/element/dist/esm/NextElement.js","webpack:///../../node_modules/@next-core/element/dist/esm/supportsAdoptingStyleSheets.js"],"sourcesContent":["export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export const symbolOfAttributeHasBeenSet = Symbol.for(\"attributeHasBeenSet\");\nexport const symbolOfMarkAttributeHasBeenSet = Symbol.for(\"markAttributeHasBeenSet\");\nexport const symbolOfStopAttributeChangedCallback = Symbol.for(\"stopAttributeChangedCallback\");\n//# sourceMappingURL=symbols.js.map","import { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nconst defaultConverter = {\n toAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value ? \"\" : null;\n }\n return value;\n },\n fromAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value !== null && value !== \"false\";\n case Number:\n return value === null ? null : Number(value);\n }\n return value;\n }\n};\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nconst notEqual = (value, old) => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\nconst defaultPropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n // reflect: true,\n render: true,\n hasChanged: notEqual\n};\n\n// Note: `prefix` is a native prop on Element, but it's only used in XML documents.\nconst allowedNativeProps = new Set([\"prefix\"]);\nexport function createDecorators() {\n const attributeReflections = new Map();\n const definedProperties = new Set();\n const definedMethods = new Set();\n const definedEvents = new Set();\n function defineElement(name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (value, _ref) => {\n let {\n kind,\n name: className,\n addInitializer\n } = _ref;\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && kind !== \"class\") {\n throw new Error(`Invalid usage of \\`@defineElement()\\` on a ${kind}: \"${className}\"`);\n }\n addInitializer(function () {\n const superClass = Object.getPrototypeOf(this);\n const mergedAttributes = mergeIterables(superClass.observedAttributes ?? [], attributeReflections.keys());\n defineReadonlyProperty(this, \"observedAttributes\", mergedAttributes);\n const mergedAttributeReflections = new Map([...(superClass.__attributeReflections ?? []), ...attributeReflections]);\n defineReadonlyProperty(this, \"__attributeReflections\", mergedAttributeReflections);\n defineReadonlyProperty(this, \"styleTexts\", options.styleTexts);\n defineReadonlyProperty(this, \"shadowOptions\", options.shadowOptions !== false ? {\n mode: \"open\",\n ...options.shadowOptions\n } : null);\n defineReadonlyProperty(this, \"__tagName\", name);\n const mergedProperties = mergeIterables(superClass._dev_only_definedProperties ?? [], definedProperties);\n defineReadonlyProperty(this, \"_dev_only_definedProperties\", mergedProperties);\n const mergedMethods = mergeIterables(superClass._dev_only_definedMethods ?? [], definedMethods);\n defineReadonlyProperty(this, \"_dev_only_definedMethods\", mergedMethods);\n const mergedEvents = mergeIterables(superClass._dev_only_definedEvents ?? [], definedEvents);\n defineReadonlyProperty(this, \"_dev_only_definedEvents\", mergedEvents);\n customElements.define(name, this);\n if (Array.isArray(options.alias)) {\n for (const alias of options.alias) {\n // Use a parenthesized expression to make the class has no name.\n const Alias = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n 0, class extends value {});\n defineReadonlyProperty(Alias, \"__tagName\", alias);\n customElements.define(alias, Alias);\n }\n }\n });\n };\n }\n function property(options) {\n return function (_ref2, _ref3) {\n let {\n get,\n set\n } = _ref2;\n let {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref3;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(`Invalid usage of \\`@property()\\` on a ${kind}: \"${String(name)}\"`);\n }\n if (typeof name !== \"string\") {\n throw new Error(`Invalid usage of \\`@property()\\` on a ${kind} of ${typeof name}`);\n }\n if (isStatic) {\n throw new Error(`Invalid usage of \\`@property()\\` on a static ${kind}: \"${name}\"`);\n }\n if (isPrivate) {\n throw new Error(`Invalid usage of \\`@property()\\` on a private ${kind}: \"${name}\"`);\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n const message = `\"${name}\" is a native HTMLElement property, and is deprecated to be used as a brick property.`;\n throw new Error(message);\n }\n }\n definedProperties.add(name);\n const _options = Object.assign({}, defaultPropertyDeclaration, options);\n const attrName = attributeNameForProperty(name, _options);\n if (attrName !== undefined) {\n attributeReflections.set(attrName, {\n ..._options,\n property: name\n });\n }\n return {\n get() {\n // If the attribute has been set (not by initialization), returns the\n // value converted by the attribute. Otherwise returns the prop value.\n // This works as a type conversion when reading a prop value.\n if (attrName !== undefined && this[symbolOfAttributeHasBeenSet](attrName)) {\n return _options.converter.fromAttribute(this.getAttribute(attrName), _options.type);\n }\n return get.call(this);\n },\n set(value) {\n const oldValue = get.call(this);\n set.call(this, value);\n if (_options.hasChanged(value, oldValue)) {\n if (attrName !== undefined) {\n const attrValue = _options.converter.toAttribute(value, _options.type);\n this[symbolOfStopAttributeChangedCallback](true);\n if (attrValue == null) {\n this.removeAttribute(attrName);\n } else {\n this.setAttribute(attrName, attrValue);\n }\n this[symbolOfMarkAttributeHasBeenSet](attrName);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n if (_options.render) {\n this._requestRender();\n }\n }\n },\n init(initialValue) {\n if (attrName !== undefined && _options.hasChanged(initialValue, undefined)) {\n const attrValue = _options.converter.toAttribute(initialValue, _options.type);\n if (attrValue != null) {\n // No attributes should be created during constructing custom elements.\n // This is true even if the work is done inside a constructor-initiated microtask.\n // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance\n requestAnimationFrame(() => {\n if (!this[symbolOfAttributeHasBeenSet](attrName)) {\n this[symbolOfStopAttributeChangedCallback](true);\n this.setAttribute(attrName, attrValue);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n });\n }\n }\n return initialValue;\n }\n };\n };\n }\n function method(options) {\n return function (_value, _ref4) {\n let {\n kind,\n name,\n static: isStatic,\n private: isPrivate,\n addInitializer\n } = _ref4;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"method\") {\n throw new Error(`Invalid usage of \\`@method()\\` on a ${kind}: \"${String(name)}\"`);\n }\n if (typeof name !== \"string\") {\n throw new Error(`Invalid usage of \\`@method()\\` on a ${kind} of ${typeof name}`);\n }\n if (isStatic) {\n throw new Error(`Invalid usage of \\`@method()\\` on a static ${kind}: \"${name}\"`);\n }\n if (isPrivate) {\n throw new Error(`Invalid usage of \\`@method()\\` on a private ${kind}: \"${name}\"`);\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n const message = `\"${name}\" is a native HTMLElement property, and is deprecated to be used as a brick method.`;\n throw new Error(message);\n }\n }\n if (options !== null && options !== void 0 && options.bound) {\n addInitializer(function () {\n this[name] = this[name].bind(this);\n });\n }\n definedMethods.add(name);\n };\n }\n function event(options) {\n return function (_ref5, _ref6) {\n let {\n get\n } = _ref5;\n let {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref6;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(`Invalid usage of \\`@event()\\` on a ${kind}: \"${String(name)}\"`);\n }\n if (!isPrivate) {\n throw new Error(`Invalid usage of \\`@event()\\` on a non-private ${kind}: \"${String(name)}\"`);\n }\n if (isStatic) {\n throw new Error(`Invalid usage of \\`@event()\\` on a static ${kind}: \"${String(name)}\"`);\n }\n }\n const {\n type,\n ...eventInit\n } = options;\n definedEvents.add(type);\n return {\n get() {\n return get.call(this);\n },\n set() {\n throw new Error(\"Decorated events are readonly\");\n },\n init(initialValue) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && initialValue !== undefined) {\n throw new Error(`Do not set an initial value for a decorated event: \"${String(name)}\"`);\n }\n return Object.freeze({\n emit: detail => this.dispatchEvent(new CustomEvent(type, {\n ...eventInit,\n detail\n }))\n });\n }\n };\n };\n }\n return {\n defineElement,\n property,\n method,\n event\n };\n}\nfunction defineReadonlyProperty(target, propName, propValue) {\n Object.defineProperty(target, propName, {\n get() {\n return propValue;\n },\n configurable: true\n });\n}\nfunction mergeIterables(list1, list2) {\n const newList = new Set(list1);\n for (const item of list2) {\n newList.add(item);\n }\n return [...newList];\n}\nfunction attributeNameForProperty(name, options) {\n const attribute = options.attribute;\n return attribute === false ? undefined : typeof attribute === \"string\" ? attribute : name.replace(/[A-Z]/g, char => `-${char.toLowerCase()}`);\n}\n//# sourceMappingURL=createDecorators.js.map","import _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet2\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet2\";\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar _hasRequestedRender = /*#__PURE__*/new WeakMap();\nvar _connectedCallbackCalled = /*#__PURE__*/new WeakMap();\nvar _attributeChangedCallbackStopped = /*#__PURE__*/new WeakMap();\nvar _attributesBeenSet = /*#__PURE__*/new WeakMap();\nexport class NextElement extends HTMLElement {\n constructor() {\n super(...arguments);\n _classPrivateFieldInitSpec(this, _hasRequestedRender, false);\n _classPrivateFieldInitSpec(this, _connectedCallbackCalled, false);\n _classPrivateFieldInitSpec(this, _attributeChangedCallbackStopped, false);\n _classPrivateFieldInitSpec(this, _attributesBeenSet, new Set());\n }\n /**\n * When render a custom element as parsed DOM, it is already connected in the\n * first place. The attributes are set while isConnected is true, which will\n * trigger a render request, and then before the next micro-task, the\n * `connectedCallback` will be called, which will trigger an immediate render.\n * Thus we would see two calls of render. So we manually set a mark of whether\n * the `connectedCallback` is actually get called, to prevent a trigger of\n * render request during attributes initialization before `connectedCallback`.\n */\n _markConnectedCallbackCalled() {\n _classPrivateFieldSet(_connectedCallbackCalled, this, true);\n }\n connectedCallback() {\n this._markConnectedCallbackCalled();\n this._render();\n }\n [symbolOfAttributeHasBeenSet](name) {\n return _classPrivateFieldGet(_attributesBeenSet, this).has(name);\n }\n [symbolOfMarkAttributeHasBeenSet](name) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n }\n\n /** Whether to process attributeChangedCallback. */\n [symbolOfStopAttributeChangedCallback](value) {\n _classPrivateFieldSet(_attributeChangedCallbackStopped, this, value);\n }\n\n /** @internal */\n attributeChangedCallback(name, old, value) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n if (!_classPrivateFieldGet(_attributeChangedCallbackStopped, this) && old !== value) {\n const attrRef = this.constructor.__attributeReflections.get(name);\n assertAttributeIsReflected(attrRef, name);\n const propValue = attrRef.converter.fromAttribute(value, attrRef.type);\n this[attrRef.property] = propValue;\n }\n }\n\n /**\n * Request a render in the next micro-task. This ensures multiple properties\n * or attributes will trigger a render once in a batch.\n */\n _requestRender() {\n // If the element is not connected,\n // let `connectedCallback()` do the job of calling _render.\n if (this.isConnected && _classPrivateFieldGet(_connectedCallbackCalled, this) && !_classPrivateFieldGet(_hasRequestedRender, this)) {\n _classPrivateFieldSet(_hasRequestedRender, this, true);\n Promise.resolve().then(() => {\n _classPrivateFieldSet(_hasRequestedRender, this, false);\n this._render();\n });\n }\n }\n}\n_defineProperty(NextElement, \"styleTexts\", void 0);\n_defineProperty(NextElement, \"shadowOptions\", void 0);\n_defineProperty(NextElement, \"__attributeReflections\", void 0);\n_defineProperty(NextElement, \"__tagName\", void 0);\nfunction assertAttributeIsReflected(attrRef, name) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && !attrRef) {\n throw new Error(`Attribute [${name}] is not reflected`);\n }\n}\n//# sourceMappingURL=NextElement.js.map","let supports;\nexport function supportsAdoptingStyleSheets() {\n if (supports === undefined) {\n supports = !!(window.ShadowRoot &&\n // (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype);\n }\n return supports;\n}\n//# sourceMappingURL=supportsAdoptingStyleSheets.js.map"],"names":["_assertClassBrand","e","t","n","has","arguments","length","TypeError","_checkPrivateRedeclaration","obj","privateCollection","_classPrivateFieldGet2","s","a","get","_classPrivateFieldInitSpec","privateMap","value","set","_classPrivateFieldSet2","r","_defineProperty","key","Object","defineProperty","enumerable","configurable","writable","toPropertyKey","i","Symbol","toPrimitive","call","String","_typeof","o","iterator","constructor","prototype","symbolOfAttributeHasBeenSet","for","symbolOfMarkAttributeHasBeenSet","symbolOfStopAttributeChangedCallback","defaultPropertyDeclaration","attribute","type","converter","toAttribute","Boolean","fromAttribute","Number","render","hasChanged","old","createDecorators","attributeReflections","Map","definedProperties","Set","definedMethods","definedEvents","defineElement","name","options","undefined","_ref","kind","className","addInitializer","superClass","getPrototypeOf","this","defineReadonlyProperty","mergeIterables","observedAttributes","keys","__attributeReflections","styleTexts","shadowOptions","mode","_dev_only_definedProperties","_dev_only_definedMethods","_dev_only_definedEvents","customElements","define","Array","isArray","alias","Alias","property","_ref2","_ref3","static","isStatic","private","isPrivate","add","_options","assign","attrName","replace","char","toLowerCase","attributeNameForProperty","getAttribute","oldValue","attrValue","removeAttribute","setAttribute","_requestRender","init","initialValue","requestAnimationFrame","method","_value","_ref4","bound","bind","event","_ref5","_ref6","eventInit","Error","freeze","emit","detail","dispatchEvent","CustomEvent","target","propName","propValue","list1","list2","newList","item","_hasRequestedRender","WeakMap","_connectedCallbackCalled","_attributeChangedCallbackStopped","_attributesBeenSet","NextElement","HTMLElement","super","_markConnectedCallbackCalled","connectedCallback","_render","attributeChangedCallback","attrRef","isConnected","Promise","resolve","then","supports","supportsAdoptingStyleSheets","window","ShadowRoot","Document","CSSStyleSheet"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[114,7733],{5873:(t,e,n)=>{var r=n(9435);e.H=r.createRoot,r.hydrateRoot},2559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},2016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2559);function s(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2016);function s(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2559);function s(t,e,n){return t.set((0,r.A)(t,e),n),n}},4635:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2016);function s(t,e){(0,r.A)(t,e),e.add(t)}},9575:(t,e,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>r})},114:(t,e,n)=>{n.r(e),n.d(e,{ReactNextElement:()=>p,wrapBrick:()=>y,wrapLocalBrick:()=>v});var r=n(4635),s=n(918),o=n(2559),i=n(6121),a=n(829),c=n(8769),l=n(5873),h=n(9435),d=n(300),u=new WeakMap,f=new WeakSet;class p extends d.NextElement{constructor(){super(...arguments),(0,r.A)(this,f),(0,s.A)(this,u,void 0)}connectedCallback(){super._markConnectedCallbackCalled(),(0,o.A)(f,this,A).call(this),this._render()}disconnectedCallback(){var t;null===(t=(0,a.A)(u,this))||void 0===t||t.render(null)}_render(){const t=()=>{if(!this.isConnected||!(0,a.A)(u,this))return;const t=this.constructor;var e;t.shadowOptions?(0,a.A)(u,this).render((0,d.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():c.createElement(c.Fragment,null,c.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,a.A)(u,this).render(this.render())};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,h.flushSync)(t):t()}}function A(){if((0,a.A)(u,this))return;const t=this.constructor;if(t.shadowOptions){const n=this.attachShadow(t.shadowOptions);var e;if((0,d.supportsAdoptingStyleSheets)()&&null!==(e=t.styleTexts)&&void 0!==e&&e.length){const e=new CSSStyleSheet;e.replaceSync(t.styleTexts.join("")),n.adoptedStyleSheets=[e]}(0,i.A)(u,this,(0,l.H)(n))}else(0,i.A)(u,this,(0,l.H)(this))}var w=n(9575);function v(t,e){return(0,c.forwardRef)((function(n,r){let{children:s,...o}=n;const i="string"==typeof t?t:t.__tagName,a=S(o,e);return c.createElement(i,(0,w.A)({},a,{ref:r}),s)}))}function y(t,e){return(0,c.forwardRef)((function(n,r){let{children:s,...o}=n;const i=S(o,e);return c.createElement(t,(0,w.A)({},i,{ref:r}),s)}))}function S(t,e){let n;if(e){n={};for(const[r,s]of Object.entries(t))Object.prototype.hasOwnProperty.call(e,r)?n[`on${e[r]}`]=s:n[r]=s}else n=t;return n}}}]);
|
|
2
|
-
//# sourceMappingURL=114.05400951.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3933,6314],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>b,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(8395),c=o(6511);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const v="PERMISSIONS",m="check";function b(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,r],n,v),h(s,n,{matchSource:e=>e.includes(v)}),Array.from(o)}function P(e){const t=new Set;return u(e,k(t),v),Array.from(t)}function k(e){return function(t,o){if(t.name===v){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===m:"Identifier"===t.node.property.type&&t.node.property.name===m))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
|
|
2
|
-
//# sourceMappingURL=3933.a7d045ca.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6314,3933],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>b,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(8395),c=o(6511);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const v="PERMISSIONS",m="check";function b(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,r],n,v),h(s,n,{matchSource:e=>e.includes(v)}),Array.from(o)}function P(e){const t=new Set;return u(e,k(t),v),Array.from(t)}function k(e){return function(t,o){if(t.name===v){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===m:"Identifier"===t.node.property.type&&t.node.property.name===m))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
|
|
2
|
-
//# sourceMappingURL=6314.72a8afba.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[7733,114],{5873:(t,e,n)=>{var r=n(9435);e.H=r.createRoot,r.hydrateRoot},2559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},2016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2559);function s(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2016);function s(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2559);function s(t,e,n){return t.set((0,r.A)(t,e),n),n}},4635:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2016);function s(t,e){(0,r.A)(t,e),e.add(t)}},9575:(t,e,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>r})},114:(t,e,n)=>{n.r(e),n.d(e,{ReactNextElement:()=>p,wrapBrick:()=>y,wrapLocalBrick:()=>v});var r=n(4635),s=n(918),o=n(2559),i=n(6121),a=n(829),c=n(8769),l=n(5873),h=n(9435),d=n(300),u=new WeakMap,f=new WeakSet;class p extends d.NextElement{constructor(){super(...arguments),(0,r.A)(this,f),(0,s.A)(this,u,void 0)}connectedCallback(){super._markConnectedCallbackCalled(),(0,o.A)(f,this,A).call(this),this._render()}disconnectedCallback(){var t;null===(t=(0,a.A)(u,this))||void 0===t||t.render(null)}_render(){const t=()=>{if(!this.isConnected||!(0,a.A)(u,this))return;const t=this.constructor;var e;t.shadowOptions?(0,a.A)(u,this).render((0,d.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():c.createElement(c.Fragment,null,c.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,a.A)(u,this).render(this.render())};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,h.flushSync)(t):t()}}function A(){if((0,a.A)(u,this))return;const t=this.constructor;if(t.shadowOptions){const n=this.attachShadow(t.shadowOptions);var e;if((0,d.supportsAdoptingStyleSheets)()&&null!==(e=t.styleTexts)&&void 0!==e&&e.length){const e=new CSSStyleSheet;e.replaceSync(t.styleTexts.join("")),n.adoptedStyleSheets=[e]}(0,i.A)(u,this,(0,l.H)(n))}else(0,i.A)(u,this,(0,l.H)(this))}var w=n(9575);function v(t,e){return(0,c.forwardRef)((function(n,r){let{children:s,...o}=n;const i="string"==typeof t?t:t.__tagName,a=S(o,e);return c.createElement(i,(0,w.A)({},a,{ref:r}),s)}))}function y(t,e){return(0,c.forwardRef)((function(n,r){let{children:s,...o}=n;const i=S(o,e);return c.createElement(t,(0,w.A)({},i,{ref:r}),s)}))}function S(t,e){let n;if(e){n={};for(const[r,s]of Object.entries(t))Object.prototype.hasOwnProperty.call(e,r)?n[`on${e[r]}`]=s:n[r]=s}else n=t;return n}}}]);
|
|
2
|
-
//# sourceMappingURL=7733.c358be3a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[1890,1369,2052],{3028:(e,t,n)=>{n.r(t),n.d(t,{EasyopsNavbarAlerts:()=>w,EasyopsNavbarAlertsComponent:()=>E,WrappedIcon:()=>h,WrappedLink:()=>b});var r,o=n(2740),i=n(8769),a=n.n(i),c=n(300),s=n(4295),l=n(4899),u=n(6235),f=n(8640),d=(n(6477),n(4612)),p=n(6238),m=n.n(p),g=n(7061);let v;const h=(0,s.wrapBrick)("eo-icon"),b=(0,s.wrapBrick)("eo-link"),{defineElement:y}=(0,c.createDecorators)();let w;class x extends s.ReactNextElement{render(){return a().createElement(E,null)}}r=x,[w,v]=(0,o.A)(r,[y("nav.easyops-navbar-alerts",{styleTexts:[g.A]})],[],0,void 0,s.ReactNextElement).c,v();const A=new d.G(localStorage);function E(){const[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(null),o=(0,u.useCurrentApp)(),c=(0,i.useMemo)((()=>`license:${f.auth.getAuth().org}`),[]),s=(0,i.useMemo)((()=>{var t;const n=f.auth.getAuth(),r=null===(t=n.license)||void 0===t?void 0:t.validDaysLeft;let o;return e?null:r&&r<=15&&n.isAdmin&&(o=A.getItem(c),!o||m()().unix()>o)?r:null}),[c,e]);(0,i.useEffect)((()=>{const e=e=>{const t=e.detail.renderTime,{loadTime:n,loadInfoPage:i}=(0,l.getRuntime)().getMiscSettings();null!=o&&o.isBuildPush&&n>0&&t>n&&r({renderTime:S(t),suggestTime:S(n),suggestUrl:i})};return window.addEventListener("route.render",e),()=>{window.removeEventListener("route.render",e)}}),[o]);const d=(0,i.useCallback)((()=>{A.setItem(c,m()().unix()+86400),t(!0)}),[c]);return a().createElement(a().Fragment,null,n&&a().createElement(k,{text:`您的页面存在性能问题, 当前页面渲染时间 ${n.renderTime} 秒, 规定阈值为: ${n.suggestTime} 秒, 您已超过。请您针对该页面进行性能优化!`,type:"warning",link:n.suggestUrl?{label:"建议解决思路",url:n.suggestUrl}:void 0}),null!==s&&a().createElement(k,{text:`离 License 过期还有 ${s} 天`,type:"info",closable:!0,onClose:d}))}function k(e){let{text:t,type:n,closable:r,link:o,onClose:i}=e;return a().createElement("div",{className:`alert ${n}`},a().createElement("span",{className:"text"},t),o&&a().createElement(b,{className:"link",href:o.url,target:"_blank"},o.label),r&&a().createElement(h,{lib:"antd",icon:"close",className:"icon",role:"button",onClick:i}))}function S(e){return Math.floor(100*e)/1e5}},7061:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),o=n.n(r),i=n(935),a=n.n(i)()(o());a.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 c=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(7545),o=n(6902);function i(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function c(e,t,n,c,s,l){var u,f,d,p,m,g,v,h=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,y=Object.create,w=[y(null),y(null)],x=t.length;function A(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function k(e,t,n,o,a,c,s,l,d,p,m){function g(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),h=t[3],y=!s,x=1===a,k=3===a,S=4===a,T=2===a;function j(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),I[t].call(o,i)}}if(!y){var I={},N=[],C=k?"get":S||x?"set":"value";if(d?(p||x?I={get:i((function(){return h(this)}),o,"get"),set:function(e){t[4](this,e)}}:I[C]=h,p||i(I[C],o,T?"":C)):p||(I=Object.getOwnPropertyDescriptor(e,o)),!p&&!d){if((f=w[+l][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+I[C].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var O=e,P=v.length-1;P>=0;P-=n?2:1){var _=E(v[P],"A decorator","be",!0),L=n?v[P-1]:void 0,$={},D={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),c.push(t)}.bind(null,$)};if(y)f=_.call(L,O,D),$.v=1,E(f,"class decorators","return")&&(O=f);else if(D.static=l,D.private=d,f=D.access={has:d?m.bind():function(e){return o in e}},S||(f.get=d?T?function(e){return g(e),I.value}:j("get",0,g):function(e){return e[o]}),T||k||(f.set=d?j("set",0,g):function(e,t){e[o]=t}),O=_.call(L,x?{get:I.get,set:I.set}:I[C],D),$.v=1,x){if("object"==(0,r.A)(O)&&O)(f=E(O.get,"accessor.get"))&&(I.get=f),(f=E(O.set,"accessor.set"))&&(I.set=f),(f=E(O.init,"accessor.init"))&&N.unshift(f);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(O,(p?"field":"method")+" decorators","return")&&(p?N.unshift(O):I[C]=O)}return a<2&&s.push(A(N,l,1),A(c,l,0)),p||y||(d?x?s.splice(-1,0,j("get",l),j("set",l)):s.push(T?I[C]:E.call.bind(I[C])):b(e,o,I)),O}function S(e){return b(e,h,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[h]),u=y(null==u?null:u),m=[],g=function(e){e&&m.push(A(e))},v=function(t,r){for(var i=0;i<n.length;i++){var c=n[i],l=c[1],u=7&l;if((8&l)==t&&!u==r){var f=c[2],g=!!c[3],v=16&l;k(t?e:e.prototype,c,v,g?"#"+f:(0,a.A)(f),u,u<2?[]:t?p=p||[]:d=d||[],m,!!t,g,r,t&&g?function(t){return(0,o.A)(t)===e}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),g(d),g(p),f=m,x||S(e),{e:f,get c(){var n=[];return x&&[S(e=k(e,[t],c,e.name,5,n)),A(n,1)]}}}},6902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},1369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},4612:(e,t,n)=>{n.d(t,{G:()=>r});class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=e,this.prefix=t}setItem(e,t){this.storage.setItem(this.prefix+e,JSON.stringify(t))}getItem(e){return JSON.parse(this.storage.getItem(this.prefix+e))}removeItem(e){return this.storage.removeItem(this.prefix+e)}clear(){return this.storage.clear()}}}}]);
|
|
2
|
-
//# sourceMappingURL=easyops-navbar-alerts.59e43685.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-app-bar-wrapper.b367af8d.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3927,1369,2052],{6736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{EoAppBarWrapper:()=>C,EoAppBarWrapperComponent:()=>P});var r,i=n(918),o=n(6121),a=n(829),s=n(2740),c=n(8769),u=n.n(c),p=n(300),l=n(4295),f=(n(6477),n(3373)),d=n.n(f),h=n(6405);let v,y,m,b,g,A,x,w,E;const{defineElement:S,property:j}=(0,p.createDecorators)();let C;var k=new WeakMap,B=new WeakMap,T=new WeakMap,O=new WeakMap;class N extends l.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,k,y(this)),(0,i.A)(this,B,(m(this),b(this))),(0,i.A)(this,T,(g(this),A(this))),(0,i.A)(this,O,(x(this),w(this))),E(this)}get isFixed(){return(0,a.A)(k,this)}set isFixed(t){(0,o.A)(k,this,t)}get position(){return(0,a.A)(B,this)}set position(t){(0,o.A)(B,this,t)}get displayCenter(){return(0,a.A)(T,this)}set displayCenter(t){(0,o.A)(T,this,t)}get extraAppBarContentStyle(){return(0,a.A)(O,this)}set extraAppBarContentStyle(t){(0,o.A)(O,this,t)}render(){return u().createElement(P,{displayCenter:this.displayCenter,isFixed:this.isFixed,position:this.position,extraAppBarContentStyle:this.extraAppBarContentStyle})}}function P(t){let{isFixed:e=!0,position:n,displayCenter:r=!1,extraAppBarContentStyle:i={}}=t;return u().useEffect((()=>{const t=document.getElementById("main-mount-point"),e=document.getElementById("legacy-iframe-mount-point");t&&(t.style.marginTop=""),e&&(e.style.marginTop="")}),[]),u().createElement("div",{className:"app-bar-container"},u().createElement("div",{className:d()("app-bar","static"===n?"static":"fixed"===n||e?"fixed":"absolute")},u().createElement("div",{className:"app-bar-content",style:{justifyContent:r?"space-around":"space-between",...i}},u().createElement("div",{className:"left"},u().createElement("slot",{name:"left"})),u().createElement("div",{className:"right"},u().createElement("slot",{name:"right"})))))}r=N,({e:[y,m,b,g,A,x,w,E],c:[C,v]}=(0,s.A)(r,[S("eo-app-bar-wrapper",{styleTexts:[h.A],alias:["basic.app-bar-wrapper"]})],[[j({type:Boolean}),1,"isFixed"],[j(),1,"position"],[j({type:Boolean}),1,"displayCenter"],[j({attribute:!1}),1,"extraAppBarContentStyle"]],0,void 0,l.ReactNextElement)),v()},6405:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.push([t.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 s=a.toString()},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<t.length;u++){var p=[].concat(t[u]);r&&a[p[0]]||(void 0!==o&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=o),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),i&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=i):p[4]="".concat(i)),e.push(p))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},3373:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,o(n)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},2740:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7545),i=n(6902);function o(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(1369);function s(t,e,n,s,c,u){var p,l,f,d,h,v,y,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,A=[g(null),g(null)],x=e.length;function w(e,n,r){return function(i,o){n&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,r?[o]:[]);return r?o:i}}function E(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function S(t,e,n,i,a,s,c,u,f,d,h){function v(t){if(!h(t))throw new TypeError("Attempted to access private element on non-instance")}var y=[].concat(e[0]),m=e[3],g=!c,x=1===a,S=3===a,j=4===a,C=2===a;function k(e,n,r){return function(i,o){return n&&(o=i,i=t),r&&r(i),B[e].call(i,o)}}if(!g){var B={},T=[],O=S?"get":j||x?"set":"value";if(f?(d||x?B={get:o((function(){return m(this)}),i,"get"),set:function(t){e[4](this,t)}}:B[O]=m,d||o(B[O],i,C?"":O)):d||(B=Object.getOwnPropertyDescriptor(t,i)),!d&&!f){if((l=A[+u][i])&&7!=(l^a))throw Error("Decorating two elements with the same name ("+B[O].name+") is not supported yet");A[+u][i]=a<3?1:a}}for(var N=t,P=y.length-1;P>=0;P-=n?2:1){var F=E(y[P],"A decorator","be",!0),W=n?y[P-1]:void 0,_={},z={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:p,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),s.push(e)}.bind(null,_)};if(g)l=F.call(W,N,z),_.v=1,E(l,"class decorators","return")&&(N=l);else if(z.static=u,z.private=f,l=z.access={has:f?h.bind():function(t){return i in t}},j||(l.get=f?C?function(t){return v(t),B.value}:k("get",0,v):function(t){return t[i]}),C||S||(l.set=f?k("set",0,v):function(t,e){t[i]=e}),N=F.call(W,x?{get:B.get,set:B.set}:B[O],z),_.v=1,x){if("object"==(0,r.A)(N)&&N)(l=E(N.get,"accessor.get"))&&(B.get=l),(l=E(N.set,"accessor.set"))&&(B.set=l),(l=E(N.init,"accessor.init"))&&T.unshift(l);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(N,(d?"field":"method")+" decorators","return")&&(d?T.unshift(N):B[O]=N)}return a<2&&c.push(w(T,u,1),w(s,u,0)),d||g||(f?x?c.splice(-1,0,k("get",u),k("set",u)):c.push(C?B[O]:E.call.bind(B[O])):b(t,i,B)),N}function j(t){return b(t,m,{configurable:!0,enumerable:!0,value:p})}return void 0!==u&&(p=u[m]),p=g(null==p?null:p),h=[],v=function(t){t&&h.push(w(t))},y=function(e,r){for(var o=0;o<n.length;o++){var s=n[o],u=s[1],p=7&u;if((8&u)==e&&!p==r){var l=s[2],v=!!s[3],y=16&u;S(e?t:t.prototype,s,y,v?"#"+l:(0,a.A)(l),p,p<2?[]:e?d=d||[]:f=f||[],h,!!e,v,r,e&&v?function(e){return(0,i.A)(e)===t}:c)}}},y(8,0),y(0,0),y(8,1),y(0,1),v(f),v(d),l=h,x||j(t),{e:l,get c(){var n=[];return x&&[j(t=S(t,[e],s,t.name,5,n)),w(n,1)]}}}},2559:(t,e,n)=>{"use strict";function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},6902:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},2016:(t,e,n)=>{"use strict";function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(2559);function i(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(2016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(2559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}},1369:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7545);function i(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},7545:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})}}]);
|
|
3
|
-
//# sourceMappingURL=eo-app-bar-wrapper.b367af8d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[7825,1369,2052],{8588:(e,t,n)=>{n.d(t,{C:()=>r});const r=10},9443:(e,t,n)=>{n.r(t),n.d(t,{EoDirectoryTreeInternalNode:()=>H,EoDirectoryTreeInternalNodeComponent:()=>re});var r,i=n(9575),o=n(4635),a=n(918),s=n(6902),l=n(5536),c=n(6121),d=n(829),u=n(2740),h=n(8769),p=n.n(h),f=n(300),m=n(4295),v=(n(6477),n(9010)),b=n(4083),g=n(8588);let A,y,w,x,E,k,j,N,S,T,W,M,O,L,P,C,B,R,_,z,D;const{defineElement:I,property:F,event:q}=(0,f.createDecorators)(),G=(0,m.wrapBrick)("eo-icon");let H;var J=new WeakMap,K=new WeakMap,Q=new WeakMap,U=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakSet,$=new WeakMap,ee=new WeakMap,te=new WeakMap;class ne extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,Z),(0,a.A)(this,J,y(this,0)),(0,a.A)(this,K,(w(this),x(this))),(0,a.A)(this,Q,(E(this),k(this))),(0,a.A)(this,U,(j(this),N(this))),(0,a.A)(this,V,(S(this),T(this))),(0,a.A)(this,X,(W(this),M(this))),(0,a.A)(this,Y,(O(this),L(this))),(0,a.A)(this,$,(B(this),()=>{(0,l.A)(Z,this,P).emit(!this.expanded)})),(0,a.A)(this,ee,R(this)),(0,a.A)(this,te,(D(this),()=>{(0,l.A)(Z,this,_).emit()}))}get depth(){return(0,d.A)(J,this)}set depth(e){(0,c.A)(J,this,e)}get expanded(){return(0,d.A)(K,this)}set expanded(e){(0,c.A)(K,this,e)}get selectable(){return(0,d.A)(Q,this)}set selectable(e){(0,c.A)(Q,this,e)}get selected(){return(0,d.A)(U,this)}set selected(e){(0,c.A)(U,this,e)}get icon(){return(0,d.A)(V,this)}set icon(e){(0,c.A)(V,this,e)}get faded(){return(0,d.A)(X,this)}set faded(e){(0,c.A)(X,this,e)}render(){return p().createElement(re,{depth:this.depth,selectable:this.selectable,expanded:this.expanded,icon:this.icon,onExpand:(0,d.A)($,this),onSelect:(0,d.A)(te,this)})}}function re(e){let{depth:t,selectable:n,icon:r,onExpand:o,onSelect:a}=e;const s=(0,h.useRef)(null),l=(0,h.useRef)(null),c=(0,h.useRef)(null);return(0,h.useEffect)((()=>{if(n){const e=s.current,t=l.current,n=()=>{a()},r=e=>{e.stopPropagation(),o()};return null==e||e.addEventListener("click",n),null==t||t.addEventListener("click",r),()=>{null==e||e.removeEventListener("click",n),null==t||t.removeEventListener("click",r)}}{const e=s.current,t=()=>{o()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}}),[n,a,o]),(0,h.useEffect)((()=>{const e=c.current,t=e=>{e.stopPropagation()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[]),p().createElement(p().Fragment,null,p().createElement("div",{className:"tree-item",ref:s},p().createElement("div",{className:"tree-item-indentation",style:{width:g.C*t}}),p().createElement("div",{className:"tree-item-content"},p().createElement("div",{className:"tree-item-expand-button",ref:l},p().createElement(b.A,{className:"tree-item-expand-arrow"})),r&&p().createElement(G,(0,i.A)({},r,{className:"tree-item-icon"})),p().createElement("div",{className:"tree-item-label"},p().createElement("slot",{name:"label"}))),p().createElement("div",{className:"tree-item-suffix",ref:c},p().createElement("slot",{name:"suffix"}))),p().createElement("div",{className:"tree-item-children"},p().createElement("div",{className:"tree-item-inner"},p().createElement("slot",null))))}r=ne,({e:[y,w,x,E,k,j,N,S,T,W,M,O,L,P,C,B,R,_,z,D],c:[H,A]}=(0,u.A)(r,[I("eo-directory-tree-internal-node",{styleTexts:[v.A]})],[[F({type:Number}),1,"depth"],[F({type:Boolean}),1,"expanded"],[F({type:Boolean}),1,"selectable"],[F({type:Boolean}),1,"selected"],[F({attribute:!1}),1,"icon"],[F({type:Boolean,render:!1}),1,"faded"],[q({type:"expand"}),1,"expandEvent",e=>(0,d.A)(Y,e),(e,t)=>(0,c.A)(Y,e,t)],[q({type:"select"}),1,"selectEvent",e=>(0,d.A)(ee,e),(e,t)=>(0,c.A)(ee,e,t)]],0,(e=>te.has((0,s.A)(e))),m.ReactNextElement)),A()},4083:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9575),i=n(8769);const o=e=>i.createElement("svg",(0,r.A)({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14"},e),i.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"}))},9010:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.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 s=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),i=n(6902);function o(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function s(e,t,n,s,l,c){var d,u,h,p,f,m,v,b=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,A=Object.create,y=[A(null),A(null)],w=t.length;function x(t,n,r){return function(i,o){n&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,r?[o]:[]);return r?o:i}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function k(e,t,n,i,a,s,l,c,h,p,f){function m(e){if(!f(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),b=t[3],A=!l,w=1===a,k=3===a,j=4===a,N=2===a;function S(t,n,r){return function(i,o){return n&&(o=i,i=e),r&&r(i),T[t].call(i,o)}}if(!A){var T={},W=[],M=k?"get":j||w?"set":"value";if(h?(p||w?T={get:o((function(){return b(this)}),i,"get"),set:function(e){t[4](this,e)}}:T[M]=b,p||o(T[M],i,N?"":M)):p||(T=Object.getOwnPropertyDescriptor(e,i)),!p&&!h){if((u=y[+c][i])&&7!=(u^a))throw Error("Decorating two elements with the same name ("+T[M].name+") is not supported yet");y[+c][i]=a<3?1:a}}for(var O=e,L=v.length-1;L>=0;L-=n?2:1){var P=E(v[L],"A decorator","be",!0),C=n?v[L-1]:void 0,B={},R={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),s.push(t)}.bind(null,B)};if(A)u=P.call(C,O,R),B.v=1,E(u,"class decorators","return")&&(O=u);else if(R.static=c,R.private=h,u=R.access={has:h?f.bind():function(e){return i in e}},j||(u.get=h?N?function(e){return m(e),T.value}:S("get",0,m):function(e){return e[i]}),N||k||(u.set=h?S("set",0,m):function(e,t){e[i]=t}),O=P.call(C,w?{get:T.get,set:T.set}:T[M],R),B.v=1,w){if("object"==(0,r.A)(O)&&O)(u=E(O.get,"accessor.get"))&&(T.get=u),(u=E(O.set,"accessor.set"))&&(T.set=u),(u=E(O.init,"accessor.init"))&&W.unshift(u);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(O,(p?"field":"method")+" decorators","return")&&(p?W.unshift(O):T[M]=O)}return a<2&&l.push(x(W,c,1),x(s,c,0)),p||A||(h?w?l.splice(-1,0,S("get",c),S("set",c)):l.push(N?T[M]:E.call.bind(T[M])):g(e,i,T)),O}function j(e){return g(e,b,{configurable:!0,enumerable:!0,value:d})}return void 0!==c&&(d=c[b]),d=A(null==d?null:d),f=[],m=function(e){e&&f.push(x(e))},v=function(t,r){for(var o=0;o<n.length;o++){var s=n[o],c=s[1],d=7&c;if((8&c)==t&&!d==r){var u=s[2],m=!!s[3],v=16&c;k(t?e:e.prototype,s,v,m?"#"+u:(0,a.A)(u),d,d<2?[]:t?p=p||[]:h=h||[],f,!!t,m,r,t&&m?function(t){return(0,i.A)(t)===e}:l)}}},v(8,0),v(0,0),v(8,1),v(0,1),m(h),m(p),u=f,w||j(e),{e:u,get c(){var n=[];return w&&[j(e=k(e,[t],s,e.name,5,n)),x(n,1)]}}}},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9575:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})}}]);
|
|
2
|
-
//# sourceMappingURL=eo-directory-tree-internal-node.9b27dad7.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[2251,1369,2052],{8588:(e,t,n)=>{n.d(t,{C:()=>r});const r=10},4373:(e,t,n)=>{n.r(t),n.d(t,{EoDirectoryTreeLeaf:()=>_,EoDirectoryTreeLeafComponent:()=>H});var r,i=n(9575),o=n(4635),a=n(918),c=n(6902),s=n(5536),l=n(6121),u=n(829),d=n(2740),f=n(8769),h=n.n(f),p=n(300),m=n(4295),v=(n(6477),n(8114)),b=n(8588);let y,g,A,w,x,E,k,j,S,T,N,O,P;const{defineElement:W,property:C,event:L}=(0,p.createDecorators)(),M=(0,m.wrapBrick)("eo-icon");let _;var z=new WeakMap,D=new WeakMap,R=new WeakMap,B=new WeakMap,I=new WeakMap,q=new WeakSet,F=new WeakMap;class G extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,q),(0,a.A)(this,z,g(this,0)),(0,a.A)(this,D,(A(this),w(this))),(0,a.A)(this,R,(x(this),E(this))),(0,a.A)(this,B,(k(this),j(this))),(0,a.A)(this,I,(S(this),T(this))),(0,a.A)(this,F,(P(this),()=>{(0,s.A)(q,this,N).emit()}))}get depth(){return(0,u.A)(z,this)}set depth(e){(0,l.A)(z,this,e)}get selected(){return(0,u.A)(D,this)}set selected(e){(0,l.A)(D,this,e)}get icon(){return(0,u.A)(R,this)}set icon(e){(0,l.A)(R,this,e)}get faded(){return(0,u.A)(B,this)}set faded(e){(0,l.A)(B,this,e)}render(){return h().createElement(H,{depth:this.depth,icon:this.icon,onSelect:(0,u.A)(F,this)})}}function H(e){let{depth:t,icon:n,onSelect:r}=e;const o=(0,f.useRef)(null),a=(0,f.useRef)(null);return(0,f.useEffect)((()=>{const e=o.current,t=()=>{r()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[r]),(0,f.useEffect)((()=>{const e=a.current,t=e=>{e.stopPropagation()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[]),h().createElement("div",{className:"tree-item",ref:o},h().createElement("div",{className:"tree-item-indentation",style:{width:b.C*t}}),h().createElement("div",{className:"tree-item-content"},h().createElement("div",{className:"tree-item-expand-button"}),n&&h().createElement(M,(0,i.A)({},n,{className:"tree-item-icon"})),h().createElement("div",{className:"tree-item-label"},h().createElement("slot",null))),h().createElement("div",{className:"tree-item-suffix",ref:a},h().createElement("slot",{name:"suffix"})))}r=G,({e:[g,A,w,x,E,k,j,S,T,N,O,P],c:[_,y]}=(0,d.A)(r,[W("eo-directory-tree-leaf",{styleTexts:[v.A]})],[[C({type:Number}),1,"depth"],[C({type:Boolean}),1,"selected"],[C({attribute:!1}),1,"icon"],[C({type:Boolean,render:!1}),1,"faded"],[L({type:"select"}),1,"selectEvent",e=>(0,u.A)(I,e),(e,t)=>(0,l.A)(I,e,t)]],0,(e=>F.has((0,c.A)(e))),m.ReactNextElement)),y()},8114:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.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 c=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(7545),i=n(6902);function o(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function c(e,t,n,c,s,l){var u,d,f,h,p,m,v,b=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=t.length;function x(t,n,r){return function(i,o){n&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,r?[o]:[]);return r?o:i}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function k(e,t,n,i,a,c,s,l,f,h,p){function m(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),b=t[3],g=!s,w=1===a,k=3===a,j=4===a,S=2===a;function T(t,n,r){return function(i,o){return n&&(o=i,i=e),r&&r(i),N[t].call(i,o)}}if(!g){var N={},O=[],P=k?"get":j||w?"set":"value";if(f?(h||w?N={get:o((function(){return b(this)}),i,"get"),set:function(e){t[4](this,e)}}:N[P]=b,h||o(N[P],i,S?"":P)):h||(N=Object.getOwnPropertyDescriptor(e,i)),!h&&!f){if((d=A[+l][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+N[P].name+") is not supported yet");A[+l][i]=a<3?1:a}}for(var W=e,C=v.length-1;C>=0;C-=n?2:1){var L=E(v[C],"A decorator","be",!0),M=n?v[C-1]:void 0,_={},z={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),c.push(t)}.bind(null,_)};if(g)d=L.call(M,W,z),_.v=1,E(d,"class decorators","return")&&(W=d);else if(z.static=l,z.private=f,d=z.access={has:f?p.bind():function(e){return i in e}},j||(d.get=f?S?function(e){return m(e),N.value}:T("get",0,m):function(e){return e[i]}),S||k||(d.set=f?T("set",0,m):function(e,t){e[i]=t}),W=L.call(M,w?{get:N.get,set:N.set}:N[P],z),_.v=1,w){if("object"==(0,r.A)(W)&&W)(d=E(W.get,"accessor.get"))&&(N.get=d),(d=E(W.set,"accessor.set"))&&(N.set=d),(d=E(W.init,"accessor.init"))&&O.unshift(d);else if(void 0!==W)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(W,(h?"field":"method")+" decorators","return")&&(h?O.unshift(W):N[P]=W)}return a<2&&s.push(x(O,l,1),x(c,l,0)),h||g||(f?w?s.splice(-1,0,T("get",l),T("set",l)):s.push(S?N[P]:E.call.bind(N[P])):y(e,i,N)),W}function j(e){return y(e,b,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[b]),u=g(null==u?null:u),p=[],m=function(e){e&&p.push(x(e))},v=function(t,r){for(var o=0;o<n.length;o++){var c=n[o],l=c[1],u=7&l;if((8&l)==t&&!u==r){var d=c[2],m=!!c[3],v=16&l;k(t?e:e.prototype,c,v,m?"#"+d:(0,a.A)(d),u,u<2?[]:t?h=h||[]:f=f||[],p,!!t,m,r,t&&m?function(t){return(0,i.A)(t)===e}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),m(f),m(h),d=p,w||j(e),{e:d,get c(){var n=[];return w&&[j(e=k(e,[t],c,e.name,5,n)),x(n,1)]}}}},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9575:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})}}]);
|
|
2
|
-
//# sourceMappingURL=eo-directory-tree-leaf.bfd0aeb0.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-directory-tree.6c753652.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[2130,1369,2052],{1535:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a,w:()=>s});var n=r(8769),i=r.n(n);const a=i().createContext({expandedKeysSet:new Set,selectedKeysSet:new Set,onExpand:()=>{},onSelect:()=>{}}),s=()=>i().useContext(a)},5315:(e,t,r)=>{"use strict";r.d(t,{P:()=>y});var n=r(8769),i=r.n(n),a=r(4295),s=r(6235),o=r(3373),c=r.n(o),l=r(1535);const d=(0,a.wrapBrick)("eo-directory-tree-leaf",{onSelect:"select"}),u=(0,a.wrapBrick)("eo-directory-tree-internal-node",{onExpand:"expand",onSelect:"select"});function h(e){const{treeData:t}=e,{data:r,index:a,depth:o}=t,{selectedKeysSet:u,onSelect:h,suffixBrick:p}=(0,l.w)(),f=(0,n.useMemo)((()=>({data:r,index:a,depth:o})),[r,a,o]);return i().createElement(d,{depth:o,selected:u.has(r.key),icon:r.icon,faded:r.faded,onSelect:()=>{const e=[r.key];h({keys:e,node:f})},className:c()({"show-suffix-when-hover":"hover"===(null==p?void 0:p.when)})},i().createElement("span",{title:r.title},r.title),(null==p?void 0:p.useBrick)&&i().createElement("div",{className:"suffix",slot:"suffix"},i().createElement(s.ReactUseMultipleBricks,{useBrick:p.useBrick,data:f})))}function p(e){const{treeData:t}=e,{data:r,index:a,depth:o}=t,{expandedKeysSet:d,onExpand:h,selectedKeysSet:p,onSelect:f,internalNodeSelectable:y,suffixBrick:m}=(0,l.w)(),v=(0,n.useMemo)((()=>({data:r,index:a,depth:o})),[r,a,o]);return i().createElement(u,{depth:o,selectable:y,icon:r.icon,faded:r.faded,expanded:d.has(r.key),selected:p.has(r.key),onExpand:e=>{e.detail?d.add(r.key):d.delete(r.key);const t=[...d];h({keys:t,node:v})},onSelect:()=>{const e=[r.key];f({keys:e,node:v})},className:c()({"show-suffix-when-hover":"hover"===(null==m?void 0:m.when)})},i().createElement("span",{slot:"label",title:r.title},r.title),(null==m?void 0:m.useBrick)&&i().createElement("div",{className:"suffix",slot:"suffix"},i().createElement(s.ReactUseMultipleBricks,{useBrick:m.useBrick,data:v})))}function f(e){const{treeData:t}=e;return Array.isArray(t.children)?i().createElement(p,{treeData:t}):i().createElement(h,{treeData:t})}function y(e){const{treeData:t}=e;return t.map((e=>i().createElement(f,{key:e.key,treeData:e})))}},5215:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EoDirectoryTree:()=>X,EoDirectoryTreeComponent:()=>fe});var n,i=r(4635),a=r(918),s=r(6902),o=r(5536),c=r(6121),l=r(829),d=r(2740),u=r(8769),h=r.n(u),p=r(300),f=r(4295),y=(r(6477),r(6384)),m=r(5315),v=r(6452),A=r(1535);let b,x,g,k,w,S,E,K,B,M,N,T,j,W,D,O,P,C,F,_,z,L,R,G,H,I,U,Z;const{defineElement:$,property:q,method:J,event:Q}=(0,p.createDecorators)(),V=(0,f.wrapBrick)("eo-search",{onChange:"change",onSearch:"search"});let X;var Y=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakMap,ae=new WeakMap,se=new WeakMap,oe=new WeakMap,ce=new WeakMap,le=new WeakSet,de=new WeakMap,ue=new WeakMap,he=new WeakMap;class pe extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,le),(0,a.A)(this,Y,(b(this),g(this,[]))),(0,a.A)(this,ee,(k(this),w(this))),(0,a.A)(this,te,(S(this),E(this))),(0,a.A)(this,re,(K(this),B(this))),(0,a.A)(this,ne,(M(this),N(this))),(0,a.A)(this,ie,(T(this),j(this))),(0,a.A)(this,ae,(W(this),D(this))),(0,a.A)(this,se,(O(this),P(this))),(0,a.A)(this,oe,(C(this),F(this))),(0,a.A)(this,ce,(_(this),z(this))),(0,a.A)(this,de,(G(this),e=>{this.expandedKeys=e.keys,(0,o.A)(le,this,L).emit(e)})),(0,a.A)(this,ue,H(this)),(0,a.A)(this,he,(Z(this),e=>{this.selectedKeys=e.keys,(0,o.A)(le,this,I).emit(e)}))}get data(){return(0,l.A)(Y,this)}set data(e){(0,c.A)(Y,this,e)}get directoryTitle(){return(0,l.A)(ee,this)}set directoryTitle(e){(0,c.A)(ee,this,e)}get internalNodeSelectable(){return(0,l.A)(te,this)}set internalNodeSelectable(e){(0,c.A)(te,this,e)}get searchable(){return(0,l.A)(re,this)}set searchable(e){(0,c.A)(re,this,e)}get placeholder(){return(0,l.A)(ne,this)}set placeholder(e){(0,c.A)(ne,this,e)}get searchFields(){return(0,l.A)(ie,this)}set searchFields(e){(0,c.A)(ie,this,e)}get suffixBrick(){return(0,l.A)(ae,this)}set suffixBrick(e){(0,c.A)(ae,this,e)}get selectedKeys(){return(0,l.A)(se,this)}set selectedKeys(e){(0,c.A)(se,this,e)}get expandedKeys(){return(0,l.A)(oe,this)}set expandedKeys(e){(0,c.A)(oe,this,e)}expandAll(){this.expandedKeys=(0,v.G7)(this.data)}collapseAll(){this.expandedKeys=[]}expandAccordingToSelectedKeys(){this.expandedKeys=(0,v.Ht)(this.data,new Set(this.selectedKeys))}render(){return h().createElement(fe,{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)(de,this),onSelect:(0,l.A)(he,this)})}}function fe(e){const{element:t,data:r,directoryTitle:n,internalNodeSelectable:i,searchable:a,searchFields:s,placeholder:o,suffixBrick:c,onSelect:l,onExpand:d}=e,p=(0,u.useMemo)((()=>new Set(e.expandedKeys)),[e.expandedKeys]),f=(0,u.useMemo)((()=>new Set(e.selectedKeys)),[e.selectedKeys]),[y,b]=(0,u.useState)(""),x=(0,u.useMemo)((()=>{const e=(0,v.vL)(r,y,(s||[]).concat("title"));return y&&(t.expandedKeys=e.expandedKeys),e.data}),[r,y,s]),g=(0,u.useMemo)((()=>(0,v.tn)(x,p)),[x,p]);return h().createElement(A.Z.Provider,{value:{expandedKeysSet:p,selectedKeysSet:f,internalNodeSelectable:i,onSelect:l,onExpand:d,suffixBrick:c}},h().createElement("div",{className:"directory-container"},n&&h().createElement("div",{className:"directory-title-container"},h().createElement("div",{className:"directory-title",title:n},n),h().createElement("div",{className:"directory-title-toolbar"},h().createElement("slot",{name:"toolbar"}))),a&&h().createElement(V,{className:"directory-search",trim:!0,placeholder:o,onSearch:e=>{b(e.detail)}}),h().createElement("div",{className:"tree"},h().createElement(m.P,{treeData:g}))))}n=pe,({e:[g,k,w,S,E,K,B,M,N,T,j,W,D,O,P,C,F,_,z,L,R,G,H,I,U,Z,b],c:[X,x]}=(0,d.A)(n,[$("eo-directory-tree",{styleTexts:[y.A]})],[[q({attribute:!1}),1,"data"],[q(),1,"directoryTitle"],[q({type:Boolean}),1,"internalNodeSelectable"],[q({type:Boolean}),1,"searchable"],[q(),1,"placeholder"],[q({attribute:!1}),1,"searchFields"],[q({attribute:!1}),1,"suffixBrick"],[q({attribute:!1}),1,"selectedKeys"],[q({attribute:!1}),1,"expandedKeys"],[J(),2,"expandAll"],[J(),2,"collapseAll"],[J(),2,"expandAccordingToSelectedKeys"],[Q({type:"expand"}),1,"expandEvent",e=>(0,l.A)(ce,e),(e,t)=>(0,c.A)(ce,e,t)],[Q({type:"select"}),1,"selectEvent",e=>(0,l.A)(ue,e),(e,t)=>(0,c.A)(ue,e,t)]],0,(e=>he.has((0,s.A)(e))),f.ReactNextElement)),x()},6452:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i,Ht:()=>a,tn:()=>c,vL:()=>s});var n=r(1030);function i(e){return e.reduce(((e,t)=>{if(!Array.isArray(t.children))return e;{const r=[t.key].concat(i(t.children));return e.concat(r)}}),[])}function a(e,t){return e.reduce(((e,r)=>{if(!Array.isArray(r.children))return e;{var n;const i=null===(n=r.children)||void 0===n?void 0:n.some((e=>t.has(e.key))),s=a(r.children,t),o=s.concat(i||s.length?[r.key]:[]);return e.concat(o)}}),[])}function s(e,t,r){if(!t)return{data:e,expandedKeys:[]};const i=t.toLowerCase(),a=[],c=e.map((e=>{const t=function(e,t,r){if(r.flatMap((t=>o((0,n.get)(e,t)))).some((e=>e.toLowerCase().includes(t))))return e}(e,i,r);if(Array.isArray(e.children)){const t=s(e.children,i,r),n=t.data;if(null!=n&&n.length)return a.push(e.key,...t.expandedKeys),{...e,children:n}}if(t)return e})).filter(Boolean);return{data:c,expandedKeys:a}}function o(e){const t=[];if((0,n.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(o(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const r in e)t.push(String(r),o(e[r]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}function c(e,t){const r=[];return function e(n,i){return n.map(((n,a)=>{const s=i?`${i.pos}-${a}`:String(a),o={title:n.title,key:n.key,pos:s,depth:s.split("-").length-1,index:a,data:n,parent:i};return r.push(o),Array.isArray(n.children)?o.children=t.has(n.key)?e(n.children,o):[]:o.children=void 0,o}))}(e),r}},6384:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6758),i=r.n(n),a=r(935),s=r.n(a)()(i());s.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=s.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);n&&s[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},2740:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7545),i=r(6902);function a(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var s=r(1369);function o(e,t,r,o,c,l){var d,u,h,p,f,y,m,v=Symbol.metadata||Symbol.for("Symbol.metadata"),A=Object.defineProperty,b=Object.create,x=[b(null),b(null)],g=t.length;function k(t,r,n){return function(i,a){r&&(a=i,i=e);for(var s=0;s<t.length;s++)a=t[s].apply(i,n?[a]:[]);return n?a:i}}function w(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function S(e,t,r,i,s,o,c,l,h,p,f){function y(e){if(!f(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],b=!c,g=1===s,S=3===s,E=4===s,K=2===s;function B(t,r,n){return function(i,a){return r&&(a=i,i=e),n&&n(i),M[t].call(i,a)}}if(!b){var M={},N=[],T=S?"get":E||g?"set":"value";if(h?(p||g?M={get:a((function(){return v(this)}),i,"get"),set:function(e){t[4](this,e)}}:M[T]=v,p||a(M[T],i,K?"":T)):p||(M=Object.getOwnPropertyDescriptor(e,i)),!p&&!h){if((u=x[+l][i])&&7!=(u^s))throw Error("Decorating two elements with the same name ("+M[T].name+") is not supported yet");x[+l][i]=s<3?1:s}}for(var j=e,W=m.length-1;W>=0;W-=r?2:1){var D=w(m[W],"A decorator","be",!0),O=r?m[W-1]:void 0,P={},C={kind:["field","accessor","method","getter","setter","class"][s],name:i,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");w(t,"An initializer","be",!0),o.push(t)}.bind(null,P)};if(b)u=D.call(O,j,C),P.v=1,w(u,"class decorators","return")&&(j=u);else if(C.static=l,C.private=h,u=C.access={has:h?f.bind():function(e){return i in e}},E||(u.get=h?K?function(e){return y(e),M.value}:B("get",0,y):function(e){return e[i]}),K||S||(u.set=h?B("set",0,y):function(e,t){e[i]=t}),j=D.call(O,g?{get:M.get,set:M.set}:M[T],C),P.v=1,g){if("object"==(0,n.A)(j)&&j)(u=w(j.get,"accessor.get"))&&(M.get=u),(u=w(j.set,"accessor.set"))&&(M.set=u),(u=w(j.init,"accessor.init"))&&N.unshift(u);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(j,(p?"field":"method")+" decorators","return")&&(p?N.unshift(j):M[T]=j)}return s<2&&c.push(k(N,l,1),k(o,l,0)),p||b||(h?g?c.splice(-1,0,B("get",l),B("set",l)):c.push(K?M[T]:w.call.bind(M[T])):A(e,i,M)),j}function E(e){return A(e,v,{configurable:!0,enumerable:!0,value:d})}return void 0!==l&&(d=l[v]),d=b(null==d?null:d),f=[],y=function(e){e&&f.push(k(e))},m=function(t,n){for(var a=0;a<r.length;a++){var o=r[a],l=o[1],d=7&l;if((8&l)==t&&!d==n){var u=o[2],y=!!o[3],m=16&l;S(t?e:e.prototype,o,m,y?"#"+u:(0,s.A)(u),d,d<2?[]:t?p=p||[]:h=h||[],f,!!t,y,n,t&&y?function(t){return(0,i.A)(t)===e}:c)}}},m(8,0),m(0,0),m(8,1),m(0,1),y(h),y(p),u=f,g||E(e),{e:u,get c(){var r=[];return g&&[E(e=S(e,[t],o,e.name,5,r)),k(r,1)]}}}},2559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},2016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return r((0,n.A)(e,t))}},4635:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t){(0,n.A)(e,t),t.add(e)}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);function i(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},7545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=eo-directory-tree.6c753652.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-directory.981564a4.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[7257,1369,2052],{5370:(t,e,i)=>{"use strict";i.r(e),i.d(e,{EoDirectory:()=>H,EoDirectoryComponent:()=>ot});var r,n=i(9575),o=i(4635),s=i(918),c=i(6902),a=i(5536),u=i(6121),l=i(829),d=i(2740),f=i(8769),m=i.n(f),p=i(300),h=i(4295),y=i(6235),v=(i(6477),i(2763)),g=i(3373),b=i.n(g);let A,x,k,w,E,S,j,B,I,T,C,O,M,N,W,z,P,R,D,K,$;const{defineElement:_,property:U,event:q}=(0,p.createDecorators)(),F=(0,h.wrapBrick)("eo-icon"),G=(0,h.wrapBrick)("eo-tooltip");let H;var J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,tt=new WeakSet,et=new WeakMap,it=new WeakMap,rt=new WeakMap;class nt extends h.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,tt),(0,s.A)(this,J,x(this,"fixed")),(0,s.A)(this,L,(k(this),w(this))),(0,s.A)(this,Q,(E(this),S(this,[]))),(0,s.A)(this,V,(j(this),B(this,!1))),(0,s.A)(this,X,(I(this),T(this))),(0,s.A)(this,Y,(C(this),O(this))),(0,s.A)(this,Z,(M(this),N(this))),(0,s.A)(this,et,(P(this),R(this))),(0,s.A)(this,it,($(this),t=>{(0,a.A)(tt,this,W).emit(t)})),(0,s.A)(this,rt,(t=>{(0,a.A)(tt,this,D).emit({key:t})}))}get position(){return(0,l.A)(J,this)}set position(t){(0,u.A)(J,this,t)}get directoryTitle(){return(0,l.A)(L,this)}set directoryTitle(t){(0,u.A)(L,this,t)}get menuItems(){return(0,l.A)(Q,this)}set menuItems(t){(0,u.A)(Q,this,t)}get hideRightBorder(){return(0,l.A)(V,this)}set hideRightBorder(t){(0,u.A)(V,this,t)}get suffixBrick(){return(0,l.A)(X,this)}set suffixBrick(t){(0,u.A)(X,this,t)}get defaultSelectedKeys(){return(0,l.A)(Y,this)}set defaultSelectedKeys(t){(0,u.A)(Y,this,t)}render(){return m().createElement(ot,{menuItems:this.menuItems,directoryTitle:this.directoryTitle,hideRightBorder:this.hideRightBorder,suffixIconClick:(0,l.A)(rt,this),menuItemClick:(0,l.A)(it,this),defaultSelectedKeys:this.defaultSelectedKeys,suffixBrick:this.suffixBrick})}}function ot(t){const{menuItems:e,directoryTitle:i,hideRightBorder:r,menuItemClick:o,suffixIconClick:s,defaultSelectedKeys:c,suffixBrick:a}=t;return m().createElement("div",{className:b()("directory-container",{"directory-container-not-border":r})},i&&m().createElement("div",{className:"directory-title",title:i},i),m().createElement("div",{className:"directory-menu-list"},e.map(((t,e)=>{var i;return m().createElement("div",{className:b()("menu-item",`menu-item-${t.type}`),key:`${t.key}-${e}`},m().createElement("div",{className:b()(`menu-item-title-${t.type}`),onClick:()=>"item"===t.type&&(null==o?void 0:o({data:t}))},m().createElement("span",{className:b()("menu-title-text",{"menu-title-text-active":null==c?void 0:c.includes(t.key)})},t.title),null!=a&&a.useBrick?m().createElement(y.ReactUseMultipleBricks,{useBrick:a.useBrick,data:{data:t}}):null,t.suffixIcon&&m().createElement(G,{content:t.suffixIconTooltip,placement:"top"},m().createElement(F,(0,n.A)({},t.suffixIcon,{className:b()("menu-item-title-suffix-icon",{"menu-item-title-suffix-icon-disabled":t.suffixIconDisabled}),onClick:e=>{e.stopPropagation(),t.suffixIconDisabled?e.preventDefault():null==s||s(t.key)}})))),"group"===t.type&&!(null===(i=t.children)||void 0===i||!i.length)&&t.children.map(((e,i)=>m().createElement("div",{className:"menu-item-title-item",onClick:()=>null==o?void 0:o({data:e,groupKey:t.key}),key:`${e.key}-${i}`},m().createElement("span",{className:b()("menu-title-text",{"menu-title-text-active":null==c?void 0:c.includes(e.key)})},e.title)))))}))))}r=nt,({e:[x,k,w,E,S,j,B,I,T,C,O,M,N,W,z,P,R,D,K,$],c:[H,A]}=(0,d.A)(r,[_("eo-directory",{styleTexts:[v.A]})],[[U(),1,"position"],[U(),1,"directoryTitle"],[U({attribute:!1}),1,"menuItems"],[U({type:Boolean}),1,"hideRightBorder"],[U({attribute:!1}),1,"suffixBrick"],[U({attribute:!1}),1,"defaultSelectedKeys"],[q({type:"menu.item.click"}),1,"menuItemClickEvent",t=>(0,l.A)(Z,t),(t,e)=>(0,u.A)(Z,t,e)],[q({type:"suffix.icon.click"}),1,"suffixIconClickEvent",t=>(0,l.A)(et,t),(t,e)=>(0,u.A)(et,t,e)]],0,(t=>rt.has((0,c.A)(t))),h.ReactNextElement)),A()},2763:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(6758),n=i.n(r),o=i(935),s=i.n(o)()(n());s.push([t.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 c=s.toString()},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",r=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),r&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),r&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,r,n,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(s[a]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),i&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=i):l[2]=i),n&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=n):l[4]="".concat(n)),e.push(l))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},3373:(t,e)=>{var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=s(t,o(i)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)r.call(t,i)&&t[i]&&(e=s(e,i));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(i=function(){return n}.apply(e,[]))||(t.exports=i)}()},2740:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(7545),n=i(6902);function o(t,e,i){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:i?i+" "+e:e})}catch(t){}return t}var s=i(1369);function c(t,e,i,c,a,u){var l,d,f,m,p,h,y,v=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,b=Object.create,A=[b(null),b(null)],x=e.length;function k(e,i,r){return function(n,o){i&&(o=n,n=t);for(var s=0;s<e.length;s++)o=e[s].apply(n,r?[o]:[]);return r?o:n}}function w(t,e,i,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(i||"be")+" a function"+(r?"":" or undefined"));return t}function E(t,e,i,n,s,c,a,u,f,m,p){function h(t){if(!p(t))throw new TypeError("Attempted to access private element on non-instance")}var y=[].concat(e[0]),v=e[3],b=!a,x=1===s,E=3===s,S=4===s,j=2===s;function B(e,i,r){return function(n,o){return i&&(o=n,n=t),r&&r(n),I[e].call(n,o)}}if(!b){var I={},T=[],C=E?"get":S||x?"set":"value";if(f?(m||x?I={get:o((function(){return v(this)}),n,"get"),set:function(t){e[4](this,t)}}:I[C]=v,m||o(I[C],n,j?"":C)):m||(I=Object.getOwnPropertyDescriptor(t,n)),!m&&!f){if((d=A[+u][n])&&7!=(d^s))throw Error("Decorating two elements with the same name ("+I[C].name+") is not supported yet");A[+u][n]=s<3?1:s}}for(var O=t,M=y.length-1;M>=0;M-=i?2:1){var N=w(y[M],"A decorator","be",!0),W=i?y[M-1]:void 0,z={},P={kind:["field","accessor","method","getter","setter","class"][s],name:n,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");w(e,"An initializer","be",!0),c.push(e)}.bind(null,z)};if(b)d=N.call(W,O,P),z.v=1,w(d,"class decorators","return")&&(O=d);else if(P.static=u,P.private=f,d=P.access={has:f?p.bind():function(t){return n in t}},S||(d.get=f?j?function(t){return h(t),I.value}:B("get",0,h):function(t){return t[n]}),j||E||(d.set=f?B("set",0,h):function(t,e){t[n]=e}),O=N.call(W,x?{get:I.get,set:I.set}:I[C],P),z.v=1,x){if("object"==(0,r.A)(O)&&O)(d=w(O.get,"accessor.get"))&&(I.get=d),(d=w(O.set,"accessor.set"))&&(I.set=d),(d=w(O.init,"accessor.init"))&&T.unshift(d);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(O,(m?"field":"method")+" decorators","return")&&(m?T.unshift(O):I[C]=O)}return s<2&&a.push(k(T,u,1),k(c,u,0)),m||b||(f?x?a.splice(-1,0,B("get",u),B("set",u)):a.push(j?I[C]:w.call.bind(I[C])):g(t,n,I)),O}function S(t){return g(t,v,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[v]),l=b(null==l?null:l),p=[],h=function(t){t&&p.push(k(t))},y=function(e,r){for(var o=0;o<i.length;o++){var c=i[o],u=c[1],l=7&u;if((8&u)==e&&!l==r){var d=c[2],h=!!c[3],y=16&u;E(e?t:t.prototype,c,y,h?"#"+d:(0,s.A)(d),l,l<2?[]:e?m=m||[]:f=f||[],p,!!e,h,r,e&&h?function(e){return(0,n.A)(e)===t}:a)}}},y(8,0),y(0,0),y(8,1),y(0,1),h(f),h(m),d=p,x||S(t),{e:d,get c(){var i=[];return x&&[S(t=E(t,[e],c,t.name,5,i)),k(i,1)]}}}},2559:(t,e,i)=>{"use strict";function r(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}i.d(e,{A:()=>r})},6902:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(7545);function n(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},2016:(t,e,i)=>{"use strict";function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}i.d(e,{A:()=>r})},829:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(2559);function n(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(2016);function n(t,e,i){(0,r.A)(t,e),e.set(t,i)}},6121:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(2559);function n(t,e,i){return t.set((0,r.A)(t,e),i),i}},5536:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(2559);function n(t,e,i){return i((0,r.A)(t,e))}},4635:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(2016);function n(t,e){(0,r.A)(t,e),e.add(t)}},9575:(t,e,i)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},r.apply(this,arguments)}i.d(e,{A:()=>r})},1369:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(7545);function n(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},7545:(t,e,i)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}i.d(e,{A:()=>r})}}]);
|
|
3
|
-
//# sourceMappingURL=eo-directory.981564a4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[8339,1369,2052],{8738:(e,t,r)=>{r.r(t),r.d(t,{EoFrameBreadcrumb:()=>S,EoFrameBreadcrumbComponent:()=>B});var n,o=r(9575),i=r(918),a=r(6121),c=r(829),u=r(2740),l=r(8769),s=r.n(l),f=r(300),p=r(4295),m=r(6235),d=(r(6477),r(2689));let b,h,v,g,y,A,w;const{defineElement:E,property:x}=(0,f.createDecorators)(),j=(0,p.wrapBrick)("eo-breadcrumb"),k=(0,p.wrapBrick)("eo-breadcrumb-item"),C=(0,p.wrapBrick)("eo-icon");let S;var T=new WeakMap,O=new WeakMap,N=new WeakMap;class P extends p.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,T,h(this)),(0,i.A)(this,O,(v(this),g(this))),(0,i.A)(this,N,(y(this),A(this))),w(this)}get breadcrumb(){return(0,c.A)(T,this)}set breadcrumb(e){(0,a.A)(T,this,e)}get noCurrentApp(){return(0,c.A)(O,this)}set noCurrentApp(e){(0,a.A)(O,this,e)}get menu(){return(0,c.A)(N,this)}set menu(e){(0,a.A)(N,this,e)}render(){return s().createElement(B,{breadcrumb:this.breadcrumb,noCurrentApp:this.noCurrentApp,menu:this.menu})}}function B(e){var t,r;const{menu:n}=e,i=(0,m.useNavConfig)(),a=(0,m.useCurrentApp)(),c=null==a?void 0:a.breadcrumb,u=null==c?void 0:c.items,l=null!==(t=e.breadcrumb)&&void 0!==t&&t.length?e.breadcrumb:null==i?void 0:i.breadcrumb,f=null!==(r=e.noCurrentApp)&&void 0!==r?r:null==c?void 0:c.noCurrentApp,p=null==c?void 0:c.useCurrentMenuTitle;return s().createElement(j,null,s().createElement("span",{slot:"separator"},"/"),null==u?void 0:u.map(((e,t)=>s().createElement(k,{key:t,url:e.to},e.icon?s().createElement(C,(0,o.A)({className:"breadcrumb-item-prefix-icon",slot:"prefix"},e.icon)):0===t&&s().createElement(C,{className:"breadcrumb-item-prefix-icon",slot:"prefix",lib:"antd",icon:"home",theme:"outlined"}),e.text))),a&&!f?s().createElement(k,{url:null!=l&&l.length&&a.homepage&&!a.internal?a.homepage:void 0},!(null!=u&&u.length)&&s().createElement(C,(0,o.A)({},a.menuIcon,{slot:"prefix",className:"breadcrumb-item-prefix-icon"})),a.localeName):null,p&&n?s().createElement(k,{url:n.link},n.icon&&s().createElement(C,(0,o.A)({},n.icon,{className:"breadcrumb-item-prefix-icon",slot:"prefix"})),n.title):null,null==l?void 0:l.map(((e,t)=>s().createElement(k,{key:t,url:e.to},e.text))))}n=P,({e:[h,v,g,y,A,w],c:[S,b]}=(0,u.A)(n,[E("eo-frame-breadcrumb",{styleTexts:[d.A]})],[[x({attribute:!1}),1,"breadcrumb"],[x({type:Boolean}),1,"noCurrentApp"],[x({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),b()},2689:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([e.id,":host{display:flex;height:22px;align-items:center}:host([hidden]){display:none}.breadcrumb-item-prefix-icon{font-size:14px}",""]);const c=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);n&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),t.push(s))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(7545),o=r(6902);function i(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var a=r(1369);function c(e,t,r,c,u,l){var s,f,p,m,d,b,h,v=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=t.length;function E(t,r,n){return function(o,i){r&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,n?[i]:[]);return n?i:o}}function x(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function j(e,t,r,o,a,c,u,l,p,m,d){function b(e){if(!d(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],y=!u,w=1===a,j=3===a,k=4===a,C=2===a;function S(t,r,n){return function(o,i){return r&&(i=o,o=e),n&&n(o),T[t].call(o,i)}}if(!y){var T={},O=[],N=j?"get":k||w?"set":"value";if(p?(m||w?T={get:i((function(){return v(this)}),o,"get"),set:function(e){t[4](this,e)}}:T[N]=v,m||i(T[N],o,C?"":N)):m||(T=Object.getOwnPropertyDescriptor(e,o)),!m&&!p){if((f=A[+l][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+T[N].name+") is not supported yet");A[+l][o]=a<3?1:a}}for(var P=e,B=h.length-1;B>=0;B-=r?2:1){var _=x(h[B],"A decorator","be",!0),z=r?h[B-1]:void 0,M={},D={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:s,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");x(t,"An initializer","be",!0),c.push(t)}.bind(null,M)};if(y)f=_.call(z,P,D),M.v=1,x(f,"class decorators","return")&&(P=f);else if(D.static=l,D.private=p,f=D.access={has:p?d.bind():function(e){return o in e}},k||(f.get=p?C?function(e){return b(e),T.value}:S("get",0,b):function(e){return e[o]}),C||j||(f.set=p?S("set",0,b):function(e,t){e[o]=t}),P=_.call(z,w?{get:T.get,set:T.set}:T[N],D),M.v=1,w){if("object"==(0,n.A)(P)&&P)(f=x(P.get,"accessor.get"))&&(T.get=f),(f=x(P.set,"accessor.set"))&&(T.set=f),(f=x(P.init,"accessor.init"))&&O.unshift(f);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(P,(m?"field":"method")+" decorators","return")&&(m?O.unshift(P):T[N]=P)}return a<2&&u.push(E(O,l,1),E(c,l,0)),m||y||(p?w?u.splice(-1,0,S("get",l),S("set",l)):u.push(C?T[N]:x.call.bind(T[N])):g(e,o,T)),P}function k(e){return g(e,v,{configurable:!0,enumerable:!0,value:s})}return void 0!==l&&(s=l[v]),s=y(null==s?null:s),d=[],b=function(e){e&&d.push(E(e))},h=function(t,n){for(var i=0;i<r.length;i++){var c=r[i],l=c[1],s=7&l;if((8&l)==t&&!s==n){var f=c[2],b=!!c[3],h=16&l;j(t?e:e.prototype,c,h,b?"#"+f:(0,a.A)(f),s,s<2?[]:t?m=m||[]:p=p||[],d,!!t,b,n,t&&b?function(t){return(0,o.A)(t)===e}:u)}}},h(8,0),h(0,0),h(8,1),h(0,1),b(p),b(m),f=d,w||k(e),{e:f,get c(){var r=[];return w&&[k(e=j(e,[t],c,e.name,5,r)),E(r,1)]}}}},2559:(e,t,r)=>{function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},2016:(e,t,r)=>{function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(2559);function o(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(2016);function o(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(2559);function o(e,t,r){return e.set((0,n.A)(e,t),r),r}},9575:(e,t,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},1369:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(7545);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},7545:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=eo-frame-breadcrumb.43f2d2ef.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-launchpad-button.f1433197.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[8649],{3827:(e,t,i)=>{i.r(t),i.d(t,{LaunchpadButton:()=>m});var s,r=i(2740),c=i(8769),a=i.n(c),n=i(300),h=i(4295),l=i(6293),o=i(9630),u=(i(6477),i(9929)),d=i(1);let p;(0,o.initializeReactI18n)(u.NS,u.I);const{defineElement:f}=(0,n.createDecorators)();let m;class v extends h.ReactNextElement{render(){return a().createElement(l.D,null)}}s=v,[m,p]=(0,r.A)(s,[f("eo-launchpad-button",{styleTexts:[d.A]})],[],0,void 0,h.ReactNextElement).c,p()},4864:(e,t,i)=>{i.d(t,{x:()=>r});var s=i(4586);class r{constructor(e){(0,s.A)(this,"preFetchId",null),(0,s.A)(this,"preFetchScheduled",!1),(0,s.A)(this,"firstFetchPromise",null),(0,s.A)(this,"isFetching",!1),(0,s.A)(this,"task",void 0),this.task=e}schedulePrefetch(){if(!this.preFetchScheduled){this.preFetchScheduled=!0;const e=async()=>{this.preFetchId=null,this.fetch()};"function"==typeof window.requestIdleCallback?this.preFetchId=window.requestIdleCallback(e):this.preFetchId=setTimeout(e)}}fetch(e){let t;return this.preFetchId&&("function"==typeof window.cancelIdleCallback?cancelIdleCallback(this.preFetchId):clearTimeout(this.preFetchId),this.preFetchId=null),this.isFetching&&!e||(this.isFetching=!0,t=this.task(),t.catch((e=>{console.error(e),this.firstFetchPromise=null})).finally((()=>{this.isFetching=!1})),this.firstFetchPromise||(this.firstFetchPromise=t),!e)?this.firstFetchPromise:t}}},1644:(e,t,i)=>{i.d(t,{a:()=>c});var s=i(6330),r=i(6730),c=function(){var e=(0,s.A)((function*(e,t){return(yield r.http.post("api/gateway/user_service.launchpad.CreateCollection/api/v1/launchpad/collection",e,t)).data}));return function(t,i){return e.apply(this,arguments)}}()},3887:(e,t,i)=>{i.d(t,{j:()=>r});var s=i(6730),r=(e,t)=>s.http.delete("api/gateway/user_service.launchpad.DeleteCollection/api/v1/launchpad/collection/".concat(e),t)},9684:(e,t,i)=>{i.d(t,{o:()=>a});var s=i(9740),r=i(6330),c=i(6730),a=function(){var e=(0,r.A)((function*(e,t){return(yield c.http.get("api/gateway/user_service.launchpad.ListCollection/api/v1/launchpad/collection",(0,s.A)((0,s.A)({},t),{},{params:e}))).data}));return function(t,i){return e.apply(this,arguments)}}()},4612:(e,t,i)=>{i.d(t,{G:()=>s});class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=e,this.prefix=t}setItem(e,t){this.storage.setItem(this.prefix+e,JSON.stringify(t))}getItem(e){return JSON.parse(this.storage.getItem(this.prefix+e))}removeItem(e){return this.storage.removeItem(this.prefix+e)}clear(){return this.storage.clear()}}}}]);
|
|
3
|
-
//# sourceMappingURL=eo-launchpad-button.f1433197.js.map
|