@next-bricks/data-view 1.0.6 → 1.0.8

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.
Files changed (322) hide show
  1. package/dist/bricks.json +6 -6
  2. package/dist/chunks/1045.4051bc59.js +2 -0
  3. package/dist/chunks/1045.4051bc59.js.map +1 -0
  4. package/dist/chunks/1122.249bef3d.js +2 -0
  5. package/dist/chunks/{1832.aa4c2edc.js.map → 1122.249bef3d.js.map} +1 -1
  6. package/dist/chunks/114.fa7828ea.js +2 -0
  7. package/dist/chunks/114.fa7828ea.js.map +1 -0
  8. package/dist/chunks/1451.f6d431bd.js +2 -0
  9. package/dist/chunks/1451.f6d431bd.js.map +1 -0
  10. package/dist/chunks/1493.19cf946f.js +2 -0
  11. package/dist/chunks/{4016.86b5dfba.js.map → 1493.19cf946f.js.map} +1 -1
  12. package/dist/chunks/1889.4665ce99.js +2 -0
  13. package/dist/chunks/1889.4665ce99.js.map +1 -0
  14. package/dist/chunks/{8644.24bc83cf.js → 1940.bc87e862.js} +2 -2
  15. package/dist/chunks/{8644.24bc83cf.js.map → 1940.bc87e862.js.map} +1 -1
  16. package/dist/chunks/1972.4555305c.js +2 -0
  17. package/dist/chunks/1972.4555305c.js.map +1 -0
  18. package/dist/chunks/{856.493c9d92.js → 2052.d1485b52.js} +2 -2
  19. package/dist/chunks/2052.d1485b52.js.map +1 -0
  20. package/dist/chunks/{3680.0509a50c.js → 2277.61bb052b.js} +2 -2
  21. package/dist/chunks/{6064.bb4e3999.js.map → 2277.61bb052b.js.map} +1 -1
  22. package/dist/chunks/{2356.27256308.js → 3144.bf1e76d0.js} +3 -3
  23. package/dist/chunks/{2356.27256308.js.map → 3144.bf1e76d0.js.map} +1 -1
  24. package/dist/chunks/3171.221191b7.js +2 -0
  25. package/dist/chunks/{8440.72f49df1.js.map → 3171.221191b7.js.map} +1 -1
  26. package/dist/chunks/3620.bda2ab97.js +2 -0
  27. package/dist/chunks/{2496.88cb2704.js.map → 3620.bda2ab97.js.map} +1 -1
  28. package/dist/chunks/3751.2e827667.js +2 -0
  29. package/dist/chunks/3751.2e827667.js.map +1 -0
  30. package/dist/chunks/3933.6a615949.js +2 -0
  31. package/dist/chunks/{5356.ea748940.js.map → 3933.6a615949.js.map} +1 -1
  32. package/dist/chunks/{5668.0d0a3eca.js → 4041.530bfe48.js} +3 -3
  33. package/dist/chunks/{5668.0d0a3eca.js.map → 4041.530bfe48.js.map} +1 -1
  34. package/dist/chunks/45.b543be93.js +2 -0
  35. package/dist/chunks/45.b543be93.js.map +1 -0
  36. package/dist/chunks/{6064.bb4e3999.js → 4658.72c80c83.js} +2 -2
  37. package/dist/chunks/{3680.0509a50c.js.map → 4658.72c80c83.js.map} +1 -1
  38. package/dist/chunks/{8648.7705750f.js → 4741.3e999881.js} +2 -2
  39. package/dist/chunks/{8648.7705750f.js.map → 4741.3e999881.js.map} +1 -1
  40. package/dist/chunks/{7928.9a2076cd.js → 5250.f0ffbefe.js} +3 -3
  41. package/dist/chunks/{7928.9a2076cd.js.map → 5250.f0ffbefe.js.map} +1 -1
  42. package/dist/chunks/{1776.4782df7b.js → 5384.a93fd5fb.js} +2 -2
  43. package/dist/chunks/{1776.4782df7b.js.map → 5384.a93fd5fb.js.map} +1 -1
  44. package/dist/chunks/5399.4d1736b4.js +2 -0
  45. package/dist/chunks/{1372.600cf129.js.map → 5399.4d1736b4.js.map} +1 -1
  46. package/dist/chunks/5552.13b1745c.js +2 -0
  47. package/dist/chunks/5552.13b1745c.js.map +1 -0
  48. package/dist/chunks/6314.9bdbc9f1.js +2 -0
  49. package/dist/chunks/{2976.dd17bba5.js.map → 6314.9bdbc9f1.js.map} +1 -1
  50. package/dist/chunks/6519.35a7c67b.js +2 -0
  51. package/dist/chunks/{4524.11d980b7.js.map → 6519.35a7c67b.js.map} +1 -1
  52. package/dist/chunks/6773.8328ecc8.js +2 -0
  53. package/dist/chunks/6773.8328ecc8.js.map +1 -0
  54. package/dist/chunks/6850.0d057163.js +2 -0
  55. package/dist/chunks/6850.0d057163.js.map +1 -0
  56. package/dist/chunks/726.a16b7359.js +2 -0
  57. package/dist/chunks/726.a16b7359.js.map +1 -0
  58. package/dist/chunks/7452.ec94f054.js +2 -0
  59. package/dist/chunks/{6408.b321ff16.js.map → 7452.ec94f054.js.map} +1 -1
  60. package/dist/chunks/7721.d24b2c81.js +3 -0
  61. package/dist/chunks/{6736.b8eaae8e.js.map → 7721.d24b2c81.js.map} +1 -1
  62. package/dist/chunks/7733.55d02fc0.js +2 -0
  63. package/dist/chunks/7733.55d02fc0.js.map +1 -0
  64. package/dist/chunks/7780.76d37ee5.js +2 -0
  65. package/dist/chunks/{3752.36a2a0a7.js.map → 7780.76d37ee5.js.map} +1 -1
  66. package/dist/chunks/7988.fcb35344.js +2 -0
  67. package/dist/chunks/{6768.3d9b466d.js.map → 7988.fcb35344.js.map} +1 -1
  68. package/dist/chunks/8097.6094807f.js +2 -0
  69. package/dist/chunks/8097.6094807f.js.map +1 -0
  70. package/dist/chunks/859.7507d2bc.js +2 -0
  71. package/dist/chunks/859.7507d2bc.js.map +1 -0
  72. package/dist/chunks/8685.7168fc84.js +3 -0
  73. package/dist/chunks/8685.7168fc84.js.map +1 -0
  74. package/dist/chunks/8989.0be22b74.js +2 -0
  75. package/dist/chunks/8989.0be22b74.js.map +1 -0
  76. package/dist/chunks/9407.1ab253ce.js +2 -0
  77. package/dist/chunks/9407.1ab253ce.js.map +1 -0
  78. package/dist/chunks/9515.55dd4e63.js +2 -0
  79. package/dist/chunks/9515.55dd4e63.js.map +1 -0
  80. package/dist/chunks/{7484.135e900d.js → 9542.c49e23ce.js} +2 -2
  81. package/dist/chunks/{7484.135e900d.js.map → 9542.c49e23ce.js.map} +1 -1
  82. package/dist/chunks/{1024.2069526c.js → 9559.817f67e7.js} +2 -2
  83. package/dist/chunks/{1024.2069526c.js.map → 9559.817f67e7.js.map} +1 -1
  84. package/dist/chunks/9591.29c5b36e.js +2 -0
  85. package/dist/chunks/9591.29c5b36e.js.map +1 -0
  86. package/dist/chunks/9844.2fa36dd3.js +2 -0
  87. package/dist/chunks/9844.2fa36dd3.js.map +1 -0
  88. package/dist/chunks/app-wall-card-item.8d8b4c7b.js +3 -0
  89. package/dist/chunks/app-wall-card-item.8d8b4c7b.js.map +1 -0
  90. package/dist/chunks/app-wall-relation-line.ef8e7023.js +3 -0
  91. package/dist/chunks/app-wall-relation-line.ef8e7023.js.map +1 -0
  92. package/dist/chunks/app-wall-system-card.d30aecad.js +2 -0
  93. package/dist/chunks/app-wall-system-card.d30aecad.js.map +1 -0
  94. package/dist/chunks/app-wall.8397c9c3.js +2 -0
  95. package/dist/chunks/app-wall.8397c9c3.js.map +1 -0
  96. package/dist/chunks/basic-index-group.23278dcd.js +2 -0
  97. package/dist/chunks/basic-index-group.23278dcd.js.map +1 -0
  98. package/dist/chunks/battery-chart.9f6483bf.js +2 -0
  99. package/dist/chunks/battery-chart.9f6483bf.js.map +1 -0
  100. package/dist/chunks/brick-notification.3aa63576.js +2 -0
  101. package/dist/chunks/brick-notification.3aa63576.js.map +1 -0
  102. package/dist/chunks/cabinet-app-layer.ffacd45f.js +3 -0
  103. package/dist/chunks/cabinet-app-layer.ffacd45f.js.map +1 -0
  104. package/dist/chunks/cabinet-button.f01adc81.js +2 -0
  105. package/dist/chunks/cabinet-button.f01adc81.js.map +1 -0
  106. package/dist/chunks/cabinet-container.a0dbf743.js +3 -0
  107. package/dist/chunks/cabinet-container.a0dbf743.js.map +1 -0
  108. package/dist/chunks/cabinet-graph.fbfa4fe2.js +2 -0
  109. package/dist/chunks/cabinet-graph.fbfa4fe2.js.map +1 -0
  110. package/dist/chunks/cabinet-node.7ce32271.js +3 -0
  111. package/dist/chunks/cabinet-node.7ce32271.js.map +1 -0
  112. package/dist/chunks/cabinet-thumbnail.e38092a1.js +3 -0
  113. package/dist/chunks/cabinet-thumbnail.e38092a1.js.map +1 -0
  114. package/dist/chunks/complex-search.344f14a7.js +2 -0
  115. package/dist/chunks/complex-search.344f14a7.js.map +1 -0
  116. package/dist/chunks/data-display-flipper-fifth.0a08e841.js +2 -0
  117. package/dist/chunks/data-display-flipper-fifth.0a08e841.js.map +1 -0
  118. package/dist/chunks/data-display-flipper-sixth.fdcf1c67.js +2 -0
  119. package/dist/chunks/data-display-flipper-sixth.fdcf1c67.js.map +1 -0
  120. package/dist/chunks/data-display-flipper.51580009.js +2 -0
  121. package/dist/chunks/data-display-flipper.51580009.js.map +1 -0
  122. package/dist/chunks/dropdown-menu.10198882.js +3 -0
  123. package/dist/chunks/dropdown-menu.10198882.js.map +1 -0
  124. package/dist/chunks/gauge-chart.1c831da6.js +2 -0
  125. package/dist/chunks/gauge-chart.1c831da6.js.map +1 -0
  126. package/dist/chunks/gear-background.081e39bb.js +2 -0
  127. package/dist/chunks/gear-background.081e39bb.js.map +1 -0
  128. package/dist/chunks/graph-layout-grid.9fba802d.js +2 -0
  129. package/dist/chunks/graph-layout-grid.9fba802d.js.map +1 -0
  130. package/dist/chunks/graph-node.3e010af4.js +2 -0
  131. package/dist/chunks/graph-node.3e010af4.js.map +1 -0
  132. package/dist/chunks/graph-text.ed30780f.js +2 -0
  133. package/dist/chunks/graph-text.ed30780f.js.map +1 -0
  134. package/dist/chunks/grid-background.214e5f28.js +2 -0
  135. package/dist/chunks/grid-background.214e5f28.js.map +1 -0
  136. package/dist/chunks/hi-tech-button.4c956072.js +2 -0
  137. package/dist/chunks/hi-tech-button.4c956072.js.map +1 -0
  138. package/dist/chunks/indicator-card.802e3839.js +3 -0
  139. package/dist/chunks/indicator-card.802e3839.js.map +1 -0
  140. package/dist/chunks/lights-component-title.737fa69c.js +2 -0
  141. package/dist/chunks/lights-component-title.737fa69c.js.map +1 -0
  142. package/dist/chunks/loading-panel.04a984df.js +2 -0
  143. package/dist/chunks/loading-panel.04a984df.js.map +1 -0
  144. package/dist/chunks/main.c69c2d87.js +2 -0
  145. package/dist/chunks/main.c69c2d87.js.map +1 -0
  146. package/dist/chunks/modern-style-component-title.f608b789.js +2 -0
  147. package/dist/chunks/modern-style-component-title.f608b789.js.map +1 -0
  148. package/dist/chunks/modern-style-page-title.7205d46e.js +2 -0
  149. package/dist/chunks/modern-style-page-title.7205d46e.js.map +1 -0
  150. package/dist/chunks/modern-style-treemap.e4512223.js +3 -0
  151. package/dist/chunks/modern-style-treemap.e4512223.js.map +1 -0
  152. package/dist/chunks/particle-animation.854c0a89.js +2 -0
  153. package/dist/chunks/particle-animation.854c0a89.js.map +1 -0
  154. package/dist/chunks/radar-chart.d4b3f929.js +2 -0
  155. package/dist/chunks/radar-chart.d4b3f929.js.map +1 -0
  156. package/dist/chunks/simple-card-item.421b1e66.js +3 -0
  157. package/dist/chunks/simple-card-item.421b1e66.js.map +1 -0
  158. package/dist/chunks/tabs-drawer.dd869848.js +3 -0
  159. package/dist/chunks/tabs-drawer.dd869848.js.map +1 -0
  160. package/dist/chunks/tabs-page-title.9339ae0e.js +3 -0
  161. package/dist/chunks/tabs-page-title.9339ae0e.js.map +1 -0
  162. package/dist/chunks/tech-mesh-base-view.8223117a.js +2 -0
  163. package/dist/chunks/tech-mesh-base-view.8223117a.js.map +1 -0
  164. package/dist/chunks/title-text.f2428159.js +2 -0
  165. package/dist/chunks/title-text.f2428159.js.map +1 -0
  166. package/dist/chunks/top-title-bar.ccc6c8db.js +2 -0
  167. package/dist/chunks/top-title-bar.ccc6c8db.js.map +1 -0
  168. package/dist/index.b687004f.js +2 -0
  169. package/dist/index.b687004f.js.map +1 -0
  170. package/package.json +4 -4
  171. package/dist/chunks/1372.600cf129.js +0 -2
  172. package/dist/chunks/1564.04345f6a.js +0 -2
  173. package/dist/chunks/1564.04345f6a.js.map +0 -1
  174. package/dist/chunks/1772.df147c4f.js +0 -2
  175. package/dist/chunks/1772.df147c4f.js.map +0 -1
  176. package/dist/chunks/1832.aa4c2edc.js +0 -2
  177. package/dist/chunks/242.ac21540d.js +0 -2
  178. package/dist/chunks/242.ac21540d.js.map +0 -1
  179. package/dist/chunks/2496.88cb2704.js +0 -2
  180. package/dist/chunks/2976.dd17bba5.js +0 -2
  181. package/dist/chunks/3322.64a25bff.js +0 -2
  182. package/dist/chunks/3322.64a25bff.js.map +0 -1
  183. package/dist/chunks/3752.36a2a0a7.js +0 -2
  184. package/dist/chunks/4016.86b5dfba.js +0 -2
  185. package/dist/chunks/4384.97c69477.js +0 -3
  186. package/dist/chunks/4384.97c69477.js.map +0 -1
  187. package/dist/chunks/4524.11d980b7.js +0 -2
  188. package/dist/chunks/4847.8f5619aa.js +0 -2
  189. package/dist/chunks/4847.8f5619aa.js.map +0 -1
  190. package/dist/chunks/5116.362f98c8.js +0 -2
  191. package/dist/chunks/5116.362f98c8.js.map +0 -1
  192. package/dist/chunks/5356.ea748940.js +0 -2
  193. package/dist/chunks/6192.ffc31929.js +0 -2
  194. package/dist/chunks/6192.ffc31929.js.map +0 -1
  195. package/dist/chunks/6228.44628af2.js +0 -2
  196. package/dist/chunks/6228.44628af2.js.map +0 -1
  197. package/dist/chunks/6352.750fbc04.js +0 -2
  198. package/dist/chunks/6352.750fbc04.js.map +0 -1
  199. package/dist/chunks/6408.b321ff16.js +0 -2
  200. package/dist/chunks/6736.b8eaae8e.js +0 -3
  201. package/dist/chunks/6768.3d9b466d.js +0 -2
  202. package/dist/chunks/6804.9415c092.js +0 -2
  203. package/dist/chunks/6804.9415c092.js.map +0 -1
  204. package/dist/chunks/7228.18fb5a91.js +0 -2
  205. package/dist/chunks/7228.18fb5a91.js.map +0 -1
  206. package/dist/chunks/7476.a4257e2c.js +0 -2
  207. package/dist/chunks/7476.a4257e2c.js.map +0 -1
  208. package/dist/chunks/7861.7644351b.js +0 -2
  209. package/dist/chunks/7861.7644351b.js.map +0 -1
  210. package/dist/chunks/8060.506806dd.js +0 -2
  211. package/dist/chunks/8060.506806dd.js.map +0 -1
  212. package/dist/chunks/820.f0bcfe66.js +0 -2
  213. package/dist/chunks/820.f0bcfe66.js.map +0 -1
  214. package/dist/chunks/8440.72f49df1.js +0 -2
  215. package/dist/chunks/856.493c9d92.js.map +0 -1
  216. package/dist/chunks/872.a26e9d39.js +0 -2
  217. package/dist/chunks/872.a26e9d39.js.map +0 -1
  218. package/dist/chunks/8732.88aa4b9e.js +0 -2
  219. package/dist/chunks/8732.88aa4b9e.js.map +0 -1
  220. package/dist/chunks/8944.9f1e1308.js +0 -2
  221. package/dist/chunks/8944.9f1e1308.js.map +0 -1
  222. package/dist/chunks/8964.28787e25.js +0 -2
  223. package/dist/chunks/8964.28787e25.js.map +0 -1
  224. package/dist/chunks/app-wall-card-item.2ef96c65.js +0 -3
  225. package/dist/chunks/app-wall-card-item.2ef96c65.js.map +0 -1
  226. package/dist/chunks/app-wall-relation-line.88c503bd.js +0 -3
  227. package/dist/chunks/app-wall-relation-line.88c503bd.js.map +0 -1
  228. package/dist/chunks/app-wall-system-card.3ca7e831.js +0 -2
  229. package/dist/chunks/app-wall-system-card.3ca7e831.js.map +0 -1
  230. package/dist/chunks/app-wall.5188b5ba.js +0 -2
  231. package/dist/chunks/app-wall.5188b5ba.js.map +0 -1
  232. package/dist/chunks/basic-index-group.e841c865.js +0 -2
  233. package/dist/chunks/basic-index-group.e841c865.js.map +0 -1
  234. package/dist/chunks/battery-chart.fc014be6.js +0 -2
  235. package/dist/chunks/battery-chart.fc014be6.js.map +0 -1
  236. package/dist/chunks/brick-notification.45fa8334.js +0 -2
  237. package/dist/chunks/brick-notification.45fa8334.js.map +0 -1
  238. package/dist/chunks/cabinet-app-layer.05d5d53a.js +0 -3
  239. package/dist/chunks/cabinet-app-layer.05d5d53a.js.map +0 -1
  240. package/dist/chunks/cabinet-button.c4f3828a.js +0 -2
  241. package/dist/chunks/cabinet-button.c4f3828a.js.map +0 -1
  242. package/dist/chunks/cabinet-container.f4f89281.js +0 -3
  243. package/dist/chunks/cabinet-container.f4f89281.js.map +0 -1
  244. package/dist/chunks/cabinet-graph.d8375249.js +0 -2
  245. package/dist/chunks/cabinet-graph.d8375249.js.map +0 -1
  246. package/dist/chunks/cabinet-node.ad1bec01.js +0 -3
  247. package/dist/chunks/cabinet-node.ad1bec01.js.map +0 -1
  248. package/dist/chunks/cabinet-thumbnail.b41e8360.js +0 -3
  249. package/dist/chunks/cabinet-thumbnail.b41e8360.js.map +0 -1
  250. package/dist/chunks/complex-search.82040cd1.js +0 -2
  251. package/dist/chunks/complex-search.82040cd1.js.map +0 -1
  252. package/dist/chunks/data-display-flipper-fifth.5b918eaf.js +0 -2
  253. package/dist/chunks/data-display-flipper-fifth.5b918eaf.js.map +0 -1
  254. package/dist/chunks/data-display-flipper-sixth.3d29f355.js +0 -2
  255. package/dist/chunks/data-display-flipper-sixth.3d29f355.js.map +0 -1
  256. package/dist/chunks/data-display-flipper.b50b11ce.js +0 -2
  257. package/dist/chunks/data-display-flipper.b50b11ce.js.map +0 -1
  258. package/dist/chunks/dropdown-menu.d84cae7b.js +0 -3
  259. package/dist/chunks/dropdown-menu.d84cae7b.js.map +0 -1
  260. package/dist/chunks/gauge-chart.3131c650.js +0 -2
  261. package/dist/chunks/gauge-chart.3131c650.js.map +0 -1
  262. package/dist/chunks/gear-background.bd17fec2.js +0 -2
  263. package/dist/chunks/gear-background.bd17fec2.js.map +0 -1
  264. package/dist/chunks/graph-layout-grid.88d85ac2.js +0 -2
  265. package/dist/chunks/graph-layout-grid.88d85ac2.js.map +0 -1
  266. package/dist/chunks/graph-node.5a390db5.js +0 -2
  267. package/dist/chunks/graph-node.5a390db5.js.map +0 -1
  268. package/dist/chunks/graph-text.635b27f8.js +0 -2
  269. package/dist/chunks/graph-text.635b27f8.js.map +0 -1
  270. package/dist/chunks/grid-background.59810008.js +0 -2
  271. package/dist/chunks/grid-background.59810008.js.map +0 -1
  272. package/dist/chunks/hi-tech-button.23c728be.js +0 -2
  273. package/dist/chunks/hi-tech-button.23c728be.js.map +0 -1
  274. package/dist/chunks/indicator-card.c44df938.js +0 -3
  275. package/dist/chunks/indicator-card.c44df938.js.map +0 -1
  276. package/dist/chunks/lights-component-title.1c50a6a2.js +0 -2
  277. package/dist/chunks/lights-component-title.1c50a6a2.js.map +0 -1
  278. package/dist/chunks/loading-panel.3f13565a.js +0 -2
  279. package/dist/chunks/loading-panel.3f13565a.js.map +0 -1
  280. package/dist/chunks/main.7dee4ed8.js +0 -2
  281. package/dist/chunks/main.7dee4ed8.js.map +0 -1
  282. package/dist/chunks/modern-style-component-title.d5b6e3a8.js +0 -2
  283. package/dist/chunks/modern-style-component-title.d5b6e3a8.js.map +0 -1
  284. package/dist/chunks/modern-style-page-title.6aca3210.js +0 -2
  285. package/dist/chunks/modern-style-page-title.6aca3210.js.map +0 -1
  286. package/dist/chunks/modern-style-treemap.56a38581.js +0 -3
  287. package/dist/chunks/modern-style-treemap.56a38581.js.map +0 -1
  288. package/dist/chunks/particle-animation.eb1a7869.js +0 -2
  289. package/dist/chunks/particle-animation.eb1a7869.js.map +0 -1
  290. package/dist/chunks/radar-chart.75c23577.js +0 -2
  291. package/dist/chunks/radar-chart.75c23577.js.map +0 -1
  292. package/dist/chunks/simple-card-item.9ba6f0f0.js +0 -3
  293. package/dist/chunks/simple-card-item.9ba6f0f0.js.map +0 -1
  294. package/dist/chunks/tabs-drawer.371e2508.js +0 -3
  295. package/dist/chunks/tabs-drawer.371e2508.js.map +0 -1
  296. package/dist/chunks/tabs-page-title.cbf96601.js +0 -3
  297. package/dist/chunks/tabs-page-title.cbf96601.js.map +0 -1
  298. package/dist/chunks/tech-mesh-base-view.e989eb87.js +0 -2
  299. package/dist/chunks/tech-mesh-base-view.e989eb87.js.map +0 -1
  300. package/dist/chunks/title-text.3211f0be.js +0 -2
  301. package/dist/chunks/title-text.3211f0be.js.map +0 -1
  302. package/dist/chunks/top-title-bar.4cb04e03.js +0 -2
  303. package/dist/chunks/top-title-bar.4cb04e03.js.map +0 -1
  304. package/dist/index.0beceb88.js +0 -2
  305. package/dist/index.0beceb88.js.map +0 -1
  306. /package/dist/chunks/{2356.27256308.js.LICENSE.txt → 3144.bf1e76d0.js.LICENSE.txt} +0 -0
  307. /package/dist/chunks/{5668.0d0a3eca.js.LICENSE.txt → 4041.530bfe48.js.LICENSE.txt} +0 -0
  308. /package/dist/chunks/{7928.9a2076cd.js.LICENSE.txt → 5250.f0ffbefe.js.LICENSE.txt} +0 -0
  309. /package/dist/chunks/{6736.b8eaae8e.js.LICENSE.txt → 7721.d24b2c81.js.LICENSE.txt} +0 -0
  310. /package/dist/chunks/{4384.97c69477.js.LICENSE.txt → 8685.7168fc84.js.LICENSE.txt} +0 -0
  311. /package/dist/chunks/{app-wall-card-item.2ef96c65.js.LICENSE.txt → app-wall-card-item.8d8b4c7b.js.LICENSE.txt} +0 -0
  312. /package/dist/chunks/{app-wall-relation-line.88c503bd.js.LICENSE.txt → app-wall-relation-line.ef8e7023.js.LICENSE.txt} +0 -0
  313. /package/dist/chunks/{cabinet-app-layer.05d5d53a.js.LICENSE.txt → cabinet-app-layer.ffacd45f.js.LICENSE.txt} +0 -0
  314. /package/dist/chunks/{cabinet-container.f4f89281.js.LICENSE.txt → cabinet-container.a0dbf743.js.LICENSE.txt} +0 -0
  315. /package/dist/chunks/{cabinet-node.ad1bec01.js.LICENSE.txt → cabinet-node.7ce32271.js.LICENSE.txt} +0 -0
  316. /package/dist/chunks/{cabinet-thumbnail.b41e8360.js.LICENSE.txt → cabinet-thumbnail.e38092a1.js.LICENSE.txt} +0 -0
  317. /package/dist/chunks/{dropdown-menu.d84cae7b.js.LICENSE.txt → dropdown-menu.10198882.js.LICENSE.txt} +0 -0
  318. /package/dist/chunks/{indicator-card.c44df938.js.LICENSE.txt → indicator-card.802e3839.js.LICENSE.txt} +0 -0
  319. /package/dist/chunks/{modern-style-treemap.56a38581.js.LICENSE.txt → modern-style-treemap.e4512223.js.LICENSE.txt} +0 -0
  320. /package/dist/chunks/{simple-card-item.9ba6f0f0.js.LICENSE.txt → simple-card-item.421b1e66.js.LICENSE.txt} +0 -0
  321. /package/dist/chunks/{tabs-drawer.371e2508.js.LICENSE.txt → tabs-drawer.dd869848.js.LICENSE.txt} +0 -0
  322. /package/dist/chunks/{tabs-page-title.cbf96601.js.LICENSE.txt → tabs-page-title.9339ae0e.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see cabinet-container.a0dbf743.js.LICENSE.txt */
2
+ (self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[4219],{8540:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CabinetContainer:()=>L,CabinetContainerComponent:()=>$});var a,n,i,o,l,s,c,p,h,b,d,g,u,f,v,w,x,m,y=r(4586),k=r(4635),C=r(918),z=r(1369),A=r(8449),W=r(6902),E=r(8769),M=r.n(E),T=r(9938),S=r(9929),D=r(9935),N=r(1053),j=r(3373),R=r.n(j),_=r(6837);function H(e,t,r){return r(I(e,t))}function O(e,t,r){return e.set(I(e,t),r),r}function P(e,t){return e.get(I(e,t))}function I(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")}var L,{defineElement:B,property:X,event:Z}=(0,S.createDecorators)(),q=(0,T.wrapBrick)("data-view.cabinet-node"),F=new WeakMap,G=new WeakMap,J=new WeakMap,K=new WeakMap,Q=new WeakMap,U=new WeakSet,V=new WeakMap;class Y extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,U),(0,C.A)(this,F,n(this,"host")),(0,C.A)(this,G,(i(this),o(this,[]))),(0,C.A)(this,J,(l(this),s(this))),(0,C.A)(this,K,(c(this),p(this))),(0,C.A)(this,Q,(h(this),b(this))),(0,C.A)(this,V,(u(this),f(this))),(0,y.A)(this,"handleClick",(x(this),e=>{H(U,this,d).emit(e)})),(0,y.A)(this,"handleDbClick",(e=>{H(U,this,v).emit(e)}))}get type(){return P(F,this)}set type(e){O(F,this,e)}get data(){return P(G,this)}set data(e){O(G,this,e)}get status(){return P(J,this)}set status(e){O(J,this,e)}get customTitle(){return P(K,this)}set customTitle(e){O(K,this,e)}render(){return M().createElement($,{type:this.type,data:this.data,status:this.status,customTitle:this.customTitle,handleClick:this.handleClick,handleDbClick:this.handleDbClick})}}function $(e){var{type:t,data:r,status:a,customTitle:n,handleClick:i,handleDbClick:o}=e,l=(0,E.useRef)(!1),s=(0,E.useRef)(),[c,{clientWidth:p,clientHeight:h}]=(0,_.w)(),b=(0,E.useCallback)(((e,t,a,n)=>{var i=Math.max(n,a),o=Math.min(n,a),l=Math.min(t,e),s=Math.max(t,e),c=Math.ceil((e+t)/2),p=Math.ceil((a+n)/2),h=Math.ceil(r.length/c);return c<=1?{col:1,row:r.length}:h===p||l===s||l===c||s===c?{col:c,row:h}:h>p?b(c,s,h,o):h<p?b(l,c,i,h):void 0}),[r.length]),d=(0,E.useMemo)((()=>{if(r.length){var e=p-27,t=h-84;if(!(e<=0||t<=0)){var a=Math.floor(e/118),n=Math.floor(t/105),i=Math.floor(e/56),o=Math.floor(t/63),l=a*n,s=i*o,c=r.length;if(c<=l)return{width:Math.floor(e/a),itemWidth:118};if(c>=s)return{width:Math.floor(e/i),itemWidth:56};var{col:d}=b(a,i,n,o);return{width:Math.floor(e/d),itemWidth:Math.max(e/d-10,56)}}}}),[r.length,p,h,b]),g=(e,t,r)=>{e.stopPropagation(),window.clearTimeout(s.current),l.current=!1,s.current=window.setTimeout((function(){l.current||null==i||i({data:t,type:r})}),200)},u=(e,t,r)=>{window.clearTimeout(s.current),l.current=!0,e.stopPropagation(),null==o||o({data:t,type:r})};return M().createElement("div",{className:R()("wrapper",{hostWrapper:"host"===t||"k8s-blue"===t,k8sWrapper:"k8s"===t},a&&"wrapper-".concat(a)),ref:c,onClick:e=>g(e,void 0,"container"),onDoubleClick:e=>u(e,void 0,"container")},M().createElement("div",{className:R()("container",{hostContainer:"host"===t||"k8s-blue"===t,k8sContainer:"k8s"===t},a&&"container-".concat(a))},M().createElement("div",{className:"content"},M().createElement("div",{className:"contentLayout"},r.map(((e,t)=>M().createElement("div",{key:t,className:"itemContent",style:{width:null==d?void 0:d.width}},M().createElement("div",{className:"item",style:{width:null==d?void 0:d.itemWidth},onClick:t=>g(t,e,"node"),onDoubleClick:t=>u(t,e,"node")},M().createElement(q,{type:e.type,nodeTitle:e.nodeTitle,status:e.status,isAlert:e.isAlert}))))))),n&&M().createElement("div",{className:"footer"},M().createElement("div",{className:"footerTitle"},n))))}m=Y,({e:[n,i,o,l,s,c,p,h,b,d,g,u,f,v,w,x],c:[L,a]}=function(e,t,r,a,n,i){var o,l,s,c,p,h,b,d=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,u=Object.create,f=[u(null),u(null)],v=t.length;function w(t,r,a){return function(n,i){r&&(i=n,n=e);for(var o=0;o<t.length;o++)i=t[o].apply(n,a?[i]:[]);return a?i:n}}function x(e,t,r,a){if("function"!=typeof e&&(a||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(a?"":" or undefined"));return e}function m(e,t,r,a,n,i,s,c,p,h,b){function d(e){if(!b(e))throw new TypeError("Attempted to access private element on non-instance")}var u=[].concat(t[0]),v=t[3],m=!s,y=1===n,k=3===n,C=4===n,z=2===n;function W(t,r,a){return function(n,i){return r&&(i=n,n=e),a&&a(n),E[t].call(n,i)}}if(!m){var E={},M=[],T=k?"get":C||y?"set":"value";if(p?(h||y?E={get:(0,A.A)((function(){return v(this)}),a,"get"),set:function(e){t[4](this,e)}}:E[T]=v,h||(0,A.A)(E[T],a,z?"":T)):h||(E=Object.getOwnPropertyDescriptor(e,a)),!h&&!p){if((l=f[+c][a])&&7!=(l^n))throw new Error("Decorating two elements with the same name ("+E[T].name+") is not supported yet");f[+c][a]=n<3?1:n}}for(var S=e,D=u.length-1;D>=0;D-=r?2:1){var N=u[D],j=r?u[D-1]:void 0,R={},_={kind:["field","accessor","method","getter","setter","class"][n],name:a,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");x(t,"An initializer","be",!0),i.push(t)}.bind(null,R)};if(m)l=N.call(j,S,_),R.v=1,x(l,"class decorators","return")&&(S=l);else if(_.static=c,_.private=p,l=_.access={has:p?b.bind():function(e){return a in e}},C||(l.get=p?z?function(e){return d(e),E.value}:W("get",0,d):function(e){return e[a]}),z||k||(l.set=p?W("set",0,d):function(e,t){e[a]=t}),S=N.call(j,y?{get:E.get,set:E.set}:E[T],_),R.v=1,y){if("object"==typeof S&&S)(l=x(S.get,"accessor.get"))&&(E.get=l),(l=x(S.set,"accessor.set"))&&(E.set=l),(l=x(S.init,"accessor.init"))&&M.unshift(l);else if(void 0!==S)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(S,(h?"field":"method")+" decorators","return")&&(h?M.unshift(S):E[T]=S)}return n<2&&s.push(w(M,c,1),w(i,c,0)),h||m||(p?y?s.splice(-1,0,W("get",c),W("set",c)):s.push(z?E[T]:x.call.bind(E[T])):g(e,a,E)),S}function y(e){return g(e,d,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[d]),o=u(null==o?null:o),p=[],h=function(e){e&&p.push(w(e))},(b=function(t,a){for(var i=0;i<r.length;i++){var o=r[i],l=o[1],h=7&l;if((8&l)==t&&!h==a){var b=o[2],d=!!o[3],g=16&l;m(t?e:e.prototype,o,g,d?"#"+b:(0,z.A)(b),h,h<2?[]:t?c=c||[]:s=s||[],p,!!t,d,a,t&&d?function(t){return(0,W.A)(t)===e}:n)}}})(8,0),b(0,0),b(8,1),b(0,1),h(s),h(c),l=p,v||y(e),{e:l,get c(){var r=[];return v&&[y(e=m(e,[t],0,e.name,5,r)),w(r,1)]}}}(m,[B("data-view.cabinet-container",{styleTexts:[D.A,N.A]})],[[X({attribute:!1}),1,"type"],[X({attribute:!1}),1,"data"],[X(),1,"status"],[X(),1,"customTitle"],[Z({type:"container.click"}),1,"onHandleClick",e=>P(Q,e),(e,t)=>O(Q,e,t)],[Z({type:"container.dbclick"}),1,"onHandleDbClick",e=>P(V,e),(e,t)=>O(V,e,t)]],0,(e=>U.has((0,W.A)(e))),T.ReactNextElement)),a()},6837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h,w:()=>p});var a=r(9740),n=r(8769),i=r(9126),o=new Map,l=new i.A((e=>{e.forEach((e=>{var t,{target:r}=e;null===(t=o.get(r))||void 0===t||t.forEach((t=>t(e)))}))})),s=(e,t)=>{o.has(e)||(o.set(e,new Set),l.observe(e)),o.get(e).add(t)},c=(e,t)=>{o.has(e)&&(o.get(e).delete(t),0===o.get(e).size&&(l.unobserve(e),o.delete(e)))};function p(e){var{targetRef:t,onResize:r}=e||{},i=(0,n.useRef)(),o=null!=t?t:i,[l,p]=(0,n.useState)({clientWidth:0,clientHeight:0}),h=(0,n.useCallback)((e=>{var{target:t}=e,{clientWidth:a=0,clientHeight:n=0}=t;p((t=>t.clientWidth===a&&t.clientHeight===n?t:(null==r||r(e),{clientWidth:a,clientHeight:n})))}),[r]);return(0,n.useEffect)((()=>{if("object"!=typeof o||null===o||!(o.current instanceof Element))throw new Error("ResizeObserver must observe an Element");var e=o.current;return s(e,h),()=>{c(e,h)}}),[h,o]),[o,(0,a.A)({},l)]}function h(e){var t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current}},1053:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),i=r(935),o=r.n(i)()(n());o.push([e.id,'*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%;position:relative}.container{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column;cursor:pointer;overflow:hidden}.wrapper:after,\n.wrapper:before{content:"";position:absolute;left:50%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);transform:translateX(-50%)}.wrapper:before{width:calc(100% - 10px);height:100%;bottom:-14px;z-index:-1;opacity:0.6}.wrapper:after{width:calc(100% - 30px);height:100%;bottom:-24px;z-index:-10;opacity:0.4}.hostWrapper:before,\n.hostWrapper:after{border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostWrapper:not(:has(.item:hover)):hover:before,\n.hostWrapper.wrapper-active:before{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3}.k8sWrapper:after,\n.k8sWrapper:before{border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663380) 3 3}.hostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostContainer:not(:has(.item:hover)):hover,\n.hostContainer.container-active{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3;box-shadow:inset 0 0 30px 0 #45e4ff,inset 0 0 20px 0 #45e4ff}.hostWrapper.wrapper-faded:after,\n.hostWrapper.wrapper-faded:before,\n.k8sWrapper.wrapper-faded:after,\n.k8sWrapper.wrapper-faded:before{opacity:0.1}.k8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.k8sContainer:not(:has(.item:hover)):hover,\n.k8sContainer.container-active{box-shadow:inset 0 0 30px 0 #ff6633,inset 0 0 20px 0 #ff6633}.hostContainer.container-faded,\n.k8sContainer.container-faded{opacity:0.4}.content{flex:1;padding:20px 10px;width:100%;box-sizing:border-box;overflow:hidden;display:flex}.contentLayout{overflow:auto;height:100%}.itemContent{display:inline-block;vertical-align:middle}.item{min-width:56px;min-height:63px;max-width:118px;margin:auto}.footer{width:100%;height:57px;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.footerTitle{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.footer:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.hostContainer > .footer:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.k8sContainer > .footer:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}.hostContainer:not(:has(.item:hover)):hover > .footer:after,\n.hostContainer.container-active > .footer:after,\n.k8sContainer:not(:has(.item:hover)):hover > .footer:after,\n.k8sContainer.container-active > .footer:after{opacity:0.65}',""]);const l=o.toString()},9935:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),i=r(935),o=r.n(i)()(n());o.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const l=o.toString()},3373:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.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)a.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},4635:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(2016);function n(e,t){(0,a.A)(e,t),t.add(e)}}}]);
3
+ //# sourceMappingURL=cabinet-container.a0dbf743.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/cabinet-container.a0dbf743.js","mappings":";ipBASA,IAIEA,GAJI,cAAEC,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBAErCC,GAAcC,EAAAA,EAAAA,WAClB,0BACAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAC,QAAAC,EAAA,IAAAP,QAmBF,MAAAQ,UAIUC,EAAAA,iBAEVC,WAAAA,GAAA,SAAAC,YAAAC,EAAAA,EAAAA,GAA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EAAWxC,IAAIuC,EACjB","sources":["webpack:///./src/cabinet/cabinet-container/index.tsx","webpack:///./src/hooks/useResizeObserver/resizeObserverUtil.ts","webpack:///./src/hooks/useResizeObserver/index.ts","webpack:///./src/hooks/usePrevious/index.ts","webpack:///./src/cabinet/cabinet-container/cabinet-container.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/classnames/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from \"react\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { createDecorators, EventEmitter } from \"@next-core/element\";\nimport variablesText from \"../../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet-container.shadow.css\";\nimport classNames from \"classnames\";\nimport { CabinetNodeProps, CabinetNode } from \"../cabinet-node/index.js\";\nimport { useResizeObserver } from \"../../hooks/index.js\";\n\nconst { defineElement, property, event } = createDecorators();\nexport type ContainerType = \"host\" | \"k8s\" | \"k8s-blue\";\nconst WrappedNode = wrapBrick<CabinetNode, CabinetNodeProps>(\n \"data-view.cabinet-node\"\n);\nexport interface ClickEventDataType {\n type: \"node\" | \"container\";\n data: CabinetNodeProps | undefined;\n}\n\nexport interface CabinetContainerProps {\n data: CabinetNodeProps[];\n type?: ContainerType;\n customTitle?: string | undefined;\n status?: \"active\" | \"faded\";\n handleClick?: (params: ClickEventDataType) => void;\n handleDbClick?: (params: ClickEventDataType) => void;\n}\n\n/**\n * 大屏集群容器构件\n * @author astrid\n */\n@defineElement(\"data-view.cabinet-container\", {\n styleTexts: [variablesText, styleText],\n})\nclass CabinetContainer\n extends ReactNextElement\n implements CabinetContainerProps\n{\n /**\n * @kind ContainerType\n * @required true\n * @default host\n * @description 容器类型,host、k8s(主题橙色)、k8s-blue(蓝色主题)\n */\n @property({ attribute: false })\n accessor type: ContainerType = \"host\";\n\n /**\n * @kind CabinetNodeProps[]\n * @required true\n * @default -\n * @description 数据\n */\n @property({ attribute: false })\n accessor data: CabinetNodeProps[] = [];\n\n /**\n * @kind \"active\" | \"faded\"\n * @required false\n * @default\n * @description 当前状态,是否高亮或者淡化\n */\n @property()\n accessor status: \"active\" | \"faded\";\n\n /**\n * @kind string|undefined\n * @required false\n * @default -\n * @description 容器标题\n */\n @property()\n accessor customTitle: string | undefined;\n\n /**\n * @detail\n * @description 节点或者container 点击事件\n */\n @event({ type: \"container.click\" })\n accessor #onHandleClick!: EventEmitter<ClickEventDataType>;\n\n /**\n * @detail\n * @description 节点或者container 双击击事件\n */\n @event({ type: \"container.dbclick\" })\n accessor #onHandleDbClick!: EventEmitter<ClickEventDataType>;\n\n handleClick = (params: ClickEventDataType) => {\n this.#onHandleClick.emit(params);\n };\n handleDbClick = (params: ClickEventDataType) => {\n this.#onHandleDbClick.emit(params);\n };\n\n render(): React.ReactNode {\n return (\n <CabinetContainerComponent\n type={this.type}\n data={this.data}\n status={this.status}\n customTitle={this.customTitle}\n handleClick={this.handleClick}\n handleDbClick={this.handleDbClick}\n />\n );\n }\n}\n\nexport function CabinetContainerComponent(\n props: CabinetContainerProps\n): React.ReactElement {\n const { type, data, status, customTitle, handleClick, handleDbClick } = props;\n const isDbClick = useRef<boolean>(false);\n const timerRef = useRef<number>();\n\n const [containerRef, { clientWidth, clientHeight }] =\n useResizeObserver<HTMLDivElement>();\n const binarySearch = useCallback(\n (\n maxSizeCol: number,\n minSizeCol: number,\n maxSizeRow: number,\n minSizeRow: number\n ): { col: number; row: number } => {\n // 利用二分法,去找到一个合适大小;\n const maxRow = Math.max(minSizeRow, maxSizeRow), // 2\n minRow = Math.min(minSizeRow, maxSizeRow), // 1\n minCol = Math.min(minSizeCol, maxSizeCol),\n maxCol = Math.max(minSizeCol, maxSizeCol);\n const centerCol = Math.ceil((maxSizeCol + minSizeCol) / 2); // 希望col多一些\n const centerRow = Math.ceil((maxSizeRow + minSizeRow) / 2);\n const needRow = Math.ceil(data.length / centerCol);\n if (centerCol <= 1) {\n return {\n col: 1,\n row: data.length,\n };\n }\n if (\n needRow === centerRow ||\n minCol === maxCol ||\n minCol === centerCol ||\n maxCol === centerCol\n ) {\n return {\n col: centerCol,\n row: needRow,\n };\n }\n if (needRow > centerRow) {\n // 那么col要放大,row减少\n return binarySearch(centerCol, maxCol, needRow, minRow);\n }\n if (needRow < centerRow) {\n // 那么col要缩小,row增加\n return binarySearch(minCol, centerCol, maxRow, needRow);\n }\n },\n [data.length]\n );\n const layoutWidth = useMemo(() => {\n if (!data.length) {\n return;\n }\n\n //数据总量: A, 整个屏幕最大尺寸可以放 B, 整个屏幕最小尺寸可以放C,\n // B>=A,用 最大尺寸\n // C>=A: 用最小尺寸\n // B< A <C: 反推尺寸,\n const maxWidth = 118,\n minWidth = 56,\n maxHeight = 105,\n minHeight = 63;\n const realWidth = clientWidth - 27;\n const realHeight = clientHeight - 84;\n if (realWidth <= 0 || realHeight <= 0) {\n return;\n }\n const maxSizeCol = Math.floor(realWidth / maxWidth),\n maxSizeRow = Math.floor(realHeight / maxHeight),\n minSizeCol = Math.floor(realWidth / minWidth),\n minSizeRow = Math.floor(realHeight / minHeight);\n const maxSizeNum = maxSizeCol * maxSizeRow,\n minSizeNum = minSizeCol * minSizeRow;\n const allNum = data.length;\n if (allNum <= maxSizeNum) {\n return {\n width: Math.floor(realWidth / maxSizeCol),\n itemWidth: maxWidth,\n };\n } else if (allNum >= minSizeNum) {\n return {\n width: Math.floor(realWidth / minSizeCol),\n itemWidth: minWidth,\n };\n } else {\n // 在区间内, 希望撑满整个屏幕, 尺寸肯定在最大和最小之间\n const { col } = binarySearch(\n maxSizeCol,\n minSizeCol,\n maxSizeRow,\n minSizeRow\n );\n return {\n width: Math.floor(realWidth / col),\n itemWidth: Math.max(realWidth / col - 10, minWidth),\n };\n }\n }, [data.length, clientWidth, clientHeight, binarySearch]);\n\n const handleOnClick = (\n e: React.MouseEvent<HTMLDivElement>,\n data: CabinetNodeProps | undefined,\n type: \"node\" | \"container\"\n ) => {\n e.stopPropagation();\n window.clearTimeout(timerRef.current);\n isDbClick.current = false;\n timerRef.current = window.setTimeout(function () {\n if (!isDbClick.current) {\n handleClick?.({\n data,\n type,\n });\n }\n }, 200);\n };\n const handleOnDBClick = (\n e: React.MouseEvent<HTMLDivElement>,\n data: CabinetNodeProps | undefined,\n type: \"node\" | \"container\"\n ) => {\n window.clearTimeout(timerRef.current);\n isDbClick.current = true;\n e.stopPropagation();\n handleDbClick?.({\n data,\n type,\n });\n };\n\n return (\n <div\n className={classNames(\n \"wrapper\",\n {\n hostWrapper: type === \"host\" || type === \"k8s-blue\",\n k8sWrapper: type === \"k8s\",\n },\n status && `wrapper-${status}`\n )}\n ref={containerRef}\n onClick={(e) => handleOnClick(e, undefined, \"container\")}\n onDoubleClick={(e) => handleOnDBClick(e, undefined, \"container\")}\n >\n <div\n className={classNames(\n \"container\",\n {\n hostContainer: type === \"host\" || type === \"k8s-blue\",\n k8sContainer: type === \"k8s\",\n },\n status && `container-${status}`\n )}\n >\n <div className=\"content\">\n <div className=\"contentLayout\">\n {data.map((item, index) => (\n <div\n key={index}\n className=\"itemContent\"\n style={{ width: layoutWidth?.width }}\n >\n <div\n className=\"item\"\n style={{ width: layoutWidth?.itemWidth }}\n onClick={(e) => handleOnClick(e, item, \"node\")}\n onDoubleClick={(e) => handleOnDBClick(e, item, \"node\")}\n >\n <WrappedNode\n type={item.type}\n nodeTitle={item.nodeTitle}\n status={item.status}\n isAlert={item.isAlert}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n {customTitle && (\n <div className=\"footer\">\n <div className=\"footerTitle\">{customTitle}</div>\n </div>\n )}\n </div>\n </div>\n );\n}\n\nexport { CabinetContainer };\n","import ResizeObserver from \"resize-observer-polyfill\";\n\nexport type ResizeCallback = (entry: ResizeObserverEntry) => void;\n\nconst elementListeners = new Map<Element, Set<ResizeCallback>>();\n\nexport const elementListeners_only_for_test =\n process.env.NODE_ENV === \"test\"\n ? elementListeners\n : /* istanbul ignore next */ null;\n\nconst resizeObserverCallback = (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n const { target } = entry;\n elementListeners.get(target)?.forEach((callback) => callback(entry));\n });\n};\n\nconst resizeObserver: ResizeObserver = new (ResizeObserver as any)(resizeObserverCallback);\n\nexport const observe = (element: Element, callback: ResizeCallback): void => {\n if (!elementListeners.has(element)) {\n elementListeners.set(element, new Set());\n resizeObserver.observe(element);\n }\n\n elementListeners.get(element).add(callback);\n};\n\nexport const unobserve = (element: Element, callback: ResizeCallback): void => {\n if (elementListeners.has(element)) {\n elementListeners.get(element).delete(callback);\n\n if (elementListeners.get(element).size === 0) {\n resizeObserver.unobserve(element);\n elementListeners.delete(element);\n }\n }\n};\n","import {\n useState,\n useCallback,\n useRef,\n type RefObject,\n useEffect,\n} from \"react\";\nimport { observe, unobserve } from \"./resizeObserverUtil.js\";\n\ninterface ElementSize {\n clientWidth: number;\n clientHeight: number;\n}\n\nexport interface ResizeObserveProps<T extends Element = Element> {\n targetRef?: RefObject<T>;\n onResize?: (size: ResizeObserverEntry) => void;\n}\n\nexport function useResizeObserver<T extends Element = Element>(\n props?: ResizeObserveProps<T>\n): [RefObject<T>, ElementSize] {\n const {\n targetRef,\n onResize,\n } = props || {};\n\n const localRef = useRef<T>();\n const ref = targetRef ?? localRef;\n const [size, setSize] = useState<ElementSize>({ clientWidth: 0, clientHeight: 0 });\n\n const handleResize = useCallback(\n (entry: ResizeObserverEntry) => {\n const { target } = entry;\n const { clientWidth = 0, clientHeight = 0 } = target;\n\n setSize((prev) => {\n // skip if same size\n if (prev.clientWidth === clientWidth && prev.clientHeight === clientHeight) {\n return prev;\n }\n\n onResize?.(entry);\n\n return { clientWidth, clientHeight };\n });\n },\n [onResize]\n );\n\n useEffect(() => {\n if (\n typeof ref !== \"object\" ||\n ref === null ||\n !(ref.current instanceof Element)\n ) {\n throw new Error(\"ResizeObserver must observe an Element\");\n }\n\n const element = ref.current;\n observe(element, handleResize);\n\n return () => {\n unobserve(element, handleResize);\n };\n }, [handleResize, ref]);\n\n return [ref, { ...size }];\n}\n","import {useRef, useEffect} from 'react';\nexport function usePrevious<T>(data?: T):T|undefined{\n const ref = useRef<T>();\n useEffect(()=>{\n ref.current = data\n })\n return ref.current;\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%;position:relative}.container{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column;cursor:pointer;overflow:hidden}.wrapper:after,\n.wrapper:before{content:\"\";position:absolute;left:50%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);transform:translateX(-50%)}.wrapper:before{width:calc(100% - 10px);height:100%;bottom:-14px;z-index:-1;opacity:0.6}.wrapper:after{width:calc(100% - 30px);height:100%;bottom:-24px;z-index:-10;opacity:0.4}.hostWrapper:before,\n.hostWrapper:after{border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostWrapper:not(:has(.item:hover)):hover:before,\n.hostWrapper.wrapper-active:before{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3}.k8sWrapper:after,\n.k8sWrapper:before{border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663380) 3 3}.hostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostContainer:not(:has(.item:hover)):hover,\n.hostContainer.container-active{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3;box-shadow:inset 0 0 30px 0 #45e4ff,inset 0 0 20px 0 #45e4ff}.hostWrapper.wrapper-faded:after,\n.hostWrapper.wrapper-faded:before,\n.k8sWrapper.wrapper-faded:after,\n.k8sWrapper.wrapper-faded:before{opacity:0.1}.k8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.k8sContainer:not(:has(.item:hover)):hover,\n.k8sContainer.container-active{box-shadow:inset 0 0 30px 0 #ff6633,inset 0 0 20px 0 #ff6633}.hostContainer.container-faded,\n.k8sContainer.container-faded{opacity:0.4}.content{flex:1;padding:20px 10px;width:100%;box-sizing:border-box;overflow:hidden;display:flex}.contentLayout{overflow:auto;height:100%}.itemContent{display:inline-block;vertical-align:middle}.item{min-width:56px;min-height:63px;max-width:118px;margin:auto}.footer{width:100%;height:57px;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.footerTitle{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.footer:after{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.hostContainer > .footer:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.k8sContainer > .footer:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}.hostContainer:not(:has(.item:hover)):hover > .footer:after,\n.hostContainer.container-active > .footer:after,\n.k8sContainer:not(:has(.item:hover)):hover > .footer:after,\n.k8sContainer.container-active > .footer:after{opacity:0.65}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}"],"names":["_CabinetContainer","defineElement","property","event","createDecorators","WrappedNode","wrapBrick","_A","WeakMap","_B","_C","_D","_E","_CabinetContainer_brand","WeakSet","_F","CabinetContainer","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_type","_init_extra_type","_init_data","_init_extra_data","_init_status","_init_extra_status","_init_customTitle","_init_extra_customTitle","_init_onHandleClick","_init_extra_onHandleClick","_init_onHandleDbClick","_defineProperty","_init_extra_onHandleDbClick","params","_classPrivateGetter","this","_get_onHandleClick","emit","_get_onHandleDbClick","type","_classPrivateFieldGet","v","_classPrivateFieldSet","data","status","customTitle","render","React","CabinetContainerComponent","handleClick","handleDbClick","props","isDbClick","useRef","timerRef","containerRef","clientWidth","clientHeight","useResizeObserver","binarySearch","useCallback","maxSizeCol","minSizeCol","maxSizeRow","minSizeRow","maxRow","Math","max","minRow","min","minCol","maxCol","centerCol","ceil","centerRow","needRow","length","col","row","layoutWidth","useMemo","realWidth","realHeight","floor","maxSizeNum","minSizeNum","allNum","width","itemWidth","handleOnClick","e","stopPropagation","window","clearTimeout","current","setTimeout","handleOnDBClick","className","classNames","hostWrapper","k8sWrapper","concat","ref","onClick","undefined","onDoubleClick","hostContainer","k8sContainer","map","item","index","key","style","nodeTitle","isAlert","_CabinetContainer2","_set_onHandleClick","_set_onHandleDbClick","c","_initClass","_applyDecs","styleTexts","variablesText","styleText","attribute","o","_","has","_checkInRHS","elementListeners","Map","resizeObserver","ResizeObserver","entries","forEach","entry","_elementListeners$get","target","get","callback","observe","element","set","Set","add","unobserve","delete","size","targetRef","onResize","localRef","setSize","useState","handleResize","prev","useEffect","Element","Error","_objectSpread","usePrevious","___CSS_LOADER_EXPORT___","push","module","id","toString","hasOwn","hasOwnProperty","classes","i","arg","appendClass","parseValue","Array","isArray","apply","Object","prototype","includes","call","value","newClass","exports","default","obj","privateSet"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[3446,2052],{9391:(e,t,a)=>{a.r(t),a.d(t,{CabinetGraph:()=>O});var r,n,i,o,l,c,s,p,b,u,h,g,d,f,v,y,m,w,x,k,A=a(4635),C=a(918),z=a(1369),E=a(8449),S=a(6902),j=a(8769),B=a.n(j),T=a(9929),M=a(9938),K=a(9935),N=a(5374);function W(e,t,a){return a(D(e,t))}function P(e,t,a){return e.set(D(e,t),a),a}function _(e,t){return e.get(D(e,t))}function D(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var O,I=(0,M.wrapBrick)("data-view.cabinet-app-layer"),R=(0,M.wrapBrick)("data-view.cabinet-button"),G=(0,M.wrapBrick)("data-view.cabinet-container"),{defineElement:X,property:q,event:F}=(0,T.createDecorators)(),H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,U=new WeakSet,V=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,ee=new WeakMap;class te extends M.ReactNextElement{constructor(){super(...arguments),(0,A.A)(this,U),(0,C.A)(this,H,n(this)),(0,C.A)(this,J,(i(this),o(this))),(0,C.A)(this,L,(l(this),c(this))),(0,C.A)(this,Q,(s(this),p(this))),(0,C.A)(this,V,(h(this),g(this))),(0,C.A)(this,Y,(v(this),y(this))),(0,C.A)(this,Z,(x(this),()=>{W(U,this,b).emit()})),(0,C.A)(this,$,((e,t,a)=>{this.activeKey=e,e&&W(U,this,m).emit({type:t,data:a})})),(0,C.A)(this,ee,((e,t,a)=>{this.activeKey=e,e&&W(U,this,d).emit({type:t,data:a})}))}get dataSource(){return _(H,this)}set dataSource(e){P(H,this,e)}get activeKey(){return _(J,this)}set activeKey(e){P(J,this,e)}get hiddenCloseBtn(){return _(L,this)}set hiddenCloseBtn(e){P(L,this,e)}render(){return B().createElement(ae,{activeKey:this.activeKey,dataSource:this.dataSource,onCloseBtnClick:_(Z,this),onActiveKeyChange:_(ee,this),handleDbClick:_($,this),hiddenCloseBtn:this.hiddenCloseBtn})}}function ae(e){var{dataSource:t,activeKey:a,onCloseBtnClick:r,onActiveKeyChange:n,handleDbClick:i,hiddenCloseBtn:o}=e,l=(0,j.useMemo)((()=>[].concat(a)),[a]),c=(0,j.useMemo)((()=>{var e=[];return t.clusters.map((t=>{l.includes(t.key)&&e.push(t.key),t.nodes.map((t=>{l.includes(t.key)&&e.push(t.key)}))})),e}),[t,l]);return B().createElement("div",{className:"wrapper",onClick:()=>{n(null)}},B().createElement("div",{className:"container"},B().createElement(I,{className:"app-layer",appTitle:t.appName,onClick:e=>{e.stopPropagation(),n(t.key,"layer")},status:l.includes(t.key)?"active":void 0}),B().createElement("div",{className:"cluster-container",style:{gridTemplateColumns:"repeat(".concat(t.clusters.length,", 1fr)")}},t.clusters.map((e=>{var t=c.includes(e.key);return B().createElement(G,{key:e.key,type:e.type,className:"cluster-content",customTitle:e.clusterName,data:e.nodes.map((e=>{var a=c.includes(e.key);return{nodeTitle:e.nodeTitle,type:e.type,key:e.key,isAlert:e.isAlert,status:a||t?t?void 0:"active":c.length?"faded":void 0}})),handleClick:t=>{var{type:a,data:r}=t;switch(a){case"container":n(e.key,"cluster",e);break;case"node":n(r.key,"node",r)}},status:e.nodes.some((e=>c.includes(e.key)))||t?t?"active":void 0:c.length?"faded":void 0,handleDbClick:t=>{var{type:a,data:r}=t;switch(a){case"container":i(e.key,"cluster",e);break;case"node":i(r.key,"node",r)}}})}))),!o&&B().createElement(R,{className:"close-button",onClick:e=>{e.stopPropagation(),null==r||r()}})))}k=te,({e:[n,i,o,l,c,s,p,b,u,h,g,d,f,v,y,m,w,x],c:[O,r]}=function(e,t,a,r,n,i){var o,l,c,s,p,b,u,h=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,d=Object.create,f=[d(null),d(null)],v=t.length;function y(t,a,r){return function(n,i){a&&(i=n,n=e);for(var o=0;o<t.length;o++)i=t[o].apply(n,r?[i]:[]);return r?i:n}}function m(e,t,a,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(a||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,a,r,n,i,c,s,p,b,u){function h(e){if(!u(e))throw new TypeError("Attempted to access private element on non-instance")}var d=[].concat(t[0]),v=t[3],w=!c,x=1===n,k=3===n,A=4===n,C=2===n;function z(t,a,r){return function(n,i){return a&&(i=n,n=e),r&&r(n),S[t].call(n,i)}}if(!w){var S={},j=[],B=k?"get":A||x?"set":"value";if(p?(b||x?S={get:(0,E.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:S[B]=v,b||(0,E.A)(S[B],r,C?"":B)):b||(S=Object.getOwnPropertyDescriptor(e,r)),!b&&!p){if((l=f[+s][r])&&7!=(l^n))throw new Error("Decorating two elements with the same name ("+S[B].name+") is not supported yet");f[+s][r]=n<3?1:n}}for(var T=e,M=d.length-1;M>=0;M-=a?2:1){var K=d[M],N=a?d[M-1]:void 0,W={},P={kind:["field","accessor","method","getter","setter","class"][n],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");m(t,"An initializer","be",!0),i.push(t)}.bind(null,W)};if(w)l=K.call(N,T,P),W.v=1,m(l,"class decorators","return")&&(T=l);else if(P.static=s,P.private=p,l=P.access={has:p?u.bind():function(e){return r in e}},A||(l.get=p?C?function(e){return h(e),S.value}:z("get",0,h):function(e){return e[r]}),C||k||(l.set=p?z("set",0,h):function(e,t){e[r]=t}),T=K.call(N,x?{get:S.get,set:S.set}:S[B],P),W.v=1,x){if("object"==typeof T&&T)(l=m(T.get,"accessor.get"))&&(S.get=l),(l=m(T.set,"accessor.set"))&&(S.set=l),(l=m(T.init,"accessor.init"))&&j.unshift(l);else if(void 0!==T)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else m(T,(b?"field":"method")+" decorators","return")&&(b?j.unshift(T):S[B]=T)}return n<2&&c.push(y(j,s,1),y(i,s,0)),b||w||(p?x?c.splice(-1,0,z("get",s),z("set",s)):c.push(C?S[B]:m.call.bind(S[B])):g(e,r,S)),T}function x(e){return g(e,h,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[h]),o=d(null==o?null:o),p=[],b=function(e){e&&p.push(y(e))},(u=function(t,r){for(var i=0;i<a.length;i++){var o=a[i],l=o[1],b=7&l;if((8&l)==t&&!b==r){var u=o[2],h=!!o[3],g=16&l;w(t?e:e.prototype,o,g,h?"#"+u:(0,z.A)(u),b,b<2?[]:t?s=s||[]:c=c||[],p,!!t,h,r,t&&h?function(t){return(0,S.A)(t)===e}:n)}}})(8,0),u(0,0),u(8,1),u(0,1),b(c),b(s),l=p,v||x(e),{e:l,get c(){var a=[];return v&&[x(e=w(e,[t],0,e.name,5,a)),y(a,1)]}}}(k,[X("data-view.cabinet-graph",{styleTexts:[K.A,N.A]})],[[q({attribute:!1}),1,"dataSource"],[q({attribute:!1}),1,"activeKey"],[q({type:Boolean}),1,"hiddenCloseBtn"],[F({type:"close.button.click"}),1,"closeBtnClickEvent",e=>_(Q,e),(e,t)=>P(Q,e,t)],[F({type:"cabinet.click"}),1,"cabinetClickEvent",e=>_(V,e),(e,t)=>P(V,e,t)],[F({type:"cabinet.dbclick"}),1,"cabinetDbClickEvent",e=>_(Y,e),(e,t)=>P(Y,e,t)]],0,(e=>ee.has((0,S.A)(e))),M.ReactNextElement)),r()},5374:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(6758),n=a.n(r),i=a(935),o=a.n(i)()(n());o.push([e.id,":host{display:block;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{transform-style:preserve-3d;perspective-origin:50% 50%;perspective:4000px;height:100%}.container{display:flex;position:relative;height:100%;flex-direction:column;transform-origin:50% 50%;transform:rotateX(45deg)}.app-layer{width:40%;margin-bottom:28px;align-self:center}.cluster-container{flex:1;display:grid;grid-gap:17px;height:calc(100% - 60px)}.cluster-content{display:block;height:100%;overflow:hidden}.close-button{position:absolute;top:0;right:0}",""]);const l=o.toString()},9935:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(6758),n=a.n(r),i=a(935),o=a.n(i)()(n());o.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const l=o.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a="",r=void 0!==t[5];return t[4]&&(a+="@supports (".concat(t[4],") {")),t[2]&&(a+="@media ".concat(t[2]," {")),r&&(a+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),a+=e(t),r&&(a+="}"),t[2]&&(a+="}"),t[4]&&(a+="}"),a})).join("")},t.i=function(e,a,r,n,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(o[c]=!0)}for(var s=0;s<e.length;s++){var p=[].concat(e[s]);r&&o[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),a&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=a):p[2]=a),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),t.push(p))}},t}},6758:e=>{e.exports=function(e){return e[1]}},6902:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(7545);function n(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,a)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}a.d(t,{A:()=>r})},918:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(2016);function n(e,t,a){(0,r.A)(e,t),t.set(e,a)}},4635:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(2016);function n(e,t){(0,r.A)(e,t),t.add(e)}},8449:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(7545);function n(e,t,a){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:a?a+" "+t:t})}catch(e){}return e}},1369:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(7545);function n(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:String(t)}},7545:(e,t,a)=>{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)}a.d(t,{A:()=>r})}}]);
2
+ //# sourceMappingURL=cabinet-graph.fbfa4fe2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/cabinet-graph.fbfa4fe2.js","mappings":"+kBAkBA,IAW8DA,EAXxDC,GAAyBC,EAAAA,EAAAA,WAC7B,+BAEIC,GAAuBD,EAAAA,EAAAA,WAC3B,4BAEIE,GAA0BF,EAAAA,EAAAA,WAG9B,gCAEI,cAAEG,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBAAmBC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAC,QAAAC,EAAA,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AM,IAAIF,UAAU,iEAExB,C,+DCHe,SAAS1G,EAA2B4G,EAAKE,EAAYC,IAClE,OAA0BH,EAAKE,GAC/BA,EAAWE,IAAIJ,EAAKG,EACtB,C,gDCHe,SAAShH,EAA4B6G,EAAKK,IACvD,OAA0BL,EAAKK,GAC/BA,EAAWC,IAAIN,EACjB,C,gDCHe,SAASO,EAAgB/D,EAAGgE,EAAGC,GAC5C,WAAY,OAAQD,KAAOA,GAAKA,EAAIA,EAAEE,aAAe,IAAMF,EAAI,IAAM,IACrE,IACEX,OAAOc,eAAenE,EAAG,OAAQ,CAC/BoE,cAAc,EACdT,MAAOM,EAAIA,EAAI,IAAMD,EAAIA,GAE7B,CAAE,MAAOhE,GAAI,CACb,OAAOA,CACT,C,gDCRe,SAASqE,EAAcL,GACpC,IAAIpB,ECFS,SAAqBoB,EAAGM,GACrC,GAAI,WAAY,OAAQN,KAAOA,EAAG,OAAOA,EACzC,IAAIhE,EAAIgE,EAAEO,OAAOC,aACjB,QAAI,IAAWxE,EAAG,CAChB,IAAI4C,EAAI5C,EAAEyE,KAAKT,EAAGM,UAClB,GAAI,WAAY,OAAQ1B,GAAI,OAAOA,EACnC,MAAM,IAAIU,UAAU,+CACtB,CACA,OAAyBoB,OAAiBV,EAC5C,CDPUQ,CAAYR,GACpB,MAAO,WAAY,OAAQpB,GAAKA,EAAI8B,OAAO9B,EAC7C,C,iBELe,SAAS+B,EAAQ9C,GAG9B,OAAO8C,EAAU,mBAAqBJ,QAAU,iBAAmBA,OAAOK,SAAW,SAAU/C,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqB0C,QAAU1C,EAAEpF,cAAgB8H,QAAU1C,IAAM0C,OAAOM,UAAY,gBAAkBhD,CACpH,EAAG8C,EAAQ9C,EACb,C","sources":["webpack:///./src/cabinet/index.tsx","webpack:///./src/cabinet/cabinet.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.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"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { EventEmitter, createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport variablesStyleText from \"../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet.shadow.css\";\nimport type {\n CabinetAppLayer,\n CabinetAppLayerProps,\n} from \"./cabinet-app-layer/index.jsx\";\nimport type {\n CabinetButton,\n CabinetButtonProps,\n} from \"./cabinet-button/index.jsx\";\nimport type {\n CabinetContainer,\n CabinetContainerProps,\n} from \"./cabinet-container/index.jsx\";\n\nconst WrappedCabinetAppLayer = wrapBrick<CabinetAppLayer, CabinetAppLayerProps>(\n \"data-view.cabinet-app-layer\"\n);\nconst WrappedCabinetButton = wrapBrick<CabinetButton, CabinetButtonProps>(\n \"data-view.cabinet-button\"\n);\nconst WrappedCabinetContainer = wrapBrick<\n CabinetContainer,\n CabinetContainerProps\n>(\"data-view.cabinet-container\");\n\nconst { defineElement, property, event } = createDecorators();\n\ninterface Node {\n nodeTitle: string;\n key: string;\n type: \"container-group\" | \"physical-machine\" | \"virtual-machine\";\n isAlert?: boolean;\n}\n\ninterface Clusters {\n clusterName: string;\n key: string;\n type: \"host\" | \"k8s\" | \"k8s-blue\";\n nodes: Node[];\n}\n\nexport interface AppData {\n appName: string;\n key: string;\n clusters: Clusters[];\n}\ntype ChangeType = \"node\" | \"cluster\" | \"layer\";\n\nexport interface CabinetGraphProps {\n dataSource: AppData;\n activeKey?: string | string[];\n hiddenCloseBtn?: boolean;\n onCloseBtnClick?: () => void;\n onActiveKeyChange?: (\n key: string,\n type?: ChangeType,\n data?: Record<string, any>\n ) => void;\n handleDbClick?: (\n key: string,\n type?: ChangeType,\n data?: Record<string, any>\n ) => void;\n}\n\n/**\n * cabinet 部署架构拓扑\n * @author nlicroshan\n * @category big-screen-content\n */\n@defineElement(\"data-view.cabinet-graph\", {\n styleTexts: [variablesStyleText, styleText],\n})\nclass CabinetGraph extends ReactNextElement implements CabinetGraphProps {\n /**\n * @kind AppData\n * @required true\n * @default\n * @description 数据源\n */\n @property({\n attribute: false,\n })\n accessor dataSource: AppData;\n\n /**\n * @kind string |string[]\n * @required false\n * @default\n * @description 选中项, 支持数组\n */\n @property({ attribute: false })\n accessor activeKey: string | string[];\n\n /**\n * @kind boolean\n * @required false\n * @default true\n * @description 取消按钮是否需要展示\n */\n @property({ type: Boolean })\n accessor hiddenCloseBtn: boolean;\n\n /**\n * @detail\n * @description 关闭按钮点击事件\n */\n @event({ type: \"close.button.click\" })\n accessor #closeBtnClickEvent!: EventEmitter<void>;\n\n /**\n * @detail\n * @description 节点或者外层的点击的事件\n */\n @event({ type: \"cabinet.click\" })\n accessor #cabinetClickEvent!: EventEmitter<{\n type: ChangeType;\n data: Record<string, any>;\n }>;\n\n /**\n * @detail\n * @description 节点或者外层的双击的事件,目前不支持应用层\n */\n @event({ type: \"cabinet.dbclick\" })\n accessor #cabinetDbClickEvent!: EventEmitter<{\n type: ChangeType;\n data: Record<string, any>;\n }>;\n\n #handleCloseBtnClick = (): void => {\n this.#closeBtnClickEvent.emit();\n };\n #handleDbClick = (\n newKey: string,\n type: ChangeType,\n data?: Record<string, any>\n ): void => {\n this.activeKey = newKey;\n if (newKey) {\n this.#cabinetDbClickEvent.emit({\n type,\n data,\n });\n }\n };\n\n #handleActiveKeyChange = (\n newKey: string,\n type: ChangeType,\n data?: Record<string, any>\n ) => {\n this.activeKey = newKey;\n if (newKey) {\n this.#cabinetClickEvent.emit({\n type,\n data,\n });\n }\n };\n\n render() {\n return (\n <CabinetGraphElement\n activeKey={this.activeKey}\n dataSource={this.dataSource}\n onCloseBtnClick={this.#handleCloseBtnClick}\n onActiveKeyChange={this.#handleActiveKeyChange}\n handleDbClick={this.#handleDbClick}\n hiddenCloseBtn={this.hiddenCloseBtn}\n />\n );\n }\n}\n\nfunction CabinetGraphElement(props: CabinetGraphProps): React.ReactElement {\n const {\n dataSource,\n activeKey,\n onCloseBtnClick,\n onActiveKeyChange,\n handleDbClick,\n hiddenCloseBtn,\n } = props;\n const activeKeys = useMemo(() => {\n return [].concat(activeKey);\n }, [activeKey]);\n //过滤 activeKey 有效数据 & 已经去除layer层的高亮数据,由于layer 高亮,所有都需要展示\n const filterKeys = useMemo(() => {\n const keys: string[] = [];\n dataSource.clusters.map((clu) => {\n if (activeKeys.includes(clu.key)) {\n keys.push(clu.key);\n }\n clu.nodes.map((node) => {\n if (activeKeys.includes(node.key)) {\n keys.push(node.key);\n }\n });\n });\n return keys;\n }, [dataSource, activeKeys]);\n\n return (\n <div\n className=\"wrapper\"\n onClick={() => {\n onActiveKeyChange(null);\n }}\n >\n <div className=\"container\">\n <WrappedCabinetAppLayer\n className=\"app-layer\"\n appTitle={dataSource.appName}\n onClick={(e) => {\n e.stopPropagation();\n onActiveKeyChange(dataSource.key, \"layer\");\n }}\n status={activeKeys.includes(dataSource.key) ? \"active\" : undefined}\n />\n <div\n className=\"cluster-container\"\n style={{\n gridTemplateColumns: `repeat(${dataSource.clusters.length}, 1fr)`,\n }}\n >\n {dataSource.clusters.map((clu) => {\n const includeClu = filterKeys.includes(clu.key);\n return (\n <WrappedCabinetContainer\n key={clu.key}\n type={clu.type}\n className=\"cluster-content\"\n customTitle={clu.clusterName}\n data={clu.nodes.map((node) => {\n const includeNode = filterKeys.includes(node.key);\n return {\n nodeTitle: node.nodeTitle,\n type: node.type,\n key: node.key,\n isAlert: node.isAlert,\n status:\n includeNode || includeClu\n ? includeClu\n ? undefined\n : \"active\"\n : filterKeys.length\n ? \"faded\"\n : undefined,\n };\n })}\n handleClick={({ type, data }) => {\n switch (type) {\n case \"container\": {\n onActiveKeyChange(clu.key, \"cluster\", clu);\n break;\n }\n case \"node\": {\n onActiveKeyChange((data as any).key, \"node\", data);\n break;\n }\n }\n }}\n status={(() => {\n const includeNode = clu.nodes.some((node) =>\n filterKeys.includes(node.key)\n );\n return includeNode || includeClu\n ? includeClu\n ? \"active\"\n : undefined\n : filterKeys.length\n ? \"faded\"\n : undefined;\n })()}\n handleDbClick={({ type, data }) => {\n switch (type) {\n case \"container\": {\n handleDbClick(clu.key, \"cluster\", clu);\n break;\n }\n case \"node\": {\n handleDbClick((data as any).key, \"node\", data);\n break;\n }\n }\n }}\n />\n );\n })}\n </div>\n {!hiddenCloseBtn && (\n <WrappedCabinetButton\n className=\"close-button\"\n onClick={(e) => {\n e.stopPropagation();\n onCloseBtnClick?.();\n }}\n />\n )}\n </div>\n </div>\n );\n}\n\nexport { CabinetGraph };\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{transform-style:preserve-3d;perspective-origin:50% 50%;perspective:4000px;height:100%}.container{display:flex;position:relative;height:100%;flex-direction:column;transform-origin:50% 50%;transform:rotateX(45deg)}.app-layer{width:40%;margin-bottom:28px;align-self:center}.cluster-container{flex:1;display:grid;grid-gap:17px;height:calc(100% - 60px)}.cluster-content{display:block;height:100%;overflow:hidden}.close-button{position:absolute;top:0;right:0}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\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 checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\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 : String(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}"],"names":["_CabinetGraph","WrappedCabinetAppLayer","wrapBrick","WrappedCabinetButton","WrappedCabinetContainer","defineElement","property","event","createDecorators","_A","WeakMap","_B","_C","_D","_CabinetGraph_brand","WeakSet","_E","_F","_handleCloseBtnClick","_handleDbClick","_handleActiveKeyChange","CabinetGraph","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_dataSource","_init_extra_dataSource","_init_activeKey","_init_extra_activeKey","_init_hiddenCloseBtn","_init_extra_hiddenCloseBtn","_init_closeBtnClickEvent","_init_extra_closeBtnClickEvent","_init_cabinetClickEvent","_init_extra_cabinetClickEvent","_init_cabinetDbClickEvent","_init_extra_cabinetDbClickEvent","_classPrivateGetter","this","_get_closeBtnClickEvent","emit","newKey","type","data","activeKey","_get_cabinetDbClickEvent","_get_cabinetClickEvent","dataSource","_classPrivateFieldGet","v","_classPrivateFieldSet","hiddenCloseBtn","render","React","CabinetGraphElement","onCloseBtnClick","onActiveKeyChange","handleDbClick","props","activeKeys","useMemo","concat","filterKeys","keys","clusters","map","clu","includes","key","push","nodes","node","className","onClick","appTitle","appName","e","stopPropagation","status","undefined","style","gridTemplateColumns","length","includeClu","customTitle","clusterName","includeNode","nodeTitle","isAlert","handleClick","_ref","some","_ref2","_CabinetGraph2","_set_closeBtnClickEvent","_set_cabinetClickEvent","_set_cabinetDbClickEvent","c","_initClass","_applyDecs","styleTexts","variablesStyleText","styleText","attribute","Boolean","o","_","has","_checkInRHS","___CSS_LOADER_EXPORT___","module","id","toString","exports","cssWithMappingToString","list","item","content","needLayer","join","i","modules","media","dedupe","supports","layer","alreadyImportedModules","k","_k","Object","TypeError","_checkPrivateRedeclaration","obj","privateCollection","privateMap","value","set","privateSet","add","setFunctionName","t","n","description","defineProperty","configurable","toPropertyKey","r","Symbol","toPrimitive","call","String","_typeof","iterator","prototype"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see cabinet-node.7ce32271.js.LICENSE.txt */
2
+ (self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[6306,2052],{1663:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CabinetNode:()=>C});var a,n,i,o,l,s,c,p,g,u,b=r(918),h=r(1369),f=r(8449),d=r(6902),v=r(8769),y=r.n(v),m=r(9929),x=r(9938),w=r(9935),A=r(8309),z=r(3373),S=r.n(z),k=r(8563),E=r(8753),j=r(5353),T=r(8167),O=r(3229);function _(e,t,r){return e.set(N(e,t),r),r}function P(e,t){return e.get(N(e,t))}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")}var C,M={"container-group":j,"virtual-machine":k,"physical-machine":E,"container-group-warning":r(4677),"virtual-machine-warning":T,"physical-machine-warning":O,pod:r(9130),"pod-warning":r(5228)},{defineElement:W,property:D}=(0,m.createDecorators)(),I=new WeakMap,R=new WeakMap,B=new WeakMap,q=new WeakMap;class F extends x.ReactNextElement{constructor(){super(...arguments),(0,b.A)(this,I,n(this)),(0,b.A)(this,R,(i(this),o(this))),(0,b.A)(this,B,(l(this),s(this))),(0,b.A)(this,q,(c(this),p(this))),g(this)}get type(){return P(I,this)}set type(e){_(I,this,e)}get nodeTitle(){return P(R,this)}set nodeTitle(e){_(R,this,e)}get status(){return P(B,this)}set status(e){_(B,this,e)}get isAlert(){return P(q,this)}set isAlert(e){_(q,this,e)}render(){return y().createElement(G,{type:this.type,nodeTitle:this.nodeTitle,status:this.status,isAlert:this.isAlert})}}function G(e){var{type:t,nodeTitle:r,status:a,isAlert:n}=e;return y().createElement("div",{className:S()("container",t&&"type-".concat(t),a&&"status-".concat(a))},y().createElement("img",{className:"image",src:M["".concat(t).concat(n?"-warning":"")],alt:t}),y().createElement("div",{className:"node-title",title:r},r))}u=F,({e:[n,i,o,l,s,c,p,g],c:[C,a]}=function(e,t,r,a,n,i){var o,l,s,c,p,g,u,b=Symbol.metadata||Symbol.for("Symbol.metadata"),v=Object.defineProperty,y=Object.create,m=[y(null),y(null)],x=t.length;function w(t,r,a){return function(n,i){r&&(i=n,n=e);for(var o=0;o<t.length;o++)i=t[o].apply(n,a?[i]:[]);return a?i:n}}function A(e,t,r,a){if("function"!=typeof e&&(a||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(a?"":" or undefined"));return e}function z(e,t,r,a,n,i,s,c,p,g,u){function b(e){if(!u(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),d=t[3],y=!s,x=1===n,z=3===n,S=4===n,k=2===n;function E(t,r,a){return function(n,i){return r&&(i=n,n=e),a&&a(n),j[t].call(n,i)}}if(!y){var j={},T=[],O=z?"get":S||x?"set":"value";if(p?(g||x?j={get:(0,f.A)((function(){return d(this)}),a,"get"),set:function(e){t[4](this,e)}}:j[O]=d,g||(0,f.A)(j[O],a,k?"":O)):g||(j=Object.getOwnPropertyDescriptor(e,a)),!g&&!p){if((l=m[+c][a])&&7!=(l^n))throw new Error("Decorating two elements with the same name ("+j[O].name+") is not supported yet");m[+c][a]=n<3?1:n}}for(var _=e,P=h.length-1;P>=0;P-=r?2:1){var N=h[P],C=r?h[P-1]:void 0,M={},W={kind:["field","accessor","method","getter","setter","class"][n],name:a,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");A(t,"An initializer","be",!0),i.push(t)}.bind(null,M)};if(y)l=N.call(C,_,W),M.v=1,A(l,"class decorators","return")&&(_=l);else if(W.static=c,W.private=p,l=W.access={has:p?u.bind():function(e){return a in e}},S||(l.get=p?k?function(e){return b(e),j.value}:E("get",0,b):function(e){return e[a]}),k||z||(l.set=p?E("set",0,b):function(e,t){e[a]=t}),_=N.call(C,x?{get:j.get,set:j.set}:j[O],W),M.v=1,x){if("object"==typeof _&&_)(l=A(_.get,"accessor.get"))&&(j.get=l),(l=A(_.set,"accessor.set"))&&(j.set=l),(l=A(_.init,"accessor.init"))&&T.unshift(l);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else A(_,(g?"field":"method")+" decorators","return")&&(g?T.unshift(_):j[O]=_)}return n<2&&s.push(w(T,c,1),w(i,c,0)),g||y||(p?x?s.splice(-1,0,E("get",c),E("set",c)):s.push(k?j[O]:A.call.bind(j[O])):v(e,a,j)),_}function S(e){return v(e,b,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[b]),o=y(null==o?null:o),p=[],g=function(e){e&&p.push(w(e))},(u=function(t,a){for(var n=0;n<r.length;n++){var i=r[n],o=i[1],l=7&o;if((8&o)==t&&!l==a){var g=i[2],u=!!i[3],b=16&o;z(t?e:e.prototype,i,b,u?"#"+g:(0,h.A)(g),l,l<2?[]:t?c=c||[]:s=s||[],p,!!t,u,a,t&&u?function(t){return(0,d.A)(t)===e}:undefined)}}})(8,0),u(0,0),u(8,1),u(0,1),g(s),g(c),l=p,x||S(e),{e:l,get c(){var r=[];return x&&[S(e=z(e,[t],0,e.name,5,r)),w(r,1)]}}}(u,[W("data-view.cabinet-node",{styleTexts:[w.A,A.A]})],[[D(),1,"type"],[D(),1,"nodeTitle"],[D(),1,"status"],[D({type:Boolean}),1,"isAlert"]],0,0,x.ReactNextElement)),a()},8309:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),i=r(935),o=r.n(i)()(n());o.push([e.id,":host{display:inline-block;width:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.container{display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:opacity 0.5s}.image{width:100%;border:2px solid transparent}.node-title{width:100%;text-align:center;font-size:var(--normal-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.type-container-group:hover .image,\n.type-container-group.status-active .image{box-shadow:inset 0 0 16px 0 #ff9900;border-color:#ff9900}.type-physical-machine:hover .image,\n.type-virtual-machine:hover .image,\n.type-physical-machine.status-active .image,\n.type-virtual-machine.status-active .image,\n.type-pod:hover .image,\n.type-type-pod.status-active .image{box-shadow:inset 0 0 16px 0 #50ffff;border-color:#50ffff}.status-faded{opacity:0.4}",""]);const l=o.toString()},9935:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),i=r(935),o=r.n(i)()(n());o.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const l=o.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",a=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),a&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),a&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,a,n,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(a)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);a&&o[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),t.push(p))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},5353:(e,t,r)=>{"use strict";e.exports=r.p+"images/17ea7260.png"},4677:(e,t,r)=>{"use strict";e.exports=r.p+"images/85e27dbe.png"},8753:(e,t,r)=>{"use strict";e.exports=r.p+"images/946b4897.png"},3229:(e,t,r)=>{"use strict";e.exports=r.p+"images/2f0f6b06.png"},9130:(e,t,r)=>{"use strict";e.exports=r.p+"images/67e041ba.png"},5228:(e,t,r)=>{"use strict";e.exports=r.p+"images/23be87ab.png"},8563:(e,t,r)=>{"use strict";e.exports=r.p+"images/55a7b5bb.png"},8167:(e,t,r)=>{"use strict";e.exports=r.p+"images/6cef4f17.png"},3373:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.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)a.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(7545);function n(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,a.A)(e):"null"));return e}},2016:(e,t,r)=>{"use strict";function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>a})},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(2016);function n(e,t,r){(0,a.A)(e,t),t.set(e,r)}},8449:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(7545);function n(e,t,r){"symbol"==(0,a.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(7545);function n(e){var t=function(e,t){if("object"!=(0,a.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=(0,a.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,a.A)(t)?t:String(t)}},7545:(e,t,r)=>{"use strict";function a(e){return a="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},a(e)}r.d(t,{A:()=>a})}}]);
3
+ //# sourceMappingURL=cabinet-node.7ce32271.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/cabinet-node.7ce32271.js","mappings":";klBAeA,IAWuDA,EAXjDC,EAAW,CACf,kBAAmBC,EACnB,kBAAmBC,EACnB,mBAAoBC,EACpB,kCACA,0BAA2BC,EAC3B,2BAA4BC,EAC5BC,YACA,wBAGI,cAAEC,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAAmBC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAavD,MAAAI,UAG0BC,EAAAA,iBAA6CC,WAAAA,GAAA,SAAAC,YACrEC,EAAAA,EAAAA,GAAA,KAAAT,EAAAU,EAAA,QAaAD,EAAAA,EAAAA,GAAA,KAAAP,GAAAS,EAAA,MAAAC,EAAA,SASAH,EAAAA,EAAAA,GAAA,KAAAN,GAAAU,EAAA,MAAAC,EAAA,SASAL,EAAAA,EAAAA,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,QAAUI,IAAMJ,OAAOvB,UAAY,gBAAkB2B,CACpH,EAAGD,EAAQC,EACb","sources":["webpack:///./src/cabinet/cabinet-node/index.tsx","webpack:///./src/cabinet/cabinet-node/cabinet-node.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/classnames/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.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"],"sourcesContent":["import React from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport variablesStyleText from \"../../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet-node.shadow.css\";\nimport classNames from \"classnames\";\nimport virtualMachineImg from \"../../asset/images/virtualMachine.png\";\nimport physicalMachineImg from \"../../asset/images/physicalMachine.png\";\nimport containerGroupImg from \"../../asset/images/containerGroup.png\";\nimport virtualMachineWarningImg from \"../../asset/images/virtualMachineWarning.png\";\nimport physicalMachineWarningImg from \"../../asset/images/physicalMachineWarning.png\";\nimport containerGroupWarningImg from \"../../asset/images/containerGroupWarning.png\";\nimport podImg from \"../../asset/images/pod.png\";\nimport podWarningImg from \"../../asset/images/podWarning.png\";\n\nconst imageMap = {\n \"container-group\": containerGroupImg,\n \"virtual-machine\": virtualMachineImg,\n \"physical-machine\": physicalMachineImg,\n \"container-group-warning\": containerGroupWarningImg,\n \"virtual-machine-warning\": virtualMachineWarningImg,\n \"physical-machine-warning\": physicalMachineWarningImg,\n pod: podImg,\n \"pod-warning\": podWarningImg,\n};\n\nconst { defineElement, property } = createDecorators();\n\nexport interface CabinetNodeProps {\n type: \"container-group\" | \"physical-machine\" | \"virtual-machine\" | \"pod\";\n nodeTitle: string;\n status?: \"active\" | \"faded\";\n isAlert?: boolean;\n}\n\n/**\n * cabinet子构件----节点\n * @author nlicroshan\n */\n@defineElement(\"data-view.cabinet-node\", {\n styleTexts: [variablesStyleText, styleText],\n})\nclass CabinetNode extends ReactNextElement implements CabinetNodeProps {\n /**\n * @kind \"container-group\" | \"physical-machine\" | \"virtual-machine\"\n * @required true\n * @default\n * @description 类型\n */\n @property()\n accessor type:\n | \"container-group\"\n | \"physical-machine\"\n | \"virtual-machine\"\n | \"pod\";\n\n /**\n * @kind string\n * @required true\n * @default\n * @description 标题\n */\n @property()\n accessor nodeTitle: string;\n\n /**\n * @kind \"active\" | \"faded\"\n * @required false\n * @default\n * @description 当前状态\n */\n @property()\n accessor status: \"active\" | \"faded\";\n\n /**\n * @kind boolean\n * @required false\n * @default\n * @description 是否是告警态\n */\n @property({ type: Boolean })\n accessor isAlert: boolean;\n\n render() {\n return (\n <CabinetNodeElement\n type={this.type}\n nodeTitle={this.nodeTitle}\n status={this.status}\n isAlert={this.isAlert}\n />\n );\n }\n}\n\nfunction CabinetNodeElement(props: CabinetNodeProps): React.ReactElement {\n const { type, nodeTitle, status, isAlert } = props;\n\n return (\n <div\n className={classNames(\n \"container\",\n type && `type-${type}`,\n status && `status-${status}`\n )}\n >\n <img\n className=\"image\"\n src={imageMap[`${type}${isAlert ? \"-warning\" : \"\"}`]}\n alt={type}\n />\n <div className=\"node-title\" title={nodeTitle}>\n {nodeTitle}\n </div>\n </div>\n );\n}\n\nexport { CabinetNode };\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:inline-block;width:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.container{display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:opacity 0.5s}.image{width:100%;border:2px solid transparent}.node-title{width:100%;text-align:center;font-size:var(--normal-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.type-container-group:hover .image,\n.type-container-group.status-active .image{box-shadow:inset 0 0 16px 0 #ff9900;border-color:#ff9900}.type-physical-machine:hover .image,\n.type-virtual-machine:hover .image,\n.type-physical-machine.status-active .image,\n.type-virtual-machine.status-active .image,\n.type-pod:hover .image,\n.type-type-pod.status-active .image{box-shadow:inset 0 0 16px 0 #50ffff;border-color:#50ffff}.status-faded{opacity:0.4}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\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 checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\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 : String(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}"],"names":["_CabinetNode","imageMap","containerGroupImg","virtualMachineImg","physicalMachineImg","virtualMachineWarningImg","physicalMachineWarningImg","pod","defineElement","property","createDecorators","_A","WeakMap","_B","_C","_D","CabinetNode","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","_init_type","_init_extra_type","_init_nodeTitle","_init_extra_nodeTitle","_init_status","_init_extra_status","_init_isAlert","_init_extra_isAlert","type","_classPrivateFieldGet","v","_classPrivateFieldSet","nodeTitle","status","isAlert","render","React","CabinetNodeElement","this","props","className","classNames","concat","src","alt","title","_CabinetNode2","e","c","_initClass","_applyDecs","styleTexts","variablesStyleText","styleText","Boolean","___CSS_LOADER_EXPORT___","push","module","id","toString","exports","cssWithMappingToString","list","map","item","content","needLayer","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","hasOwn","hasOwnProperty","classes","arg","appendClass","parseValue","Array","isArray","apply","Object","prototype","includes","key","call","value","newClass","default","_checkInRHS","TypeError","_checkPrivateRedeclaration","obj","privateCollection","has","privateMap","set","setFunctionName","t","n","description","defineProperty","configurable","toPropertyKey","r","Symbol","toPrimitive","String","_typeof","o","iterator"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see cabinet-thumbnail.e38092a1.js.LICENSE.txt */
2
+ (self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[3158],{8393:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CabinetThumbnail:()=>T,CabinetThumbnailComponent:()=>O});var a,n,l,i,o,s,c,p,u=r(9740),g=r(918),b=r(1369),h=r(8449),d=r(6902),f=r(8769),v=r.n(f),m=r(9938),w=r(9929),x=r(3373),y=r.n(x),k=r(9935),E=r(5097),z=r(6837);function C(e,t,r){return e.set(A(e,t),r),r}function N(e,t){return e.get(A(e,t))}function A(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")}var T,S=(0,m.wrapBrick)("data-view.cabinet-app-layer"),{defineElement:W,property:j}=(0,w.createDecorators)(),H=(0,m.wrapBrick)("data-view.cabinet-node"),R=new WeakMap,L=new WeakMap,_=new WeakMap;class M extends m.ReactNextElement{constructor(){super(...arguments),(0,g.A)(this,R,n(this,[])),(0,g.A)(this,L,(l(this),i(this,4))),(0,g.A)(this,_,(o(this),s(this))),c(this)}get clusters(){return N(R,this)}set clusters(e){C(R,this,e)}get columns(){return N(L,this)}set columns(e){C(L,this,e)}get appName(){return N(_,this)}set appName(e){C(_,this,e)}render(){return v().createElement(O,{clusters:this.clusters,columns:this.columns,appName:this.appName})}}function O(e){var{clusters:t,columns:r,appName:a}=e,n=(0,f.useRef)(),l=(0,f.useRef)(),[i,o]=(0,f.useState)(),s=(0,z.Z)(i);return(0,f.useLayoutEffect)((()=>{if(t.length&&r>0){var e=n.current.clientWidth/(l.current.clientWidth/(null!=s?s:1)),a=n.current.clientHeight/(l.current.clientHeight*(null!=s?s:1));o(Math.min(Math.floor(100*Math.min(e,a))/100,1))}}),[t,s,r]),v().createElement("div",{ref:n,className:"wrapper"},v().createElement("div",{className:"thumbnailLayout",ref:l,style:(0,u.A)({},i?{transform:"scale(".concat(i,")")}:{})},v().createElement(S,{className:"appLayer",appTitle:a}),v().createElement("div",{className:"layout"},t.map(((e,t)=>v().createElement("div",{className:"clusterWrapper",key:t},v().createElement("div",{className:y()("clusterContainer",{clusterHostContainer:"host"===e.type||"k8s-blue"===e.type,clusterK8sContainer:"k8s"===e.type})},v().createElement("div",{className:"clusterContent"},v().createElement("div",{className:"clusterContentLayout",style:{gridTemplateColumns:"repeat(".concat(r,",1fr)")}},e.data.map(((e,t)=>v().createElement("div",{key:t,className:"itemContent"},v().createElement(H,{type:e.type,nodeTitle:e.nodeTitle})))))),v().createElement("div",{className:"clusterTitle"},v().createElement("div",{className:"title"},e.title)))))))))}p=M,({e:[n,l,i,o,s,c],c:[T,a]}=function(e,t,r,a,n,l){var i,o,s,c,p,u,g,f=Symbol.metadata||Symbol.for("Symbol.metadata"),v=Object.defineProperty,m=Object.create,w=[m(null),m(null)],x=t.length;function y(t,r,a){return function(n,l){r&&(l=n,n=e);for(var i=0;i<t.length;i++)l=t[i].apply(n,a?[l]:[]);return a?l:n}}function k(e,t,r,a){if("function"!=typeof e&&(a||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(a?"":" or undefined"));return e}function E(e,t,r,a,n,l,s,c,p,u,g){function b(e){if(!g(e))throw new TypeError("Attempted to access private element on non-instance")}var d=[].concat(t[0]),f=t[3],m=!s,x=1===n,E=3===n,z=4===n,C=2===n;function N(t,r,a){return function(n,l){return r&&(l=n,n=e),a&&a(n),A[t].call(n,l)}}if(!m){var A={},T=[],S=E?"get":z||x?"set":"value";if(p?(u||x?A={get:(0,h.A)((function(){return f(this)}),a,"get"),set:function(e){t[4](this,e)}}:A[S]=f,u||(0,h.A)(A[S],a,C?"":S)):u||(A=Object.getOwnPropertyDescriptor(e,a)),!u&&!p){if((o=w[+c][a])&&7!=(o^n))throw new Error("Decorating two elements with the same name ("+A[S].name+") is not supported yet");w[+c][a]=n<3?1:n}}for(var W=e,j=d.length-1;j>=0;j-=r?2:1){var H=d[j],R=r?d[j-1]:void 0,L={},_={kind:["field","accessor","method","getter","setter","class"][n],name:a,metadata:i,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),l.push(t)}.bind(null,L)};if(m)o=H.call(R,W,_),L.v=1,k(o,"class decorators","return")&&(W=o);else if(_.static=c,_.private=p,o=_.access={has:p?g.bind():function(e){return a in e}},z||(o.get=p?C?function(e){return b(e),A.value}:N("get",0,b):function(e){return e[a]}),C||E||(o.set=p?N("set",0,b):function(e,t){e[a]=t}),W=H.call(R,x?{get:A.get,set:A.set}:A[S],_),L.v=1,x){if("object"==typeof W&&W)(o=k(W.get,"accessor.get"))&&(A.get=o),(o=k(W.set,"accessor.set"))&&(A.set=o),(o=k(W.init,"accessor.init"))&&T.unshift(o);else if(void 0!==W)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(W,(u?"field":"method")+" decorators","return")&&(u?T.unshift(W):A[S]=W)}return n<2&&s.push(y(T,c,1),y(l,c,0)),u||m||(p?x?s.splice(-1,0,N("get",c),N("set",c)):s.push(C?A[S]:k.call.bind(A[S])):v(e,a,A)),W}function z(e){return v(e,f,{configurable:!0,enumerable:!0,value:i})}return void 0!==l&&(i=l[f]),i=m(null==i?null:i),p=[],u=function(e){e&&p.push(y(e))},(g=function(t,a){for(var n=0;n<r.length;n++){var l=r[n],i=l[1],o=7&i;if((8&i)==t&&!o==a){var u=l[2],g=!!l[3],h=16&i;E(t?e:e.prototype,l,h,g?"#"+u:(0,b.A)(u),o,o<2?[]:t?c=c||[]:s=s||[],p,!!t,g,a,t&&g?function(t){return(0,d.A)(t)===e}:undefined)}}})(8,0),g(0,0),g(8,1),g(0,1),u(s),u(c),o=p,x||z(e),{e:o,get c(){var r=[];return x&&[z(e=E(e,[t],0,e.name,5,r)),y(r,1)]}}}(p,[W("data-view.cabinet-thumbnail",{styleTexts:[k.A,E.A]})],[[j({attribute:!1}),1,"clusters"],[j({type:Number}),1,"columns"],[j(),1,"appName"]],0,0,m.ReactNextElement)),a()},6837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u,w:()=>p});var a=r(9740),n=r(8769),l=r(9126),i=new Map,o=new l.A((e=>{e.forEach((e=>{var t,{target:r}=e;null===(t=i.get(r))||void 0===t||t.forEach((t=>t(e)))}))})),s=(e,t)=>{i.has(e)||(i.set(e,new Set),o.observe(e)),i.get(e).add(t)},c=(e,t)=>{i.has(e)&&(i.get(e).delete(t),0===i.get(e).size&&(o.unobserve(e),i.delete(e)))};function p(e){var{targetRef:t,onResize:r}=e||{},l=(0,n.useRef)(),i=null!=t?t:l,[o,p]=(0,n.useState)({clientWidth:0,clientHeight:0}),u=(0,n.useCallback)((e=>{var{target:t}=e,{clientWidth:a=0,clientHeight:n=0}=t;p((t=>t.clientWidth===a&&t.clientHeight===n?t:(null==r||r(e),{clientWidth:a,clientHeight:n})))}),[r]);return(0,n.useEffect)((()=>{if("object"!=typeof i||null===i||!(i.current instanceof Element))throw new Error("ResizeObserver must observe an Element");var e=i.current;return s(e,u),()=>{c(e,u)}}),[u,i]),[i,(0,a.A)({},o)]}function u(e){var t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current}},5097:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(6758),n=r.n(a),l=r(935),i=r.n(l)()(n());i.push([e.id,'*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%}.wrapper,\n.thumbnailLayout{display:flex;justify-content:center;align-items:center}.appLayer{width:90%;margin-bottom:16px;align-self:center;pointer-events:none}.thumbnailLayout{flex-direction:column}.layout{display:flex;gap:17px;margin-top:27px;align-items:stretch}.clusterWrapper{width:100%;height:auto}.clusterContainer{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column}.clusterHostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.clusterK8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.clusterContent{flex:1;padding:20px 10px;width:100%}.clusterContentLayout{display:grid;width:100%}.itemContent{width:118px;pointer-events:none;height:105px}.clusterTitle{width:100%;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.title{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clusterTitle:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.clusterHostContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.clusterK8sContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}',""]);const o=i.toString()},9935:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(6758),n=r.n(a),l=r(935),i=r.n(l)()(n());i.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const o=i.toString()},3373:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,l(r)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.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)a.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}}]);
3
+ //# sourceMappingURL=cabinet-thumbnail.e38092a1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/cabinet-thumbnail.e38092a1.js","mappings":";glBAaA,IAOEA,EAPIC,GAAyBC,EAAAA,EAAAA,WAC7B,gCAEI,cAAEC,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAE9BC,GAAcJ,EAAAA,EAAAA,WAClB,0BACAK,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAiBF,MAAAG,UAIUC,EAAAA,iBAEVC,WAAAA,GAAA,SAAAC,YACEC,EAAAA,EAAAA,GAAA,KAAAR,EAAAS,EAAA,KAOgC,MAEhCD,EAAAA,EAAAA,GAAA,KAAAN,GAAAQ,EAAA,MAAAC,EAAA,KAO2B,MAE3BH,EAAAA,EAAAA,GAAA,KAAAL,GAAAS,EAAA,MAAAC,EAAA,QAAAC,EAAA,kBAXSC,GAAQ,OAAAC,EAAAhB,EAAA,kBAARe,CAAQE,GAAAC,EAAAlB,EAAA,KAAAiB,EAAA,YASRE,GAAO,OAAAH,EAAAd,EAAA,iBAAPiB,CAAOF,GAAAC,EAAAhB,EAAA,KAAAe,EAAA,YASPG,GAAO,OAAAJ,EAAAb,EAAA,iBAAPiB,CAAOH,GAAAC,EAAAf,EAAA,KAAAc,EAAA,CAEhBI,MAAAA,GACE,OACEC,IAAAA,cAACC,EAAyB,CACxBR,SAAUS,KAAKT,SACfI,QAASK,KAAKL,QACdC,QAASI,KAAKJ,SAGpB,EAGK,SAASG,EACdE,GAEA,IAAM,SAAEV,EAAQ,QAAEI,EAAO,QAAEC,GAAYK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MC,QAAQJ,GACjB,OAAO3D,EAAWgE,MAAM,KAAML,GAG/B,GAAIA,EAAIL,WAAaW,OAAOC,UAAUZ,WAAaK,EAAIL,SAASA,WAAWa,SAAS,iBACnF,OAAOR,EAAIL,WAGZ,IAAIG,EAAU,GAEd,IAAK,IAAI1D,KAAO4D,EACXJ,EAAOa,KAAKT,EAAK5D,IAAQ4D,EAAI5D,KAChC0D,EAAUG,EAAYH,EAAS1D,IAIjC,OAAO0D,CACR,CAEA,SAASG,EAAaS,EAAOC,GAC5B,OAAKA,EAIDD,EACIA,EAAQ,IAAMC,EAGfD,EAAQC,EAPPD,CAQT,CAEqCjB,EAAOmB,SAC3CvE,EAAWwE,QAAUxE,EACrBoD,EAAOmB,QAAUvE,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIH,CArEA","sources":["webpack:///./src/cabinet/cabinet-thumbnail/index.tsx","webpack:///./src/hooks/useResizeObserver/resizeObserverUtil.ts","webpack:///./src/hooks/useResizeObserver/index.ts","webpack:///./src/hooks/usePrevious/index.ts","webpack:///./src/cabinet/cabinet-thumbnail/cabinet-thumbnail.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/classnames/index.js"],"sourcesContent":["import React, { useLayoutEffect, useRef, useState } from \"react\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { createDecorators } from \"@next-core/element\";\nimport classNames from \"classnames\";\nimport { CabinetNode, CabinetNodeProps } from \"../cabinet-node/index.js\";\nimport { ContainerType } from \"../cabinet-container/index.js\";\nimport variablesText from \"../../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet-thumbnail.shadow.css\";\nimport { usePrevious } from \"../../hooks/index.js\";\nimport {\n CabinetAppLayer,\n CabinetAppLayerProps,\n} from \"../cabinet-app-layer/index.js\";\nconst WrappedCabinetAppLayer = wrapBrick<CabinetAppLayer, CabinetAppLayerProps>(\n \"data-view.cabinet-app-layer\"\n);\nconst { defineElement, property } = createDecorators();\n\nconst WrappedNode = wrapBrick<CabinetNode, CabinetNodeProps>(\n \"data-view.cabinet-node\"\n);\nexport interface Clusters {\n data: CabinetNodeProps[];\n type?: ContainerType;\n title?: string | undefined;\n}\n\nexport interface CabinetThumbnailProps {\n clusters: Clusters[];\n appName: string;\n columns?: number;\n}\n\n/**\n * 应用墙缩略图\n * @author astrid\n */\n@defineElement(\"data-view.cabinet-thumbnail\", {\n styleTexts: [variablesText, styleText],\n})\nclass CabinetThumbnail\n extends ReactNextElement\n implements CabinetThumbnailProps\n{\n /**\n * @kind CabinetContainerProps[]\n * @required true\n * @default\n * @description 集群数据\n */\n @property({ attribute: false })\n accessor clusters: Clusters[] = [];\n\n /**\n * @kind number\n * @required\n * @default 4\n * @description 单个容器列数\n */\n @property({ type: Number })\n accessor columns: number = 4;\n\n /**\n * @kind string\n * @required true\n * @default\n * @description 应用名称\n */\n @property()\n accessor appName: string;\n\n render(): React.ReactNode {\n return (\n <CabinetThumbnailComponent\n clusters={this.clusters}\n columns={this.columns}\n appName={this.appName}\n />\n );\n }\n}\n\nexport function CabinetThumbnailComponent(\n props: CabinetThumbnailProps\n): React.ReactElement {\n const { clusters, columns, appName } = props;\n const containerRef = useRef<HTMLDivElement>();\n const layoutRef = useRef<HTMLDivElement>();\n const [scale, setScale] = useState<number>();\n const preScale = usePrevious(scale);\n\n useLayoutEffect(() => {\n if (!!clusters.length && columns > 0) {\n // 计算缩放比例\n const wScale =\n containerRef.current.clientWidth /\n (layoutRef.current.clientWidth / (preScale ?? 1));\n const hScale =\n containerRef.current.clientHeight /\n (layoutRef.current.clientHeight * (preScale ?? 1));\n setScale(Math.min(Math.floor(Math.min(wScale, hScale) * 100) / 100, 1));\n }\n }, [clusters, preScale, columns]);\n\n return (\n <div ref={containerRef} className=\"wrapper\">\n <div\n className=\"thumbnailLayout\"\n ref={layoutRef}\n style={{\n ...(scale ? { transform: `scale(${scale})` } : {}),\n }}\n >\n <WrappedCabinetAppLayer className=\"appLayer\" appTitle={appName} />\n <div className=\"layout\">\n {clusters.map((item, index) => (\n <div className=\"clusterWrapper\" key={index}>\n <div\n className={classNames(\"clusterContainer\", {\n clusterHostContainer:\n item.type === \"host\" || item.type === \"k8s-blue\",\n clusterK8sContainer: item.type === \"k8s\",\n })}\n >\n <div className=\"clusterContent\">\n <div\n className=\"clusterContentLayout\"\n style={{ gridTemplateColumns: `repeat(${columns},1fr)` }}\n >\n {item.data.map((node, index) => (\n <div key={index} className=\"itemContent\">\n <WrappedNode\n type={node.type}\n nodeTitle={node.nodeTitle}\n />\n </div>\n ))}\n </div>\n </div>\n <div className=\"clusterTitle\">\n <div className=\"title\">{item.title}</div>\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\nexport { CabinetThumbnail };\n","import ResizeObserver from \"resize-observer-polyfill\";\n\nexport type ResizeCallback = (entry: ResizeObserverEntry) => void;\n\nconst elementListeners = new Map<Element, Set<ResizeCallback>>();\n\nexport const elementListeners_only_for_test =\n process.env.NODE_ENV === \"test\"\n ? elementListeners\n : /* istanbul ignore next */ null;\n\nconst resizeObserverCallback = (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n const { target } = entry;\n elementListeners.get(target)?.forEach((callback) => callback(entry));\n });\n};\n\nconst resizeObserver: ResizeObserver = new (ResizeObserver as any)(resizeObserverCallback);\n\nexport const observe = (element: Element, callback: ResizeCallback): void => {\n if (!elementListeners.has(element)) {\n elementListeners.set(element, new Set());\n resizeObserver.observe(element);\n }\n\n elementListeners.get(element).add(callback);\n};\n\nexport const unobserve = (element: Element, callback: ResizeCallback): void => {\n if (elementListeners.has(element)) {\n elementListeners.get(element).delete(callback);\n\n if (elementListeners.get(element).size === 0) {\n resizeObserver.unobserve(element);\n elementListeners.delete(element);\n }\n }\n};\n","import {\n useState,\n useCallback,\n useRef,\n type RefObject,\n useEffect,\n} from \"react\";\nimport { observe, unobserve } from \"./resizeObserverUtil.js\";\n\ninterface ElementSize {\n clientWidth: number;\n clientHeight: number;\n}\n\nexport interface ResizeObserveProps<T extends Element = Element> {\n targetRef?: RefObject<T>;\n onResize?: (size: ResizeObserverEntry) => void;\n}\n\nexport function useResizeObserver<T extends Element = Element>(\n props?: ResizeObserveProps<T>\n): [RefObject<T>, ElementSize] {\n const {\n targetRef,\n onResize,\n } = props || {};\n\n const localRef = useRef<T>();\n const ref = targetRef ?? localRef;\n const [size, setSize] = useState<ElementSize>({ clientWidth: 0, clientHeight: 0 });\n\n const handleResize = useCallback(\n (entry: ResizeObserverEntry) => {\n const { target } = entry;\n const { clientWidth = 0, clientHeight = 0 } = target;\n\n setSize((prev) => {\n // skip if same size\n if (prev.clientWidth === clientWidth && prev.clientHeight === clientHeight) {\n return prev;\n }\n\n onResize?.(entry);\n\n return { clientWidth, clientHeight };\n });\n },\n [onResize]\n );\n\n useEffect(() => {\n if (\n typeof ref !== \"object\" ||\n ref === null ||\n !(ref.current instanceof Element)\n ) {\n throw new Error(\"ResizeObserver must observe an Element\");\n }\n\n const element = ref.current;\n observe(element, handleResize);\n\n return () => {\n unobserve(element, handleResize);\n };\n }, [handleResize, ref]);\n\n return [ref, { ...size }];\n}\n","import {useRef, useEffect} from 'react';\nexport function usePrevious<T>(data?: T):T|undefined{\n const ref = useRef<T>();\n useEffect(()=>{\n ref.current = data\n })\n return ref.current;\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%}.wrapper,\n.thumbnailLayout{display:flex;justify-content:center;align-items:center}.appLayer{width:90%;margin-bottom:16px;align-self:center;pointer-events:none}.thumbnailLayout{flex-direction:column}.layout{display:flex;gap:17px;margin-top:27px;align-items:stretch}.clusterWrapper{width:100%;height:auto}.clusterContainer{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column}.clusterHostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.clusterK8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.clusterContent{flex:1;padding:20px 10px;width:100%}.clusterContentLayout{display:grid;width:100%}.itemContent{width:118px;pointer-events:none;height:105px}.clusterTitle{width:100%;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.title{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clusterTitle:after{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.clusterHostContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.clusterK8sContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["_CabinetThumbnail","WrappedCabinetAppLayer","wrapBrick","defineElement","property","createDecorators","WrappedNode","_A","WeakMap","_B","_C","CabinetThumbnail","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","_init_clusters","_init_extra_clusters","_init_columns","_init_extra_columns","_init_appName","_init_extra_appName","clusters","_classPrivateFieldGet","v","_classPrivateFieldSet","columns","appName","render","React","CabinetThumbnailComponent","this","props","containerRef","useRef","layoutRef","scale","setScale","useState","preScale","usePrevious","useLayoutEffect","length","wScale","current","clientWidth","hScale","clientHeight","Math","min","floor","ref","className","style","_objectSpread","transform","concat","appTitle","map","item","index","key","classNames","clusterHostContainer","type","clusterK8sContainer","gridTemplateColumns","data","node","nodeTitle","title","_CabinetThumbnail2","e","c","_initClass","_applyDecs","styleTexts","variablesText","styleText","attribute","Number","elementListeners","Map","resizeObserver","ResizeObserver","entries","forEach","entry","_elementListeners$get","target","get","callback","observe","element","has","set","Set","add","unobserve","delete","size","useResizeObserver","targetRef","onResize","localRef","setSize","handleResize","useCallback","prev","useEffect","Element","Error","___CSS_LOADER_EXPORT___","push","module","id","toString","hasOwn","hasOwnProperty","classes","i","arg","appendClass","parseValue","Array","isArray","apply","Object","prototype","includes","call","value","newClass","exports","default"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[5994,2052],{8414:(e,t,r)=>{r.d(t,{I:()=>o,K:()=>a,NS:()=>n});var a=function(e){return e.EMPTY_DATA="EMPTY_DATA",e}({}),n="bricks/data-view/complex-search",o={en:{EMPTY_DATA:"Empty data"},zh:{EMPTY_DATA:"空数据"}}},6060:(e,t,r)=>{r.r(t),r.d(t,{ComplexSearch:()=>ae,ComplexSearchComponent:()=>fe});var a,n,o,i,l,s,c,p,u,h,d,b,g,f,v,m,x,w,y,A,k,E,z,S,M,T,B,I,j,N,C=r(9575),W=r(4586),P=r(4635),_=r(918),D=r(1369),O=r(8449),R=r(6902),U=r(8769),F=r.n(U),Y=r(9929),K=r(9938),L=r(9935),q=r(9994),G=r(1983),H=r(6911),J=r(8414),Q=r(1856);function V(e,t,r){return r($(e,t))}function X(e,t,r){return e.set($(e,t),r),r}function Z(e,t){return e.get($(e,t))}function $(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")}var{defineElement:ee,property:te,event:re}=(0,Y.createDecorators)();(0,H.initializeReactI18n)(J.NS,J.I);var ae,ne=(0,K.wrapBrick)("eo-icon"),oe=new WeakMap,ie=new WeakMap,le=new WeakMap,se=new WeakMap,ce=new WeakMap,pe=new WeakSet,ue=new WeakMap,he=new WeakMap,de=new WeakMap,be=new WeakMap;class ge extends K.ReactNextElement{constructor(){super(...arguments),(0,P.A)(this,pe),(0,_.A)(this,oe,n(this)),(0,_.A)(this,ie,(o(this),i(this))),(0,_.A)(this,le,(l(this),s(this))),(0,_.A)(this,se,(c(this),p(this))),(0,_.A)(this,ce,(u(this),h(this))),(0,_.A)(this,ue,(g(this),f(this))),(0,_.A)(this,he,(x(this),w(this))),(0,_.A)(this,de,(k(this),E(this))),(0,_.A)(this,be,(M(this),T(this))),(0,W.A)(this,"handleInputChange",(j(this),e=>{V(pe,this,d).emit(e)})),(0,W.A)(this,"handleSearch",(e=>{V(pe,this,v).emit(e)})),(0,W.A)(this,"handleFocus",(()=>{V(pe,this,z).emit()})),(0,W.A)(this,"handleBlur",(()=>{V(pe,this,B).emit()})),(0,W.A)(this,"handleSelect",(e=>{V(pe,this,y).emit(e)}))}get value(){return Z(oe,this)}set value(e){X(oe,this,e)}get placeholder(){return Z(ie,this)}set placeholder(e){X(ie,this,e)}get options(){return Z(le,this)}set options(e){X(le,this,e)}get tooltipUseBrick(){return Z(se,this)}set tooltipUseBrick(e){X(se,this,e)}render(){return F().createElement(fe,{value:this.value,onInputChange:this.handleInputChange,onSearch:this.handleSearch,onBlur:this.handleBlur,onFocus:this.handleFocus,tooltipUseBrick:this.tooltipUseBrick,placeholder:this.placeholder,onSelect:this.handleSelect,options:this.options})}}function fe(e){var{onInputChange:t,onSearch:r,onBlur:a,onFocus:n,tooltipUseBrick:o,placeholder:i,onSelect:l,options:s=[]}=e,{t:c}=(0,H.useTranslation)(J.NS),[p,u]=(0,U.useState)(!1),h=(0,U.useRef)(null),[d,b]=(0,U.useState)(!1),[g,f]=(0,U.useState)(),[v,m]=(0,U.useState)(0),[x,w]=(0,U.useState)(!1),[y,A]=(0,U.useState)(e.value);(0,U.useEffect)((()=>{A(e.value)}),[e.value]),(0,U.useEffect)((()=>{u(!!y)}),[y]);var k=e=>{e.composedPath().some((e=>e===h.current))||b(!1)},E=(0,U.useMemo)((()=>null!=o&&o.useBrick?F().createElement("div",{className:"dropdownMenuItemTooltip",style:{top:v,visibility:x?"visible":"hidden",opacity:x?1:0},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1)},F().createElement("div",{className:"useBrickWrapper"},F().createElement(G.ReactUseMultipleBricks,{useBrick:o.useBrick,data:g||{}}))):void 0),[g,o,v,x]);return(0,U.useEffect)((()=>(document.addEventListener("click",k),()=>document.removeEventListener("click",k))),[]),F().createElement("div",{className:"wrapper",ref:h},F().createElement("div",{className:"inputWrapper"},F().createElement("input",{placeholder:i,value:null!=y?y:"",type:"text",onChange:e=>{return r=e.target.value,A(r),t(r),void b(!0);var r},onFocus:()=>{b(!0),n()},onBlur:a,onKeyDown:e=>{"Enter"===e.key&&(b(!1),A(e.target.value),r(e.target.value))}}),F().createElement(ne,{className:"searchIcon icon",lib:"antd",icon:"search",theme:"outlined"}),p&&F().createElement(ne,{className:"clearIcon icon",onClick:()=>{A(null),t(""),b(!1)},lib:"antd",icon:"close-circle",theme:"filled"})),F().createElement("div",{className:"dropdownWrapper",style:{visibility:d?"visible":"hidden"}},s.length?F().createElement("div",{className:"dropdownMenu"},s.map(((e,t)=>F().createElement("div",{className:"dropdownMenuItem",key:t,onMouseEnter:t=>((e,t)=>{f(t),w(!0);var r=e.target.getBoundingClientRect().top-h.current.getBoundingClientRect().top;m(r)})(t,e),onMouseLeave:()=>w(!1),onClick:()=>{return A((t=e).name),l(t),void b(!1);var t}},F().createElement(ne,(0,C.A)({},e.icon,{className:"menuIcon"})),F().createElement("span",{className:"menuTitle"},e.name))))):F().createElement("div",{className:"emptyData"},F().createElement("img",{src:Q,alt:c(J.K.EMPTY_DATA)}),F().createElement("span",null,c(J.K.EMPTY_DATA)))),E)}N=ge,({e:[n,o,i,l,s,c,p,u,h,d,b,g,f,v,m,x,w,y,A,k,E,z,S,M,T,B,I,j],c:[ae,a]}=function(e,t,r,a,n,o){var i,l,s,c,p,u,h,d=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,f=[g(null),g(null)],v=t.length;function m(t,r,a){return function(n,o){r&&(o=n,n=e);for(var i=0;i<t.length;i++)o=t[i].apply(n,a?[o]:[]);return a?o:n}}function x(e,t,r,a){if("function"!=typeof e&&(a||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(a?"":" or undefined"));return e}function w(e,t,r,a,n,o,s,c,p,u,h){function d(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),v=t[3],w=!s,y=1===n,A=3===n,k=4===n,E=2===n;function z(t,r,a){return function(n,o){return r&&(o=n,n=e),a&&a(n),S[t].call(n,o)}}if(!w){var S={},M=[],T=A?"get":k||y?"set":"value";if(p?(u||y?S={get:(0,O.A)((function(){return v(this)}),a,"get"),set:function(e){t[4](this,e)}}:S[T]=v,u||(0,O.A)(S[T],a,E?"":T)):u||(S=Object.getOwnPropertyDescriptor(e,a)),!u&&!p){if((l=f[+c][a])&&7!=(l^n))throw new Error("Decorating two elements with the same name ("+S[T].name+") is not supported yet");f[+c][a]=n<3?1:n}}for(var B=e,I=g.length-1;I>=0;I-=r?2:1){var j=g[I],N=r?g[I-1]:void 0,C={},W={kind:["field","accessor","method","getter","setter","class"][n],name:a,metadata:i,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");x(t,"An initializer","be",!0),o.push(t)}.bind(null,C)};if(w)l=j.call(N,B,W),C.v=1,x(l,"class decorators","return")&&(B=l);else if(W.static=c,W.private=p,l=W.access={has:p?h.bind():function(e){return a in e}},k||(l.get=p?E?function(e){return d(e),S.value}:z("get",0,d):function(e){return e[a]}),E||A||(l.set=p?z("set",0,d):function(e,t){e[a]=t}),B=j.call(N,y?{get:S.get,set:S.set}:S[T],W),C.v=1,y){if("object"==typeof B&&B)(l=x(B.get,"accessor.get"))&&(S.get=l),(l=x(B.set,"accessor.set"))&&(S.set=l),(l=x(B.init,"accessor.init"))&&M.unshift(l);else if(void 0!==B)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(B,(u?"field":"method")+" decorators","return")&&(u?M.unshift(B):S[T]=B)}return n<2&&s.push(m(M,c,1),m(o,c,0)),u||w||(p?y?s.splice(-1,0,z("get",c),z("set",c)):s.push(E?S[T]:x.call.bind(S[T])):b(e,a,S)),B}function y(e){return b(e,d,{configurable:!0,enumerable:!0,value:i})}return void 0!==o&&(i=o[d]),i=g(null==i?null:i),p=[],u=function(e){e&&p.push(m(e))},(h=function(t,a){for(var o=0;o<r.length;o++){var i=r[o],l=i[1],u=7&l;if((8&l)==t&&!u==a){var h=i[2],d=!!i[3],b=16&l;w(t?e:e.prototype,i,b,d?"#"+h:(0,D.A)(h),u,u<2?[]:t?c=c||[]:s=s||[],p,!!t,d,a,t&&d?function(t){return(0,R.A)(t)===e}:n)}}})(8,0),h(0,0),h(8,1),h(0,1),u(s),u(c),l=p,v||y(e),{e:l,get c(){var r=[];return v&&[y(e=w(e,[t],0,e.name,5,r)),m(r,1)]}}}(N,[ee("data-view.complex-search",{styleTexts:[L.A,q.A]})],[[te(),1,"value"],[te(),1,"placeholder"],[te({attribute:!1}),1,"options"],[te({attribute:!1}),1,"tooltipUseBrick"],[re({type:"change"}),1,"inputChangeEvent",e=>Z(ce,e),(e,t)=>X(ce,e,t)],[re({type:"search"}),1,"onSearchEvent",e=>Z(ue,e),(e,t)=>X(ue,e,t)],[re({type:"select"}),1,"onSelectEvent",e=>Z(he,e),(e,t)=>X(he,e,t)],[re({type:"focus"}),1,"onFocusEvent",e=>Z(de,e),(e,t)=>X(de,e,t)],[re({type:"blur"}),1,"onBlurEvent",e=>Z(be,e),(e,t)=>X(be,e,t)]],0,(e=>pe.has((0,R.A)(e))),K.ReactNextElement)),a()},9994:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),o=r(935),i=r.n(o)()(n());i.push([e.id,'.wrapper{width:100%;position:relative}.inputWrapper{width:100%;height:32px;position:relative}input{height:100%;line-height:32px;border:none;width:100%;box-sizing:border-box;padding:0 32px;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);color:var(--color-normal-text)}input::placeholder{color:var(--color-disabled-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400)}input:not(:disabled):focus{border:none;outline:0}.icon{position:absolute;color:var(--color-normal-text);opacity:0.6}.searchIcon{left:10px;top:6px;font-size:16px}.clearIcon{right:10px;top:7px;font-size:14px}.dropdownWrapper{width:100%;height:336px;margin:5px 0;padding:8px 0;box-sizing:border-box;position:absolute;z-index:900;overflow:auto;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.emptyData{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;color:var(--color-disabled-text);gap:20px}.emptyData img{width:62px}.dropdownMenu{overflow-y:auto}.dropdownMenuItem{padding:6px 18px;color:var(--color-normal-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);display:flex;align-items:center;gap:6px;height:32px;line-height:20px;box-sizing:border-box;cursor:pointer}.menuTitle{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.menuIcon{font-size:20px}.dropdownMenuItem:hover{border-radius:var(--no-border-radius);background:var(--color-fill-bg-container-1)}.dropdownMenuItemTooltip{position:absolute;width:324px;left:-325px;top:0;background:var(--color-fill-bg-base-4);border-radius:var(--medius-border-radius)}.dropdownMenuItemTooltip:before{content:"";position:absolute;top:0;width:100%;height:100%;left:0;background:#282e3a linear-gradient(186deg,rgba(51,102,255,0.3) 0%,rgba(51,102,255,0) 100%);border-radius:4px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.useBrickWrapper{position:relative;min-height:100px;max-height:465px;overflow:auto}',""]);const l=i.toString()},9935:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(6758),n=r.n(a),o=r(935),i=r.n(o)()(n());i.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const l=i.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",a=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),a&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),a&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,a,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);a&&i[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),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),t.push(p))}},t}},6758:e=>{e.exports=function(e){return e[1]}},1856:(e,t,r)=>{e.exports=r.p+"images/6d954a25.png"},6902:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(7545);function n(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,a.A)(e):"null"));return e}},2016:(e,t,r)=>{function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>a})},918:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(2016);function n(e,t,r){(0,a.A)(e,t),t.set(e,r)}},4635:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(2016);function n(e,t){(0,a.A)(e,t),t.add(e)}},4586:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(1369);function n(e,t,r){return(t=(0,a.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},9575:(e,t,r)=>{function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},a.apply(this,arguments)}r.d(t,{A:()=>a})},8449:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(7545);function n(e,t,r){"symbol"==(0,a.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}},1369:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(7545);function n(e){var t=function(e,t){if("object"!=(0,a.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=(0,a.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,a.A)(t)?t:String(t)}},7545:(e,t,r)=>{function a(e){return a="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},a(e)}r.d(t,{A:()=>a})}}]);
2
+ //# sourceMappingURL=complex-search.344f14a7.js.map
@@ -0,0 +1 @@
1
+ {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GuD,EAAQvD,EACb,C","sources":["webpack:///./src/complex-search/i18n.ts","webpack:///./src/complex-search/index.tsx","webpack:///./src/complex-search/complex-search.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.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"],"sourcesContent":["export enum K {\n EMPTY_DATA = \"EMPTY_DATA\",\n}\n\nconst en: Locale = {\n EMPTY_DATA: \"Empty data\",\n};\n\nconst zh: Locale = {\n EMPTY_DATA: \"空数据\",\n};\n\nexport const NS = \"bricks/data-view/complex-search\";\n\nexport const locales = { en, zh };\n\ntype Locale = { [key in K]: string };\n","import React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport { createDecorators, EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport variablesStyleText from \"../data-view-variables.shadow.css\";\nimport styleText from \"./complex-search.shadow.css\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport {\n ReactUseMultipleBricks,\n ReactUseMultipleBricksProps,\n} from \"@next-core/react-runtime\";\nimport { useTranslation, initializeReactI18n } from \"@next-core/i18n/react\";\nimport { K, NS, locales } from \"./i18n.js\";\nimport empty from \"../asset/images/empty.png\";\nconst { defineElement, property, event } = createDecorators();\ninitializeReactI18n(NS, locales);\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\n\nexport interface OptionItem {\n icon: GeneralIconProps;\n name: string;\n [propName: string]: unknown;\n}\n\ninterface ComplexSearchProps {\n options?: OptionItem[];\n value?: string;\n placeholder?: string;\n onInputChange?: (value: string) => void;\n onSearch?: (value: string) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n tooltipUseBrick?: ReactUseMultipleBricksProps;\n onSelect?: (data: OptionItem) => void;\n}\n\n/**\n * 大屏搜索构件\n * @author astrid\n * @category big-screen-content\n */\n@defineElement(\"data-view.complex-search\", {\n styleTexts: [variablesStyleText, styleText],\n})\nclass ComplexSearch extends ReactNextElement implements ComplexSearchProps {\n /**\n * @kind string\n * @required false\n * @default default\n * @description 初始值\n * @enums\n * @group basic\n */\n @property()\n accessor value: string | undefined;\n /**\n * @kind string\n * @required false\n * @default default\n * @description 占位符\n * @enums\n * @group basic\n */\n @property()\n accessor placeholder: string | undefined;\n\n /**\n * @kind OptionItem[]\n * @required false\n * @default default\n * @description 下拉选项\n * @enums\n * @group basic\n */\n @property({ attribute: false })\n accessor options: OptionItem[];\n\n /**\n * @kind ReactUseMultipleBricksProps\n * @required false\n * @default -\n * @description tooltip useBrick\n */\n @property({\n attribute: false,\n })\n accessor tooltipUseBrick: ReactUseMultipleBricksProps;\n\n /**\n * @detail\n * @description input值改变事件\n */\n @event({ type: \"change\" })\n accessor #inputChangeEvent!: EventEmitter<string>;\n\n /**\n * @detail\n * @description input值搜索事件\n */\n @event({ type: \"search\" })\n accessor #onSearchEvent!: EventEmitter<string>;\n\n /**\n * @detail\n * @description 下拉选择事件\n */\n @event({ type: \"select\" })\n accessor #onSelectEvent!: EventEmitter<OptionItem>;\n\n /**\n * @detail\n * @description 聚焦事件\n */\n @event({ type: \"focus\" })\n accessor #onFocusEvent!: EventEmitter<void>;\n\n /**\n * @detail\n * @description 失焦事件\n */\n @event({ type: \"blur\" })\n accessor #onBlurEvent!: EventEmitter<void>;\n\n handleInputChange = (value: string) => {\n this.#inputChangeEvent.emit(value);\n };\n handleSearch = (value: string) => {\n this.#onSearchEvent.emit(value);\n };\n handleFocus = () => {\n this.#onFocusEvent.emit();\n };\n handleBlur = () => {\n this.#onBlurEvent.emit();\n };\n handleSelect = (data: OptionItem) => {\n this.#onSelectEvent.emit(data);\n };\n\n render(): React.ReactNode {\n return (\n <ComplexSearchComponent\n value={this.value}\n onInputChange={this.handleInputChange}\n onSearch={this.handleSearch}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n tooltipUseBrick={this.tooltipUseBrick}\n placeholder={this.placeholder}\n onSelect={this.handleSelect}\n options={this.options}\n />\n );\n }\n}\n\nexport function ComplexSearchComponent(\n props: ComplexSearchProps\n): React.ReactElement {\n const {\n onInputChange,\n onSearch,\n onBlur,\n onFocus,\n tooltipUseBrick,\n placeholder,\n onSelect,\n options = [],\n } = props;\n const { t } = useTranslation(NS);\n const [allowClear, setAllowClear] = useState<boolean>(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const [visible, setVisible] = useState(false);\n const [currentData, setCurrentData] = useState<OptionItem>();\n const [positionTop, setPositionTop] = useState<number>(0);\n const [tooltipVisible, setTooltipVisible] = useState<boolean>(false);\n const [value, setValue] = useState(props.value);\n const handleFocus = () => {\n //聚焦, 下拉框出现\n setVisible(true);\n onFocus();\n };\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n setVisible(false);\n setValue((e.target as HTMLInputElement).value);\n onSearch((e.target as HTMLInputElement).value);\n }\n };\n const handleSelect = (data: OptionItem) => {\n setValue(data.name);\n onSelect(data);\n setVisible(false);\n };\n useEffect(() => {\n setValue(props.value);\n }, [props.value]);\n useEffect(() => {\n setAllowClear(!!value);\n }, [value]);\n\n const handleClick = (event: MouseEvent) => {\n const targetElement = event\n .composedPath()\n .some((ele) => ele === contentRef.current);\n if (!targetElement) {\n setVisible(false);\n }\n };\n const handleMouseEnter = (\n e: React.MouseEvent<HTMLDivElement>,\n data: OptionItem\n ) => {\n setCurrentData(data);\n setTooltipVisible(true);\n const top =\n (e.target as HTMLDivElement).getBoundingClientRect().top -\n contentRef.current.getBoundingClientRect().top;\n setPositionTop(top);\n };\n const handleValueChange = (val: string) => {\n setValue(val);\n onInputChange(val);\n setVisible(true);\n };\n const onClearValue = () => {\n setValue(null);\n onInputChange(\"\");\n setVisible(false);\n };\n const TooltipBrick = useMemo(() => {\n if (!tooltipUseBrick?.useBrick) {\n return;\n } else {\n return (\n <div\n className=\"dropdownMenuItemTooltip\"\n style={{\n top: positionTop,\n visibility: tooltipVisible ? \"visible\" : \"hidden\",\n opacity: tooltipVisible ? 1 : 0,\n }}\n onMouseEnter={() => setTooltipVisible(true)}\n onMouseLeave={() => setTooltipVisible(false)}\n >\n <div className=\"useBrickWrapper\">\n <ReactUseMultipleBricks\n useBrick={tooltipUseBrick.useBrick}\n data={currentData || {}}\n />\n </div>\n </div>\n );\n }\n }, [currentData, tooltipUseBrick, positionTop, tooltipVisible]);\n useEffect(() => {\n document.addEventListener(\"click\", handleClick);\n return () => document.removeEventListener(\"click\", handleClick);\n }, []);\n\n return (\n <div className=\"wrapper\" ref={contentRef}>\n <div className=\"inputWrapper\">\n <input\n placeholder={placeholder}\n value={value ?? \"\"}\n type=\"text\"\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n handleValueChange(e.target.value)\n }\n onFocus={handleFocus}\n onBlur={onBlur}\n onKeyDown={handleKeyDown}\n />\n <WrappedIcon\n className=\"searchIcon icon\"\n lib=\"antd\"\n icon=\"search\"\n theme=\"outlined\"\n />\n {allowClear && (\n <WrappedIcon\n className=\"clearIcon icon\"\n onClick={onClearValue}\n lib=\"antd\"\n icon=\"close-circle\"\n theme=\"filled\"\n />\n )}\n </div>\n <div\n className=\"dropdownWrapper\"\n style={{\n visibility: visible ? \"visible\" : \"hidden\",\n }}\n >\n {options.length ? (\n <div className=\"dropdownMenu\">\n {options.map((option, index) => (\n <div\n className=\"dropdownMenuItem\"\n key={index}\n onMouseEnter={(e) => handleMouseEnter(e, option)}\n onMouseLeave={() => setTooltipVisible(false)}\n onClick={() => handleSelect(option)}\n >\n <WrappedIcon {...option.icon} className=\"menuIcon\" />\n <span className=\"menuTitle\">{option.name}</span>\n </div>\n ))}\n </div>\n ) : (\n <div className=\"emptyData\">\n <img src={empty} alt={t(K.EMPTY_DATA)} />\n <span>{t(K.EMPTY_DATA)}</span>\n </div>\n )}\n </div>\n {TooltipBrick}\n </div>\n );\n}\n\nexport { ComplexSearch };\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.wrapper{width:100%;position:relative}.inputWrapper{width:100%;height:32px;position:relative}input{height:100%;line-height:32px;border:none;width:100%;box-sizing:border-box;padding:0 32px;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);color:var(--color-normal-text)}input::placeholder{color:var(--color-disabled-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400)}input:not(:disabled):focus{border:none;outline:0}.icon{position:absolute;color:var(--color-normal-text);opacity:0.6}.searchIcon{left:10px;top:6px;font-size:16px}.clearIcon{right:10px;top:7px;font-size:14px}.dropdownWrapper{width:100%;height:336px;margin:5px 0;padding:8px 0;box-sizing:border-box;position:absolute;z-index:900;overflow:auto;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.emptyData{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;color:var(--color-disabled-text);gap:20px}.emptyData img{width:62px}.dropdownMenu{overflow-y:auto}.dropdownMenuItem{padding:6px 18px;color:var(--color-normal-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);display:flex;align-items:center;gap:6px;height:32px;line-height:20px;box-sizing:border-box;cursor:pointer}.menuTitle{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.menuIcon{font-size:20px}.dropdownMenuItem:hover{border-radius:var(--no-border-radius);background:var(--color-fill-bg-container-1)}.dropdownMenuItemTooltip{position:absolute;width:324px;left:-325px;top:0;background:var(--color-fill-bg-base-4);border-radius:var(--medius-border-radius)}.dropdownMenuItemTooltip:before{content:\"\";position:absolute;top:0;width:100%;height:100%;left:0;background:#282e3a linear-gradient(186deg,rgba(51,102,255,0.3) 0%,rgba(51,102,255,0) 100%);border-radius:4px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.useBrickWrapper{position:relative;min-height:100px;max-height:465px;overflow:auto}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\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 checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\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}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\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 : String(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}"],"names":["K","NS","locales","en","EMPTY_DATA","zh","defineElement","property","event","createDecorators","initializeReactI18n","_ComplexSearch","WrappedIcon","wrapBrick","_A","WeakMap","_B","_C","_D","_E","_ComplexSearch_brand","WeakSet","_F","_G","_H","_I","ComplexSearch","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_value","_init_extra_value","_init_placeholder","_init_extra_placeholder","_init_options","_init_extra_options","_init_tooltipUseBrick","_init_extra_tooltipUseBrick","_init_inputChangeEvent","_init_extra_inputChangeEvent","_init_onSearchEvent","_init_extra_onSearchEvent","_init_onSelectEvent","_init_extra_onSelectEvent","_init_onFocusEvent","_init_extra_onFocusEvent","_init_onBlurEvent","_defineProperty","_init_extra_onBlurEvent","value","_classPrivateGetter","this","_get_inputChangeEvent","emit","_get_onSearchEvent","_get_onFocusEvent","_get_onBlurEvent","data","_get_onSelectEvent","_classPrivateFieldGet","v","_classPrivateFieldSet","placeholder","options","tooltipUseBrick","render","React","ComplexSearchComponent","onInputChange","handleInputChange","onSearch","handleSearch","onBlur","handleBlur","onFocus","handleFocus","onSelect","handleSelect","props","t","useTranslation","allowClear","setAllowClear","useState","contentRef","useRef","visible","setVisible","currentData","setCurrentData","positionTop","setPositionTop","tooltipVisible","setTooltipVisible","setValue","useEffect","handleClick","composedPath","some","ele","current","TooltipBrick","useMemo","useBrick","className","style","top","visibility","opacity","onMouseEnter","onMouseLeave","ReactUseMultipleBricks","document","addEventListener","removeEventListener","ref","type","onChange","e","handleValueChange","val","target","onKeyDown","key","lib","icon","theme","onClick","onClearValue","length","map","option","index","handleMouseEnter","getBoundingClientRect","name","_extends","src","empty","alt","_ComplexSearch2","_set_inputChangeEvent","_set_onSearchEvent","_set_onSelectEvent","_set_onFocusEvent","_set_onBlurEvent","c","_initClass","_applyDecs","styleTexts","variablesStyleText","styleText","attribute","o","_","has","_checkInRHS","___CSS_LOADER_EXPORT___","push","module","id","toString","exports","cssWithMappingToString","list","item","content","needLayer","concat","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","Object","TypeError","_checkPrivateRedeclaration","obj","privateCollection","privateMap","set","privateSet","add","defineProperty","enumerable","configurable","writable","assign","bind","source","prototype","hasOwnProperty","call","apply","setFunctionName","n","description","toPropertyKey","r","Symbol","toPrimitive","String","_typeof","iterator"],"sourceRoot":""}