@next-bricks/data-view 1.12.1 → 1.12.2

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 (146) hide show
  1. package/dist/bricks.json +15 -15
  2. package/dist/chunks/{114.3c9ded00.js → 114.19fb04c3.js} +2 -2
  3. package/dist/chunks/{114.3c9ded00.js.map → 114.19fb04c3.js.map} +1 -1
  4. package/dist/chunks/{1493.f58ac7e3.js → 1493.d9a3fd09.js} +2 -2
  5. package/dist/chunks/{1493.f58ac7e3.js.map → 1493.d9a3fd09.js.map} +1 -1
  6. package/dist/chunks/{3171.58807427.js → 3171.c0d5c9a1.js} +2 -2
  7. package/dist/chunks/{3171.58807427.js.map → 3171.c0d5c9a1.js.map} +1 -1
  8. package/dist/chunks/{3933.f2b54556.js → 3933.b3a62e03.js} +2 -2
  9. package/dist/chunks/{3933.f2b54556.js.map → 3933.b3a62e03.js.map} +1 -1
  10. package/dist/chunks/{7218.fd284b6b.js → 4837.7e3e2eea.js} +2 -2
  11. package/dist/chunks/{4837.f34e276b.js.map → 4837.7e3e2eea.js.map} +1 -1
  12. package/dist/chunks/{5552.87da9878.js → 5552.f046ba86.js} +2 -2
  13. package/dist/chunks/{5552.87da9878.js.map → 5552.f046ba86.js.map} +1 -1
  14. package/dist/chunks/{6314.a27d2069.js → 6314.6563d16e.js} +2 -2
  15. package/dist/chunks/{6314.a27d2069.js.map → 6314.6563d16e.js.map} +1 -1
  16. package/dist/chunks/{4837.f34e276b.js → 7218.2b5b7887.js} +2 -2
  17. package/dist/chunks/{7218.fd284b6b.js.map → 7218.2b5b7887.js.map} +1 -1
  18. package/dist/chunks/{7733.218dd478.js → 7733.c0366b9c.js} +2 -2
  19. package/dist/chunks/{7733.218dd478.js.map → 7733.c0366b9c.js.map} +1 -1
  20. package/dist/chunks/{8097.e14d0f64.js → 8097.f99bf9d0.js} +2 -2
  21. package/dist/chunks/{8097.e14d0f64.js.map → 8097.f99bf9d0.js.map} +1 -1
  22. package/dist/chunks/{8826.7aa371b5.js → 8826.63d2867f.js} +2 -2
  23. package/dist/chunks/{8826.7aa371b5.js.map → 8826.63d2867f.js.map} +1 -1
  24. package/dist/chunks/{9140.3c21ab5b.js → 9140.776942ea.js} +3 -3
  25. package/dist/chunks/9140.776942ea.js.map +1 -0
  26. package/dist/chunks/{app-wall-card-item.da5f2d4f.js → app-wall-card-item.438a2758.js} +3 -3
  27. package/dist/chunks/{app-wall-card-item.da5f2d4f.js.map → app-wall-card-item.438a2758.js.map} +1 -1
  28. package/dist/chunks/{app-wall-relation-line.7042a5be.js → app-wall-relation-line.94bc5eba.js} +3 -3
  29. package/dist/chunks/{app-wall-relation-line.7042a5be.js.map → app-wall-relation-line.94bc5eba.js.map} +1 -1
  30. package/dist/chunks/{app-wall-system-card.c8153e32.js → app-wall-system-card.29cd2836.js} +2 -2
  31. package/dist/chunks/{app-wall-system-card.c8153e32.js.map → app-wall-system-card.29cd2836.js.map} +1 -1
  32. package/dist/chunks/{app-wall.276c885a.js → app-wall.1d0801d4.js} +2 -2
  33. package/dist/chunks/{app-wall.276c885a.js.map → app-wall.1d0801d4.js.map} +1 -1
  34. package/dist/chunks/{basic-index-group.2e63b2b7.js → basic-index-group.ffbab2ee.js} +2 -2
  35. package/dist/chunks/{basic-index-group.2e63b2b7.js.map → basic-index-group.ffbab2ee.js.map} +1 -1
  36. package/dist/chunks/{battery-chart.3c0f114d.js → battery-chart.80355972.js} +2 -2
  37. package/dist/chunks/{battery-chart.3c0f114d.js.map → battery-chart.80355972.js.map} +1 -1
  38. package/dist/chunks/{brick-notification.937aab80.js → brick-notification.11d7411b.js} +2 -2
  39. package/dist/chunks/{brick-notification.937aab80.js.map → brick-notification.11d7411b.js.map} +1 -1
  40. package/dist/chunks/{bubbles-indicator.af0a0a56.js → bubbles-indicator.9df60d36.js} +2 -2
  41. package/dist/chunks/{bubbles-indicator.af0a0a56.js.map → bubbles-indicator.9df60d36.js.map} +1 -1
  42. package/dist/chunks/{cabinet-app-layer.dfafd4b1.js → cabinet-app-layer.05c66229.js} +3 -3
  43. package/dist/chunks/{cabinet-app-layer.dfafd4b1.js.map → cabinet-app-layer.05c66229.js.map} +1 -1
  44. package/dist/chunks/{cabinet-button.4eacd143.js → cabinet-button.ee9ea68d.js} +2 -2
  45. package/dist/chunks/{cabinet-button.4eacd143.js.map → cabinet-button.ee9ea68d.js.map} +1 -1
  46. package/dist/chunks/{cabinet-container.6de86813.js → cabinet-container.70ba99de.js} +3 -3
  47. package/dist/chunks/{cabinet-container.6de86813.js.map → cabinet-container.70ba99de.js.map} +1 -1
  48. package/dist/chunks/{cabinet-graph.b401d383.js → cabinet-graph.4cfa6429.js} +2 -2
  49. package/dist/chunks/{cabinet-graph.b401d383.js.map → cabinet-graph.4cfa6429.js.map} +1 -1
  50. package/dist/chunks/{cabinet-node.6cdcc2f4.js → cabinet-node.54685641.js} +3 -3
  51. package/dist/chunks/{cabinet-node.6cdcc2f4.js.map → cabinet-node.54685641.js.map} +1 -1
  52. package/dist/chunks/{cabinet-thumbnail.d2a5a22e.js → cabinet-thumbnail.ae05c311.js} +3 -3
  53. package/dist/chunks/{cabinet-thumbnail.d2a5a22e.js.map → cabinet-thumbnail.ae05c311.js.map} +1 -1
  54. package/dist/chunks/{china-map-chart.b86cfdc6.js → china-map-chart.7f0adf1a.js} +2 -2
  55. package/dist/chunks/{china-map-chart.b86cfdc6.js.map → china-map-chart.7f0adf1a.js.map} +1 -1
  56. package/dist/chunks/{china-map.faf20495.js → china-map.3e89e422.js} +2 -2
  57. package/dist/chunks/{china-map.faf20495.js.map → china-map.3e89e422.js.map} +1 -1
  58. package/dist/chunks/{complex-search.c53d6876.js → complex-search.92e0b5ca.js} +2 -2
  59. package/dist/chunks/{complex-search.c53d6876.js.map → complex-search.92e0b5ca.js.map} +1 -1
  60. package/dist/chunks/{crystal-ball-indicator.170ca1e4.js → crystal-ball-indicator.bb7f716b.js} +2 -2
  61. package/dist/chunks/{crystal-ball-indicator.170ca1e4.js.map → crystal-ball-indicator.bb7f716b.js.map} +1 -1
  62. package/dist/chunks/{data-display-flipper-fifth.3d575cb7.js → data-display-flipper-fifth.6cdcf8a4.js} +2 -2
  63. package/dist/chunks/{data-display-flipper-fifth.3d575cb7.js.map → data-display-flipper-fifth.6cdcf8a4.js.map} +1 -1
  64. package/dist/chunks/{data-display-flipper-sixth.9aa671ab.js → data-display-flipper-sixth.d3052c74.js} +2 -2
  65. package/dist/chunks/{data-display-flipper-sixth.9aa671ab.js.map → data-display-flipper-sixth.d3052c74.js.map} +1 -1
  66. package/dist/chunks/{data-display-flipper.b0b989af.js → data-display-flipper.df9e9e17.js} +2 -2
  67. package/dist/chunks/{data-display-flipper.b0b989af.js.map → data-display-flipper.df9e9e17.js.map} +1 -1
  68. package/dist/chunks/{dropdown-menu.8639ec11.js → dropdown-menu.7c2ad1f0.js} +3 -3
  69. package/dist/chunks/{dropdown-menu.8639ec11.js.map → dropdown-menu.7c2ad1f0.js.map} +1 -1
  70. package/dist/chunks/{gauge-chart.41091236.js → gauge-chart.cbbfe883.js} +2 -2
  71. package/dist/chunks/{gauge-chart.41091236.js.map → gauge-chart.cbbfe883.js.map} +1 -1
  72. package/dist/chunks/{gear-background.9bfb53bd.js → gear-background.5ab63f12.js} +2 -2
  73. package/dist/chunks/{gear-background.9bfb53bd.js.map → gear-background.5ab63f12.js.map} +1 -1
  74. package/dist/chunks/{globe-with-gear-indicator.c9e02dda.js → globe-with-gear-indicator.61e1e1e1.js} +2 -2
  75. package/dist/chunks/{globe-with-gear-indicator.c9e02dda.js.map → globe-with-gear-indicator.61e1e1e1.js.map} +1 -1
  76. package/dist/chunks/{globe-with-halo-indicator.efc88256.js → globe-with-halo-indicator.dbbb98b8.js} +2 -2
  77. package/dist/chunks/{globe-with-halo-indicator.efc88256.js.map → globe-with-halo-indicator.dbbb98b8.js.map} +1 -1
  78. package/dist/chunks/{globe-with-orbit-indicator.7283d892.js → globe-with-orbit-indicator.3539cb84.js} +2 -2
  79. package/dist/chunks/{globe-with-orbit-indicator.7283d892.js.map → globe-with-orbit-indicator.3539cb84.js.map} +1 -1
  80. package/dist/chunks/{graph-layout-grid.a55d8a02.js → graph-layout-grid.abb6c059.js} +2 -2
  81. package/dist/chunks/{graph-layout-grid.a55d8a02.js.map → graph-layout-grid.abb6c059.js.map} +1 -1
  82. package/dist/chunks/{graph-node.cf0b1cfa.js → graph-node.dce0737b.js} +2 -2
  83. package/dist/chunks/{graph-node.cf0b1cfa.js.map → graph-node.dce0737b.js.map} +1 -1
  84. package/dist/chunks/graph-text.1e489f3c.js +2 -0
  85. package/dist/chunks/{graph-text.35673faa.js.map → graph-text.1e489f3c.js.map} +1 -1
  86. package/dist/chunks/{grid-background.cc1e3afa.js → grid-background.ac91a79b.js} +2 -2
  87. package/dist/chunks/{grid-background.cc1e3afa.js.map → grid-background.ac91a79b.js.map} +1 -1
  88. package/dist/chunks/{hi-tech-button.dead37e9.js → hi-tech-button.174e33b5.js} +2 -2
  89. package/dist/chunks/{hi-tech-button.dead37e9.js.map → hi-tech-button.174e33b5.js.map} +1 -1
  90. package/dist/chunks/{indicator-card.f7458b02.js → indicator-card.365a80fa.js} +3 -3
  91. package/dist/chunks/{indicator-card.f7458b02.js.map → indicator-card.365a80fa.js.map} +1 -1
  92. package/dist/chunks/{lights-component-title.9cd0ac54.js → lights-component-title.b45aca52.js} +2 -2
  93. package/dist/chunks/{lights-component-title.9cd0ac54.js.map → lights-component-title.b45aca52.js.map} +1 -1
  94. package/dist/chunks/{loading-panel.7016fde7.js → loading-panel.c38af443.js} +2 -2
  95. package/dist/chunks/{loading-panel.7016fde7.js.map → loading-panel.c38af443.js.map} +1 -1
  96. package/dist/chunks/main.2bd22c14.js +2 -0
  97. package/dist/chunks/{main.dc2e2e0c.js.map → main.2bd22c14.js.map} +1 -1
  98. package/dist/chunks/{modern-style-component-title.7c84583d.js → modern-style-component-title.66152366.js} +2 -2
  99. package/dist/chunks/{modern-style-component-title.7c84583d.js.map → modern-style-component-title.66152366.js.map} +1 -1
  100. package/dist/chunks/{modern-style-page-title.9c0ea141.js → modern-style-page-title.f50dfbec.js} +2 -2
  101. package/dist/chunks/{modern-style-page-title.9c0ea141.js.map → modern-style-page-title.f50dfbec.js.map} +1 -1
  102. package/dist/chunks/modern-style-treemap.53d4bfc8.js +3 -0
  103. package/dist/chunks/{modern-style-treemap.3836ca2d.js.map → modern-style-treemap.53d4bfc8.js.map} +1 -1
  104. package/dist/chunks/{particle-animation.b1ee4077.js → particle-animation.ee49b237.js} +2 -2
  105. package/dist/chunks/{particle-animation.b1ee4077.js.map → particle-animation.ee49b237.js.map} +1 -1
  106. package/dist/chunks/{progress-bar-list.1bda79e5.js → progress-bar-list.7254b6b3.js} +2 -2
  107. package/dist/chunks/{progress-bar-list.1bda79e5.js.map → progress-bar-list.7254b6b3.js.map} +1 -1
  108. package/dist/chunks/{radar-chart.12f7c254.js → radar-chart.0e982983.js} +2 -2
  109. package/dist/chunks/{radar-chart.12f7c254.js.map → radar-chart.0e982983.js.map} +1 -1
  110. package/dist/chunks/{simple-card-item.527df7f3.js → simple-card-item.c36118a6.js} +3 -3
  111. package/dist/chunks/{simple-card-item.527df7f3.js.map → simple-card-item.c36118a6.js.map} +1 -1
  112. package/dist/chunks/{tabs-drawer.6f738d4a.js → tabs-drawer.2e83b00f.js} +3 -3
  113. package/dist/chunks/{tabs-drawer.6f738d4a.js.map → tabs-drawer.2e83b00f.js.map} +1 -1
  114. package/dist/chunks/{tabs-page-title.de666d04.js → tabs-page-title.19eaecee.js} +3 -3
  115. package/dist/chunks/{tabs-page-title.de666d04.js.map → tabs-page-title.19eaecee.js.map} +1 -1
  116. package/dist/chunks/{tech-mesh-base-view.bb1c3815.js → tech-mesh-base-view.2c686877.js} +2 -2
  117. package/dist/chunks/{tech-mesh-base-view.bb1c3815.js.map → tech-mesh-base-view.2c686877.js.map} +1 -1
  118. package/dist/chunks/{title-text.b5045fb6.js → title-text.fc52bc8a.js} +2 -2
  119. package/dist/chunks/{title-text.b5045fb6.js.map → title-text.fc52bc8a.js.map} +1 -1
  120. package/dist/chunks/{top-title-bar.a630cb07.js → top-title-bar.0e9025cd.js} +2 -2
  121. package/dist/chunks/{top-title-bar.a630cb07.js.map → top-title-bar.0e9025cd.js.map} +1 -1
  122. package/dist/examples.json +21 -21
  123. package/dist/index.727c7633.js +2 -0
  124. package/dist/index.727c7633.js.map +1 -0
  125. package/dist/manifest.json +201 -201
  126. package/dist/types.json +572 -572
  127. package/package.json +4 -4
  128. package/dist/chunks/9140.3c21ab5b.js.map +0 -1
  129. package/dist/chunks/graph-text.35673faa.js +0 -2
  130. package/dist/chunks/main.dc2e2e0c.js +0 -2
  131. package/dist/chunks/modern-style-treemap.3836ca2d.js +0 -3
  132. package/dist/index.bddd5f0f.js +0 -2
  133. package/dist/index.bddd5f0f.js.map +0 -1
  134. /package/dist/chunks/{9140.3c21ab5b.js.LICENSE.txt → 9140.776942ea.js.LICENSE.txt} +0 -0
  135. /package/dist/chunks/{app-wall-card-item.da5f2d4f.js.LICENSE.txt → app-wall-card-item.438a2758.js.LICENSE.txt} +0 -0
  136. /package/dist/chunks/{app-wall-relation-line.7042a5be.js.LICENSE.txt → app-wall-relation-line.94bc5eba.js.LICENSE.txt} +0 -0
  137. /package/dist/chunks/{cabinet-app-layer.dfafd4b1.js.LICENSE.txt → cabinet-app-layer.05c66229.js.LICENSE.txt} +0 -0
  138. /package/dist/chunks/{cabinet-container.6de86813.js.LICENSE.txt → cabinet-container.70ba99de.js.LICENSE.txt} +0 -0
  139. /package/dist/chunks/{cabinet-node.6cdcc2f4.js.LICENSE.txt → cabinet-node.54685641.js.LICENSE.txt} +0 -0
  140. /package/dist/chunks/{cabinet-thumbnail.d2a5a22e.js.LICENSE.txt → cabinet-thumbnail.ae05c311.js.LICENSE.txt} +0 -0
  141. /package/dist/chunks/{dropdown-menu.8639ec11.js.LICENSE.txt → dropdown-menu.7c2ad1f0.js.LICENSE.txt} +0 -0
  142. /package/dist/chunks/{indicator-card.f7458b02.js.LICENSE.txt → indicator-card.365a80fa.js.LICENSE.txt} +0 -0
  143. /package/dist/chunks/{modern-style-treemap.3836ca2d.js.LICENSE.txt → modern-style-treemap.53d4bfc8.js.LICENSE.txt} +0 -0
  144. /package/dist/chunks/{simple-card-item.527df7f3.js.LICENSE.txt → simple-card-item.c36118a6.js.LICENSE.txt} +0 -0
  145. /package/dist/chunks/{tabs-drawer.6f738d4a.js.LICENSE.txt → tabs-drawer.2e83b00f.js.LICENSE.txt} +0 -0
  146. /package/dist/chunks/{tabs-page-title.de666d04.js.LICENSE.txt → tabs-page-title.19eaecee.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7889],{1342:(e,t,r)=>{e.exports=r.p+"images/12997c2b.png"},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9239:(e,t,r)=>{e.exports=r.p+"media/2978c0ae.ttf"},11752:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(18769),a=r(99126);function o(e){const[t,r]=(0,n.useState)(null),o=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const t=o.current;if(!t)return;const n=new a.A((()=>{const n=t.clientWidth;r(Math.min(1,Math.max(.3,e/n)))}));return n.observe(t),()=>n.disconnect()}),[e]),[t,o]}},17577:(e,t,r)=>{e.exports=r.p+"media/792b07b2.ttf"},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},30855:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},32346:(e,t,r)=>{e.exports=r.p+"images/73baf989.png"},34318:(e,t,r)=>{e.exports=r.p+"images/2235938c.png"},40703:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(81026),r.b),d=new URL(r(9239),r.b),u=i()(a()),p=s()(c),h=s()(d);u.push([e.id,`@font-face{font-family:HarmonyOSSans;src:url(${p});font-weight:normal}@font-face{font-family:HarmonyOSSans;src:url(${h});font-weight:bold}`,""]);const m=u},42600:(e,t,r)=>{e.exports=r.p+"images/f1a78578.png"},47906:(e,t,r)=>{r.d(t,{D:()=>o});var n=r(18769),a=r(99126);function o(e){let{width:t,height:r,root:o,maxScale:i,disabled:l}=e;const[s,c]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(l)return void c(null);const e=new a.A((e=>{for(const n of e)if(n.target===o){const{width:e,height:a}=n.contentRect;c(Math.min(null!=i?i:1,e/t,a/r))}}));return e.observe(o),()=>e.disconnect()}),[r,t,l,i,o]),s}},57384:(e,t,r)=>{r.d(t,{x:()=>s});var n=r(18769),a=r.n(n),o=r(99859),i=r(82650);const l=(0,o.wrapBrick)("eo-tag");function s(e){let{cornerDataSource:t}=e;return a().createElement("div",{className:"corner"},null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:t,className:"corner-item"},a().createElement("div",{className:"corner-label"},e.label),a().createElement(l,{className:"corner-value",outline:!0,color:e.color,tagStyle:{fontSize:18,padding:"2px 16px"}},(0,i.F)(e.value))))))}},70102:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(42600),r.b),d=new URL(r(32346),r.b),u=new URL(r(1342),r.b),p=new URL(r(34318),r.b),h=i()(a()),m=s()(c),f=s()(d),g=s()(u),b=s()(p);h.push([e.id,`:host,\n.center{display:flex;align-items:center;justify-content:center}:host{position:relative;color:#fff;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.gear-container{width:930px;height:590px;position:relative;transform:scale(var(--scale));--scale:1}.gear,\n.dots,\n.radar,\n.globe,\n.light,\n.ring-lines,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.gear,\n.radar{bottom:-42px;width:630px;height:630px}.dots{width:542px;height:542px;border-radius:542px;overflow:hidden;background:url(${m}) no-repeat;background-position:center;background-size:542px}.radar{background:url(${f}) no-repeat;background-position:center;background-size:458px;animation:rotating-radar 2.6s linear infinite}.globe{width:455px;height:458px;background:url(${g}) no-repeat;background-position:center;background-size:100%}.light{pointer-events:none;bottom:98px;width:207px;height:208px;background:url(${b}) no-repeat;background-position:center;background-size:100%;animation:flash-light 0.5s linear infinite alternate-reverse}.center{position:absolute;bottom:0;width:100%;height:546px;text-align:center}.center-border{border-width:1px;border-style:solid;border-radius:16px}.center-border.level-1{position:relative;padding:12px;border-color:rgb(68,219,242,0.2)}.center-border.level-2{padding:10px;border-color:rgb(68,219,242,0.4)}.center-border.level-3{padding:9px;border-color:rgb(68,219,242,0.6)}.center-border.level-4{padding:18px;border-radius:13px;border-color:rgb(68,219,242,0.8)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;line-height:33px;font-weight:600;margin-top:13px;color:rgba(255,255,255,0.65)}.center-value{font-family:HarmonyOSSans;font-weight:bold;font-size:50px;line-height:60px;text-shadow:0px 2px 4px #296dff}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}.ring-lines{top:0;pointer-events:none}.ring-labels{width:930px;top:0}.ring-label-container{position:absolute;display:flex;justify-content:center}.ring-label-box{position:relative;padding:0 18px;width:max-content}.ring-icon{position:absolute;top:5px;left:0;width:11px;height:11px;border-radius:0px 4px}.ring-label{color:rgba(255,255,255,0.65);font-family:ALiBaBaPuHuiTi;font-size:14px;line-height:20px}.ring-value{font-family:HarmonyOSSans;font-size:23px;line-height:34px}@keyframes rotating-radar{from{transform:translate(-50%,0) rotate(0deg)}to{transform:translate(-50%,0) rotate(360deg)}}@keyframes flash-light{from{opacity:0}to{opacity:1}}`,""]);const v=h.toString()},72591:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},i=[],l=0;l<e.length;l++){var s=e[l],c=n.base?s[0]+n.base:s[0],d=o[c]||0,u="".concat(c," ").concat(d);o[c]=d+1;var p=r(u),h={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var m=a(h,n);n.byIndex=l,t.splice(l,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var o=n(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var l=r(o[i]);t[l].references--}for(var s=n(e,a),c=0;c<o.length;c++){var d=r(o[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=s}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},77293:(e,t,r)=>{var n=r(72591),a=r.n(n),o=r(1740),i=r.n(o),l=r(88128),s=r.n(l),c=r(30855),d=r.n(c),u=r(93051),p=r.n(u),h=r(73656),m=r.n(h),f=r(40703),g={};g.styleTagTransform=m(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=p(),a()(f.A,g),f.A&&f.A.locals&&f.A.locals},77687:(e,t,r)=>{r.r(t),r.d(t,{GlobeWithGearIndicator:()=>B,GlobeWithGearIndicatorComponent:()=>O});var n,a=r(70918),o=r(86121),i=r(70829),l=r(62740),s=r(18769),c=r.n(s),d=r(6192),u=r(99859),p=(r(37),r(82650)),h=r(57384),m=r(47906),f=r(11752),g=(r(95178),r(77293),r(70102)),b=r(92481);let v,x,y,w,S,E,M,A,k;const N=930,F=590,D=F-2,I=150,$=["#83F5E1","#FE8328","#296DFF","#214ED2","#9CC5FF","#67E0D8","#BF145B","#4FAAFF","#5245E2","#9281EE","#F8AB05","#2C9966"],P=229,T=465,C=317,L=(0,u.wrapBrick)("data-view.gear-background"),{defineElement:z,property:R}=(0,d.createDecorators)();let B;var _=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap;class G extends u.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,_,x(this)),(0,a.A)(this,H,(y(this),w(this))),(0,a.A)(this,U,(S(this),E(this))),(0,a.A)(this,W,(M(this),A(this))),k(this)}get dataSource(){return(0,i.A)(_,this)}set dataSource(e){(0,o.A)(_,this,e)}get centerDataSource(){return(0,i.A)(H,this)}set centerDataSource(e){(0,o.A)(H,this,e)}get cornerDataSource(){return(0,i.A)(U,this)}set cornerDataSource(e){(0,o.A)(U,this,e)}get maxScale(){return(0,i.A)(W,this)}set maxScale(e){(0,o.A)(W,this,e)}render(){return c().createElement(O,{root:this,dataSource:this.dataSource,centerDataSource:this.centerDataSource,cornerDataSource:this.cornerDataSource,maxScale:this.maxScale})}}function O(e){let{root:t,dataSource:r,centerDataSource:n,cornerDataSource:a,maxScale:o}=e;const i=(0,m.D)({width:N,height:F,root:t,maxScale:o}),[l,d]=(0,f.L)(360),u=(0,s.useMemo)((()=>{var e;const t=null!==(e=null==r?void 0:r.slice(0,12))&&void 0!==e?e:[];if(0===t.length)return[];const n=Math.ceil(t.length/2),a=t.length%2==0,o=Math.PI/(n+1);let i,l=0;const s=[];for(;l<t.length;){const e=t[l],r=$[l%$.length];if(l%2==0)i=o*(l/2+1)-Math.PI/2,s.push({...e,color:r,...j(i,!0)});else{const t=a?Math.PI-i:Math.PI-(i+o/2);s.push({...e,color:r,...j(t,!1)})}l++}return s}),[r]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"gear-container",style:{visibility:null===i?"hidden":"visible","--scale":i}},c().createElement(L,{color:"#3366FF",className:"gear"}),c().createElement("div",{className:"center"},c().createElement("div",{className:"dots"}),c().createElement("div",{className:"radar"}),c().createElement("div",{className:"globe"}),n&&c().createElement("div",{className:"center-border level-1",ref:d,style:{visibility:null===l?"hidden":"visible",transform:`scale(${null!=l?l:1})`}},c().createElement("div",{className:"center-border level-2"},c().createElement("div",{className:"center-border level-3"},c().createElement("div",{className:"center-border level-4"},c().createElement("div",{className:"center-value"},(0,p.F)(null==n?void 0:n.value)),c().createElement("div",{className:"center-label"},null==n?void 0:n.label))))),c().createElement("div",{className:"light"})),c().createElement("svg",{className:"ring-lines",width:N,height:F,viewBox:`0 0 ${N} ${F}`},u.map(((e,t)=>c().createElement("g",{key:t,strokeWidth:2,fill:"none"},c().createElement("path",{d:`M ${e.x} ${e.y} L ${e.x2} ${e.y2} H ${e.x3}`,stroke:"rgba(255,255,255,0.2)"}),c().createElement("path",{d:`M ${e.x3} ${e.y2} h ${13*(t%2==0?1:-1)}`,stroke:e.color}))))),c().createElement("div",{className:"ring-labels"},u.map(((e,t)=>c().createElement("div",{key:t,className:"ring-label-container "+(t%2==0?"even":"odd"),style:{width:Math.abs(e.x3-e.x2),left:t%2==0?e.x2:e.x3,top:e.y2-60}},c().createElement("div",{className:"ring-label-box"},c().createElement("div",{className:"ring-icon",style:{background:e.color}}),c().createElement("div",{className:"ring-label"},e.label),c().createElement("div",{className:"ring-value"},(0,p.F)(e.value)))))))),c().createElement(h.x,{cornerDataSource:a}))}function j(e,t){const r=T+P*Math.cos(e),n=C+P*Math.sin(e);let a,o,i;const l=(t?1:-1)*I;if(t?e>0:e<Math.PI){const s=l*((t?e<Math.PI/4:e>3*Math.PI/4)?2*(1+(t?-1:1)*Math.cos(e)/2):1),c=t?Math.PI/6:5*Math.PI/6,d=72/Math.cos(e-c)/((t?1:-1)*Math.cos(e));o=n+d*Math.sin(c),o>D?(o=D,a=r+(o-n)/Math.tan(c)):a=r+d*Math.cos(c),i=a+s}else{const s=l,c=t?-Math.PI/6:7*Math.PI/6,d=72/Math.cos(e-c);a=r+d*Math.cos(c),o=n+d*Math.sin(c),i=a+s}return{x:r,y:n,x2:a,y2:o,x3:i}}n=G,({e:[x,y,w,S,E,M,A,k],c:[B,v]}=(0,l.A)(n,[z("data-view.globe-with-gear-indicator",{styleTexts:[g.A,b.A]})],[[R({attribute:!1}),1,"dataSource"],[R({attribute:!1}),1,"centerDataSource"],[R({attribute:!1}),1,"cornerDataSource"],[R({type:Number}),1,"maxScale"]],0,void 0,u.ReactNextElement)),v()},81026:(e,t,r)=>{e.exports=r.p+"media/cc0a5a55.ttf"},82650:(e,t,r)=>{r.d(t,{F:()=>a});const n=new Intl.NumberFormat("zh-CN",{useGrouping:!0});function a(e){return function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(null!==(t=Number.isFinite)&&void 0!==t?t:isFinite)(+e);var t}(e)?n.format(+e):e}},88128:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},92481:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o)()(a());i.push([e.id,".corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}",""]);const l=i.toString()},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},95178:(e,t,r)=>{var n=r(72591),a=r.n(n),o=r(1740),i=r.n(o),l=r(88128),s=r.n(l),c=r(30855),d=r.n(c),u=r(93051),p=r.n(u),h=r(73656),m=r.n(h),f=r(97136),g={};g.styleTagTransform=m(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=p(),a()(f.A,g),f.A&&f.A.locals&&f.A.locals},97136:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(17577),r.b),d=i()(a()),u=s()(c);d.push([e.id,`@font-face{font-family:ALiBaBaPuHuiTi;src:url(${u})}`,""]);const p=d}}]);
