@next-bricks/data-view 1.10.0 → 1.10.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 (170) hide show
  1. package/dist/bricks.json +2 -2
  2. package/dist/chunks/1045.54ae2d5b.js +2 -0
  3. package/dist/chunks/1045.54ae2d5b.js.map +1 -0
  4. package/dist/chunks/{114.f8141681.js → 114.066d30f1.js} +2 -2
  5. package/dist/chunks/{114.f8141681.js.map → 114.066d30f1.js.map} +1 -1
  6. package/dist/chunks/1491.ca56048e.js +3 -0
  7. package/dist/chunks/{1491.345114bf.js.map → 1491.ca56048e.js.map} +1 -1
  8. package/dist/chunks/{1493.e45be49f.js → 1493.2fc0dfef.js} +2 -2
  9. package/dist/chunks/{1493.e45be49f.js.map → 1493.2fc0dfef.js.map} +1 -1
  10. package/dist/chunks/1940.ba4034cc.js +2 -0
  11. package/dist/chunks/{1940.3555f80f.js.map → 1940.ba4034cc.js.map} +1 -1
  12. package/dist/chunks/2277.c4b47020.js +2 -0
  13. package/dist/chunks/{2277.26add4d5.js.map → 2277.c4b47020.js.map} +1 -1
  14. package/dist/chunks/{3171.3a9c6cb7.js → 3171.d8fa5a74.js} +2 -2
  15. package/dist/chunks/{3171.3a9c6cb7.js.map → 3171.d8fa5a74.js.map} +1 -1
  16. package/dist/chunks/3933.7cb9c356.js +2 -0
  17. package/dist/chunks/{3933.248700f4.js.map → 3933.7cb9c356.js.map} +1 -1
  18. package/dist/chunks/4658.e9b0d7a9.js +2 -0
  19. package/dist/chunks/{4658.7e7a0ae1.js.map → 4658.e9b0d7a9.js.map} +1 -1
  20. package/dist/chunks/4837.7e0b494a.js +2 -0
  21. package/dist/chunks/{7218.446f491e.js.map → 4837.7e0b494a.js.map} +1 -1
  22. package/dist/chunks/{5552.f0363a64.js → 5552.15b2b47a.js} +2 -2
  23. package/dist/chunks/{5552.f0363a64.js.map → 5552.15b2b47a.js.map} +1 -1
  24. package/dist/chunks/6314.dd2c9bcc.js +2 -0
  25. package/dist/chunks/{6314.c8020ca1.js.map → 6314.dd2c9bcc.js.map} +1 -1
  26. package/dist/chunks/7218.168df8f5.js +2 -0
  27. package/dist/chunks/{4837.26a827bd.js.map → 7218.168df8f5.js.map} +1 -1
  28. package/dist/chunks/{7733.d4c53ed9.js → 7733.bb8d9bac.js} +2 -2
  29. package/dist/chunks/{7733.d4c53ed9.js.map → 7733.bb8d9bac.js.map} +1 -1
  30. package/dist/chunks/{8097.13253824.js → 8097.8c59867f.js} +2 -2
  31. package/dist/chunks/{8097.13253824.js.map → 8097.8c59867f.js.map} +1 -1
  32. package/dist/chunks/8826.9ba3bce1.js +2 -0
  33. package/dist/chunks/{8826.2d0820ed.js.map → 8826.9ba3bce1.js.map} +1 -1
  34. package/dist/chunks/9559.8a095ed7.js +2 -0
  35. package/dist/chunks/{9559.1c290960.js.map → 9559.8a095ed7.js.map} +1 -1
  36. package/dist/chunks/{app-wall-card-item.f3230e62.js → app-wall-card-item.2c51024a.js} +3 -3
  37. package/dist/chunks/{app-wall-card-item.f3230e62.js.map → app-wall-card-item.2c51024a.js.map} +1 -1
  38. package/dist/chunks/{app-wall-relation-line.4428d63e.js → app-wall-relation-line.89a4b2fb.js} +3 -3
  39. package/dist/chunks/{app-wall-relation-line.4428d63e.js.map → app-wall-relation-line.89a4b2fb.js.map} +1 -1
  40. package/dist/chunks/{app-wall-system-card.4c2ea6f9.js → app-wall-system-card.9bc2413f.js} +2 -2
  41. package/dist/chunks/{app-wall-system-card.4c2ea6f9.js.map → app-wall-system-card.9bc2413f.js.map} +1 -1
  42. package/dist/chunks/{app-wall.b522423e.js → app-wall.d911a1bb.js} +2 -2
  43. package/dist/chunks/{app-wall.b522423e.js.map → app-wall.d911a1bb.js.map} +1 -1
  44. package/dist/chunks/{basic-index-group.0e98cc10.js → basic-index-group.0f6be63c.js} +2 -2
  45. package/dist/chunks/{basic-index-group.0e98cc10.js.map → basic-index-group.0f6be63c.js.map} +1 -1
  46. package/dist/chunks/{battery-chart.abdaa4e4.js → battery-chart.d4eece56.js} +2 -2
  47. package/dist/chunks/{battery-chart.abdaa4e4.js.map → battery-chart.d4eece56.js.map} +1 -1
  48. package/dist/chunks/{brick-notification.bf772819.js → brick-notification.30fc969c.js} +2 -2
  49. package/dist/chunks/{brick-notification.bf772819.js.map → brick-notification.30fc969c.js.map} +1 -1
  50. package/dist/chunks/{bubbles-indicator.9c56af44.js → bubbles-indicator.ced83522.js} +2 -2
  51. package/dist/chunks/{bubbles-indicator.9c56af44.js.map → bubbles-indicator.ced83522.js.map} +1 -1
  52. package/dist/chunks/{cabinet-app-layer.764bb10d.js → cabinet-app-layer.0cf450c8.js} +3 -3
  53. package/dist/chunks/{cabinet-app-layer.764bb10d.js.map → cabinet-app-layer.0cf450c8.js.map} +1 -1
  54. package/dist/chunks/{cabinet-button.2861c374.js → cabinet-button.5c7febcc.js} +2 -2
  55. package/dist/chunks/{cabinet-button.2861c374.js.map → cabinet-button.5c7febcc.js.map} +1 -1
  56. package/dist/chunks/{cabinet-container.bc8cb288.js → cabinet-container.ade75762.js} +3 -3
  57. package/dist/chunks/{cabinet-container.bc8cb288.js.map → cabinet-container.ade75762.js.map} +1 -1
  58. package/dist/chunks/{cabinet-graph.4b9538f0.js → cabinet-graph.7e6339e0.js} +2 -2
  59. package/dist/chunks/{cabinet-graph.4b9538f0.js.map → cabinet-graph.7e6339e0.js.map} +1 -1
  60. package/dist/chunks/{cabinet-node.6cada36d.js → cabinet-node.3f08c2ab.js} +3 -3
  61. package/dist/chunks/{cabinet-node.6cada36d.js.map → cabinet-node.3f08c2ab.js.map} +1 -1
  62. package/dist/chunks/{cabinet-thumbnail.d6c2b232.js → cabinet-thumbnail.dbc7d4ce.js} +3 -3
  63. package/dist/chunks/{cabinet-thumbnail.d6c2b232.js.map → cabinet-thumbnail.dbc7d4ce.js.map} +1 -1
  64. package/dist/chunks/{china-map-chart.52890013.js → china-map-chart.82ce6dda.js} +2 -2
  65. package/dist/chunks/{china-map-chart.52890013.js.map → china-map-chart.82ce6dda.js.map} +1 -1
  66. package/dist/chunks/{china-map.c8780d37.js → china-map.136b71be.js} +2 -2
  67. package/dist/chunks/{china-map.c8780d37.js.map → china-map.136b71be.js.map} +1 -1
  68. package/dist/chunks/complex-search.94ff4d73.js +2 -0
  69. package/dist/chunks/{complex-search.edc01a8a.js.map → complex-search.94ff4d73.js.map} +1 -1
  70. package/dist/chunks/{crystal-ball-indicator.67278de8.js → crystal-ball-indicator.1181e572.js} +2 -2
  71. package/dist/chunks/{crystal-ball-indicator.67278de8.js.map → crystal-ball-indicator.1181e572.js.map} +1 -1
  72. package/dist/chunks/{data-display-flipper-fifth.354d1e71.js → data-display-flipper-fifth.dc1b1c1d.js} +2 -2
  73. package/dist/chunks/{data-display-flipper-fifth.354d1e71.js.map → data-display-flipper-fifth.dc1b1c1d.js.map} +1 -1
  74. package/dist/chunks/{data-display-flipper-sixth.6ecd9549.js → data-display-flipper-sixth.88034847.js} +2 -2
  75. package/dist/chunks/{data-display-flipper-sixth.6ecd9549.js.map → data-display-flipper-sixth.88034847.js.map} +1 -1
  76. package/dist/chunks/{data-display-flipper.fae041d0.js → data-display-flipper.8dbf0c1d.js} +2 -2
  77. package/dist/chunks/{data-display-flipper.fae041d0.js.map → data-display-flipper.8dbf0c1d.js.map} +1 -1
  78. package/dist/chunks/{dropdown-menu.a4c77402.js → dropdown-menu.daf5cd7e.js} +3 -3
  79. package/dist/chunks/{dropdown-menu.a4c77402.js.map → dropdown-menu.daf5cd7e.js.map} +1 -1
  80. package/dist/chunks/{gauge-chart.6ed1dfa8.js → gauge-chart.45b4ea28.js} +2 -2
  81. package/dist/chunks/{gauge-chart.6ed1dfa8.js.map → gauge-chart.45b4ea28.js.map} +1 -1
  82. package/dist/chunks/{gear-background.7707f3b1.js → gear-background.675d0978.js} +2 -2
  83. package/dist/chunks/{gear-background.7707f3b1.js.map → gear-background.675d0978.js.map} +1 -1
  84. package/dist/chunks/{globe-with-gear-indicator.a35ef0d2.js → globe-with-gear-indicator.a8253164.js} +2 -2
  85. package/dist/chunks/{globe-with-gear-indicator.a35ef0d2.js.map → globe-with-gear-indicator.a8253164.js.map} +1 -1
  86. package/dist/chunks/{globe-with-halo-indicator.ed913008.js → globe-with-halo-indicator.55f4a346.js} +2 -2
  87. package/dist/chunks/{globe-with-halo-indicator.ed913008.js.map → globe-with-halo-indicator.55f4a346.js.map} +1 -1
  88. package/dist/chunks/{globe-with-orbit-indicator.14c59388.js → globe-with-orbit-indicator.d86c5710.js} +2 -2
  89. package/dist/chunks/{globe-with-orbit-indicator.14c59388.js.map → globe-with-orbit-indicator.d86c5710.js.map} +1 -1
  90. package/dist/chunks/{graph-layout-grid.1a62c049.js → graph-layout-grid.f8a65323.js} +2 -2
  91. package/dist/chunks/{graph-layout-grid.1a62c049.js.map → graph-layout-grid.f8a65323.js.map} +1 -1
  92. package/dist/chunks/{graph-node.414864df.js → graph-node.8843ac35.js} +2 -2
  93. package/dist/chunks/{graph-node.414864df.js.map → graph-node.8843ac35.js.map} +1 -1
  94. package/dist/chunks/graph-text.06bbd3ce.js +2 -0
  95. package/dist/chunks/{graph-text.56e101b0.js.map → graph-text.06bbd3ce.js.map} +1 -1
  96. package/dist/chunks/{grid-background.7c505caa.js → grid-background.1dba8b8f.js} +2 -2
  97. package/dist/chunks/{grid-background.7c505caa.js.map → grid-background.1dba8b8f.js.map} +1 -1
  98. package/dist/chunks/{hi-tech-button.d51b6c2b.js → hi-tech-button.ad8a248b.js} +2 -2
  99. package/dist/chunks/{hi-tech-button.d51b6c2b.js.map → hi-tech-button.ad8a248b.js.map} +1 -1
  100. package/dist/chunks/{indicator-card.10734d27.js → indicator-card.67e3126c.js} +3 -3
  101. package/dist/chunks/{indicator-card.10734d27.js.map → indicator-card.67e3126c.js.map} +1 -1
  102. package/dist/chunks/{lights-component-title.751f95be.js → lights-component-title.a60bd019.js} +2 -2
  103. package/dist/chunks/{lights-component-title.751f95be.js.map → lights-component-title.a60bd019.js.map} +1 -1
  104. package/dist/chunks/{loading-panel.4b9cfaa7.js → loading-panel.5bed2bef.js} +2 -2
  105. package/dist/chunks/{loading-panel.4b9cfaa7.js.map → loading-panel.5bed2bef.js.map} +1 -1
  106. package/dist/chunks/main.103ffe2c.js +2 -0
  107. package/dist/chunks/main.103ffe2c.js.map +1 -0
  108. package/dist/chunks/{modern-style-component-title.2f427009.js → modern-style-component-title.3fc77ffb.js} +2 -2
  109. package/dist/chunks/{modern-style-component-title.2f427009.js.map → modern-style-component-title.3fc77ffb.js.map} +1 -1
  110. package/dist/chunks/{modern-style-page-title.790a17ac.js → modern-style-page-title.853d866b.js} +2 -2
  111. package/dist/chunks/{modern-style-page-title.790a17ac.js.map → modern-style-page-title.853d866b.js.map} +1 -1
  112. package/dist/chunks/modern-style-treemap.fbaa3c10.js +3 -0
  113. package/dist/chunks/{modern-style-treemap.eb1d71e0.js.map → modern-style-treemap.fbaa3c10.js.map} +1 -1
  114. package/dist/chunks/{particle-animation.15b8adfb.js → particle-animation.8a51b1a4.js} +2 -2
  115. package/dist/chunks/{particle-animation.15b8adfb.js.map → particle-animation.8a51b1a4.js.map} +1 -1
  116. package/dist/chunks/{progress-bar-list.ddeaf614.js → progress-bar-list.f85b0cf3.js} +2 -2
  117. package/dist/chunks/{progress-bar-list.ddeaf614.js.map → progress-bar-list.f85b0cf3.js.map} +1 -1
  118. package/dist/chunks/{radar-chart.c9abdd30.js → radar-chart.454b6164.js} +2 -2
  119. package/dist/chunks/{radar-chart.c9abdd30.js.map → radar-chart.454b6164.js.map} +1 -1
  120. package/dist/chunks/{simple-card-item.07b301f4.js → simple-card-item.0837e16d.js} +3 -3
  121. package/dist/chunks/{simple-card-item.07b301f4.js.map → simple-card-item.0837e16d.js.map} +1 -1
  122. package/dist/chunks/{tabs-drawer.04866e23.js → tabs-drawer.1c4c63a5.js} +3 -3
  123. package/dist/chunks/{tabs-drawer.04866e23.js.map → tabs-drawer.1c4c63a5.js.map} +1 -1
  124. package/dist/chunks/{tabs-page-title.670649e6.js → tabs-page-title.aa25b8e1.js} +3 -3
  125. package/dist/chunks/{tabs-page-title.670649e6.js.map → tabs-page-title.aa25b8e1.js.map} +1 -1
  126. package/dist/chunks/{tech-mesh-base-view.1a2baf3a.js → tech-mesh-base-view.3f4774cf.js} +2 -2
  127. package/dist/chunks/{tech-mesh-base-view.1a2baf3a.js.map → tech-mesh-base-view.3f4774cf.js.map} +1 -1
  128. package/dist/chunks/{title-text.77f2e79a.js → title-text.5db6c472.js} +2 -2
  129. package/dist/chunks/{title-text.77f2e79a.js.map → title-text.5db6c472.js.map} +1 -1
  130. package/dist/chunks/{top-title-bar.03e1e61d.js → top-title-bar.0079c0e3.js} +2 -2
  131. package/dist/chunks/{top-title-bar.03e1e61d.js.map → top-title-bar.0079c0e3.js.map} +1 -1
  132. package/dist/examples.json +4 -4
  133. package/dist/index.e5ef11af.js +2 -0
  134. package/dist/index.e5ef11af.js.map +1 -0
  135. package/dist/manifest.json +20 -19
  136. package/dist-types/china-map-chart/index.d.ts +2 -0
  137. package/docs/china-map-chart.md +2 -0
  138. package/package.json +3 -3
  139. package/dist/chunks/1045.b74cadcb.js +0 -2
  140. package/dist/chunks/1045.b74cadcb.js.map +0 -1
  141. package/dist/chunks/1491.345114bf.js +0 -3
  142. package/dist/chunks/1940.3555f80f.js +0 -2
  143. package/dist/chunks/2277.26add4d5.js +0 -2
  144. package/dist/chunks/3933.248700f4.js +0 -2
  145. package/dist/chunks/4658.7e7a0ae1.js +0 -2
  146. package/dist/chunks/4837.26a827bd.js +0 -2
  147. package/dist/chunks/6314.c8020ca1.js +0 -2
  148. package/dist/chunks/7218.446f491e.js +0 -2
  149. package/dist/chunks/8826.2d0820ed.js +0 -2
  150. package/dist/chunks/9559.1c290960.js +0 -2
  151. package/dist/chunks/complex-search.edc01a8a.js +0 -2
  152. package/dist/chunks/graph-text.56e101b0.js +0 -2
  153. package/dist/chunks/main.e8031b63.js +0 -2
  154. package/dist/chunks/main.e8031b63.js.map +0 -1
  155. package/dist/chunks/modern-style-treemap.eb1d71e0.js +0 -3
  156. package/dist/index.38a026f6.js +0 -2
  157. package/dist/index.38a026f6.js.map +0 -1
  158. /package/dist/chunks/{1491.345114bf.js.LICENSE.txt → 1491.ca56048e.js.LICENSE.txt} +0 -0
  159. /package/dist/chunks/{app-wall-card-item.f3230e62.js.LICENSE.txt → app-wall-card-item.2c51024a.js.LICENSE.txt} +0 -0
  160. /package/dist/chunks/{app-wall-relation-line.4428d63e.js.LICENSE.txt → app-wall-relation-line.89a4b2fb.js.LICENSE.txt} +0 -0
  161. /package/dist/chunks/{cabinet-app-layer.764bb10d.js.LICENSE.txt → cabinet-app-layer.0cf450c8.js.LICENSE.txt} +0 -0
  162. /package/dist/chunks/{cabinet-container.bc8cb288.js.LICENSE.txt → cabinet-container.ade75762.js.LICENSE.txt} +0 -0
  163. /package/dist/chunks/{cabinet-node.6cada36d.js.LICENSE.txt → cabinet-node.3f08c2ab.js.LICENSE.txt} +0 -0
  164. /package/dist/chunks/{cabinet-thumbnail.d6c2b232.js.LICENSE.txt → cabinet-thumbnail.dbc7d4ce.js.LICENSE.txt} +0 -0
  165. /package/dist/chunks/{dropdown-menu.a4c77402.js.LICENSE.txt → dropdown-menu.daf5cd7e.js.LICENSE.txt} +0 -0
  166. /package/dist/chunks/{indicator-card.10734d27.js.LICENSE.txt → indicator-card.67e3126c.js.LICENSE.txt} +0 -0
  167. /package/dist/chunks/{modern-style-treemap.eb1d71e0.js.LICENSE.txt → modern-style-treemap.fbaa3c10.js.LICENSE.txt} +0 -0
  168. /package/dist/chunks/{simple-card-item.07b301f4.js.LICENSE.txt → simple-card-item.0837e16d.js.LICENSE.txt} +0 -0
  169. /package/dist/chunks/{tabs-drawer.04866e23.js.LICENSE.txt → tabs-drawer.1c4c63a5.js.LICENSE.txt} +0 -0
  170. /package/dist/chunks/{tabs-page-title.670649e6.js.LICENSE.txt → tabs-page-title.aa25b8e1.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],{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(10300),u=r(24295),p=(r(44291),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()},57384:(e,t,r)=>{r.d(t,{x:()=>s});var n=r(18769),a=r.n(n),o=r(24295),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))))))}},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}},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]}},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}},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},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},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()},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()},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}},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},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},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}}},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)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},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)}}}},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))}}},17577:(e,t,r)=>{e.exports=r.p+"media/792b07b2.ttf"},81026:(e,t,r)=>{e.exports=r.p+"media/cc0a5a55.ttf"},9239:(e,t,r)=>{e.exports=r.p+"media/2978c0ae.ttf"},42600:(e,t,r)=>{e.exports=r.p+"images/f1a78578.png"},1342:(e,t,r)=>{e.exports=r.p+"images/12997c2b.png"},34318:(e,t,r)=>{e.exports=r.p+"images/2235938c.png"},32346:(e,t,r)=>{e.exports=r.p+"images/73baf989.png"}}]);
