@next-bricks/nav 1.22.5 → 1.22.6
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 +27 -27
- package/dist/chunks/{114.de520122.js → 114.003b9cfd.js} +2 -2
- package/dist/chunks/{114.de520122.js.map → 114.003b9cfd.js.map} +1 -1
- package/dist/chunks/2133.da6853e0.js +2 -0
- package/dist/chunks/{2133.b3f42995.js.map → 2133.da6853e0.js.map} +1 -1
- package/dist/chunks/2252.5f1f929b.js +3 -0
- package/dist/chunks/{2252.d3da24a8.js.map → 2252.5f1f929b.js.map} +1 -1
- package/dist/chunks/3171.0b1166be.js +2 -0
- package/dist/chunks/{3171.37902a27.js.map → 3171.0b1166be.js.map} +1 -1
- package/dist/chunks/3796.09aff817.js +3 -0
- package/dist/chunks/{3796.8022978a.js.map → 3796.09aff817.js.map} +1 -1
- package/dist/chunks/{3933.928cded4.js → 3933.807693fc.js} +2 -2
- package/dist/chunks/{3933.928cded4.js.map → 3933.807693fc.js.map} +1 -1
- package/dist/chunks/4433.f60c1608.js +2 -0
- package/dist/chunks/{4433.44c89b3a.js.map → 4433.f60c1608.js.map} +1 -1
- package/dist/chunks/{4727.04c7f61d.js → 4727.be7a4093.js} +2 -2
- package/dist/chunks/{4727.04c7f61d.js.map → 4727.be7a4093.js.map} +1 -1
- package/dist/chunks/4837.ecd3625e.js +2 -0
- package/dist/chunks/{7218.d98e4c1e.js.map → 4837.ecd3625e.js.map} +1 -1
- package/dist/chunks/5552.b1be0ff5.js +2 -0
- package/dist/chunks/{5552.075020be.js.map → 5552.b1be0ff5.js.map} +1 -1
- package/dist/chunks/6302.b2905216.js +3 -0
- package/dist/chunks/6302.b2905216.js.map +1 -0
- package/dist/chunks/{6314.b04ccf93.js → 6314.94b59f96.js} +2 -2
- package/dist/chunks/{6314.b04ccf93.js.map → 6314.94b59f96.js.map} +1 -1
- package/dist/chunks/6595.10280bfe.js +2 -0
- package/dist/chunks/{6595.e9199ff8.js.map → 6595.10280bfe.js.map} +1 -1
- package/dist/chunks/7218.3827fb8c.js +2 -0
- package/dist/chunks/{4837.8de8edba.js.map → 7218.3827fb8c.js.map} +1 -1
- package/dist/chunks/{7733.7902dee3.js → 7733.5f5419b4.js} +2 -2
- package/dist/chunks/{7733.7902dee3.js.map → 7733.5f5419b4.js.map} +1 -1
- package/dist/chunks/{8097.3603bfee.js → 8097.49954029.js} +2 -2
- package/dist/chunks/{8097.3603bfee.js.map → 8097.49954029.js.map} +1 -1
- package/dist/chunks/{871.6937a15d.js → 871.f78b6d2b.js} +2 -2
- package/dist/chunks/{871.6937a15d.js.map → 871.f78b6d2b.js.map} +1 -1
- package/dist/chunks/9140.c39af7ec.js +3 -0
- package/dist/chunks/9140.c39af7ec.js.map +1 -0
- package/dist/chunks/{9149.0c92a507.js → 9149.60608585.js} +2 -2
- package/dist/chunks/{9149.0c92a507.js.map → 9149.60608585.js.map} +1 -1
- package/dist/chunks/9363.5c4e2e77.js +3 -0
- package/dist/chunks/{9363.fc28662e.js.map → 9363.5c4e2e77.js.map} +1 -1
- package/dist/chunks/{easyops-navbar-alerts.bc939a72.js → easyops-navbar-alerts.c3bbc03c.js} +2 -2
- package/dist/chunks/{easyops-navbar-alerts.bc939a72.js.map → easyops-navbar-alerts.c3bbc03c.js.map} +1 -1
- package/dist/chunks/{eo-app-bar-wrapper.90fed652.js → eo-app-bar-wrapper.fbe61cce.js} +3 -3
- package/dist/chunks/{eo-app-bar-wrapper.90fed652.js.map → eo-app-bar-wrapper.fbe61cce.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree-internal-node.4b8a6b98.js → eo-directory-tree-internal-node.0d198fc8.js} +2 -2
- package/dist/chunks/{eo-directory-tree-internal-node.4b8a6b98.js.map → eo-directory-tree-internal-node.0d198fc8.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree-leaf.ca3b666e.js → eo-directory-tree-leaf.beb884bf.js} +2 -2
- package/dist/chunks/{eo-directory-tree-leaf.ca3b666e.js.map → eo-directory-tree-leaf.beb884bf.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree.bf18dc76.js → eo-directory-tree.95ce49bf.js} +3 -3
- package/dist/chunks/{eo-directory-tree.bf18dc76.js.map → eo-directory-tree.95ce49bf.js.map} +1 -1
- package/dist/chunks/{eo-directory.f5a87fa2.js → eo-directory.2569d62c.js} +3 -3
- package/dist/chunks/{eo-directory.f5a87fa2.js.map → eo-directory.2569d62c.js.map} +1 -1
- package/dist/chunks/{eo-frame-breadcrumb.bf819fbc.js → eo-frame-breadcrumb.fe8c36fe.js} +2 -2
- package/dist/chunks/{eo-frame-breadcrumb.bf819fbc.js.map → eo-frame-breadcrumb.fe8c36fe.js.map} +1 -1
- package/dist/chunks/eo-launchpad-button-v2.3827f340.js +3 -0
- package/dist/chunks/{eo-launchpad-button-v2.e81da15c.js.map → eo-launchpad-button-v2.3827f340.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-button.c7990f0e.js → eo-launchpad-button.cfad15be.js} +3 -3
- package/dist/chunks/{eo-launchpad-button.c7990f0e.js.map → eo-launchpad-button.cfad15be.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-quick-access.c2c4a0f7.js → eo-launchpad-quick-access.93e11dbd.js} +3 -3
- package/dist/chunks/{eo-launchpad-quick-access.c2c4a0f7.js.map → eo-launchpad-quick-access.93e11dbd.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-recent-visits.8a83d6e6.js → eo-launchpad-recent-visits.f11ba505.js} +3 -3
- package/dist/chunks/{eo-launchpad-recent-visits.8a83d6e6.js.map → eo-launchpad-recent-visits.f11ba505.js.map} +1 -1
- package/dist/chunks/eo-nav-menu.0ba0d462.js +2 -0
- package/dist/chunks/{eo-nav-menu.1bb0aba1.js.map → eo-nav-menu.0ba0d462.js.map} +1 -1
- package/dist/chunks/{eo-search-launchpad.771465a3.js → eo-search-launchpad.4bdfc679.js} +2 -2
- package/dist/chunks/{eo-search-launchpad.771465a3.js.map → eo-search-launchpad.4bdfc679.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu-group.53ab032a.js +3 -0
- package/dist/chunks/{eo-sidebar-menu-group.a35ec0d3.js.map → eo-sidebar-menu-group.53ab032a.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu-item.5d9037c9.js → eo-sidebar-menu-item.c42dcb6d.js} +2 -2
- package/dist/chunks/{eo-sidebar-menu-item.5d9037c9.js.map → eo-sidebar-menu-item.c42dcb6d.js.map} +1 -1
- package/dist/chunks/eo-sidebar-menu-submenu.f38ee113.js +3 -0
- package/dist/chunks/eo-sidebar-menu-submenu.f38ee113.js.map +1 -0
- package/dist/chunks/{eo-sidebar-menu.9c8bfe04.js → eo-sidebar-menu.29136e0e.js} +2 -2
- package/dist/chunks/{eo-sidebar-menu.9c8bfe04.js.map → eo-sidebar-menu.29136e0e.js.map} +1 -1
- package/dist/chunks/eo-sidebar-sub-menu.76e8dd99.js +3 -0
- package/dist/chunks/{eo-sidebar-sub-menu.2e382908.js.map → eo-sidebar-sub-menu.76e8dd99.js.map} +1 -1
- package/dist/chunks/eo-sidebar.acd28162.js +3 -0
- package/dist/chunks/{eo-sidebar.4895576a.js.map → eo-sidebar.acd28162.js.map} +1 -1
- package/dist/chunks/get-menu-config-options.59beed7f.js +2 -0
- package/dist/chunks/{get-menu-config-options.b141a9e3.js.map → get-menu-config-options.59beed7f.js.map} +1 -1
- package/dist/chunks/get-menu-config-tree.9f5f9801.js +2 -0
- package/dist/chunks/{get-menu-config-tree.d659b581.js.map → get-menu-config-tree.9f5f9801.js.map} +1 -1
- package/dist/chunks/{launchpad-config.822d8f06.js → launchpad-config.aee9332d.js} +3 -3
- package/dist/chunks/{launchpad-config.822d8f06.js.map → launchpad-config.aee9332d.js.map} +1 -1
- package/dist/chunks/main.7d7b906b.js +2 -0
- package/dist/chunks/{main.b2d89d48.js.map → main.7d7b906b.js.map} +1 -1
- package/dist/chunks/{nav-logo.07efbab1.js → nav-logo.50235ee1.js} +2 -2
- package/dist/chunks/{nav-logo.07efbab1.js.map → nav-logo.50235ee1.js.map} +1 -1
- package/dist/chunks/{poll-announce.97676990.js → poll-announce.9de5096f.js} +3 -3
- package/dist/chunks/{poll-announce.97676990.js.map → poll-announce.9de5096f.js.map} +1 -1
- package/dist/chunks/query-search.4458a0d7.js +3 -0
- package/dist/chunks/{query-search.442a7bde.js.map → query-search.4458a0d7.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.fe708486.js +2 -0
- package/dist/index.fe708486.js.map +1 -0
- package/dist/manifest.json +94 -94
- package/dist/types.json +111 -111
- package/package.json +4 -4
- package/dist/chunks/2133.b3f42995.js +0 -2
- package/dist/chunks/2252.d3da24a8.js +0 -3
- package/dist/chunks/3171.37902a27.js +0 -2
- package/dist/chunks/3796.8022978a.js +0 -3
- package/dist/chunks/4433.44c89b3a.js +0 -2
- package/dist/chunks/4837.8de8edba.js +0 -2
- package/dist/chunks/5552.075020be.js +0 -2
- package/dist/chunks/6302.cb4502ec.js +0 -3
- package/dist/chunks/6302.cb4502ec.js.map +0 -1
- package/dist/chunks/6595.e9199ff8.js +0 -2
- package/dist/chunks/7218.d98e4c1e.js +0 -2
- package/dist/chunks/9140.7835c9bd.js +0 -3
- package/dist/chunks/9140.7835c9bd.js.map +0 -1
- package/dist/chunks/9363.fc28662e.js +0 -3
- package/dist/chunks/eo-launchpad-button-v2.e81da15c.js +0 -3
- package/dist/chunks/eo-nav-menu.1bb0aba1.js +0 -2
- package/dist/chunks/eo-sidebar-menu-group.a35ec0d3.js +0 -3
- package/dist/chunks/eo-sidebar-menu-submenu.669ac870.js +0 -3
- package/dist/chunks/eo-sidebar-menu-submenu.669ac870.js.map +0 -1
- package/dist/chunks/eo-sidebar-sub-menu.2e382908.js +0 -3
- package/dist/chunks/eo-sidebar.4895576a.js +0 -3
- package/dist/chunks/get-menu-config-options.b141a9e3.js +0 -2
- package/dist/chunks/get-menu-config-tree.d659b581.js +0 -2
- package/dist/chunks/main.b2d89d48.js +0 -2
- package/dist/chunks/query-search.442a7bde.js +0 -3
- package/dist/index.3de8975a.js +0 -2
- package/dist/index.3de8975a.js.map +0 -1
- /package/dist/chunks/{2252.d3da24a8.js.LICENSE.txt → 2252.5f1f929b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{3796.8022978a.js.LICENSE.txt → 3796.09aff817.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6302.cb4502ec.js.LICENSE.txt → 6302.b2905216.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9140.7835c9bd.js.LICENSE.txt → 9140.c39af7ec.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9363.fc28662e.js.LICENSE.txt → 9363.5c4e2e77.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-app-bar-wrapper.90fed652.js.LICENSE.txt → eo-app-bar-wrapper.fbe61cce.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory-tree.bf18dc76.js.LICENSE.txt → eo-directory-tree.95ce49bf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory.f5a87fa2.js.LICENSE.txt → eo-directory.2569d62c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button-v2.e81da15c.js.LICENSE.txt → eo-launchpad-button-v2.3827f340.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button.c7990f0e.js.LICENSE.txt → eo-launchpad-button.cfad15be.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-quick-access.c2c4a0f7.js.LICENSE.txt → eo-launchpad-quick-access.93e11dbd.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-recent-visits.8a83d6e6.js.LICENSE.txt → eo-launchpad-recent-visits.f11ba505.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-group.a35ec0d3.js.LICENSE.txt → eo-sidebar-menu-group.53ab032a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-submenu.669ac870.js.LICENSE.txt → eo-sidebar-menu-submenu.f38ee113.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-sub-menu.2e382908.js.LICENSE.txt → eo-sidebar-sub-menu.76e8dd99.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar.4895576a.js.LICENSE.txt → eo-sidebar.acd28162.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{launchpad-config.822d8f06.js.LICENSE.txt → launchpad-config.aee9332d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{poll-announce.97676990.js.LICENSE.txt → poll-announce.9de5096f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{query-search.442a7bde.js.LICENSE.txt → query-search.4458a0d7.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -57,94 +57,6 @@
|
|
|
57
57
|
"events": [],
|
|
58
58
|
"methods": []
|
|
59
59
|
},
|
|
60
|
-
"eo-sidebar-menu-item": {
|
|
61
|
-
"properties": [
|
|
62
|
-
{
|
|
63
|
-
"name": "url",
|
|
64
|
-
"annotation": {
|
|
65
|
-
"type": "indexedAccess",
|
|
66
|
-
"objectType": {
|
|
67
|
-
"type": "reference",
|
|
68
|
-
"typeName": {
|
|
69
|
-
"type": "identifier",
|
|
70
|
-
"name": "LinkProps"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"indexType": {
|
|
74
|
-
"type": "jsLiteral",
|
|
75
|
-
"value": "url"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "href",
|
|
81
|
-
"annotation": {
|
|
82
|
-
"type": "indexedAccess",
|
|
83
|
-
"objectType": {
|
|
84
|
-
"type": "reference",
|
|
85
|
-
"typeName": {
|
|
86
|
-
"type": "identifier",
|
|
87
|
-
"name": "LinkProps"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"indexType": {
|
|
91
|
-
"type": "jsLiteral",
|
|
92
|
-
"value": "href"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "target",
|
|
98
|
-
"annotation": {
|
|
99
|
-
"type": "indexedAccess",
|
|
100
|
-
"objectType": {
|
|
101
|
-
"type": "reference",
|
|
102
|
-
"typeName": {
|
|
103
|
-
"type": "identifier",
|
|
104
|
-
"name": "LinkProps"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"indexType": {
|
|
108
|
-
"type": "jsLiteral",
|
|
109
|
-
"value": "target"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "icon",
|
|
115
|
-
"annotation": {
|
|
116
|
-
"type": "reference",
|
|
117
|
-
"typeName": {
|
|
118
|
-
"type": "identifier",
|
|
119
|
-
"name": "GeneralIconProps"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "selected",
|
|
125
|
-
"annotation": {
|
|
126
|
-
"type": "keyword",
|
|
127
|
-
"value": "boolean"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "inSubmenu",
|
|
132
|
-
"annotation": {
|
|
133
|
-
"type": "keyword",
|
|
134
|
-
"value": "boolean"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "menuCollapsed",
|
|
139
|
-
"annotation": {
|
|
140
|
-
"type": "keyword",
|
|
141
|
-
"value": "boolean"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"events": [],
|
|
146
|
-
"methods": []
|
|
147
|
-
},
|
|
148
60
|
"eo-frame-breadcrumb": {
|
|
149
61
|
"properties": [
|
|
150
62
|
{
|
|
@@ -233,6 +145,94 @@
|
|
|
233
145
|
}
|
|
234
146
|
]
|
|
235
147
|
},
|
|
148
|
+
"eo-sidebar-menu-item": {
|
|
149
|
+
"properties": [
|
|
150
|
+
{
|
|
151
|
+
"name": "url",
|
|
152
|
+
"annotation": {
|
|
153
|
+
"type": "indexedAccess",
|
|
154
|
+
"objectType": {
|
|
155
|
+
"type": "reference",
|
|
156
|
+
"typeName": {
|
|
157
|
+
"type": "identifier",
|
|
158
|
+
"name": "LinkProps"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"indexType": {
|
|
162
|
+
"type": "jsLiteral",
|
|
163
|
+
"value": "url"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "href",
|
|
169
|
+
"annotation": {
|
|
170
|
+
"type": "indexedAccess",
|
|
171
|
+
"objectType": {
|
|
172
|
+
"type": "reference",
|
|
173
|
+
"typeName": {
|
|
174
|
+
"type": "identifier",
|
|
175
|
+
"name": "LinkProps"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"indexType": {
|
|
179
|
+
"type": "jsLiteral",
|
|
180
|
+
"value": "href"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "target",
|
|
186
|
+
"annotation": {
|
|
187
|
+
"type": "indexedAccess",
|
|
188
|
+
"objectType": {
|
|
189
|
+
"type": "reference",
|
|
190
|
+
"typeName": {
|
|
191
|
+
"type": "identifier",
|
|
192
|
+
"name": "LinkProps"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"indexType": {
|
|
196
|
+
"type": "jsLiteral",
|
|
197
|
+
"value": "target"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "icon",
|
|
203
|
+
"annotation": {
|
|
204
|
+
"type": "reference",
|
|
205
|
+
"typeName": {
|
|
206
|
+
"type": "identifier",
|
|
207
|
+
"name": "GeneralIconProps"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "selected",
|
|
213
|
+
"annotation": {
|
|
214
|
+
"type": "keyword",
|
|
215
|
+
"value": "boolean"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "inSubmenu",
|
|
220
|
+
"annotation": {
|
|
221
|
+
"type": "keyword",
|
|
222
|
+
"value": "boolean"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "menuCollapsed",
|
|
227
|
+
"annotation": {
|
|
228
|
+
"type": "keyword",
|
|
229
|
+
"value": "boolean"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"events": [],
|
|
234
|
+
"methods": []
|
|
235
|
+
},
|
|
236
236
|
"eo-sidebar-sub-menu": {
|
|
237
237
|
"properties": [
|
|
238
238
|
{
|
|
@@ -1864,6 +1864,29 @@
|
|
|
1864
1864
|
"events": [],
|
|
1865
1865
|
"methods": []
|
|
1866
1866
|
},
|
|
1867
|
+
"eo-launchpad-quick-access": {
|
|
1868
|
+
"properties": [
|
|
1869
|
+
{
|
|
1870
|
+
"name": "readonly",
|
|
1871
|
+
"annotation": {
|
|
1872
|
+
"type": "keyword",
|
|
1873
|
+
"value": "boolean"
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"name": "target",
|
|
1878
|
+
"annotation": {
|
|
1879
|
+
"type": "reference",
|
|
1880
|
+
"typeName": {
|
|
1881
|
+
"type": "identifier",
|
|
1882
|
+
"name": "Target"
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
],
|
|
1887
|
+
"events": [],
|
|
1888
|
+
"methods": []
|
|
1889
|
+
},
|
|
1867
1890
|
"eo-directory-tree": {
|
|
1868
1891
|
"properties": [
|
|
1869
1892
|
{
|
|
@@ -2956,29 +2979,6 @@
|
|
|
2956
2979
|
"events": [],
|
|
2957
2980
|
"methods": []
|
|
2958
2981
|
},
|
|
2959
|
-
"eo-launchpad-quick-access": {
|
|
2960
|
-
"properties": [
|
|
2961
|
-
{
|
|
2962
|
-
"name": "readonly",
|
|
2963
|
-
"annotation": {
|
|
2964
|
-
"type": "keyword",
|
|
2965
|
-
"value": "boolean"
|
|
2966
|
-
}
|
|
2967
|
-
},
|
|
2968
|
-
{
|
|
2969
|
-
"name": "target",
|
|
2970
|
-
"annotation": {
|
|
2971
|
-
"type": "reference",
|
|
2972
|
-
"typeName": {
|
|
2973
|
-
"type": "identifier",
|
|
2974
|
-
"name": "Target"
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
],
|
|
2979
|
-
"events": [],
|
|
2980
|
-
"methods": []
|
|
2981
|
-
},
|
|
2982
2982
|
"eo-launchpad-button-v2": {
|
|
2983
2983
|
"properties": [],
|
|
2984
2984
|
"events": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/nav",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.6",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/nav",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.23.
|
|
39
|
-
"@next-core/test-next": "^
|
|
38
|
+
"@next-core/build-next-bricks": "^1.23.13",
|
|
39
|
+
"@next-core/test-next": "^2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@next-bricks/basic": "*",
|
|
43
43
|
"@next-bricks/form": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "e5f0fcf46f2de33066b006e98958b3d7a45e1959"
|
|
47
47
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[2133],{2133:(e,t,n)=>{n.d(t,{fm:()=>M,ir:()=>x,pU:()=>O,sZ:()=>N});var a=n(8769),o=n(140),s=n(2340),i=n(7137),r=n(4864),c=n(9393),l=n(3346),u=n(7296),p=n(2824),d=n(2887),m=n(8406),f=n(1030);const h=10,I=10;var y,g=n(6659);async function v(){return(await(0,u.K)({page:1,pageSize:h},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0})).list}function w(e,t){return e.id.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.description&&e.description.toLowerCase().includes(t)?e:null}function k(e,t){return e.id.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.description&&e.description.toLowerCase().includes(t)?e:null}const A=`launchpad-recent-visits:${null===(y=s.auth.getAuth())||void 0===y?void 0:y.org}`,F=new i.G(localStorage);let b=[],C=new Map,B=new Map,S=!1,P=[],E=!1,L=[],_=!1;const x=new r.x((async()=>{({menuGroups:b,microAppsById:C,customLinksById:B}=await async function(){var e;const t=await(0,l.i)({},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0}),n=new Map;for(const e of t.storyboards){var a;const t=e.app;t.localeName=(0,g.F)(t.locales,t.name),null!==(a=s.auth.isBlockedPath)&&void 0!==a&&a.call(s.auth,t.homepage)||n.set(t.id,t)}const o=[],i=new Map;for(const a of t.desktops){const t=[];for(const o of a.items)switch(o.type){case"app":{const e=n.get(o.id);e&&t.push({...o,name:e.localeName,url:e.homepage,menuIcon:e.menuIcon});break}case"custom":null!==(e=s.auth.isBlockedHref)&&void 0!==e&&e.call(s.auth,o.url)||(t.push(o),i.set(o.id,o));break;case"dir":{const e=[];for(const t of o.items){var r;if("app"===t.type){const a=n.get(t.id);a&&e.push({...t,name:a.localeName,url:a.homepage,menuIcon:a.menuIcon})}else"custom"!==t.type||null!==(r=s.auth.isBlockedHref)&&void 0!==r&&r.call(s.auth,t.url)||(e.push(t),i.set(t.id,t))}e.length>0&&t.push({...o,items:e});break}}t.length>0&&o.push({...a,items:t})}return{menuGroups:o,microAppsById:n,customLinksById:i}}()),S=!0})),M=new r.x((async()=>{P=await async function(){const e=await v(),t=[];for(const n of e)if("microApp"===n.type){const e=n.relatedApp;e.localeName=(0,g.F)(e.locales,e.name),t.push({favoriteId:n.instanceId,type:"app",name:e.localeName,id:e.appId,url:e.homepage,instanceId:e.instanceId,menuIcon:e.menuIcon})}else if("customItem"===n.type){const e=n.relatedCustomItem;t.push({favoriteId:n.instanceId,type:"custom",name:e.name,id:e.id,url:e.url,menuIcon:e.menuIcon})}else"link"===n.type&&t.push({favoriteId:n.instanceId,type:"link",name:n.name,url:n.link,menuIcon:n.icon});return t}(),E=!0})),O=new r.x((async()=>{L=await async function(){const e=(await(0,m.y)("MICRO_APP_CATEGORY@EASYOPS",{fields:["id","type","name","icon","order","platformApps.appId","platformApps.name","platformApps.homepage","platformApps.description","platformApps.menuIcon","platformApps.locales","platformApps._object_id","platformApps.@.order","platformItems.id","platformItems.name","platformItems.url","platformItems.description","platformItems.menuIcon","platformItems._object_id","platformItems.@.order"],page:1,page_size:300,query:{type:"platform"}})).list,t=null==e?void 0:e.map((e=>{const t=e.platformApps.map((e=>{var t,n;return null!==(t=s.auth.isBlockedPath)&&void 0!==t&&t.call(s.auth,e.homepage)?null:{type:"app",name:(0,g.F)(e.locales,e.name),id:e.appId,url:e.homepage,menuIcon:e.menuIcon,description:e.description,instanceId:e.instanceId,order:null===(n=e["@"])||void 0===n?void 0:n.order}})).filter(Boolean),n=e.platformItems.map((e=>{var t,n;return null!==(t=s.auth.isBlockedHref)&&void 0!==t&&t.call(s.auth,e.url)?null:{type:"custom",name:e.name,id:e.id,url:e.url,menuIcon:e.menuIcon,description:e.description,instanceId:e.instanceId,order:null===(n=e["@"])||void 0===n?void 0:n.order}})).filter(Boolean),a=(0,f.sortBy)([...t,...n],"order");return{instanceId:e.instanceId,id:e.id,name:e.name,icon:e.icon,order:e.order,items:a}}));return[{id:"#all",name:"全部",icon:{lib:"easyops",category:"second-menu",icon:"sprint-planning-second-menu"},items:[]},...(0,f.sortBy)(t,"order")]}(),_=!0})),T=e=>(0,c.Ds)({type:"error",message:(0,o.httpErrorToString)(e)});function N(e){const[t,n]=(0,a.useState)(b),[s,i]=(0,a.useState)(C),[r,l]=(0,a.useState)(B),[u,m]=(0,a.useState)(""),[f,y]=(0,a.useState)(!S),[g,N]=(0,a.useState)(!E),[j,G]=(0,a.useState)(!_),[q,H]=(0,a.useState)([]),[z,D]=(0,a.useState)([]),[V,Y]=(0,a.useState)(P),[$,K]=(0,a.useState)(L);(0,a.useEffect)((()=>{e&&!f&&(n(b),i(C),l(B))}),[e,f]),(0,a.useEffect)((()=>{e&&!g&&Y(P)}),[e,g]),(0,a.useEffect)((()=>{e&&!j&&K(L)}),[e,j]),(0,a.useEffect)((()=>{var t;e&&H(null!==(t=F.getItem(A))&&void 0!==t?t:[])}),[e]),(0,a.useEffect)((()=>{e&&(async()=>{try{await x.fetch(),y(!1)}catch(e){(0,o.handleHttpError)(e)}})()}),[e]),(0,a.useEffect)((()=>{e&&(async()=>{try{await M.fetch(),N(!1)}catch(e){N(!1),T(e)}})()}),[e]),(0,a.useEffect)((()=>{var t;e&&null!==(t=(0,o.getRuntime)())&&void 0!==t&&t.getFeatureFlags()["launchpad-show-platform-category"]&&(async()=>{try{await O.fetch(),G(!1)}catch(e){G(!1),T(e)}})()}),[e]),(0,a.useEffect)((()=>{if(f)return;const e=q.map((e=>{if("app"===e.type){const t=s.get(e.id);return t?{type:"app",name:t.localeName,id:t.id,url:t.homepage,instanceId:t.instanceId,menuIcon:t.menuIcon}:null}return r.get(e.id)})).filter(Boolean);D(e)}),[r,f,s,q]);const Q=(0,a.useCallback)((e=>{var t;let{type:n,id:a}=e;const o=null!==(t=F.getItem(A))&&void 0!==t?t:[],s=o.findIndex((e=>e.type===n&&e.id===a));s>-1&&o.splice(s,1),o.unshift({type:n,id:a}),o.length>I&&o.pop(),F.setItem(A,o)}),[]),U=(0,a.useCallback)((e=>V.some((t=>R(e,t)))),[V]),Z=(0,a.useCallback)((e=>{const t=V.findIndex((t=>"link"===e.type?t.favoriteId===e.favoriteId:R(e,t)));let n;if(t>-1){const e=V[t];n=V.slice(0,t).concat(V.slice(t+1)),async function(e){return e.favoriteId?(0,d.r)(e.favoriteId):v().then((t=>{var n;const a=null===(n=t.find((t=>{var n,a;return"app"===e.type?"microApp"===t.type&&(null===(n=t.relatedApp)||void 0===n?void 0:n.appId)===e.id:"custom"===e.type&&(null===(a=t.relatedCustomItem)||void 0===a?void 0:a.id)===e.id})))||void 0===n?void 0:n.instanceId;if(a)return(0,d.r)(a);console.error("Menu item to unstar not found:",e)}))}(e).catch(T)}else{if(V.length>=h)return void(0,c.ui)({type:"warn",title:"收藏数量已达上限",content:`当前收藏链接数量已达上限(${h}个),请删除部分收藏后再添加。`});const t={...e};n=V.concat(t),async function(e){return(0,p.k)({type:"app"===e.type?"microApp":"customItem",relatedInstanceId:e.instanceId},{interceptorParams:{ignoreLoadingBar:!0}})}(e).then((e=>{e&&(t.favoriteId=e.instanceId)}),T)}Y(n),P=n}),[V]),J=(0,a.useMemo)((()=>function(e,t){if(!t)return e;const n=t.toLowerCase();return e.map((e=>({...e,items:e.items.map((e=>{switch(e.type){case"app":return w(e,n);case"custom":return k(e,n);case"dir":{const t=e.items.map((e=>"app"===e.type?w(e,n):"custom"===e.type?k(e,n):null)).filter(Boolean);return t.length>0?{...e,items:t}:null}}})).filter(Boolean)}))).filter((e=>e.items.length>0))}(t,u)),[t,u]),W=(0,a.useMemo)((()=>function(e,t){if(!t)return e;const n=t.toLowerCase();return e.map((e=>({...e,items:e.items.map((e=>{switch(e.type){case"app":return w(e,n);case"custom":return k(e,n)}})).filter(Boolean)})))}($,u)),[$,u]);return{loading:f,q:u,setQ:m,menuGroups:J,loadingFavorites:g,loadingPlatformCategories:j,favorites:V,recentVisits:z,pushRecentVisit:Q,isStarred:U,toggleStar:Z,platformCategories:W}}function R(e,t){return e.instanceId&&t.instanceId?t.instanceId===e.instanceId:t.type===e.type&&t.id===e.id}},4864:(e,t,n)=>{n.d(t,{x:()=>o});var a=n(4586);class o{constructor(e){(0,a.A)(this,"preFetchId",null),(0,a.A)(this,"preFetchScheduled",!1),(0,a.A)(this,"firstFetchPromise",null),(0,a.A)(this,"isFetching",!1),(0,a.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}}},6659:(e,t,n)=>{n.d(t,{F:()=>o});var a=n(7448);function o(e,t){var n;if(!e)return t;const o=Object.fromEntries(Object.entries(e).filter((e=>{let[t,n]=e;return n.name})).map((e=>{let[t,n]=e;return[t,n.name]})));return null!==(n=(0,a.i18nText)(o))&&void 0!==n?n:t}},9393:(e,t,n)=>{n.d(t,{Bj:()=>s,Ds:()=>c,EM:()=>i,ui:()=>r});var a=n(9859),o=n(9005);const s=(0,a.wrapBrick)("eo-icon"),i=(0,a.wrapBrick)("eo-link"),r=(0,o.unwrapProvider)("basic.show-dialog"),c=(0,o.unwrapProvider)("basic.show-notification")}}]);
|
|
2
|
-
//# sourceMappingURL=2133.b3f42995.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2252.d3da24a8.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[2252],{829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},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})},2252:(e,t,n)=>{n.r(t),n.d(t,{analytics:()=>u,auth:()=>vt,checkInstalledApps:()=>o,checkPermissions:()=>mt,flowApi:()=>i,menu:()=>s,messageDispatcher:()=>gt});var r={};n.r(r),n.d(r,{addPathToBlackList:()=>S,authenticate:()=>A,getAuth:()=>w,isBlockedHref:()=>P,isBlockedPath:()=>I,isBlockedUrl:()=>O,isLoggedIn:()=>b,logout:()=>y});var o={};n.r(o),n.d(o,{getCheckedApp:()=>ae,preCheckInstalledApps:()=>ie,waitForCheckingApps:()=>se});var i={};n.r(i),n.d(i,{FLOW_API_PROVIDER:()=>ue,clearCollectWidgetContract:()=>be,clearDebugContract:()=>Ie,collectContract:()=>we,collectDebugContract:()=>Se,collectWidgetContract:()=>ye,getArgsOfFlowApi:()=>ke,isFlowApiProvider:()=>Pe,registerFlowApiProvider:()=>de});var s={};n.r(s),n.d(s,{fetchMenuById:()=>Ke,getMenuById:()=>Ye});var a={};n.r(a),n.d(a,{onRequest:()=>lt,onResponse:()=>pt,onResponseError:()=>dt});var c={};n.r(c),n.d(c,{create:()=>ht});var u={};n.r(u),n.d(u,{http:()=>a,initialize:()=>ct,pageView:()=>c});var l=n(4956),p=n(6330),d=n(1361),f=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app.permission.ValidatePermissions/api/micro_app/v1/permission/validate",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}(),h=n(140),m=n(1732);const g={};let v=new Set;function A(e){var t;Object.assign(g,{org:e.org,username:e.username,userInstanceId:e.userInstanceId,loginFrom:e.loginFrom,accessRule:e.accessRule,isAdmin:e.isAdmin,csrfToken:e.csrfToken,license:e.license,accessToken:e.accessToken,userShowValue:e.userShowValue}),v=new Set(null===(t=e.license)||void 0===t?void 0:t.blackList)}function w(){return{...g}}function y(){for(const e of Object.keys(g))g[e]=void 0;k.clear(),E.length=0,M.clear()}function b(){return void 0!==g.username}function S(e){v.add(e)}function I(e){return[...v].some((t=>(0,h.matchPath)(e,{path:t})))}function O(e){const t=("string"==typeof e?(0,m.createLocation)(e):e).pathname;return"string"==typeof t&&I(t)}function P(e){const t=(0,h.getBasePath)(),n=new URL(e,`${location.origin}${t}`);return!(n.origin!==location.origin||!n.pathname.startsWith(t))&&I(n.pathname.substring(t.length-1))}const k=new Map,E=[],M=new Map;function C(e){if(b()&&!w().isAdmin)return T((0,l.scanPermissionActionsInAny)(e))}async function T(e){const t=e.filter((e=>!E.includes(e)));if(0===t.length)return;const n=[],r=[];for(const e of t){const t=k.get(e);t?n.push(t):r.push(e)}if(r.length>0){const e=(async()=>{try{const e=await f({actions:r},{noAbortOnRouteChange:!0});for(const t of e.actions)M.set(t.action,t.authorizationStatus),"undefined"===t.authorizationStatus&&console.error(`Undefined permission action: "${t.action}"`)}catch(e){console.error("Pre-check permissions failed",e)}finally{E.push(...r)}})();for(const t of r)k.set(t,e);n.push(e)}await Promise.all(n)}var _=n(4635),j=n(918),N=n(5536),$=n(2559),D=n(6121),R=n(829),L=n(1030),B=new WeakMap,W=new WeakMap,x=new WeakMap,U=new WeakMap,F=new WeakMap,q=new WeakMap,z=new WeakMap,H=new WeakSet;class G{constructor(e){(0,_.A)(this,H),(0,j.A)(this,B,void 0),(0,j.A)(this,W,void 0),(0,j.A)(this,x,[]),(0,j.A)(this,U,new Set),(0,j.A)(this,F,new Set),(0,j.A)(this,q,0),(0,j.A)(this,z,!1),(0,D.A)(B,this,e)}send(e){(0,R.A)(W,this)||(0,D.A)(W,this,(0,$.A)(H,this,J).call(this));const t=JSON.stringify(e);(0,R.A)(W,this).readyState===WebSocket.OPEN?(0,R.A)(W,this).send(t):(0,R.A)(x,this).push(t)}onMessage(e){return(0,R.A)(U,this).add(e),()=>{(0,R.A)(U,this).delete(e)}}onClose(e){return(0,R.A)(F,this).add(e),()=>{(0,R.A)(F,this).delete(e)}}reset(){(0,R.A)(x,this).length=0,(0,R.A)(U,this).clear(),(0,R.A)(F,this).clear()}close(){var e;(0,D.A)(z,this,!0),(null===(e=(0,R.A)(W,this))||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&(0,R.A)(W,this).close()}}function J(){console.log("WebSocket connecting ...");const e=new WebSocket((0,R.A)(B,this));let t;return e.addEventListener("open",(n=>{console.log("WebSocket open:",n),t=setTimeout((()=>{t=void 0,(0,D.A)(q,this,0)}),1e3);for(const t of(0,R.A)(x,this))e.send(t);(0,R.A)(x,this).length=0})),e.addEventListener("close",(e=>{(0,R.A)(z,this)||(void 0!==t&&clearTimeout(t),console.log("WebSocket close:",e),1e3!==e.code&&(0,$.A)(H,this,V).call(this))})),e.addEventListener("error",(e=>{console.error("WebSocket error:",e)})),e.addEventListener("message",(e=>{const t=JSON.parse(e.data);for(const e of(0,R.A)(U,this))e(t)})),e}function V(){if((0,R.A)(q,this)>=5){console.error("WebSocket connect retry limit exceeded");for(const e of(0,R.A)(F,this))e();return}const e=1e3*Math.pow(2,(0,R.A)(q,this));console.log("WebSocket will reconnect after %d seconds",e/1e3),setTimeout((()=>{var e;(0,D.A)(q,this,(e=(0,R.A)(q,this),++e)),(0,D.A)(W,this,(0,$.A)(H,this,J).call(this))}),e)}var Y=new WeakMap,K=new WeakMap,Q=new WeakMap,X=new WeakSet;function Z(e){if(!(0,R.A)(Y,e)){const t=`${"https:"===location.protocol?"wss:":"ws:"}//${window.location.host}${(0,h.getBasePath)()}api/websocket_service/v1/ws`;(0,D.A)(Y,e,new G(t))}return(0,R.A)(Y,e)}function ee(e,t,n,r){const o=(0,R.A)(K,this)[e].get(r);if(o)return o;const i={event:"sub"===e?"TOPIC.SUB":"TOPIC.UNSUB",payload:n},s=new Promise(((t,r)=>{const o=te(n),s=(0,N.A)(X,this,Z).onMessage((n=>{const i=n.event===("sub"===e?"TOPIC.SUB_SUCCESS":"TOPIC.UNSUB_SUCCESS"),c=n.event===("sub"===e?"TOPIC.SUB_FAILED":"TOPIC.UNSUB_FAILED");(i||c)&&o===te(n.payload)&&((i?t:r)(n),s(),a())})),a=(0,N.A)(X,this,Z).onClose((()=>{r({retryCount:5}),s(),a()}));(0,N.A)(X,this,Z).send(i)}));return"sub"===e&&(0,R.A)(Q,this).set(t,r),(0,R.A)(K,this)[e].set(r,s),s}function te(e){const{system:t,topic:n}=e;return JSON.stringify({system:t,topic:n})}var ne=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app_standalone.runtime.SearchMicroAppStandalone/api/v1/micro_app_standalone/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}();const re=new Map,oe=new Map;function ie(e,t){if(window.STANDALONE_MICRO_APPS&&!window.NO_AUTH_GUARD){const n=function(e){var t;const n={usedArgs:new Set},{customTemplates:r,menus:o}=null!==(t=e.meta)&&void 0!==t?t:{};return(0,l.traverseStoryboardExpressions)([e.routes,r,o],((e,t)=>{(0,l.collectInstalledAppsHasUsage)(n,e,t)}),"INSTALLED_APPS"),[...n.usedArgs]}(e),r=[];for(const e of n)re.has(e)||t(e)||r.push(e);if(0===r.length)return;const o=ne({query:{appId:{$in:r}},fields:["appId","currentVersion","installStatus"]},{noAbortOnRouteChange:!0}).catch((e=>{console.error("Get off site standalone micro-apps failed",e)}));for(const e of r)re.set(e,o.then((t=>{var n;const r=null==t||null===(n=t.list)||void 0===n?void 0:n.find((t=>t.appId===e)),o=r?{...r,id:e}:void 0;return oe.set(e,o),o})))}}async function se(e){await Promise.all(e.map((e=>re.get(e))))}function ae(e){if(window.STANDALONE_MICRO_APPS)return oe.get(e)}var ce=n(9005);const ue="core.provider-flow-api";function le(e,t){return e.some((e=>e.source===t))}async function pe(e){let{url:t,originalUri:n,method:r="GET",responseWrapper:o=!0,ext_fields:i=[],request:s,isFileType:a,stream:c}=e;const u=["get","delete","head"].includes(r.toLowerCase()),l=a?{responseType:"blob"}:{};let p;for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];if(u){var g,v,A,w;let e,o;var y,b;if(n&&"object"===(null==s?void 0:s.type)&&(null!==(g=null===(v=n.match(/:([^/]+)/g))||void 0===v?void 0:v.length)&&void 0!==g?g:0)===(null!==(A=null===(w=s.fields)||void 0===w?void 0:w.length)&&void 0!==A?A:0)?[o]=h:[e,o]=h,c)return await(0,ce.createSSEStream)(d.http.getUrlWithParams(t,e),{...l,...o,method:r,headers:Object.fromEntries([...new Headers(null!==(y=null===(b=o)||void 0===b?void 0:b.headers)&&void 0!==y?y:{}).entries()])});p=await d.http.simpleRequest(r,t,{params:e,...l,...o})}else{const e=function(e){if("object"!==(null==e?void 0:e.type))return!1;const t=e=>!(0,L.isEmpty)(e)&&e.some((e=>["file","file[]"].includes(e.type)||t(e.fields)));return t(e.fields)}(s),n=function(e){const t=le(e,"query"),n=le(e,"body");for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(t){if(n){const[e,t,n]=o;return{data:e,options:{params:t,...n}}}const[e,t]=o;return{data:{},options:{params:e,...t}}}const[s,a]=o;return{data:s,options:a}}(i,...h),o=e?function(e){if(e instanceof FormData)return e;const t=new FormData;for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.append(n,e)})):!(0,L.isObject)(r)||r instanceof Blob||r instanceof Date?t.append(n,r):Object.entries(r).forEach((e=>{let[r,o]=e;t.append(`${n}[${r}]`,o)}));return t}(n.data):n.data;if(c){var S;const{body:e,headers:i}=d.http.getBodyAndHeaders(o,null===(S=n.options)||void 0===S?void 0:S.headers);return await(0,ce.createSSEStream)(t,{...l,...n.options,method:r,headers:Object.fromEntries([...new Headers(null!=i?i:{}).entries()]),body:e})}p=await d.http.requestWithBody(r,t,o,{...l,...n.options})}return!a&&o?p.data:p}function de(){customElements.define(ue,(0,ce.createProviderClass)(pe))}var fe=n(5310);const he=async(e,t)=>(await d.http.post("api/contract/single_search",e,t)).data,me=new Map,ge=new Map,ve=new Map,Ae=(e,t)=>{null==e||e.forEach((e=>{t.set(`${e.namespaceId}.${e.name}`,e)}))};function we(e){Ae(e,me)}function ye(e){Ae(e,ge)}function be(){ge.clear()}function Se(e){Ae(e,ve)}function Ie(){ve.clear()}const Oe=new Map;function Pe(e){return e.includes("@")}async function ke(e,t,n,r){if(!e.includes(":"))throw new Error(`You're using legacy Custom API "${e}" which is dropped in v3, please use Flow API instead`);const o=await async function(e){const[t,n]=e.split("@"),[r,o]=n.split(":"),i=function(e){return me.get(e)||ge.get(e)||ve.get(e)}(`${t}.${r}`);if(i)return{name:i.name,namespace:i.namespaceId,serviceName:i.serviceName,version:i.version,contract:{endpoint:i.endpoint,response:i.response,request:i.request}};let s=Oe.get(e);return s||(s=async function(e,t,n){var r;const{contractData:o}=await he({contractName:`${e}.${t}`,version:n});return o?{name:o.name,namespace:null===(r=o.namespace)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.name,serviceName:o.serviceName,version:o.version,contract:{endpoint:o.endpoint,response:o.response,request:o.request}}:null}(t,r,o),Oe.set(e,s)),s}(e);if(!o)throw new Ee(`Flow API not found: "${e}"`);const i=function(e,t){var n,r;const o="string"==typeof t.contract?fe.safeLoad(t.contract,{schema:fe.JSON_SCHEMA,json:!0}):t.contract,{uri:i,method:s="GET",ext_fields:a}=null!==(n=null==o?void 0:o.endpoint)&&void 0!==n?n:{},c=!(null==o||!o.response)&&!1!==o.response.wrapper;if(!i)throw new Error(`Missing endpoint.uri in contract of provider "${e}"`);return{uri:i,method:"list"===s.toLowerCase()?"get":s,ext_fields:a,name:t.name,namespace:t.namespace,serviceName:t.serviceName,version:t.version,isFileType:"file"===(null==o||null===(r=o.response)||void 0===r?void 0:r.type),responseWrapper:c,request:null==o?void 0:o.request}}(e,o);return function(e,t,n,r){let{uri:o,method:i,ext_fields:s,name:a,namespace:c,serviceName:u,responseWrapper:l,version:p,isFileType:d,request:f}=e;const h="saveAs"===n;let m;h&&(m=t.shift());const{url:g,args:v}=function(e,t,n,r,o,i){const s=i?"logic.api.gateway"===o||null!=o&&o.startsWith("logic.api.gateway.")?"":o?`api/gateway/${o}`:`api/gateway/${r}.${n}@${i}`:`api/gateway/api_service.${r}.${n}`,a=t.slice(),c=e.replace(/:([^/]+)/g,(()=>a.shift()));return{url:s?s+c:c.replace(/^\//,""),args:a}}(o,t,a,c,u,p);return[...h?[m]:[],{url:g,originalUri:o,method:i,ext_fields:s,responseWrapper:l,request:f,isFileType:d,stream:r},...v]}(i,t,n,r)}class Ee extends Error{constructor(e){super(e),this.name="FlowApiNotFoundError",Error.captureStackTrace&&Error.captureStackTrace(this,Ee)}}var Me=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}(),Ce=n(9740),Te=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.get("api/gateway/micro_app.installed_micro_app.GetMenusInfo/api/v1/micro-app/menus/".concat(e),(0,Ce.A)((0,Ce.A)({},n),{},{params:t}))).data}));return function(t,n,r){return e.apply(this,arguments)}}(),_e=n(7448);const je=Symbol("appId"),Ne=Symbol("menuI18nNamespace"),$e=Symbol("overrideApp");async function De(e,t,n){const r=e.find((e=>"inject"!==e.type));if(!r)return;const o=[],i=new Map,s=new WeakMap;for(const t of e)if(t.i18n){const e=`menu/${t.menuId}~${t.app[0].appId}+${t.instanceId}`;Object.entries(t.i18n).forEach((t=>{let[n,r]=t;_e.i18n.addResourceBundle(n,e,r)})),s.set(t,e)}await Promise.all(e.map((e=>async function(e,t,n,r){if(e.dynamicItems&&e.itemsResolve){const i=e.app[0].appId,s={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,C(e.itemsResolve)]};var o;i!==t.app.id&&(s.overrideApp=window.STANDALONE_MICRO_APPS?e.overrideApp:null===(o=r.getStoryboardByAppId(i))||void 0===o?void 0:o.app,s.appendI18nNamespace=n.get(e));const a=await r.resolveData({transform:"items",...e.itemsResolve},s);e.items=a.items}}(e,t,s,n))));for(const t of e){var a;if(null!==(a=t.items)&&void 0!==a&&a.length)if("inject"===t.type&&t.injectMenuGroupId){let e=i.get(t.injectMenuGroupId);e||(e=[],i.set(t.injectMenuGroupId,e)),e.push(t)}else o.push(t)}return{...r,items:o.flatMap((e=>Re(e.items,e,i,s))),[Ne]:s.get(r),[$e]:r.overrideApp}}function Re(e,t,n,r){return null==e?void 0:e.map((e=>{var o;const i=e.groupId&&n.get(e.groupId);return i&&n.delete(e.groupId),{...e,children:(null!==(o=Re(e.children,t,n,r))&&void 0!==o?o:[]).concat(i?i.flatMap((e=>Re(e.items,e,n,r))):[]),[je]:t.app[0].appId,[Ne]:r.get(t),[$e]:t.overrideApp}}))}function Le(e){e.items=Be(e.items)}function Be(e){return function(e){return(0,L.sortBy)(e,(e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}))}(e).map((e=>({...e,children:Be(e.children)})))}var We=n(9933),xe=n(1321);function Ue(e,t,n,r){if("titleDataSource"in e&&(0,ce.isObject)(e.titleDataSource)&&Object.entries(e.titleDataSource).every((e=>{let[,t]=e;return null===t||""===t}))&&delete e.titleDataSource,"if"in e&&null===e.if&&delete e.if,"to"in e&&e.to&&!(0,xe.isEvaluable)(e.to)){const t=We.pipes.yaml(e.to);(0,ce.isObject)(t)&&["pathname","search","hash"].some((e=>(0,ce.hasOwnProperty)(t,e)))&&(e.to=t)}let o=n;if(t!==n.app.id){var i;const s=window.STANDALONE_MICRO_APPS?e[$e]:null===(i=r.getStoryboardByAppId(t))||void 0===i?void 0:i.app;o={...n,overrideApp:s,appendI18nNamespace:e[Ne]}}return r.asyncComputeRealValue(e,o,{ignoreSymbols:!0})}function Fe(e,t,n){return Promise.all(e.map((async e=>{let{children:r,...o}=e;const[i,s]=await Promise.all([Ue(o,o[je],t,n),r&&await Fe(r,t,n)]);return{...i,children:s}})))}var qe=function(){var e=(0,p.A)((function*(e,t,n,r){return(yield d.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(e,"/instance/").concat(t),(0,Ce.A)((0,Ce.A)({},r),{},{params:n}))).data}));return function(t,n,r,o){return e.apply(this,arguments)}}();const ze=new Map;async function He(e){if(e.title||(0,L.isEmpty)(e.titleDataSource))return e.title;const t=JSON.stringify(e.titleDataSource),n=ze.get(t);if(void 0!==n)return n;const{objectId:r,instanceId:o,attributeId:i}=e.titleDataSource,s=null!=i?i:"name",a=await qe(r,o,{fields:s});let c;if("#showKey"===i&&Array.isArray(a[s])){const[e,...t]=a[s];c=t.length>0?`${e}(${t.join(",")})`:String(e)}else c=String(a[s]);return ze.set(t,c),c}const Ge=new Map,Je=new Map;function Ve(e){return null==e?void 0:e.filter(h.checkIfOfComputed).map((e=>{const t=Ve(e.children);return"group"===e.type?{type:"group",title:e.text,childLayout:e.childLayout,items:t,groupId:e.groupId,groupFrom:e.groupFrom}:null!=t&&t.length?{type:"subMenu",childLayout:e.childLayout,title:e.text,icon:e.icon,items:t,defaultExpanded:e.defaultExpanded}:function(e){return e.href?P(e.href):!!e.to&&O(e.to)}(e)?null:(0,L.omit)(e,["type","items","children"])})).filter(Boolean)}function Ye(e){return Je.get(e)}function Ke(e,t,n){let r=Ge.get(e);return r||(r=async function(e,t,n){const r=window.STANDALONE_MICRO_APPS?function(e,t,n){var r,o,i,s;const a=n.getStoryboardByAppId(t);return(null!==(r=null!==(o=null===(i=a.meta)||void 0===i?void 0:i.injectMenus)&&void 0!==o?o:null===(s=a.meta)||void 0===s?void 0:s.menus)&&void 0!==r?r:[]).filter((t=>t.menuId===e)).map((e=>{var n;return{...e,...null!==(n=e.app)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.appId?{}:{app:[{appId:t}]}}}))}(e,t.app.id,n):t.flags["three-level-menu-layout"]?(await Te(e,{menuObjectId:"EASYOPS_STORYBOARD_MENU"})).menus:(await Me("EASYOPS_STORYBOARD_MENU",{page:1,page_size:200,fields:{menuId:!0,title:!0,icon:!0,link:!0,titleDataSource:!0,defaultCollapsed:!0,defaultCollapsedBreakpoint:!0,type:!0,injectMenuGroupId:!0,dynamicItems:!0,itemsResolve:!0,items:!0,i18n:!0,"items.children":!0,"app.appId":!0},query:{menuId:{$eq:e},app:{$size:{$gt:0}}}})).list,o=await De(r,t,n);if(!o)throw new Error(`Menu not found: ${e}`);Le(o);const{items:i,app:s,...a}=o,c={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,C([i,a])]};delete c.tplStateStoreId,delete c.forEachItem,delete c.forEachIndex,delete c.forEachSize;const u=s[0].appId,[l,p]=await Promise.all([Ue(a,u,c,n),Fe(i,c,n)]),d={title:await He(l),...(0,L.pick)(l,["icon","link","defaultCollapsed","defaultCollapsedBreakpoint"]),menuItems:Ve(p)};Je.set(e,d)}(e,t,n)),r}const Qe=[];let Xe=null;const Ze={maxWaitingTime:5e3,maxLoggedEvents:10};function et(){clearTimeout(Xe),Qe.length>Ze.maxLoggedEvents?tt():Xe=setTimeout(tt,Ze.maxWaitingTime)}function tt(){if(0===Qe.length)return;const e={model:"easyops.FRONTEND_STAT",columns:["_ver","st","et","lt","size","time","traceId","code","duration","page","uid","username","api","type","msg","status","pageId","route","apiCount","maxApiTimeCost","apiSizeCost","pageTitle"],data:Qe.splice(0,Ze.maxLoggedEvents)};var t;!function(e,t){const n=new Blob([JSON.stringify(t)],{type:"application/json"});window.navigator.sendBeacon(e,n)}(Ze.api,e),Qe.length&&(t=tt,(window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17)))(t))}function nt(){window.addEventListener("beforeunload",tt,!1)}let rt,ot=!1,it=null,st=!0;const at=[];function ct(e){ot||(ot=!0,rt||(rt=function(e,t){return Object.assign(Ze,{...t,api:e}),{sendOnExit:nt,emit:et}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),rt.sendOnExit()))}const ut=Symbol("HttpAnalytics");function lt(e){const t=Math.round(performance.now()),n=Date.now();return e[ut]={st:n,time:Math.round(n/1e3),perfStartTime:t},e}function pt(e,t){return ft(!1,e,t)}function dt(e,t){return ft(!0,e,t)}function ft(e,t,n){const r=Math.round(performance.now()),o=Date.now(),{[ut]:i,url:s}=n;if(i&&!(e&&t instanceof d.HttpAbortError)){delete n[ut];const{st:c,time:u,perfStartTime:l}=i,{userInstanceId:p,username:f}=w();let h,m,g,v,A,y,b;if(e){const e=t instanceof d.HttpResponseError;(e||t instanceof d.HttpParseError)&&(({status:A,headers:y}=t.response),e&&(b=t.responseJson))}else({status:A,data:b,headers:y}=t);(0,ce.isObject)(b)&&({code:h,message:m}=b),y instanceof Headers&&(g=y.get("x-b3-traceid"),v=y.get("content-length")),a={st:c,_ver:c,uid:p,username:f,time:u,et:o,page:location.href,duration:r-l,api:s,type:"api",code:null!=h?h:-1,msg:null!=m?m:"",status:A,traceId:null!=g?g:"",size:v?Number(v):-1},it?Qe.push({...a,type:"apiRequest",...it}):at.push(a)}var a;return e?Promise.reject(t):t}function ht(){const e=Math.round(performance.now()),t=Date.now();return at.length=0,it=null,function(n){let{status:r,path:o,pageTitle:i}=n;if("ok"!==r)return Qe.push(...at),void(at.length=0);const s=Math.round(performance.now())-e,a=Date.now(),{username:c}=w();(function(e){const t=function(){const e=URL.createObjectURL(new Blob([]));let t=e.substring(e.lastIndexOf("/")+1);return URL.revokeObjectURL(e),st&&(t="88-"+t,st=!1),t}(),{lt:n,route:r}=e;it={lt:n,route:r,pageId:t},Qe.push({...e,pageId:t,apiCount:at.length,maxApiTimeCost:Math.max(0,...at.map((e=>e.duration))),size:at.map((e=>e.size)).filter((e=>e>0)).reduce(((e,t)=>e+t),0)});for(const e of at)Qe.push({...e,...it});at.length=0,rt.emit()})({type:"page",page:location.href,_ver:t,time:Math.round(t/1e3),st:t,et:a,lt:s,pageTitle:i,username:c,route:o}),window.dispatchEvent(new CustomEvent("route.render",{detail:{renderTime:s}}))}}const mt=Object.freeze({checkPermissions:function(){if(!b())return!1;if(w().isAdmin)return!0;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t)switch(M.get(e)){case"unauthorized":case"undefined":return!1;case void 0:return console.error(`Un-checked permission action: "${e}", please make sure the permission to check is defined in permissionsPreCheck.`),!1}return!0},preCheckPermissions:function(e){if(b()&&!w().isAdmin)return T((0,l.scanPermissionActionsInStoryboard)(e))},preCheckPermissionsForBrickOrRoute:async function(e,t){if(b()&&!w().isAdmin&&Array.isArray(e.permissionsPreCheck))return T(await t(e.permissionsPreCheck))}}),gt=new class{constructor(){(0,_.A)(this,X),(0,j.A)(this,Y,void 0),(0,j.A)(this,K,{sub:new Map,unsub:new Map}),(0,j.A)(this,Q,new Map)}subscribe(e,t){const n=JSON.stringify(t);return(0,$.A)(X,this,ee).call(this,"sub",e,t,n)}unsubscribe(e){const t=(0,R.A)(Q,this).get(e);if(!t){const t=`The message channel to unsubscribe "${e}" is not found`;return console.error(t),Promise.reject(new Error(t))}const n=JSON.parse(t),r=(0,$.A)(X,this,ee).call(this,"unsub",e,n,t);return(0,R.A)(K,this).sub.delete(t),r.then((()=>{(0,R.A)(Q,this).delete(e)})),r}onMessage(e,t){let n=(0,R.A)(Q,this).get(e),r=!1;return(0,N.A)(X,this,Z).onMessage((o=>{n||(n=(0,R.A)(Q,this).get(e)),n?"MESSAGE.PUSH"===o.event&&function(e,t){const n=JSON.parse(e);return n.system===t.system&&(n.topic===t.topic||"string"==typeof n.topic&&n.topic.includes("*")&&new RegExp(`^${n.topic.replace(/([^*]*)\*([^*]*)/g,((e,t,n)=>`${(0,L.escapeRegExp)(t)}[^/]*${(0,L.escapeRegExp)(n)}`))}$`).test(t.topic))}(n,o.payload)&&t(o.payload.message):r||(console.error(`Message channel: "${e}" not found`),r=!0)}))}onClose(e){return(0,N.A)(X,this,Z).onClose(e)}reset(){var e;(0,R.A)(K,this).sub.clear(),(0,R.A)(K,this).unsub.clear(),(0,R.A)(Q,this).clear(),null===(e=(0,R.A)(Y,this))||void 0===e||e.reset()}},vt=function(){const e=(0,h.getV2RuntimeFromDll)();if(e)return Object.freeze((0,L.pick)(e,["authenticate","getAuth","isLoggedIn","logout","addPathToBlackList","isBlockedPath","isBlockedUrl","isBlockedHref"]))}()||r},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})},4586:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(1369);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4635:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},5536:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},6121:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},6330:(e,t,n)=>{function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}n.d(t,{A:()=>o})},9740:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4586);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}}}]);
|
|
3
|
-
//# sourceMappingURL=2252.d3da24a8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3171,5552],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>p,i18nText:()=>l,initializeI18n:()=>u});var i=t(5630),s=t(7448),r=t(848);let a=!1;const o=new Set;function u(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var c=t(9005);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,c.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const p=i.default}}]);
|
|
2
|
-
//# sourceMappingURL=3171.37902a27.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3796.8022978a.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[1369,2052,3796],{63:(t,e,r)=>{"use strict";r.d(e,{IZ:()=>a,LP:()=>s,Wf:()=>c});var n=r(1732),o=r(140),i=r(1030);function a(t){return"group"===t.type}function c(t,e){return Boolean("subMenu"===t.type||e&&"group"===t.type)}function s(t,e,r,f){const l=[],p=[],d=[];let h=0;return t&&t.forEach((t=>{if(t.key=""===f?`${h}`:`${f}.${h}`,a(t)||c(t)){const n=s(t.items,e,r,t.key);l.push(...n.selectedKeys),(n.selectedKeys.length||t.defaultExpanded)&&p.push(t.key),p.push(...n.openedKeys),d.push(...n.matchedKeys)}else if(function(t,e,r){if(!t.to)return!1;const a="object"==typeof t.to?t.to:(0,n.parsePath)(t.to),c=a.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");let s=!!(0,o.matchPath)(e,{path:c,exact:t.exact});if(s&&t.activeMatchSearch&&(s=u(r,a.search)),!s&&Array.isArray(t.activeIncludes))for(const a of t.activeIncludes){let t,c=!0;(0,i.isObject)(a)?(t=Array.isArray(a.path)?a.path:[a.path],c=a.exact):t=[a];for(const i of t){var f;let t;const a=i.includes("?");if(a&&(t=(0,n.parsePath)(i)),s=!!(0,o.matchPath)(e,{path:a?t.pathname:i,exact:c}),s&&null!==(f=t)&&void 0!==f&&f.search&&(s=u(r,t.search)),s)break}if(s)break}if(s&&Array.isArray(t.activeExcludes))for(const a of t.activeExcludes){let t,c=!0;(0,i.isObject)(a)?(t=Array.isArray(a.path)?a.path:[a.path],c=a.exact):t=[a];for(const i of t){let t;if(i.includes("?")&&(t=(0,n.parsePath)(i)),s=!((0,o.matchPath)(e,{path:t?t.pathname:i,exact:c})&&(!t||u(r,t.search))),!s)break}if(!s)break}return s}(t,e,r)){l.push(String(t.key));const e=t.key.split(".");for(let t=0;t<e.length;t++)d.push(e.slice(0,t+1).join("."))}h+=1})),l.length&&""!==f&&p.push(f),{selectedKeys:l,openedKeys:p,matchedKeys:d}}function u(t,e){const r=new URLSearchParams(t),n=new URLSearchParams(e);for(const[t,e]of n.entries()){var o;if((null!==(o=r.get(t))&&void 0!==o?o:"")!==e)return!1}return!0}},829:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2559);function o(t,e){return t.get((0,n.A)(t,e))}},855:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},918:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2016);function o(t,e,r){(0,n.A)(t,e),e.set(t,r)}},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var u=0;u<t.length;u++){var f=[].concat(t[u]);n&&a[f[0]]||(void 0!==i&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),r&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=r):f[2]=r),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),e.push(f))}},e}},1369:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7545);function o(t){var e=function(t){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},1740:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},2016:(t,e,r)=>{"use strict";function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},2559:(t,e,r)=>{"use strict";function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},2591:t=>{"use strict";var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var i={},a=[],c=0;c<t.length;c++){var s=t[c],u=n.base?s[0]+n.base:s[0],f=i[u]||0,l="".concat(u," ").concat(f);i[u]=f+1;var p=r(l),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var h=o(d,n);n.byIndex=c,e.splice(c,0,{identifier:l,updater:h,references:1})}a.push(l)}return a}function o(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var i=n(t=t||[],o=o||{});return function(t){t=t||[];for(var a=0;a<i.length;a++){var c=r(i[a]);e[c].references--}for(var s=n(t,o),u=0;u<i.length;u++){var f=r(i[u]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}i=s}}},2740:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(7545),o=r(6902);function i(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,s,u){var f,l,p,d,h,v,y,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=e.length;function j(e,r,n){return function(o,i){r&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,n?[i]:[]);return n?i:o}}function O(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function x(t,e,r,o,a,c,s,u,p,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=!s,w=1===a,x=3===a,P=4===a,S=2===a;function E(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),k[e].call(o,i)}}if(!g){var k={},I=[],T=x?"get":P||w?"set":"value";if(p?(d||w?k={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:k[T]=m,d||i(k[T],o,S?"":T)):d||(k=Object.getOwnPropertyDescriptor(t,o)),!d&&!p){if((l=A[+u][o])&&7!=(l^a))throw Error("Decorating two elements with the same name ("+k[T].name+") is not supported yet");A[+u][o]=a<3?1:a}}for(var _=t,C=y.length-1;C>=0;C-=r?2:1){var M=O(y[C],"A decorator","be",!0),D=r?y[C-1]:void 0,K={},L={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:f,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");O(e,"An initializer","be",!0),c.push(e)}.bind(null,K)};if(g)l=M.call(D,_,L),K.v=1,O(l,"class decorators","return")&&(_=l);else if(L.static=u,L.private=p,l=L.access={has:p?h.bind():function(t){return o in t}},P||(l.get=p?S?function(t){return v(t),k.value}:E("get",0,v):function(t){return t[o]}),S||x||(l.set=p?E("set",0,v):function(t,e){t[o]=e}),_=M.call(D,w?{get:k.get,set:k.set}:k[T],L),K.v=1,w){if("object"==(0,n.A)(_)&&_)(l=O(_.get,"accessor.get"))&&(k.get=l),(l=O(_.set,"accessor.set"))&&(k.set=l),(l=O(_.init,"accessor.init"))&&I.unshift(l);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else O(_,(d?"field":"method")+" decorators","return")&&(d?I.unshift(_):k[T]=_)}return a<2&&s.push(j(I,u,1),j(c,u,0)),d||g||(p?w?s.splice(-1,0,E("get",u),E("set",u)):s.push(S?k[T]:O.call.bind(k[T])):b(t,o,k)),_}function P(t){return b(t,m,{configurable:!0,enumerable:!0,value:f})}return void 0!==u&&(f=u[m]),f=g(null==f?null:f),h=[],v=function(t){t&&h.push(j(t))},y=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],u=c[1],f=7&u;if((8&u)==e&&!f==n){var l=c[2],v=!!c[3],y=16&u;x(e?t:t.prototype,c,y,v?"#"+l:(0,a.A)(l),f,f<2?[]:e?d=d||[]:p=p||[],h,!!e,v,n,e&&v?function(e){return(0,o.A)(e)===t}:s)}}},y(8,0),y(0,0),y(8,1),y(0,1),v(p),v(d),l=h,w||P(t),{e:l,get c(){var r=[];return w&&[P(t=x(t,[e],c,t.name,5,r)),j(r,1)]}}}},3051:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3373:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,i(r)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=a(e,r));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},3656:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4156:(t,e,r)=>{"use strict";r.d(e,{B:()=>o});var n=r(1361),o=(t,e)=>n.http.post("api/gateway/user_service.my_collection.UpsertMyCollection/api/v1/user_service/my_collection/upsert_collections",t,e)},4586:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(1369);function o(t,e,r){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},5343:(t,e,r)=>{"use strict";r.d(e,{Q:()=>a});var n=r(9740),o=r(6330),i=r(1361),a=function(){var t=(0,o.A)((function*(t,e){return(yield i.http.get("api/gateway/user_service.my_collection.ListMyCollection/api/v1/user_service/my_collection/collections",(0,n.A)((0,n.A)({},e),{},{params:t}))).data}));return function(e,r){return t.apply(this,arguments)}}()},6121:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2559);function o(t,e,r){return t.set((0,n.A)(t,e),r),r}},6330:(t,e,r)=>{"use strict";function n(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,s,"next",t)}function s(t){n(a,o,i,c,s,"throw",t)}c(void 0)}))}}r.d(e,{A:()=>o})},6758:t=>{"use strict";t.exports=function(t){return t[1]}},6902:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},7137:(t,e,r)=>{"use strict";r.d(e,{G:()=>n});class n{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=t,this.prefix=e}setItem(t,e){this.storage.setItem(this.prefix+t,JSON.stringify(e))}getItem(t){return JSON.parse(this.storage.getItem(this.prefix+t))}removeItem(t){return this.storage.removeItem(this.prefix+t)}clear(){return this.storage.clear()}}},7545:(t,e,r)=>{"use strict";function n(t){return n="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},n(t)}r.d(e,{A:()=>n})},8128:t=>{"use strict";var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9575:(t,e,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,{A:()=>n})},9740:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4586);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}}}]);
|
|
3
|
-
//# sourceMappingURL=3796.8022978a.js.map
|