binbot-charts 0.5.9 → 0.6.0

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 (312) hide show
  1. package/dist/TVChartContainer.d.mts +45 -0
  2. package/dist/TVChartContainer.d.ts +45 -0
  3. package/dist/TVChartContainer.js +752 -0
  4. package/dist/TVChartContainer.js.map +1 -0
  5. package/dist/TVChartContainer.mjs +735 -0
  6. package/dist/TVChartContainer.mjs.map +1 -0
  7. package/package.json +4 -2
  8. package/dist/public/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
  9. package/dist/public/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
  10. package/dist/public/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
  11. package/dist/public/charting_library/bundles/11.df012db70159a159d927.js +0 -1
  12. package/dist/public/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
  13. package/dist/public/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
  14. package/dist/public/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
  15. package/dist/public/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
  16. package/dist/public/charting_library/bundles/16.680572949c1125757d35.js +0 -1
  17. package/dist/public/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
  18. package/dist/public/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
  19. package/dist/public/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
  20. package/dist/public/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
  21. package/dist/public/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
  22. package/dist/public/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
  23. package/dist/public/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
  24. package/dist/public/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
  25. package/dist/public/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
  26. package/dist/public/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
  27. package/dist/public/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
  28. package/dist/public/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
  29. package/dist/public/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
  30. package/dist/public/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
  31. package/dist/public/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
  32. package/dist/public/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
  33. package/dist/public/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
  34. package/dist/public/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
  35. package/dist/public/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
  36. package/dist/public/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
  37. package/dist/public/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
  38. package/dist/public/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
  39. package/dist/public/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
  40. package/dist/public/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
  41. package/dist/public/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
  42. package/dist/public/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
  43. package/dist/public/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
  44. package/dist/public/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
  45. package/dist/public/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
  46. package/dist/public/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
  47. package/dist/public/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
  48. package/dist/public/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
  49. package/dist/public/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
  50. package/dist/public/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
  51. package/dist/public/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
  52. package/dist/public/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
  53. package/dist/public/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
  54. package/dist/public/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
  55. package/dist/public/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
  56. package/dist/public/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
  57. package/dist/public/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
  58. package/dist/public/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
  59. package/dist/public/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
  60. package/dist/public/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
  61. package/dist/public/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
  62. package/dist/public/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
  63. package/dist/public/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
  64. package/dist/public/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
  65. package/dist/public/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
  66. package/dist/public/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
  67. package/dist/public/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
  68. package/dist/public/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
  69. package/dist/public/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
  70. package/dist/public/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
  71. package/dist/public/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
  72. package/dist/public/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
  73. package/dist/public/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
  74. package/dist/public/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
  75. package/dist/public/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
  76. package/dist/public/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
  77. package/dist/public/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
  78. package/dist/public/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
  79. package/dist/public/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
  80. package/dist/public/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
  81. package/dist/public/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
  82. package/dist/public/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
  83. package/dist/public/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
  84. package/dist/public/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
  85. package/dist/public/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
  86. package/dist/public/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
  87. package/dist/public/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
  88. package/dist/public/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
  89. package/dist/public/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
  90. package/dist/public/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
  91. package/dist/public/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
  92. package/dist/public/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
  93. package/dist/public/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
  94. package/dist/public/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
  95. package/dist/public/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
  96. package/dist/public/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
  97. package/dist/public/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
  98. package/dist/public/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
  99. package/dist/public/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
  100. package/dist/public/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
  101. package/dist/public/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
  102. package/dist/public/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
  103. package/dist/public/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
  104. package/dist/public/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
  105. package/dist/public/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
  106. package/dist/public/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
  107. package/dist/public/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
  108. package/dist/public/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
  109. package/dist/public/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
  110. package/dist/public/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
  111. package/dist/public/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
  112. package/dist/public/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
  113. package/dist/public/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
  114. package/dist/public/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
  115. package/dist/public/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
  116. package/dist/public/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
  117. package/dist/public/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
  118. package/dist/public/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
  119. package/dist/public/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
  120. package/dist/public/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
  121. package/dist/public/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
  122. package/dist/public/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
  123. package/dist/public/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
  124. package/dist/public/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
  125. package/dist/public/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
  126. package/dist/public/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
  127. package/dist/public/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
  128. package/dist/public/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
  129. package/dist/public/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
  130. package/dist/public/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
  131. package/dist/public/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
  132. package/dist/public/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
  133. package/dist/public/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
  134. package/dist/public/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
  135. package/dist/public/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
  136. package/dist/public/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
  137. package/dist/public/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
  138. package/dist/public/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
  139. package/dist/public/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
  140. package/dist/public/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
  141. package/dist/public/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
  142. package/dist/public/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
  143. package/dist/public/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
  144. package/dist/public/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
  145. package/dist/public/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
  146. package/dist/public/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
  147. package/dist/public/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
  148. package/dist/public/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
  149. package/dist/public/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
  150. package/dist/public/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
  151. package/dist/public/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
  152. package/dist/public/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
  153. package/dist/public/charting_library/charting_library.cjs.js +0 -98
  154. package/dist/public/charting_library/charting_library.esm.js +0 -101
  155. package/dist/public/charting_library/charting_library.js +0 -99
  156. package/dist/public/charting_library/charting_library.standalone.js +0 -99
  157. package/dist/src/App.js +0 -81
  158. package/dist/src/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
  159. package/dist/src/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
  160. package/dist/src/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
  161. package/dist/src/charting_library/bundles/11.df012db70159a159d927.js +0 -1
  162. package/dist/src/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
  163. package/dist/src/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
  164. package/dist/src/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
  165. package/dist/src/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
  166. package/dist/src/charting_library/bundles/16.680572949c1125757d35.js +0 -1
  167. package/dist/src/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
  168. package/dist/src/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
  169. package/dist/src/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
  170. package/dist/src/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
  171. package/dist/src/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
  172. package/dist/src/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
  173. package/dist/src/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
  174. package/dist/src/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
  175. package/dist/src/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
  176. package/dist/src/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
  177. package/dist/src/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
  178. package/dist/src/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
  179. package/dist/src/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
  180. package/dist/src/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
  181. package/dist/src/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
  182. package/dist/src/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
  183. package/dist/src/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
  184. package/dist/src/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
  185. package/dist/src/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
  186. package/dist/src/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
  187. package/dist/src/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
  188. package/dist/src/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
  189. package/dist/src/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
  190. package/dist/src/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
  191. package/dist/src/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
  192. package/dist/src/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
  193. package/dist/src/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
  194. package/dist/src/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
  195. package/dist/src/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
  196. package/dist/src/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
  197. package/dist/src/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
  198. package/dist/src/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
  199. package/dist/src/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
  200. package/dist/src/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
  201. package/dist/src/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
  202. package/dist/src/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
  203. package/dist/src/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
  204. package/dist/src/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
  205. package/dist/src/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
  206. package/dist/src/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
  207. package/dist/src/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
  208. package/dist/src/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
  209. package/dist/src/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
  210. package/dist/src/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
  211. package/dist/src/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
  212. package/dist/src/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
  213. package/dist/src/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
  214. package/dist/src/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
  215. package/dist/src/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
  216. package/dist/src/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
  217. package/dist/src/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
  218. package/dist/src/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
  219. package/dist/src/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
  220. package/dist/src/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
  221. package/dist/src/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
  222. package/dist/src/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
  223. package/dist/src/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
  224. package/dist/src/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
  225. package/dist/src/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
  226. package/dist/src/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
  227. package/dist/src/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
  228. package/dist/src/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
  229. package/dist/src/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
  230. package/dist/src/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
  231. package/dist/src/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
  232. package/dist/src/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
  233. package/dist/src/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
  234. package/dist/src/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
  235. package/dist/src/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
  236. package/dist/src/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
  237. package/dist/src/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
  238. package/dist/src/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
  239. package/dist/src/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
  240. package/dist/src/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
  241. package/dist/src/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
  242. package/dist/src/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
  243. package/dist/src/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
  244. package/dist/src/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
  245. package/dist/src/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
  246. package/dist/src/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
  247. package/dist/src/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
  248. package/dist/src/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
  249. package/dist/src/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
  250. package/dist/src/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
  251. package/dist/src/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
  252. package/dist/src/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
  253. package/dist/src/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
  254. package/dist/src/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
  255. package/dist/src/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
  256. package/dist/src/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
  257. package/dist/src/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
  258. package/dist/src/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
  259. package/dist/src/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
  260. package/dist/src/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
  261. package/dist/src/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
  262. package/dist/src/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
  263. package/dist/src/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
  264. package/dist/src/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
  265. package/dist/src/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
  266. package/dist/src/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
  267. package/dist/src/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
  268. package/dist/src/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
  269. package/dist/src/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
  270. package/dist/src/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
  271. package/dist/src/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
  272. package/dist/src/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
  273. package/dist/src/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
  274. package/dist/src/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
  275. package/dist/src/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
  276. package/dist/src/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
  277. package/dist/src/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
  278. package/dist/src/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
  279. package/dist/src/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
  280. package/dist/src/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
  281. package/dist/src/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
  282. package/dist/src/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
  283. package/dist/src/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
  284. package/dist/src/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
  285. package/dist/src/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
  286. package/dist/src/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
  287. package/dist/src/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
  288. package/dist/src/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
  289. package/dist/src/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
  290. package/dist/src/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
  291. package/dist/src/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
  292. package/dist/src/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
  293. package/dist/src/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
  294. package/dist/src/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
  295. package/dist/src/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
  296. package/dist/src/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
  297. package/dist/src/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
  298. package/dist/src/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
  299. package/dist/src/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
  300. package/dist/src/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
  301. package/dist/src/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
  302. package/dist/src/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
  303. package/dist/src/charting_library/charting_library.cjs.js +0 -98
  304. package/dist/src/charting_library/charting_library.esm.js +0 -101
  305. package/dist/src/charting_library/charting_library.js +0 -99
  306. package/dist/src/charting_library/charting_library.standalone.js +0 -515
  307. package/dist/src/components/TVChartContainer.js +0 -122
  308. package/dist/src/components/datafeed.js +0 -199
  309. package/dist/src/components/helpers.js +0 -58
  310. package/dist/src/components/index.js +0 -7
  311. package/dist/src/components/streaming.js +0 -92
  312. package/dist/src/index.js +0 -14