2
- //# sourceMappingURL=globe-with-gear-indicator.a35ef0d2.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7889],{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(65821),u=r(79476),p=(r(44291),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()},57384:(e,t,r)=>{r.d(t,{x:()=>s});var n=r(18769),a=r.n(n),o=r(79476),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))))))}},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}},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]}},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}},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},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},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()},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()},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}},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},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},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}}},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)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},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)}}}},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))}}},17577:(e,t,r)=>{e.exports=r.p+"media/792b07b2.ttf"},81026:(e,t,r)=>{e.exports=r.p+"media/cc0a5a55.ttf"},9239:(e,t,r)=>{e.exports=r.p+"media/2978c0ae.ttf"},42600:(e,t,r)=>{e.exports=r.p+"images/f1a78578.png"},1342:(e,t,r)=>{e.exports=r.p+"images/12997c2b.png"},34318:(e,t,r)=>{e.exports=r.p+"images/2235938c.png"},32346:(e,t,r)=>{e.exports=r.p+"images/73baf989.png"}}]);
2
+ //# sourceMappingURL=globe-with-gear-indicator.a8253164.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/globe-with-gear-indicator.a35ef0d2.js","mappings":"mbAcA,MAAMA,EAAa,IACbC,EAAc,IACdC,EAAaD,EAAc,EAC3BE,EAAkB,IAElBC,EAAoB,CACxB,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAWIC,EAAc,IACdC,EAAU,IACVC,EAAU,IAEVC,GAAwBC,EAAAA,EAAAA,WAC5B,8BAGI,cAAEC,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAAmB,IAAAC,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QA+BvD,MAAAI,UAIUC,EAAAA,iBAEVC,WAAAA,GAAA,SAAAC,YACEC,EAAAA,EAAAA,GAAA,KAAAT,EAAAU,EAAA,QAOAD,EA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/shared/CornerIndicator.tsx","webpack:///./src/shared/formatValue.ts","webpack:///./src/shared/useCenterScale.ts","webpack:///./src/shared/useContainerScale.ts","webpack:///./src/fonts/ALiBaBaPuHuiTi.css","webpack:///./src/fonts/HarmonyOSSans.css","webpack:///./src/globe-with-gear-indicator/styles.shadow.css","webpack:///./src/shared/CornerIndicator.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///./src/fonts/ALiBaBaPuHuiTi.css?7885","webpack:///./src/fonts/HarmonyOSSans.css?a0fb","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js"],"sourcesContent":["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","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","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","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","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","// 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","// 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","// 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","// 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\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};","\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","\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","\"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\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;","\"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;","\"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;","\"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;","\"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;"],"names":["BASE_WIDTH","BASE_HEIGHT","MAX_LINE_Y","BASE_LINE_WIDTH","PALETTE","RING_RADIUS","RING_CX","RING_CY","WrappedGearBackground","wrapBrick","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","cornerDataSource","maxScale","render","React","GlobeWithGearIndicatorComponent","root","this","_ref","scale","useContainerScale","width","height","centerValueScale","centerValueRef","useCenterScale","labels","useMemo","_dataSource$slice","clampedData","slice","length","half","Math","ceil","even","arc","PI","angle","index","result","item","color","push","getLinePosition","oddAngle","className","style","visibility","ref","transform","formatValue","value","label","viewBox","map","key","strokeWidth","fill","d","x","y","x2","y2","x3","stroke","abs","left","top","background","CornerIndicator","cos","sin","baseWidth","lineAngle","lineRadius","tan","_GlobeWithGearIndicator","e","c","_initClass","_applyDecs","styleTexts","styleText","cornerStyleText","attribute","type","Number","WrappedTag","outline","tagStyle","fontSize","padding","numberFormatter","Intl","NumberFormat","useGrouping","trim","_Number$isFinite","isFinite","isMeaningfulNumber","format","maxWidth","centerScale","setCenterScale","useState","centerRef","useRef","useEffect","centerValueElement","current","observer","ResizeObserver","clientWidth","min","max","observe","disconnect","baseHeight","disabled","setScale","entries","entry","target","contentRect","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","module","id","___CSS_LOADER_URL_IMPORT_1___","___CSS_LOADER_URL_REPLACEMENT_1___","___CSS_LOADER_URL_IMPORT_2___","___CSS_LOADER_URL_IMPORT_3___","___CSS_LOADER_URL_REPLACEMENT_2___","___CSS_LOADER_URL_REPLACEMENT_3___","toString","exports","url","options","String","__esModule","default","test","hash","needQuotes","concat","replace","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","i","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","newLastIdentifiers","_i","_index","memo","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","element","createElement","attributes","styleElement","nonce","setAttribute","needLayer","btoa","unescape","encodeURIComponent","JSON","stringify","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/globe-with-gear-indicator.a8253164.js","mappings":"mbAcA,MAAMA,EAAa,IACbC,EAAc,IACdC,EAAaD,EAAc,EAC3BE,EAAkB,IAElBC,EAAoB,CACxB,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAWIC,EAAc,IACdC,EAAU,IACVC,EAAU,IAEVC,GAAwBC,EAAAA,EAAAA,WAC5B,8BAGI,cAAEC,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAAmB,IAAAC,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QA+BvD,MAAAI,UAIUC,EAAAA,iBAEVC,WAAAA,GAAA,SAAAC,YACEC,EAAAA,EAAAA,GAAA,KAAAT,EAAAU,EAAA,QAOAD,EAAAA,EAAAA,GAAA,KAAAP,GAAAS,EAAA,MAAAC,EAAA,SAIAH,EAAAA,EAAAA,GAAA,KAAAN,GAAAU,EAAA,MAAAC,EAAA,SAMAL,EAAAA,EAAAA,GAAA,KAAAL,GAAAW,EAAA,MAAAC,EAAA,QAAAC,EAAA,oBAZSC,GAAU,OAAAC,EAAAA,EAAAA,GAAAnB,EAAA,oBAAVkB,CAAUE,IAAAC,EAAAA,EAAAA,GAAArB,EAAA,KAAAoB,EAAA,qBAIVE,GAAgB,OAAAH,EAAAA,EAAAA,GAAAjB,EAAA,0BAAhBoB,CAAgBF,IAAAC,EAAAA,EAAAA,GAAAnB,EAAA,KAAAkB,EAAA,qBAMhBG,GAAgB,OAAAJ,EAAAA,EAAAA,GAAAhB,EAAA,0BAAhBoB,CAAgBH,IAAAC,EAAAA,EAAAA,GAAAlB,EAAA,KAAAiB,EAAA,aAQhBI,GAAQ,OA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pC,GAAO,KAELD,EAAIE,QACND,GAAO,KAELD,EAAII,WACNH,GAAO,KAET,IAAIE,EAAYH,EAAIG,UAChBA,GAA6B,oBAATmC,OACtBrC,GAAO,uDAAuDpB,OAAOyD,KAAKC,SAASC,mBAAmBC,KAAKC,UAAUvC,MAAe,QAKtI7B,EAAQS,kBAAkBkB,EAAKiC,EAAc5D,EAAQA,QACvD,CAoBMqE,CAAMT,EAAc5D,EAAS0B,EAC/B,EACAc,OAAQ,YArBZ,SAA4BoB,GAE1B,GAAgC,OAA5BA,EAAaU,WACf,OAAO,EAETV,EAAaU,WAAWC,YAAYX,EACtC,CAgBMY,CAAmBZ,EACrB,EAEJ,C,YC9CAvE,EAAOS,QAVP,SAA2B6B,EAAKiC,GAC9B,GAAIA,EAAaa,WACfb,EAAaa,WAAWC,QAAU/C,MAC7B,CACL,KAAOiC,EAAae,YAClBf,EAAaW,YAAYX,EAAae,YAExCf,EAAaJ,YAAYR,SAAS4B,eAAejD,GACnD,CACF,C","sources":["webpack:///./src/globe-with-gear-indicator/index.tsx","webpack:///./src/shared/CornerIndicator.tsx","webpack:///./src/shared/formatValue.ts","webpack:///./src/shared/useCenterScale.ts","webpack:///./src/shared/useContainerScale.ts","webpack:///./src/fonts/ALiBaBaPuHuiTi.css","webpack:///./src/fonts/HarmonyOSSans.css","webpack:///./src/globe-with-gear-indicator/styles.shadow.css","webpack:///./src/shared/CornerIndicator.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///./src/fonts/ALiBaBaPuHuiTi.css?7885","webpack:///./src/fonts/HarmonyOSSans.css?a0fb","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js"],"sourcesContent":["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","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","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","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","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","// 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","// 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","// 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","// 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\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};","\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","\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","\"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\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;","\"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;","\"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;","\"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;","\"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;"],"names":["BASE_WIDTH","BASE_HEIGHT","MAX_LINE_Y","BASE_LINE_WIDTH","PALETTE","RING_RADIUS","RING_CX","RING_CY","WrappedGearBackground","wrapBrick","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","cornerDataSource","maxScale","render","React","GlobeWithGearIndicatorComponent","root","this","_ref","scale","useContainerScale","width","height","centerValueScale","centerValueRef","useCenterScale","labels","useMemo","_dataSource$slice","clampedData","slice","length","half","Math","ceil","even","arc","PI","angle","index","result","item","color","push","getLinePosition","oddAngle","className","style","visibility","ref","transform","formatValue","value","label","viewBox","map","key","strokeWidth","fill","d","x","y","x2","y2","x3","stroke","abs","left","top","background","CornerIndicator","cos","sin","baseWidth","lineAngle","lineRadius","tan","_GlobeWithGearIndicator","e","c","_initClass","_applyDecs","styleTexts","styleText","cornerStyleText","attribute","type","Number","WrappedTag","outline","tagStyle","fontSize","padding","numberFormatter","Intl","NumberFormat","useGrouping","trim","_Number$isFinite","isFinite","isMeaningfulNumber","format","maxWidth","centerScale","setCenterScale","useState","centerRef","useRef","useEffect","centerValueElement","current","observer","ResizeObserver","clientWidth","min","max","observe","disconnect","baseHeight","disabled","setScale","entries","entry","target","contentRect","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","module","id","___CSS_LOADER_URL_IMPORT_1___","___CSS_LOADER_URL_REPLACEMENT_1___","___CSS_LOADER_URL_IMPORT_2___","___CSS_LOADER_URL_IMPORT_3___","___CSS_LOADER_URL_REPLACEMENT_2___","___CSS_LOADER_URL_REPLACEMENT_3___","toString","exports","url","options","String","__esModule","default","test","hash","needQuotes","concat","replace","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","i","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","newLastIdentifiers","_i","_index","memo","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","element","createElement","attributes","styleElement","nonce","setAttribute","needLayer","btoa","unescape","encodeURIComponent","JSON","stringify","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7666],{88952:(e,t,n)=>{n.d(t,{x:()=>i});var r=n(72445),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"}))}},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"}))))}},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(10300),p=n(24295),d=(n(44291),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()},57384:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(18769),a=n.n(r),o=n(24295),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))))))}},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}},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]}},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}},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},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()},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()},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}},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},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}}},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)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},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)}}}},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))}}},93893:(e,t,n)=>{e.exports=n.p+"images/9111af40.png"},17577:(e,t,n)=>{e.exports=n.p+"media/792b07b2.ttf"},63240:(e,t,n)=>{e.exports=n.p+"images/eae6fa62.png"},89152:(e,t,n)=>{e.exports=n.p+"images/1056eac3.png"},65482:(e,t,n)=>{e.exports=n.p+"media/0c649f21.webm"}}]);
2
- //# sourceMappingURL=globe-with-halo-indicator.ed913008.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[7666],{88952:(e,t,n)=>{n.d(t,{x:()=>i});var r=n(72445),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"}))}},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"}))))}},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(65821),p=n(79476),d=(n(44291),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()},57384:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(18769),a=n.n(r),o=n(79476),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))))))}},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}},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]}},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}},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},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()},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()},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}},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},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}}},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)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},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)}}}},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))}}},93893:(e,t,n)=>{e.exports=n.p+"images/9111af40.png"},17577:(e,t,n)=>{e.exports=n.p+"media/792b07b2.ttf"},63240:(e,t,n)=>{e.exports=n.p+"images/eae6fa62.png"},89152:(e,t,n)=>{e.exports=n.p+"images/1056eac3.png"},65482:(e,t,n)=>{e.exports=n.p+"media/0c649f21.webm"}}]);
2
+ //# sourceMappingURL=globe-with-halo-indicator.55f4a346.js.map