@next-bricks/data-view 0.24.11 → 0.24.12

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 (232) hide show
  1. package/dist/bricks.json +3 -3
  2. package/dist/chunks/{1646.5675f46d.js → 1646.e4e6740e.js} +2 -2
  3. package/dist/chunks/{1646.5675f46d.js.map → 1646.e4e6740e.js.map} +1 -1
  4. package/dist/chunks/{2108.10068511.js → 2108.5f01b564.js} +2 -2
  5. package/dist/chunks/{2108.10068511.js.map → 2108.5f01b564.js.map} +1 -1
  6. package/dist/chunks/238.41ce851b.js +2 -0
  7. package/dist/chunks/238.41ce851b.js.map +1 -0
  8. package/dist/chunks/2618.67db3e10.js +2 -0
  9. package/dist/chunks/2618.67db3e10.js.map +1 -0
  10. package/dist/chunks/2754.94e9d16c.js +2 -0
  11. package/dist/chunks/2754.94e9d16c.js.map +1 -0
  12. package/dist/chunks/3458.ddfd0042.js +2 -0
  13. package/dist/chunks/{3458.21ecf01c.js.map → 3458.ddfd0042.js.map} +1 -1
  14. package/dist/chunks/4049.353060ed.js +2 -0
  15. package/dist/chunks/4049.353060ed.js.map +1 -0
  16. package/dist/chunks/4791.ca13047b.js +2 -0
  17. package/dist/chunks/4791.ca13047b.js.map +1 -0
  18. package/dist/chunks/5151.0e3d7d9c.js +2 -0
  19. package/dist/chunks/5151.0e3d7d9c.js.map +1 -0
  20. package/dist/chunks/{5381.ec2fb357.js → 5381.d5d29e03.js} +2 -2
  21. package/dist/chunks/{5381.ec2fb357.js.map → 5381.d5d29e03.js.map} +1 -1
  22. package/dist/chunks/{5636.c601ae49.js → 5636.7d8bfe19.js} +2 -2
  23. package/dist/chunks/{5636.c601ae49.js.map → 5636.7d8bfe19.js.map} +1 -1
  24. package/dist/chunks/{5725.fa319c62.js → 5725.870c5e8e.js} +2 -2
  25. package/dist/chunks/{5725.fa319c62.js.map → 5725.870c5e8e.js.map} +1 -1
  26. package/dist/chunks/6205.c78008cc.js +2 -0
  27. package/dist/chunks/6205.c78008cc.js.map +1 -0
  28. package/dist/chunks/{6473.2f312932.js → 6473.5dde770f.js} +2 -2
  29. package/dist/chunks/{6473.2f312932.js.map → 6473.5dde770f.js.map} +1 -1
  30. package/dist/chunks/{6660.1d6aa118.js → 6660.7f9c2cad.js} +2 -2
  31. package/dist/chunks/{6660.1d6aa118.js.map → 6660.7f9c2cad.js.map} +1 -1
  32. package/dist/chunks/7067.8447e660.js +2 -0
  33. package/dist/chunks/7067.8447e660.js.map +1 -0
  34. package/dist/chunks/7164.21c2fda7.js +2 -0
  35. package/dist/chunks/7164.21c2fda7.js.map +1 -0
  36. package/dist/chunks/{7672.0691cd05.js → 7672.7dc21716.js} +2 -2
  37. package/dist/chunks/{7672.0691cd05.js.map → 7672.7dc21716.js.map} +1 -1
  38. package/dist/chunks/{7746.20ab5bb5.js → 7746.591c9ea2.js} +2 -2
  39. package/dist/chunks/{7746.20ab5bb5.js.map → 7746.591c9ea2.js.map} +1 -1
  40. package/dist/chunks/{8442.5751dc28.js → 8442.2a6aa66c.js} +2 -2
  41. package/dist/chunks/{8442.5751dc28.js.map → 8442.2a6aa66c.js.map} +1 -1
  42. package/dist/chunks/8498.dc88fd37.js +2 -0
  43. package/dist/chunks/8498.dc88fd37.js.map +1 -0
  44. package/dist/chunks/8561.cbbe737f.js +2 -0
  45. package/dist/chunks/8561.cbbe737f.js.map +1 -0
  46. package/dist/chunks/8691.ff5bcf91.js +2 -0
  47. package/dist/chunks/{8691.4ef19088.js.map → 8691.ff5bcf91.js.map} +1 -1
  48. package/dist/chunks/9549.5604ae4c.js +2 -0
  49. package/dist/chunks/9549.5604ae4c.js.map +1 -0
  50. package/dist/chunks/{9809.5ce050d2.js → 9809.47ef7844.js} +2 -2
  51. package/dist/chunks/{9809.5ce050d2.js.map → 9809.47ef7844.js.map} +1 -1
  52. package/dist/chunks/{app-wall-card-item.2a4712ef.js → app-wall-card-item.12afc3a2.js} +3 -3
  53. package/dist/chunks/app-wall-card-item.12afc3a2.js.map +1 -0
  54. package/dist/chunks/{app-wall-relation-line.dc0c61bf.js → app-wall-relation-line.760b997e.js} +3 -3
  55. package/dist/chunks/app-wall-relation-line.760b997e.js.map +1 -0
  56. package/dist/chunks/{app-wall-system-card.b20df312.js → app-wall-system-card.564facd9.js} +2 -2
  57. package/dist/chunks/app-wall-system-card.564facd9.js.map +1 -0
  58. package/dist/chunks/app-wall.0ec49931.js +2 -0
  59. package/dist/chunks/app-wall.0ec49931.js.map +1 -0
  60. package/dist/chunks/basic-index-group.737bf9d1.js +2 -0
  61. package/dist/chunks/basic-index-group.737bf9d1.js.map +1 -0
  62. package/dist/chunks/{battery-chart.46a4f780.js → battery-chart.7e73f2c5.js} +2 -2
  63. package/dist/chunks/battery-chart.7e73f2c5.js.map +1 -0
  64. package/dist/chunks/brick-notification.7b40e769.js +2 -0
  65. package/dist/chunks/brick-notification.7b40e769.js.map +1 -0
  66. package/dist/chunks/cabinet-app-layer.bc4c1753.js +3 -0
  67. package/dist/chunks/cabinet-app-layer.bc4c1753.js.map +1 -0
  68. package/dist/chunks/cabinet-button.38eab7f4.js +2 -0
  69. package/dist/chunks/cabinet-button.38eab7f4.js.map +1 -0
  70. package/dist/chunks/{cabinet-container.32763d76.js → cabinet-container.87c1a7f4.js} +3 -3
  71. package/dist/chunks/{cabinet-container.32763d76.js.map → cabinet-container.87c1a7f4.js.map} +1 -1
  72. package/dist/chunks/cabinet-graph.837b85ea.js +2 -0
  73. package/dist/chunks/cabinet-graph.837b85ea.js.map +1 -0
  74. package/dist/chunks/{cabinet-node.a54abeda.js → cabinet-node.7485831e.js} +3 -3
  75. package/dist/chunks/cabinet-node.7485831e.js.map +1 -0
  76. package/dist/chunks/{cabinet-thumbnail.9b9ed679.js → cabinet-thumbnail.1b5fc26a.js} +3 -3
  77. package/dist/chunks/{cabinet-thumbnail.9b9ed679.js.map → cabinet-thumbnail.1b5fc26a.js.map} +1 -1
  78. package/dist/chunks/{complex-search.168ede77.js → complex-search.12030068.js} +2 -2
  79. package/dist/chunks/complex-search.12030068.js.map +1 -0
  80. package/dist/chunks/data-display-flipper-fifth.c1c2a94f.js +2 -0
  81. package/dist/chunks/data-display-flipper-fifth.c1c2a94f.js.map +1 -0
  82. package/dist/chunks/data-display-flipper-sixth.06296c00.js +2 -0
  83. package/dist/chunks/data-display-flipper-sixth.06296c00.js.map +1 -0
  84. package/dist/chunks/data-display-flipper.7895bc79.js +2 -0
  85. package/dist/chunks/data-display-flipper.7895bc79.js.map +1 -0
  86. package/dist/chunks/{dropdown-menu.58bd8241.js → dropdown-menu.1e1c129e.js} +3 -3
  87. package/dist/chunks/dropdown-menu.1e1c129e.js.map +1 -0
  88. package/dist/chunks/gauge-chart.4c08bebf.js +2 -0
  89. package/dist/chunks/gauge-chart.4c08bebf.js.map +1 -0
  90. package/dist/chunks/{gear-background.65d1bfed.js → gear-background.1004e004.js} +2 -2
  91. package/dist/chunks/gear-background.1004e004.js.map +1 -0
  92. package/dist/chunks/graph-layout-grid.39e290f0.js +2 -0
  93. package/dist/chunks/graph-layout-grid.39e290f0.js.map +1 -0
  94. package/dist/chunks/graph-node.16f01641.js +2 -0
  95. package/dist/chunks/graph-node.16f01641.js.map +1 -0
  96. package/dist/chunks/graph-text.35db4a80.js +2 -0
  97. package/dist/chunks/graph-text.35db4a80.js.map +1 -0
  98. package/dist/chunks/{grid-background.11eae64c.js → grid-background.d876242f.js} +2 -2
  99. package/dist/chunks/grid-background.d876242f.js.map +1 -0
  100. package/dist/chunks/{hi-tech-button.f7015f5e.js → hi-tech-button.c38b2875.js} +2 -2
  101. package/dist/chunks/hi-tech-button.c38b2875.js.map +1 -0
  102. package/dist/chunks/indicator-card.70f63811.js +3 -0
  103. package/dist/chunks/indicator-card.70f63811.js.map +1 -0
  104. package/dist/chunks/lights-component-title.7d8273db.js +2 -0
  105. package/dist/chunks/lights-component-title.7d8273db.js.map +1 -0
  106. package/dist/chunks/{loading-panel.a416516b.js → loading-panel.12237856.js} +2 -2
  107. package/dist/chunks/{loading-panel.a416516b.js.map → loading-panel.12237856.js.map} +1 -1
  108. package/dist/chunks/main.51e87582.js +2 -0
  109. package/dist/chunks/{main.53570ce8.js.map → main.51e87582.js.map} +1 -1
  110. package/dist/chunks/{modern-style-component-title.868e37d5.js → modern-style-component-title.846cb232.js} +2 -2
  111. package/dist/chunks/modern-style-component-title.846cb232.js.map +1 -0
  112. package/dist/chunks/{modern-style-page-title.ea34a09c.js → modern-style-page-title.7d0763e1.js} +2 -2
  113. package/dist/chunks/modern-style-page-title.7d0763e1.js.map +1 -0
  114. package/dist/chunks/{modern-style-treemap.7882ecdb.js → modern-style-treemap.40ab624c.js} +3 -3
  115. package/dist/chunks/{modern-style-treemap.7882ecdb.js.map → modern-style-treemap.40ab624c.js.map} +1 -1
  116. package/dist/chunks/{particle-animation.1b52fc37.js → particle-animation.3e89a6bc.js} +2 -2
  117. package/dist/chunks/particle-animation.3e89a6bc.js.map +1 -0
  118. package/dist/chunks/radar-chart.059d9307.js +2 -0
  119. package/dist/chunks/radar-chart.059d9307.js.map +1 -0
  120. package/dist/chunks/simple-card-item.2f1689e8.js +3 -0
  121. package/dist/chunks/simple-card-item.2f1689e8.js.map +1 -0
  122. package/dist/chunks/{tabs-drawer.314f831a.js → tabs-drawer.7e7c0613.js} +3 -3
  123. package/dist/chunks/tabs-drawer.7e7c0613.js.map +1 -0
  124. package/dist/chunks/{tabs-page-title.1850ce50.js → tabs-page-title.3df2dee7.js} +3 -3
  125. package/dist/chunks/tabs-page-title.3df2dee7.js.map +1 -0
  126. package/dist/chunks/tech-mesh-base-view.c913b52d.js +2 -0
  127. package/dist/chunks/tech-mesh-base-view.c913b52d.js.map +1 -0
  128. package/dist/chunks/title-text.4098b32d.js +2 -0
  129. package/dist/chunks/title-text.4098b32d.js.map +1 -0
  130. package/dist/chunks/{top-title-bar.2a5f567b.js → top-title-bar.ac4bf303.js} +2 -2
  131. package/dist/chunks/top-title-bar.ac4bf303.js.map +1 -0
  132. package/dist/examples.json +6 -6
  133. package/dist/index.23edef0b.js +2 -0
  134. package/dist/index.23edef0b.js.map +1 -0
  135. package/dist/manifest.json +101 -101
  136. package/dist/types.json +417 -417
  137. package/package.json +4 -4
  138. package/dist/chunks/2502.fc376a5d.js +0 -2
  139. package/dist/chunks/2502.fc376a5d.js.map +0 -1
  140. package/dist/chunks/3458.21ecf01c.js +0 -2
  141. package/dist/chunks/4049.c372388d.js +0 -2
  142. package/dist/chunks/4049.c372388d.js.map +0 -1
  143. package/dist/chunks/443.5c72124e.js +0 -2
  144. package/dist/chunks/443.5c72124e.js.map +0 -1
  145. package/dist/chunks/4991.d9c05e27.js +0 -2
  146. package/dist/chunks/4991.d9c05e27.js.map +0 -1
  147. package/dist/chunks/5151.afc0178c.js +0 -2
  148. package/dist/chunks/5151.afc0178c.js.map +0 -1
  149. package/dist/chunks/6205.47ceedb0.js +0 -2
  150. package/dist/chunks/6205.47ceedb0.js.map +0 -1
  151. package/dist/chunks/7067.fcc18874.js +0 -2
  152. package/dist/chunks/7067.fcc18874.js.map +0 -1
  153. package/dist/chunks/7164.4f9a2857.js +0 -2
  154. package/dist/chunks/7164.4f9a2857.js.map +0 -1
  155. package/dist/chunks/8498.81b59274.js +0 -2
  156. package/dist/chunks/8498.81b59274.js.map +0 -1
  157. package/dist/chunks/8561.55a06c6b.js +0 -2
  158. package/dist/chunks/8561.55a06c6b.js.map +0 -1
  159. package/dist/chunks/8588.61711702.js +0 -2
  160. package/dist/chunks/8588.61711702.js.map +0 -1
  161. package/dist/chunks/8691.4ef19088.js +0 -2
  162. package/dist/chunks/9549.69065a0a.js +0 -2
  163. package/dist/chunks/9549.69065a0a.js.map +0 -1
  164. package/dist/chunks/app-wall-card-item.2a4712ef.js.map +0 -1
  165. package/dist/chunks/app-wall-relation-line.dc0c61bf.js.map +0 -1
  166. package/dist/chunks/app-wall-system-card.b20df312.js.map +0 -1
  167. package/dist/chunks/app-wall.7e47ab87.js +0 -2
  168. package/dist/chunks/app-wall.7e47ab87.js.map +0 -1
  169. package/dist/chunks/basic-index-group.930f5ee7.js +0 -2
  170. package/dist/chunks/basic-index-group.930f5ee7.js.map +0 -1
  171. package/dist/chunks/battery-chart.46a4f780.js.map +0 -1
  172. package/dist/chunks/brick-notification.1df78b13.js +0 -2
  173. package/dist/chunks/brick-notification.1df78b13.js.map +0 -1
  174. package/dist/chunks/cabinet-app-layer.522e61c4.js +0 -3
  175. package/dist/chunks/cabinet-app-layer.522e61c4.js.map +0 -1
  176. package/dist/chunks/cabinet-button.c01ed2b9.js +0 -2
  177. package/dist/chunks/cabinet-button.c01ed2b9.js.map +0 -1
  178. package/dist/chunks/cabinet-graph.dd354e0d.js +0 -2
  179. package/dist/chunks/cabinet-graph.dd354e0d.js.map +0 -1
  180. package/dist/chunks/cabinet-node.a54abeda.js.map +0 -1
  181. package/dist/chunks/complex-search.168ede77.js.map +0 -1
  182. package/dist/chunks/data-display-flipper-fifth.7ff714bd.js +0 -2
  183. package/dist/chunks/data-display-flipper-fifth.7ff714bd.js.map +0 -1
  184. package/dist/chunks/data-display-flipper-sixth.7ef2d216.js +0 -2
  185. package/dist/chunks/data-display-flipper-sixth.7ef2d216.js.map +0 -1
  186. package/dist/chunks/data-display-flipper.0fd4e655.js +0 -2
  187. package/dist/chunks/data-display-flipper.0fd4e655.js.map +0 -1
  188. package/dist/chunks/dropdown-menu.58bd8241.js.map +0 -1
  189. package/dist/chunks/gauge-chart.3b432743.js +0 -2
  190. package/dist/chunks/gauge-chart.3b432743.js.map +0 -1
  191. package/dist/chunks/gear-background.65d1bfed.js.map +0 -1
  192. package/dist/chunks/graph-layout-grid.1baebba2.js +0 -2
  193. package/dist/chunks/graph-layout-grid.1baebba2.js.map +0 -1
  194. package/dist/chunks/graph-node.df5ea520.js +0 -2
  195. package/dist/chunks/graph-node.df5ea520.js.map +0 -1
  196. package/dist/chunks/graph-text.7abbc945.js +0 -2
  197. package/dist/chunks/graph-text.7abbc945.js.map +0 -1
  198. package/dist/chunks/grid-background.11eae64c.js.map +0 -1
  199. package/dist/chunks/hi-tech-button.f7015f5e.js.map +0 -1
  200. package/dist/chunks/indicator-card.430e0838.js +0 -3
  201. package/dist/chunks/indicator-card.430e0838.js.map +0 -1
  202. package/dist/chunks/lights-component-title.82753b9d.js +0 -2
  203. package/dist/chunks/lights-component-title.82753b9d.js.map +0 -1
  204. package/dist/chunks/main.53570ce8.js +0 -2
  205. package/dist/chunks/modern-style-component-title.868e37d5.js.map +0 -1
  206. package/dist/chunks/modern-style-page-title.ea34a09c.js.map +0 -1
  207. package/dist/chunks/particle-animation.1b52fc37.js.map +0 -1
  208. package/dist/chunks/radar-chart.bab0ff9c.js +0 -2
  209. package/dist/chunks/radar-chart.bab0ff9c.js.map +0 -1
  210. package/dist/chunks/simple-card-item.4a9c0db4.js +0 -3
  211. package/dist/chunks/simple-card-item.4a9c0db4.js.map +0 -1
  212. package/dist/chunks/tabs-drawer.314f831a.js.map +0 -1
  213. package/dist/chunks/tabs-page-title.1850ce50.js.map +0 -1
  214. package/dist/chunks/tech-mesh-base-view.10f53604.js +0 -2
  215. package/dist/chunks/tech-mesh-base-view.10f53604.js.map +0 -1
  216. package/dist/chunks/title-text.bebb548c.js +0 -2
  217. package/dist/chunks/title-text.bebb548c.js.map +0 -1
  218. package/dist/chunks/top-title-bar.2a5f567b.js.map +0 -1
  219. package/dist/index.abbcb0bd.js +0 -2
  220. package/dist/index.abbcb0bd.js.map +0 -1
  221. /package/dist/chunks/{app-wall-card-item.2a4712ef.js.LICENSE.txt → app-wall-card-item.12afc3a2.js.LICENSE.txt} +0 -0
  222. /package/dist/chunks/{app-wall-relation-line.dc0c61bf.js.LICENSE.txt → app-wall-relation-line.760b997e.js.LICENSE.txt} +0 -0
  223. /package/dist/chunks/{cabinet-app-layer.522e61c4.js.LICENSE.txt → cabinet-app-layer.bc4c1753.js.LICENSE.txt} +0 -0
  224. /package/dist/chunks/{cabinet-container.32763d76.js.LICENSE.txt → cabinet-container.87c1a7f4.js.LICENSE.txt} +0 -0
  225. /package/dist/chunks/{cabinet-node.a54abeda.js.LICENSE.txt → cabinet-node.7485831e.js.LICENSE.txt} +0 -0
  226. /package/dist/chunks/{cabinet-thumbnail.9b9ed679.js.LICENSE.txt → cabinet-thumbnail.1b5fc26a.js.LICENSE.txt} +0 -0
  227. /package/dist/chunks/{dropdown-menu.58bd8241.js.LICENSE.txt → dropdown-menu.1e1c129e.js.LICENSE.txt} +0 -0
  228. /package/dist/chunks/{indicator-card.430e0838.js.LICENSE.txt → indicator-card.70f63811.js.LICENSE.txt} +0 -0
  229. /package/dist/chunks/{modern-style-treemap.7882ecdb.js.LICENSE.txt → modern-style-treemap.40ab624c.js.LICENSE.txt} +0 -0
  230. /package/dist/chunks/{simple-card-item.4a9c0db4.js.LICENSE.txt → simple-card-item.2f1689e8.js.LICENSE.txt} +0 -0
  231. /package/dist/chunks/{tabs-drawer.314f831a.js.LICENSE.txt → tabs-drawer.7e7c0613.js.LICENSE.txt} +0 -0
  232. /package/dist/chunks/{tabs-page-title.1850ce50.js.LICENSE.txt → tabs-page-title.3df2dee7.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/7672.0691cd05.js","mappings":"mOAAWA,EAA6B,SAAUA,GAUhD,OATAA,EAAcA,EAAuB,QAAI,GAAK,UAC9CA,EAAcA,EAA2B,YAAI,GAAK,cAClDA,EAAcA,EAA0C,2BAAI,GAAK,6BACjEA,EAAcA,EAAkC,mBAAI,GAAK,qBACzDA,EAAcA,EAAuC,wBAAI,GAAK,0BAC9DA,EAAcA,EAAoC,qBAAI,GAAK,uBAC3DA,EAAcA,EAAgD,iCAAI,GAAK,mCACvEA,EAAcA,EAAmC,oBAAI,GAAK,sBAC1DA,EAAcA,EAAoC,qBAAI,GAAK,uBACpDA,CACT,CAXwC,CAWtC,CAAC,GACQC,EAAyB,SAAUA,GAW5C,OAVAA,EAAe,IAAI,MACnBA,EAA4B,iBAAI,mBAChCA,EAAiB,MAAI,QACrBA,EAA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QV,EAAQuB,QACd,KAAKnC,EAAciE,QACjBtD,EAA0CC,GAC1C,MACF,KAAKZ,EAAcoC,YACjBE,EAAc1B,GACd2B,EAAS3B,GACT,MACF,KAAKZ,EAAcyC,2BACjBH,EAAc1B,GACd8B,EAAmB9B,GACnB,MACF,KAAKZ,EAAc4C,mBACjBN,EAAc1B,GACdkC,EAAgBlC,GAChB,MACF,KAAKZ,EAAc6C,wBACjBP,EAAc1B,GACdoC,EAAqBpC,GACrB,MACF,KAAKZ,EAAckD,qBACjBZ,EAAc1B,GACdwC,EAAkBxC,GAClB,MACF,KAAKZ,EAAc0D,iCACjBpB,EAAc1B,GACd+C,EAA8B/C,GAC9B,MACF,KAAKZ,EAAc6D,oBACjBvB,EAAc1B,GACdkD,EAAiBlD,GACjB,MACF,KAAKZ,EAAcmD,qBACjBb,EAAc1B,GACdmD,EAAkBnD,GAIxB,GAAIA,EAAQuB,SAAWnC,EAAciE,QACnC,MAAM,IAAIX,MAAM,6CAElB,OAAO1C,EAAQa,MACjB,CErDqBiH,CAASrG,EAAKjC,GACnC,CDgBauI,CAAsBtG,EAAKjC,GACpB2H,SAASxH,KAAIyF,GAAsB,cAAdA,EAAKrE,KAAuBqE,EAAKnE,MAAwB,MAAhBmE,EAAKxF,OAAiB+F,EAAWP,GAAQD,EAAcC,KAKjH,IAAlBF,EAAOxE,OACFwE,EAAO,GAKTA,EAAOpF,KAAK,GATrB,C","sources":["webpack:///../../node_modules/@next-core/inject/dist/esm/interfaces.js","webpack:///../../node_modules/@next-core/inject/dist/esm/lexical.js","webpack:///../../node_modules/@next-core/inject/dist/esm/compile.js","webpack:///../../node_modules/@next-core/inject/dist/esm/syntax.js"],"sourcesContent":["export var LexicalStatus = /*#__PURE__*/function (LexicalStatus) {\n LexicalStatus[LexicalStatus[\"Initial\"] = 0] = \"Initial\";\n LexicalStatus[LexicalStatus[\"ExpectField\"] = 1] = \"ExpectField\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginDefault\"] = 2] = \"ExpectOptionalBeginDefault\";\n LexicalStatus[LexicalStatus[\"ExpectDefaultValue\"] = 3] = \"ExpectDefaultValue\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipe\"] = 4] = \"ExpectOptionalBeginPipe\";\n LexicalStatus[LexicalStatus[\"ExpectPipeIdentifier\"] = 5] = \"ExpectPipeIdentifier\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipeParameter\"] = 6] = \"ExpectOptionalBeginPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPipeParameter\"] = 7] = \"ExpectPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPlaceholderEnd\"] = 8] = \"ExpectPlaceholderEnd\";\n return LexicalStatus;\n}({});\nexport var TokenType = /*#__PURE__*/function (TokenType) {\n TokenType[\"Raw\"] = \"Raw\";\n TokenType[\"BeginPlaceHolder\"] = \"BeginPlaceHolder\";\n TokenType[\"Field\"] = \"Field\";\n TokenType[\"BeginDefault\"] = \"BeginDefault\";\n TokenType[\"LiteralString\"] = \"LiteralString\";\n TokenType[\"BeginPipe\"] = \"BeginPipe\";\n TokenType[\"PipeIdentifier\"] = \"PipeIdentifier\";\n TokenType[\"BeginPipeParameter\"] = \"BeginPipeParameter\";\n TokenType[\"EndPlaceHolder\"] = \"EndPlaceHolder\";\n TokenType[\"JsonValue\"] = \"JsonValue\";\n return TokenType;\n}({});\nexport var JsonValueType = /*#__PURE__*/function (JsonValueType) {\n JsonValueType[JsonValueType[\"Array\"] = 0] = \"Array\";\n JsonValueType[JsonValueType[\"Object\"] = 1] = \"Object\";\n JsonValueType[JsonValueType[\"String\"] = 2] = \"String\";\n JsonValueType[JsonValueType[\"Others\"] = 3] = \"Others\";\n return JsonValueType;\n}({});\n//# sourceMappingURL=interfaces.js.map","import { escapeRegExp } from \"lodash\";\nimport { LexicalStatus, TokenType, JsonValueType } from \"./interfaces.js\";\nexport function getRegExpOfPlaceholder(symbols) {\n return new RegExp(\"(\".concat([].concat(symbols).map(symbol => escapeRegExp(symbol)).join(\"|\"), \")\\\\{\"));\n}\nexport function tokenize(raw, symbols) {\n var context = {\n beginPlaceholder: getRegExpOfPlaceholder(symbols),\n raw,\n cursor: 0,\n status: LexicalStatus.Initial,\n tokens: []\n };\n while (context.cursor < raw.length) {\n switch (context.status) {\n case LexicalStatus.Initial:\n eatOptionalRawAndOptionalPlaceholderBegin(context);\n break;\n case LexicalStatus.ExpectField:\n eatWhitespace(context);\n eatField(context);\n break;\n case LexicalStatus.ExpectOptionalBeginDefault:\n eatWhitespace(context);\n eatOptionalDefault(context);\n break;\n case LexicalStatus.ExpectDefaultValue:\n eatWhitespace(context);\n eatDefaultValue(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipe:\n eatWhitespace(context);\n eatOptionalBeginPipe(context);\n break;\n case LexicalStatus.ExpectPipeIdentifier:\n eatWhitespace(context);\n eatPipeIdentifier(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipeParameter:\n eatWhitespace(context);\n eatOptionalBeginPipeParameter(context);\n break;\n case LexicalStatus.ExpectPipeParameter:\n eatWhitespace(context);\n eatPipeParameter(context);\n break;\n case LexicalStatus.ExpectPlaceholderEnd:\n eatWhitespace(context);\n eatPlaceholderEnd(context);\n break;\n }\n }\n if (context.status !== LexicalStatus.Initial) {\n throw new Error(\"Expected a placeholder end '}' at the end\");\n }\n return context.tokens;\n}\nfunction eatOptionalRawAndOptionalPlaceholderBegin(context) {\n var _subRaw$match;\n var subRaw = getSubRaw(context);\n var matchedPlaceholder = (_subRaw$match = subRaw.match(context.beginPlaceholder)) === null || _subRaw$match === void 0 ? void 0 : _subRaw$match[0];\n var subCursor = matchedPlaceholder ? subRaw.indexOf(matchedPlaceholder) : -1;\n if (subCursor >= 0 && matchedPlaceholder && subRaw.charAt(subCursor + matchedPlaceholder.length) !== \"{\") {\n var nextCursor = context.cursor + subCursor;\n if (subCursor > 0) {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw.substring(0, subCursor)\n });\n }\n context.tokens.push({\n type: TokenType.BeginPlaceHolder,\n loc: {\n start: nextCursor,\n end: nextCursor + matchedPlaceholder.length\n },\n value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)\n });\n context.cursor += subCursor + matchedPlaceholder.length;\n context.status = LexicalStatus.ExpectField;\n } else {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw\n });\n context.cursor = context.raw.length;\n }\n}\nfunction eatWhitespace(context) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n context.cursor += getSubRaw(context).match(/^[ \\r\\n\\t]*/)[0].length;\n}\nfunction eatField(context) {\n // Only allow alphanumeric, `_`, `.`, `*`, `[`, `]`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var [value] = getSubRaw(context).match(/^(?:[\\*\\x2D\\.0-9A-\\[\\]_a-z\\x80-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*/);\n context.tokens.push({\n type: TokenType.Field,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginDefault;\n}\nfunction eatOptionalDefault(context) {\n if (getSubRaw(context).charAt(0) === \"=\") {\n context.tokens.push({\n type: TokenType.BeginDefault\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectDefaultValue;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatDefaultValue(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipe);\n}\nfunction eatOptionalBeginPipe(context) {\n if (getSubRaw(context).charAt(0) === \"|\") {\n context.tokens.push({\n type: TokenType.BeginPipe\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeIdentifier;\n } else {\n context.status = LexicalStatus.ExpectPlaceholderEnd;\n }\n}\nfunction eatPipeIdentifier(context) {\n var matches = getSubRaw(context).match(/^[a-zA-Z]\\w*/);\n if (!matches) {\n throw new Error(\"Expected a pipe identifier at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n var value = matches[0];\n context.tokens.push({\n type: TokenType.PipeIdentifier,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginPipeParameter;\n}\nfunction eatOptionalBeginPipeParameter(context) {\n if (getSubRaw(context).charAt(0) === \":\") {\n context.tokens.push({\n type: TokenType.BeginPipeParameter\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeParameter;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatPipeParameter(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipeParameter);\n}\nfunction eatPlaceholderEnd(context) {\n if (getSubRaw(context).charAt(0) === \"}\") {\n context.tokens.push({\n type: TokenType.EndPlaceHolder,\n loc: {\n start: context.cursor,\n end: context.cursor + 1\n }\n });\n context.cursor += 1;\n context.status = LexicalStatus.Initial;\n } else {\n throw new Error(\"Expected a placeholder end '}' at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n}\nvar jsonLiteralMap = new Map([[\"false\", false], [\"null\", null], [\"true\", true]]);\nfunction eatJsonValueOrLiteralString(context, nextStatus) {\n var subRaw = getSubRaw(context);\n if (/[0-9[{\"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {\n eatJsonValue(context, nextStatus);\n } else {\n // Accept any characters except controls and whitespace.\n // Only allow alphanumeric, `_`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var [value] = getSubRaw(context).match(/^(?:[\\x2D0-9A-Z_a-z\\x80-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*/);\n if (jsonLiteralMap.has(value)) {\n context.tokens.push({\n type: TokenType.JsonValue,\n value: jsonLiteralMap.get(value)\n });\n } else {\n context.tokens.push({\n type: TokenType.LiteralString,\n value\n });\n }\n context.cursor += value.length;\n context.status = nextStatus;\n }\n}\n\n// 我们不需要非常精确地在一段字符串中匹配出一段*完整合法的* JSON value,\n// 而只需要找到一段*可能是完整合法的* JSON value 即可,解析的工作交给 `JSON.parse()`。\n// 由于 JSON 中 object/array/string 的镜像起止符特性,我们尝试去完成这些符号匹配即可。\nfunction eatJsonValue(context, nextStatus) {\n var subRaw = getSubRaw(context);\n var firstChar = subRaw.charAt(0);\n var valueType = firstChar === \"[\" ? JsonValueType.Array : firstChar === \"{\" ? JsonValueType.Object : firstChar === '\"' ? JsonValueType.String : JsonValueType.Others;\n var subCursor = 0;\n var objectBracesToMatch = 0;\n var arrayBracketsToMatch = 0;\n var stringQuotesToClose = false;\n var stringBackslashToEscape = false;\n var matched = false;\n while (subCursor < subRaw.length) {\n var char = subRaw.charAt(subCursor);\n if (stringBackslashToEscape) {\n stringBackslashToEscape = false;\n } else if (stringQuotesToClose) {\n if (char === '\"') {\n stringQuotesToClose = false;\n } else if (char === \"\\\\\") {\n stringBackslashToEscape = true;\n }\n } else {\n switch (char) {\n case \"[\":\n arrayBracketsToMatch += 1;\n break;\n case \"{\":\n objectBracesToMatch += 1;\n break;\n case \"]\":\n arrayBracketsToMatch -= 1;\n break;\n case \"}\":\n objectBracesToMatch -= 1;\n break;\n case '\"':\n stringQuotesToClose = true;\n break;\n }\n }\n subCursor += 1;\n switch (valueType) {\n case JsonValueType.Array:\n matched = !arrayBracketsToMatch;\n break;\n case JsonValueType.Object:\n matched = !objectBracesToMatch;\n break;\n case JsonValueType.String:\n matched = !stringQuotesToClose;\n break;\n default:\n // 对于其它类型,如果下一个字符不再是这些值类型可能的字符时,我们认为 JSON value 完成匹配。\n // 其它可能的值类型:number/boolean/null/undefined。\n matched = subCursor < subRaw.length && /[^a-z0-9E.+-]/.test(subRaw.charAt(subCursor));\n }\n if (matched) {\n break;\n }\n }\n if (!matched) {\n throw new Error(\"Failed to match a JSON value at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n context.tokens.push({\n type: TokenType.JsonValue,\n value: JSON.parse(subRaw.substring(0, subCursor))\n });\n context.cursor += subCursor;\n context.status = nextStatus;\n}\nfunction getSubRaw(context) {\n return context.raw.substring(context.cursor);\n}\n//# sourceMappingURL=lexical.js.map","import { get } from \"lodash\";\nimport { processPipes } from \"@next-core/pipes\";\nimport { parseInjectableString } from \"./syntax.js\";\nimport { getRegExpOfPlaceholder } from \"./lexical.js\";\nexport function transform(raw, context) {\n return compile(raw, \"@\", context);\n}\nexport function inject(raw, context) {\n return compile(raw, \"$\", context);\n}\nexport function transformAndInject(raw, context) {\n return compile(raw, [\"@\", \"$\"], context);\n}\nfunction compile(raw, symbols, context) {\n // const symbols = [\"@\", \"$\"];\n if (!isInjectable(raw, symbols)) {\n return raw;\n }\n var transformNode = transformNodeFactory(context.data);\n var injectNode = injectNodeFactory(context, raw);\n var tree = parseInjectableString(raw, symbols);\n var values = tree.elements.map(node => node.type === \"RawString\" ? node.value : node.symbol === \"$\" ? injectNode(node) : transformNode(node));\n return reduceCompiledValues(values);\n}\nfunction reduceCompiledValues(values) {\n // If the whole string is a placeholder, we should keep the original value.\n if (values.length === 1) {\n return values[0];\n }\n\n // If an element is `undefined`, `null` or an empty array `[]`, it is converted to an empty string.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join#Description\n return values.join(\"\");\n}\nfunction isInjectable(raw, symbols) {\n return getRegExpOfPlaceholder(symbols).test(raw);\n}\nfunction transformNodeFactory(data) {\n return function transformNode(node) {\n // If meet `@{}`, return `data`.\n var result = node.field ? get(data, node.field) : data;\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\nfunction injectNodeFactory(context, raw) {\n return function injectNode(node) {\n var _context$overrideApp, _context$overrideApp2;\n var matches = node.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\\.)?(.+)$/);\n if (!matches) {\n // Keep the original raw partial when meet a unknown namespace.\n return raw.substring(node.loc.start, node.loc.end);\n }\n var [, namespace, subField] = matches;\n\n // Support namespace with no subfield such as `${ANCHOR}`.\n // But distinguish with match params. E.g. `${query}` is a match param.\n if (!namespace && /^[A-Z_]+$/.test(subField)) {\n namespace = subField;\n subField = \"*\";\n }\n var result;\n var SimpleContextMap = {\n SYS: \"sys\",\n FLAGS: \"flags\"\n };\n switch (namespace) {\n case \"QUERY\":\n case \"query\":\n if (subField === \"*\") {\n result = context.query;\n } else {\n result = context.query.has(subField) ? context.query.get(subField) : undefined;\n }\n break;\n case \"QUERY_ARRAY\":\n result = context.query.has(subField) ? context.query.getAll(subField) : undefined;\n break;\n case \"EVENT\":\n case \"event\":\n if (context.event === undefined) {\n // Keep the original raw partial when meet a `${EVENT}` in non-event context.\n return raw.substring(node.loc.start, node.loc.end);\n }\n result = subField === \"*\" ? context.event : get(context.event, subField);\n break;\n case \"APP\":\n result = subField === \"*\" ? (_context$overrideApp = context.overrideApp) !== null && _context$overrideApp !== void 0 ? _context$overrideApp : context.app : get((_context$overrideApp2 = context.overrideApp) !== null && _context$overrideApp2 !== void 0 ? _context$overrideApp2 : context.app, subField);\n break;\n case \"HASH\":\n result = context.location.hash;\n break;\n case \"SYS\":\n case \"FLAGS\":\n result = subField === \"*\" ? context[SimpleContextMap[namespace]] : get(context[SimpleContextMap[namespace]], subField);\n break;\n case \"ANCHOR\":\n {\n var anchor = context.location.hash ? context.location.hash.substr(1) : null;\n result = subField === \"*\" ? anchor : get(anchor, subField);\n break;\n }\n case \"CTX\":\n {\n var original = raw.substring(node.loc.start, node.loc.end);\n // eslint-disable-next-line no-console\n console.error(\"CTX is not supported in placeholder any more: \\\"\".concat(original, \"\\\"\"));\n return original;\n }\n default:\n if (context.match) {\n result = context.match.params[subField];\n } else {\n // If the context is empty, return the original raw partial.\n return raw.substring(node.loc.start, node.loc.end);\n }\n }\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\n//# sourceMappingURL=compile.js.map","import { tokenize } from \"./lexical.js\";\nimport { TokenType } from \"./interfaces.js\";\nexport function parseInjectableString(raw, symbols) {\n return parseTokens(tokenize(raw, symbols));\n}\nfunction parseTokens(tokens) {\n var tree = {\n type: \"InjectableString\",\n elements: []\n };\n var token;\n function optionalToken(type) {\n if (type === tokens[0].type) {\n token = tokens.shift();\n return true;\n }\n return false;\n }\n function acceptToken(type) {\n token = tokens.shift();\n if (Array.isArray(type) ? !type.includes(token.type) : type !== token.type) {\n throw new Error(\"Expected token: \".concat(type, \", received token: \").concat(token.type));\n }\n }\n while (tokens.length > 0) {\n if (optionalToken(TokenType.Raw)) {\n tree.elements.push({\n type: \"RawString\",\n value: token.value\n });\n } else {\n acceptToken(TokenType.BeginPlaceHolder);\n var start = token.loc.start;\n var symbol = token.value;\n acceptToken(TokenType.Field);\n var placeholder = {\n type: \"Placeholder\",\n symbol,\n field: token.value,\n defaultValue: undefined,\n pipes: [],\n loc: {\n start,\n end: start\n }\n };\n tree.elements.push(placeholder);\n if (optionalToken(TokenType.BeginDefault)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n placeholder.defaultValue = token.value;\n }\n while (optionalToken(TokenType.BeginPipe)) {\n acceptToken(TokenType.PipeIdentifier);\n var pipe = {\n type: \"PipeCall\",\n identifier: token.value,\n parameters: []\n };\n placeholder.pipes.push(pipe);\n while (optionalToken(TokenType.BeginPipeParameter)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n pipe.parameters.push(token.value);\n }\n }\n acceptToken(TokenType.EndPlaceHolder);\n placeholder.loc.end = token.loc.end;\n }\n }\n return tree;\n}\n//# sourceMappingURL=syntax.js.map"],"names":["LexicalStatus","TokenType","JsonValueType","getRegExpOfPlaceholder","symbols","RegExp","concat","map","symbol","escapeRegExp","join","eatOptionalRawAndOptionalPlaceholderBegin","context","_subRaw$match","subRaw","getSubRaw","matchedPlaceholder","match","beginPlaceholder","subCursor","indexOf","charAt","length","nextCursor","cursor","tokens","push","type","Raw","value","substring","BeginPlaceHolder","loc","start","end","status","ExpectField","raw","eatWhitespace","eatField","Field","ExpectOptionalBeginDefault","eatOptionalDefault","BeginDefault","ExpectDefaultValue","ExpectOptionalBeginPipe","eatDefaultValue","eatJsonValueOrLiteralString","eatOptionalBeginPipe","BeginPipe","ExpectPipeIdentifier","ExpectPlaceholderEnd","eatPipeIdentifier","matches","Error","JSON","stringify","PipeIdentifier","ExpectOptionalBeginPipeParameter","eatOptionalBeginPipeParameter","BeginPipeParameter","ExpectPipeParameter","eatPipeParameter","eatPlaceholderEnd","EndPlaceHolder","Initial","jsonLiteralMap","Map","nextStatus","test","firstChar","valueType","Array","Object","String","Others","objectBracesToMatch","arrayBracketsToMatch","stringQuotesToClose","stringBackslashToEscape","matched","char","JsonValue","parse","eatJsonValue","has","get","LiteralString","transform","compile","inject","transformAndInject","isInjectable","data","values","transformNode","node","result","field","undefined","defaultValue","processPipes","pipes","injectNode","_context$overrideApp","_context$overrideApp2","namespace","subField","SimpleContextMap","SYS","FLAGS","query","getAll","event","overrideApp","app","location","hash","anchor","substr","original","console","error","params","injectNodeFactory","token","tree","elements","optionalToken","shift","acceptToken","isArray","includes","placeholder","pipe","identifier","parameters","parseTokens","tokenize","parseInjectableString"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/7672.7dc21716.js","mappings":"mOAAWA,EAA6B,SAAUA,GAUhD,OATAA,EAAcA,EAAuB,QAAI,GAAK,UAC9CA,EAAcA,EAA2B,YAAI,GAAK,cAClDA,EAAcA,EAA0C,2BAAI,GAAK,6BACjEA,EAAcA,EAAkC,mBAAI,GAAK,qBACzDA,EAAcA,EAAuC,wBAAI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G,MAE/B,CACAqG,EAAYjI,EAAU+D,gBACtBqE,EAAYrG,IAAIE,IAAM2F,EAAM7F,IAAIE,GAClC,CAEF,OAAO4F,CACT,CAlESW,CFEF,SAAkBpG,EAAKjC,GAQ5B,IAPA,IAAIQ,EAAU,CACZM,iBAAkBf,EAAuBC,GACzCiC,MACAb,OAAQ,EACRW,OAAQnC,EAAciE,QACtBxC,OAAQ,IAEHb,EAAQY,OAASa,EAAIf,QAC1B,OAAQV,EAAQuB,QACd,KAAKnC,EAAciE,QACjBtD,EAA0CC,GAC1C,MACF,KAAKZ,EAAcoC,YACjBE,EAAc1B,GACd2B,EAAS3B,GACT,MACF,KAAKZ,EAAcyC,2BACjBH,EAAc1B,GACd8B,EAAmB9B,GACnB,MACF,KAAKZ,EAAc4C,mBACjBN,EAAc1B,GACdkC,EAAgBlC,GAChB,MACF,KAAKZ,EAAc6C,wBACjBP,EAAc1B,GACdoC,EAAqBpC,GACrB,MACF,KAAKZ,EAAckD,qBACjBZ,EAAc1B,GACdwC,EAAkBxC,GAClB,MACF,KAAKZ,EAAc0D,iCACjBpB,EAAc1B,GACd+C,EAA8B/C,GAC9B,MACF,KAAKZ,EAAc6D,oBACjBvB,EAAc1B,GACdkD,EAAiBlD,GACjB,MACF,KAAKZ,EAAcmD,qBACjBb,EAAc1B,GACdmD,EAAkBnD,GAIxB,GAAIA,EAAQuB,SAAWnC,EAAciE,QACnC,MAAM,IAAIX,MAAM,6CAElB,OAAO1C,EAAQa,MACjB,CErDqBiH,CAASrG,EAAKjC,GACnC,CDgBauI,CAAsBtG,EAAKjC,GACpB2H,SAASxH,KAAIyF,GAAsB,cAAdA,EAAKrE,KAAuBqE,EAAKnE,MAAwB,MAAhBmE,EAAKxF,OAAiB+F,EAAWP,GAAQD,EAAcC,KAKjH,IAAlBF,EAAOxE,OACFwE,EAAO,GAKTA,EAAOpF,KAAK,GATrB,C","sources":["webpack:///../../node_modules/@next-core/inject/dist/esm/interfaces.js","webpack:///../../node_modules/@next-core/inject/dist/esm/lexical.js","webpack:///../../node_modules/@next-core/inject/dist/esm/compile.js","webpack:///../../node_modules/@next-core/inject/dist/esm/syntax.js"],"sourcesContent":["export var LexicalStatus = /*#__PURE__*/function (LexicalStatus) {\n LexicalStatus[LexicalStatus[\"Initial\"] = 0] = \"Initial\";\n LexicalStatus[LexicalStatus[\"ExpectField\"] = 1] = \"ExpectField\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginDefault\"] = 2] = \"ExpectOptionalBeginDefault\";\n LexicalStatus[LexicalStatus[\"ExpectDefaultValue\"] = 3] = \"ExpectDefaultValue\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipe\"] = 4] = \"ExpectOptionalBeginPipe\";\n LexicalStatus[LexicalStatus[\"ExpectPipeIdentifier\"] = 5] = \"ExpectPipeIdentifier\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipeParameter\"] = 6] = \"ExpectOptionalBeginPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPipeParameter\"] = 7] = \"ExpectPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPlaceholderEnd\"] = 8] = \"ExpectPlaceholderEnd\";\n return LexicalStatus;\n}({});\nexport var TokenType = /*#__PURE__*/function (TokenType) {\n TokenType[\"Raw\"] = \"Raw\";\n TokenType[\"BeginPlaceHolder\"] = \"BeginPlaceHolder\";\n TokenType[\"Field\"] = \"Field\";\n TokenType[\"BeginDefault\"] = \"BeginDefault\";\n TokenType[\"LiteralString\"] = \"LiteralString\";\n TokenType[\"BeginPipe\"] = \"BeginPipe\";\n TokenType[\"PipeIdentifier\"] = \"PipeIdentifier\";\n TokenType[\"BeginPipeParameter\"] = \"BeginPipeParameter\";\n TokenType[\"EndPlaceHolder\"] = \"EndPlaceHolder\";\n TokenType[\"JsonValue\"] = \"JsonValue\";\n return TokenType;\n}({});\nexport var JsonValueType = /*#__PURE__*/function (JsonValueType) {\n JsonValueType[JsonValueType[\"Array\"] = 0] = \"Array\";\n JsonValueType[JsonValueType[\"Object\"] = 1] = \"Object\";\n JsonValueType[JsonValueType[\"String\"] = 2] = \"String\";\n JsonValueType[JsonValueType[\"Others\"] = 3] = \"Others\";\n return JsonValueType;\n}({});\n//# sourceMappingURL=interfaces.js.map","import { escapeRegExp } from \"lodash\";\nimport { LexicalStatus, TokenType, JsonValueType } from \"./interfaces.js\";\nexport function getRegExpOfPlaceholder(symbols) {\n return new RegExp(\"(\".concat([].concat(symbols).map(symbol => escapeRegExp(symbol)).join(\"|\"), \")\\\\{\"));\n}\nexport function tokenize(raw, symbols) {\n var context = {\n beginPlaceholder: getRegExpOfPlaceholder(symbols),\n raw,\n cursor: 0,\n status: LexicalStatus.Initial,\n tokens: []\n };\n while (context.cursor < raw.length) {\n switch (context.status) {\n case LexicalStatus.Initial:\n eatOptionalRawAndOptionalPlaceholderBegin(context);\n break;\n case LexicalStatus.ExpectField:\n eatWhitespace(context);\n eatField(context);\n break;\n case LexicalStatus.ExpectOptionalBeginDefault:\n eatWhitespace(context);\n eatOptionalDefault(context);\n break;\n case LexicalStatus.ExpectDefaultValue:\n eatWhitespace(context);\n eatDefaultValue(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipe:\n eatWhitespace(context);\n eatOptionalBeginPipe(context);\n break;\n case LexicalStatus.ExpectPipeIdentifier:\n eatWhitespace(context);\n eatPipeIdentifier(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipeParameter:\n eatWhitespace(context);\n eatOptionalBeginPipeParameter(context);\n break;\n case LexicalStatus.ExpectPipeParameter:\n eatWhitespace(context);\n eatPipeParameter(context);\n break;\n case LexicalStatus.ExpectPlaceholderEnd:\n eatWhitespace(context);\n eatPlaceholderEnd(context);\n break;\n }\n }\n if (context.status !== LexicalStatus.Initial) {\n throw new Error(\"Expected a placeholder end '}' at the end\");\n }\n return context.tokens;\n}\nfunction eatOptionalRawAndOptionalPlaceholderBegin(context) {\n var _subRaw$match;\n var subRaw = getSubRaw(context);\n var matchedPlaceholder = (_subRaw$match = subRaw.match(context.beginPlaceholder)) === null || _subRaw$match === void 0 ? void 0 : _subRaw$match[0];\n var subCursor = matchedPlaceholder ? subRaw.indexOf(matchedPlaceholder) : -1;\n if (subCursor >= 0 && matchedPlaceholder && subRaw.charAt(subCursor + matchedPlaceholder.length) !== \"{\") {\n var nextCursor = context.cursor + subCursor;\n if (subCursor > 0) {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw.substring(0, subCursor)\n });\n }\n context.tokens.push({\n type: TokenType.BeginPlaceHolder,\n loc: {\n start: nextCursor,\n end: nextCursor + matchedPlaceholder.length\n },\n value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)\n });\n context.cursor += subCursor + matchedPlaceholder.length;\n context.status = LexicalStatus.ExpectField;\n } else {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw\n });\n context.cursor = context.raw.length;\n }\n}\nfunction eatWhitespace(context) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n context.cursor += getSubRaw(context).match(/^[ \\r\\n\\t]*/)[0].length;\n}\nfunction eatField(context) {\n // Only allow alphanumeric, `_`, `.`, `*`, `[`, `]`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var [value] = getSubRaw(context).match(/^(?:[\\*\\x2D\\.0-9A-\\[\\]_a-z\\x80-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*/);\n context.tokens.push({\n type: TokenType.Field,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginDefault;\n}\nfunction eatOptionalDefault(context) {\n if (getSubRaw(context).charAt(0) === \"=\") {\n context.tokens.push({\n type: TokenType.BeginDefault\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectDefaultValue;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatDefaultValue(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipe);\n}\nfunction eatOptionalBeginPipe(context) {\n if (getSubRaw(context).charAt(0) === \"|\") {\n context.tokens.push({\n type: TokenType.BeginPipe\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeIdentifier;\n } else {\n context.status = LexicalStatus.ExpectPlaceholderEnd;\n }\n}\nfunction eatPipeIdentifier(context) {\n var matches = getSubRaw(context).match(/^[a-zA-Z]\\w*/);\n if (!matches) {\n throw new Error(\"Expected a pipe identifier at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n var value = matches[0];\n context.tokens.push({\n type: TokenType.PipeIdentifier,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginPipeParameter;\n}\nfunction eatOptionalBeginPipeParameter(context) {\n if (getSubRaw(context).charAt(0) === \":\") {\n context.tokens.push({\n type: TokenType.BeginPipeParameter\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeParameter;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatPipeParameter(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipeParameter);\n}\nfunction eatPlaceholderEnd(context) {\n if (getSubRaw(context).charAt(0) === \"}\") {\n context.tokens.push({\n type: TokenType.EndPlaceHolder,\n loc: {\n start: context.cursor,\n end: context.cursor + 1\n }\n });\n context.cursor += 1;\n context.status = LexicalStatus.Initial;\n } else {\n throw new Error(\"Expected a placeholder end '}' at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n}\nvar jsonLiteralMap = new Map([[\"false\", false], [\"null\", null], [\"true\", true]]);\nfunction eatJsonValueOrLiteralString(context, nextStatus) {\n var subRaw = getSubRaw(context);\n if (/[0-9[{\"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {\n eatJsonValue(context, nextStatus);\n } else {\n // Accept any characters except controls and whitespace.\n // Only allow alphanumeric, `_`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var [value] = getSubRaw(context).match(/^(?:[\\x2D0-9A-Z_a-z\\x80-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*/);\n if (jsonLiteralMap.has(value)) {\n context.tokens.push({\n type: TokenType.JsonValue,\n value: jsonLiteralMap.get(value)\n });\n } else {\n context.tokens.push({\n type: TokenType.LiteralString,\n value\n });\n }\n context.cursor += value.length;\n context.status = nextStatus;\n }\n}\n\n// 我们不需要非常精确地在一段字符串中匹配出一段*完整合法的* JSON value,\n// 而只需要找到一段*可能是完整合法的* JSON value 即可,解析的工作交给 `JSON.parse()`。\n// 由于 JSON 中 object/array/string 的镜像起止符特性,我们尝试去完成这些符号匹配即可。\nfunction eatJsonValue(context, nextStatus) {\n var subRaw = getSubRaw(context);\n var firstChar = subRaw.charAt(0);\n var valueType = firstChar === \"[\" ? JsonValueType.Array : firstChar === \"{\" ? JsonValueType.Object : firstChar === '\"' ? JsonValueType.String : JsonValueType.Others;\n var subCursor = 0;\n var objectBracesToMatch = 0;\n var arrayBracketsToMatch = 0;\n var stringQuotesToClose = false;\n var stringBackslashToEscape = false;\n var matched = false;\n while (subCursor < subRaw.length) {\n var char = subRaw.charAt(subCursor);\n if (stringBackslashToEscape) {\n stringBackslashToEscape = false;\n } else if (stringQuotesToClose) {\n if (char === '\"') {\n stringQuotesToClose = false;\n } else if (char === \"\\\\\") {\n stringBackslashToEscape = true;\n }\n } else {\n switch (char) {\n case \"[\":\n arrayBracketsToMatch += 1;\n break;\n case \"{\":\n objectBracesToMatch += 1;\n break;\n case \"]\":\n arrayBracketsToMatch -= 1;\n break;\n case \"}\":\n objectBracesToMatch -= 1;\n break;\n case '\"':\n stringQuotesToClose = true;\n break;\n }\n }\n subCursor += 1;\n switch (valueType) {\n case JsonValueType.Array:\n matched = !arrayBracketsToMatch;\n break;\n case JsonValueType.Object:\n matched = !objectBracesToMatch;\n break;\n case JsonValueType.String:\n matched = !stringQuotesToClose;\n break;\n default:\n // 对于其它类型,如果下一个字符不再是这些值类型可能的字符时,我们认为 JSON value 完成匹配。\n // 其它可能的值类型:number/boolean/null/undefined。\n matched = subCursor < subRaw.length && /[^a-z0-9E.+-]/.test(subRaw.charAt(subCursor));\n }\n if (matched) {\n break;\n }\n }\n if (!matched) {\n throw new Error(\"Failed to match a JSON value at index \".concat(context.cursor, \" near: \").concat(JSON.stringify(context.raw.substring(context.cursor))));\n }\n context.tokens.push({\n type: TokenType.JsonValue,\n value: JSON.parse(subRaw.substring(0, subCursor))\n });\n context.cursor += subCursor;\n context.status = nextStatus;\n}\nfunction getSubRaw(context) {\n return context.raw.substring(context.cursor);\n}\n//# sourceMappingURL=lexical.js.map","import { get } from \"lodash\";\nimport { processPipes } from \"@next-core/pipes\";\nimport { parseInjectableString } from \"./syntax.js\";\nimport { getRegExpOfPlaceholder } from \"./lexical.js\";\nexport function transform(raw, context) {\n return compile(raw, \"@\", context);\n}\nexport function inject(raw, context) {\n return compile(raw, \"$\", context);\n}\nexport function transformAndInject(raw, context) {\n return compile(raw, [\"@\", \"$\"], context);\n}\nfunction compile(raw, symbols, context) {\n // const symbols = [\"@\", \"$\"];\n if (!isInjectable(raw, symbols)) {\n return raw;\n }\n var transformNode = transformNodeFactory(context.data);\n var injectNode = injectNodeFactory(context, raw);\n var tree = parseInjectableString(raw, symbols);\n var values = tree.elements.map(node => node.type === \"RawString\" ? node.value : node.symbol === \"$\" ? injectNode(node) : transformNode(node));\n return reduceCompiledValues(values);\n}\nfunction reduceCompiledValues(values) {\n // If the whole string is a placeholder, we should keep the original value.\n if (values.length === 1) {\n return values[0];\n }\n\n // If an element is `undefined`, `null` or an empty array `[]`, it is converted to an empty string.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join#Description\n return values.join(\"\");\n}\nfunction isInjectable(raw, symbols) {\n return getRegExpOfPlaceholder(symbols).test(raw);\n}\nfunction transformNodeFactory(data) {\n return function transformNode(node) {\n // If meet `@{}`, return `data`.\n var result = node.field ? get(data, node.field) : data;\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\nfunction injectNodeFactory(context, raw) {\n return function injectNode(node) {\n var _context$overrideApp, _context$overrideApp2;\n var matches = node.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\\.)?(.+)$/);\n if (!matches) {\n // Keep the original raw partial when meet a unknown namespace.\n return raw.substring(node.loc.start, node.loc.end);\n }\n var [, namespace, subField] = matches;\n\n // Support namespace with no subfield such as `${ANCHOR}`.\n // But distinguish with match params. E.g. `${query}` is a match param.\n if (!namespace && /^[A-Z_]+$/.test(subField)) {\n namespace = subField;\n subField = \"*\";\n }\n var result;\n var SimpleContextMap = {\n SYS: \"sys\",\n FLAGS: \"flags\"\n };\n switch (namespace) {\n case \"QUERY\":\n case \"query\":\n if (subField === \"*\") {\n result = context.query;\n } else {\n result = context.query.has(subField) ? context.query.get(subField) : undefined;\n }\n break;\n case \"QUERY_ARRAY\":\n result = context.query.has(subField) ? context.query.getAll(subField) : undefined;\n break;\n case \"EVENT\":\n case \"event\":\n if (context.event === undefined) {\n // Keep the original raw partial when meet a `${EVENT}` in non-event context.\n return raw.substring(node.loc.start, node.loc.end);\n }\n result = subField === \"*\" ? context.event : get(context.event, subField);\n break;\n case \"APP\":\n result = subField === \"*\" ? (_context$overrideApp = context.overrideApp) !== null && _context$overrideApp !== void 0 ? _context$overrideApp : context.app : get((_context$overrideApp2 = context.overrideApp) !== null && _context$overrideApp2 !== void 0 ? _context$overrideApp2 : context.app, subField);\n break;\n case \"HASH\":\n result = context.location.hash;\n break;\n case \"SYS\":\n case \"FLAGS\":\n result = subField === \"*\" ? context[SimpleContextMap[namespace]] : get(context[SimpleContextMap[namespace]], subField);\n break;\n case \"ANCHOR\":\n {\n var anchor = context.location.hash ? context.location.hash.substr(1) : null;\n result = subField === \"*\" ? anchor : get(anchor, subField);\n break;\n }\n case \"CTX\":\n {\n var original = raw.substring(node.loc.start, node.loc.end);\n // eslint-disable-next-line no-console\n console.error(\"CTX is not supported in placeholder any more: \\\"\".concat(original, \"\\\"\"));\n return original;\n }\n default:\n if (context.match) {\n result = context.match.params[subField];\n } else {\n // If the context is empty, return the original raw partial.\n return raw.substring(node.loc.start, node.loc.end);\n }\n }\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\n//# sourceMappingURL=compile.js.map","import { tokenize } from \"./lexical.js\";\nimport { TokenType } from \"./interfaces.js\";\nexport function parseInjectableString(raw, symbols) {\n return parseTokens(tokenize(raw, symbols));\n}\nfunction parseTokens(tokens) {\n var tree = {\n type: \"InjectableString\",\n elements: []\n };\n var token;\n function optionalToken(type) {\n if (type === tokens[0].type) {\n token = tokens.shift();\n return true;\n }\n return false;\n }\n function acceptToken(type) {\n token = tokens.shift();\n if (Array.isArray(type) ? !type.includes(token.type) : type !== token.type) {\n throw new Error(\"Expected token: \".concat(type, \", received token: \").concat(token.type));\n }\n }\n while (tokens.length > 0) {\n if (optionalToken(TokenType.Raw)) {\n tree.elements.push({\n type: \"RawString\",\n value: token.value\n });\n } else {\n acceptToken(TokenType.BeginPlaceHolder);\n var start = token.loc.start;\n var symbol = token.value;\n acceptToken(TokenType.Field);\n var placeholder = {\n type: \"Placeholder\",\n symbol,\n field: token.value,\n defaultValue: undefined,\n pipes: [],\n loc: {\n start,\n end: start\n }\n };\n tree.elements.push(placeholder);\n if (optionalToken(TokenType.BeginDefault)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n placeholder.defaultValue = token.value;\n }\n while (optionalToken(TokenType.BeginPipe)) {\n acceptToken(TokenType.PipeIdentifier);\n var pipe = {\n type: \"PipeCall\",\n identifier: token.value,\n parameters: []\n };\n placeholder.pipes.push(pipe);\n while (optionalToken(TokenType.BeginPipeParameter)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n pipe.parameters.push(token.value);\n }\n }\n acceptToken(TokenType.EndPlaceHolder);\n placeholder.loc.end = token.loc.end;\n }\n }\n return tree;\n}\n//# sourceMappingURL=syntax.js.map"],"names":["LexicalStatus","TokenType","JsonValueType","getRegExpOfPlaceholder","symbols","RegExp","concat","map","symbol","escapeRegExp","join","eatOptionalRawAndOptionalPlaceholderBegin","context","_subRaw$match","subRaw","getSubRaw","matchedPlaceholder","match","beginPlaceholder","subCursor","indexOf","charAt","length","nextCursor","cursor","tokens","push","type","Raw","value","substring","BeginPlaceHolder","loc","start","end","status","ExpectField","raw","eatWhitespace","eatField","Field","ExpectOptionalBeginDefault","eatOptionalDefault","BeginDefault","ExpectDefaultValue","ExpectOptionalBeginPipe","eatDefaultValue","eatJsonValueOrLiteralString","eatOptionalBeginPipe","BeginPipe","ExpectPipeIdentifier","ExpectPlaceholderEnd","eatPipeIdentifier","matches","Error","JSON","stringify","PipeIdentifier","ExpectOptionalBeginPipeParameter","eatOptionalBeginPipeParameter","BeginPipeParameter","ExpectPipeParameter","eatPipeParameter","eatPlaceholderEnd","EndPlaceHolder","Initial","jsonLiteralMap","Map","nextStatus","test","firstChar","valueType","Array","Object","String","Others","objectBracesToMatch","arrayBracketsToMatch","stringQuotesToClose","stringBackslashToEscape","matched","char","JsonValue","parse","eatJsonValue","has","get","LiteralString","transform","compile","inject","transformAndInject","isInjectable","data","values","transformNode","node","result","field","undefined","defaultValue","processPipes","pipes","injectNode","_context$overrideApp","_context$overrideApp2","namespace","subField","SimpleContextMap","SYS","FLAGS","query","getAll","event","overrideApp","app","location","hash","anchor","substr","original","console","error","params","injectNodeFactory","token","tree","elements","optionalToken","shift","acceptToken","isArray","includes","placeholder","pipe","identifier","parameters","parseTokens","tokenize","parseInjectableString"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[7746,1646],{7029:(e,t,n)=>{var r=n(6650);t.s=r.createRoot,r.hydrateRoot},5863:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},6171:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}n.d(t,{Z:()=>r})},5866:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t){(0,r.Z)(e,t),t.add(e)}},7896:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2159:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:()=>r})},1646:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>p,wrapBrick:()=>g,wrapLocalBrick:()=>S});var r=n(5866),i=n(3395),a=n(6171),o=n(381),s=n(687),l=n(8657),c=n(7029),d=n(2484),u=n(2462),h=new WeakMap,f=new WeakSet;class p extends u.NextElement{constructor(){super(...arguments),(0,r.Z)(this,f),(0,i.Z)(this,h,{writable:!0,value:void 0})}connectedCallback(){super._markConnectedCallbackCalled(),(0,a.Z)(this,f,v).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,s.Z)(this,h))||void 0===e||e.render(null)}_render(){var e=()=>{if(this.isConnected&&(0,s.Z)(this,h)){var e,t=this.constructor;t.shadowOptions?(0,s.Z)(this,h).render((0,u.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():l.createElement(l.Fragment,null,l.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,s.Z)(this,h).render(this.render())}};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,d.flushSync)(e):e()}}function v(){if(!(0,s.Z)(this,h)){var e=this.constructor;if(e.shadowOptions){var t,n=this.attachShadow(e.shadowOptions);if((0,u.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){var r=new CSSStyleSheet;r.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[r]}(0,o.Z)(this,h,(0,c.s)(n))}else(0,o.Z)(this,h,(0,c.s)(this))}}var w=n(7896),y=n(2159),Z=["children"],b=["children"];function S(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=(0,y.Z)(n,Z),o="string"==typeof e?e:e.__tagName,s=O(a,t);return l.createElement(o,(0,w.Z)({},s,{ref:r}),i)}))}function g(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=O((0,y.Z)(n,b),t);return l.createElement(e,(0,w.Z)({},a,{ref:r}),i)}))}function O(e,t){var n;if(t)for(var[r,i]of(n={},Object.entries(e)))Object.prototype.hasOwnProperty.call(t,r)?n["on".concat(t[r])]=i:n[r]=i;else n=e;return n}}}]);
2
- //# sourceMappingURL=7746.20ab5bb5.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[7746,1646],{7029:(e,t,n)=>{var r=n(6650);t.s=r.createRoot,r.hydrateRoot},5863:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},6171:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}n.d(t,{Z:()=>r})},5866:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t){(0,r.Z)(e,t),t.add(e)}},7896:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2159:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:()=>r})},1646:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>p,wrapBrick:()=>g,wrapLocalBrick:()=>S});var r=n(5866),i=n(3395),a=n(6171),o=n(381),s=n(687),l=n(8657),c=n(7029),d=n(2484),u=n(7844),h=new WeakMap,f=new WeakSet;class p extends u.NextElement{constructor(){super(...arguments),(0,r.Z)(this,f),(0,i.Z)(this,h,{writable:!0,value:void 0})}connectedCallback(){super._markConnectedCallbackCalled(),(0,a.Z)(this,f,v).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,s.Z)(this,h))||void 0===e||e.render(null)}_render(){var e=()=>{if(this.isConnected&&(0,s.Z)(this,h)){var e,t=this.constructor;t.shadowOptions?(0,s.Z)(this,h).render((0,u.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():l.createElement(l.Fragment,null,l.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,s.Z)(this,h).render(this.render())}};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,d.flushSync)(e):e()}}function v(){if(!(0,s.Z)(this,h)){var e=this.constructor;if(e.shadowOptions){var t,n=this.attachShadow(e.shadowOptions);if((0,u.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){var r=new CSSStyleSheet;r.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[r]}(0,o.Z)(this,h,(0,c.s)(n))}else(0,o.Z)(this,h,(0,c.s)(this))}}var w=n(7896),y=n(2159),Z=["children"],b=["children"];function S(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=(0,y.Z)(n,Z),o="string"==typeof e?e:e.__tagName,s=O(a,t);return l.createElement(o,(0,w.Z)({},s,{ref:r}),i)}))}function g(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=O((0,y.Z)(n,b),t);return l.createElement(e,(0,w.Z)({},a,{ref:r}),i)}))}function O(e,t){var n;if(t)for(var[r,i]of(n={},Object.entries(e)))Object.prototype.hasOwnProperty.call(t,r)?n["on".concat(t[r])]=i:n[r]=i;else n=e;return n}}}]);
2
+ //# sourceMappingURL=7746.591c9ea2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/7746.20ab5bb5.js","mappings":"yIAEIA,EAAI,EAAQ,MAEdC,EAAQ,EAAaD,EAAEE,WACDF,EAAEG,W,iBCLX,SAASC,EAA2BC,EAAKC,GACtD,GAAIA,EAAkBC,IAAIF,GACxB,MAAM,IAAIG,UAAU,iEAExB,C,gCCJe,SAASC,EAA6BC,EAAUC,EAAYC,GACzE,IAAKD,EAAWJ,IAAIG,GAClB,MAAM,IAAIF,UAAU,gBAAkBI,EAAS,kCAEjD,OAAOD,EAAWE,IAAIH,EACxB,C,8DCHe,SAASI,EAAsBJ,EAAUC,GAEtD,OCJa,SAAkCD,EAAUK,GACzD,OAAIA,EAAWF,IACNE,EAAWF,IAAIG,KAAKN,GAEtBK,EAAWE,KACpB,CDDS,CAAwBP,GADd,EAAAQ,EAAA,GAA4BR,EAAUC,EAAY,OAErE,C,gDEJe,SAASQ,EAA2Bd,EAAKM,EAAYM,IAClE,OAA0BZ,EAAKM,GAC/BA,EAAWS,IAAIf,EAAKY,EACtB,C,8CCFe,SAASI,EAAsBX,EAAUC,EAAYM,GAGlE,OCLa,SAAkCP,EAAUK,EAAYE,GACrE,GAAIF,EAAWK,IACbL,EAAWK,IAAIJ,KAAKN,EAAUO,OACzB,CACL,IAAKF,EAAWO,SACd,MAAM,IAAId,UAAU,4CAEtBO,EAAWE,MAAQA,CACrB,CACF,CD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nC,EAEF,OAAsBtC,KAAMS,GAAO,OAAW2B,GAChD,MAKE,OAAsBpC,KAAMS,GAAO,OAAWT,MAlBhD,CAoBF,C,wBC5EI0C,EAAY,CAAC,YACfC,EAAa,CAAC,YAET,SAASC,EAAeC,EAAOC,GAOpC,OAAoB,IAAAC,aAAW,SAA2BC,EAAMC,GAC9D,IAAI,SACAC,GACEF,EACJG,GAAQ,OAAyBH,EAAMN,GACrCU,EAAgC,iBAAVP,EAAqBA,EAAQA,EAAMQ,UACzDC,EAAaC,EAAoBJ,EAAOL,GAC5C,OAAoB,gBAAoBM,GAAc,OAAS,CAAC,EAAGE,EAAY,CAC7EL,IAAKA,IACHC,EACN,GACF,CACO,SAASM,EAAUC,EAAWX,GACnC,OAAoB,IAAAC,aAAW,SAA2BW,EAAOT,GAC/D,IAAI,SACAC,GACEQ,EAEFJ,EAAaC,GADP,OAAyBG,EAAOf,GACEG,GAC5C,OAAoB,gBAAoBW,GAAW,OAAS,CAAC,EAAGH,EAAY,CAC1EL,IAAKA,IACHC,EACN,GACF,CACA,SAASK,EAAoBJ,EAAOL,GAClC,IAAIQ,EACJ,GAAIR,EAEF,IAAK,IAAKa,EAAUC,KADpBN,EAAa,CAAC,EACoBlE,OAAOyE,QAAQV,IAC3C/D,OAAOS,UAAUC,eAAevB,KAAKuE,EAAea,GACtDL,EAAW,KAAKQ,OAAOhB,EAAca,KAAcC,EAEnDN,EAAWK,GAAYC,OAI3BN,EAAaH,EAEf,OAAOG,CACT,C","sources":["webpack:///../../node_modules/react-dom/client.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/ReactNextElement.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/wrapBrick.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\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}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","export default function _classPrivateMethodGet(receiver, privateSet, fn) {\n if (!privateSet.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return fn;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(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 objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _classPrivateMethodInitSpec from \"@babel/runtime/helpers/classPrivateMethodInitSpec\";\nimport _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _classPrivateMethodGet from \"@babel/runtime/helpers/classPrivateMethodGet\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet\";\nvar _class;\nimport React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { flushSync } from \"react-dom\";\nimport { NextElement, supportsAdoptingStyleSheets } from \"@next-core/element\";\nvar _root = /*#__PURE__*/new WeakMap();\nvar _createRoot = /*#__PURE__*/new WeakSet();\nexport class ReactNextElement extends NextElement {\n constructor() {\n super(...arguments);\n _classPrivateMethodInitSpec(this, _createRoot);\n _classPrivateFieldInitSpec(this, _root, {\n writable: true,\n value: void 0\n });\n }\n connectedCallback() {\n super._markConnectedCallbackCalled();\n _classPrivateMethodGet(this, _createRoot, _createRoot2).call(this);\n this._render();\n }\n disconnectedCallback() {\n var _classPrivateFieldGet2;\n (_classPrivateFieldGet2 = _classPrivateFieldGet(this, _root)) === null || _classPrivateFieldGet2 === void 0 || _classPrivateFieldGet2.render(null);\n }\n _render() {\n var render = () => {\n if (!this.isConnected || !_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var _ctor$styleTexts;\n _classPrivateFieldGet(this, _root).render(supportsAdoptingStyleSheets() || !((_ctor$styleTexts = ctor.styleTexts) !== null && _ctor$styleTexts !== void 0 && _ctor$styleTexts.length) ? this.render() : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"style\", null, ctor.styleTexts.join(\"\\n\")), this.render()));\n } else {\n _classPrivateFieldGet(this, _root).render(this.render());\n }\n };\n\n // In brick next container, enable flush sync for the initial mount of\n // each page, in order to avoid menu flickering.\n // Otherwise, avoid using flush sync as possible.\n if (window.BRICK_NEXT_VERSIONS && !window.DISABLE_REACT_FLUSH_SYNC) {\n flushSync(render);\n } else {\n render();\n }\n }\n}\n_class = ReactNextElement;\nfunction _createRoot2() {\n if (_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var shadowRoot = this.attachShadow(ctor.shadowOptions);\n if (supportsAdoptingStyleSheets()) {\n var _ctor$styleTexts2;\n if ((_ctor$styleTexts2 = ctor.styleTexts) !== null && _ctor$styleTexts2 !== void 0 && _ctor$styleTexts2.length) {\n var styleSheet = new CSSStyleSheet();\n styleSheet.replaceSync(ctor.styleTexts.join(\"\"));\n shadowRoot.adoptedStyleSheets = [styleSheet];\n }\n }\n _classPrivateFieldSet(this, _root, createRoot(shadowRoot));\n } else {\n var _ctor$styleTexts3;\n if (process.env.NODE_ENV !== \"production\" && (_ctor$styleTexts3 = ctor.styleTexts) !== null && _ctor$styleTexts3 !== void 0 && _ctor$styleTexts3.length) {\n throw new Error(\"Use `styleTexts` with `shadowOptions: false` is not supported\");\n }\n _classPrivateFieldSet(this, _root, createRoot(this));\n }\n}\n//# sourceMappingURL=ReactNextElement.js.map","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"];\nimport React, { forwardRef } from \"react\";\nexport function wrapLocalBrick(brick, eventsMapping) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\") {\n if (typeof brick === \"string\" && !customElements.get(brick)) {\n throw new Error(\"Brick \".concat(brick, \" is not defined while using `wrapLocalBrick`.\"));\n }\n }\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref, ref) {\n var {\n children\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n var WebComponent = typeof brick === \"string\" ? brick : brick.__tagName;\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(WebComponent, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nexport function wrapBrick(BrickName, eventsMapping) {\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref2, ref) {\n var {\n children\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded2);\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(BrickName, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nfunction getMappedProperties(props, eventsMapping) {\n var properties;\n if (eventsMapping) {\n properties = {};\n for (var [propName, propValue] of Object.entries(props)) {\n if (Object.prototype.hasOwnProperty.call(eventsMapping, propName)) {\n properties[\"on\".concat(eventsMapping[propName])] = propValue;\n } else {\n properties[propName] = propValue;\n }\n }\n } else {\n properties = props;\n }\n return properties;\n}\n//# sourceMappingURL=wrapBrick.js.map"],"names":["m","exports","createRoot","hydrateRoot","_checkPrivateRedeclaration","obj","privateCollection","has","TypeError","_classExtractFieldDescriptor","receiver","privateMap","action","get","_classPrivateFieldGet","descriptor","call","value","classExtractFieldDescriptor","_classPrivateFieldInitSpec","set","_classPrivateFieldSet","writable","_classPrivateMethodGet","privateSet","fn","_classPrivateMethodInitSpec","add","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_root","WeakMap","_createRoot","WeakSet","ReactNextElement","NextElement","constructor","super","connectedCallback","_markConnectedCallbackCalled","_createRoot2","_render","disconnectedCallback","_classPrivateFieldGet2","render","isConnected","_ctor$styleTexts","ctor","shadowOptions","supportsAdoptingStyleSheets","styleTexts","join","window","BRICK_NEXT_VERSIONS","DISABLE_REACT_FLUSH_SYNC","flushSync","_ctor$styleTexts2","shadowRoot","attachShadow","styleSheet","CSSStyleSheet","replaceSync","adoptedStyleSheets","_excluded","_excluded2","wrapLocalBrick","brick","eventsMapping","forwardRef","_ref","ref","children","props","WebComponent","__tagName","properties","getMappedProperties","wrapBrick","BrickName","_ref2","propName","propValue","entries","concat"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/7746.591c9ea2.js","mappings":"yIAEIA,EAAI,EAAQ,MAEdC,EAAQ,EAAaD,EAAEE,WACDF,EAAEG,W,iBCLX,SAASC,EAA2BC,EAAKC,GACtD,GAAIA,EAAkBC,IAAIF,GACxB,MAAM,IAAIG,UAAU,iEAExB,C,gCCJe,SAASC,EAA6BC,EAAUC,EAAYC,GACzE,IAAKD,EAAWJ,IAAIG,GAClB,MAAM,IAAIF,UAAU,gBAAkBI,EAAS,kCAEjD,OAAOD,EAAWE,IAAIH,EACxB,C,8DCHe,SAASI,EAAsBJ,EAAUC,GAEtD,OCJa,SAAkCD,EAAUK,GACzD,OAAIA,EAAWF,IACNE,EAAWF,IAAIG,KAAKN,GAEtBK,EAAWE,KACpB,CDDS,CAAwBP,GADd,EAAAQ,EAAA,GAA4BR,EAAUC,EAAY,OAErE,C,gDEJe,SAASQ,EAA2Bd,EAAKM,EAAYM,IAClE,OAA0BZ,EAAKM,GAC/BA,EAAWS,IAAIf,EAAKY,EACtB,C,8CCFe,SAASI,EAAsBX,EAAUC,EAAYM,GAGlE,OCLa,SAAkCP,EAAUK,EAAYE,GACrE,GAAIF,EAAWK,IACbL,EAAWK,IAAIJ,KAAKN,EAAUO,OACzB,CACL,IAAKF,EAAWO,SACd,MAAM,IAAId,UAAU,4CAEtBO,EAAWE,MAAQA,CACrB,CACF,CDLE,CAAwBP,GADP,EAAAQ,EAAA,GAA4BR,EAAUC,EAAY,OACrBM,GACvCA,CACT,C,iBENe,SAASM,EAAuBb,EAAUc,EAAYC,GACnE,IAAKD,EAAWj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,EAAa,CAAC,YAET,SAASC,EAAeC,EAAOC,GAOpC,OAAoB,IAAAC,aAAW,SAA2BC,EAAMC,GAC9D,IAAI,SACAC,GACEF,EACJG,GAAQ,OAAyBH,EAAMN,GACrCU,EAAgC,iBAAVP,EAAqBA,EAAQA,EAAMQ,UACzDC,EAAaC,EAAoBJ,EAAOL,GAC5C,OAAoB,gBAAoBM,GAAc,OAAS,CAAC,EAAGE,EAAY,CAC7EL,IAAKA,IACHC,EACN,GACF,CACO,SAASM,EAAUC,EAAWX,GACnC,OAAoB,IAAAC,aAAW,SAA2BW,EAAOT,GAC/D,IAAI,SACAC,GACEQ,EAEFJ,EAAaC,GADP,OAAyBG,EAAOf,GACEG,GAC5C,OAAoB,gBAAoBW,GAAW,OAAS,CAAC,EAAGH,EAAY,CAC1EL,IAAKA,IACHC,EACN,GACF,CACA,SAASK,EAAoBJ,EAAOL,GAClC,IAAIQ,EACJ,GAAIR,EAEF,IAAK,IAAKa,EAAUC,KADpBN,EAAa,CAAC,EACoBlE,OAAOyE,QAAQV,IAC3C/D,OAAOS,UAAUC,eAAevB,KAAKuE,EAAea,GACtDL,EAAW,KAAKQ,OAAOhB,EAAca,KAAcC,EAEnDN,EAAWK,GAAYC,OAI3BN,EAAaH,EAEf,OAAOG,CACT,C","sources":["webpack:///../../node_modules/react-dom/client.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/ReactNextElement.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/wrapBrick.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\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}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","export default function _classPrivateMethodGet(receiver, privateSet, fn) {\n if (!privateSet.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return fn;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(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 objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _classPrivateMethodInitSpec from \"@babel/runtime/helpers/classPrivateMethodInitSpec\";\nimport _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _classPrivateMethodGet from \"@babel/runtime/helpers/classPrivateMethodGet\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet\";\nvar _class;\nimport React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { flushSync } from \"react-dom\";\nimport { NextElement, supportsAdoptingStyleSheets } from \"@next-core/element\";\nvar _root = /*#__PURE__*/new WeakMap();\nvar _createRoot = /*#__PURE__*/new WeakSet();\nexport class ReactNextElement extends NextElement {\n constructor() {\n super(...arguments);\n _classPrivateMethodInitSpec(this, _createRoot);\n _classPrivateFieldInitSpec(this, _root, {\n writable: true,\n value: void 0\n });\n }\n connectedCallback() {\n super._markConnectedCallbackCalled();\n _classPrivateMethodGet(this, _createRoot, _createRoot2).call(this);\n this._render();\n }\n disconnectedCallback() {\n var _classPrivateFieldGet2;\n (_classPrivateFieldGet2 = _classPrivateFieldGet(this, _root)) === null || _classPrivateFieldGet2 === void 0 || _classPrivateFieldGet2.render(null);\n }\n _render() {\n var render = () => {\n if (!this.isConnected || !_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var _ctor$styleTexts;\n _classPrivateFieldGet(this, _root).render(supportsAdoptingStyleSheets() || !((_ctor$styleTexts = ctor.styleTexts) !== null && _ctor$styleTexts !== void 0 && _ctor$styleTexts.length) ? this.render() : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"style\", null, ctor.styleTexts.join(\"\\n\")), this.render()));\n } else {\n _classPrivateFieldGet(this, _root).render(this.render());\n }\n };\n\n // In brick next container, enable flush sync for the initial mount of\n // each page, in order to avoid menu flickering.\n // Otherwise, avoid using flush sync as possible.\n if (window.BRICK_NEXT_VERSIONS && !window.DISABLE_REACT_FLUSH_SYNC) {\n flushSync(render);\n } else {\n render();\n }\n }\n}\n_class = ReactNextElement;\nfunction _createRoot2() {\n if (_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var shadowRoot = this.attachShadow(ctor.shadowOptions);\n if (supportsAdoptingStyleSheets()) {\n var _ctor$styleTexts2;\n if ((_ctor$styleTexts2 = ctor.styleTexts) !== null && _ctor$styleTexts2 !== void 0 && _ctor$styleTexts2.length) {\n var styleSheet = new CSSStyleSheet();\n styleSheet.replaceSync(ctor.styleTexts.join(\"\"));\n shadowRoot.adoptedStyleSheets = [styleSheet];\n }\n }\n _classPrivateFieldSet(this, _root, createRoot(shadowRoot));\n } else {\n var _ctor$styleTexts3;\n if (process.env.NODE_ENV !== \"production\" && (_ctor$styleTexts3 = ctor.styleTexts) !== null && _ctor$styleTexts3 !== void 0 && _ctor$styleTexts3.length) {\n throw new Error(\"Use `styleTexts` with `shadowOptions: false` is not supported\");\n }\n _classPrivateFieldSet(this, _root, createRoot(this));\n }\n}\n//# sourceMappingURL=ReactNextElement.js.map","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"];\nimport React, { forwardRef } from \"react\";\nexport function wrapLocalBrick(brick, eventsMapping) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\") {\n if (typeof brick === \"string\" && !customElements.get(brick)) {\n throw new Error(\"Brick \".concat(brick, \" is not defined while using `wrapLocalBrick`.\"));\n }\n }\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref, ref) {\n var {\n children\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n var WebComponent = typeof brick === \"string\" ? brick : brick.__tagName;\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(WebComponent, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nexport function wrapBrick(BrickName, eventsMapping) {\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref2, ref) {\n var {\n children\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded2);\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(BrickName, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nfunction getMappedProperties(props, eventsMapping) {\n var properties;\n if (eventsMapping) {\n properties = {};\n for (var [propName, propValue] of Object.entries(props)) {\n if (Object.prototype.hasOwnProperty.call(eventsMapping, propName)) {\n properties[\"on\".concat(eventsMapping[propName])] = propValue;\n } else {\n properties[propName] = propValue;\n }\n }\n } else {\n properties = props;\n }\n return properties;\n}\n//# sourceMappingURL=wrapBrick.js.map"],"names":["m","exports","createRoot","hydrateRoot","_checkPrivateRedeclaration","obj","privateCollection","has","TypeError","_classExtractFieldDescriptor","receiver","privateMap","action","get","_classPrivateFieldGet","descriptor","call","value","classExtractFieldDescriptor","_classPrivateFieldInitSpec","set","_classPrivateFieldSet","writable","_classPrivateMethodGet","privateSet","fn","_classPrivateMethodInitSpec","add","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_root","WeakMap","_createRoot","WeakSet","ReactNextElement","NextElement","constructor","super","connectedCallback","_markConnectedCallbackCalled","_createRoot2","_render","disconnectedCallback","_classPrivateFieldGet2","render","isConnected","_ctor$styleTexts","ctor","shadowOptions","supportsAdoptingStyleSheets","styleTexts","join","window","BRICK_NEXT_VERSIONS","DISABLE_REACT_FLUSH_SYNC","flushSync","_ctor$styleTexts2","shadowRoot","attachShadow","styleSheet","CSSStyleSheet","replaceSync","adoptedStyleSheets","_excluded","_excluded2","wrapLocalBrick","brick","eventsMapping","forwardRef","_ref","ref","children","props","WebComponent","__tagName","properties","getMappedProperties","wrapBrick","BrickName","_ref2","propName","propValue","entries","concat"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[8442],{1906:(e,t,r)=>{r.d(t,{j:()=>_});var a=r(7896),n=r(8657),o=r.n(n),i=r(1211),l=r(6995),c=r(5095),s=r(4827),d=r(2839),p=r(3028),u=(r(7035),r(7709),r(9703),(e,t,r)=>{var a=(new l.Pa4).subVectors(t,e),n=a.length(),o=document.createElement("data-view.app-wall-relation-line");o.style.height="".concat(n,"px"),o.classList.add("relation-line"),o.lightColor=r;var i=new c.cp(o),s=(new l.Pa4).lerpVectors(e,t,.5);i.position.copy(s);var d=(new l._fP).setFromUnitVectors(new l.Pa4(0,1,0).normalize(),a.clone().normalize());return i.setRotationFromQuaternion(d),i}),h=(e,t)=>{var r=new l.Pa4(e[0],e[1],e[2]),a=new l.Pa4(t[0],t[1],t[2]);return{centerVector:(new l.Pa4).lerpVectors(r,a,.5),subVector:(new l.Pa4).subVectors(r,a)}},g=e=>{var{BW:t,TW:r,d:a,TH:n,BH:o,isLeft:i}=e,s=Math.sqrt(Math.pow(r/2-t/2,2)+Math.pow(a,2)),d=document.createElement("div");d.style.cssText="\n width: ".concat(s,"px;\n height:").concat(n,"px;\n position: relative;\n clip-path: polygon(0 0, ").concat(s,"px ").concat(n/2-o/2,"px, ").concat(s,"px ").concat(n/2-o/2+o,"px, 0 ").concat(n,"px);\n ");var p=document.createElement("div");p.className="trapezoidalLeftOrRightAnimation",d.appendChild(p);var u=i?[-t/2,0,0]:[t/2,0,0],g=i?[-r/2,0,a]:[r/2,0,a],b=new c.cp(d),{centerVector:m,subVector:v}=h(u,g);b.position.copy(m);var x=(new l._fP).setFromUnitVectors(new l.Pa4(1,0,0).normalize(),v.clone().normalize());return b.setRotationFromQuaternion(x),b},b=e=>{var{BW:t,TW:r,d:a,TH:n,BH:o,isTop:i}=e,s=Math.sqrt(Math.pow(n/2-o/2,2)+Math.pow(a,2)),d=document.createElement("div");d.style.cssText="\n width: ".concat(r,"px;\n height:").concat(s,"px;\n position: relative;\n clip-path: polygon(0 0, ").concat(r,"px 0, ").concat(r/2-t/2+t,"px ").concat(s,"px, ").concat(r/2-t/2,"px ").concat(s,"px);\n ");var p=document.createElement("div");p.className="trapezoidalTopOrBottomAnimation",d.appendChild(p);var u=new c.cp(d),g=i?[0,-o/2,0]:[0,o/2,0],b=i?[0,-n/2,a]:[0,n/2,a],{centerVector:m,subVector:v}=h(g,b);u.position.copy(m);var x=(new l._fP).setFromUnitVectors(new l.Pa4(0,-1,0).normalize(),v.clone().normalize());return u.setRotationFromQuaternion(x),u},m=e=>{var{objectData:t,leftBtnName:r,clusters:a,columns:n,leftOnClick:o,rightBtnName:i,rightOnClick:l,appName:s}=e,d=600,p=document.createElement("div"),u=new c.cp(p);u.position.set(...t.point);var h=t.width,m=t.height,v=1500,x=1200,f=document.createElement("div");f.style.cssText="\n width: ".concat(h,"px;\n height: ").concat(m,"px;\n box-shadow: inset 0px 1px 2px 0px rgba(255,255,255,0.45);\n border: 1px solid rgba(118,255,255,0.58);\n padding: 16px;\n ");var w=new c.cp(f);w.position.z=0,u.add(w);var y=document.createElement("div");y.style.cssText="\n width: ".concat(v,"px;\n height:").concat(x,"px;\n background: linear-gradient(rgb(13, 54, 179,0.6) 0%, rgb(74, 108, 156,0.6) 100%);\n box-sizing: border-box;\n padding: 16px;\n ");var k=document.createElement("data-view.cabinet-thumbnail");k.clusters=null!=a?a:[],k.columns=null!=n?n:4,k.appName=s,y.className="visibilityAnimate",y.appendChild(k);var z=new c.cp(y);z.position.set(0,0,d);var T=g({BW:h,TW:v,BH:m,TH:x,d,isLeft:!0}),C=g({BW:h,TW:v,BH:m,TH:x,d,isLeft:!1}),S=b({BW:h,TW:v,BH:m,TH:x,d,isTop:!0}),P=b({BW:h,TW:v,BH:m,TH:x,d,isTop:!1});if(u.add(T,C,P,S),r){var E=document.createElement("div");E.style.cssText="\n color: #6BE0FA;\n font-size: 28px;\n font-weight: 500;\n width: ".concat(750,"px;\n line-height: 16px;\n "),E.className="visibilityAnimate";var R=document.createElement("span");R.style.cursor="pointer",R.innerText=r,E.appendChild(R);var M=new c.cp(E);M.position.set(-365,-600,14),M.rotateX(Math.PI/2),z.add(M),R.onpointerdown=o}if(i){var B=document.createElement("div");B.style.cssText="\n color: #FFFFFF;\n font-size: 30px;\n font-weight: 500;\n width: ".concat(750,"px;\n text-shadow: 0px 1px 4px #3366FF;\n text-align: right;\n "),B.className="visibilityAnimate";var I=document.createElement("span");I.style.cursor="pointer",I.innerText=i,B.appendChild(I);var _=new c.cp(B);_.position.set(365,-600,14),_.rotateX(Math.PI/2),z.add(_),I.onpointerdown=l}return u.add(z),u},v=(e,t,r)=>{if(null==e||!e.length)return[];var a=e.map((e=>(0,p.Z)((0,p.Z)({},e),{},{x:0,y:0})));if(a.length===t*r)a=a.map(((e,r)=>(0,p.Z)((0,p.Z)({},e),{},{x:r%t+1,y:parseInt("".concat(r/t))+1})));else{for(var n=t*(r-1),o=a.length-n,i=0;i<n;i++){var l=a[i];l.x=i%t+1,l.y=parseInt("".concat(i/t))+1}for(var c=0;c<o/2;c++){var s=a[c+n],d=a[a.length-1-c];s.x=c+1,s.y=r,s!==d&&(d.x=t-c,d.y=r)}}return a},x=(e,t,r,a)=>{var n=new l.Tme;return n.position.x=e.x*t.outerWidth-(r/2+.5)*t.outerWidth,n.position.y=-e.y*t.outerHeight+(a/2+.5)*t.outerHeight,n},f=(e,t,r,a,n,o)=>{var i=new l.Tme,c=new l.Pa4,s=((e,t,r,a,n)=>{var o={x:0,y:0,z:0},i=parseInt("".concat(r*t.outerWidth*180))/(n*Math.PI),l=r/2+.5;return o.x=i*Math.sin(Math.PI/(180/((e.x-l)*(n/r)))),o.y=-e.y*t.outerHeight+(a/2+.5)*t.outerHeight,o.z=i-Math.sqrt(i*i-o.x*o.x),o})(e,t,r,a,n);return i.position.x=s.x,i.position.y=s.y,i.position.z=s.z,c.x=0,c.y=i.position.y,c.z=o,i.lookAt(c),i},w=(e,t,r,a)=>{var n=t.height+2*t.margin,o=(t.width+2*t.margin)/e.aspect,i=.5*Math.max(o,n)/Math.tan(e.fov*Math.PI/360)+t.z,l=0;return r.forEach((function(e){a>=Math.min.apply(null,e.numRange)&&a<=Math.max.apply(null,e.numRange)&&(l=e.distance)})),Math.max(l,i)},y=(e,t)=>{var r=[],a=e.userData;return Array.isArray(t)&&t.length&&t.forEach((function(e){a.key!==e.source&&a.key!==e.target||r.push(e)})),r},k=(e,t)=>{var r=t.toUpperCase(),a=e.composedPath().find((e=>null==e?void 0:e.shadowRoot));if((null==a?void 0:a.tagName)===r)return a;var n=document.elementFromPoint(e.clientX,e.clientY),o=null==n?void 0:n.shadowRoot.elementFromPoint(e.clientX,e.clientY);return(null==o?void 0:o.tagName)===r?o:null},z=r(2354),T=r(2779),C=r.n(T),S=[{numRange:[0,40],distance:3e3},{numRange:[40,60],distance:2200},{numRange:[60,80],distance:2700},{numRange:[80,120],distance:3200},{numRange:[120,160],distance:3400},{numRange:[160,300],distance:3600}],P=45,E=100,R=300,M=500,B=(e,t,r,a)=>{var n=Math.ceil(Math.sqrt(e*t.outerHeight/(a*t.outerWidth))),o=Math.ceil(e/n),i=parseInt("".concat(n*t.outerWidth*180))/(E*Math.PI);return{maxX:n,maxY:o,radius:i,bounds:{width:2*i*Math.sin(Math.PI*(E/2)/180)+t.outerWidth,height:o*t.outerHeight,margin:r,z:i-i*Math.cos(Math.PI*(E/2)/180)}}},I=(0,z.wrapBrick)("data-view.app-wall-system-card");function _(e){var{relations:t,onSystemCardButtonClick:r,useDblclick:p,useDistanceConfig:h,handleCardDbClick:g,rightBtnOnClick:b,leftBtnOnClick:z,cardBrickName:T,cardSize:_,disabledDefaultClickEvent:X,handleCardClick:D,containerId:F,noRotate:A,boundMargin:W}=e,[N,L]=(0,n.useState)(null),H=(0,n.useRef)(),O=(0,n.useRef)(),Z=(0,n.useRef)(),V=(0,n.useRef)(),j=(0,n.useRef)(),Y=(0,n.useRef)(),G=(0,n.useRef)(),U=(0,n.useRef)(),q=(0,n.useRef)(),Q=(0,n.useRef)(),K=(0,n.useRef)({table:[],curve:[]}),$=(0,n.useRef)([]),J=(0,n.useRef)([]),ee=(0,n.useRef)(1),te=(0,n.useRef)(5e3),re=(0,n.useRef)({maxX:0,maxY:0,radius:0,bounds:{width:0,height:0,margin:W,z:0}}),ae=(0,n.useRef)({element:null,mouseoverTimer:null,mouseoutTimer:null,clickTimer:null,dblClickTimer:null,isShowGraph3D:!1,isShowAppInfo:!1,isShowRelations:!1,enable:!0}),ne=(0,n.useCallback)((()=>{Y.current.render(G.current,U.current),q.current.maxDistance=te.current+M,q.current.handleResize()}),[]),oe=e=>{var t;if(null===(t=ae.current)||void 0===t||!t.element)return null==e?void 0:e();var{__objectCSS:r,__curve:a,__userData:n}=ae.current.element;new d.kX(r.rotation).to({x:a.rotation.x,y:a.rotation.y,z:a.rotation.z},100).start(),new d.kX(r.scale).to({x:1,y:1,z:1},100).start(),new d.kX(r.position).to({x:a.position.x,y:a.position.y,z:a.position.z},100).onUpdate(ne).onStart((()=>{var e;"data-view.app-wall-card-item"===T&&r.element.classList.remove("status-".concat(n.status||"normal","-card")),null===(e=$.current)||void 0===e||e.forEach((e=>{e.element.style.opacity="1"})),J.current.forEach((e=>{G.current.remove(e)})),J.current=[],ne()})).onComplete((()=>{var t;ae.current.isShowRelations=!1,null==e||e(null===(t=ae.current)||void 0===t?void 0:t.element)})).start()},ie=(e,t)=>{ae.current.enable=!1;for(var r=0;r<$.current.length;r++){var a=$.current[r],n=e[r];new d.kX(a.position).to({x:n.position.x,y:n.position.y,z:n.position.z},l.M8C.randFloat(t,2*t)).easing(d.oY.Exponential.InOut).start(),new d.kX(a.rotation).to({x:n.rotation.x,y:n.rotation.y,z:n.rotation.z},l.M8C.randFloat(t,2*t)).easing(d.oY.Exponential.InOut).start()}new d.kX({}).to({},2*t).onUpdate(ne).start().onComplete((()=>{ae.current.enable=!0}))},le=e=>{q.current.reset();var t=ae.current.element.__objectCSS,r=ae.current.element.__curve;ae.current.enable=!1,ae.current.isShowAppInfo=!0;var a,n={x:r.position.x>0?2*-_.width:2*_.width,y:0,z:(U.current.position.z-500)/1.5},o={x:0,y:0,z:U.current.position.z-500},i={x:0,y:r.rotation.y>0?90*-Math.PI/180:90*Math.PI/180,z:0},l={x:0,y:r.rotation.y>0?180*-Math.PI/180:180*Math.PI/180,z:0},c=new d.kX(t.position),s=new d.kX(t.rotation),p=new d.kX(t.position),u=new d.kX(t.rotation);e?(c.to(n,500).easing().onComplete((()=>{j.current.hidden=!0,ae.current.element.style.opacity="1"})),s.to(i,500).easing(),p.to({x:r.position.x,y:r.position.y,z:r.position.z},700).easing(),u.to({x:r.rotation.x,y:r.rotation.y,z:r.rotation.z},700).easing().onComplete((()=>{var e;null===(e=$.current)||void 0===e||e.forEach((e=>{e.element.style.opacity="1"}))}))):(null===(a=$.current)||void 0===a||a.forEach((e=>{t!=e&&(e.element.style.opacity="0.2")})),c.to(n,700).easing().onStart((()=>{V.current.hidden=!1,j.current.hidden=!0})),s.to(i,700).easing(),p.to(o,500).easing().onStart((function(){ae.current.element.style.opacity="0",j.current.style.transition="transition: all .3s ease",j.current.hidden=!1})),u.to(l,500).easing()),c.chain(p).start(),s.chain(u).start(),new d.kX({}).to({},1400).onUpdate((()=>{if(ne(),Math.abs(t.rotation.y)>=Math.PI/2){var e=ae.current.element.getBoundingClientRect(),r=1.35,a=e.width*r,n=e.height*r;j.current.style.width="".concat(a,"px"),j.current.style.height="".concat(n,"px"),j.current.style.top="".concat(e.top-(r-1)*n/2,"px"),j.current.style.left="".concat(e.left-(r-1)*a/2,"px")}})).start().onComplete((function(){ae.current.enable=!0,ae.current.isShowAppInfo=!e,V.current.hidden=e}))};return(0,n.useEffect)((()=>{var e;(()=>{var e,t=null===(e=document.getElementById(F))||void 0===e?void 0:e.getBoundingClientRect(),r=(null==t?void 0:t.width)||window.innerWidth,a=(null==t?void 0:t.height)||window.innerHeight,n=r/a,o=new l.xsS,i=new l.cPb(P,n,.1,1e4),d=new c.lX;d.setSize(r,a),O.current.replaceChildren(d.domElement);var p=new s.$(i,d.domElement);p.rotateSpeed=.5,p.minDistance=500,p.maxDistance=1e4,p.noRotate=A,G.current=o,U.current=i,q.current=p,Y.current=d})();var t=()=>{e=requestAnimationFrame(t),d.ZP.update(),q.current.update()};t();var r=F?document.getElementById(F):document.body,a=new ResizeObserver((0,i.debounce)((()=>{var{width:e,height:t}=r.getBoundingClientRect();U.current.aspect=e/t,U.current.updateProjectionMatrix(),Y.current.setSize(e,t),ne()}),300));return q.current.addEventListener("change",ne),a.observe(r),()=>{a.disconnect(),q.current.removeEventListener("change",ne),q.current.dispose(),d.ZP.removeAll(),U.current.clear(),G.current.clear(),cancelAnimationFrame(e)}}),[]),(0,n.useEffect)((()=>{var t,r=(null===(t=e.dataSource)||void 0===t?void 0:t.length)||0;r>0&&((e=>{re.current=B(e,_,W,1/U.current.aspect)})(r),te.current=w(U.current,re.current.bounds,h?S:[],r),U.current.position.z=te.current,U.current.updateProjectionMatrix(),q.current.position0.copy(U.current.position),v(e.dataSource,re.current.maxX,re.current.maxY).forEach(((e,t)=>{var r,a,n,o,i,l,s,d=document.createElement(T);d.status=e.status,d.cardTitle=null===(r=e.cardItemProps)||void 0===r?void 0:r.cardTitle,d.description=null===(a=e.cardItemProps)||void 0===a?void 0:a.description,d.background=null===(n=e.cardItemProps)||void 0===n?void 0:n.background,d.color=null===(o=e.cardItemProps)||void 0===o?void 0:o.color,d.titleStyle=null===(i=e.cardItemProps)||void 0===i?void 0:i.titleStyle,d.desStyle=null===(l=e.cardItemProps)||void 0===l?void 0:l.desStyle,d.descriptionList=null===(s=e.cardItemProps)||void 0===s?void 0:s.descriptionList;var p="status-".concat((null==e?void 0:e.status)||"normal");d.className="card-item-container ".concat(p),d.style.width="".concat(_.width,"px"),d.style.height="".concat(_.height,"px"),d.classList.add("card-item-wrap");var u=new c.cp(d);u.position.set(4e3*Math.random()-2e3,4e3*Math.random()-2e3,4e3*Math.random()-2e3),G.current.add(u),$.current.push(u);var h=x(e,_,re.current.maxX,re.current.maxY);K.current.table.push(h);var g=f(e,_,re.current.maxX,re.current.maxY,E,re.current.radius);K.current.curve.push(g),u.userData=e,d.__objectCSS=u,d.__userData=e,d.__curve=g})),ie(K.current.curve,1e3));return()=>{q.current.reset(),d.ZP.removeAll(),$.current.map((e=>{G.current.remove(e)})),$.current=[],K.current={table:[],curve:[]},ae.current={element:null,mouseoverTimer:null,mouseoutTimer:null,clickTimer:null,dblClickTimer:null,enable:!0,isShowAppInfo:!1,isShowGraph3D:!1,isShowRelations:!1}}}),[e.dataSource,h]),(0,n.useEffect)((()=>{var e=H.current,r=e=>{if(clearTimeout(ae.current.mouseoverTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var r=k(e,T);ae.current.mouseoverTimer=window.setTimeout((()=>{oe((()=>{r&&!ae.current.isShowAppInfo&&(e=>{var{__objectCSS:r,__userData:a}=e,n=r.rotation.y,o=r.element.getBoundingClientRect(),i={x:r.position.x+50*Math.sin(n),y:r.position.y+15,z:r.position.z+100*Math.cos(n)},l=o.width>=_.width?ee.current:Math.min(_.width/o.width,_.height/o.height);ae.current.isShowRelations=!0,new d.kX(r.rotation).onStart((()=>{"data-view.app-wall-card-item"===T&&r.element.classList.add("status-".concat(a.status||"normal","-card"))})).start(),new d.kX(r.scale).to({x:l,y:l,z:l},100).start(),new d.kX(r.position).to(i,100).onUpdate(ne).onComplete((function(){var a,n,o,i,l,c;l=y(a=r,t),c=a.userData,null==l||l.forEach((e=>{e.source===c.key?(i=$.current.find((t=>t.userData.key===e.target)),o=i&&u(a.position,i.position,"blue")):(i=$.current.find((t=>t.userData.key===e.source)),o=i&&u(i.position,a.position,"purple")),o&&(J.current.push(o),G.current.add(o))})),null===(n=$.current)||void 0===n||n.forEach((e=>{a!=e&&l.every((t=>t.source!=e.userData.key&&t.target!=e.userData.key))&&(e.element.style.opacity="0.2")})),ne(),ae.current.element=e})).start()})(r),clearTimeout(ae.current.mouseoverTimer)}))}),300)},a=e=>{if(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var t=k(e,T);ae.current.clickTimer=window.setTimeout((function(){clearTimeout(ae.current.mouseoverTimer),oe((()=>{t&&(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),e.stopPropagation(),ae.current.element=t,X?null==D||D(t.__userData):(L(t.__userData),le(!1)))}))}),200)},n=e=>{if(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),clearTimeout(ae.current.dblClickTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var t=k(e,T),{__userData:r,__objectCSS:a}=t;ae.current.isShowGraph3D=!0,ae.current.dblClickTimer=window.setTimeout((function(){oe((()=>{var e;if(p||(null===(e=r.trapezoidalProps)||void 0===e||null===(e=e.clusters)||void 0===e?void 0:e.length)<1)g(r),ae.current.isShowGraph3D=!1;else if(t){clearTimeout(ae.current.mouseoverTimer),clearTimeout(ae.current.clickTimer),O.current.classList.add("mask-container"),q.current.reset();var n={x:a.position.x,y:860+_.height*(re.current.maxY-r.y)},o=new d.kX(U.current.position),i=new d.kX({opacity:0,scale:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0}),l=new d.kX({z:0}),c=new d.kX(U.current.position),s=new d.kX(q.current.target),u=new d.kX({blur:12,spread:0});ie(K.current.table,600),o.to({x:0,y:-3600,z:1600},1e3).chain(u,i,l),i.to({opacity:1},700).onStart((()=>{var e,t,n,o,i,l=m({objectData:{width:_.width,height:_.height,point:[a.position.x,a.position.y,a.position.z]},clusters:null===(e=r.trapezoidalProps)||void 0===e?void 0:e.clusters,columns:null===(t=r.trapezoidalProps)||void 0===t?void 0:t.columns,appName:null===(n=r.trapezoidalProps)||void 0===n?void 0:n.appName,leftBtnName:null===(o=r.trapezoidalProps)||void 0===o?void 0:o.leftBtnName,rightBtnName:null===(i=r.trapezoidalProps)||void 0===i?void 0:i.rightBtnName,rightOnClick:()=>b(r),leftOnClick:()=>z(r)});Q.current=l,G.current.add(l)})),l.to({z:R},1e3).delay(230).chain(c,s),c.to({x:n.x,y:-3600+n.y},1e3),s.to({x:n.x,y:n.y},1e3).onComplete((function(){Z.current.style.visibility="visible"})),o.start()}}))}),200)};return e.addEventListener("dblclick",n),e.addEventListener("click",a),e.addEventListener("mouseover",r),()=>{e.removeEventListener("mouseover",r),e.removeEventListener("click",a),e.removeEventListener("dblclick",n)}}),[X,D]),o().createElement("div",{className:"appwall-container",ref:H},o().createElement("div",{className:"appwall",ref:O}),o().createElement("div",{className:"mask",ref:V,onClick:()=>{ae.current.enable&&le(!0)},hidden:!0},o().createElement(I,(0,a.Z)({},null==N?void 0:N.systemCardProps,{onClick:e=>e.stopPropagation(),handleClick:()=>r(N),ref:j,className:C()({infoWrapper:"normal"===(null==N?void 0:N.status),warningWrapper:"warning"===(null==N?void 0:N.status)})}))),o().createElement("div",{className:"closeBtn",ref:Z,onClick:()=>{(()=>{d.ZP.removeAll();var e=new d.kX({z:0}),t=new d.kX({opacity:1}),r=new d.kX(U.current.position),a=new d.kX(q.current.target),n=new d.kX({blur:1500,spread:100});e.to({z:R},1e3).chain(r,a,n),t.to({opacity:0},1e3).onStart((()=>{G.current.remove(Q.current),Z.current.style.visibility="hidden"})).delay(300),r.to(q.current.position0,1e3).onComplete((function(){q.current.reset(),O.current.classList.remove("mask-container"),ie(K.current.curve,600),ae.current.isShowGraph3D=!1})),a.to({x:0,y:0,z:0},1e3),n.to({blur:0,spread:0},1e3),e.start(),t.start()})()}}))}},2284:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,':host{display:block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.mask-container{position:absolute;top:0;left:0;width:100%;height:100%;background:#0c1216;z-index:1000}.appwall-container{padding:8px}.appwall{position:relative}.appwall.loading .card-item{pointer-events:none!important}.mask{position:absolute;width:100%;height:100%;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:center}.mask[hidden]{display:none}.infoWrapper{position:absolute;background:var(--color-fill-bg-base-4);box-shadow:0 0 12px 2px rgba(80,255,255,0.45),inset 0 0 22px 0 #20242a;border:2px solid #50ffff;overflow:hidden}.warningWrapper{position:absolute;background:linear-gradient(180deg,#cc0066 0%,rgba(204,0,102,0.2) 100%),#0f1117ff;box-shadow:0 0 12px 2px rgba(204,0,102,0.4),inset 0 4px 10px 0 rgba(255,255,255,0.65);overflow:hidden}.relation-line{pointer-events:none!important}.closeBtn{visibility:hidden;position:fixed;top:50px;right:50px;width:46px;height:46px;text-align:center;border:1px solid;color:rgb(138 189 255/84%);font-size:20px;line-height:46px;cursor:pointer;background:rgba(138,189,255,0.13);border-image:linear-gradient(135deg,rgba(255,255,255,0.5),rgba(255,255,255,0),rgba(255,255,255,0.33)) 1 1;display:flex;justify-content:center;align-items:center;z-index:1000}.closeBtn:before,\n.closeBtn:after{content:"";width:2px;height:20px;background:linear-gradient(180deg,#3467ff 0%,#98cbff 100%);position:absolute}.closeBtn:before{transform:rotateZ(45deg)}.closeBtn:after{transform:rotateZ(-45deg)}.closeBtn:hover:after,\n.closeBtn:hover:before{background:var(--color-normal-text)}.visibilityAnimate{visibility:hidden;animation:visibility 0.5s both 1s}.trapezoidalLeftOrRightAnimation,\n.trapezoidalTopOrBottomAnimation{background:linear-gradient(180deg,rgba(51,102,255,0.4) 0%,#99ccff 100%);opacity:0.2;position:absolute}.trapezoidalTopOrBottomAnimation{bottom:0;width:100%;left:0;animation:animateTop 1s both}.trapezoidalLeftOrRightAnimation{top:0;right:0;height:100%;animation:animateLeft 1s both}@keyframes animateTop{0%{height:0}100%{height:100%}}@keyframes animateLeft{0%{width:0}100%{width:100%}}@keyframes visibility{0%{visibility:hidden}100%{visibility:visible}}.card-item-container{transition:opacity 0.5s}.status-normal-card{box-shadow:0 0 100px rgba(80,255,255,0.58);border:1px solid rgba(80,255,255,0.58);background:-webkit-gradient(liner,left top,left bottom,from(#002c8d),to(#00123e));background:linear-gradient(to bottom,rgba(80,255,255,1) 0%,rgba(80,255,255,0) 100%)}.status-warning-card{box-shadow:0 0 100px #cc0066;background:-webkit-gradient(liner,left top,left bottom,from(#cc0066),to(rgba(204,0,102,0.2)));background:linear-gradient(to bottom,#cc0066 0%,rgba(204,0,102,0.2) 100%)}',""]);const l=i.toString()},9214:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.card-item-container{position:relative;width:100%;height:100%}.card-item{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;border-radius:var(--no-border-radius);border-color:transparent;transition:border-color 0.5s}.status-normal:hover{box-shadow:0 0 100px rgba(80,255,255,0.58);border:1px solid rgba(80,255,255,0.58);background:-webkit-gradient(liner,left top,left bottom,from(#002c8d),to(#00123e));background:linear-gradient(to bottom,rgba(80,255,255,1) 0%,rgba(80,255,255,0) 100%)}.status-warning:hover{box-shadow:0 0 100px #CC0066;background:-webkit-gradient(liner,left top,left bottom,from(#CC0066),to(rgba(204,0,102,0.2)));background:linear-gradient(to bottom,#CC0066 0%,rgba(204,0,102,0.2) 100%)}.card-item-container.status-normal .card-item{background:var(--color-fill-bg-base-4);box-shadow:inset 0px 1px 2px 0px rgba(255,255,255,0.45)}.card-item-container.status-normal:hover .card-item{border:2px solid rgba(80,255,255,0.58)}.card-item-container.status-warning .card-item{background:linear-gradient(180deg,#CC0066 0%,rgba(204,0,102,0.2) 100%);box-shadow:inset 0px 2px 6px 0px rgba(255,255,255,0.65)}.card-item-container.status-warning:hover .card-item{border:none}.card-item-text-container{width:100%;padding:0 12px}.card-item-title,\n.card-item-description{font-size:20px;font-weight:var(--font-weight-500);color:var(--color-normal-text)}.card-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-item-description{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}",""]);const l=i.toString()},8384:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.relation-line{position:relative;width:6px;height:100%;background:var(--color-text-divider-line-1);overflow:hidden}.relation-line::after{content:'';position:absolute;width:100%;height:20%;left:0px;top:0px;animation:lightMove 1000ms ease-in-out infinite,lightOpacity 1000ms ease-in-out infinite}.relation-line.light-color-blue::after{background:linear-gradient(rgba(80,255,255,0) 0%,rgba(80,255,255,1) 90%,#DFFFFF 100%)}.relation-line.light-color-purple::after{background:linear-gradient(rgba(102,0,255,0) 0%,rgba(102,0,255,1) 90%,#B07BFF 100%)}@keyframes lightMove{0%{top:0;transform:translateY(-100%)}100%{top:100%;transform:translateY(0)}}@keyframes lightOpacity{0%{opacity:0}20%{opacity:1}80%{opacity:1}100%{opacity:0}}",""]);const l=i.toString()},9948:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{position:relative;width:100%;height:100%;padding:30px 24px 35px;left:0;display:flex;flex-direction:column;border-radius:var(--no-border-radius)}.cardName{font-size:var(--title-font-size-strong);line-height:22px;text-align:center;font-weight:var(--font-weight-500);color:var(--color-normal-text);text-shadow:0 1px 4px rgba(51,102,255,0.5);margin-bottom:35px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.descriptions{flex:1;margin-bottom:20px;font-size:var(--auxiliary-font-size-small);overflow:auto;font-weight:var(--font-weight-400)}.descriptionsItem .itemKey{color:var(--color-secondary-text)}.descriptionsItem .itemValue{color:var(--color-strong-text)}.descriptionsItem{display:flex;gap:10px;margin-bottom:12px}.descriptionsItem>div{flex:1;text-align:left;word-break:break-all}.buttonContent{position:absolute;bottom:16px;right:24px;font-size:var(--auxiliary-font-size);color:#99CCFF;cursor:pointer;font-weight:var(--font-weight-500)}.buttonName{margin-left:5px}",""]);const l=i.toString()},1043:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),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()}}]);
2
- //# sourceMappingURL=8442.5751dc28.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[8442],{1906:(e,t,r)=>{r.d(t,{j:()=>_});var a=r(7896),n=r(8657),o=r.n(n),i=r(1211),l=r(6995),c=r(5095),s=r(4827),d=r(2839),p=r(3028),u=(r(7035),r(7709),r(9703),(e,t,r)=>{var a=(new l.Pa4).subVectors(t,e),n=a.length(),o=document.createElement("data-view.app-wall-relation-line");o.style.height="".concat(n,"px"),o.classList.add("relation-line"),o.lightColor=r;var i=new c.cp(o),s=(new l.Pa4).lerpVectors(e,t,.5);i.position.copy(s);var d=(new l._fP).setFromUnitVectors(new l.Pa4(0,1,0).normalize(),a.clone().normalize());return i.setRotationFromQuaternion(d),i}),h=(e,t)=>{var r=new l.Pa4(e[0],e[1],e[2]),a=new l.Pa4(t[0],t[1],t[2]);return{centerVector:(new l.Pa4).lerpVectors(r,a,.5),subVector:(new l.Pa4).subVectors(r,a)}},g=e=>{var{BW:t,TW:r,d:a,TH:n,BH:o,isLeft:i}=e,s=Math.sqrt(Math.pow(r/2-t/2,2)+Math.pow(a,2)),d=document.createElement("div");d.style.cssText="\n width: ".concat(s,"px;\n height:").concat(n,"px;\n position: relative;\n clip-path: polygon(0 0, ").concat(s,"px ").concat(n/2-o/2,"px, ").concat(s,"px ").concat(n/2-o/2+o,"px, 0 ").concat(n,"px);\n ");var p=document.createElement("div");p.className="trapezoidalLeftOrRightAnimation",d.appendChild(p);var u=i?[-t/2,0,0]:[t/2,0,0],g=i?[-r/2,0,a]:[r/2,0,a],b=new c.cp(d),{centerVector:m,subVector:v}=h(u,g);b.position.copy(m);var x=(new l._fP).setFromUnitVectors(new l.Pa4(1,0,0).normalize(),v.clone().normalize());return b.setRotationFromQuaternion(x),b},b=e=>{var{BW:t,TW:r,d:a,TH:n,BH:o,isTop:i}=e,s=Math.sqrt(Math.pow(n/2-o/2,2)+Math.pow(a,2)),d=document.createElement("div");d.style.cssText="\n width: ".concat(r,"px;\n height:").concat(s,"px;\n position: relative;\n clip-path: polygon(0 0, ").concat(r,"px 0, ").concat(r/2-t/2+t,"px ").concat(s,"px, ").concat(r/2-t/2,"px ").concat(s,"px);\n ");var p=document.createElement("div");p.className="trapezoidalTopOrBottomAnimation",d.appendChild(p);var u=new c.cp(d),g=i?[0,-o/2,0]:[0,o/2,0],b=i?[0,-n/2,a]:[0,n/2,a],{centerVector:m,subVector:v}=h(g,b);u.position.copy(m);var x=(new l._fP).setFromUnitVectors(new l.Pa4(0,-1,0).normalize(),v.clone().normalize());return u.setRotationFromQuaternion(x),u},m=e=>{var{objectData:t,leftBtnName:r,clusters:a,columns:n,leftOnClick:o,rightBtnName:i,rightOnClick:l,appName:s}=e,d=600,p=document.createElement("div"),u=new c.cp(p);u.position.set(...t.point);var h=t.width,m=t.height,v=1500,x=1200,f=document.createElement("div");f.style.cssText="\n width: ".concat(h,"px;\n height: ").concat(m,"px;\n box-shadow: inset 0px 1px 2px 0px rgba(255,255,255,0.45);\n border: 1px solid rgba(118,255,255,0.58);\n padding: 16px;\n ");var w=new c.cp(f);w.position.z=0,u.add(w);var y=document.createElement("div");y.style.cssText="\n width: ".concat(v,"px;\n height:").concat(x,"px;\n background: linear-gradient(rgb(13, 54, 179,0.6) 0%, rgb(74, 108, 156,0.6) 100%);\n box-sizing: border-box;\n padding: 16px;\n ");var k=document.createElement("data-view.cabinet-thumbnail");k.clusters=null!=a?a:[],k.columns=null!=n?n:4,k.appName=s,y.className="visibilityAnimate",y.appendChild(k);var z=new c.cp(y);z.position.set(0,0,d);var T=g({BW:h,TW:v,BH:m,TH:x,d,isLeft:!0}),C=g({BW:h,TW:v,BH:m,TH:x,d,isLeft:!1}),S=b({BW:h,TW:v,BH:m,TH:x,d,isTop:!0}),P=b({BW:h,TW:v,BH:m,TH:x,d,isTop:!1});if(u.add(T,C,P,S),r){var E=document.createElement("div");E.style.cssText="\n color: #6BE0FA;\n font-size: 28px;\n font-weight: 500;\n width: ".concat(750,"px;\n line-height: 16px;\n "),E.className="visibilityAnimate";var R=document.createElement("span");R.style.cursor="pointer",R.innerText=r,E.appendChild(R);var M=new c.cp(E);M.position.set(-365,-600,14),M.rotateX(Math.PI/2),z.add(M),R.onpointerdown=o}if(i){var B=document.createElement("div");B.style.cssText="\n color: #FFFFFF;\n font-size: 30px;\n font-weight: 500;\n width: ".concat(750,"px;\n text-shadow: 0px 1px 4px #3366FF;\n text-align: right;\n "),B.className="visibilityAnimate";var I=document.createElement("span");I.style.cursor="pointer",I.innerText=i,B.appendChild(I);var _=new c.cp(B);_.position.set(365,-600,14),_.rotateX(Math.PI/2),z.add(_),I.onpointerdown=l}return u.add(z),u},v=(e,t,r)=>{if(null==e||!e.length)return[];var a=e.map((e=>(0,p.Z)((0,p.Z)({},e),{},{x:0,y:0})));if(a.length===t*r)a=a.map(((e,r)=>(0,p.Z)((0,p.Z)({},e),{},{x:r%t+1,y:parseInt("".concat(r/t))+1})));else{for(var n=t*(r-1),o=a.length-n,i=0;i<n;i++){var l=a[i];l.x=i%t+1,l.y=parseInt("".concat(i/t))+1}for(var c=0;c<o/2;c++){var s=a[c+n],d=a[a.length-1-c];s.x=c+1,s.y=r,s!==d&&(d.x=t-c,d.y=r)}}return a},x=(e,t,r,a)=>{var n=new l.Tme;return n.position.x=e.x*t.outerWidth-(r/2+.5)*t.outerWidth,n.position.y=-e.y*t.outerHeight+(a/2+.5)*t.outerHeight,n},f=(e,t,r,a,n,o)=>{var i=new l.Tme,c=new l.Pa4,s=((e,t,r,a,n)=>{var o={x:0,y:0,z:0},i=parseInt("".concat(r*t.outerWidth*180))/(n*Math.PI),l=r/2+.5;return o.x=i*Math.sin(Math.PI/(180/((e.x-l)*(n/r)))),o.y=-e.y*t.outerHeight+(a/2+.5)*t.outerHeight,o.z=i-Math.sqrt(i*i-o.x*o.x),o})(e,t,r,a,n);return i.position.x=s.x,i.position.y=s.y,i.position.z=s.z,c.x=0,c.y=i.position.y,c.z=o,i.lookAt(c),i},w=(e,t,r,a)=>{var n=t.height+2*t.margin,o=(t.width+2*t.margin)/e.aspect,i=.5*Math.max(o,n)/Math.tan(e.fov*Math.PI/360)+t.z,l=0;return r.forEach((function(e){a>=Math.min.apply(null,e.numRange)&&a<=Math.max.apply(null,e.numRange)&&(l=e.distance)})),Math.max(l,i)},y=(e,t)=>{var r=[],a=e.userData;return Array.isArray(t)&&t.length&&t.forEach((function(e){a.key!==e.source&&a.key!==e.target||r.push(e)})),r},k=(e,t)=>{var r=t.toUpperCase(),a=e.composedPath().find((e=>null==e?void 0:e.shadowRoot));if((null==a?void 0:a.tagName)===r)return a;var n=document.elementFromPoint(e.clientX,e.clientY),o=null==n?void 0:n.shadowRoot.elementFromPoint(e.clientX,e.clientY);return(null==o?void 0:o.tagName)===r?o:null},z=r(8835),T=r(2779),C=r.n(T),S=[{numRange:[0,40],distance:3e3},{numRange:[40,60],distance:2200},{numRange:[60,80],distance:2700},{numRange:[80,120],distance:3200},{numRange:[120,160],distance:3400},{numRange:[160,300],distance:3600}],P=45,E=100,R=300,M=500,B=(e,t,r,a)=>{var n=Math.ceil(Math.sqrt(e*t.outerHeight/(a*t.outerWidth))),o=Math.ceil(e/n),i=parseInt("".concat(n*t.outerWidth*180))/(E*Math.PI);return{maxX:n,maxY:o,radius:i,bounds:{width:2*i*Math.sin(Math.PI*(E/2)/180)+t.outerWidth,height:o*t.outerHeight,margin:r,z:i-i*Math.cos(Math.PI*(E/2)/180)}}},I=(0,z.wrapBrick)("data-view.app-wall-system-card");function _(e){var{relations:t,onSystemCardButtonClick:r,useDblclick:p,useDistanceConfig:h,handleCardDbClick:g,rightBtnOnClick:b,leftBtnOnClick:z,cardBrickName:T,cardSize:_,disabledDefaultClickEvent:X,handleCardClick:D,containerId:F,noRotate:A,boundMargin:W}=e,[N,L]=(0,n.useState)(null),H=(0,n.useRef)(),O=(0,n.useRef)(),Z=(0,n.useRef)(),V=(0,n.useRef)(),j=(0,n.useRef)(),Y=(0,n.useRef)(),G=(0,n.useRef)(),U=(0,n.useRef)(),q=(0,n.useRef)(),Q=(0,n.useRef)(),K=(0,n.useRef)({table:[],curve:[]}),$=(0,n.useRef)([]),J=(0,n.useRef)([]),ee=(0,n.useRef)(1),te=(0,n.useRef)(5e3),re=(0,n.useRef)({maxX:0,maxY:0,radius:0,bounds:{width:0,height:0,margin:W,z:0}}),ae=(0,n.useRef)({element:null,mouseoverTimer:null,mouseoutTimer:null,clickTimer:null,dblClickTimer:null,isShowGraph3D:!1,isShowAppInfo:!1,isShowRelations:!1,enable:!0}),ne=(0,n.useCallback)((()=>{Y.current.render(G.current,U.current),q.current.maxDistance=te.current+M,q.current.handleResize()}),[]),oe=e=>{var t;if(null===(t=ae.current)||void 0===t||!t.element)return null==e?void 0:e();var{__objectCSS:r,__curve:a,__userData:n}=ae.current.element;new d.kX(r.rotation).to({x:a.rotation.x,y:a.rotation.y,z:a.rotation.z},100).start(),new d.kX(r.scale).to({x:1,y:1,z:1},100).start(),new d.kX(r.position).to({x:a.position.x,y:a.position.y,z:a.position.z},100).onUpdate(ne).onStart((()=>{var e;"data-view.app-wall-card-item"===T&&r.element.classList.remove("status-".concat(n.status||"normal","-card")),null===(e=$.current)||void 0===e||e.forEach((e=>{e.element.style.opacity="1"})),J.current.forEach((e=>{G.current.remove(e)})),J.current=[],ne()})).onComplete((()=>{var t;ae.current.isShowRelations=!1,null==e||e(null===(t=ae.current)||void 0===t?void 0:t.element)})).start()},ie=(e,t)=>{ae.current.enable=!1;for(var r=0;r<$.current.length;r++){var a=$.current[r],n=e[r];new d.kX(a.position).to({x:n.position.x,y:n.position.y,z:n.position.z},l.M8C.randFloat(t,2*t)).easing(d.oY.Exponential.InOut).start(),new d.kX(a.rotation).to({x:n.rotation.x,y:n.rotation.y,z:n.rotation.z},l.M8C.randFloat(t,2*t)).easing(d.oY.Exponential.InOut).start()}new d.kX({}).to({},2*t).onUpdate(ne).start().onComplete((()=>{ae.current.enable=!0}))},le=e=>{q.current.reset();var t=ae.current.element.__objectCSS,r=ae.current.element.__curve;ae.current.enable=!1,ae.current.isShowAppInfo=!0;var a,n={x:r.position.x>0?2*-_.width:2*_.width,y:0,z:(U.current.position.z-500)/1.5},o={x:0,y:0,z:U.current.position.z-500},i={x:0,y:r.rotation.y>0?90*-Math.PI/180:90*Math.PI/180,z:0},l={x:0,y:r.rotation.y>0?180*-Math.PI/180:180*Math.PI/180,z:0},c=new d.kX(t.position),s=new d.kX(t.rotation),p=new d.kX(t.position),u=new d.kX(t.rotation);e?(c.to(n,500).easing().onComplete((()=>{j.current.hidden=!0,ae.current.element.style.opacity="1"})),s.to(i,500).easing(),p.to({x:r.position.x,y:r.position.y,z:r.position.z},700).easing(),u.to({x:r.rotation.x,y:r.rotation.y,z:r.rotation.z},700).easing().onComplete((()=>{var e;null===(e=$.current)||void 0===e||e.forEach((e=>{e.element.style.opacity="1"}))}))):(null===(a=$.current)||void 0===a||a.forEach((e=>{t!=e&&(e.element.style.opacity="0.2")})),c.to(n,700).easing().onStart((()=>{V.current.hidden=!1,j.current.hidden=!0})),s.to(i,700).easing(),p.to(o,500).easing().onStart((function(){ae.current.element.style.opacity="0",j.current.style.transition="transition: all .3s ease",j.current.hidden=!1})),u.to(l,500).easing()),c.chain(p).start(),s.chain(u).start(),new d.kX({}).to({},1400).onUpdate((()=>{if(ne(),Math.abs(t.rotation.y)>=Math.PI/2){var e=ae.current.element.getBoundingClientRect(),r=1.35,a=e.width*r,n=e.height*r;j.current.style.width="".concat(a,"px"),j.current.style.height="".concat(n,"px"),j.current.style.top="".concat(e.top-(r-1)*n/2,"px"),j.current.style.left="".concat(e.left-(r-1)*a/2,"px")}})).start().onComplete((function(){ae.current.enable=!0,ae.current.isShowAppInfo=!e,V.current.hidden=e}))};return(0,n.useEffect)((()=>{var e;(()=>{var e,t=null===(e=document.getElementById(F))||void 0===e?void 0:e.getBoundingClientRect(),r=(null==t?void 0:t.width)||window.innerWidth,a=(null==t?void 0:t.height)||window.innerHeight,n=r/a,o=new l.xsS,i=new l.cPb(P,n,.1,1e4),d=new c.lX;d.setSize(r,a),O.current.replaceChildren(d.domElement);var p=new s.$(i,d.domElement);p.rotateSpeed=.5,p.minDistance=500,p.maxDistance=1e4,p.noRotate=A,G.current=o,U.current=i,q.current=p,Y.current=d})();var t=()=>{e=requestAnimationFrame(t),d.ZP.update(),q.current.update()};t();var r=F?document.getElementById(F):document.body,a=new ResizeObserver((0,i.debounce)((()=>{var{width:e,height:t}=r.getBoundingClientRect();U.current.aspect=e/t,U.current.updateProjectionMatrix(),Y.current.setSize(e,t),ne()}),300));return q.current.addEventListener("change",ne),a.observe(r),()=>{a.disconnect(),q.current.removeEventListener("change",ne),q.current.dispose(),d.ZP.removeAll(),U.current.clear(),G.current.clear(),cancelAnimationFrame(e)}}),[]),(0,n.useEffect)((()=>{var t,r=(null===(t=e.dataSource)||void 0===t?void 0:t.length)||0;r>0&&((e=>{re.current=B(e,_,W,1/U.current.aspect)})(r),te.current=w(U.current,re.current.bounds,h?S:[],r),U.current.position.z=te.current,U.current.updateProjectionMatrix(),q.current.position0.copy(U.current.position),v(e.dataSource,re.current.maxX,re.current.maxY).forEach(((e,t)=>{var r,a,n,o,i,l,s,d=document.createElement(T);d.status=e.status,d.cardTitle=null===(r=e.cardItemProps)||void 0===r?void 0:r.cardTitle,d.description=null===(a=e.cardItemProps)||void 0===a?void 0:a.description,d.background=null===(n=e.cardItemProps)||void 0===n?void 0:n.background,d.color=null===(o=e.cardItemProps)||void 0===o?void 0:o.color,d.titleStyle=null===(i=e.cardItemProps)||void 0===i?void 0:i.titleStyle,d.desStyle=null===(l=e.cardItemProps)||void 0===l?void 0:l.desStyle,d.descriptionList=null===(s=e.cardItemProps)||void 0===s?void 0:s.descriptionList;var p="status-".concat((null==e?void 0:e.status)||"normal");d.className="card-item-container ".concat(p),d.style.width="".concat(_.width,"px"),d.style.height="".concat(_.height,"px"),d.classList.add("card-item-wrap");var u=new c.cp(d);u.position.set(4e3*Math.random()-2e3,4e3*Math.random()-2e3,4e3*Math.random()-2e3),G.current.add(u),$.current.push(u);var h=x(e,_,re.current.maxX,re.current.maxY);K.current.table.push(h);var g=f(e,_,re.current.maxX,re.current.maxY,E,re.current.radius);K.current.curve.push(g),u.userData=e,d.__objectCSS=u,d.__userData=e,d.__curve=g})),ie(K.current.curve,1e3));return()=>{q.current.reset(),d.ZP.removeAll(),$.current.map((e=>{G.current.remove(e)})),$.current=[],K.current={table:[],curve:[]},ae.current={element:null,mouseoverTimer:null,mouseoutTimer:null,clickTimer:null,dblClickTimer:null,enable:!0,isShowAppInfo:!1,isShowGraph3D:!1,isShowRelations:!1}}}),[e.dataSource,h]),(0,n.useEffect)((()=>{var e=H.current,r=e=>{if(clearTimeout(ae.current.mouseoverTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var r=k(e,T);ae.current.mouseoverTimer=window.setTimeout((()=>{oe((()=>{r&&!ae.current.isShowAppInfo&&(e=>{var{__objectCSS:r,__userData:a}=e,n=r.rotation.y,o=r.element.getBoundingClientRect(),i={x:r.position.x+50*Math.sin(n),y:r.position.y+15,z:r.position.z+100*Math.cos(n)},l=o.width>=_.width?ee.current:Math.min(_.width/o.width,_.height/o.height);ae.current.isShowRelations=!0,new d.kX(r.rotation).onStart((()=>{"data-view.app-wall-card-item"===T&&r.element.classList.add("status-".concat(a.status||"normal","-card"))})).start(),new d.kX(r.scale).to({x:l,y:l,z:l},100).start(),new d.kX(r.position).to(i,100).onUpdate(ne).onComplete((function(){var a,n,o,i,l,c;l=y(a=r,t),c=a.userData,null==l||l.forEach((e=>{e.source===c.key?(i=$.current.find((t=>t.userData.key===e.target)),o=i&&u(a.position,i.position,"blue")):(i=$.current.find((t=>t.userData.key===e.source)),o=i&&u(i.position,a.position,"purple")),o&&(J.current.push(o),G.current.add(o))})),null===(n=$.current)||void 0===n||n.forEach((e=>{a!=e&&l.every((t=>t.source!=e.userData.key&&t.target!=e.userData.key))&&(e.element.style.opacity="0.2")})),ne(),ae.current.element=e})).start()})(r),clearTimeout(ae.current.mouseoverTimer)}))}),300)},a=e=>{if(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var t=k(e,T);ae.current.clickTimer=window.setTimeout((function(){clearTimeout(ae.current.mouseoverTimer),oe((()=>{t&&(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),e.stopPropagation(),ae.current.element=t,X?null==D||D(t.__userData):(L(t.__userData),le(!1)))}))}),200)},n=e=>{if(clearTimeout(ae.current.clickTimer),clearTimeout(ae.current.mouseoverTimer),clearTimeout(ae.current.dblClickTimer),ae.current.isShowAppInfo||ae.current.isShowGraph3D||!ae.current.enable)return!1;var t=k(e,T),{__userData:r,__objectCSS:a}=t;ae.current.isShowGraph3D=!0,ae.current.dblClickTimer=window.setTimeout((function(){oe((()=>{var e;if(p||(null===(e=r.trapezoidalProps)||void 0===e||null===(e=e.clusters)||void 0===e?void 0:e.length)<1)g(r),ae.current.isShowGraph3D=!1;else if(t){clearTimeout(ae.current.mouseoverTimer),clearTimeout(ae.current.clickTimer),O.current.classList.add("mask-container"),q.current.reset();var n={x:a.position.x,y:860+_.height*(re.current.maxY-r.y)},o=new d.kX(U.current.position),i=new d.kX({opacity:0,scale:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0}),l=new d.kX({z:0}),c=new d.kX(U.current.position),s=new d.kX(q.current.target),u=new d.kX({blur:12,spread:0});ie(K.current.table,600),o.to({x:0,y:-3600,z:1600},1e3).chain(u,i,l),i.to({opacity:1},700).onStart((()=>{var e,t,n,o,i,l=m({objectData:{width:_.width,height:_.height,point:[a.position.x,a.position.y,a.position.z]},clusters:null===(e=r.trapezoidalProps)||void 0===e?void 0:e.clusters,columns:null===(t=r.trapezoidalProps)||void 0===t?void 0:t.columns,appName:null===(n=r.trapezoidalProps)||void 0===n?void 0:n.appName,leftBtnName:null===(o=r.trapezoidalProps)||void 0===o?void 0:o.leftBtnName,rightBtnName:null===(i=r.trapezoidalProps)||void 0===i?void 0:i.rightBtnName,rightOnClick:()=>b(r),leftOnClick:()=>z(r)});Q.current=l,G.current.add(l)})),l.to({z:R},1e3).delay(230).chain(c,s),c.to({x:n.x,y:-3600+n.y},1e3),s.to({x:n.x,y:n.y},1e3).onComplete((function(){Z.current.style.visibility="visible"})),o.start()}}))}),200)};return e.addEventListener("dblclick",n),e.addEventListener("click",a),e.addEventListener("mouseover",r),()=>{e.removeEventListener("mouseover",r),e.removeEventListener("click",a),e.removeEventListener("dblclick",n)}}),[X,D]),o().createElement("div",{className:"appwall-container",ref:H},o().createElement("div",{className:"appwall",ref:O}),o().createElement("div",{className:"mask",ref:V,onClick:()=>{ae.current.enable&&le(!0)},hidden:!0},o().createElement(I,(0,a.Z)({},null==N?void 0:N.systemCardProps,{onClick:e=>e.stopPropagation(),handleClick:()=>r(N),ref:j,className:C()({infoWrapper:"normal"===(null==N?void 0:N.status),warningWrapper:"warning"===(null==N?void 0:N.status)})}))),o().createElement("div",{className:"closeBtn",ref:Z,onClick:()=>{(()=>{d.ZP.removeAll();var e=new d.kX({z:0}),t=new d.kX({opacity:1}),r=new d.kX(U.current.position),a=new d.kX(q.current.target),n=new d.kX({blur:1500,spread:100});e.to({z:R},1e3).chain(r,a,n),t.to({opacity:0},1e3).onStart((()=>{G.current.remove(Q.current),Z.current.style.visibility="hidden"})).delay(300),r.to(q.current.position0,1e3).onComplete((function(){q.current.reset(),O.current.classList.remove("mask-container"),ie(K.current.curve,600),ae.current.isShowGraph3D=!1})),a.to({x:0,y:0,z:0},1e3),n.to({blur:0,spread:0},1e3),e.start(),t.start()})()}}))}},2284:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,':host{display:block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.mask-container{position:absolute;top:0;left:0;width:100%;height:100%;background:#0c1216;z-index:1000}.appwall-container{padding:8px}.appwall{position:relative}.appwall.loading .card-item{pointer-events:none!important}.mask{position:absolute;width:100%;height:100%;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:center}.mask[hidden]{display:none}.infoWrapper{position:absolute;background:var(--color-fill-bg-base-4);box-shadow:0 0 12px 2px rgba(80,255,255,0.45),inset 0 0 22px 0 #20242a;border:2px solid #50ffff;overflow:hidden}.warningWrapper{position:absolute;background:linear-gradient(180deg,#cc0066 0%,rgba(204,0,102,0.2) 100%),#0f1117ff;box-shadow:0 0 12px 2px rgba(204,0,102,0.4),inset 0 4px 10px 0 rgba(255,255,255,0.65);overflow:hidden}.relation-line{pointer-events:none!important}.closeBtn{visibility:hidden;position:fixed;top:50px;right:50px;width:46px;height:46px;text-align:center;border:1px solid;color:rgb(138 189 255/84%);font-size:20px;line-height:46px;cursor:pointer;background:rgba(138,189,255,0.13);border-image:linear-gradient(135deg,rgba(255,255,255,0.5),rgba(255,255,255,0),rgba(255,255,255,0.33)) 1 1;display:flex;justify-content:center;align-items:center;z-index:1000}.closeBtn:before,\n.closeBtn:after{content:"";width:2px;height:20px;background:linear-gradient(180deg,#3467ff 0%,#98cbff 100%);position:absolute}.closeBtn:before{transform:rotateZ(45deg)}.closeBtn:after{transform:rotateZ(-45deg)}.closeBtn:hover:after,\n.closeBtn:hover:before{background:var(--color-normal-text)}.visibilityAnimate{visibility:hidden;animation:visibility 0.5s both 1s}.trapezoidalLeftOrRightAnimation,\n.trapezoidalTopOrBottomAnimation{background:linear-gradient(180deg,rgba(51,102,255,0.4) 0%,#99ccff 100%);opacity:0.2;position:absolute}.trapezoidalTopOrBottomAnimation{bottom:0;width:100%;left:0;animation:animateTop 1s both}.trapezoidalLeftOrRightAnimation{top:0;right:0;height:100%;animation:animateLeft 1s both}@keyframes animateTop{0%{height:0}100%{height:100%}}@keyframes animateLeft{0%{width:0}100%{width:100%}}@keyframes visibility{0%{visibility:hidden}100%{visibility:visible}}.card-item-container{transition:opacity 0.5s}.status-normal-card{box-shadow:0 0 100px rgba(80,255,255,0.58);border:1px solid rgba(80,255,255,0.58);background:-webkit-gradient(liner,left top,left bottom,from(#002c8d),to(#00123e));background:linear-gradient(to bottom,rgba(80,255,255,1) 0%,rgba(80,255,255,0) 100%)}.status-warning-card{box-shadow:0 0 100px #cc0066;background:-webkit-gradient(liner,left top,left bottom,from(#cc0066),to(rgba(204,0,102,0.2)));background:linear-gradient(to bottom,#cc0066 0%,rgba(204,0,102,0.2) 100%)}',""]);const l=i.toString()},9214:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.card-item-container{position:relative;width:100%;height:100%}.card-item{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;border-radius:var(--no-border-radius);border-color:transparent;transition:border-color 0.5s}.status-normal:hover{box-shadow:0 0 100px rgba(80,255,255,0.58);border:1px solid rgba(80,255,255,0.58);background:-webkit-gradient(liner,left top,left bottom,from(#002c8d),to(#00123e));background:linear-gradient(to bottom,rgba(80,255,255,1) 0%,rgba(80,255,255,0) 100%)}.status-warning:hover{box-shadow:0 0 100px #CC0066;background:-webkit-gradient(liner,left top,left bottom,from(#CC0066),to(rgba(204,0,102,0.2)));background:linear-gradient(to bottom,#CC0066 0%,rgba(204,0,102,0.2) 100%)}.card-item-container.status-normal .card-item{background:var(--color-fill-bg-base-4);box-shadow:inset 0px 1px 2px 0px rgba(255,255,255,0.45)}.card-item-container.status-normal:hover .card-item{border:2px solid rgba(80,255,255,0.58)}.card-item-container.status-warning .card-item{background:linear-gradient(180deg,#CC0066 0%,rgba(204,0,102,0.2) 100%);box-shadow:inset 0px 2px 6px 0px rgba(255,255,255,0.65)}.card-item-container.status-warning:hover .card-item{border:none}.card-item-text-container{width:100%;padding:0 12px}.card-item-title,\n.card-item-description{font-size:20px;font-weight:var(--font-weight-500);color:var(--color-normal-text)}.card-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-item-description{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}",""]);const l=i.toString()},8384:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.relation-line{position:relative;width:6px;height:100%;background:var(--color-text-divider-line-1);overflow:hidden}.relation-line::after{content:'';position:absolute;width:100%;height:20%;left:0px;top:0px;animation:lightMove 1000ms ease-in-out infinite,lightOpacity 1000ms ease-in-out infinite}.relation-line.light-color-blue::after{background:linear-gradient(rgba(80,255,255,0) 0%,rgba(80,255,255,1) 90%,#DFFFFF 100%)}.relation-line.light-color-purple::after{background:linear-gradient(rgba(102,0,255,0) 0%,rgba(102,0,255,1) 90%,#B07BFF 100%)}@keyframes lightMove{0%{top:0;transform:translateY(-100%)}100%{top:100%;transform:translateY(0)}}@keyframes lightOpacity{0%{opacity:0}20%{opacity:1}80%{opacity:1}100%{opacity:0}}",""]);const l=i.toString()},9948:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),i=r.n(o)()(n());i.push([e.id,":host{display:inline-block}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{position:relative;width:100%;height:100%;padding:30px 24px 35px;left:0;display:flex;flex-direction:column;border-radius:var(--no-border-radius)}.cardName{font-size:var(--title-font-size-strong);line-height:22px;text-align:center;font-weight:var(--font-weight-500);color:var(--color-normal-text);text-shadow:0 1px 4px rgba(51,102,255,0.5);margin-bottom:35px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.descriptions{flex:1;margin-bottom:20px;font-size:var(--auxiliary-font-size-small);overflow:auto;font-weight:var(--font-weight-400)}.descriptionsItem .itemKey{color:var(--color-secondary-text)}.descriptionsItem .itemValue{color:var(--color-strong-text)}.descriptionsItem{display:flex;gap:10px;margin-bottom:12px}.descriptionsItem>div{flex:1;text-align:left;word-break:break-all}.buttonContent{position:absolute;bottom:16px;right:24px;font-size:var(--auxiliary-font-size);color:#99CCFF;cursor:pointer;font-weight:var(--font-weight-500)}.buttonName{margin-left:5px}",""]);const l=i.toString()},1043:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9601),n=r.n(a),o=r(2609),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()}}]);
2
+ //# sourceMappingURL=8442.2a6aa66c.js.map