2
- //# sourceMappingURL=globe-with-gear-indicator.c9e02dda.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7889],{1342:(e,t,r)=>{e.exports=r.p+"images/12997c2b.png"},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9239:(e,t,r)=>{e.exports=r.p+"media/2978c0ae.ttf"},11752:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(18769),a=r(99126);function o(e){const[t,r]=(0,n.useState)(null),o=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const t=o.current;if(!t)return;const n=new a.A((()=>{const n=t.clientWidth;r(Math.min(1,Math.max(.3,e/n)))}));return n.observe(t),()=>n.disconnect()}),[e]),[t,o]}},17577:(e,t,r)=>{e.exports=r.p+"media/792b07b2.ttf"},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},30855:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},32346:(e,t,r)=>{e.exports=r.p+"images/73baf989.png"},34318:(e,t,r)=>{e.exports=r.p+"images/2235938c.png"},40703:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(81026),r.b),d=new URL(r(9239),r.b),u=i()(a()),p=s()(c),h=s()(d);u.push([e.id,`@font-face{font-family:HarmonyOSSans;src:url(${p});font-weight:normal}@font-face{font-family:HarmonyOSSans;src:url(${h});font-weight:bold}`,""]);const m=u},42600:(e,t,r)=>{e.exports=r.p+"images/f1a78578.png"},47906:(e,t,r)=>{r.d(t,{D:()=>o});var n=r(18769),a=r(99126);function o(e){let{width:t,height:r,root:o,maxScale:i,disabled:l}=e;const[s,c]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(l)return void c(null);const e=new a.A((e=>{for(const n of e)if(n.target===o){const{width:e,height:a}=n.contentRect;c(Math.min(null!=i?i:1,e/t,a/r))}}));return e.observe(o),()=>e.disconnect()}),[r,t,l,i,o]),s}},57384:(e,t,r)=>{r.d(t,{x:()=>s});var n=r(18769),a=r.n(n),o=r(11280),i=r(82650);const l=(0,o.wrapBrick)("eo-tag");function s(e){let{cornerDataSource:t}=e;return a().createElement("div",{className:"corner"},null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:t,className:"corner-item"},a().createElement("div",{className:"corner-label"},e.label),a().createElement(l,{className:"corner-value",outline:!0,color:e.color,tagStyle:{fontSize:18,padding:"2px 16px"}},(0,i.F)(e.value))))))}},70102:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(42600),r.b),d=new URL(r(32346),r.b),u=new URL(r(1342),r.b),p=new URL(r(34318),r.b),h=i()(a()),m=s()(c),f=s()(d),g=s()(u),b=s()(p);h.push([e.id,`:host,\n.center{display:flex;align-items:center;justify-content:center}:host{position:relative;color:#fff;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.gear-container{width:930px;height:590px;position:relative;transform:scale(var(--scale));--scale:1}.gear,\n.dots,\n.radar,\n.globe,\n.light,\n.ring-lines,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.gear,\n.radar{bottom:-42px;width:630px;height:630px}.dots{width:542px;height:542px;border-radius:542px;overflow:hidden;background:url(${m}) no-repeat;background-position:center;background-size:542px}.radar{background:url(${f}) no-repeat;background-position:center;background-size:458px;animation:rotating-radar 2.6s linear infinite}.globe{width:455px;height:458px;background:url(${g}) no-repeat;background-position:center;background-size:100%}.light{pointer-events:none;bottom:98px;width:207px;height:208px;background:url(${b}) no-repeat;background-position:center;background-size:100%;animation:flash-light 0.5s linear infinite alternate-reverse}.center{position:absolute;bottom:0;width:100%;height:546px;text-align:center}.center-border{border-width:1px;border-style:solid;border-radius:16px}.center-border.level-1{position:relative;padding:12px;border-color:rgb(68,219,242,0.2)}.center-border.level-2{padding:10px;border-color:rgb(68,219,242,0.4)}.center-border.level-3{padding:9px;border-color:rgb(68,219,242,0.6)}.center-border.level-4{padding:18px;border-radius:13px;border-color:rgb(68,219,242,0.8)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;line-height:33px;font-weight:600;margin-top:13px;color:rgba(255,255,255,0.65)}.center-value{font-family:HarmonyOSSans;font-weight:bold;font-size:50px;line-height:60px;text-shadow:0px 2px 4px #296dff}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}.ring-lines{top:0;pointer-events:none}.ring-labels{width:930px;top:0}.ring-label-container{position:absolute;display:flex;justify-content:center}.ring-label-box{position:relative;padding:0 18px;width:max-content}.ring-icon{position:absolute;top:5px;left:0;width:11px;height:11px;border-radius:0px 4px}.ring-label{color:rgba(255,255,255,0.65);font-family:ALiBaBaPuHuiTi;font-size:14px;line-height:20px}.ring-value{font-family:HarmonyOSSans;font-size:23px;line-height:34px}@keyframes rotating-radar{from{transform:translate(-50%,0) rotate(0deg)}to{transform:translate(-50%,0) rotate(360deg)}}@keyframes flash-light{from{opacity:0}to{opacity:1}}`,""]);const v=h.toString()},72591:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},i=[],l=0;l<e.length;l++){var s=e[l],c=n.base?s[0]+n.base:s[0],d=o[c]||0,u="".concat(c," ").concat(d);o[c]=d+1;var p=r(u),h={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var m=a(h,n);n.byIndex=l,t.splice(l,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var o=n(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var l=r(o[i]);t[l].references--}for(var s=n(e,a),c=0;c<o.length;c++){var d=r(o[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=s}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},77293:(e,t,r)=>{var n=r(72591),a=r.n(n),o=r(1740),i=r.n(o),l=r(88128),s=r.n(l),c=r(30855),d=r.n(c),u=r(93051),p=r.n(u),h=r(73656),m=r.n(h),f=r(40703),g={};g.styleTagTransform=m(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=p(),a()(f.A,g),f.A&&f.A.locals&&f.A.locals},77687:(e,t,r)=>{r.r(t),r.d(t,{GlobeWithGearIndicator:()=>B,GlobeWithGearIndicatorComponent:()=>O});var n,a=r(70918),o=r(86121),i=r(70829),l=r(62740),s=r(18769),c=r.n(s),d=r(7921),u=r(11280),p=(r(37),r(82650)),h=r(57384),m=r(47906),f=r(11752),g=(r(95178),r(77293),r(70102)),b=r(92481);let v,x,y,w,S,E,M,A,k;const N=930,F=590,D=F-2,I=150,$=["#83F5E1","#FE8328","#296DFF","#214ED2","#9CC5FF","#67E0D8","#BF145B","#4FAAFF","#5245E2","#9281EE","#F8AB05","#2C9966"],P=229,T=465,C=317,L=(0,u.wrapBrick)("data-view.gear-background"),{defineElement:z,property:R}=(0,d.createDecorators)();let B;var _=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap;class G extends u.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,_,x(this)),(0,a.A)(this,H,(y(this),w(this))),(0,a.A)(this,U,(S(this),E(this))),(0,a.A)(this,W,(M(this),A(this))),k(this)}get dataSource(){return(0,i.A)(_,this)}set dataSource(e){(0,o.A)(_,this,e)}get centerDataSource(){return(0,i.A)(H,this)}set centerDataSource(e){(0,o.A)(H,this,e)}get cornerDataSource(){return(0,i.A)(U,this)}set cornerDataSource(e){(0,o.A)(U,this,e)}get maxScale(){return(0,i.A)(W,this)}set maxScale(e){(0,o.A)(W,this,e)}render(){return c().createElement(O,{root:this,dataSource:this.dataSource,centerDataSource:this.centerDataSource,cornerDataSource:this.cornerDataSource,maxScale:this.maxScale})}}function O(e){let{root:t,dataSource:r,centerDataSource:n,cornerDataSource:a,maxScale:o}=e;const i=(0,m.D)({width:N,height:F,root:t,maxScale:o}),[l,d]=(0,f.L)(360),u=(0,s.useMemo)((()=>{var e;const t=null!==(e=null==r?void 0:r.slice(0,12))&&void 0!==e?e:[];if(0===t.length)return[];const n=Math.ceil(t.length/2),a=t.length%2==0,o=Math.PI/(n+1);let i,l=0;const s=[];for(;l<t.length;){const e=t[l],r=$[l%$.length];if(l%2==0)i=o*(l/2+1)-Math.PI/2,s.push({...e,color:r,...j(i,!0)});else{const t=a?Math.PI-i:Math.PI-(i+o/2);s.push({...e,color:r,...j(t,!1)})}l++}return s}),[r]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"gear-container",style:{visibility:null===i?"hidden":"visible","--scale":i}},c().createElement(L,{color:"#3366FF",className:"gear"}),c().createElement("div",{className:"center"},c().createElement("div",{className:"dots"}),c().createElement("div",{className:"radar"}),c().createElement("div",{className:"globe"}),n&&c().createElement("div",{className:"center-border level-1",ref:d,style:{visibility:null===l?"hidden":"visible",transform:`scale(${null!=l?l:1})`}},c().createElement("div",{className:"center-border level-2"},c().createElement("div",{className:"center-border level-3"},c().createElement("div",{className:"center-border level-4"},c().createElement("div",{className:"center-value"},(0,p.F)(null==n?void 0:n.value)),c().createElement("div",{className:"center-label"},null==n?void 0:n.label))))),c().createElement("div",{className:"light"})),c().createElement("svg",{className:"ring-lines",width:N,height:F,viewBox:`0 0 ${N} ${F}`},u.map(((e,t)=>c().createElement("g",{key:t,strokeWidth:2,fill:"none"},c().createElement("path",{d:`M ${e.x} ${e.y} L ${e.x2} ${e.y2} H ${e.x3}`,stroke:"rgba(255,255,255,0.2)"}),c().createElement("path",{d:`M ${e.x3} ${e.y2} h ${13*(t%2==0?1:-1)}`,stroke:e.color}))))),c().createElement("div",{className:"ring-labels"},u.map(((e,t)=>c().createElement("div",{key:t,className:"ring-label-container "+(t%2==0?"even":"odd"),style:{width:Math.abs(e.x3-e.x2),left:t%2==0?e.x2:e.x3,top:e.y2-60}},c().createElement("div",{className:"ring-label-box"},c().createElement("div",{className:"ring-icon",style:{background:e.color}}),c().createElement("div",{className:"ring-label"},e.label),c().createElement("div",{className:"ring-value"},(0,p.F)(e.value)))))))),c().createElement(h.x,{cornerDataSource:a}))}function j(e,t){const r=T+P*Math.cos(e),n=C+P*Math.sin(e);let a,o,i;const l=(t?1:-1)*I;if(t?e>0:e<Math.PI){const s=l*((t?e<Math.PI/4:e>3*Math.PI/4)?2*(1+(t?-1:1)*Math.cos(e)/2):1),c=t?Math.PI/6:5*Math.PI/6,d=72/Math.cos(e-c)/((t?1:-1)*Math.cos(e));o=n+d*Math.sin(c),o>D?(o=D,a=r+(o-n)/Math.tan(c)):a=r+d*Math.cos(c),i=a+s}else{const s=l,c=t?-Math.PI/6:7*Math.PI/6,d=72/Math.cos(e-c);a=r+d*Math.cos(c),o=n+d*Math.sin(c),i=a+s}return{x:r,y:n,x2:a,y2:o,x3:i}}n=G,({e:[x,y,w,S,E,M,A,k],c:[B,v]}=(0,l.A)(n,[z("data-view.globe-with-gear-indicator",{styleTexts:[g.A,b.A]})],[[R({attribute:!1}),1,"dataSource"],[R({attribute:!1}),1,"centerDataSource"],[R({attribute:!1}),1,"cornerDataSource"],[R({type:Number}),1,"maxScale"]],0,void 0,u.ReactNextElement)),v()},81026:(e,t,r)=>{e.exports=r.p+"media/cc0a5a55.ttf"},82650:(e,t,r)=>{r.d(t,{F:()=>a});const n=new Intl.NumberFormat("zh-CN",{useGrouping:!0});function a(e){return function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(null!==(t=Number.isFinite)&&void 0!==t?t:isFinite)(+e);var t}(e)?n.format(+e):e}},88128:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},92481:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o)()(a());i.push([e.id,".corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}",""]);const l=i.toString()},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},95178:(e,t,r)=>{var n=r(72591),a=r.n(n),o=r(1740),i=r.n(o),l=r(88128),s=r.n(l),c=r(30855),d=r.n(c),u=r(93051),p=r.n(u),h=r(73656),m=r.n(h),f=r(97136),g={};g.styleTagTransform=m(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=p(),a()(f.A,g),f.A&&f.A.locals&&f.A.locals},97136:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(36758),a=r.n(n),o=r(40935),i=r.n(o),l=r(20062),s=r.n(l),c=new URL(r(17577),r.b),d=i()(a()),u=s()(c);d.push([e.id,`@font-face{font-family:ALiBaBaPuHuiTi;src:url(${u})}`,""]);const p=d}}]);
2
+ //# sourceMappingURL=globe-with-gear-indicator.61e1e1e1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/globe-with-gear-indicator.c9e02dda.js","mappings":"0LA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,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O,EAAQkI,cAAc4G,EAAS9O,EAAQgP,YACvChP,EAAQmI,OAAO2G,EAAS9O,EAAQA,SACzB8O,CACT,C,wJCGI9O,EAAU,CAAC,EAEfA,EAAQoB,kBAAoB,IAC5BpB,EAAQkI,cAAgB,IACxBlI,EAAQmI,OAAS,SAAc,KAAM,QACrCnI,EAAQsH,OAAS,IACjBtH,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKJ,KAAW,IAAQoI,QAAS,IAAQA,M,mGCpBtD7E,EAAgC,IAAIC,IAAI,cACxCE,EAA0B,IAA4B,KACtDC,EAAqC,IAAgCJ,GAEzEG,EAAwBG,KAAK,CAAC/D,EAAOgE,GAAI,iDAAiDH,MAAwC,KAElI,S","sources":["webpack:///../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack:///./src/shared/useCenterScale.ts","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///./src/fonts/HarmonyOSSans.css","webpack:///./src/shared/useContainerScale.ts","webpack:///./src/shared/CornerIndicator.tsx","webpack:///./src/globe-with-gear-indicator/styles.shadow.css","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack:///./src/fonts/HarmonyOSSans.css?a0fb","webpack:///./src/globe-with-gear-indicator/index.tsx","webpack:///./src/shared/formatValue.ts","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///./src/shared/CornerIndicator.shadow.css","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack:///./src/fonts/ALiBaBaPuHuiTi.css?7885","webpack:///./src/fonts/ALiBaBaPuHuiTi.css"],"sourcesContent":["\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","import { useEffect, useRef, useState } from \"react\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\n/**\n * 让中心数据值不要超过球体范围,但缩放值最低不小于 0.3\n */\nexport function useCenterScale(maxWidth: number) {\n const [centerScale, setCenterScale] = useState<number | null>(null);\n const centerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const centerValueElement = centerRef.current;\n if (!centerValueElement) {\n return;\n }\n const observer = new ResizeObserver(() => {\n const width = centerValueElement.clientWidth;\n setCenterScale(Math.min(1, Math.max(0.3, maxWidth / width)));\n });\n observer.observe(centerValueElement);\n return () => observer.disconnect();\n }, [maxWidth]);\n\n return [centerScale, centerRef] as const;\n}\n","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./HarmonyOSSans.ttf\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"./HarmonyOSSansBold.ttf\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@font-face{font-family:HarmonyOSSans;src:url(${___CSS_LOADER_URL_REPLACEMENT_0___});font-weight:normal}@font-face{font-family:HarmonyOSSans;src:url(${___CSS_LOADER_URL_REPLACEMENT_1___});font-weight:bold}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import { useEffect, useState } from \"react\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\n/**\n * 根据容器尺寸进行缩放\n */\nexport function useContainerScale({\n width: baseWidth,\n height: baseHeight,\n root,\n maxScale,\n disabled,\n}: {\n width: number;\n height: number;\n root: HTMLElement;\n /** 最大缩放比例,默认为 1 */\n maxScale?: number;\n disabled?: boolean;\n}): number | null {\n const [scale, setScale] = useState<number | null>(null);\n\n useEffect(() => {\n if (disabled) {\n setScale(null);\n return;\n }\n // 当容器宽高低于预设值时,图形会自动缩小\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n if (entry.target === root) {\n const { width, height } = entry.contentRect;\n setScale(\n Math.min(maxScale ?? 1, width / baseWidth, height / baseHeight)\n );\n }\n }\n });\n observer.observe(root);\n return () => observer.disconnect();\n }, [baseHeight, baseWidth, disabled, maxScale, root]);\n\n return scale;\n}\n","import React from \"react\";\nimport { wrapBrick } from \"@next-core/react-element\";\nimport type { Tag, TagProps } from \"@next-bricks/basic/tag\";\nimport { formatValue } from \"./formatValue\";\n\nconst WrappedTag = wrapBrick<Tag, TagProps>(\"eo-tag\");\n\nexport interface CornerDataItem {\n label: string;\n value: string | number;\n color?: string;\n}\n\nexport interface CornerIndicatorProps {\n cornerDataSource?: CornerDataItem[];\n}\n\nexport function CornerIndicator({ cornerDataSource }: CornerIndicatorProps) {\n return (\n <div className=\"corner\">\n {cornerDataSource?.map((item, index) => (\n <div key={index} className=\"corner-item\">\n <div className=\"corner-label\">{item.label}</div>\n <WrappedTag\n className=\"corner-value\"\n outline\n color={item.color}\n tagStyle={{\n fontSize: 18,\n padding: \"2px 16px\",\n }}\n >\n {formatValue(item.value)}\n </WrappedTag>\n </div>\n ))}\n </div>\n );\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./assets/dots.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"./assets/radar.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_2___ = new URL(\"./assets/earth.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_3___ = new URL(\"./assets/light.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\nvar ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host,\n.center{display:flex;align-items:center;justify-content:center}:host{position:relative;color:#fff;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.gear-container{width:930px;height:590px;position:relative;transform:scale(var(--scale));--scale:1}.gear,\n.dots,\n.radar,\n.globe,\n.light,\n.ring-lines,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.gear,\n.radar{bottom:-42px;width:630px;height:630px}.dots{width:542px;height:542px;border-radius:542px;overflow:hidden;background:url(${___CSS_LOADER_URL_REPLACEMENT_0___}) no-repeat;background-position:center;background-size:542px}.radar{background:url(${___CSS_LOADER_URL_REPLACEMENT_1___}) no-repeat;background-position:center;background-size:458px;animation:rotating-radar 2.6s linear infinite}.globe{width:455px;height:458px;background:url(${___CSS_LOADER_URL_REPLACEMENT_2___}) no-repeat;background-position:center;background-size:100%}.light{pointer-events:none;bottom:98px;width:207px;height:208px;background:url(${___CSS_LOADER_URL_REPLACEMENT_3___}) no-repeat;background-position:center;background-size:100%;animation:flash-light 0.5s linear infinite alternate-reverse}.center{position:absolute;bottom:0;width:100%;height:546px;text-align:center}.center-border{border-width:1px;border-style:solid;border-radius:16px}.center-border.level-1{position:relative;padding:12px;border-color:rgb(68,219,242,0.2)}.center-border.level-2{padding:10px;border-color:rgb(68,219,242,0.4)}.center-border.level-3{padding:9px;border-color:rgb(68,219,242,0.6)}.center-border.level-4{padding:18px;border-radius:13px;border-color:rgb(68,219,242,0.8)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;line-height:33px;font-weight:600;margin-top:13px;color:rgba(255,255,255,0.65)}.center-value{font-family:HarmonyOSSans;font-weight:bold;font-size:50px;line-height:60px;text-shadow:0px 2px 4px #296dff}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}.ring-lines{top:0;pointer-events:none}.ring-labels{width:930px;top:0}.ring-label-container{position:absolute;display:flex;justify-content:center}.ring-label-box{position:relative;padding:0 18px;width:max-content}.ring-icon{position:absolute;top:5px;left:0;width:11px;height:11px;border-radius:0px 4px}.ring-label{color:rgba(255,255,255,0.65);font-family:ALiBaBaPuHuiTi;font-size:14px;line-height:20px}.ring-value{font-family:HarmonyOSSans;font-size:23px;line-height:34px}@keyframes rotating-radar{from{transform:translate(-50%,0) rotate(0deg)}to{transform:translate(-50%,0) rotate(360deg)}}@keyframes flash-light{from{opacity:0}to{opacity:1}}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./HarmonyOSSans.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./HarmonyOSSans.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { useMemo } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { formatValue } from \"../shared/formatValue\";\nimport { CornerIndicator } from \"../shared/CornerIndicator\";\nimport { useContainerScale } from \"../shared/useContainerScale\";\nimport { useCenterScale } from \"../shared/useCenterScale\";\nimport type { GearBackground, GearBackgroundProps } from \"../gear-background\";\nimport \"../fonts/ALiBaBaPuHuiTi.css\";\nimport \"../fonts/HarmonyOSSans.css\";\nimport styleText from \"./styles.shadow.css\";\nimport cornerStyleText from \"../shared/CornerIndicator.shadow.css\";\n\nconst BASE_WIDTH = 930;\nconst BASE_HEIGHT = 590;\nconst MAX_LINE_Y = BASE_HEIGHT - 2;\nconst BASE_LINE_WIDTH = 150;\n\nconst PALETTE: string[] = [\n \"#83F5E1\",\n \"#FE8328\",\n \"#296DFF\",\n \"#214ED2\",\n \"#9CC5FF\",\n \"#67E0D8\",\n \"#BF145B\",\n \"#4FAAFF\",\n \"#5245E2\",\n \"#9281EE\",\n \"#F8AB05\",\n \"#2C9966\",\n // \"#CAD1DB\",\n // \"#88909B\",\n // \"#00A7CC\",\n // \"#50FFFF\",\n // \"#3366FF\",\n // \"#99CCFF\",\n // \"#6600FF\",\n // \"#9999FF\",\n];\n\nconst RING_RADIUS = 229;\nconst RING_CX = 465;\nconst RING_CY = 317;\n\nconst WrappedGearBackground = wrapBrick<GearBackground, GearBackgroundProps>(\n \"data-view.gear-background\"\n);\n\nconst { defineElement, property } = createDecorators();\n\nexport interface GlobeWithGearIndicatorProps {\n dataSource?: DataItem[];\n centerDataSource?: DataItem;\n cornerDataSource?: CornerDataItem[];\n maxScale?: number;\n}\n\nexport interface DataItem {\n label: string;\n value: string | number;\n}\n\nexport interface CornerDataItem extends DataItem {\n color?: string;\n}\n\ninterface DataItemWithPosition extends DataItem {\n color: string;\n x: number;\n y: number;\n x2: number;\n y2: number;\n x3: number;\n}\n\n/**\n * 地球加轮盘的数据展示构件。\n */\nexport\n@defineElement(\"data-view.globe-with-gear-indicator\", {\n styleTexts: [styleText, cornerStyleText],\n})\nclass GlobeWithGearIndicator\n extends ReactNextElement\n implements GlobeWithGearIndicatorProps\n{\n /** 指标数据列表(显示在环上)\n *\n * 注意:最多显示12项数据\n */\n @property({ attribute: false })\n accessor dataSource: DataItem[] | undefined;\n\n /** 中心数据(显示在中心水晶球内) */\n @property({ attribute: false })\n accessor centerDataSource: DataItem | undefined;\n\n /**\n * 左上角指标数据列表\n */\n @property({ attribute: false })\n accessor cornerDataSource: CornerDataItem[] | undefined;\n\n /**\n * 最大缩放比例\n *\n * @default 1\n */\n @property({ type: Number })\n accessor maxScale: number | undefined;\n\n render() {\n return (\n <GlobeWithGearIndicatorComponent\n root={this}\n dataSource={this.dataSource}\n centerDataSource={this.centerDataSource}\n cornerDataSource={this.cornerDataSource}\n maxScale={this.maxScale}\n />\n );\n }\n}\n\nexport interface GlobeWithGearIndicatorComponentProps\n extends GlobeWithGearIndicatorProps {\n root: GlobeWithGearIndicator;\n}\n\nexport function GlobeWithGearIndicatorComponent({\n root,\n dataSource,\n centerDataSource,\n cornerDataSource,\n maxScale,\n}: GlobeWithGearIndicatorComponentProps) {\n const scale = useContainerScale({\n width: BASE_WIDTH,\n height: BASE_HEIGHT,\n root,\n maxScale,\n });\n const [centerValueScale, centerValueRef] = useCenterScale(360);\n\n // 计算环上标签的位置\n // 1. 将数据分为两组,分别在环的两侧\n // 2. 索引(从 0 开始)为偶数的数据在右侧,索引为奇数的数据在左侧\n // 3. 总数为偶数时,两侧数据对称,每组数据按照角度均匀分布\n // 4. 总数为奇数时,右侧数据比左侧数据多一个,右侧数据按照角度均匀分布,\n // 左侧第 N 个数据的角度为右侧第 N 个和第 N + 1 个数据的角度的中分角\n const labels = useMemo(() => {\n const clampedData = dataSource?.slice(0, 12) ?? [];\n if (clampedData.length === 0) {\n return [];\n }\n\n const half = Math.ceil(clampedData.length / 2);\n const even = clampedData.length % 2 === 0;\n const arc = Math.PI / (half + 1);\n\n let index = 0;\n let angle: number;\n const result: DataItemWithPosition[] = [];\n while (index < clampedData.length) {\n const item = clampedData[index];\n const color = PALETTE[index % PALETTE.length];\n if (index % 2 === 0) {\n angle = arc * (index / 2 + 1) - Math.PI / 2;\n result.push({ ...item, color, ...getLinePosition(angle, true) });\n } else {\n const oddAngle = even ? Math.PI - angle : Math.PI - (angle + arc / 2);\n result.push({ ...item, color, ...getLinePosition(oddAngle, false) });\n }\n index++;\n }\n return result;\n }, [dataSource]);\n\n return (\n <>\n <div\n className=\"gear-container\"\n style={\n {\n visibility: scale === null ? \"hidden\" : \"visible\",\n \"--scale\": scale,\n } as React.CSSProperties & {\n \"--scale\": number;\n }\n }\n >\n <WrappedGearBackground color=\"#3366FF\" className=\"gear\" />\n <div className=\"center\">\n <div className=\"dots\"></div>\n <div className=\"radar\"></div>\n <div className=\"globe\"></div>\n {centerDataSource && (\n <div\n className=\"center-border level-1\"\n ref={centerValueRef}\n style={{\n visibility: centerValueScale === null ? \"hidden\" : \"visible\",\n transform: `scale(${centerValueScale ?? 1})`,\n }}\n >\n <div className=\"center-border level-2\">\n <div className=\"center-border level-3\">\n <div className=\"center-border level-4\">\n <div className=\"center-value\">\n {formatValue(centerDataSource?.value)}\n </div>\n <div className=\"center-label\">\n {centerDataSource?.label}\n </div>\n </div>\n </div>\n </div>\n </div>\n )}\n <div className=\"light\"></div>\n </div>\n <svg\n className=\"ring-lines\"\n width={BASE_WIDTH}\n height={BASE_HEIGHT}\n viewBox={`0 0 ${BASE_WIDTH} ${BASE_HEIGHT}`}\n >\n {labels.map((item, index) => (\n <g key={index} strokeWidth={2} fill=\"none\">\n <path\n d={`M ${item.x} ${item.y} L ${item.x2} ${item.y2} H ${item.x3}`}\n stroke=\"rgba(255,255,255,0.2)\"\n />\n <path\n d={`M ${item.x3} ${item.y2} h ${(index % 2 === 0 ? 1 : -1) * 13}`}\n stroke={item.color}\n />\n </g>\n ))}\n </svg>\n <div className=\"ring-labels\">\n {labels.map((item, index) => (\n <div\n key={index}\n className={`ring-label-container ${index % 2 === 0 ? \"even\" : \"odd\"}`}\n style={{\n width: Math.abs(item.x3 - item.x2),\n left: index % 2 === 0 ? item.x2 : item.x3,\n top: item.y2 - 60,\n }}\n >\n <div className=\"ring-label-box\">\n <div\n className=\"ring-icon\"\n style={{ background: item.color }}\n ></div>\n <div className=\"ring-label\">{item.label}</div>\n <div className=\"ring-value\">{formatValue(item.value)}</div>\n </div>\n </div>\n ))}\n </div>\n </div>\n <CornerIndicator cornerDataSource={cornerDataSource} />\n </>\n );\n}\n\nfunction getLinePosition(angle: number, even: boolean) {\n const x = RING_CX + RING_RADIUS * Math.cos(angle);\n const y = RING_CY + RING_RADIUS * Math.sin(angle);\n let x2: number;\n let y2: number;\n let x3: number;\n const baseWidth = (even ? 1 : -1) * BASE_LINE_WIDTH;\n if (even ? angle > 0 : angle < Math.PI) {\n const width =\n baseWidth *\n ((even ? angle < Math.PI / 4 : angle > (Math.PI * 3) / 4)\n ? 2 * (1 + ((even ? -1 : 1) * Math.cos(angle)) / 2)\n : 1);\n const lineAngle = even ? Math.PI / 6 : (Math.PI * 5) / 6;\n const lineRadius =\n 72 / Math.cos(angle - lineAngle) / ((even ? 1 : -1) * Math.cos(angle));\n y2 = y + lineRadius * Math.sin(lineAngle);\n if (y2 > MAX_LINE_Y) {\n y2 = MAX_LINE_Y;\n x2 = x + (y2 - y) / Math.tan(lineAngle);\n } else {\n x2 = x + lineRadius * Math.cos(lineAngle);\n }\n x3 = x2 + width;\n } else {\n const width = baseWidth;\n const lineAngle = even ? -Math.PI / 6 : (Math.PI * 7) / 6;\n const lineRadius = 72 / Math.cos(angle - lineAngle);\n x2 = x + lineRadius * Math.cos(lineAngle);\n y2 = y + lineRadius * Math.sin(lineAngle);\n x3 = x2 + width;\n }\n return { x, y, x2, y2, x3 };\n}\n","const numberFormatter = new Intl.NumberFormat(\"zh-CN\", {\n useGrouping: true,\n});\n\nexport function formatValue(value: string | number): string {\n return isMeaningfulNumber(value) ? numberFormatter.format(+value) : value;\n}\n\n/**\n * 判断一个值是否是有意义的数字,包括数字和可以转换为数字的字符串。\n *\n * 但不包括 NaN、Infinity、-Infinity 等。\n *\n * Ref https://github.com/jonschlinkert/is-number/blob/master/index.js\n */\nexport function isMeaningfulNumber(value: unknown): value is number | string {\n if (typeof value === \"number\") {\n return value - value === 0;\n }\n if (typeof value === \"string\" && value.trim() !== \"\") {\n return /* istanbul ignore next */ (Number.isFinite ?? isFinite)(+value);\n }\n return false;\n}\n","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./ALiBaBaPuHuiTi.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./ALiBaBaPuHuiTi.css\";\n export default content && content.locals ? content.locals : undefined;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./ALiBaBaPuHuiTi.ttf\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@font-face{font-family:ALiBaBaPuHuiTi;src:url(${___CSS_LOADER_URL_REPLACEMENT_0___})}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","useCenterScale","maxWidth","centerScale","setCenterScale","useState","centerRef","useRef","useEffect","centerValueElement","current","observer","ResizeObserver","width","clientWidth","Math","min","max","observe","disconnect","url","String","__esModule","default","test","slice","hash","needQuotes","replace","nonce","setAttribute","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_URL_IMPORT_1___","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","___CSS_LOADER_URL_REPLACEMENT_1___","push","id","useContainerScale","_ref","baseWidth","height","baseHeight","root","maxScale","disabled","scale","setScale","entries","entry","target","contentRect","WrappedTag","wrapBrick","CornerIndicator","cornerDataSource","React","className","map","item","index","key","label","outline","color","tagStyle","fontSize","padding","formatValue","value","___CSS_LOADER_URL_IMPORT_2___","___CSS_LOADER_URL_IMPORT_3___","___CSS_LOADER_URL_REPLACEMENT_2___","___CSS_LOADER_URL_REPLACEMENT_3___","toString","stylesInDOM","getIndexByIdentifier","identifier","result","i","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","newLastIdentifiers","_i","_index","styleSheet","cssText","firstChild","appendChild","createTextNode","setAttributes","insert","locals","BASE_WIDTH","BASE_HEIGHT","MAX_LINE_Y","BASE_LINE_WIDTH","PALETTE","RING_RADIUS","RING_CX","RING_CY","WrappedGearBackground","defineElement","property","createDecorators","_GlobeWithGearIndicat","_A","WeakMap","_B","_C","_D","GlobeWithGearIndicator","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","_init_dataSource","_init_extra_dataSource","_init_centerDataSource","_init_extra_centerDataSource","_init_cornerDataSource","_init_extra_cornerDataSource","_init_maxScale","_init_extra_maxScale","dataSource","_classPrivateFieldGet","v","_classPrivateFieldSet","centerDataSource","render","GlobeWithGearIndicatorComponent","this","centerValueScale","centerValueRef","labels","useMemo","_dataSource$slice","clampedData","half","ceil","even","arc","PI","angle","getLinePosition","oddAngle","style","visibility","ref","transform","viewBox","strokeWidth","fill","d","x","y","x2","y2","x3","stroke","abs","left","top","background","cos","sin","lineAngle","lineRadius","tan","_GlobeWithGearIndicator","e","c","_initClass","_applyDecs","styleTexts","styleText","cornerStyleText","attribute","type","Number","numberFormatter","Intl","NumberFormat","useGrouping","trim","_Number$isFinite","isFinite","isMeaningfulNumber","format","memo","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","element","createElement","attributes"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/globe-with-gear-indicator.61e1e1e1.js","mappings":"0LA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAcJ,EAASM,GACpC,IAAIC,EAAM,GACND,EAAIE,WACND,GAAO,cAAcE,OAAOH,EAAIE,SAAU,QAExCF,EAAII,QACNH,GAAO,UAAUE,OAAOH,EAAII,MAAO,OAErC,IAAIC,OAAiC,IAAdL,EAAIM,MACvBD,IACFJ,GAAO,SAASE,OAAOH,EAAIM,MAAMC,OAAS,EAAI,IAAIJ,OAAOH,EAAIM,OAAS,GAAI,OAE5EL,GAAOD,EAAIC,IACPI,IACFJ,GAAO,KAELD,EAAII,QACNH,GAAO,KAELD,EAAIE,WACND,GAAO,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PI.js","webpack:///./src/shared/useCenterScale.ts","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///./src/fonts/HarmonyOSSans.css","webpack:///./src/shared/useContainerScale.ts","webpack:///./src/shared/CornerIndicator.tsx","webpack:///./src/globe-with-gear-indicator/styles.shadow.css","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack:///./src/fonts/HarmonyOSSans.css?a0fb","webpack:///./src/globe-with-gear-indicator/index.tsx","webpack:///./src/shared/formatValue.ts","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///./src/shared/CornerIndicator.shadow.css","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack:///./src/fonts/ALiBaBaPuHuiTi.css?7885","webpack:///./src/fonts/ALiBaBaPuHuiTi.css"],"sourcesContent":["\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","import { useEffect, useRef, useState } from \"react\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\n/**\n * 让中心数据值不要超过球体范围,但缩放值最低不小于 0.3\n */\nexport function useCenterScale(maxWidth: number) {\n const [centerScale, setCenterScale] = useState<number | null>(null);\n const centerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const centerValueElement = centerRef.current;\n if (!centerValueElement) {\n return;\n }\n const observer = new ResizeObserver(() => {\n const width = centerValueElement.clientWidth;\n setCenterScale(Math.min(1, Math.max(0.3, maxWidth / width)));\n });\n observer.observe(centerValueElement);\n return () => observer.disconnect();\n }, [maxWidth]);\n\n return [centerScale, centerRef] as const;\n}\n","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./HarmonyOSSans.ttf\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"./HarmonyOSSansBold.ttf\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@font-face{font-family:HarmonyOSSans;src:url(${___CSS_LOADER_URL_REPLACEMENT_0___});font-weight:normal}@font-face{font-family:HarmonyOSSans;src:url(${___CSS_LOADER_URL_REPLACEMENT_1___});font-weight:bold}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import { useEffect, useState } from \"react\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\n/**\n * 根据容器尺寸进行缩放\n */\nexport function useContainerScale({\n width: baseWidth,\n height: baseHeight,\n root,\n maxScale,\n disabled,\n}: {\n width: number;\n height: number;\n root: HTMLElement;\n /** 最大缩放比例,默认为 1 */\n maxScale?: number;\n disabled?: boolean;\n}): number | null {\n const [scale, setScale] = useState<number | null>(null);\n\n useEffect(() => {\n if (disabled) {\n setScale(null);\n return;\n }\n // 当容器宽高低于预设值时,图形会自动缩小\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n if (entry.target === root) {\n const { width, height } = entry.contentRect;\n setScale(\n Math.min(maxScale ?? 1, width / baseWidth, height / baseHeight)\n );\n }\n }\n });\n observer.observe(root);\n return () => observer.disconnect();\n }, [baseHeight, baseWidth, disabled, maxScale, root]);\n\n return scale;\n}\n","import React from \"react\";\nimport { wrapBrick } from \"@next-core/react-element\";\nimport type { Tag, TagProps } from \"@next-bricks/basic/tag\";\nimport { formatValue } from \"./formatValue\";\n\nconst WrappedTag = wrapBrick<Tag, TagProps>(\"eo-tag\");\n\nexport interface CornerDataItem {\n label: string;\n value: string | number;\n color?: string;\n}\n\nexport interface CornerIndicatorProps {\n cornerDataSource?: CornerDataItem[];\n}\n\nexport function CornerIndicator({ cornerDataSource }: CornerIndicatorProps) {\n return (\n <div className=\"corner\">\n {cornerDataSource?.map((item, index) => (\n <div key={index} className=\"corner-item\">\n <div className=\"corner-label\">{item.label}</div>\n <WrappedTag\n className=\"corner-value\"\n outline\n color={item.color}\n tagStyle={{\n fontSize: 18,\n padding: \"2px 16px\",\n }}\n >\n {formatValue(item.value)}\n </WrappedTag>\n </div>\n ))}\n </div>\n );\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./assets/dots.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"./assets/radar.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_2___ = new URL(\"./assets/earth.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_3___ = new URL(\"./assets/light.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\nvar ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host,\n.center{display:flex;align-items:center;justify-content:center}:host{position:relative;color:#fff;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.gear-container{width:930px;height:590px;position:relative;transform:scale(var(--scale));--scale:1}.gear,\n.dots,\n.radar,\n.globe,\n.light,\n.ring-lines,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.gear,\n.radar{bottom:-42px;width:630px;height:630px}.dots{width:542px;height:542px;border-radius:542px;overflow:hidden;background:url(${___CSS_LOADER_URL_REPLACEMENT_0___}) no-repeat;background-position:center;background-size:542px}.radar{background:url(${___CSS_LOADER_URL_REPLACEMENT_1___}) no-repeat;background-position:center;background-size:458px;animation:rotating-radar 2.6s linear infinite}.globe{width:455px;height:458px;background:url(${___CSS_LOADER_URL_REPLACEMENT_2___}) no-repeat;background-position:center;background-size:100%}.light{pointer-events:none;bottom:98px;width:207px;height:208px;background:url(${___CSS_LOADER_URL_REPLACEMENT_3___}) no-repeat;background-position:center;background-size:100%;animation:flash-light 0.5s linear infinite alternate-reverse}.center{position:absolute;bottom:0;width:100%;height:546px;text-align:center}.center-border{border-width:1px;border-style:solid;border-radius:16px}.center-border.level-1{position:relative;padding:12px;border-color:rgb(68,219,242,0.2)}.center-border.level-2{padding:10px;border-color:rgb(68,219,242,0.4)}.center-border.level-3{padding:9px;border-color:rgb(68,219,242,0.6)}.center-border.level-4{padding:18px;border-radius:13px;border-color:rgb(68,219,242,0.8)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;line-height:33px;font-weight:600;margin-top:13px;color:rgba(255,255,255,0.65)}.center-value{font-family:HarmonyOSSans;font-weight:bold;font-size:50px;line-height:60px;text-shadow:0px 2px 4px #296dff}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}.ring-lines{top:0;pointer-events:none}.ring-labels{width:930px;top:0}.ring-label-container{position:absolute;display:flex;justify-content:center}.ring-label-box{position:relative;padding:0 18px;width:max-content}.ring-icon{position:absolute;top:5px;left:0;width:11px;height:11px;border-radius:0px 4px}.ring-label{color:rgba(255,255,255,0.65);font-family:ALiBaBaPuHuiTi;font-size:14px;line-height:20px}.ring-value{font-family:HarmonyOSSans;font-size:23px;line-height:34px}@keyframes rotating-radar{from{transform:translate(-50%,0) rotate(0deg)}to{transform:translate(-50%,0) rotate(360deg)}}@keyframes flash-light{from{opacity:0}to{opacity:1}}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./HarmonyOSSans.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./HarmonyOSSans.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { useMemo } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { formatValue } from \"../shared/formatValue\";\nimport { CornerIndicator } from \"../shared/CornerIndicator\";\nimport { useContainerScale } from \"../shared/useContainerScale\";\nimport { useCenterScale } from \"../shared/useCenterScale\";\nimport type { GearBackground, GearBackgroundProps } from \"../gear-background\";\nimport \"../fonts/ALiBaBaPuHuiTi.css\";\nimport \"../fonts/HarmonyOSSans.css\";\nimport styleText from \"./styles.shadow.css\";\nimport cornerStyleText from \"../shared/CornerIndicator.shadow.css\";\n\nconst BASE_WIDTH = 930;\nconst BASE_HEIGHT = 590;\nconst MAX_LINE_Y = BASE_HEIGHT - 2;\nconst BASE_LINE_WIDTH = 150;\n\nconst PALETTE: string[] = [\n \"#83F5E1\",\n \"#FE8328\",\n \"#296DFF\",\n \"#214ED2\",\n \"#9CC5FF\",\n \"#67E0D8\",\n \"#BF145B\",\n \"#4FAAFF\",\n \"#5245E2\",\n \"#9281EE\",\n \"#F8AB05\",\n \"#2C9966\",\n // \"#CAD1DB\",\n // \"#88909B\",\n // \"#00A7CC\",\n // \"#50FFFF\",\n // \"#3366FF\",\n // \"#99CCFF\",\n // \"#6600FF\",\n // \"#9999FF\",\n];\n\nconst RING_RADIUS = 229;\nconst RING_CX = 465;\nconst RING_CY = 317;\n\nconst WrappedGearBackground = wrapBrick<GearBackground, GearBackgroundProps>(\n \"data-view.gear-background\"\n);\n\nconst { defineElement, property } = createDecorators();\n\nexport interface GlobeWithGearIndicatorProps {\n dataSource?: DataItem[];\n centerDataSource?: DataItem;\n cornerDataSource?: CornerDataItem[];\n maxScale?: number;\n}\n\nexport interface DataItem {\n label: string;\n value: string | number;\n}\n\nexport interface CornerDataItem extends DataItem {\n color?: string;\n}\n\ninterface DataItemWithPosition extends DataItem {\n color: string;\n x: number;\n y: number;\n x2: number;\n y2: number;\n x3: number;\n}\n\n/**\n * 地球加轮盘的数据展示构件。\n */\nexport\n@defineElement(\"data-view.globe-with-gear-indicator\", {\n styleTexts: [styleText, cornerStyleText],\n})\nclass GlobeWithGearIndicator\n extends ReactNextElement\n implements GlobeWithGearIndicatorProps\n{\n /** 指标数据列表(显示在环上)\n *\n * 注意:最多显示12项数据\n */\n @property({ attribute: false })\n accessor dataSource: DataItem[] | undefined;\n\n /** 中心数据(显示在中心水晶球内) */\n @property({ attribute: false })\n accessor centerDataSource: DataItem | undefined;\n\n /**\n * 左上角指标数据列表\n */\n @property({ attribute: false })\n accessor cornerDataSource: CornerDataItem[] | undefined;\n\n /**\n * 最大缩放比例\n *\n * @default 1\n */\n @property({ type: Number })\n accessor maxScale: number | undefined;\n\n render() {\n return (\n <GlobeWithGearIndicatorComponent\n root={this}\n dataSource={this.dataSource}\n centerDataSource={this.centerDataSource}\n cornerDataSource={this.cornerDataSource}\n maxScale={this.maxScale}\n />\n );\n }\n}\n\nexport interface GlobeWithGearIndicatorComponentProps\n extends GlobeWithGearIndicatorProps {\n root: GlobeWithGearIndicator;\n}\n\nexport function GlobeWithGearIndicatorComponent({\n root,\n dataSource,\n centerDataSource,\n cornerDataSource,\n maxScale,\n}: GlobeWithGearIndicatorComponentProps) {\n const scale = useContainerScale({\n width: BASE_WIDTH,\n height: BASE_HEIGHT,\n root,\n maxScale,\n });\n const [centerValueScale, centerValueRef] = useCenterScale(360);\n\n // 计算环上标签的位置\n // 1. 将数据分为两组,分别在环的两侧\n // 2. 索引(从 0 开始)为偶数的数据在右侧,索引为奇数的数据在左侧\n // 3. 总数为偶数时,两侧数据对称,每组数据按照角度均匀分布\n // 4. 总数为奇数时,右侧数据比左侧数据多一个,右侧数据按照角度均匀分布,\n // 左侧第 N 个数据的角度为右侧第 N 个和第 N + 1 个数据的角度的中分角\n const labels = useMemo(() => {\n const clampedData = dataSource?.slice(0, 12) ?? [];\n if (clampedData.length === 0) {\n return [];\n }\n\n const half = Math.ceil(clampedData.length / 2);\n const even = clampedData.length % 2 === 0;\n const arc = Math.PI / (half + 1);\n\n let index = 0;\n let angle: number;\n const result: DataItemWithPosition[] = [];\n while (index < clampedData.length) {\n const item = clampedData[index];\n const color = PALETTE[index % PALETTE.length];\n if (index % 2 === 0) {\n angle = arc * (index / 2 + 1) - Math.PI / 2;\n result.push({ ...item, color, ...getLinePosition(angle, true) });\n } else {\n const oddAngle = even ? Math.PI - angle : Math.PI - (angle + arc / 2);\n result.push({ ...item, color, ...getLinePosition(oddAngle, false) });\n }\n index++;\n }\n return result;\n }, [dataSource]);\n\n return (\n <>\n <div\n className=\"gear-container\"\n style={\n {\n visibility: scale === null ? \"hidden\" : \"visible\",\n \"--scale\": scale,\n } as React.CSSProperties & {\n \"--scale\": number;\n }\n }\n >\n <WrappedGearBackground color=\"#3366FF\" className=\"gear\" />\n <div className=\"center\">\n <div className=\"dots\"></div>\n <div className=\"radar\"></div>\n <div className=\"globe\"></div>\n {centerDataSource && (\n <div\n className=\"center-border level-1\"\n ref={centerValueRef}\n style={{\n visibility: centerValueScale === null ? \"hidden\" : \"visible\",\n transform: `scale(${centerValueScale ?? 1})`,\n }}\n >\n <div className=\"center-border level-2\">\n <div className=\"center-border level-3\">\n <div className=\"center-border level-4\">\n <div className=\"center-value\">\n {formatValue(centerDataSource?.value)}\n </div>\n <div className=\"center-label\">\n {centerDataSource?.label}\n </div>\n </div>\n </div>\n </div>\n </div>\n )}\n <div className=\"light\"></div>\n </div>\n <svg\n className=\"ring-lines\"\n width={BASE_WIDTH}\n height={BASE_HEIGHT}\n viewBox={`0 0 ${BASE_WIDTH} ${BASE_HEIGHT}`}\n >\n {labels.map((item, index) => (\n <g key={index} strokeWidth={2} fill=\"none\">\n <path\n d={`M ${item.x} ${item.y} L ${item.x2} ${item.y2} H ${item.x3}`}\n stroke=\"rgba(255,255,255,0.2)\"\n />\n <path\n d={`M ${item.x3} ${item.y2} h ${(index % 2 === 0 ? 1 : -1) * 13}`}\n stroke={item.color}\n />\n </g>\n ))}\n </svg>\n <div className=\"ring-labels\">\n {labels.map((item, index) => (\n <div\n key={index}\n className={`ring-label-container ${index % 2 === 0 ? \"even\" : \"odd\"}`}\n style={{\n width: Math.abs(item.x3 - item.x2),\n left: index % 2 === 0 ? item.x2 : item.x3,\n top: item.y2 - 60,\n }}\n >\n <div className=\"ring-label-box\">\n <div\n className=\"ring-icon\"\n style={{ background: item.color }}\n ></div>\n <div className=\"ring-label\">{item.label}</div>\n <div className=\"ring-value\">{formatValue(item.value)}</div>\n </div>\n </div>\n ))}\n </div>\n </div>\n <CornerIndicator cornerDataSource={cornerDataSource} />\n </>\n );\n}\n\nfunction getLinePosition(angle: number, even: boolean) {\n const x = RING_CX + RING_RADIUS * Math.cos(angle);\n const y = RING_CY + RING_RADIUS * Math.sin(angle);\n let x2: number;\n let y2: number;\n let x3: number;\n const baseWidth = (even ? 1 : -1) * BASE_LINE_WIDTH;\n if (even ? angle > 0 : angle < Math.PI) {\n const width =\n baseWidth *\n ((even ? angle < Math.PI / 4 : angle > (Math.PI * 3) / 4)\n ? 2 * (1 + ((even ? -1 : 1) * Math.cos(angle)) / 2)\n : 1);\n const lineAngle = even ? Math.PI / 6 : (Math.PI * 5) / 6;\n const lineRadius =\n 72 / Math.cos(angle - lineAngle) / ((even ? 1 : -1) * Math.cos(angle));\n y2 = y + lineRadius * Math.sin(lineAngle);\n if (y2 > MAX_LINE_Y) {\n y2 = MAX_LINE_Y;\n x2 = x + (y2 - y) / Math.tan(lineAngle);\n } else {\n x2 = x + lineRadius * Math.cos(lineAngle);\n }\n x3 = x2 + width;\n } else {\n const width = baseWidth;\n const lineAngle = even ? -Math.PI / 6 : (Math.PI * 7) / 6;\n const lineRadius = 72 / Math.cos(angle - lineAngle);\n x2 = x + lineRadius * Math.cos(lineAngle);\n y2 = y + lineRadius * Math.sin(lineAngle);\n x3 = x2 + width;\n }\n return { x, y, x2, y2, x3 };\n}\n","const numberFormatter = new Intl.NumberFormat(\"zh-CN\", {\n useGrouping: true,\n});\n\nexport function formatValue(value: string | number): string {\n return isMeaningfulNumber(value) ? numberFormatter.format(+value) : value;\n}\n\n/**\n * 判断一个值是否是有意义的数字,包括数字和可以转换为数字的字符串。\n *\n * 但不包括 NaN、Infinity、-Infinity 等。\n *\n * Ref https://github.com/jonschlinkert/is-number/blob/master/index.js\n */\nexport function isMeaningfulNumber(value: unknown): value is number | string {\n if (typeof value === \"number\") {\n return value - value === 0;\n }\n if (typeof value === \"string\" && value.trim() !== \"\") {\n return /* istanbul ignore next */ (Number.isFinite ?? isFinite)(+value);\n }\n return false;\n}\n","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./ALiBaBaPuHuiTi.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./ALiBaBaPuHuiTi.css\";\n export default content && content.locals ? content.locals : undefined;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./ALiBaBaPuHuiTi.ttf\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@font-face{font-family:ALiBaBaPuHuiTi;src:url(${___CSS_LOADER_URL_REPLACEMENT_0___})}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","useCenterScale","maxWidth","centerScale","setCenterScale","useState","centerRef","useRef","useEffect","centerValueElement","current","observer","ResizeObserver","width","clientWidth","Math","min","max","observe","disconnect","url","String","__esModule","default","test","slice","hash","needQuotes","replace","nonce","setAttribute","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_URL_IMPORT_1___","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","___CSS_LOADER_URL_REPLACEMENT_1___","push","id","useContainerScale","_ref","baseWidth","height","baseHeight","root","maxScale","disabled","scale","setScale","entries","entry","target","contentRect","WrappedTag","wrapBrick","CornerIndicator","cornerDataSource","React","className","map","item","index","key","label","outline","color","tagStyle","fontSize","padding","formatValue","value","___CSS_LOADER_URL_IMPORT_2___","___CSS_LOADER_URL_IMPORT_3___","___CSS_LOADER_URL_REPLACEMENT_2___","___CSS_LOADER_URL_REPLACEMENT_3___","toString","stylesInDOM","getIndexByIdentifier","identifier","result","i","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","newLastIdentifiers","_i","_index","styleSheet","cssText","firstChild","appendChild","createTextNode","setAttributes","insert","locals","BASE_WIDTH","BASE_HEIGHT","MAX_LINE_Y","BASE_LINE_WIDTH","PALETTE","RING_RADIUS","RING_CX","RING_CY","WrappedGearBackground","defineElement","property","createDecorators","_GlobeWithGearIndicat","_A","WeakMap","_B","_C","_D","GlobeWithGearIndicator","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","_init_dataSource","_init_extra_dataSource","_init_centerDataSource","_init_extra_centerDataSource","_init_cornerDataSource","_init_extra_cornerDataSource","_init_maxScale","_init_extra_maxScale","dataSource","_classPrivateFieldGet","v","_classPrivateFieldSet","centerDataSource","render","GlobeWithGearIndicatorComponent","this","centerValueScale","centerValueRef","labels","useMemo","_dataSource$slice","clampedData","half","ceil","even","arc","PI","angle","getLinePosition","oddAngle","style","visibility","ref","transform","viewBox","strokeWidth","fill","d","x","y","x2","y2","x3","stroke","abs","left","top","background","cos","sin","lineAngle","lineRadius","tan","_GlobeWithGearIndicator","e","c","_initClass","_applyDecs","styleTexts","styleText","cornerStyleText","attribute","type","Number","numberFormatter","Intl","NumberFormat","useGrouping","trim","_Number$isFinite","isFinite","isMeaningfulNumber","format","memo","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","element","createElement","attributes"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7666],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},11752:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(18769),a=n(99126);function o(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const t=o.current;if(!t)return;const r=new a.A((()=>{const r=t.clientWidth;n(Math.min(1,Math.max(.3,e/r)))}));return r.observe(t),()=>r.disconnect()}),[e]),[t,o]}},17577:(e,t,n)=>{e.exports=n.p+"media/792b07b2.ttf"},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},23396:(e,t,n)=>{n.r(t),n.d(t,{GlobeWithHaloIndicator:()=>I,GlobeWithHaloIndicatorComponent:()=>G});var r,a=n(70918),o=n(86121),i=n(70829),s=n(62740),l=n(18769),c=n.n(l),u=n(6192),p=n(99859),d=(n(37),n(82650)),m=n(57384),f=n(88952),h=n(88517),g=n(47906),x=n(11752),b=n(65482),v=(n(95178),n(83761)),y=n(92481);let E,w,M,S,k,A,N,$,C;const{defineElement:F,property:D}=(0,u.createDecorators)();let I;var T=new WeakMap,P=new WeakMap,z=new WeakMap,L=new WeakMap;class B extends p.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,T,w(this)),(0,a.A)(this,P,(M(this),S(this))),(0,a.A)(this,z,(k(this),A(this))),(0,a.A)(this,L,(N(this),$(this))),C(this)}get dataSource(){return(0,i.A)(T,this)}set dataSource(e){(0,o.A)(T,this,e)}get centerDataSource(){return(0,i.A)(P,this)}set centerDataSource(e){(0,o.A)(P,this,e)}get cornerDataSource(){return(0,i.A)(z,this)}set cornerDataSource(e){(0,o.A)(z,this,e)}get maxScale(){return(0,i.A)(L,this)}set maxScale(e){(0,o.A)(L,this,e)}render(){return c().createElement(G,{root:this,dataSource:this.dataSource,centerDataSource:this.centerDataSource,cornerDataSource:this.cornerDataSource,maxScale:this.maxScale})}}function G(e){let{root:t,dataSource:n,centerDataSource:r,cornerDataSource:a,maxScale:o}=e;const i=(0,g.D)({width:900,height:575,root:t,maxScale:o}),[s,u]=(0,x.L)(260),p=(0,l.useMemo)((()=>{var e;const t=null!==(e=null==n?void 0:n.slice(0,8))&&void 0!==e?e:[];if(0===t.length)return[];const r=t.length%2==0,a=Math.ceil(t.length/2)+1,o=R(a),i=-Math.PI/3,s=(Math.PI/4-i)/o;let l,c,u,p,d,m,f,h=0;const g=[];for(;h<t.length;){const e=t[h];if(h%2==0){const t=h/2+1;m=i+s*R(t),f=Math.PI/3*(2-t/a),d=340-(a>2?170*h/2/(a-2):0),l=413+292.4*Math.cos(m),c=65.5+59.4*Math.sin(m),u=l+Math.cos(f)*d,p=c-Math.sin(f)*d;const n=`M ${l} ${c} A ${d} ${d} 0 0 0 ${u} ${p}`;g.push({...e,x:l,y:c,x2:u,y2:p,d:n})}else if(r){const t=826-l,n=826-u;g.push({...e,x:t,y:c,x2:n,y2:p,d:`M ${t} ${c} A ${d} ${d} 0 0 1 ${n} ${p}`})}else{const t=Math.PI-(m+s*(h+1)/2),n=Math.PI-f,r=413+292.4*Math.cos(t),o=65.5+59.4*Math.sin(t),i=d-85/(a-2),l=r+Math.cos(n)*i,c=o-Math.sin(n)*i;g.push({...e,x:r,y:o,x2:l,y2:c,d:`M ${r} ${o} A ${i} ${i} 0 0 1 ${l} ${c}`})}h++}return g}),[n]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"container",style:{visibility:null===i?"hidden":"visible","--scale":i}},c().createElement("div",{className:"base"}),c().createElement("svg",{className:"ring",width:928,height:534,viewBox:"0 0 928 534"},c().createElement("g",{transform:"translate(51 304)"},c().createElement("ellipse",{cx:"413",cy:"89.5",rx:"412.4",ry:"88.9",fill:"none",stroke:"rgba(123,212,235,255)",strokeWidth:"1.2"},c().createElement("animate",{attributeName:"rx",values:"412.4;0",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"ry",values:"88.9;0",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"cy",values:"89.5;10",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"stroke",values:"rgba(123,212,235,255);rgba(123,212,235,255);rgba(123,212,235,25)",keyTimes:"0;0.53846;1",dur:"2.6s",repeatCount:"indefinite"})),c().createElement(f.x,{cx:413,cy:89.5,rx:412.4,ry:88.9}),p.map(((e,t)=>c().createElement("path",{key:t,d:e.d,fill:"none",stroke:"#3889B6",strokeWidth:2,strokeDasharray:"6 4"}))))),c().createElement("div",{className:"globe"}),c().createElement(h.s,null),c().createElement("video",{className:"particles",width:197,height:246,autoPlay:!0,muted:!0,loop:!0,playsInline:!0},c().createElement("source",{src:b,type:"video/webm"})),c().createElement("div",{className:"ring-labels"},p.map(((e,t)=>c().createElement("div",{key:t,className:"ring-label-container "+(t%2==0?"even":"odd"),style:{left:e.x2+51,top:e.y2+304}},c().createElement("div",{className:"ring-icon"}),c().createElement("div",{className:"ring-label"},e.label),c().createElement("div",{className:"ring-value"},(0,d.F)(e.value)))))),c().createElement("div",{className:"center"},c().createElement("div",{className:"center-label"},null==r?void 0:r.label),c().createElement("div",{className:"center-value",ref:u,style:{visibility:null===s?"hidden":"visible",transform:`scale(${null!=s?s:1})`}},(0,d.F)(null==r?void 0:r.value)))),c().createElement(m.x,{cornerDataSource:a}))}function R(e){return e*(e+1)/2}r=B,({e:[w,M,S,k,A,N,$,C],c:[I,E]}=(0,s.A)(r,[F("data-view.globe-with-halo-indicator",{styleTexts:[v.A,y.A]})],[[D({attribute:!1}),1,"dataSource"],[D({attribute:!1}),1,"centerDataSource"],[D({attribute:!1}),1,"cornerDataSource"],[D({type:Number}),1,"maxScale"]],0,void 0,p.ReactNextElement)),E()},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},47906:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(18769),a=n(99126);function o(e){let{width:t,height:n,root:o,maxScale:i,disabled:s}=e;const[l,c]=(0,r.useState)(null);return(0,r.useEffect)((()=>{if(s)return void c(null);const e=new a.A((e=>{for(const r of e)if(r.target===o){const{width:e,height:a}=r.contentRect;c(Math.min(null!=i?i:1,e/t,a/n))}}));return e.observe(o),()=>e.disconnect()}),[n,t,s,i,o]),l}},57384:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(18769),a=n.n(r),o=n(99859),i=n(82650);const s=(0,o.wrapBrick)("eo-tag");function l(e){let{cornerDataSource:t}=e;return a().createElement("div",{className:"corner"},null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:t,className:"corner-item"},a().createElement("div",{className:"corner-label"},e.label),a().createElement(s,{className:"corner-value",outline:!0,color:e.color,tagStyle:{fontSize:18,padding:"2px 16px"}},(0,i.F)(e.value))))))}},63240:(e,t,n)=>{e.exports=n.p+"images/eae6fa62.png"},65482:(e,t,n)=>{e.exports=n.p+"media/0c649f21.webm"},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=o[c]||0,p="".concat(c," ").concat(u);o[c]=u+1;var d=n(p),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(m);else{var f=a(m,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:f,references:1})}i.push(p)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var s=n(o[i]);t[s].references--}for(var l=r(e,a),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},82650:(e,t,n)=>{n.d(t,{F:()=>a});const r=new Intl.NumberFormat("zh-CN",{useGrouping:!0});function a(e){return function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(null!==(t=Number.isFinite)&&void 0!==t?t:isFinite)(+e);var t}(e)?r.format(+e):e}},83761:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o),s=n(20062),l=n.n(s),c=new URL(n(63240),n.b),u=new URL(n(89152),n.b),p=new URL(n(93893),n.b),d=i()(a()),m=l()(c),f=l()(u),h=l()(p);d.push([e.id,`:host,\n.center{display:flex;align-items:center;justify-content:center}:host{height:100%;color:#fff}:host([hidden]){display:none}*{box-sizing:border-box}.container{width:928px;height:534px;position:relative;transform-origin:center;transform:scale(var(--scale));--scale:1}.base,\n.center,\n.globe,\n.satellite-ring,\n.ring,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.base{width:1312px;height:575px;bottom:0;background-image:url(${m});background-repeat:no-repeat;background-position:center bottom -173px;background-size:100%}.globe,\n.center{width:272px;height:272px;bottom:228px}.globe{background-image:url(${f});background-repeat:no-repeat;background-size:100%;background-position:center}.satellite-ring,\n.ring{top:0}.particles{mix-blend-mode:screen;position:absolute;bottom:204px;left:50%;transform:translate(-50%,0)}.ring-labels{top:0;width:928px}.ring-label-container{position:absolute;padding:0 35px;margin-top:-14px;width:max-content}.ring-icon{position:absolute;width:36px;height:36px;background-image:url(${h});background-repeat:no-repeat;background-size:100%;background-position:0 0;top:-4px}.odd{transform:translate(-100%,0);text-align:right}.odd .ring-icon{right:-18px}.even .ring-icon{left:-18px}.ring-label{color:rgba(200,226,255,0.8);font-size:18px}.ring-value{font-family:ALiBaBaPuHuiTi;font-size:28px;text-shadow:0px 4px 7px #514af7}.center{flex-direction:column;text-align:center;text-shadow:0px 2px 4px rgba(0,0,0,0.5)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;font-weight:600;line-height:33px}.center-value{font-family:ALiBaBaPuHuiTi;font-weight:bold;font-size:60px;line-height:82px}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}`,""]);const g=d.toString()},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},88517:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(18769),a=n.n(r);function o(){return a().createElement("svg",{className:"satellite-ring",width:"928px",height:"534px",viewBox:"0 0 928 534"},a().createElement("defs",null,a().createElement("linearGradient",{x1:"50%",y1:"14.8555832%",x2:"50%",y2:"100%",id:"linearGradient-1"},a().createElement("stop",{stopColor:"#00E8FF",stopOpacity:"0",offset:"0%"}),a().createElement("stop",{stopColor:"#00CCFF",offset:"100%"})),a().createElement("linearGradient",{x1:"50%",y1:"14.8555832%",x2:"50%",y2:"100%",id:"linearGradient-2"},a().createElement("stop",{stopColor:"#00CCFF",offset:"0%"}),a().createElement("stop",{stopColor:"#00E8FF",stopOpacity:"0",offset:"100%"}))),a().createElement("g",{transform:"translate(51 304)",stroke:"1",fill:"none",opacity:.5},a().createElement("ellipse",{cx:"413",cy:"-136",rx:"164",ry:"94.5",stroke:"url(#linearGradient-1)"},a().createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 413 -136",to:"360 413 -136",dur:"2.6s",repeatCount:"indefinite"})),a().createElement("ellipse",{cx:"413",cy:"-136",rx:"164",ry:"94.5",stroke:"url(#linearGradient-2)"},a().createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"210 413 -136",to:"-150 413 -136",dur:"2.6s",repeatCount:"indefinite"}))))}},88952:(e,t,n)=>{n.d(t,{x:()=>i});var r=n(20563),a=n(18769),o=n.n(a);function i(e){let{cx:t,cy:n,rx:i,ry:s}=e;const[l,c]=(0,a.useState)("M 0 0"),u=(0,a.useMemo)((()=>(0,r.uniqueId)("rotating-arc-")),[]);return(0,a.useEffect)((()=>{let e,r;return r=requestAnimationFrame((function a(o){void 0===e&&(e=o);const l=-(o-e)/1e3/2.6*Math.PI*2+1.1*Math.PI,u=l-.6*Math.PI,p=t+i*Math.cos(l),d=n+s*Math.sin(l),m=t+i*Math.cos(u),f=n+s*Math.sin(u);c(`M ${p} ${d} A ${i} ${s} 0 0 0 ${m} ${f}`),r=requestAnimationFrame(a)})),()=>{cancelAnimationFrame(r)}}),[t,n,i,s]),o().createElement(o().Fragment,null,o().createElement("defs",null,o().createElement("linearGradient",{id:u,gradientTransform:"rotate(48)",x1:"0",y1:"0",x2:"830px",y2:"183px",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{offset:"0%",stopColor:"rgba(132, 253, 253, 0)"}),o().createElement("stop",{offset:"25%",stopColor:"rgba(132, 253, 253, 1)"}),o().createElement("stop",{offset:"50%",stopColor:"rgba(132, 253, 253, 1)"}),o().createElement("stop",{offset:"75%",stopColor:"rgba(248, 255, 255, 1)"}))),o().createElement("path",{d:l,strokeWidth:4,stroke:`url(#${u})`,fill:"none"}))}},89152:(e,t,n)=>{e.exports=n.p+"images/1056eac3.png"},92481:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o)()(a());i.push([e.id,".corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}",""]);const s=i.toString()},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},93893:(e,t,n)=>{e.exports=n.p+"images/9111af40.png"},95178:(e,t,n)=>{var r=n(72591),a=n.n(r),o=n(1740),i=n.n(o),s=n(88128),l=n.n(s),c=n(30855),u=n.n(c),p=n(93051),d=n.n(p),m=n(73656),f=n.n(m),h=n(97136),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),a()(h.A,g),h.A&&h.A.locals&&h.A.locals},97136:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o),s=n(20062),l=n.n(s),c=new URL(n(17577),n.b),u=i()(a()),p=l()(c);u.push([e.id,`@font-face{font-family:ALiBaBaPuHuiTi;src:url(${p})}`,""]);const d=u}}]);
2
- //# sourceMappingURL=globe-with-halo-indicator.efc88256.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7666],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},11752:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(18769),a=n(99126);function o(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const t=o.current;if(!t)return;const r=new a.A((()=>{const r=t.clientWidth;n(Math.min(1,Math.max(.3,e/r)))}));return r.observe(t),()=>r.disconnect()}),[e]),[t,o]}},17577:(e,t,n)=>{e.exports=n.p+"media/792b07b2.ttf"},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},23396:(e,t,n)=>{n.r(t),n.d(t,{GlobeWithHaloIndicator:()=>I,GlobeWithHaloIndicatorComponent:()=>G});var r,a=n(70918),o=n(86121),i=n(70829),s=n(62740),l=n(18769),c=n.n(l),u=n(7921),p=n(11280),d=(n(37),n(82650)),m=n(57384),f=n(88952),h=n(88517),g=n(47906),x=n(11752),b=n(65482),v=(n(95178),n(83761)),y=n(92481);let E,w,M,S,k,A,N,$,C;const{defineElement:F,property:D}=(0,u.createDecorators)();let I;var T=new WeakMap,P=new WeakMap,z=new WeakMap,L=new WeakMap;class B extends p.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,T,w(this)),(0,a.A)(this,P,(M(this),S(this))),(0,a.A)(this,z,(k(this),A(this))),(0,a.A)(this,L,(N(this),$(this))),C(this)}get dataSource(){return(0,i.A)(T,this)}set dataSource(e){(0,o.A)(T,this,e)}get centerDataSource(){return(0,i.A)(P,this)}set centerDataSource(e){(0,o.A)(P,this,e)}get cornerDataSource(){return(0,i.A)(z,this)}set cornerDataSource(e){(0,o.A)(z,this,e)}get maxScale(){return(0,i.A)(L,this)}set maxScale(e){(0,o.A)(L,this,e)}render(){return c().createElement(G,{root:this,dataSource:this.dataSource,centerDataSource:this.centerDataSource,cornerDataSource:this.cornerDataSource,maxScale:this.maxScale})}}function G(e){let{root:t,dataSource:n,centerDataSource:r,cornerDataSource:a,maxScale:o}=e;const i=(0,g.D)({width:900,height:575,root:t,maxScale:o}),[s,u]=(0,x.L)(260),p=(0,l.useMemo)((()=>{var e;const t=null!==(e=null==n?void 0:n.slice(0,8))&&void 0!==e?e:[];if(0===t.length)return[];const r=t.length%2==0,a=Math.ceil(t.length/2)+1,o=R(a),i=-Math.PI/3,s=(Math.PI/4-i)/o;let l,c,u,p,d,m,f,h=0;const g=[];for(;h<t.length;){const e=t[h];if(h%2==0){const t=h/2+1;m=i+s*R(t),f=Math.PI/3*(2-t/a),d=340-(a>2?170*h/2/(a-2):0),l=413+292.4*Math.cos(m),c=65.5+59.4*Math.sin(m),u=l+Math.cos(f)*d,p=c-Math.sin(f)*d;const n=`M ${l} ${c} A ${d} ${d} 0 0 0 ${u} ${p}`;g.push({...e,x:l,y:c,x2:u,y2:p,d:n})}else if(r){const t=826-l,n=826-u;g.push({...e,x:t,y:c,x2:n,y2:p,d:`M ${t} ${c} A ${d} ${d} 0 0 1 ${n} ${p}`})}else{const t=Math.PI-(m+s*(h+1)/2),n=Math.PI-f,r=413+292.4*Math.cos(t),o=65.5+59.4*Math.sin(t),i=d-85/(a-2),l=r+Math.cos(n)*i,c=o-Math.sin(n)*i;g.push({...e,x:r,y:o,x2:l,y2:c,d:`M ${r} ${o} A ${i} ${i} 0 0 1 ${l} ${c}`})}h++}return g}),[n]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"container",style:{visibility:null===i?"hidden":"visible","--scale":i}},c().createElement("div",{className:"base"}),c().createElement("svg",{className:"ring",width:928,height:534,viewBox:"0 0 928 534"},c().createElement("g",{transform:"translate(51 304)"},c().createElement("ellipse",{cx:"413",cy:"89.5",rx:"412.4",ry:"88.9",fill:"none",stroke:"rgba(123,212,235,255)",strokeWidth:"1.2"},c().createElement("animate",{attributeName:"rx",values:"412.4;0",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"ry",values:"88.9;0",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"cy",values:"89.5;10",dur:"2.6s",repeatCount:"indefinite"}),c().createElement("animate",{attributeName:"stroke",values:"rgba(123,212,235,255);rgba(123,212,235,255);rgba(123,212,235,25)",keyTimes:"0;0.53846;1",dur:"2.6s",repeatCount:"indefinite"})),c().createElement(f.x,{cx:413,cy:89.5,rx:412.4,ry:88.9}),p.map(((e,t)=>c().createElement("path",{key:t,d:e.d,fill:"none",stroke:"#3889B6",strokeWidth:2,strokeDasharray:"6 4"}))))),c().createElement("div",{className:"globe"}),c().createElement(h.s,null),c().createElement("video",{className:"particles",width:197,height:246,autoPlay:!0,muted:!0,loop:!0,playsInline:!0},c().createElement("source",{src:b,type:"video/webm"})),c().createElement("div",{className:"ring-labels"},p.map(((e,t)=>c().createElement("div",{key:t,className:"ring-label-container "+(t%2==0?"even":"odd"),style:{left:e.x2+51,top:e.y2+304}},c().createElement("div",{className:"ring-icon"}),c().createElement("div",{className:"ring-label"},e.label),c().createElement("div",{className:"ring-value"},(0,d.F)(e.value)))))),c().createElement("div",{className:"center"},c().createElement("div",{className:"center-label"},null==r?void 0:r.label),c().createElement("div",{className:"center-value",ref:u,style:{visibility:null===s?"hidden":"visible",transform:`scale(${null!=s?s:1})`}},(0,d.F)(null==r?void 0:r.value)))),c().createElement(m.x,{cornerDataSource:a}))}function R(e){return e*(e+1)/2}r=B,({e:[w,M,S,k,A,N,$,C],c:[I,E]}=(0,s.A)(r,[F("data-view.globe-with-halo-indicator",{styleTexts:[v.A,y.A]})],[[D({attribute:!1}),1,"dataSource"],[D({attribute:!1}),1,"centerDataSource"],[D({attribute:!1}),1,"cornerDataSource"],[D({type:Number}),1,"maxScale"]],0,void 0,p.ReactNextElement)),E()},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},47906:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(18769),a=n(99126);function o(e){let{width:t,height:n,root:o,maxScale:i,disabled:s}=e;const[l,c]=(0,r.useState)(null);return(0,r.useEffect)((()=>{if(s)return void c(null);const e=new a.A((e=>{for(const r of e)if(r.target===o){const{width:e,height:a}=r.contentRect;c(Math.min(null!=i?i:1,e/t,a/n))}}));return e.observe(o),()=>e.disconnect()}),[n,t,s,i,o]),l}},57384:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(18769),a=n.n(r),o=n(11280),i=n(82650);const s=(0,o.wrapBrick)("eo-tag");function l(e){let{cornerDataSource:t}=e;return a().createElement("div",{className:"corner"},null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:t,className:"corner-item"},a().createElement("div",{className:"corner-label"},e.label),a().createElement(s,{className:"corner-value",outline:!0,color:e.color,tagStyle:{fontSize:18,padding:"2px 16px"}},(0,i.F)(e.value))))))}},63240:(e,t,n)=>{e.exports=n.p+"images/eae6fa62.png"},65482:(e,t,n)=>{e.exports=n.p+"media/0c649f21.webm"},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=o[c]||0,p="".concat(c," ").concat(u);o[c]=u+1;var d=n(p),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(m);else{var f=a(m,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:f,references:1})}i.push(p)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var s=n(o[i]);t[s].references--}for(var l=r(e,a),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},82650:(e,t,n)=>{n.d(t,{F:()=>a});const r=new Intl.NumberFormat("zh-CN",{useGrouping:!0});function a(e){return function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(null!==(t=Number.isFinite)&&void 0!==t?t:isFinite)(+e);var t}(e)?r.format(+e):e}},83761:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o),s=n(20062),l=n.n(s),c=new URL(n(63240),n.b),u=new URL(n(89152),n.b),p=new URL(n(93893),n.b),d=i()(a()),m=l()(c),f=l()(u),h=l()(p);d.push([e.id,`:host,\n.center{display:flex;align-items:center;justify-content:center}:host{height:100%;color:#fff}:host([hidden]){display:none}*{box-sizing:border-box}.container{width:928px;height:534px;position:relative;transform-origin:center;transform:scale(var(--scale));--scale:1}.base,\n.center,\n.globe,\n.satellite-ring,\n.ring,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0)}.base{width:1312px;height:575px;bottom:0;background-image:url(${m});background-repeat:no-repeat;background-position:center bottom -173px;background-size:100%}.globe,\n.center{width:272px;height:272px;bottom:228px}.globe{background-image:url(${f});background-repeat:no-repeat;background-size:100%;background-position:center}.satellite-ring,\n.ring{top:0}.particles{mix-blend-mode:screen;position:absolute;bottom:204px;left:50%;transform:translate(-50%,0)}.ring-labels{top:0;width:928px}.ring-label-container{position:absolute;padding:0 35px;margin-top:-14px;width:max-content}.ring-icon{position:absolute;width:36px;height:36px;background-image:url(${h});background-repeat:no-repeat;background-size:100%;background-position:0 0;top:-4px}.odd{transform:translate(-100%,0);text-align:right}.odd .ring-icon{right:-18px}.even .ring-icon{left:-18px}.ring-label{color:rgba(200,226,255,0.8);font-size:18px}.ring-value{font-family:ALiBaBaPuHuiTi;font-size:28px;text-shadow:0px 4px 7px #514af7}.center{flex-direction:column;text-align:center;text-shadow:0px 2px 4px rgba(0,0,0,0.5)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;font-weight:600;line-height:33px}.center-value{font-family:ALiBaBaPuHuiTi;font-weight:bold;font-size:60px;line-height:82px}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}`,""]);const g=d.toString()},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},88517:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(18769),a=n.n(r);function o(){return a().createElement("svg",{className:"satellite-ring",width:"928px",height:"534px",viewBox:"0 0 928 534"},a().createElement("defs",null,a().createElement("linearGradient",{x1:"50%",y1:"14.8555832%",x2:"50%",y2:"100%",id:"linearGradient-1"},a().createElement("stop",{stopColor:"#00E8FF",stopOpacity:"0",offset:"0%"}),a().createElement("stop",{stopColor:"#00CCFF",offset:"100%"})),a().createElement("linearGradient",{x1:"50%",y1:"14.8555832%",x2:"50%",y2:"100%",id:"linearGradient-2"},a().createElement("stop",{stopColor:"#00CCFF",offset:"0%"}),a().createElement("stop",{stopColor:"#00E8FF",stopOpacity:"0",offset:"100%"}))),a().createElement("g",{transform:"translate(51 304)",stroke:"1",fill:"none",opacity:.5},a().createElement("ellipse",{cx:"413",cy:"-136",rx:"164",ry:"94.5",stroke:"url(#linearGradient-1)"},a().createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 413 -136",to:"360 413 -136",dur:"2.6s",repeatCount:"indefinite"})),a().createElement("ellipse",{cx:"413",cy:"-136",rx:"164",ry:"94.5",stroke:"url(#linearGradient-2)"},a().createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"210 413 -136",to:"-150 413 -136",dur:"2.6s",repeatCount:"indefinite"}))))}},88952:(e,t,n)=>{n.d(t,{x:()=>i});var r=n(20563),a=n(18769),o=n.n(a);function i(e){let{cx:t,cy:n,rx:i,ry:s}=e;const[l,c]=(0,a.useState)("M 0 0"),u=(0,a.useMemo)((()=>(0,r.uniqueId)("rotating-arc-")),[]);return(0,a.useEffect)((()=>{let e,r;return r=requestAnimationFrame((function a(o){void 0===e&&(e=o);const l=-(o-e)/1e3/2.6*Math.PI*2+1.1*Math.PI,u=l-.6*Math.PI,p=t+i*Math.cos(l),d=n+s*Math.sin(l),m=t+i*Math.cos(u),f=n+s*Math.sin(u);c(`M ${p} ${d} A ${i} ${s} 0 0 0 ${m} ${f}`),r=requestAnimationFrame(a)})),()=>{cancelAnimationFrame(r)}}),[t,n,i,s]),o().createElement(o().Fragment,null,o().createElement("defs",null,o().createElement("linearGradient",{id:u,gradientTransform:"rotate(48)",x1:"0",y1:"0",x2:"830px",y2:"183px",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{offset:"0%",stopColor:"rgba(132, 253, 253, 0)"}),o().createElement("stop",{offset:"25%",stopColor:"rgba(132, 253, 253, 1)"}),o().createElement("stop",{offset:"50%",stopColor:"rgba(132, 253, 253, 1)"}),o().createElement("stop",{offset:"75%",stopColor:"rgba(248, 255, 255, 1)"}))),o().createElement("path",{d:l,strokeWidth:4,stroke:`url(#${u})`,fill:"none"}))}},89152:(e,t,n)=>{e.exports=n.p+"images/1056eac3.png"},92481:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o)()(a());i.push([e.id,".corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px;color:rgba(255,255,255,0.85)}.corner-value{display:block;margin-left:19px}",""]);const s=i.toString()},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},93893:(e,t,n)=>{e.exports=n.p+"images/9111af40.png"},95178:(e,t,n)=>{var r=n(72591),a=n.n(r),o=n(1740),i=n.n(o),s=n(88128),l=n.n(s),c=n(30855),u=n.n(c),p=n(93051),d=n.n(p),m=n(73656),f=n.n(m),h=n(97136),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),a()(h.A,g),h.A&&h.A.locals&&h.A.locals},97136:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(36758),a=n.n(r),o=n(40935),i=n.n(o),s=n(20062),l=n.n(s),c=new URL(n(17577),n.b),u=i()(a()),p=l()(c);u.push([e.id,`@font-face{font-family:ALiBaBaPuHuiTi;src:url(${p})}`,""]);const d=u}}]);
2
+ //# sourceMappingURL=globe-with-halo-indicator.dbbb98b8.js.map