@@ -1,320 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __rest = (this && this.__rest) || function (s, e) {
11
- var t = {};
12
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
- t[p] = s[p];
14
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
- t[p[i]] = s[p[i]];
18
- }
19
- return t;
20
- };
21
- (window.webpackJsonp = window.webpackJsonp || []).push([["study-template-dialog"], { "+l/S": function (e, t, n) { }, "/KDZ": function (e, t, n) {
22
- "use strict";
23
- n.d(t, "a", (function () { return i; }));
24
- var s = n("q1tI");
25
- class i extends s.PureComponent {
26
- constructor(e) { super(e), this._handleChange = () => { this.forceUpdate(); }, this.state = { query: window.matchMedia(this.props.rule) }; }
27
- componentDidMount() { this._subscribe(this.state.query); }
28
- componentDidUpdate(e, t) { this.state.query !== t.query && (this._unsubscribe(t.query), this._subscribe(this.state.query)); }
29
- componentWillUnmount() { this._unsubscribe(this.state.query); }
30
- render() { return this.props.children(this.state.query.matches); }
31
- static getDerivedStateFromProps(e, t) { return e.rule !== t.query.media ? { query: window.matchMedia(e.rule) } : null; }
32
- _subscribe(e) { e.addListener(this._handleChange); }
33
- _unsubscribe(e) { e.removeListener(this._handleChange); }
34
- }
35
- }, "02pg": function (e, t, n) {
36
- "use strict";
37
- n.d(t, "a", (function () { return a; }));
38
- var s = n("q1tI"), i = n("TSYQ"), o = n("XiJV");
39
- function a(e) { return s.createElement("div", { className: i(o.separator, e.className) }); }
40
- }, "0W35": function (e, t, n) {
41
- "use strict";
42
- var s = n("q1tI"), i = n("17x9");
43
- class o extends s.PureComponent {
44
- constructor() { super(...arguments), this._subscriptions = new Set, this._getName = () => this.props.name, this._getValues = () => this.props.values, this._getOnChange = () => this.props.onChange, this._subscribe = e => { this._subscriptions.add(e); }, this._unsubscribe = e => { this._subscriptions.delete(e); }; }
45
- getChildContext() { return { switchGroupContext: { getName: this._getName, getValues: this._getValues, getOnChange: this._getOnChange, subscribe: this._subscribe, unsubscribe: this._unsubscribe } }; }
46
- render() { return this.props.children; }
47
- componentDidUpdate(e) { this._notify(this._getUpdates(this.props.values, e.values)); }
48
- _notify(e) { this._subscriptions.forEach(t => t(e)); }
49
- _getUpdates(e, t) { return [...t, ...e].filter(n => t.includes(n) ? !e.includes(n) : e.includes(n)); }
50
- }
51
- function a(e) { var t; return (t = class extends s.PureComponent {
52
- constructor() { super(...arguments), this._onChange = e => { this.context.switchGroupContext.getOnChange()(e); }, this._onUpdate = e => { e.includes(this.props.value) && this.forceUpdate(); }; }
53
- componentDidMount() { this.context.switchGroupContext.subscribe(this._onUpdate); }
54
- render() { return s.createElement(e, Object.assign(Object.assign({}, this.props), { name: this._getName(), onChange: this._onChange, checked: this._isChecked() })); }
55
- componentWillUnmount() { this.context.switchGroupContext.unsubscribe(this._onUpdate); }
56
- _getName() { return this.context.switchGroupContext.getName(); }
57
- _isChecked() { return this.context.switchGroupContext.getValues().includes(this.props.value); }
58
- }).contextTypes = { switchGroupContext: i.any.isRequired }, t; }
59
- o.childContextTypes = { switchGroupContext: i.any.isRequired }, n.d(t, "a", (function () { return o; })), n.d(t, "b", (function () { return a; }));
60
- }, "2A9e": function (e) {
61
- e.exports = JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","grouped":"grouped-2NxOpIxM","adjust-position":"adjust-position-2zd-ooQC","first-row":"first-row-11wXF7aC","first-col":"first-col-pbJu53tK","no-corner-top-left":"no-corner-top-left-3ZsS65Fk","no-corner-top-right":"no-corner-top-right-3MYQOwk_","no-corner-bottom-right":"no-corner-bottom-right-3II18BAU","no-corner-bottom-left":"no-corner-bottom-left-3KZuX8tv","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}');
62
- }, "6KyJ": function (e, t, n) {
63
- "use strict";
64
- var s, i = n("q1tI"), o = n("TSYQ"), a = n("K9GE"), r = n("YZ9j");
65
- n("O7m7");
66
- !function (e) { e[e.Initial = 0] = "Initial", e[e.Appear = 1] = "Appear", e[e.Active = 2] = "Active"; }(s || (s = {}));
67
- class l extends i.PureComponent {
68
- constructor(e) { super(e), this._stateChangeTimeout = null, this.state = { state: s.Initial }; }
69
- render() { const { className: e, color: t = "black" } = this.props, n = o(r.item, { [r[t]]: Boolean(t) }); return i.createElement("span", { className: o(r.loader, e, this._getStateClass()) }, i.createElement("span", { className: n }), i.createElement("span", { className: n }), i.createElement("span", { className: n })); }
70
- componentDidMount() { this.setState({ state: s.Appear }), this._stateChangeTimeout = setTimeout(() => { this.setState({ state: s.Active }); }, 2 * a.b); }
71
- componentWillUnmount() { this._stateChangeTimeout && (clearTimeout(this._stateChangeTimeout), this._stateChangeTimeout = null); }
72
- _getStateClass() { switch (this.state.state) {
73
- case s.Initial: return r["loader-initial"];
74
- case s.Appear: return r["loader-appear"];
75
- default: return "";
76
- } }
77
- }
78
- n.d(t, "a", (function () { return l; }));
79
- }, "8NUT": function (e, t, n) { e.exports = { "small-height-breakpoint": "screen and (max-height: 360px)", footer: "footer-KW8170fm", submitButton: "submitButton-KW8170fm", buttons: "buttons-KW8170fm" }; }, "8RO/": function (e, t, n) {
80
- "use strict";
81
- n.d(t, "a", (function () { return i; })), n.d(t, "b", (function () { return o; }));
82
- var s = n("3ClC");
83
- function i(e, t) { return { indicators: e.orderedDataSources(!0).filter(e => Object(s.isStudy)(e) && !Object(s.isESDStudy)(e)).map(e => ({ id: e.metaInfo().id, description: e.title(!0, void 0, !0) })), interval: t }; }
84
- function o(e) { const t = new Map; return e.forEach(e => { const [n, s] = t.get(e.id) || [e.description, 0]; t.set(e.id, [n, s + 1]); }), Array.from(t.values()).map(([e, t]) => `${e}${t > 1 ? " x " + t : ""}`).join(", "); }
85
- }, ASyk: function (e, t, n) { e.exports = { "tablet-normal-breakpoint": "screen and (max-width: 768px)", "small-height-breakpoint": "screen and (max-height: 360px)", "tablet-small-breakpoint": "screen and (max-width: 428px)" }; }, E9Pn: function (e, t, n) { }, F0Qt: function (e) {
86
- e.exports = JSON.parse('{"wrapper":"wrapper-21v50zE8","input":"input-24iGIobO","box":"box-3574HVnv","icon":"icon-2jsUbtec","noOutline":"noOutline-3VoWuntz","intent-danger":"intent-danger-1Sr9dowC","check":"check-382c8Fu1","dot":"dot-3gRd-7Qt"}');
87
- }, FaeL: function (e, t, n) { e.exports = { autocomplete: "autocomplete-2wlTLOUu", caret: "caret-2wlTLOUu", icon: "icon-2wlTLOUu", suggestions: "suggestions-2wlTLOUu", suggestion: "suggestion-2wlTLOUu", noResults: "noResults-2wlTLOUu", selected: "selected-2wlTLOUu", opened: "opened-2wlTLOUu" }; }, IDfV: function (e, t, n) {
88
- "use strict";
89
- n.r(t);
90
- var s, i = n("Eyy1"), o = n("YFKU"), a = n("q1tI"), r = n.n(a), l = n("i8i4"), c = (n("HbRj"), n("TSYQ")), u = n("fV0y"), h = n("ML8+"), d = n("xADF"), p = n("wHCJ"), m = n("RgaO");
91
- !function (e) { e[e.Enter = 13] = "Enter", e[e.Space = 32] = "Space", e[e.Backspace = 8] = "Backspace", e[e.DownArrow = 40] = "DownArrow", e[e.UpArrow = 38] = "UpArrow", e[e.RightArrow = 39] = "RightArrow", e[e.LeftArrow = 37] = "LeftArrow", e[e.Escape = 27] = "Escape", e[e.Tab = 9] = "Tab"; }(s || (s = {}));
92
- var f = n("FaeL");
93
- function b(e, t) { return "" === e || -1 !== t.toLowerCase().indexOf(e.toLowerCase()); }
94
- class g extends a.PureComponent {
95
- constructor(e) {
96
- if (super(e), this._setInputRef = e => { e && (this._inputElement = e, this.props.setupHTMLInput && this.props.setupHTMLInput(e), this._inputElement.addEventListener("keyup", this._handleKeyUpEnter)); }, this._handleCaretClick = () => { this.state.isOpened ? this.props.preventOnFocusOpen && this._focus() : this.props.preventOnFocusOpen ? this._open() : this._focus(); }, this._handleOutsideClick = () => { const { allowUserDefinedValues: e, value: t, onChange: n } = this.props, { queryValue: s } = this.state; e ? n && s !== t && n(s) : this.setState(this._valueToQuery(t)), this._close(); }, this._handleFocus = e => { this.props.preventOnFocusOpen || this._open(), this.props.onFocus && this.props.onFocus(e); }, this._handleChange = e => { const { preventSearchOnEmptyQuery: t, allowUserDefinedValues: n, onChange: s, onSuggestionsOpen: i, onSuggestionsClose: o } = this.props, a = e.currentTarget.value; if (t && "" === a)
97
- this.setState({ queryValue: a, isOpened: !1, active: void 0 }), o && o();
98
- else {
99
- const e = this._suggestions(a), t = Object.keys(e).length > 0;
100
- this.setState({ queryValue: a, isOpened: t, active: n ? void 0 : this._getActiveKeyByValue(a) }), t && i && i();
101
- } n && s && s(a); }, this._handleItemClick = e => { const t = e.currentTarget.id; this.setState({ queryValue: this._source()[t] }), this.props.onChange && this.props.onChange(t), this._close(); }, this._handleKeyDown = e => {
102
- if (-1 === [s.DownArrow, s.UpArrow, s.Enter, s.Escape].indexOf(e.which))
103
- return;
104
- const { allowUserDefinedValues: t, value: n, onChange: i, onSuggestionsOpen: o } = this.props, { active: a, isOpened: r, queryValue: l } = this.state;
105
- r && (e.preventDefault(), e.stopPropagation());
106
- const c = this._suggestions(l);
107
- switch (e.which) {
108
- case s.DownArrow:
109
- case s.UpArrow:
110
- const u = Object.keys(c);
111
- if (!r && u.length && e.which === s.DownArrow) {
112
- this.setState({ isOpened: !0, active: u[0] }), o && o();
113
- break;
114
- }
115
- let h;
116
- if (void 0 === a) {
117
- if (e.which === s.UpArrow) {
118
- this._close();
119
- break;
120
- }
121
- h = 0;
122
- }
123
- else
124
- h = u.indexOf(a) + (e.which === s.UpArrow ? -1 : 1);
125
- h < 0 && (h = 0), h > u.length - 1 && (h = u.length - 1);
126
- const d = u[h];
127
- this.setState({ active: d });
128
- const p = document.getElementById(d);
129
- p && this._scrollIfNotVisible(p, this._suggestionsElement);
130
- break;
131
- case s.Escape:
132
- this._close(), r || this._blur();
133
- break;
134
- case s.Enter:
135
- let m = a;
136
- t && (r && m ? this.setState(this._valueToQuery(m)) : m = l), void 0 !== m && (this._close(), r || this._blur(), m !== n ? i && i(m) : this.setState(this._valueToQuery(m)));
137
- }
138
- }, this._setSuggestionsRef = e => { e && (this._suggestionsElement = e); }, this._scrollIfNotVisible = (e, t) => { const n = t.scrollTop, s = t.scrollTop + t.clientHeight, i = e.offsetTop, o = i + e.clientHeight; i <= n ? e.scrollIntoView(!0) : o >= s && e.scrollIntoView(!1); }, !(e => Array.isArray(e.source) || !e.allowUserDefinedValues)(e))
139
- throw new Error("allowUserDefinedProps === true cay only be used if source is array");
140
- this.state = Object.assign({ isOpened: !1, active: e.value }, this._valueToQuery(e.value));
141
- }
142
- UNSAFE_componentWillReceiveProps(e) { const { allowUserDefinedValues: t, value: n } = e; if (n === this.props.value && this.state.isOpened)
143
- return; const s = t ? n : "" === n ? "" : this._source()[n] || this.state.queryValue; this.setState({ queryValue: s, active: n }); }
144
- componentWillUnmount() { this._inputElement && this._inputElement.removeEventListener("keyup", this._handleKeyUpEnter); }
145
- render() { return a.createElement(m.a, { handler: this._handleOutsideClick, click: !0 }, e => a.createElement("div", { className: c(f.autocomplete, { [f.opened]: this.state.isOpened }, "js-dialog-skip-escape"), ref: e }, a.createElement(p.a, { name: this.props.name, endSlot: Object.keys(this._suggestions(this.state.queryValue)).length ? a.createElement(d.b, null, a.createElement("span", { className: f.caret, onClick: this._handleCaretClick }, a.createElement(h.a, { className: f.icon, dropped: this.state.isOpened }))) : void 0, maxLength: this.props.maxLength, reference: this._setInputRef, stretch: !0, placeholder: this.props.placeholder, value: this.state.queryValue, intent: this.props.error ? "danger" : void 0, onChange: this._handleChange, onFocus: this._handleFocus, onBlur: this.props.onBlur, onMouseOver: this.props.onMouseOver, onMouseOut: this.props.onMouseOut, onKeyDown: this._handleKeyDown, autoComplete: "off" }), this._renderSuggestions())); }
146
- _focus() { this._inputElement.focus(); }
147
- _blur() { this._inputElement.blur(); }
148
- _open() { const { onSuggestionsOpen: e } = this.props; this._focus(), this.setState({ isOpened: !0 }), e && e(); }
149
- _close() { const { onSuggestionsClose: e } = this.props; this.setState({ isOpened: !1, active: void 0 }), e && e(); }
150
- _source() { let e = {}; return Array.isArray(this.props.source) ? this.props.source.forEach(t => { e[t] = t; }) : e = this.props.source, e; }
151
- _suggestions(e) { const { filter: t = b } = this.props, n = this._source(), s = {}; return Object.keys(n).filter(s => t(e, n[s])).forEach(e => s[e] = n[e]), s; }
152
- _renderSuggestions() { const e = this._suggestions(this.state.queryValue), t = Object.keys(e).map(t => { const n = c(f.suggestion, { [f.selected]: this.state.active === t }); return a.createElement("li", { id: t, key: t, className: n, onClick: this._handleItemClick }, e[t]); }), n = a.createElement("li", { className: f.noResults }, window.t("No results found")); return !t.length && this.props.noEmptyText ? null : a.createElement("ul", { className: f.suggestions, ref: this._setSuggestionsRef }, t.length ? t : n); }
153
- _handleKeyUpEnter(e) { e.which === s.Enter && e.stopImmediatePropagation(); }
154
- _getActiveKeyByValue(e) { const { filter: t = b } = this.props, n = this._suggestions(e), s = Object.keys(n); for (const i of s)
155
- if (t(e, n[i]))
156
- return i; return s[0]; }
157
- _valueToQuery(e) { return { queryValue: this._source()[e] || "" }; }
158
- }
159
- var v = n("Iivm"), _ = n("ycFu"), w = n("+EG+"), C = n("6KyJ"), S = n("tz2P");
160
- function y(e) { const { isLoading: t } = e; return r.a.createElement("span", { className: t ? S.loading : void 0 }, window.t("Save"), t && r.a.createElement(C.a, { color: "white" })); }
161
- class O extends a.PureComponent {
162
- constructor(e) { super(e), this._dialogRef = a.createRef(), this._manager = null, this._handleSubmit = () => { this.setState({ isLoading: !0 }), this.props.onSubmit(this); }, this.state = { isLoading: !1 }; }
163
- render() { const { isOpened: e, saveDisabled: t, title: n, onClose: s } = this.props; return a.createElement(_.a, { ref: this._dialogRef, onClose: s, onSubmit: this._handleSubmit, onCancel: s, onClickOutside: s, isOpened: e, title: n, dataName: "save-rename-dialog", render: this._renderDialogBody(), defaultActionOnClose: "none", submitButtonText: a.createElement(y, { isLoading: this.state.isLoading }), submitButtonDisabled: t }); }
164
- focus() { Object(i.ensureNotNull)(this._dialogRef.current).focus(); }
165
- manager() { return this._manager; }
166
- submit() { this.props.onSubmit(this); }
167
- close() { this.props.onClose(); }
168
- dropLoading() { this.setState({ isLoading: !1 }); }
169
- _renderDialogBody() { return () => a.createElement(w.b.Consumer, null, e => (this._manager = e, this.props.children)); }
170
- }
171
- var E = n("xJ0h"), x = n("j+m7");
172
- const N = window.t("Template name"), T = window.t("Saved indicators"), k = window.t("Remember Symbol"), A = window.t("Remember Interval");
173
- function L(e) {
174
- const { title: t, saveSymbolHintText: n, saveIntervalHintText: s, indicatorsText: o, source: l, onClose: h, onSubmit: d } = e, [p, m] = Object(a.useState)(""), [f, b] = Object(a.useState)(!1), [_, w] = Object(a.useState)(!1), [C, S] = Object(a.useState)(!1), y = Object(a.useRef)(null), L = Object(a.useRef)(null);
175
- return Object(a.useEffect)(() => { Object(i.ensureNotNull)(L.current).focus(); }, []), r.a.createElement(O, { ref: y, isOpened: !0, saveDisabled: !p, title: t, onClose: h, onSubmit: function (e) { d({ title: p, saveSymbol: f, saveInterval: _ }, e); } }, r.a.createElement("div", { className: c(x.container, C && x.withSuggestions) }, r.a.createElement("div", { className: x.title }, N), r.a.createElement("div", { className: x.autocomplete }, r.a.createElement(g, { maxLength: 64, value: p, onChange: m, onBlur: function () { Object(i.ensureNotNull)(y.current).focus(); }, source: l, allowUserDefinedValues: !0, preventOnFocusOpen: !0, noEmptyText: !0, preventSearchOnEmptyQuery: !0, filter: function (e, t) { return Boolean("" === e || e && -1 !== t.toLowerCase().indexOf(e.toLowerCase())); }, setupHTMLInput: function (e) { L.current = e; }, onSuggestionsOpen: function () { S(!0); }, onSuggestionsClose: function () { S(!1); } })), r.a.createElement("div", { className: x.saveSymbol }, r.a.createElement(u.a, { label: r.a.createElement("span", { className: x.hintLabel }, k, r.a.createElement(v.a, { icon: E, className: c(x.hintMark, "apply-common-tooltip"), title: n })), onChange: function () { b(!f), Object(i.ensureNotNull)(y.current).focus(); }, checked: f })), r.a.createElement("div", { className: x.saveInterval }, r.a.createElement(u.a, { label: r.a.createElement("span", { className: x.hintLabel }, A, r.a.createElement(v.a, { icon: E, className: c(x.hintMark, "apply-common-tooltip"), title: s })), onChange: function () { w(!_), Object(i.ensureNotNull)(y.current).focus(); }, checked: _
176
- })), r.a.createElement("div", { className: x.title }, T), r.a.createElement("div", { className: c(x.indicators, C && x.withSuggestions) }, o)));
177
- }
178
- var D = n("FQhm"), I = n("ZjKI");
179
- class j {
180
- constructor(e) { this._container = document.createElement("div"), this.close = () => { this.unmount(), this._onClose && this._onClose(); }, this.unmount = () => { D.unsubscribe(I.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this.unmount, null), l.unmountComponentAtNode(this._container); }, this._title = e.title, this._saveSymbolHintText = e.saveSymbolHintText, this._saveIntervalHintText = e.saveIntervalHintText, this._indicatorsText = e.indicatorsText, this._source = e.source, this._onSubmit = e.onSubmit, this._onClose = e.onClose, D.subscribe(I.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this.unmount, null); }
181
- mount() { l.render(r.a.createElement(L, { title: this._title, saveSymbolHintText: this._saveSymbolHintText, saveIntervalHintText: this._saveIntervalHintText, indicatorsText: this._indicatorsText, source: this._source, onClose: this.close, onSubmit: this._onSubmit }), this._container); }
182
- destroy() { this.unmount(); }
183
- show() { this.mount(); }
184
- }
185
- var F = n("zUrt"), U = n("fZEr"), P = n("xDuj"), V = n("8RO/");
186
- n.d(t, "StudyTemplateSaver", (function () { return H; }));
187
- const q = Object(o.t)("Save Indicator Template"), M = Object(o.t)("Selecting this option will set the {symbol} symbol on the chart when this template is applied"), B = Object(o.t)("Selecting this option will set the {interval} interval on the chart when this template is applied"), R = Object(o.t)("Study Template '{templateName}' already exists. Do you really want to replace it?");
188
- function K(e, t, n) { const s = () => { F.backend.invalidateStudyTemplatesList(), F.backend.getStudyTemplatesList().then(t); }; F.backend.saveStudyTemplate(e).then(s); }
189
- class H {
190
- constructor(e) { this._dialog = null, this._onSave = e => { this._options.onSave(e), this._close(); }, this._showSaveDialog = () => __awaiter(this, void 0, void 0, function* () { const e = this._controller.model().mainSeries().symbol(), t = this._controller.model().mainSeries().interval(), n = yield this._getActualTemplateList(); yield this._showTemplateSaveRenameDialog(n, e, t); }), this._close = () => { this._dialog && (this._dialog.destroy(), this._dialog = null); }, this._options = e, this._controller = e.controller; }
191
- show() { window.runOrSignIn(this._showSaveDialog, { source: "Study templates save as", sourceMeta: "Chart" }); }
192
- _prepareData(e, t, n) { const s = this._controller.model().studyTemplate(t, n); return { name: e, content: JSON.stringify(s), meta_info: Object(V.a)(this._controller, s.interval) }; }
193
- _doSave(e, t, n) { const { title: s, saveSymbol: i, saveInterval: o } = t; if (!s)
194
- return; const a = n.manager() || void 0, r = this._prepareData(s, i, o); if (e.find(e => e.name === s)) {
195
- const e = e => { e ? K(r, this._onSave) : (n.focus(), n.dropLoading()); };
196
- (function (e, t) { return new Promise(n => Object(U.showConfirm)({ text: R.format({ templateName: e }), onConfirm: ({ dialogClose: e }) => { n(!0), e(); }, onClose: () => n(!1) }, t)); })(s, a).then(e);
197
- }
198
- else {
199
- K(r, this._onSave);
200
- } }
201
- _getActualTemplateList() { return F.backend.invalidateStudyTemplatesList(), F.backend.getStudyTemplatesList(); }
202
- _showTemplateSaveRenameDialog(e, t, n) {
203
- const s = Object(V.a)(this._controller);
204
- (this._dialog = new j({ source: e.map(e => e.name), title: q, saveSymbolHintText: M.format({ symbol: t }),
205
- saveIntervalHintText: B.format({ interval: Object(P.translatedIntervalString)(n) }), indicatorsText: Object(V.b)(s.indicators), onSubmit: (t, n) => this._doSave(e, t, n), onClose: this._close })).show();
206
- }
207
- }
208
- }, ItnF: function (e, t, n) { e.exports = { dialog: "dialog-2cMrvu9r", wrapper: "wrapper-2cMrvu9r", separator: "separator-2cMrvu9r" }; }, "ML8+": function (e, t, n) {
209
- "use strict";
210
- n.d(t, "a", (function () { return l; }));
211
- var s = n("q1tI"), i = n("TSYQ"), o = n("Iivm"), a = n("cvzQ"), r = n("R4+T");
212
- function l(e) { const { dropped: t, className: n } = e; return s.createElement(o.a, { className: i(n, a.icon, { [a.dropped]: t }), icon: r }); }
213
- }, O7m7: function (e, t, n) { }, "P4l+": function (e, t, n) { }, "R4+T": function (e, t) { e.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8" width="16" height="8"><path fill="currentColor" d="M0 1.475l7.396 6.04.596.485.593-.49L16 1.39 14.807 0 7.393 6.122 8.58 6.12 1.186.08z"/></svg>'; }, R5JZ: function (e, t, n) {
214
- "use strict";
215
- function s(e, t, n, s, i) { function o(i) { if (e > i.timeStamp)
216
- return; const o = i.target; void 0 !== n && null !== t && null !== o && o.ownerDocument === s && (t.contains(o) || n(i)); } return i.click && s.addEventListener("click", o, !1), i.mouseDown && s.addEventListener("mousedown", o, !1), i.touchEnd && s.addEventListener("touchend", o, !1), i.touchStart && s.addEventListener("touchstart", o, !1), () => { s.removeEventListener("click", o, !1), s.removeEventListener("mousedown", o, !1), s.removeEventListener("touchend", o, !1), s.removeEventListener("touchstart", o, !1); }; }
217
- n.d(t, "a", (function () { return s; }));
218
- }, XiJV: function (e, t, n) { e.exports = { separator: "separator-3No0pWrk" }; }, YZ9j: function (e) { e.exports = JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}'); }, cvzQ: function (e, t, n) { e.exports = { icon: "icon-19OjtB6A", dropped: "dropped-19OjtB6A" }; }, fV0y: function (e, t, n) {
219
- "use strict";
220
- var s = n("q1tI"), i = n("TSYQ"), o = n("0W35"), a = n("vCF3"), r = n("qibD");
221
- n("E9Pn");
222
- class l extends s.PureComponent {
223
- render() { const _a = this.props, { inputClassName: e, labelClassName: t } = _a, n = __rest(_a, ["inputClassName", "labelClassName"]), o = i(this.props.className, r.checkbox, { [r.reverse]: Boolean(this.props.labelPositionReverse), [r.baseline]: Boolean(this.props.labelAlignBaseline) }), l = i(r.label, t, { [r.disabled]: this.props.disabled }); let c = null; return this.props.label && (c = s.createElement("span", { className: l, title: this.props.title }, this.props.label)), s.createElement("label", { className: o }, s.createElement(a.a, Object.assign(Object.assign({}, n), { className: e })), c); }
224
- }
225
- l.defaultProps = { value: "on" };
226
- Object(o.b)(l);
227
- n.d(t, "a", (function () { return l; }));
228
- }, g89m: function (e, t, n) {
229
- "use strict";
230
- var s = n("q1tI"), i = n.n(s), o = n("Eyy1"), a = n("TSYQ"), r = n.n(a), l = n("/3z9"), c = n("d700"), u = n("WXjp"), h = n("02pg"), d = n("uhCe"), p = n("/KDZ"), m = n("pafz"), f = n("ZjKI"), b = n("FQhm"), g = n("Iivm");
231
- const v = i.a.createContext({ setHideClose: () => { } });
232
- var _ = n("zztK"), w = n("px1m");
233
- function C(e) {
234
- const { title: t, subtitle: n, showCloseIcon: o = !0, onClose: a, renderBefore: l, renderAfter: c, draggable: u, className: h, unsetAlign: d } = e, [p, m] = Object(s.useState)(!1);
235
- return i.a.createElement(v.Provider, { value: { setHideClose: m }
236
- }, i.a.createElement("div", { className: r()(w.container, h, (n || d) && w.unsetAlign) }, l, i.a.createElement("div", { "data-dragg-area": u, className: w.title }, i.a.createElement("div", { className: w.ellipsis }, t), n && i.a.createElement("div", { className: r()(w.ellipsis, w.subtitle) }, n)), c, o && !p && i.a.createElement(g.a, { className: w.close, icon: _, onClick: a, "data-name": "close", "data-role": "button" })));
237
- }
238
- var S = n("ItnF");
239
- n.d(t, "a", (function () { return E; }));
240
- const y = { vertical: 20 }, O = { vertical: 0 };
241
- class E extends i.a.PureComponent {
242
- constructor() { super(...arguments), this._controller = null, this._reference = null, this._renderChildren = (e, t) => (this._controller = e, this.props.render({ requestResize: this._requestResize, centerAndFit: this._centerAndFit, isSmallWidth: t })), this._handleReference = e => this._reference = e, this._handleClose = () => { this.props.onClose(); }, this._handleKeyDown = e => { var t; if (!e.defaultPrevented)
243
- switch (this.props.onKeyDown && this.props.onKeyDown(e), Object(l.hashFromEvent)(e)) {
244
- case 27:
245
- if (e.defaultPrevented)
246
- return;
247
- if (this.props.forceCloseOnEsc && this.props.forceCloseOnEsc())
248
- return void this._handleClose();
249
- const { activeElement: n } = document, s = Object(o.ensureNotNull)(this._reference);
250
- if (null !== n) {
251
- if (e.preventDefault(), "true" === (t = n).getAttribute("data-haspopup") && "true" !== t.getAttribute("data-expanded"))
252
- return void this._handleClose();
253
- if (Object(c.b)(n))
254
- return void s.focus();
255
- if (s.contains(n))
256
- return void this._handleClose();
257
- }
258
- } }, this._requestResize = () => { null !== this._controller && this._controller.recalculateBounds(); }, this._centerAndFit = () => { null !== this._controller && this._controller.centerAndFit(); }; }
259
- componentDidMount() { b.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._handleClose, null); }
260
- componentWillUnmount() { b.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._handleClose, null); }
261
- focus() { Object(o.ensureNotNull)(this._reference).focus(); }
262
- getElement() { return this._reference; }
263
- contains(e) { var t, n; return null !== (n = null === (t = this._reference) || void 0 === t ? void 0 : t.contains(e)) && void 0 !== n && n; }
264
- render() {
265
- const { className: e, headerClassName: t, isOpened: n, title: s, dataName: o, onClickOutside: a, additionalElementPos: l, additionalHeaderElement: c, backdrop: f, shouldForceFocus: b = !0, showSeparator: g, subtitle: v, draggable: _ = !0, fullScreen: w = !1, showCloseIcon: E = !0, rounded: x = !0, isAnimationEnabled: N, growPoint: T, dialogTooltip: k, unsetHeaderAlign: A } = this.props, L = "after" !== l ? c : void 0, D = "after" === l ? c : void 0;
266
- return i.a.createElement(p.a, { rule: d.a.SmallHeight }, l => i.a.createElement(p.a, { rule: d.a.TabletSmall }, c => i.a.createElement(u.a, { rounded: !(c || w) && x, className: r()(S.dialog, e), isOpened: n, reference: this._handleReference, onKeyDown: this._handleKeyDown, onClickOutside: a, onClickBackdrop: a, fullscreen: c || w, guard: l ? O : y, boundByScreen: c || w, shouldForceFocus: b, backdrop: f, draggable: _, isAnimationEnabled: N, growPoint: T, name: this.props.dataName, dialogTooltip: k }, i.a.createElement("div", { className: S.wrapper, "data-name": o, "data-dialog-name": "string" == typeof s ? s : "" }, void 0 !== s && i.a.createElement(C, { draggable: _ && !(c || w), onClose: this._handleClose, renderAfter: D, renderBefore: L, subtitle: v, title: s, showCloseIcon: E, className: t, unsetAlign: A
267
- }), g && i.a.createElement(h.a, { className: S.separator }), i.a.createElement(m.a.Consumer, null, e => this._renderChildren(e, c || w))))));
268
- }
269
- }
270
- }, ijHL: function (e, t, n) {
271
- "use strict";
272
- function s(e) { return o(e, a); }
273
- function i(e) { return o(e, r); }
274
- function o(e, t) { const n = Object.entries(e).filter(t), s = {}; for (const [e, t] of n)
275
- s[e] = t; return s; }
276
- function a(e) { const [t, n] = e; return 0 === t.indexOf("data-") && "string" == typeof n; }
277
- function r(e) { return 0 === e[0].indexOf("aria-"); }
278
- n.d(t, "b", (function () { return s; })), n.d(t, "a", (function () { return i; })), n.d(t, "c", (function () { return o; })), n.d(t, "e", (function () { return a; })), n.d(t, "d", (function () { return r; }));
279
- }, "j+m7": function (e, t, n) { e.exports = { container: "container-1FV_LSwA", withSuggestions: "withSuggestions-1FV_LSwA", title: "title-1FV_LSwA", autocomplete: "autocomplete-1FV_LSwA", saveSymbol: "saveSymbol-1FV_LSwA", saveInterval: "saveInterval-1FV_LSwA", indicators: "indicators-1FV_LSwA", hintLabel: "hintLabel-1FV_LSwA", hintMark: "hintMark-1FV_LSwA" }; }, mwqF: function (e, t, n) {
280
- "use strict";
281
- var s = n("q1tI"), i = n.n(s), o = n("TSYQ"), a = n("wwkJ"), r = n("ZWNO");
282
- function l(e, t) { const { intent: n = "primary", size: s = "m", appearance: i = "default", useFullWidth: a = !1, tabIndex: l = 0, icon: c, className: u, isGrouped: h, cellState: d, disablePositionAdjustment: p = !1 } = t, m = function (e, t) { let n = ""; return 0 !== e && (1 & e && (n = o(n, t["no-corner-top-left"])), 2 & e && (n = o(n, t["no-corner-top-right"])), 4 & e && (n = o(n, t["no-corner-bottom-right"])), 8 & e && (n = o(n, t["no-corner-bottom-left"]))), n; }(Object(r.a)(d), e); return o(u, e.button, e["size-" + s], e["intent-" + n], e["appearance-" + i], a && e["full-width"], -1 === l && e.noOutline, c && "s" !== s && e["with-icon"], m, h && e.grouped, !p && e["adjust-position"], d.isTop && e["first-row"], d.isLeft && e["first-col"]); }
283
- var c = n("2A9e");
284
- n("+l/S");
285
- function u(e) { const { className: t, intent: n, size: r, appearance: u, disabled: h, useFullWidth: d, reference: p, icon: m, children: f, tabIndex: b } = e, g = __rest(e, ["className", "intent", "size", "appearance", "disabled", "useFullWidth", "reference", "icon", "children", "tabIndex"]), { isGrouped: v, cellState: _, disablePositionAdjustment: w } = Object(s.useContext)(a.a), C = l(c, { intent: n, size: r, appearance: u, disabled: h, useFullWidth: d, tabIndex: b, icon: m, isGrouped: v, cellState: _, disablePositionAdjustment: w }); return i.a.createElement("button", Object.assign({ className: o(C, t), disabled: h, ref: p, tabIndex: b }, g), m && "s" !== r && i.a.createElement("span", { className: c.icon }, m), i.a.createElement("span", { className: c.content }, f)); }
286
- n.d(t, "a", (function () { return u; }));
287
- }, px1m: function (e, t, n) { e.exports = { "small-height-breakpoint": "screen and (max-height: 360px)", container: "container-2sL5JydP", unsetAlign: "unsetAlign-2sL5JydP", title: "title-2sL5JydP", subtitle: "subtitle-2sL5JydP", ellipsis: "ellipsis-2sL5JydP", close: "close-2sL5JydP" }; }, qibD: function (e) { e.exports = JSON.parse('{"checkbox":"checkbox-3xZUD-2M","reverse":"reverse-3xeTx96y","label":"label-cyItEVpF","baseline":"baseline-6TXKro4X"}'); }, tUxN: function (e, t) { e.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'; }, tz2P: function (e, t, n) { e.exports = { loading: "loading-20Nb4yny" }; }, uhCe: function (e, t, n) {
288
- "use strict";
289
- n.d(t, "a", (function () { return i; }));
290
- var s = n("ASyk");
291
- const i = {
292
- SmallHeight: s["small-height-breakpoint"], TabletSmall: s["tablet-small-breakpoint"], TabletNormal: s["tablet-normal-breakpoint"]
293
- };
294
- }, vCF3: function (e, t, n) {
295
- "use strict";
296
- n.d(t, "a", (function () { return l; }));
297
- var s = n("q1tI"), i = n("TSYQ"), o = n("Iivm"), a = n("tUxN"), r = n("F0Qt");
298
- n("P4l+");
299
- function l(e) { const t = i(r.box, r["intent-" + e.intent], { [r.check]: !Boolean(e.indeterminate), [r.dot]: Boolean(e.indeterminate), [r.noOutline]: -1 === e.tabIndex }), n = i(r.wrapper, e.className); return s.createElement("span", { className: n, title: e.title }, s.createElement("input", { id: e.id, tabIndex: e.tabIndex, className: r.input, type: "checkbox", name: e.name, checked: e.checked, disabled: e.disabled, value: e.value, autoFocus: e.autoFocus, role: e.role, onChange: function () { e.onChange && e.onChange(e.value); }, ref: e.reference }), s.createElement("span", { className: t }, s.createElement(o.a, { icon: a, className: r.icon }))); }
300
- }, xJ0h: function (e, t) { e.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 8.5h1.5V14"/><circle fill="currentColor" cx="9" cy="5" r="1"/><path stroke="currentColor" d="M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0z"/></svg>'; }, ycFu: function (e, t, n) {
301
- "use strict";
302
- n.d(t, "a", (function () { return d; }));
303
- var s = n("q1tI"), i = n.n(s), o = n("TSYQ"), a = n.n(o), r = n("mwqF"), l = n("Eyy1"), c = (n("YFKU"), n("/3z9")), u = n("g89m"), h = n("8NUT");
304
- class d extends i.a.PureComponent {
305
- constructor() { super(...arguments), this._dialogRef = i.a.createRef(), this._handleClose = () => { const { defaultActionOnClose: e, onSubmit: t, onCancel: n, onClose: s } = this.props; switch (e) {
306
- case "submit":
307
- t();
308
- break;
309
- case "cancel": n();
310
- } s(); }, this._handleCancel = () => { this.props.onCancel(), this.props.onClose(); }, this._handleKeyDown = e => { const { onSubmit: t, submitButtonDisabled: n, submitOnEnterKey: s } = this.props; switch (Object(c.hashFromEvent)(e)) {
311
- case 13: !n && s && (e.preventDefault(), t());
312
- } }; }
313
- render() { const _a = this.props, { render: e, onClose: t, onSubmit: n, onCancel: s, footerLeftRenderer: o, submitButtonText: a, submitButtonDisabled: r, defaultActionOnClose: l, submitOnEnterKey: c } = _a, h = __rest(_a, ["render", "onClose", "onSubmit", "onCancel", "footerLeftRenderer", "submitButtonText", "submitButtonDisabled", "defaultActionOnClose", "submitOnEnterKey"]); return i.a.createElement(u.a, Object.assign(Object.assign({}, h), { ref: this._dialogRef, onKeyDown: this._handleKeyDown, render: this._renderChildren(), onClose: this._handleClose })); }
314
- focus() { Object(l.ensureNotNull)(this._dialogRef.current).focus(); }
315
- _renderChildren() { return e => { const { render: t, footerLeftRenderer: n, additionalButtons: s, submitButtonText: o, submitButtonDisabled: l, onSubmit: c, cancelButtonText: u, showCancelButton: d = !0, submitButtonClassName: p, cancelButtonClassName: m, buttonsWrapperClassName: f } = this.props; return i.a.createElement(i.a.Fragment, null, t(e), i.a.createElement("div", { className: h.footer }, n && n(e.isSmallWidth), i.a.createElement("div", { className: a()(h.buttons, f) }, s, d && i.a.createElement(r.a, { className: m, name: "cancel", appearance: "stroke", onClick: this._handleCancel }, null != u ? u : window.t("Cancel")), i.a.createElement("span", { className: h.submitButton }, i.a.createElement(r.a, { className: p, disabled: l, name: "submit", onClick: c, "data-name": "submit-button" }, null != o ? o : window.t("Ok")))))); }; }
316
- }
317
- d.defaultProps = { defaultActionOnClose: "submit", submitOnEnterKey: !0 };
318
- }, zztK: function (e, t) {
319
- e.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M1 1l15 15m0-15L1 16"/></svg>';
320
- } }]);
@@ -1,123 +0,0 @@
1
- (window.webpackJsonp = window.webpackJsonp || []).push([["symbol-info-dialog-impl"], { "1Z/g": function (e, t, n) {
2
- "use strict";
3
- (function (e, o) {
4
- var r, i = n("PT1i").linking, s = n("+6ja").availableTimezones, c = n("kcTO").PriceFormatter, a = n("e3/o"), u = n("q1tI"), l = n("i8i4"), d = n("ZzxF").SymbolInfoDialog, p = n("5mo2").SessionSpec, f = n("jCNj"), m = n("kcTO").numberToStringWithLeadingZero, b = n("Ialn"), y = n("IWXC").getQuoteSessionInstance, h = n("n5al").createSeriesFormatter, O = n("w3Pp").marketType, D = n("6vtU").getAdditionalSymbolInfoFields, j = [f.MONDAY, f.TUESDAY, f.WEDNESDAY, f.THURSDAY, f.FRIDAY, f.SATURDAY, f.SUNDAY], v = j.reduce((function (t, n) { return t[n < 7 ? n + 1 : 1] = e.weekdaysMin(n), t; }), {});
5
- function w(e) { return !function (e) { return e && e.type && "economic" === e.type; }(e) && !function (e, t) { return e && e.listed_exchange && t.indexOf(e.listed_exchange) >= 0; }(e, ["QUANDL", "BSE_EOD", "NSE_EOD", "LSE_EOD"]); }
6
- function N(e) { return e.minmove2 > 0 && !e.fractional && e.pricescale; }
7
- function E(e) { if (N(e))
8
- return new c(e.pricescale / e.minmove2).format(e.minmove2 / e.pricescale); }
9
- function k(e) { return void 0 === e.minmov || void 0 === e.pricescale ? null : h(e).format(e.minmov / e.pricescale); }
10
- function S(e) { return O(e.type, e.typespecs); }
11
- function g(e) { return e.original_currency_code || e.currency_code || null; }
12
- function A(e, t) { return e(t.original_unit_id || t.unit_id) || null; }
13
- function _(e) { return e && e.type && "futures" === e.type && e.front_contract; }
14
- function M(e) { r || (r = document.createElement("div"), document.body.appendChild(r)), l.render(u.createElement(d, e), r); }
15
- function Y(e) { for (var t = s, n = 0; n < t.length; n++)
16
- if (t[n].id === e)
17
- return t[n].title; return e; }
18
- function T(e) { var t, n = new p("Etc/UTC", e); return (t = n.entries(), j.reduce((function (e, n) { var o = t.filter((function (e) { return e.dayOfWeek() === n; })), r = v[n] + " "; if (0 === o.length)
19
- return e.push(r + window.t("Closed")), e; var i = o.reduce((function (e, t) { var n = t.sessionStartDayOfWeek(), o = t.sessionStartDaysOffset(), r = function (e, t) { for (var n = e + t; n > f.SATURDAY;)
20
- n -= f.SATURDAY; return n; }(n, o === t.sessionEndDaysOffset() ? 0 : o), i = n !== t.dayOfWeek(), s = i && r !== t.dayOfWeek(), c = i ? v[n] : "", a = s ? v[r] : "", u = W(t.start()) + c + "-" + W(t.start() + t.length()) + a; return e.push(u), e; }), []); return e.push(r + i.join(", ")), e; }), [])).join("<br>"); }
21
- function U(e) { return e || "-"; }
22
- function R(e, t) { for (var n = 0, o = 0; o < t.length; o++)
23
- if (void 0 === t[o].getter) {
24
- var r = t[o].propName, i = t[o].altPropName, s = r in e ? r : void 0 !== i && i in e ? i : void 0;
25
- if (void 0 !== s) {
26
- var c = e[s];
27
- t[o].value = (t[o].formatter || U)(c), n++;
28
- }
29
- }
30
- else {
31
- var a = t[o].getter(e);
32
- null !== a && (t[o].value = a), n++;
33
- } return n -= function (e, t) { for (var n = 0, o = 0; o < t.length; o++) {
34
- var r = t[o];
35
- void 0 === r.visibility || r.visibility(e) || (t.splice(o, 1), o--, n++);
36
- } return n; }(e, t); }
37
- function W(e) { for (; e > f.minutesPerDay;)
38
- e -= f.minutesPerDay; var t = e % 60, n = m((e - t) / 60, 2) + ":" + m(t, 2); return b.isRtl() ? b.startWithLTR(n) : n; }
39
- t.showSymbolInfoDialog = function (e, t) {
40
- if (M({ isOpened: !1 }), null == e && (e = i.symbol.value()), null != e) {
41
- e += "";
42
- var n = t && t.symbolInfo, s = [{ title: window.t("Symbol Name"), propName: o.enabled("charting_library_base") ? "name" : "pro_name" }, { title: window.t("Symbol Description"), propName: "description" }, { title: window.t("Symbol Type"), propName: "type", getter: S }, {
43
- title: window.t("Current Contract"), propName: "front_contract", visibility: _
44
- }, { title: window.t("Point Value"), propName: "pointvalue" }, { title: window.t("Exchange"), propName: "exchange" }, { title: window.t("Listed Exchange"), propName: "listed_exchange" }, { title: window.t("Currency"), propName: "currency_code", getter: g, formatter: function (e) { return e || ""; }, defValue: "" }, { title: window.t("Unit"), propName: "unit_id", getter: A.bind(null, t.unitName), visibility: function () { return t.showUnit; }, formatter: function (e) { return e || ""; }, defValue: "" }, { title: window.t("Pip Size"), propName: "pip_size", getter: E, visibility: N }, { title: window.t("Tick Size"), propName: "tick_size", getter: k }, { title: window.t("Sector"), propName: "sector" }, { title: window.t("Industry"), propName: "industry" }, { title: window.t("Timezone"), propName: "timezone", formatter: Y, visibility: w }, { title: window.t("Session"), propName: "session_display", altPropName: "session", formatter: T, visibility: w, setHtml: !0 }], c = D();
45
- if (c && c.length > 0)
46
- for (const e of c)
47
- s.push({ title: e.title, propName: e.propertyName });
48
- var u = 0;
49
- if (n && (u = R(n, s)), u < s.length) {
50
- var d = "symbolinfodialog." + a.guid(), p = y("full");
51
- p.subscribe(d, e, (function (t, n) { R(n.values, s), p.unsubscribe(d, e), M(f); }));
52
- }
53
- var f = { isOpened: !0, onClose: function () { M({ isOpened: !1 }), l.unmountComponentAtNode(r), r = null; }, fields: s };
54
- M(f);
55
- }
56
- };
57
- }).call(this, n("ldgD"), n("Kxc7"));
58
- }, "4nwx": function (e, t, n) {
59
- "use strict";
60
- n.r(t), n.d(t, "monthsFullNames", (function () { return i; })), n.d(t, "monthsShortNames", (function () { return s; })), n.d(t, "weekDaysFullNames", (function () { return c; })), n.d(t, "weekDaysShortNames", (function () { return a; })), n.d(t, "weekDaysMiniNames", (function () { return u; }));
61
- var o = n("YFKU"), r = n("99ZO");
62
- const i = { [r.Months.JANUARY]: Object(o.t)("January"), [r.Months.FEBRUARY]: Object(o.t)("February"), [r.Months.MARCH]: Object(o.t)("March"), [r.Months.APRIL]: Object(o.t)("April"), [r.Months.MAY]: Object(o.t)("May"), [r.Months.JUNE]: Object(o.t)("June"), [r.Months.JULY]: Object(o.t)("July"), [r.Months.AUGUST]: Object(o.t)("August"), [r.Months.SEPTEMBER]: Object(o.t)("September"), [r.Months.OCTOBER]: Object(o.t)("October"), [r.Months.NOVEMBER]: Object(o.t)("November"), [r.Months.DECEMBER]: Object(o.t)("December") }, s = { [r.Months.JANUARY]: Object(o.t)("Jan"), [r.Months.FEBRUARY]: Object(o.t)("Feb"), [r.Months.MARCH]: Object(o.t)("Mar"), [r.Months.APRIL]: Object(o.t)("Apr"), [r.Months.MAY]: Object(o.t)("May", { context: "short" }), [r.Months.JUNE]: Object(o.t)("Jun"), [r.Months.JULY]: Object(o.t)("Jul"), [r.Months.AUGUST]: Object(o.t)("Aug"), [r.Months.SEPTEMBER]: Object(o.t)("Sep"), [r.Months.OCTOBER]: Object(o.t)("Oct"), [r.Months.NOVEMBER]: Object(o.t)("Nov"), [r.Months.DECEMBER]: Object(o.t)("Dec") }, c = { [r.WeekDays.SUNDAY]: Object(o.t)("Sunday"), [r.WeekDays.MONDAY]: Object(o.t)("Monday"), [r.WeekDays.TUESDAY]: Object(o.t)("Tuesday"), [r.WeekDays.WEDNESDAY]: Object(o.t)("Wednesday"), [r.WeekDays.THURSDAY]: Object(o.t)("Thursday"), [r.WeekDays.FRIDAY]: Object(o.t)("Friday"), [r.WeekDays.SATURDAY]: Object(o.t)("Saturday") }, a = { [r.WeekDays.SUNDAY]: Object(o.t)("Sun"), [r.WeekDays.MONDAY]: Object(o.t)("Mon"), [r.WeekDays.TUESDAY]: Object(o.t)("Tue"),
63
- [r.WeekDays.WEDNESDAY]: Object(o.t)("Wed"), [r.WeekDays.THURSDAY]: Object(o.t)("Thu"), [r.WeekDays.FRIDAY]: Object(o.t)("Fri"), [r.WeekDays.SATURDAY]: Object(o.t)("Sat") }, u = { [r.WeekDays.SUNDAY]: Object(o.t)("Su", { context: "day_of_week" }), [r.WeekDays.MONDAY]: Object(o.t)("Mo", { context: "day_of_week" }), [r.WeekDays.TUESDAY]: Object(o.t)("Tu", { context: "day_of_week" }), [r.WeekDays.WEDNESDAY]: Object(o.t)("We", { context: "day_of_week" }), [r.WeekDays.THURSDAY]: Object(o.t)("Th", { context: "day_of_week" }), [r.WeekDays.FRIDAY]: Object(o.t)("Fr", { context: "day_of_week" }), [r.WeekDays.SATURDAY]: Object(o.t)("Sa", { context: "day_of_week" }) };
64
- }, R5JZ: function (e, t, n) {
65
- "use strict";
66
- function o(e, t, n, o, r) { function i(r) { if (e > r.timeStamp)
67
- return; const i = r.target; void 0 !== n && null !== t && null !== i && i.ownerDocument === o && (t.contains(i) || n(r)); } return r.click && o.addEventListener("click", i, !1), r.mouseDown && o.addEventListener("mousedown", i, !1), r.touchEnd && o.addEventListener("touchend", i, !1), r.touchStart && o.addEventListener("touchstart", i, !1), () => { o.removeEventListener("click", i, !1), o.removeEventListener("mousedown", i, !1), o.removeEventListener("touchend", i, !1), o.removeEventListener("touchstart", i, !1); }; }
68
- n.d(t, "a", (function () { return o; }));
69
- }, XYXm: function (e, t, n) { e.exports = { body: "body-2IgbkgW8" }; }, ZzxF: function (e, t, n) {
70
- "use strict";
71
- n.r(t);
72
- n("YFKU");
73
- var o = n("q1tI"), r = n("WXjp"), i = n("TSYQ"), s = n("kgsH"), c = n("uo4K"), a = n("Iivm");
74
- function u(e) { const t = e.hideIcon ? null : o.createElement(a.a, { className: s.close, icon: c, onClick: e.onClose }); return o.createElement("div", { className: i(s.header, e.className), "data-dragg-area": !0, ref: e.reference }, e.children, t); }
75
- n("kQXJ");
76
- var l = n("XYXm");
77
- function d(e) { return o.createElement("div", { className: i(l.body, e.className), ref: e.reference }, e.children); }
78
- n("8Rai"), n("cJj4");
79
- var p = n("ycI/"), f = n("FQhm"), m = n("ZjKI"), b = n("g9Yu");
80
- n.d(t, "SymbolInfoDialog", (function () { return y; }));
81
- class y extends o.PureComponent {
82
- constructor() { super(...arguments), this._close = () => this.props.onClose(); }
83
- componentDidMount() { f.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._close, null); }
84
- componentWillUnmount() { f.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._close, null); }
85
- render() { return o.createElement(r.a, { className: b.popupDialog, isOpened: this.props.isOpened, onClickOutside: this.props.onClose }, o.createElement(u, { onClose: this.props.onClose }, window.t("Symbol Info")), o.createElement(d, null, o.createElement(p.a, { keyCode: 27, handler: this.props.onClose }), o.createElement("div", { className: b.content, "data-symbol-info-dialog-content": !0 }, this._renderFields()))); }
86
- _renderFields() { return this.props.fields ? this.props.fields.map((e, t) => o.createElement("div", { key: e.propName + t.toString(), className: b.row }, o.createElement("div", { className: i(b.column, b.columnTitle) }, o.createElement("span", { className: b.title }, e.title)), o.createElement("div", { className: i(b.column, b.columnValue) }, o.createElement("span", { className: b.value }, function (e) { const t = e.value || e.defValue || "-"; if (e.setHtml)
87
- return o.createElement("span", { dangerouslySetInnerHTML: { __html: t } }); return t; }(e))))) : []; }
88
- }
89
- }, cJj4: function (e, t, n) {
90
- e.exports = {
91
- message: "message-2dEP78zc", error: "error-2dEP78zc"
92
- };
93
- }, g9Yu: function (e, t, n) { e.exports = { popupDialog: "popupDialog-2uQzjNpP", content: "content-2uQzjNpP", row: "row-2uQzjNpP", column: "column-2uQzjNpP", title: "title-2uQzjNpP", value: "value-2uQzjNpP", columnTitle: "columnTitle-2uQzjNpP", columnValue: "columnValue-2uQzjNpP" }; }, ijHL: function (e, t, n) {
94
- "use strict";
95
- function o(e) { return i(e, s); }
96
- function r(e) { return i(e, c); }
97
- function i(e, t) { const n = Object.entries(e).filter(t), o = {}; for (const [e, t] of n)
98
- o[e] = t; return o; }
99
- function s(e) { const [t, n] = e; return 0 === t.indexOf("data-") && "string" == typeof n; }
100
- function c(e) { return 0 === e[0].indexOf("aria-"); }
101
- n.d(t, "b", (function () { return o; })), n.d(t, "a", (function () { return r; })), n.d(t, "c", (function () { return i; })), n.d(t, "e", (function () { return s; })), n.d(t, "d", (function () { return c; }));
102
- }, kQXJ: function (e, t, n) { e.exports = { footer: "footer-16Va6-EJ" }; }, kgsH: function (e, t, n) { e.exports = { header: "header-2ibjJG9Z", close: "close-2ibjJG9Z" }; }, qoI1: function (e, t, n) { var o = { "./en-gb": "Oaa7", "./en-gb.js": "Oaa7", "./es": "iYuL", "./es.js": "iYuL", "./it": "bpih", "./it.js": "bpih", "./ja": "B55N", "./ja.js": "B55N", "./ko": "Ivi+", "./ko.js": "Ivi+", "./pl": "jVdC", "./pl.js": "jVdC", "./pt": "8mBD", "./pt-br": "0tRk", "./pt-br.js": "0tRk", "./pt.js": "8mBD", "./ru": "lXzo", "./ru.js": "lXzo", "./tr": "DoHr", "./tr.js": "DoHr" }; function r(e) { var t = i(e); return n(t); } function i(e) { if (!n.o(o, e)) {
103
- var t = new Error("Cannot find module '" + e + "'");
104
- throw t.code = "MODULE_NOT_FOUND", t;
105
- } return o[e]; } r.keys = function () { return Object.keys(o); }, r.resolve = i, e.exports = r, r.id = "qoI1"; }, uo4K: function (e, t) { e.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="currentColor" d="M5.18 6.6L1.3 2.7.6 2 2 .59l.7.7 3.9 3.9 3.89-3.9.7-.7L12.61 2l-.71.7L8 6.6l3.89 3.89.7.7-1.4 1.42-.71-.71L6.58 8 2.72 11.9l-.71.7-1.41-1.4.7-.71 3.9-3.9z"/></svg>'; }, w3Pp: function (e, t, n) {
106
- "use strict";
107
- n.r(t), n.d(t, "marketType", (function () { return a; }));
108
- var o = n("YFKU");
109
- n("HbRj");
110
- const r = new Map, i = { context: "market_type" }, s = { cfd: Object(o.t)("cfd", i), bitcoin: Object(o.t)("crypto", i), crypto: Object(o.t)("crypto", i), dr: Object(o.t)("dr", i), forex: Object(o.t)("forex", i), futures: Object(o.t)("futures", i), index: Object(o.t)("index", i), stock: Object(o.t)("stock", i) }, c = new Set(["cfd", "spreadbet", "defi"]);
111
- function a(e, t = []) { const n = t.filter(e => c.has(e)), a = `${e}_${n.sort().join("_")}`, u = r.get(a); if (void 0 !== u)
112
- return u; const l = Boolean(t.length) ? Object(o.t)(e, i) + " " + n.join(" ") : s[e] || e; return r.set(a, l), l; }
113
- }, "ycI/": function (e, t, n) {
114
- "use strict";
115
- n.d(t, "a", (function () { return r; }));
116
- var o = n("q1tI");
117
- class r extends o.PureComponent {
118
- constructor() { super(...arguments), this._handleKeyDown = e => { e.keyCode === this.props.keyCode && this.props.handler(e); }; }
119
- componentDidMount() { document.addEventListener(this.props.eventType || "keydown", this._handleKeyDown, !1); }
120
- componentWillUnmount() { document.removeEventListener(this.props.eventType || "keydown", this._handleKeyDown, !1); }
121
- render() { return null; }
122
- }
123
- } }]);
@@ -1,35 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- (window.webpackJsonp = window.webpackJsonp || []).push([["symbol-search-dialog"], { "/KDZ": function (e, t, n) {
13
- "use strict";
14
- n.d(t, "a", (function () { return i; }));
15
- var s = n("q1tI");
16
- class i extends s.PureComponent {
17
- constructor(e) { super(e), this._handleChange = () => { this.forceUpdate(); }, this.state = { query: window.matchMedia(this.props.rule) }; }
18
- componentDidMount() { this._subscribe(this.state.query); }
19
- componentDidUpdate(e, t) { this.state.query !== t.query && (this._unsubscribe(t.query), this._subscribe(this.state.query)); }
20
- componentWillUnmount() { this._unsubscribe(this.state.query); }
21
- render() { return this.props.children(this.state.query.matches); }
22
- static getDerivedStateFromProps(e, t) { return e.rule !== t.query.media ? { query: window.matchMedia(e.rule) } : null; }
23
- _subscribe(e) { e.addListener(this._handleChange); }
24
- _unsubscribe(e) { e.removeListener(this._handleChange); }
25
- }
26
- }, GcSm: function (e, t, n) {
27
- "use strict";
28
- n.r(t);
29
- var s = n("PT1i"), i = (n("8+VR"), n("h24c")), r = n("kNVT"), o = n("p04v"), a = n("mNbo");
30
- n("Kxc7"), n("qFKp");
31
- n.d(t, "showDefaultSearchDialog", (function () { return u; })), n.d(t, "Components", (function () { return c; })), n.d(t, "showSymbolSearchItemsDialog", (function () { return o.a; }));
32
- !Object(a.isOnMobileAppPage)("any") && window.matchMedia("(min-width: 602px) and (min-height: 445px)").matches;
33
- function u(e) { const t = Object(r.getSymbolSearchCompleteOverrideFunction)(), { defaultValue: n, showSpreadActions: a, source: u, onSearchComplete: c } = e, h = __rest(e, ["defaultValue", "showSpreadActions", "source", "onSearchComplete"]), l = Object.assign(Object.assign({}, h), { showSpreadActions: null != a ? a : Object(i.a)(), onSearchComplete: e => { t(e[0].symbol).then(e => { s.linking.symbol.setValue(e), null == c || c(e); }); } }); Object(o.a)(Object.assign(Object.assign({}, l), { defaultValue: n })); }
34
- const c = { SymbolSearchWatchlistDialogContentItem: null, SymbolSearchWatchlistDialog: null };
35
- } }]);
@@ -1,74 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- (window.webpackJsonp = window.webpackJsonp || []).push([["take-chart-image-impl"], { "13es": function (t, e, n) {
11
- "use strict";
12
- n.r(e);
13
- var a = n("txPx"), o = n("Kxc7"), i = n("MbIA"), r = n("8woN"), c = n("qHEz"), s = n("Rdaf"), l = n("QC7+"), d = (n("HbRj"), n("YFKU"), n("wVAQ"));
14
- function p(t, e = {}) { return new Promise((n, a) => { !function (t, e, n, a = {}) {
15
- return __awaiter(this, void 0, void 0, function* () { var i; const r = new FormData; if (void 0 !== a.previews)
16
- for (const t of a.previews)
17
- r.append("previews[]", t); void 0 !== a.cme && r.append("cme", String(a.cme)); void 0 !== a.wl && r.append("wl", String(a.wl)); void 0 !== a.onWidget && r.append("onWidget", String(a.onWidget)); a.isReport && r.append("isReport", String(a.isReport)); a.asyncSave && r.append("asyncSave", String(a.asyncSave)); const c = window.urlParams; c && c.locale && r.append("language", c.locale); const s = t.activeChartWidget.value(), l = s.widgetCustomer(); void 0 !== l && r.append("customer", l); let p = s.properties().childs().timezone.value(); "exchange" === p && (p = (null === (i = s.model().mainSeries().symbolInfo()) || void 0 === i ? void 0 : i.timezone) || p); if (r.append("timezone", p), a.sendClientImage) {
18
- const e = yield t.clientSnapshot(), n = yield new Promise(t => e.toBlob(t));
19
- null !== n && r.append("preparedImage", n);
20
- }
21
- else
22
- r.append("images", JSON.stringify(t.images(), (t, e) => e instanceof HTMLCanvasElement ? null : e)); !function (t, e, n, a = {}) {
23
- return __awaiter(this, void 0, void 0, function* () { const i = o.enabled("charting_library_base") ? a.snapshotUrl || "https://www.tradingview.com/snapshot/" : "/snapshot/"; try {
24
- const a = yield Object(d.fetch)(i, { body: t, method: "POST", credentials: "same-origin" }), o = yield a.text();
25
- a.ok ? e(o) : n();
26
- }
27
- catch (t) {
28
- n();
29
- } });
30
- }(r, e, n, a); });
31
- }(t, n, a, e); }); }
32
- n.d(e, "copyToClipboardImageOfChart", (function () { return m; })), n.d(e, "getImageOfChartSilently", (function () { return h; })), n.d(e, "copyToClipboardClientScreenshot", (function () { return g; })), n.d(e, "downloadClientScreenshot", (function () { return f; }));
33
- const w = Object(a.getLogger)("Platform.TakeChartImage"), u = new i.a({ dateTimeSeparator: "_", timeFormat: "%h-%m-%s" });
34
- function m(t, e) {
35
- return __awaiter(this, void 0, void 0, function* () { const n = p(t, e), a = n.then(t => o.enabled("charting_library_base") && e.snapshotUrl ? t : Object(l.a)(t)), i = a.then(t => new Blob([t], { type: "text/plain" })); try {
36
- return yield Object(c.b)(i, "text/plain"), n;
37
- }
38
- catch (t) {
39
- throw window.open(yield a), t;
40
- } });
41
- }
42
- function h(t, e) {
43
- return __awaiter(this, void 0, void 0, function* () { try {
44
- return yield p(t, e);
45
- }
46
- catch (t) {
47
- throw w.logWarn("Error while trying to create snapshot"), t;
48
- } });
49
- }
50
- function g(t) {
51
- return __awaiter(this, void 0, void 0, function* () { const e = t.clientSnapshot(), n = e.then(t => new Promise(e => t.toBlob(t => { null !== t && e(t); }))); try {
52
- return yield Object(c.b)(n, "image/png");
53
- }
54
- catch (t) {
55
- const n = window.open();
56
- throw n && n.document.write(`<img width="100%" src="${(yield e).toDataURL()}"/>`), t;
57
- } });
58
- }
59
- function f(t) {
60
- return __awaiter(this, void 0, void 0, function* () { const e = t.activeChartWidget.value().model().mainSeries().actualSymbol(), n = `${Object(r.shortName)(e)}_${u.formatLocal(new Date)}`, a = yield t.clientSnapshot(); Object(s.a)(n + ".png", a.toDataURL()); });
61
- }
62
- }, "QC7+": function (t, e, n) {
63
- "use strict";
64
- n.d(e, "a", (function () { return i; }));
65
- var a = n("Kxc7"), o = n("Wt0y");
66
- function i(t) { return a.enabled("charting_library_base") || Object(o.isProd)() ? "https://www.tradingview.com/x/" + t + "/" : window.location.protocol + "//" + window.location.host + "/x/" + t + "/"; }
67
- }, Rdaf: function (t, e, n) {
68
- "use strict";
69
- function a(t, e) {
70
- const n = document.createElement("a");
71
- n.style.display = "none", n.href = e, n.download = t, n.click();
72
- }
73
- n.d(e, "a", (function () { return a; }));
74
- } }]);