binbot-charts 0.7.1 → 0.7.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 (325) hide show
  1. package/package.json +21 -5
  2. package/babel.config.json +0 -13
  3. package/browserslist +0 -31
  4. package/package-lock.json +0 -18327
  5. package/public/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -2
  6. package/public/charting_library/bundles/0579d40b812fa2c3ffe72e5803a6e14c.cur +0 -0
  7. package/public/charting_library/bundles/1.92647ec0a7beb8b2898d.css +0 -0
  8. package/public/charting_library/bundles/1.92647ec0a7beb8b2898d.rtl.css +0 -0
  9. package/public/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
  10. package/public/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -6
  11. package/public/charting_library/bundles/11.8b65dc2e0d8b6e5041c4.css +0 -1
  12. package/public/charting_library/bundles/11.8b65dc2e0d8b6e5041c4.rtl.css +0 -1
  13. package/public/charting_library/bundles/11.df012db70159a159d927.js +0 -1
  14. package/public/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
  15. package/public/charting_library/bundles/12.ef8057448f3a7ae1c3d8.css +0 -1
  16. package/public/charting_library/bundles/12.ef8057448f3a7ae1c3d8.rtl.css +0 -1
  17. package/public/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
  18. package/public/charting_library/bundles/13.9240f13280154f2593b7.css +0 -1
  19. package/public/charting_library/bundles/13.9240f13280154f2593b7.rtl.css +0 -1
  20. package/public/charting_library/bundles/14.8095b40dd1e7deedf401.css +0 -1
  21. package/public/charting_library/bundles/14.8095b40dd1e7deedf401.rtl.css +0 -1
  22. package/public/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
  23. package/public/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -3
  24. package/public/charting_library/bundles/16.680572949c1125757d35.js +0 -1
  25. package/public/charting_library/bundles/16.d567c9db608f3d98d8de.css +0 -1
  26. package/public/charting_library/bundles/16.d567c9db608f3d98d8de.rtl.css +0 -1
  27. package/public/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
  28. package/public/charting_library/bundles/17.ec35a19db935279c5b42.css +0 -1
  29. package/public/charting_library/bundles/17.ec35a19db935279c5b42.rtl.css +0 -1
  30. package/public/charting_library/bundles/18.78de69cfba051874e071.js +0 -4
  31. package/public/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
  32. package/public/charting_library/bundles/19.75c30426f9d3ad5ca0c5.css +0 -1
  33. package/public/charting_library/bundles/19.75c30426f9d3ad5ca0c5.rtl.css +0 -1
  34. package/public/charting_library/bundles/1df47f578aeef40dd1f2328338a133be.png +0 -0
  35. package/public/charting_library/bundles/2.60931787a6734697ac13.js +0 -4
  36. package/public/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -4
  37. package/public/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
  38. package/public/charting_library/bundles/21.8153544955cdc47262e3.css +0 -1
  39. package/public/charting_library/bundles/21.8153544955cdc47262e3.rtl.css +0 -1
  40. package/public/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
  41. package/public/charting_library/bundles/22.da9773799a06c6066d1e.css +0 -1
  42. package/public/charting_library/bundles/22.da9773799a06c6066d1e.rtl.css +0 -1
  43. package/public/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
  44. package/public/charting_library/bundles/23.ee754f50171546186397.css +0 -1
  45. package/public/charting_library/bundles/23.ee754f50171546186397.rtl.css +0 -1
  46. package/public/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
  47. package/public/charting_library/bundles/24.e70c1623e0c74477ef2e.css +0 -1
  48. package/public/charting_library/bundles/24.e70c1623e0c74477ef2e.rtl.css +0 -1
  49. package/public/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -18
  50. package/public/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
  51. package/public/charting_library/bundles/26.69139a843bc1c84f790b.css +0 -1
  52. package/public/charting_library/bundles/26.69139a843bc1c84f790b.rtl.css +0 -1
  53. package/public/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -3
  54. package/public/charting_library/bundles/28.3140e8cb507ad2593c76.css +0 -1
  55. package/public/charting_library/bundles/28.3140e8cb507ad2593c76.rtl.css +0 -1
  56. package/public/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
  57. package/public/charting_library/bundles/29.07af6dca962ea27209f0.css +0 -1
  58. package/public/charting_library/bundles/29.07af6dca962ea27209f0.rtl.css +0 -1
  59. package/public/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
  60. package/public/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
  61. package/public/charting_library/bundles/3.eeb90413029441681f91.css +0 -1
  62. package/public/charting_library/bundles/3.eeb90413029441681f91.rtl.css +0 -1
  63. package/public/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -8
  64. package/public/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -5
  65. package/public/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -4
  66. package/public/charting_library/bundles/3293616ec0c605c7c2db25829a0a509e.woff +0 -0
  67. package/public/charting_library/bundles/33.02ed7df481ae8243d2f2.css +0 -1
  68. package/public/charting_library/bundles/33.02ed7df481ae8243d2f2.rtl.css +0 -1
  69. package/public/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
  70. package/public/charting_library/bundles/34.4b6099931f57311efc1a.css +0 -1
  71. package/public/charting_library/bundles/34.4b6099931f57311efc1a.rtl.css +0 -1
  72. package/public/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
  73. package/public/charting_library/bundles/35.999f0e072062b7369a1a.css +0 -1
  74. package/public/charting_library/bundles/35.999f0e072062b7369a1a.rtl.css +0 -1
  75. package/public/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
  76. package/public/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
  77. package/public/charting_library/bundles/36.f315a19c17d5636af8f7.css +0 -1
  78. package/public/charting_library/bundles/36.f315a19c17d5636af8f7.rtl.css +0 -1
  79. package/public/charting_library/bundles/37.90129e4904155350d6a1.js +0 -8
  80. package/public/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -3
  81. package/public/charting_library/bundles/39.74a7bc3b464cd284827f.css +0 -1
  82. package/public/charting_library/bundles/39.74a7bc3b464cd284827f.rtl.css +0 -1
  83. package/public/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
  84. package/public/charting_library/bundles/4.92647ec0a7beb8b2898d.css +0 -0
  85. package/public/charting_library/bundles/4.92647ec0a7beb8b2898d.rtl.css +0 -0
  86. package/public/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
  87. package/public/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -2
  88. package/public/charting_library/bundles/40566afd832a155e5e370a8bd423de4b.svg +0 -1
  89. package/public/charting_library/bundles/40f9a03d174178efb12303caa9bc7cd8.woff2 +0 -0
  90. package/public/charting_library/bundles/41.8fa0fb0bd4ad0241ef2f.css +0 -1
  91. package/public/charting_library/bundles/41.8fa0fb0bd4ad0241ef2f.rtl.css +0 -1
  92. package/public/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
  93. package/public/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
  94. package/public/charting_library/bundles/42.9078fb8f1629e3eee9bd.css +0 -1
  95. package/public/charting_library/bundles/42.9078fb8f1629e3eee9bd.rtl.css +0 -1
  96. package/public/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
  97. package/public/charting_library/bundles/43.8bf90585004742c338c5.css +0 -1
  98. package/public/charting_library/bundles/43.8bf90585004742c338c5.rtl.css +0 -1
  99. package/public/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -25
  100. package/public/charting_library/bundles/45.12a19785e3864bd62a76.css +0 -1
  101. package/public/charting_library/bundles/45.12a19785e3864bd62a76.rtl.css +0 -1
  102. package/public/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
  103. package/public/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -3
  104. package/public/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -4
  105. package/public/charting_library/bundles/48.a3fdb9dd54af71b3bda6.css +0 -1
  106. package/public/charting_library/bundles/48.a3fdb9dd54af71b3bda6.rtl.css +0 -1
  107. package/public/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
  108. package/public/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
  109. package/public/charting_library/bundles/49.d723843c9192493b8c13.css +0 -1
  110. package/public/charting_library/bundles/49.d723843c9192493b8c13.rtl.css +0 -1
  111. package/public/charting_library/bundles/4a9abefd31dab7c8239e02e925aacd78.png +0 -0
  112. package/public/charting_library/bundles/4fafff07d8914dc11f6d335f606ff47c.png +0 -0
  113. package/public/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -3
  114. package/public/charting_library/bundles/50.8d5cba5b90176d3d2e3d.css +0 -1
  115. package/public/charting_library/bundles/50.8d5cba5b90176d3d2e3d.rtl.css +0 -1
  116. package/public/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
  117. package/public/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
  118. package/public/charting_library/bundles/51.300c3df03ca063ec03a0.css +0 -1
  119. package/public/charting_library/bundles/51.300c3df03ca063ec03a0.rtl.css +0 -1
  120. package/public/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
  121. package/public/charting_library/bundles/52.29cec22b3525b47af67e.css +0 -1
  122. package/public/charting_library/bundles/52.29cec22b3525b47af67e.rtl.css +0 -1
  123. package/public/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -12
  124. package/public/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -7
  125. package/public/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -9
  126. package/public/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -4
  127. package/public/charting_library/bundles/57.236996ec416da4c1f683.js +0 -3
  128. package/public/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -3
  129. package/public/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
  130. package/public/charting_library/bundles/59.418f1db161eefae63284.css +0 -1
  131. package/public/charting_library/bundles/59.418f1db161eefae63284.rtl.css +0 -1
  132. package/public/charting_library/bundles/6.2221bb6a5d920bbb4bb2.css +0 -1
  133. package/public/charting_library/bundles/6.2221bb6a5d920bbb4bb2.rtl.css +0 -1
  134. package/public/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
  135. package/public/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
  136. package/public/charting_library/bundles/60.d4583c71cca790a25900.css +0 -1
  137. package/public/charting_library/bundles/60.d4583c71cca790a25900.rtl.css +0 -1
  138. package/public/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -6
  139. package/public/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -3
  140. package/public/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
  141. package/public/charting_library/bundles/63.898a61bf08239711dc74.css +0 -1
  142. package/public/charting_library/bundles/63.898a61bf08239711dc74.rtl.css +0 -1
  143. package/public/charting_library/bundles/64.6f232bdb0fb4cdcc2d7d.css +0 -1
  144. package/public/charting_library/bundles/64.6f232bdb0fb4cdcc2d7d.rtl.css +0 -1
  145. package/public/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
  146. package/public/charting_library/bundles/65.556980fc277562af83c8.css +0 -1
  147. package/public/charting_library/bundles/65.556980fc277562af83c8.rtl.css +0 -1
  148. package/public/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
  149. package/public/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
  150. package/public/charting_library/bundles/66.84b4001b5c622a569dde.css +0 -1
  151. package/public/charting_library/bundles/66.84b4001b5c622a569dde.rtl.css +0 -1
  152. package/public/charting_library/bundles/67.19c83a0c303c290216d2.css +0 -1
  153. package/public/charting_library/bundles/67.19c83a0c303c290216d2.rtl.css +0 -1
  154. package/public/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
  155. package/public/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
  156. package/public/charting_library/bundles/68.fa7424ae9c5fe5483aac.css +0 -1
  157. package/public/charting_library/bundles/68.fa7424ae9c5fe5483aac.rtl.css +0 -1
  158. package/public/charting_library/bundles/69.094b4a764d3dc17820cf.css +0 -1
  159. package/public/charting_library/bundles/69.094b4a764d3dc17820cf.rtl.css +0 -1
  160. package/public/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
  161. package/public/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -3
  162. package/public/charting_library/bundles/70.c27146ec029eda556108.css +0 -1
  163. package/public/charting_library/bundles/70.c27146ec029eda556108.rtl.css +0 -1
  164. package/public/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
  165. package/public/charting_library/bundles/71.15e639d294c4209f256e.css +0 -1
  166. package/public/charting_library/bundles/71.15e639d294c4209f256e.rtl.css +0 -1
  167. package/public/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
  168. package/public/charting_library/bundles/72.07441fd67b864b86147b.css +0 -1
  169. package/public/charting_library/bundles/72.07441fd67b864b86147b.rtl.css +0 -1
  170. package/public/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
  171. package/public/charting_library/bundles/73.6b8b9e5e2c8e2b753cb8.css +0 -1
  172. package/public/charting_library/bundles/73.6b8b9e5e2c8e2b753cb8.rtl.css +0 -1
  173. package/public/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
  174. package/public/charting_library/bundles/7393f661fc7d4389ea6d4dabd2a5aeea.png +0 -0
  175. package/public/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
  176. package/public/charting_library/bundles/74.8c591c252b2e7ad8f744.css +0 -1
  177. package/public/charting_library/bundles/74.8c591c252b2e7ad8f744.rtl.css +0 -1
  178. package/public/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
  179. package/public/charting_library/bundles/75.fefbc386c59bf7d4f9f7.css +0 -1
  180. package/public/charting_library/bundles/75.fefbc386c59bf7d4f9f7.rtl.css +0 -1
  181. package/public/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
  182. package/public/charting_library/bundles/76.f14d71a31295d8cd8d8b.css +0 -1
  183. package/public/charting_library/bundles/76.f14d71a31295d8cd8d8b.rtl.css +0 -1
  184. package/public/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
  185. package/public/charting_library/bundles/77.9c35f7046b848fbfd7f5.css +0 -1
  186. package/public/charting_library/bundles/77.9c35f7046b848fbfd7f5.rtl.css +0 -1
  187. package/public/charting_library/bundles/78.0d502ab4d94441708606.css +0 -1
  188. package/public/charting_library/bundles/78.0d502ab4d94441708606.rtl.css +0 -1
  189. package/public/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
  190. package/public/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
  191. package/public/charting_library/bundles/79.b990749a4839f9123f26.css +0 -1
  192. package/public/charting_library/bundles/79.b990749a4839f9123f26.rtl.css +0 -1
  193. package/public/charting_library/bundles/7e0cc5f7d7f5151500dd60b8d6ca60a1.png +0 -0
  194. package/public/charting_library/bundles/8.e66ab8f27911a033604f.css +0 -1
  195. package/public/charting_library/bundles/8.e66ab8f27911a033604f.rtl.css +0 -1
  196. package/public/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
  197. package/public/charting_library/bundles/80.5bdd53d5fc42d40eee28.css +0 -1
  198. package/public/charting_library/bundles/80.5bdd53d5fc42d40eee28.rtl.css +0 -1
  199. package/public/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
  200. package/public/charting_library/bundles/81.552e046aa828739c508b.css +0 -1
  201. package/public/charting_library/bundles/81.552e046aa828739c508b.rtl.css +0 -1
  202. package/public/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
  203. package/public/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
  204. package/public/charting_library/bundles/82.e06fe84c8cdead4bd52e.css +0 -1
  205. package/public/charting_library/bundles/82.e06fe84c8cdead4bd52e.rtl.css +0 -1
  206. package/public/charting_library/bundles/83.e238aa056c5d4827cbdd.css +0 -1
  207. package/public/charting_library/bundles/83.e238aa056c5d4827cbdd.rtl.css +0 -1
  208. package/public/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
  209. package/public/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
  210. package/public/charting_library/bundles/84.bb4fc57627c8626019fd.css +0 -1
  211. package/public/charting_library/bundles/84.bb4fc57627c8626019fd.rtl.css +0 -1
  212. package/public/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
  213. package/public/charting_library/bundles/85.e0ba32bafcab02208901.css +0 -1
  214. package/public/charting_library/bundles/85.e0ba32bafcab02208901.rtl.css +0 -1
  215. package/public/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
  216. package/public/charting_library/bundles/86.9244fc2bcc2370425a15.css +0 -1
  217. package/public/charting_library/bundles/86.9244fc2bcc2370425a15.rtl.css +0 -1
  218. package/public/charting_library/bundles/87.605cbc508223ec27341c.css +0 -1
  219. package/public/charting_library/bundles/87.605cbc508223ec27341c.rtl.css +0 -1
  220. package/public/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
  221. package/public/charting_library/bundles/88.158dd8a18e176936a343.css +0 -1
  222. package/public/charting_library/bundles/88.158dd8a18e176936a343.rtl.css +0 -1
  223. package/public/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
  224. package/public/charting_library/bundles/89.5f142643917701de773b.css +0 -1
  225. package/public/charting_library/bundles/89.5f142643917701de773b.rtl.css +0 -1
  226. package/public/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
  227. package/public/charting_library/bundles/898929f1acdb622689e0fc0c95c8fcd0.png +0 -0
  228. package/public/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
  229. package/public/charting_library/bundles/9.8ab09f93a5113a634119.css +0 -1
  230. package/public/charting_library/bundles/9.8ab09f93a5113a634119.rtl.css +0 -1
  231. package/public/charting_library/bundles/90.877114560c4828a97702.css +0 -1
  232. package/public/charting_library/bundles/90.877114560c4828a97702.rtl.css +0 -1
  233. package/public/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
  234. package/public/charting_library/bundles/91.2142b248a2bb29549a99.css +0 -1
  235. package/public/charting_library/bundles/91.2142b248a2bb29549a99.rtl.css +0 -1
  236. package/public/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
  237. package/public/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
  238. package/public/charting_library/bundles/92.e46f0aa06bcdbddf3831.css +0 -1
  239. package/public/charting_library/bundles/92.e46f0aa06bcdbddf3831.rtl.css +0 -1
  240. package/public/charting_library/bundles/93.17d34ca77a7fc85a24d9.css +0 -1
  241. package/public/charting_library/bundles/93.17d34ca77a7fc85a24d9.rtl.css +0 -1
  242. package/public/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
  243. package/public/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
  244. package/public/charting_library/bundles/94.b204218cb73b576333a1.css +0 -1
  245. package/public/charting_library/bundles/94.b204218cb73b576333a1.rtl.css +0 -1
  246. package/public/charting_library/bundles/95.51244d1c4baf49d08807.css +0 -1
  247. package/public/charting_library/bundles/95.51244d1c4baf49d08807.rtl.css +0 -1
  248. package/public/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
  249. package/public/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
  250. package/public/charting_library/bundles/96.be9ad3d6a7c91501bb55.css +0 -1
  251. package/public/charting_library/bundles/96.be9ad3d6a7c91501bb55.rtl.css +0 -1
  252. package/public/charting_library/bundles/a6506134daec7169f68f563f084a9d41.svg +0 -1
  253. package/public/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -9
  254. package/public/charting_library/bundles/b1a63a011fd92dfb93db6db243bb036c.woff2 +0 -0
  255. package/public/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -2
  256. package/public/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -15
  257. package/public/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -2
  258. package/public/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -2
  259. package/public/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -54
  260. package/public/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -5
  261. package/public/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -4
  262. package/public/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -4
  263. package/public/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -3
  264. package/public/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -13
  265. package/public/charting_library/bundles/ed68e83c16f77203e73dbc4c3a7c7fa1.cur +0 -0
  266. package/public/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -2
  267. package/public/charting_library/bundles/f55394b616ed1ae9462c37daab941d93.png +0 -0
  268. package/public/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -20
  269. package/public/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -3
  270. package/public/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -5
  271. package/public/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -6
  272. package/public/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -14
  273. package/public/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -7
  274. package/public/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -9
  275. package/public/charting_library/bundles/library.579e6e3fd95b660ad833.css +0 -1
  276. package/public/charting_library/bundles/library.579e6e3fd95b660ad833.rtl.css +0 -1
  277. package/public/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -756
  278. package/public/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -29
  279. package/public/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -4
  280. package/public/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -4
  281. package/public/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -102
  282. package/public/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -24
  283. package/public/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -1
  284. package/public/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -17
  285. package/public/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -2
  286. package/public/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -19
  287. package/public/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -58
  288. package/public/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -45
  289. package/public/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -9
  290. package/public/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -27
  291. package/public/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -5
  292. package/public/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -2
  293. package/public/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -1
  294. package/public/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -1
  295. package/public/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -1
  296. package/public/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -6
  297. package/public/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -2
  298. package/public/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -7
  299. package/public/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -5
  300. package/public/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -4
  301. package/public/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -11
  302. package/public/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -4
  303. package/public/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -1
  304. package/public/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -2
  305. package/public/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -42
  306. package/public/charting_library/charting_library.cjs.js +0 -1
  307. package/public/charting_library/charting_library.d.ts +0 -2087
  308. package/public/charting_library/charting_library.esm.js +0 -1
  309. package/public/charting_library/charting_library.js +0 -1
  310. package/public/charting_library/charting_library.standalone.js +0 -1
  311. package/public/charting_library/datafeed-api.d.ts +0 -274
  312. package/public/charting_library/en-tv-chart.f0bc1e45.html +0 -1
  313. package/public/charting_library/package.json +0 -8
  314. package/public/index.html +0 -23
  315. package/src/App.css +0 -26
  316. package/src/App.tsx +0 -89
  317. package/src/charting-library-interfaces.d.ts +0 -36
  318. package/src/datafeed.ts +0 -289
  319. package/src/helpers.ts +0 -53
  320. package/src/index.css +0 -5
  321. package/src/index.tsx +0 -10
  322. package/src/main.tsx +0 -151
  323. package/src/streaming.ts +0 -124
  324. package/tsconfig.json +0 -97
  325. package/tsup.config.ts +0 -10
@@ -1,27 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["restricted-toolset","series-icons-map"],{"+KIV":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"/></svg>'},"1Tx8":function(e,t,a){e.exports={button:"button-mPM2q3lb",withText:"withText-mPM2q3lb",withoutText:"withoutText-mPM2q3lb"}},"1uoO":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M9 8v12h3V8H9zm-1-.502C8 7.223 8.215 7 8.498 7h4.004c.275 0 .498.22.498.498v13.004a.493.493 0 0 1-.498.498H8.498A.496.496 0 0 1 8 20.502V7.498z"/><path d="M10 4h1v3.5h-1z"/><path d="M17 6v6h3V6h-3zm-1-.5c0-.276.215-.5.498-.5h4.004c.275 0 .498.23.498.5v7c0 .276-.215.5-.498.5h-4.004a.503.503 0 0 1-.498-.5v-7z"/><path d="M18 2h1v3.5h-1z"/></svg>'},"23di":function(e,t,a){e.exports={wrap:"wrap-3FnlLKfX",titleWrap:"titleWrap-3FnlLKfX",indicators:"indicators-3FnlLKfX",title:"title-3FnlLKfX",icon:"icon-3FnlLKfX",text:"text-3FnlLKfX",titleTabletSmall:"titleTabletSmall-3FnlLKfX",labelRow:"labelRow-3FnlLKfX",label:"label-3FnlLKfX"}},"2xRE":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M18.293 13l-2.647 2.646.707.708 3.854-3.854-3.854-3.854-.707.708L18.293 12H12.5A5.5 5.5 0 0 0 7 17.5V19h1v-1.5a4.5 4.5 0 0 1 4.5-4.5h5.793z"/></svg>'},"39J6":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("q1tI"),i=a("TSYQ"),s=a.n(i),o=a("6KyJ"),l=a("Oy6E");function r(e){const{className:t}=e;return n.createElement("div",{className:s()(l.spinnerWrap,t)},n.createElement(o.a,null))}},"3j+J":function(e,t,a){e.exports={wrapper:"wrapper-2wbe1KZX",labelRow:"labelRow-2wbe1KZX",label:"label-2wbe1KZX",labelHint:"labelHint-2wbe1KZX",labelOn:"labelOn-2wbe1KZX"}},"4hTN":function(e,t,a){e.exports={value:"value-2y-wa9jT",selected:"selected-2y-wa9jT"}},"4pMH":function(e,t,a){},"5ijr":function(e){e.exports=JSON.parse('{"switcherWrapper":"switcherWrapper-1wFH-_jm","size-small":"size-small-1gT-kZYO","size-large":"size-large-MOSirnj_","intent-select":"intent-select-2kut8F29","switcherThumbWrapper":"switcherThumbWrapper-2u191lDO","input":"input-J7QIcTTo","switcherTrack":"switcherTrack-2XruDVTa","intent-default":"intent-default-3soo5rvS","switcherThumb":"switcherThumb-2yuEucci","focus":"focus-uZMRkCO0"}')},"6KyJ":function(e,t,a){"use strict";var n,i=a("q1tI"),s=a("TSYQ"),o=a("K9GE"),l=a("YZ9j");a("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(n||(n={}));class r extends i.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:n.Initial}}render(){const{className:e,color:t="black"}=this.props,a=s(l.item,{[l[t]]:Boolean(t)});return i.createElement("span",{className:s(l.loader,e,this._getStateClass())},i.createElement("span",{className:a
2
- }),i.createElement("span",{className:a}),i.createElement("span",{className:a}))}componentDidMount(){this.setState({state:n.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:n.Active})},2*o.b)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case n.Initial:return l["loader-initial"];case n.Appear:return l["loader-appear"];default:return""}}}a.d(t,"a",(function(){return r}))},"8RO/":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s}));var n=a("3ClC");function i(e,t){return{indicators:e.orderedDataSources(!0).filter(e=>Object(n.isStudy)(e)&&!Object(n.isESDStudy)(e)).map(e=>({id:e.metaInfo().id,description:e.title(!0,void 0,!0)})),interval:t}}function s(e){const t=new Map;return e.forEach(e=>{const[a,n]=t.get(e.id)||[e.description,0];t.set(e.id,[a,n+1])}),Array.from(t.values()).map(([e,t])=>`${e}${t>1?" x "+t:""}`).join(", ")}},"9NBK":function(e,t,a){e.exports={item:"item-2gtivim-",round:"round-2gtivim-"}},ASyk:function(e,t,a){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)"}},BHQn:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="#1DA1F2" d="M10.28 22.26c7.55 0 11.68-6.26 11.68-11.67v-.53c.8-.58 1.49-1.3 2.04-2.13-.74.33-1.53.54-2.36.65.85-.5 1.5-1.32 1.8-2.28-.78.48-1.66.81-2.6 1a4.1 4.1 0 00-7 3.74c-3.4-.17-6.43-1.8-8.46-4.29a4.1 4.1 0 001.28 5.48c-.68-.02-1.3-.2-1.86-.5v.05a4.11 4.11 0 003.29 4.02 4 4 0 01-1.85.08 4.1 4.1 0 003.83 2.85A8.23 8.23 0 014 20.43a11.67 11.67 0 006.28 1.83z"/></svg>'},CGkO:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M19 15l2.5-2.5c1-1 1.5-3.5-.5-5.5s-4.5-1.5-5.5-.5L13 9M10 12l-2.5 2.5c-1 1-1.5 3.5.5 5.5s4.5 1.5 5.5.5L16 18M17 11l-5 5"/></svg>'},CX26:function(e,t,a){e.exports={form:"form-9dAINdeN",interacting:"interacting-9dAINdeN",input:"input-9dAINdeN",menu:"menu-9dAINdeN",add:"add-9dAINdeN",hovered:"hovered-9dAINdeN",hover:"hover-9dAINdeN",wrap:"wrap-9dAINdeN"}},EsZh:function(e,t,a){"use strict";a.r(t),a.d(t,"SERIES_ICONS",(function(){return d}));var n=a("G2sT"),i=a("Jtxf"),s=a("pqsj"),o=a("1uoO"),l=a("FO3N"),r=a("t2Sj"),c=a("fD7T"),h=a("VgwI");const d={3:n,0:i,1:s,8:o,9:l,2:r,10:c,12:h}},EvtC:function(e,t,a){e.exports={button:"button-2YcRd2gv"}},FO3N:function(e,t){
3
- e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v11h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v5h-1zm0 14h1v5h-1zM8.5 9H10v1H8.5zM11 9h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11z"/></svg>'},G2sT:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M12.5 17.207L18.707 11h2l3.647-3.646-.708-.708L20.293 10h-2L12.5 15.793l-3-3-4.854 4.853.708.708L9.5 14.207z"/><path d="M9 16h1v1H9zm1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-3-3h1v1H8zm-1 1h1v1H7zm-1 1h1v1H6zm2 0h1v1H8zm-1 1h1v1H7zm-2 0h1v1H5zm17-9h1v1h-1zm1-1h1v1h-1zm0 2h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-5-7h1v1h-1zm2 0h1v1h-1zm1-1h1v1h-1zm-2 2h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-2-6h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-3-3h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1z"/></svg>'},GgvM:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path d="M21 7v4h1V6h-5v1z"/><path d="M16.854 11.854l5-5-.708-.708-5 5zM7 7v4H6V6h5v1z"/><path d="M11.146 11.854l-5-5 .708-.708 5 5zM21 21v-4h1v5h-5v-1z"/><path d="M16.854 16.146l5 5-.708.708-5-5z"/><g><path d="M7 21v-4H6v5h5v-1z"/><path d="M11.146 16.146l-5 5 .708.708 5-5z"/></g></g></svg>'},HBiQ:function(e,t,a){e.exports={button:"button-2eVMAgh-",first:"first-2eVMAgh-",last:"last-2eVMAgh-"}},Jtxf:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor" stroke-linecap="square"><path d="M10.5 7.5v15M7.5 20.5H10M13.5 11.5H11M19.5 6.5v15M16.5 9.5H19M22.5 16.5H20"/></g></svg>'},MB0Y:function(e,t,a){"use strict";var n=a("q1tI"),i=a.n(n),s=a("TSYQ"),o=a.n(s),l=a("5ijr");a("4pMH");function r(e){const{className:t="",intent:a="default",size:n="small",disabled:i}=e;return s(t,l.switcherWrapper,l["size-"+n],!i&&l["intent-"+a])}class c extends n.PureComponent{render(){const{reference:e,size:t,intent:a,...i}=this.props,o=s(l.input,-1!==this.props.tabIndex&&l.focus);return n.createElement("div",{className:r(this.props)},n.createElement("input",{...i,type:"checkbox",className:o,ref:e}),n.createElement("div",{className:l.switcherThumbWrapper},n.createElement("div",{className:l.switcherTrack}),n.createElement("div",{
4
- className:l.switcherThumb})))}}var h=a("ijHL"),d=a("OP2o");a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return m}));const u=d;function m(e){const{className:t,checked:a,id:n,label:s,labelDescription:l,value:r,preventLabelHighlight:u,reference:m,switchReference:v,theme:p=d,disabled:b}=e,g=o()(p.label,a&&!u&&p.labelOn),S=o()(t,p.wrapper,a&&p.wrapperWithOnLabel);return i.a.createElement("label",{className:S,htmlFor:n,ref:m},i.a.createElement("div",{className:p.labelRow},i.a.createElement("div",{className:g},s),l&&i.a.createElement("div",{className:p.labelHint},l)),i.a.createElement(c,{disabled:b,className:p.switch,reference:v,checked:a,onChange:function(t){const a=t.target.checked;void 0!==e.onChange&&e.onChange(a)},value:r,tabIndex:-1,id:n,...Object(h.b)(e)}))}},NQJD:function(e,t,a){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-NklSvNSQ",withIcon:"withIcon-NklSvNSQ",shortcut:"shortcut-NklSvNSQ",loading:"loading-NklSvNSQ",icon:"icon-NklSvNSQ"}},O7m7:function(e,t,a){},OP2o:function(e,t,a){e.exports={wrapper:"wrapper-1Eudat6L",hovered:"hovered-1Eudat6L",labelRow:"labelRow-1Eudat6L",label:"label-1Eudat6L",labelHint:"labelHint-1Eudat6L",labelOn:"labelOn-1Eudat6L"}},Owyg:function(e,t,a){e.exports={hidden:"hidden-y5m62lMJ"}},Oy6E:function(e,t,a){e.exports={spinnerWrap:"spinnerWrap-1dkAsm33"}},"PR+g":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("q1tI");const i=()=>{const e=Object(n.useRef)(!1);return Object(n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},Q6PN:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M8.5 6A2.5 2.5 0 0 0 6 8.5v11A2.5 2.5 0 0 0 8.5 22h11a2.5 2.5 0 0 0 2.5-2.5v-3h-1v3c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 19.5v-11C7 7.67 7.67 7 8.5 7h3V6h-3zm7 1h4.8l-7.49 7.48.71.7L21 7.72v4.79h1V6h-6.5v1z"/></svg>'},"QC7+":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a("Kxc7"),i=a("Wt0y");function s(e){return n.enabled("charting_library_base")||Object(i.isProd)()?"https://www.tradingview.com/x/"+e+"/":window.location.protocol+"//"+window.location.host+"/x/"+e+"/"}},"QOH/":function(e,t,a){e.exports={button:"button-1n0tF4SR",text:"text-1n0tF4SR",uppercase:"uppercase-1n0tF4SR"}},RGo6:function(e,t,a){e.exports={opened:"opened-90gXp5JL",hover:"hover-90gXp5JL",autoSaveWrapper:"autoSaveWrapper-90gXp5JL",sharingWrapper:"sharingWrapper-90gXp5JL",button:"button-90gXp5JL",buttonSmallPadding:"buttonSmallPadding-90gXp5JL",hintPlaceHolder:"hintPlaceHolder-90gXp5JL",smallHintPlaceHolder:"smallHintPlaceHolder-90gXp5JL",popupItemRowTabletSmall:"popupItemRowTabletSmall-90gXp5JL",shortcut:"shortcut-90gXp5JL"}},RYBj:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M13.5 6a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM4 14.5a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0z"/><path fill="currentColor" d="M9 14h4v-4h1v4h4v1h-4v4h-1v-4H9v-1z"/></svg>'},Rdaf:function(e,t,a){
5
- "use strict";function n(e,t){const a=document.createElement("a");a.style.display="none",a.href=t,a.download=e,a.click()}a.d(t,"a",(function(){return n}))},"S+Ii":function(e,t,a){e.exports={buttonUndo:"buttonUndo-nGqa616C",buttonRedo:"buttonRedo-nGqa616C"}},S0BX:function(e,t,a){e.exports={dropdown:"dropdown-3UuXmxSn",label:"label-3UuXmxSn",smallWidthTitle:"smallWidthTitle-3UuXmxSn",smallWidthMenuItem:"smallWidthMenuItem-3UuXmxSn",smallWidthWrapper:"smallWidthWrapper-3UuXmxSn"}},SchQ:function(e,t,a){e.exports={button:"button-2DZWpSVr",isDisabled:"isDisabled-2DZWpSVr",text:"text-2DZWpSVr"}},Sl3V:function(e,t,a){e.exports={menu:"menu-N-Iyk8ip",menuSmallTablet:"menuSmallTablet-N-Iyk8ip",menuItemHeaderTabletSmall:"menuItemHeaderTabletSmall-N-Iyk8ip",menuItemHeader:"menuItemHeader-N-Iyk8ip"}},To8B:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},UJ4t:function(e,t,a){e.exports={wrap:"wrap-3jbioG5e"}},VgwI:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M7.5 7H7v14h5V7H7.5zM8 20V8h3v12H8zm7.5-11H15v10h5V9h-4.5zm.5 9v-8h3v8h-3z"/></svg>'},XWsk:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M20 17l-5 5M15 17l5 5M9 11.5h7M17.5 8a2.5 2.5 0 0 0-5 0v11a2.5 2.5 0 0 1-5 0"/></svg>'},XfUw: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="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},YEs3:function(e,t,a){e.exports={button:"button-3HNCAKoZ",menu:"menu-3HNCAKoZ"}},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"}')},aVq2:function(e,t,a){e.exports={button:"button-2R6OKuTS",first:"first-2R6OKuTS",last:"last-2R6OKuTS",menu:"menu-2R6OKuTS",dropdown:"dropdown-2R6OKuTS",menuContent:"menuContent-2R6OKuTS",section:"section-2R6OKuTS",smallTabletSectionTitle:"smallTabletSectionTitle-2R6OKuTS",addCustomInterval:"addCustomInterval-2R6OKuTS",hovered:"hovered-2R6OKuTS"}},cSDC:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("YFKU");const i=[{name:"1",label:Object(n.t)("minutes",{context:"interval"})},{name:"1H",label:Object(n.t)("hours",{context:"interval"})},{name:"1D",label:Object(n.t)("days",{context:"interval"})},{name:"1W",label:Object(n.t)("weeks",{context:"interval"})},{name:"1M",label:Object(n.t)("months",{
6
- context:"interval"})}]},cwLw:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("q1tI"),i=a.n(n),s=a("TSYQ"),o=a.n(s),l=a("ML8+"),r=a("fioS");function c(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:o()(e.className,r.summary),onClick:function(){e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,i.a.createElement(l.a,{className:r.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},fD7T:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor"><path stroke-dasharray="1,1" d="M4 14.5h22"/><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 12.5l2-4 1 2 2-4 3 6"/><path stroke-linecap="round" d="M5.5 16.5l-1 2"/><path stroke-linecap="round" stroke-linejoin="round" d="M17.5 16.5l2 4 2-4m2-4l1-2-1 2z"/></g></svg>'},fESK:function(e,t,a){e.exports={labelRow:"labelRow-2noQNU_F",toolbox:"toolbox-2noQNU_F",description:"description-2noQNU_F",descriptionTabletSmall:"descriptionTabletSmall-2noQNU_F",item:"item-2noQNU_F",titleItem:"titleItem-2noQNU_F",titleItemTabletSmall:"titleItemTabletSmall-2noQNU_F",itemTabletSmall:"itemTabletSmall-2noQNU_F",itemLabelTabletSmall:"itemLabelTabletSmall-2noQNU_F",wrap:"wrap-2noQNU_F",hovered:"hovered-2noQNU_F"}},fEjm:function(e,t,a){e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},fioS:function(e,t,a){e.exports={summary:"summary-3UYGeClB",hovered:"hovered-3UYGeClB",caret:"caret-3UYGeClB"}},gla1:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("q1tI");const i=()=>{const[,e]=Object(n.useReducer)((e,t)=>e+1,0);return e}},"i/MG":function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));a("YFKU");var n=a("q1tI"),i=a("TSYQ"),s=a("Iivm"),o=a("To8B"),l=a("kXJy");const r={remove:window.t("Remove")};function c(e){const{className:t,isActive:a,onClick:c,title:h,hidden:d,"data-name":u="remove-button",...m}=e;return n.createElement(s.a,{...m,"data-name":u,className:i(l.button,"apply-common-tooltip",a&&l.active,d&&l.hidden,t),icon:o,onClick:c,title:h||r.remove})}},jKyl:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none"><path stroke="currentColor" d="M11 20.5H7.5a5 5 0 1 1 .42-9.98 7.5 7.5 0 0 1 14.57 2.1 4 4 0 0 1-1 7.877H18"/><path stroke="currentColor" d="M14.5 24V12.5M11 16l3.5-3.5L18 16"/></g></svg>'},kXJy:function(e,t,a){e.exports={button:"button-3B9fDLtm",disabled:"disabled-3B9fDLtm",active:"active-3B9fDLtm",hidden:"hidden-3B9fDLtm"}},"koZ+":function(e,t){
7
- e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.118 6a.5.5 0 0 0-.447.276L9.809 8H5.5A1.5 1.5 0 0 0 4 9.5v10A1.5 1.5 0 0 0 5.5 21h16a1.5 1.5 0 0 0 1.5-1.5v-10A1.5 1.5 0 0 0 21.5 8h-4.309l-.862-1.724A.5.5 0 0 0 15.882 6h-4.764zm-1.342-.17A1.5 1.5 0 0 1 11.118 5h4.764a1.5 1.5 0 0 1 1.342.83L17.809 7H21.5A2.5 2.5 0 0 1 24 9.5v10a2.5 2.5 0 0 1-2.5 2.5h-16A2.5 2.5 0 0 1 3 19.5v-10A2.5 2.5 0 0 1 5.5 7h3.691l.585-1.17z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 18a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm0 1a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9z"/></svg>'},lAXe:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" width="21" height="21"><g fill="none" stroke="currentColor"><path d="M18.5 11v5.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2H9"/><path stroke-linecap="square" d="M18 2l-8.5 8.5m4-9h5v5"/></g></svg>'},miV2:function(e,t,a){"use strict";a.r(t);var n=a("Kxc7"),i=a("q1tI"),s=a.n(i),o=a("17x9"),l=a("dfhE"),r=a("EsZh"),c=a("pr86"),h=a("Iivm"),d=a("N5tr"),u=a("82wv"),m=a("TSYQ"),v=a.n(m),p=a("UJ4t");class b extends i.PureComponent{render(){const{children:e,className:t,...a}=this.props;return i.createElement("div",{className:m(t,p.wrap),...a},e)}}var g=a("tU7i"),S=a("ijHL"),w=a("HBiQ");class C extends i.PureComponent{constructor(){super(...arguments),this._handleClick=()=>{const{onClick:e,onClickArg:t}=this.props;e&&e(t)}}render(){const{isFirst:e,isLast:t,hint:a,text:n,icon:s,isActive:o,isDisabled:l,className:r}=this.props,c=Object(S.b)(this.props);return i.createElement(g.b,{...c,icon:s,text:n,title:a,isDisabled:l,isActive:o,isGrouped:!0,onClick:this._handleClick,className:m(r,w.button,{[w.first]:e,[w.last]:t})})}}var f=a("KKsp"),_=a("/KDZ"),y=a("uhCe"),k=a("dhVi"),x=a("1TxM"),E=a("YEs3");const O={0:window.t("Bars"),1:window.t("Candles"),9:window.t("Hollow Candles"),8:window.t("Heikin Ashi"),2:window.t("Line"),3:window.t("Area"),10:window.t("Baseline"),12:window.t("High-Low")};const M={barsStyle:window.t("Bar's Style"),labels:O},T=Object(x.b)();class N extends i.PureComponent{constructor(e,t){super(e,t),this._handleChangeStyle=e=>{const{favorites:t,lastSelectedNotFavorite:a,activeStyle:n}=this.state;this.setState({activeStyle:e,lastSelectedNotFavorite:t.includes(n)?a:n})},this._handleSelectStyle=e=>{const{chartWidgetCollection:t}=this.context;e!==t.activeChartStyle.value()&&t.setChartStyleToWidget(e)},this._handleClickFavorite=e=>{this._isStyleFavorited(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired,favoriteChartStylesService:o.any.isRequired});const{chartWidgetCollection:a,favoriteChartStylesService:i}=t,s=a.activeChartStyle.value(),l=i.get();n.enabled("japanese_chart_styles"),this.state={activeStyle:s,favorites:l,styles:[0,1,9,2,3,10],japaneseStyles:[8]};n.enabled("chart_style_hilo")&&this.state.styles.push(12)}componentDidMount(){const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context
8
- ;e.activeChartStyle.subscribe(this._handleChangeStyle),t.getOnChange().subscribe(this,this._handleChangeSettings)}componentWillUnmount(){const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context;e.activeChartStyle.unsubscribe(this._handleChangeStyle),t.getOnChange().unsubscribe(this,this._handleChangeSettings)}render(){const{isShownQuicks:e,displayMode:t="full",id:a}=this.props,{activeStyle:n,favorites:s,styles:o,japaneseStyles:c,lastSelectedNotFavorite:d}=this.state,m="small"!==t&&e&&0!==s.length,v=[...s];v.includes(n)?void 0!==d&&v.push(d):v.push(n);const p=m&&v.length>1;return i.createElement(_.a,{rule:y.a.TabletSmall},e=>{const t=o.map(t=>this._renderPopupMenuItem(t,t===n,e)),s=c.map(t=>this._renderPopupMenuItem(t,t===n,e));return i.createElement(b,{id:a},p&&v.map((e,t)=>i.createElement(C,{className:E.button,icon:r.SERIES_ICONS[e],isActive:m&&n===e,key:t,hint:M.labels[e],isFirst:0===t,isLast:t===v.length-1,onClick:m?this._handleSelectStyle:void 0,onClickArg:e,"data-value":l.STYLE_SHORT_NAMES[e]})),i.createElement(u.a,{arrow:Boolean(p),content:p?void 0:i.createElement(b,null,i.createElement(h.a,{icon:r.SERIES_ICONS[n]})),title:p?M.barsStyle:M.labels[n],className:E.menu,isDrawer:e},t,!!s.length&&i.createElement(f.a,null),s))})}_renderPopupMenuItem(e,t,a){const{isFavoritingAllowed:n}=this.props,s=this._isStyleFavorited(e);return i.createElement(d.b,{key:e,theme:a?k.a:void 0,icon:r.SERIES_ICONS[e],isActive:t,label:M.labels[e]||"",onClick:this._handleSelectStyle,onClickArg:e,showToolboxOnHover:!s,toolbox:n&&i.createElement(c.a,{isActive:t,isFilled:s,onClick:()=>this._handleClickFavorite(e)}),"data-value":l.STYLE_SHORT_NAMES[e]})}_handleChangeSettings(e){this.setState({lastSelectedNotFavorite:void 0,favorites:e})}_isStyleFavorited(e){return-1!==this.state.favorites.indexOf(e)}_handleAddFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set([...t,e])}_handleRemoveFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set(t.filter(t=>t!==e))}}N.contextType=T;var R=a("YFKU"),I=a("1Tx8");const A=["medium","small"];function j(e){const{text:t,className:a,displayMode:n,collapseWhen:s=A,...o}=e,l=!s.includes(n);return i.createElement(g.b,{...o,text:l?t:void 0,className:m(a,I.button,l?I.withText:I.withoutText)})}var F=a("JWMC"),H=a("RYBj");const z={compare:window.t("Compare"),compareOrAddSymbol:window.t("Compare or Add Symbol")},L=Object(x.b)();class W extends i.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({isActive:e})},this._handleClick=()=>{var e;Object(F.trackEvent)("GUI","Chart Header Toolbar","compare"),null===(e=this._compareDialogRenderer)||void 0===e||e.show()},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired}),this.state={isActive:!1},this._compareDialogRenderer=this.context.chartWidgetCollection.getCompareDialogRenderer()}componentDidMount(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().subscribe(this._updateState)}componentWillUnmount(){var e
9
- ;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().unsubscribe(this._updateState)}render(){const{isActive:e}=this.state;return i.createElement(j,{...this.props,icon:H,isOpened:e,onClick:this._handleClick,text:z.compare,title:z.compareOrAddSymbol})}}W.contextType=L;var D=a("p0W+"),P=a("GgvM");const U={hint:window.t("Fullscreen mode")},V=Object(x.b)();class B extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context;e.startFullscreen()},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(D.a,{id:t,icon:P,onClick:this._handleClick,title:U.hint,className:m(e)})}}B.contextType=V;var K=a("Eyy1"),Q=a("/DW5"),G=a("txPx");const X=Object(G.getLogger)("FavoritesInfo");function q(e,t){if(0===e.length)return Promise.resolve([]);X.logNormal("Requesting favorites info");const a=[],n=new Map,i=new Map,s=new Map;return e.forEach(e=>{switch(e.type){case"java":s.set(e.studyId,e);break;case"pine":isPublishedPineId(e.pineId)?n.set(e.pineId,e):i.set(e.pineId,e);break;default:Object(K.assert)(!1,"unknown favorite type "+JSON.stringify(e))}}),0!==s.size&&a.push(t.findAllJavaStudies().then(e=>{const t=new Map;for(const a of e)!a.is_hidden_study&&s.has(a.id)&&t.set(a.id,{name:a.description,localizedName:a.description_localized,studyMarketShittyObject:a});return t}).then(e=>{const t=function(e,t){const a={items:[],notFoundItems:[]};return e.forEach((e,n)=>{const i=t.get(n);void 0!==i?a.items.push({item:e,info:i}):a.notFoundItems.push(e)}),a}(s,e);if(0!==t.notFoundItems.length){const e=t.notFoundItems.map(e=>e.studyId);X.logWarn("Cannot find java scripts: "+JSON.stringify(e))}return t.items})),Promise.all(a).then(e=>(X.logNormal("Requesting favorites info finished"),e.reduce((e,t)=>e.concat(t),[])))}var J=a("CW80"),Y=a("mMWL"),Z=a("39J6"),$=a("sHKj");function ee(e){return i.createElement("div",{className:m(e.className,$.title)},e.children)}var te=a("FQhm"),ae=a("XWsk"),ne=a("S0BX");const ie={text:window.t("Indicators"),hint:n.enabled("study_dialog_fundamentals_economy_addons")?window.t("Indicators & Strategies"):window.t("Indicators"),favorites:window.t("Favorites")},se=Object(Q.b)({keys:["/"],text:"{0}"}),oe=Object(x.b)();class le extends s.a.PureComponent{constructor(e,t){super(e,t),this._promise=null,this._menu=s.a.createRef(),this._setActiveState=e=>{this.setState({isActive:e})},this._handleClick=()=>{const{studyMarket:e}=this.props;this.setState({isActive:!0},()=>{e.visible().value()?e.hide():e.show()})},this._handleSelectIndicator=e=>{e=Object(K.ensureDefined)(e);const{chartWidgetCollection:t}=this.context;if("java"===e.type){const t=Object(J.tryFindStudyLineToolNameByStudyId)(e.studyId);if(null!==t)return void Y.tool.setValue(t)}t.activeChartWidget.value().insertStudy(e)},this._handleFavoriteIndicatorsChange=()=>{const{favoriteScriptsModel:e}=this.context,t=[...Object(K.ensureDefined)(e).favorites()];this.setState({favorites:t}),this._clearCache()},this._handleMouseEnter=()=>{
10
- this._prefetchFavorites()},this._handleWrapClick=()=>{this._prefetchFavorites()},this._handleChangeActiveWidget=()=>{this._clearCache()},this._clearCache=()=>{this._promise=null,this.setState({infos:[]})},this._handleScriptRenamed=e=>{const{favoriteScriptsModel:t}=this.context;void 0!==t&&t.isFav(e.scriptIdPart)&&this._clearCache()},Object(x.c)(t,{favoriteScriptsModel:o.any,chartWidgetCollection:o.any.isRequired});const{favoriteScriptsModel:a}=t,n=void 0!==a?a.favorites():[];this.state={isActive:!1,isLoading:!1,favorites:n,infos:[]}}componentDidMount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().subscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().subscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.subscribe(this._handleChangeActiveWidget)),te.on("TVScriptRenamed",this._handleScriptRenamed,null)}componentWillUnmount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().unsubscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().unsubscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.unsubscribe(this._handleChangeActiveWidget)),te.unsubscribe("TVScriptRenamed",this._handleScriptRenamed,null),this._promise=null}render(){const{isActive:e,favorites:t,isLoading:a}=this.state,{className:n,displayMode:i,id:o}=this.props,{chartWidgetCollection:l}=this.context;return s.a.createElement(b,{id:o,onMouseEnter:this._handleMouseEnter,onClick:this._handleWrapClick},s.a.createElement(j,{displayMode:i,className:n,icon:ae,isOpened:e,onClick:this._handleClick,text:ie.text,title:ie.hint,"data-role":"button","data-name":"open-indicators-dialog","data-tooltip-hotkey":se}),t.length>0&&s.a.createElement(_.a,{rule:"screen and (max-width: 428px)"},e=>s.a.createElement(u.a,{key:l.activeChartWidget.value().id(),arrow:!0,closeOnClickOutside:!0,isDrawer:e,drawerPosition:"Bottom",title:ie.favorites,ref:this._menu,"data-name":"show-favorite-indicators"},s.a.createElement("div",{className:v()(ne.dropdown,e&&ne.smallWidthWrapper)},s.a.createElement(ee,{className:e&&ne.smallWidthTitle},window.t("Favorite Indicators")),a&&s.a.createElement(Z.a,null),!a&&s.a.createElement(s.a.Fragment,null,this.state.infos.length>0?this.state.infos.map(t=>s.a.createElement(d.b,{className:v()(e&&ne.smallWidthMenuItem),theme:e?k.a:void 0,key:"java"===t.item.type?t.item.studyId:t.item.pineId,onClick:this._handleSelectIndicator,onClickArg:t.item,label:s.a.createElement("span",{className:v()(!e&&ne.label,e&&ne.smallWidthLabel,"apply-overflow-tooltip")},re(t))})):null!==this._promise&&s.a.createElement(d.b,{isDisabled:!0,label:window.t("You have no Favorites Indicators yet")}))))))}_prefetchFavorites(){const{chartWidgetCollection:e}=this.context;if(null!==this._promise||!window.is_authenticated)return;const t=e.activeChartWidget.value();if(!t.hasModel())return;const a=t.model().model().studyMetaInfoRepository();this.setState({isLoading:!0});const n=this._promise=q(this.state.favorites,a).then(e=>{
11
- if(n!==this._promise)return;e=[...e].sort((e,t)=>re(e).localeCompare(re(t))),this.setState({infos:e,isLoading:!1},()=>{this._menu.current&&this._menu.current.update()})})}}function re(e){return e.info.localizedName||Object(R.t)(e.info.name,{context:"study"})}le.contextType=oe;var ce=a("PT1i"),he=a("pPtI"),de=a("LxhU"),ue=a("4hTN");function me(e){return i.createElement("div",{className:m(ue.value,{[ue.selected]:e.isSelected})},e.value,e.metric)}var ve=a("9dlw"),pe=a("ML8+"),be=a("cSDC"),ge=a("CX26");class Se extends i.PureComponent{constructor(e){super(e),this._timeMenu=null,this._setMenuRef=e=>{this._timeMenu=e},this._handleChangeInput=e=>{const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&this.setState({inputValue:t})},this._handleSelectTime=e=>{this.setState({selectedTime:e}),this._closeMenu()},this._handleClickAdd=()=>{const{inputValue:e,selectedTime:t}=this.state;this.props.onAdd(e,t)},this._toggleMenu=()=>{this.state.isOpenedMenu?this._closeMenu():this._openMenu()},this._closeMenu=()=>{this.props.onCloseMenu(),this.setState({isOpenedMenu:!1})},this._openMenu=()=>{this.props.onOpenMenu(),this.setState({isOpenedMenu:!0})},this._getMenuPosition=()=>{const e=Object(K.ensureNotNull)(this._timeMenu).getBoundingClientRect();return{overrideWidth:e.width,x:e.left,y:e.bottom+1}},this.state={inputValue:"1",isOpenedMenu:!1,selectedTime:be.a[0].name}}render(){const{inputValue:e,isOpenedMenu:t,menuWidth:a,selectedTime:n}=this.state;return i.createElement("div",{className:m(ge.form,{[ge.interacting]:t})},i.createElement("input",{className:ge.input,maxLength:7,onChange:this._handleChangeInput,value:e}),i.createElement("div",{className:ge.menu,onClick:this._toggleMenu,ref:this._setMenuRef},be.a.find(e=>e.name===n).label,i.createElement(pe.a,{dropped:t})),i.createElement("div",{className:ge.add,onClick:this._handleClickAdd},Object(R.t)("Add")),i.createElement(ve.a,{doNotCloseOn:this,isOpened:t,minWidth:a,onClose:this._closeMenu,position:this._getMenuPosition},be.a.map(e=>i.createElement(d.b,{dontClosePopup:!0,key:e.name,label:e.label,onClick:this._handleSelectTime,onClickArg:e.name}))))}}var we=a("i/MG"),Ce=a("8d0Q"),fe=a("8+VR"),_e=a("uPhS");function ye(e){const{interval:t,hint:a,isActive:n,isDisabled:o,isFavorite:l,isSignaling:r,onClick:h,onClickRemove:u,onClickFavorite:m,isSmallTablet:p}=e,b=Object(S.b)(e),[g,w]=Object(Ce.c)(),C=s.a.useCallback(()=>u(t),[u,t]),f=s.a.useCallback(()=>m(t),[m,t]),_=Object(i.useRef)(null);return Object(i.useEffect)(()=>{var e;r&&p&&(null===(e=_.current)||void 0===e||e.scrollIntoView())},[r,p]),s.a.createElement("div",{...w,ref:_},s.a.createElement(d.b,{...b,className:v()(p&&_e.smallWidthMenuItem),theme:p?k.a:void 0,isActive:n,isDisabled:o,isHovered:r,onClick:h,onClickArg:t,toolbox:function(){const{isRemovable:t,isFavoritingAllowed:a}=e,i=s.a.createElement(we.a,{key:"remove",isActive:n,hidden:!fe.touch&&!g,onClick:C}),r=s.a.createElement(c.a,{key:"favorite",isActive:n,isFilled:l,onClick:f});return[t&&i,!o&&a&&r]}(),showToolboxOnHover:!l,label:a}))}const ke={
12
- [de.ResolutionKind.Ticks]:window.t("Ticks",{context:"interval_group_name"}),[de.ResolutionKind.Seconds]:window.t("Seconds",{context:"interval_group_name"}),[de.ResolutionKind.Minutes]:window.t("Minutes",{context:"interval_group_name"}),[de.SpecialResolutionKind.Hours]:window.t("Hours",{context:"interval_group_name"}),[de.ResolutionKind.Days]:window.t("Days",{context:"interval_group_name"}),[de.ResolutionKind.Weeks]:window.t("Weeks",{context:"interval_group_name"}),[de.ResolutionKind.Months]:window.t("Months",{context:"interval_group_name"}),[de.ResolutionKind.Range]:window.t("Ranges",{context:"interval_group_name"}),[de.ResolutionKind.Invalid]:""};function xe(e,t=!1){return{id:e,name:ke[e],items:[],mayOmitSeparator:t}}var Ee=a("cwLw"),Oe=a("aIyQ"),Me=a.n(Oe),Te=a("X0gx"),Ne=a("tWVy"),Re=a("aVq2");const Ie={openDialog:Object(R.t)("Open Interval Dialog"),timeInterval:Object(R.t)("Time Interval")},Ae=Object(Q.b)({keys:[","],text:Object(R.t)("Number or {hotKey_0}")}),je=Object(x.b)(),Fe=new Me.a,He=s.a.lazy(async()=>({default:(await Promise.all([a.e(3),a.e(8),a.e(9),a.e(16),a.e(17),a.e(23),a.e(35),a.e(91),a.e(2),a.e(15),a.e(31),a.e("custom-intervals-add-dialog")]).then(a.bind(null,"w9vS"))).ToolWidgetIntervalsAddDialog}));function ze(e){{const t=de.Interval.parse(e);if(!Object(he.isSecondsEnabled)()&&t.isSeconds())return!1;if(!Object(he.isTicksEnabled)()&&t.isTicks())return!1}return!0}class Le extends s.a.PureComponent{constructor(e,t){super(e,t),this._menu=s.a.createRef(),this._renderChildren=(e,t)=>[...this._createMenuItems(e,t),...this._createIntervalForm(t)],this._handleChangeInterval=e=>{const{activeInterval:t,lastNotQuicked:a}=this.state,n=this._getQuicks();this.setState({activeInterval:Object(he.normalizeIntervalString)(e),lastNotQuicked:void 0===t||n.includes(t)?a:t})},this._bindedForceUpdate=()=>{this.forceUpdate()},this._handleCloseMenu=()=>{this.setState({isOpenedFormMenu:!1})},this._handleOpenMenu=()=>{this.setState({isOpenedFormMenu:!0})},this._handleSelectInterval=e=>{void 0!==e&&e!==ce.linking.interval.value()&&this.context.chartWidgetCollection.setResolution(e),e&&Object(F.trackEvent)("GUI","Time Interval",e)},this._handleClickFavorite=e=>{e=Object(K.ensureDefined)(e),this._isIntervalFavorite(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},this._handleAddFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set([...t,e])},this._handleRemoveFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set(t.filter(t=>t!==e))},this._handleAddInterval=(e,t)=>{const{intervalService:a}=this.context,n=a.add(e,t);n&&this.setState({lastAddedInterval:n})},this._handleRemoveInterval=e=>{const{intervalService:t}=this.context;e&&(t.remove(e),this._handleRemoveFavorite(e))},this._getHandleSectionStateChange=e=>t=>{const{menuViewState:a}=this.state,{intervalsMenuViewStateService:n}=this.context;n.set({...a,[e]:!t})},this._handleOpenAddIntervalDialog=()=>{this.setState({isAddIntervalDialogOpened:!0})},this._handleCloseAddIntervalDialog=()=>{this.setState({
13
- isAddIntervalDialogOpened:!1})},this._handleGlobalClose=()=>{const{isFake:e}=this.props,{isAddIntervalDialogOpened:t}=this.state;e||t||Fe.fire()},Object(x.c)(t,{chartApiInstance:o.any.isRequired,favoriteIntervalsService:o.any.isRequired,intervalService:o.any.isRequired,intervalsMenuViewStateService:o.any.isRequired});const{chartApiInstance:a,favoriteIntervalsService:i,intervalService:l,intervalsMenuViewStateService:r}=t;this._customIntervals=n.enabled("custom_resolutions");const c=ce.linking.interval.value(),h=c&&Object(he.normalizeIntervalString)(c),d=i.get(),u=l.getCustomIntervals(),m=r.get();this._defaultIntervals=a.defaultResolutions().filter(ze).map(he.normalizeIntervalString),this.state={isOpenedFormMenu:!1,activeInterval:h,favorites:d,customs:u,menuViewState:m,isAddIntervalDialogOpened:!1}}componentDidMount(){const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().subscribe(this,this._handleChangeFavorites),a.getOnChange().subscribe(this,this._handleChangeMenuViewState),t.getOnChange().subscribe(this,this._handleChangeCustoms),ce.linking.interval.subscribe(this._handleChangeInterval),ce.linking.intraday.subscribe(this._bindedForceUpdate),ce.linking.seconds.subscribe(this._bindedForceUpdate),ce.linking.ticks.subscribe(this._bindedForceUpdate),ce.linking.supportedResolutions.subscribe(this._bindedForceUpdate),Ne.a.subscribe(this,this._handleGlobalClose)}componentWillUnmount(){const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().unsubscribe(this,this._handleChangeFavorites),a.getOnChange().unsubscribe(this,this._handleChangeMenuViewState),t.getOnChange().unsubscribe(this,this._handleChangeCustoms),ce.linking.interval.unsubscribe(this._handleChangeInterval),ce.linking.intraday.unsubscribe(this._bindedForceUpdate),ce.linking.seconds.unsubscribe(this._bindedForceUpdate),ce.linking.ticks.unsubscribe(this._bindedForceUpdate),ce.linking.supportedResolutions.unsubscribe(this._bindedForceUpdate),Ne.a.unsubscribe(this,this._handleGlobalClose)}componentDidUpdate(e,t){this.state.lastAddedInterval&&setTimeout(()=>this.setState({lastAddedInterval:void 0}),400)}render(){const{isShownQuicks:e,id:t}=this.props,{activeInterval:a,customs:n,lastNotQuicked:i,isAddIntervalDialogOpened:o}=this.state,l=this._getQuicks(),r=Object(he.sortResolutions)([...l]);void 0!==a&&r.includes(a)?void 0!==i&&r.push(i):void 0!==a&&r.push(a);const c=(!(!e||0===l.length)||void 0)&&r.length>1,h={},d=Object(he.mergeResolutions)(this._defaultIntervals,n);(void 0!==a?d.concat(a):d).filter(he.isAvailable).forEach(e=>h[e]=!0);const v=void 0!==a?Object(he.getTranslatedResolutionModel)(a):null;return s.a.createElement(b,{id:t},c&&r.map((e,t)=>{const n=Object(he.getTranslatedResolutionModel)(e);return s.a.createElement(C,{key:t,className:m(Re.button,{[Re.first]:0===t,[Re.last]:t===r.length-1}),text:s.a.createElement(me,{value:n.mayOmitMultiplier?void 0:n.multiplier,metric:n.shortKind}),hint:n.hint,isActive:a===e,isDisabled:!h[e]&&e!==i,
14
- onClick:this._handleSelectInterval,onClickArg:e,"data-value":e})}),s.a.createElement(_.a,{rule:y.a.TabletSmall},e=>s.a.createElement(s.a.Fragment,null,s.a.createElement(Te.a.Provider,{value:Fe},s.a.createElement(u.a,{arrow:Boolean(c),closeOnClickOutside:!0,content:c||null===v?void 0:s.a.createElement(b,{className:Re.menuContent},s.a.createElement(me,{value:v.mayOmitMultiplier?void 0:v.multiplier,metric:v.shortKind})),title:c||null===v?Ie.timeInterval:v.hint,hotKey:c?Ae:void 0,className:Re.menu,ref:this._menu,isDrawer:e},s.a.createElement("div",{className:Re.dropdown},this._renderChildren(d,e)))),e&&o&&s.a.createElement(s.a.Suspense,{fallback:null},s.a.createElement(He,{onAdd:this._handleAddInterval,onClose:this._handleCloseAddIntervalDialog,onUnmount:this._handleCloseAddIntervalDialog})))))}_createMenuItems(e,t){const a=function(e){const t=xe(de.ResolutionKind.Ticks),a=xe(de.ResolutionKind.Seconds),n=xe(de.ResolutionKind.Minutes),i=xe(de.SpecialResolutionKind.Hours),s=xe(de.ResolutionKind.Days),o=xe(de.ResolutionKind.Range);return e.forEach(e=>{const l=de.Interval.parse(e);l.isMinuteHours()?i.items.push(e):l.isMinutes()?Object(de.isHour)(Number(l.multiplier()))?i.items.push(e):n.items.push(e):l.isSeconds()?a.items.push(e):l.isDWM()?s.items.push(e):l.isRange()?o.items.push(e):l.isTicks()&&t.items.push(e)}),[t,a,n,i,s,o].filter(e=>0!==e.items.length)}(e).map((e,a,n)=>this._renderResolutionsGroup(e,1===n.length,t));return function(e){let t=!1;return e.filter((e,a,n)=>{let i=!0;return e.type===f.a&&(0!==a&&a!==n.length-1||(i=!1),t&&(i=!1)),t=e.type===f.a,i})}([].concat(...a))}_createIntervalForm(e){if(this._customIntervals){const t=e?s.a.createElement("div",{key:"add-dialog",className:Re.addCustomInterval,onClick:this._handleOpenAddIntervalDialog},Object(R.t)("Add custom interval")+"…"):s.a.createElement(Se,{key:"add-form",onAdd:this._handleAddInterval,onCloseMenu:this._handleCloseMenu,onOpenMenu:this._handleOpenMenu});return[s.a.createElement(f.a,{key:"custom-interval-separator"}),t]}return[]}_renderResolutionsGroup(e,t=!1,a){const n=[],i=e.items.map(e=>this._renderPopupMenuItem(e,a));if(t)n.push(...i);else if(a){const t=s.a.createElement("div",{key:e.id},s.a.createElement("div",{className:Re.smallTabletSectionTitle},e.name),i);n.push(t)}else{const{intervalsMenuViewStateService:t}=this.context,{menuViewState:a}=this.state;if(!t.isAllowed(e.id))return[];const o=s.a.createElement(Ee.a,{key:e.id,className:Re.section,summary:e.name,open:!a[e.id],onStateChange:this._getHandleSectionStateChange(e.id)},i);n.push(o)}return(!e.mayOmitSeparator||e.items.length>1)&&(n.unshift(s.a.createElement(f.a,{key:"begin-"+e.name})),n.push(s.a.createElement(f.a,{key:"end-"+e.name}))),n}_handleChangeFavorites(e){this.setState({lastNotQuicked:void 0,favorites:e})}_handleChangeCustoms(e){this.setState({customs:e})}_handleChangeMenuViewState(e){this.setState({menuViewState:e},()=>{this._menu.current&&this._menu.current.update()})}_renderPopupMenuItem(e,t){
15
- const{isFavoritingAllowed:a}=this.props,{activeInterval:n,lastAddedInterval:i}=this.state,o=e===n,l=Object(he.isAvailable)(e),r=this._isIntervalFavorite(e),c=this._isIntervalDefault(e),h=Object(he.getTranslatedResolutionModel)(e);return s.a.createElement(ye,{key:e,isSmallTablet:t,interval:e,hint:h.hint,isSignaling:i===e,isFavoritingAllowed:a,isDisabled:!l,isFavorite:r,isRemovable:!c,isActive:o,onClick:this._handleSelectInterval,onClickRemove:this._handleRemoveInterval,onClickFavorite:this._handleClickFavorite,"data-value":e})}_isIntervalDefault(e){return this._defaultIntervals.includes(e)}_isIntervalFavorite(e){return this.state.favorites.includes(e)}_getQuicks(e){return this.props.isShownQuicks&&"small"!==this.props.displayMode?void 0===e?this.state.favorites:e:[]}}Le.contextType=je;var We=a("sbT4"),De=a("lAXe");const Pe={hint:window.t("Open chart in popup")},Ue=Object(x.b)();class Ve extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e,windowMessageService:t,isFundamental:a}=this.context,n=e.activeChartWidget.value();n.withModel(null,()=>{t.post(parent,"openChartInPopup",{symbol:n.model().mainSeries().actualSymbol(),interval:n.model().mainSeries().interval(),fundamental:a})})},Object(x.c)(t,{isFundamental:o.any,chartWidgetCollection:o.any.isRequired,windowMessageService:o.any.isRequired})}render(){const{className:e}=this.props;return i.createElement(D.a,{className:m(e,We.button),icon:De,onClick:this._handleClick,title:Pe.hint})}}Ve.contextType=Ue;var Be=a("uafl");const Ke={hint:window.t("Chart Properties")},Qe=Object(x.b)();class Ge extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context,t=e.activeChartWidget.value();Object(F.trackEvent)("GUI","Chart Header Toolbar","chart properties"),t.showGeneralChartProperties()},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired})}render(){return i.createElement(D.a,{...this.props,icon:Be,title:Ke.hint,onClick:this._handleClick})}}Ge.contextType=Qe;var Xe=a("lxNp"),qe=(a("bSeV"),a("/3z9")),Je=a("//lZ"),Ye=a("9uLv"),Ze=a("nrMg");const $e="M21.5 21.5h-14a5 5 0 1 1 .42-9.983 7.5 7.5 0 0 1 14.57 2.106 4.002 4.002 0 0 1-.99 7.877z",et=13.08991081237793,tt={strokeDashOffset:49.242997817993164,strokeDash:49.866326904296876,strokeGap:et,strokeDashCheck:0},at={strokeDashOffset:62.956237716674806,strokeGap:0,strokeDash:62.956237716674806,strokeDashCheck:200};class nt extends i.PureComponent{constructor(e){super(e),this.state=tt}componentDidMount(){"saved"===this.props.state?this.setState(at):this._goToNextState(this.props.state)}componentWillUnmount(){this._currentAnimation=void 0}UNSAFE_componentWillReceiveProps(e){this.props.state!==e.state&&this._goToNextState(e.state)}render(){const{strokeDashOffset:e,strokeDash:t,strokeGap:a,strokeDashCheck:n}=this.state,{className:s,size:o,onClick:l,state:r,isHovered:c=!1}=this.props,h=m(Ze.container,s,c&&Ze.hovered,{[Ze.unsaved]:"unsaved"===r,[Ze.saving]:"saving"===r,[Ze.saved]:"saved"===r});return i.createElement("svg",{
16
- xmlns:"http://www.w3.org/2000/svg",className:h,version:"1.1",width:o,height:o,viewBox:"0 0 28 28",onClick:l},i.createElement("g",{fill:"none"},i.createElement("path",{className:Ze.dottedCloud,stroke:"currentColor",strokeDasharray:"3.5,2.5",d:$e}),i.createElement("path",{className:Ze.spinningCloud,stroke:"currentColor",strokeDasharray:`${t} ${a}`,strokeDashoffset:e,d:$e}),i.createElement("path",{className:Ze.arrowGap,d:"M11 20h6v5h-6z"}),i.createElement("g",{className:Ze.arrow,stroke:"currentColor"},i.createElement("path",{strokeLinecap:"square",d:"M14.5 14.5v10"}),i.createElement("path",{d:"M11 17l3.5-3.5L18 17"})),i.createElement("g",{className:Ze.check,stroke:"currentColor"},i.createElement("path",{strokeDasharray:`${n}% ${200-n}%`,d:"M10 15l2.5 2.5L18 12"}))))}_goToNextState(e){switch(e){case"unsaved":this.setState(tt);break;case"saving":"unsaved"!==this.props.state&&this.setState(tt),this._currentAnimation=Promise.resolve(this._currentAnimation).then(()=>this._createSpinAnimationWhile(()=>"saving"===this.props.state));break;case"saved":this._currentAnimation=Promise.resolve(this._currentAnimation).then(this._createFillGapAnimation.bind(this)).then(this._createCheckAnimation.bind(this))}}_createSpinAnimationWhile(e){return this._createSpinAnimation().then(()=>e()?this._createSpinAnimationWhile(e):Promise.resolve())}_createSpinAnimation(){return new Promise(e=>{Object(Je.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:t})},onComplete:()=>e(),from:49.242997817993164,to:111.57590644836426,easing:Ye.c.linear,duration:1e3})})}_createCheckAnimation(){return new Promise(e=>{Object(Je.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashCheck:Math.round(t)})},onComplete:()=>e(),from:0,to:200,easing:Ye.c.linear,duration:1e3})})}_createFillGapAnimation(){return new Promise(e=>{Object(Je.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:62.956237716674806-t,strokeGap:t,strokeDash:62.956237716674806-t})},onComplete:()=>e(),from:et,to:0,easing:Ye.c.linear,duration:200})})}}var it=a("nPPD"),st=a("MB0Y"),ot=a("3j+J");Object(it.a)(st.a,ot);var lt=a("2uTr"),rt=a("+KIV"),ct=a("RGo6"),ht=a("SchQ");a("OP2o");const dt=n.enabled("widget"),ut=Object(it.a)(g.a,ht),mt=Object(it.a)(d.a,{shortcut:ct.shortcut}),vt={copy:window.t("Copy"),makeCopy:window.t("Make a Copy"),newChartLayout:window.t("New Chart Layout"),loadChartLayout:Object(lt.appendEllipsis)(window.t("Load Chart Layout")),rename:Object(lt.appendEllipsis)(window.t("Rename")),renameChartLayout:window.t("Rename Chart Layout"),saveAs:Object(lt.appendEllipsis)(window.t("Make a Copy")),saveChartLayout:window.t("Save"),saveChartLayoutLong:window.t("Save all charts for all symbols and intervals on your layout"),manageChartLayouts:window.t("Manage Chart Layouts")},pt=[],bt=Object(Q.b)({keys:["Ctrl","S"],text:"{0} + {1}"});class gt extends i.PureComponent{constructor(e){super(e),this._toolWidgetMenuRef=i.createRef(),this._handleSaveHoverBegin=()=>{this.setState({
17
- iconHovered:!0})},this._handleSaveHoverEnd=()=>{this.setState({iconHovered:!1})},this.state={iconHovered:!1}}render(){const{id:e,isReadOnly:t,displayMode:a,isProcessing:n,title:s,chartId:o,wasChanges:l,onCloneChart:r,onSaveChart:c,hideMenu:d,isTabletSmall:v}=this.props,{iconHovered:p}=this.state,g=!t&&!d;let S="saved";return!l&&s||(S="unsaved"),n&&(S="saving"),i.createElement(b,null,t?i.createElement(b,null,i.createElement(j,{id:e,displayMode:a,icon:i.createElement(h.a,{icon:rt}),isDisabled:n,onClick:r,text:vt.copy,title:vt.makeCopy,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,collapseWhen:pt})):i.createElement(b,null,i.createElement(j,{id:e,className:m(ct.button,g&&ct.buttonSmallPadding),displayMode:a,icon:i.createElement(nt,{size:28,state:S,isHovered:p}),isDisabled:o&&!l||n,onClick:c,text:s||vt.saveChartLayout,title:vt.saveChartLayoutLong,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,theme:ut,collapseWhen:pt,"data-tooltip-hotkey":dt?"":bt}),g&&i.createElement(u.a,{ref:this._toolWidgetMenuRef,className:"js-save-load-menu-open-button",arrow:!0,isDrawer:v,drawerPosition:"Bottom",title:vt.manageChartLayouts},this._renderMenuItems(Boolean(v)))))}_renderMenuItems(e){const{wasChanges:t,isProcessing:a,chartId:n,onSaveChartFromMenu:s,onRenameChart:o,onSaveAsChart:l,onLoadChart:r,onNewChart:c,isAutoSaveEnabled:h,autoSaveId:u,sharingId:v,onAutoSaveChanged:p,isSharingEnabled:b,onSharingChanged:g}=this.props,S=e?k.a:mt,w=e?void 0:Object(qe.humanReadableHash)(qe.Modifiers.Mod+83),C=e?void 0:Object(R.t)("Dot",{context:"hotkey"}),_=[];return _.push(i.createElement(d.b,{key:"save",isDisabled:Boolean(a||!t&&n),label:vt.saveChartLayout,onClick:s,shortcut:w,labelRowClassName:m(e&&ct.popupItemRowTabletSmall),theme:S})),void 0!==n&&(e||_.push(i.createElement(f.a,{key:"existing-chart-section-begin"})),_.push(i.createElement(d.b,{key:"rename",label:vt.rename,onClick:o,labelRowClassName:m(e&&ct.popupItemRowTabletSmall),theme:S}),i.createElement(d.b,{key:"save-as",label:vt.saveAs,onClick:l,labelRowClassName:m(e&&ct.popupItemRowTabletSmall),theme:S}))),_.push(i.createElement(f.a,{key:"platform-section-begin"})),_.push(i.createElement(d.b,{key:"load-chart",className:"js-save-load-menu-item-load-chart",label:vt.loadChartLayout,onClick:r,labelRowClassName:m(e&&ct.popupItemRowTabletSmall),theme:S,shortcut:C})),_}}const St=Object(x.b)();class wt extends i.PureComponent{constructor(e,t){super(e,t),this._syncState=e=>{this.setState(e)},this._onChangeHasChanges=e=>{this.state.wasChanges!==e&&this.setState({wasChanges:e})},this._onChangeAutoSaveEnabled=e=>{0},this._onChangeSharingEnabled=e=>{this.setState({isSharingEnabled:e})},this._onChangeTitle=e=>{this.setState({title:e})},this._onChangeId=e=>{this.setState({id:e})},this._onChartAboutToBeSaved=()=>{this.setState({isProcessing:!0})},this._onChartSaved=()=>{this.setState({isProcessing:!1})},this._handleAutoSaveEnabled=e=>{0},this._handleSharingEnabled=e=>{0},this._handleClickSave=()=>{
18
- this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save click")},this._handleClickSaveFromMenu=()=>{this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save From Menu")},this._handleClickClone=()=>{this.context.saveChartService.cloneChart()},this._handleClickSaveAs=()=>{this.context.saveChartService.saveChartAs(),this._trackEvent("Make a copy")},this._handleClickNew=()=>{this._trackEvent("New chart layout")},this._handleClickLoad=()=>{this.context.loadChartService.showLoadDialog(),this._trackEvent("Load chart layout")},this._handleHotkey=()=>{this.context.loadChartService.showLoadDialog()},this._handleClickRename=()=>{this.context.saveChartService.renameChart(),this._trackEvent("Rename")},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired,chartChangesWatcher:o.any.isRequired,saveChartService:o.any.isRequired,sharingChartService:o.any,loadChartService:o.any.isRequired});const{chartWidgetCollection:a,chartChangesWatcher:n,saveChartService:i,sharingChartService:s}=t;this.state={isAuthenticated:window.is_authenticated,isProcessing:!1,id:a.metaInfo.id.value(),title:a.metaInfo.name.value(),wasChanges:n.hasChanges(),iconHovered:!1}}componentDidMount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:o}=this.context;t?a.on("change",this._syncState):(i.getOnChange().subscribe(this,this._onChangeHasChanges),n.metaInfo.name.subscribe(this._onChangeTitle),n.metaInfo.id.subscribe(this._onChangeId),this._hotkeys=Object(Xe.createGroup)({desc:"Save/Load"}),this._hotkeys.add({desc:window.t("Load Chart Layout"),handler:this._handleHotkey,hotkey:190}),e.chartSaved().subscribe(this,this._onChartSaved),e.chartAboutToBeSaved().subscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.subscribe(this,this._onLoginStateChange))}componentDidUpdate(e,t){this.props.isFake||t!==this.state&&this.props.stateSyncEmitter.emit("change",this.state)}componentWillUnmount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:o}=this.context;t?a.off("change",this._syncState):(i.getOnChange().unsubscribe(this,this._onChangeHasChanges),n.metaInfo.name.unsubscribe(this._onChangeTitle),n.metaInfo.id.unsubscribe(this._onChangeId),Object(K.ensureDefined)(this._hotkeys).destroy(),e.chartSaved().unsubscribe(this,this._onChartSaved),e.chartAboutToBeSaved().unsubscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.unsubscribe(this,this._onLoginStateChange))}render(){const{isReadOnly:e,displayMode:t,id:a,isFake:n}=this.props,{isProcessing:s,isAuthenticated:o,title:l,id:r,wasChanges:c,isAutoSaveEnabled:h,isSharingEnabled:d}=this.state,u={displayMode:t,isReadOnly:e,isAuthenticated:o,isProcessing:s,wasChanges:c,title:l,id:a,chartId:null!==r?r:void 0,onCloneChart:this._handleClickClone,onSaveChart:this._handleClickSave,onSaveChartFromMenu:this._handleClickSaveFromMenu,onRenameChart:this._handleClickRename,
19
- onSaveAsChart:this._handleClickSaveAs,onLoadChart:this._handleClickLoad};return i.createElement(_.a,{rule:y.a.TabletSmall},e=>i.createElement(gt,{...u,isTabletSmall:e}))}_onLoginStateChange(){this.setState({isAuthenticated:window.is_authenticated})}_trackEvent(e){0}}wt.contextType=St;var Ct=a("QC7+"),ft=a("MbIA"),_t=a("8woN");const yt=new ft.a({dateTimeSeparator:"_",timeFormat:"%h-%m-%s"}),kt={takeSnapshot:window.t("Take a snapshot")},xt=Object(x.b)();var Et=a("mNbo");const Ot=R.t("Loading...");const Mt=async function(e){const t=URL.createObjectURL(new Blob([`<!doctype html><html style="background-color:${getComputedStyle(document.documentElement).backgroundColor}"><head><meta charset="utf-8"><title>${Ot}</title></head><body style="background-color:${getComputedStyle(document.body).backgroundColor}"></body></html>`],{type:"text/html"}));try{const a=open(t);if(!a)throw new Error("cound not open a new tab");const n=await e.catch(()=>{});void 0!==n?a.location.replace(n):a.close()}finally{URL.revokeObjectURL(t)}};var Tt=a("qHEz"),Nt=a("Rdaf"),Rt=a("6KyJ"),It=a("Owyg");function At(e){const t=m(e.isLoading&&It.hidden),a=m(!e.isLoading&&It.hidden);return i.createElement("div",null,i.createElement("span",{className:t},e.children),i.createElement("span",{className:a},i.createElement(Rt.a,null)))}var jt=a("PR+g"),Ft=a("BHQn"),Ht=a("K8V9"),zt=a("npeR"),Lt=a("CGkO"),Wt=a("Q6PN"),Dt=a("NQJD");const Pt=Object(it.a)(d.a,Dt);function Ut(e){const{serverSnapshot:t,clientSnapshot:n}=e,[o,l]=Object(i.useState)(!1),[r,c]=Object(i.useState)(!1),[h,u]=Object(i.useState)(!1),v=Object(jt.a)(),p=Object(i.useCallback)(async()=>{var e;const t=n(),a=t.then(e=>new Promise(t=>e.canvas.toBlob(e=>{null!==e&&t(e)})));try{await Object(Tt.b)(a,"image/png"),te.emit("onClientScreenshotCopiedToClipboard")}catch(a){const{canvas:n}=await t;null===(e=window.open())||void 0===e||e.document.write(`<img width="100%" src="${n.toDataURL()}"/>`)}},[n]),b=Object(i.useCallback)(async()=>{const e=await n();Object(Nt.a)(e.name+".png",e.canvas.toDataURL())},[n]),g=e=>Mt(e.then(e=>e.imageUrl)),S=Object(i.useCallback)(async(e=!1)=>{const a=t();try{if(e)await g(a);else{const e=a.then(e=>new Blob([e.imageUrl],{type:"text/plain"}));await Object(Tt.b)(e,"text/plain"),te.emit("onServerScreenshotCopiedToClipboard")}return!0}catch(e){return g(a),!0}finally{v.current&&(c(!1),l(!1),Object(Ne.b)())}},[t]),w=Object(i.useCallback)(async()=>{u(!0);const[e,n]=await Promise.all([a.e("share-chart-to-social-utils").then(a.bind(null,"E5mD")),t()]);e.Twitter.shareSnapshotInstantly(n.symbol,n.imageUrl),v.current&&(u(!1),Object(Ne.b)())},[t]);return s.a.createElement(s.a.Fragment,null,s.a.createElement(d.b,{"data-name":"save-chart-image",label:Object(R.t)("Save chart image"),icon:zt,onClick:b,shortcut:Object(qe.humanReadableHash)(qe.Modifiers.Mod+qe.Modifiers.Alt+83),theme:Pt}),s.a.createElement(d.b,{"data-name":"copy-chart-image",label:Object(R.t)("Copy chart image"),icon:Ht,onClick:p,shortcut:Object(qe.humanReadableHash)(qe.Modifiers.Mod+qe.Modifiers.Shift+83),theme:Pt
20
- }),s.a.createElement(d.b,{"data-name":"copy-link-to-the-chart-image",label:s.a.createElement(At,{isLoading:o},Object(R.t)("Copy link to the chart image")),icon:Lt,onClick:()=>{l(!0),S(!1)},dontClosePopup:!0,isDisabled:o,shortcut:Object(qe.humanReadableHash)(qe.Modifiers.Alt+83),className:m(o&&Dt.loading),theme:Pt}),s.a.createElement(d.b,{"data-name":"open-image-in-new-tab",label:s.a.createElement(At,{isLoading:r},Object(R.t)("Open image in new tab")),icon:Wt,onClick:()=>{c(!0),S(!0)},dontClosePopup:!0,isDisabled:r,className:m(r&&Dt.loading),theme:Pt}),s.a.createElement(d.b,{"data-name":"tweet-chart-image",label:s.a.createElement(At,{isLoading:h},Object(R.t)("Tweet chart image")),icon:Ft,onClick:w,dontClosePopup:!0,isDisabled:h,className:m(h&&Dt.loading),theme:Pt}))}function Vt(e){const[t,a]=Object(i.useState)(!1),n=Object(jt.a)(),o=Object(i.useCallback)(async()=>{a(!0),await e.serverSnapshot(),n.current&&a(!1)},[e.serverSnapshot]);return s.a.createElement(g.b,{id:e.id,className:e.className,isDisabled:t,onClick:o,title:e.tooltip,icon:e.icon})}var Bt=a("koZ+");const Kt=(Qt=function(e){return Object(Et.isOnMobileAppPage)("any")?s.a.createElement(Vt,{...e,icon:Bt}):s.a.createElement(u.a,{content:s.a.createElement(g.b,{id:e.id,className:e.className,title:e.tooltip,icon:Bt}),drawerPosition:"Bottom",drawerBreakpoint:y.a.TabletSmall,arrow:!1},s.a.createElement(Ut,{...e}))},(Gt=class extends i.PureComponent{constructor(e,t){super(e,t),this._clientSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol();return{canvas:await this.context.chartWidgetCollection.clientSnapshot(),name:`${Object(_t.shortName)(e)}_${yt.formatLocal(new Date)}`}},this._serverSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol(),t=await this.context.chartWidgetCollection.takeScreenshot(),a=n.enabled("charting_library_base")&&void 0!==this.context.snapshotUrl?t:Object(Ct.a)(t);return{symbol:Object(_t.shortName)(e),imageUrl:a}},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(Qt,{id:t,className:e,tooltip:kt.takeSnapshot,serverSnapshot:this._serverSnapshot,clientSnapshot:this._clientSnapshot})}}).contextType=xt,Gt);var Qt,Gt,Xt=a("FA0h"),qt=a("h24c"),Jt=a("tOje"),Yt=a("QOH/");const Zt=Object(it.a)(g.a,Yt);class $t extends s.a.PureComponent{constructor(e){super(e),this._promise=null,this._openSymbolSearchDialog=e=>{if(Object(qe.modifiersFromEvent)(e)===qe.Modifiers.Alt)return void navigator.clipboard.writeText(this.state.symbol);const t=this._promise=Object(Xt.a)().then(e=>{t===this._promise&&(e.showDefaultSearchDialog({defaultValue:this._isSpread(this.state.symbol)?this.state.symbol:this.state.shortName,showSpreadActions:Object(qt.a)()&&this.props.isActionsVisible,source:"searchBar",footer:fe.mobiletouch?void 0:s.a.createElement(Jt.a,null,Object(R.t)("Simply start typing while on the chart to pull up this search box"))}),
21
- Object(F.trackEvent)("GUI","SS","main search"))})},this._isSpread=e=>!1,this._onSymbolChanged=()=>{this.setState({symbol:ce.linking.symbol.value(),shortName:ea()})},this.state={symbol:ce.linking.symbol.value(),shortName:ea()}}componentDidMount(){ce.linking.seriesShortSymbol.subscribe(this._onSymbolChanged),Object(Xt.a)()}componentWillUnmount(){ce.linking.seriesShortSymbol.unsubscribe(this._onSymbolChanged),this._promise=null}render(){const{id:e,className:t}=this.props;return s.a.createElement(g.b,{id:e,className:m(t,n.enabled("uppercase_instrument_names")&&Yt.uppercase),theme:Zt,text:this.state.shortName,title:Object(R.t)("Symbol Search"),onClick:this._openSymbolSearchDialog})}}function ea(){return ce.linking.seriesShortSymbol.value()||ce.linking.symbol.value()||""}var ta=a("9NBK");class aa extends i.PureComponent{constructor(){super(...arguments),this._handleClick=e=>{e.stopPropagation();const{onApply:t,item:a}=this.props;t(a)}}render(){const{className:e,item:t}=this.props;return i.createElement("div",{className:m(e,ta.item,"apply-common-tooltip"),onClick:this._handleClick,title:t.name},i.createElement("div",{className:ta.round},t.name.length>0?t.name[0].toUpperCase():" "))}}var na=a("8RO/"),ia=a("s0T6");function sa(e){return i.createElement("div",{className:m(ia.description,e.className)},e.children)}var oa=a("fESK");const la=Object(it.a)(d.a,{labelRow:oa.labelRow,toolbox:oa.toolbox,item:oa.titleItem}),ra=Object(it.a)(d.a,{labelRow:oa.labelRow,toolbox:oa.toolbox,item:oa.titleItemTabletSmall}),ca=Object(it.a)(d.a,{item:oa.item}),ha=Object(it.a)(d.a,{item:oa.itemTabletSmall});function da(e){const{item:t,onApply:a,onRemove:n,onFavor:o,favorite:l,isFavoritingAllowed:r,isTabletSmall:h}=e,[u,m]=Object(Ce.c)(),p=t.meta_info,b=p?Object(na.b)(p.indicators):void 0,g=h?ra:la,S=h?ha:ca,w=Object(i.useCallback)(()=>a(t),[a,t]),C=Object(i.useCallback)(()=>n(t),[n,t]),f=Object(i.useCallback)(()=>{o&&o(t)},[o,t]);return s.a.createElement("div",{...m,className:oa.wrap,"data-name":t.name,"data-id":t.id,"data-is-default":Boolean(t.is_default)},s.a.createElement(d.b,{theme:g,label:t.name,labelRowClassName:v()(h&&oa.itemLabelTabletSmall),isHovered:u,showToolboxOnHover:!l&&!u,onClick:w,toolbox:s.a.createElement(s.a.Fragment,null,!t.is_default&&s.a.createElement(we.a,{key:"remove",hidden:!fe.touch&&!u,onClick:C}),Boolean(o)&&r&&s.a.createElement(c.a,{key:"favorite",isFilled:Boolean(l),onClick:f}))}),b&&s.a.createElement(d.b,{theme:S,label:s.a.createElement(sa,{className:v()(oa.description,h&&oa.descriptionTabletSmall)},b),onClick:w,isHovered:u}))}var ua=a("jKyl"),ma=a("23di");const va=Object(it.a)(d.a,ma),pa={text:Object(lt.appendEllipsis)(window.t("Save Indicator template"))};function ba(e){const{onClick:t,isTabletSmall:a}=e;return s.a.createElement(d.b,{theme:va,className:ma.wrap,label:s.a.createElement("div",{className:ma.titleWrap},s.a.createElement("div",{className:v()(ma.title,a&&ma.titleTabletSmall)},s.a.createElement(h.a,{className:ma.icon,icon:ua}),s.a.createElement("div",{className:ma.text},pa.text))),onClick:t})}
22
- var ga=a("gla1"),Sa=a("PN6A");const wa=s.a.createContext(null);var Ca=a("Sl3V");function fa(e){const{templates:t,favorites:a,onTemplateSave:n,onTemplateRemove:o,onTemplateSelect:l,onTemplateFavorite:r,isTabletSmall:c,isLoading:h}=e,d=Object(i.useMemo)(()=>t.filter(e=>e.is_default),[t]),u=Object(i.useMemo)(()=>t.filter(e=>!e.is_default),[t]),m=Object(i.useMemo)(()=>new Set(a.map(e=>e.name)),[a]),p=Object(i.useContext)(wa),b=Object(i.useContext)(Sa.a),g=Object(ga.a)();Object(i.useEffect)(()=>{if(null!==p){const e={};return p.getOnChange().subscribe(e,()=>{g(),b&&b.update()}),()=>p.getOnChange().unsubscribeAll(e)}return()=>{}},[]);const S=e=>s.a.createElement(da,{key:e.name,item:e,isFavoritingAllowed:Boolean(r),favorite:m.has(e.name),onApply:l,onFavor:r,onRemove:o,isTabletSmall:c});return s.a.createElement("div",{className:v()(Ca.menu,c&&Ca.menuSmallTablet)},s.a.createElement(ba,{onClick:n,isTabletSmall:c}),h&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(Z.a,null)),!h&&(c?s.a.createElement(_a,{defaults:d,customs:u,render:S}):s.a.createElement(ya,{defaults:d,customs:u,render:S,state:p})))}function _a(e){const{defaults:t,customs:a,render:n}=e;return s.a.createElement(s.a.Fragment,null,a.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(ee,{className:Ca.menuItemHeaderTabletSmall},Object(R.t)("My templates")),a.map(n)),t.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(ee,{className:Ca.menuItemHeaderTabletSmall},Object(R.t)("Default templates")),t.map(n)))}function ya(e){const{defaults:t,customs:a,render:n,state:i}=e;return s.a.createElement(s.a.Fragment,null,a.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(ee,{className:Ca.menuItemHeader},Object(R.t)("My templates")),a.map(n)),a.length>0&&t.length>0&&i&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(Ee.a,{summary:Object(R.t)("Default templates"),open:!i.get().defaultsCollapsed,onStateChange:e=>i.set({defaultsCollapsed:!e})},t.map(n))),0===a.length&&t.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,null),s.a.createElement(ee,{className:Ca.menuItemHeader},Object(R.t)("Default templates")),t.map(n)))}var ka=a("hY0g"),xa=a.n(ka);class Ea{constructor(e,t){var a,i;this._isFavoriteEnabled=n.enabled("items_favoriting"),this.handleFavorTemplate=e=>{if(!this._isFavoriteEnabled)return;const{name:t}=e;this._isTemplateFavorite(t)?this._removeFavoriteTemplate(t):this._addFavoriteTemplate(t)},this.handleDropdownOpen=()=>{this._setState({isLoading:!0}),this._studyTemplates.invalidate(),this._studyTemplates.refreshStudyTemplateList(()=>this._setState({isLoading:!1}))},this.handleApplyTemplate=e=>{this._studyTemplates.applyTemplate(e.name)},this.handleRemoveTemplate=e=>{this._studyTemplates.deleteStudyTemplate(e.name)},this.handleSaveTemplate=()=>{this._studyTemplates.showSaveAsDialog()},this._studyTemplates=e,this._favoriteStudyTemplatesService=t
23
- ;const s=(null===(a=this._favoriteStudyTemplatesService)||void 0===a?void 0:a.get())||[],o=this._studyTemplates.list();this._state=new xa.a({isLoading:!1,studyTemplatesList:o,favorites:s}),this._studyTemplates.getOnChange().subscribe(this,this._handleTemplatesChange),this._studyTemplates.refreshStudyTemplateList(),this._isFavoriteEnabled&&(null===(i=this._favoriteStudyTemplatesService)||void 0===i||i.getOnChange().subscribe(this,this._handleFavoritesChange))}destroy(){var e;this._studyTemplates.getOnChange().unsubscribe(this,this._handleTemplatesChange),this._isFavoriteEnabled&&(null===(e=this._favoriteStudyTemplatesService)||void 0===e||e.getOnChange().unsubscribe(this,this._handleFavoritesChange))}state(){return this._state.readonly()}_setState(e){this._state.setValue({...this._state.value(),...e})}_handleTemplatesChange(){this._setState({studyTemplatesList:this._studyTemplates.list()})}_handleFavoritesChange(e){this._isFavoriteEnabled&&this._setState({favorites:e})}_removeFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set(a.filter(t=>t!==e))}_addFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set([...a,e])}_isTemplateFavorite(e){const{favorites:t}=this._state.value();return t.includes(e)}}var Oa=a("zgWb"),Ma=a("yGrx");const Ta={title:Object(R.t)("Templates"),tooltip:Object(R.t)("Indicator Templates")},Na=Object(x.b)();class Ra extends s.a.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({...e,isActive:this.state.isActive})},this._handleApplyTemplate=e=>{this._handleClose(),this._model.handleApplyTemplate(e)},this._handleRemoveTemplate=e=>{this._handleClose(),this._model.handleRemoveTemplate(e)},this._handleClose=()=>{this._handleToggleDropdown(!1)},this._handleToggleDropdown=e=>{const{isActive:t}=this.state,a="boolean"==typeof e?e:!t;this.setState({isActive:a})},Object(x.c)(t,{favoriteStudyTemplatesService:o.any,studyTemplates:o.any.isRequired,templatesMenuViewStateService:o.any});const{favoriteStudyTemplatesService:a,studyTemplates:n}=t;this._model=new Ea(n,a),this.state={...this._model.state().value(),isActive:!1}}componentDidMount(){this._model.state().subscribe(this._updateState)}componentWillUnmount(){this._model.state().unsubscribe(this._updateState),this._model.destroy()}render(){const{studyTemplatesList:e,favorites:t}=this.state,{isShownQuicks:a,className:n,displayMode:i,id:o}=this.props;return s.a.createElement(wa.Provider,{value:this.context.templatesMenuViewStateService||null},s.a.createElement(Ia,{id:o,className:n,mode:i,templates:e,favorites:t,onMenuOpen:this._model.handleDropdownOpen,onTemplateFavorite:a?this._model.handleFavorTemplate:void 0,onTemplateSelect:this._handleApplyTemplate,onTemplateRemove:this._handleRemoveTemplate,onTemplateSave:this._model.handleSaveTemplate}))}}function Ia(e){
24
- const{id:t,className:a,mode:n,favorites:i,templates:o,isMenuOpen:l,onTemplateSelect:r,onTemplateSave:c,onTemplateFavorite:h,onTemplateRemove:d}=e,m=v()(a,Ma.wrap,{[Ma.full]:"full"===n,[Ma.medium]:"medium"===n}),p=o.filter(e=>i.includes(e.name)),g="small"!==n&&h&&p.length>0;return s.a.createElement(b,{id:t,className:m},s.a.createElement(_.a,{rule:y.a.TabletSmall},t=>s.a.createElement(u.a,{onOpen:e.onMenuOpen,isDrawer:t,drawerPosition:"Bottom",arrow:!1,content:s.a.createElement(j,{className:v()(g&&Ma.buttonWithFavorites),displayMode:n,isOpened:l,icon:Oa,text:Ta.title,title:Ta.tooltip,forceInteractive:!0})},s.a.createElement(fa,{onTemplateSave:c,onTemplateSelect:r,onTemplateRemove:d,onTemplateFavorite:h,templates:o,favorites:p,isTabletSmall:t}))),g&&s.a.createElement(Aa,{favorites:p,onTemplateSelect:r}))}function Aa(e){return s.a.createElement(s.a.Fragment,null,e.favorites.map((t,a,n)=>s.a.createElement(aa,{key:t.name,item:t,onApply:e.onTemplateSelect,className:v()({[Ma.first]:0===a,[Ma.last]:a===n.length-1})})))}Ra.contextType=Na;a("HbRj");var ja=a("S+Ii"),Fa=a("bQ7Y"),Ha=a("wnRL"),za=a("2xRE");const La={undoHint:Object(R.t)("Undo {hint}"),redoHint:Object(R.t)("Redo {hint}")},Wa={undoHotKey:Object(Q.b)({keys:["Ctrl","Z"],text:"{0} + {1}"}),redoHotKey:Object(Q.b)({keys:["Ctrl","Y"],text:"{0} + {1}"})},Da=Object(it.b)(Fa,ja,{buttonUndo:"button",buttonRedo:"button"}),Pa={...Fa,button:Da.buttonUndo},Ua={...Fa,button:Da.buttonRedo},Va=Object(x.b)();class Ba extends i.PureComponent{constructor(e,t){super(e,t),this._batched=null,this._handleClickUndo=()=>{Object(F.trackEvent)("GUI","Undo");const{chartWidgetCollection:e}=this.context;e.undoHistory.undo()},this._handleClickRedo=()=>{Object(F.trackEvent)("GUI","Redo");const{chartWidgetCollection:e}=this.context;e.undoHistory.redo()},Object(x.c)(t,{chartWidgetCollection:o.any.isRequired}),this.state=this._getStateFromUndoHistory()}componentDidMount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().subscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().subscribe(this,this._onChangeStack)}componentWillUnmount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().unsubscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().unsubscribe(this,this._onChangeStack),this._batched=null}render(){const{id:e}=this.props,{isEnabledRedo:t,isEnabledUndo:a,redoStack:n,undoStack:s}=this.state;return i.createElement(b,{id:e},i.createElement(g.b,{icon:Ha,isDisabled:!a,onClick:this._handleClickUndo,title:a?La.undoHint.format({hint:s}):void 0,"data-tooltip-hotkey":a?Wa.undoHotKey:void 0,theme:Pa}),i.createElement(g.b,{icon:za,isDisabled:!t,onClick:this._handleClickRedo,title:t?La.redoHint.format({hint:n}):void 0,"data-tooltip-hotkey":t?Wa.redoHotKey:void 0,theme:Ua}))}_onChangeStack(){null===this._batched&&(this._batched=Promise.resolve().then(()=>{if(null===this._batched)return;this._batched=null;const e=this._getStateFromUndoHistory();this.setState(e)}))}_getStateFromUndoHistory(){
25
- const{chartWidgetCollection:e}=this.context,t=e.undoHistory.undoStack(),a=e.undoHistory.redoStack(),n=a.head(),i=t.head();return{isEnabledRedo:!a.isEmpty(),isEnabledUndo:!t.isEmpty(),redoStack:n?n.text():"",undoStack:i?i.text():""}}}Ba.contextType=Va;var Ka=a("i8i4"),Qa=a("cvc5");class Ga extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._update=()=>{this.forceUpdate()},this._setRef=e=>{this._ref=e},this._handleMeasure=({width:e})=>{this.props.width.setValue(e)}}componentDidMount(){const{element:e,isFake:t,width:a}=this.props;if(t)a.subscribe(this._update);else{const t=Object(K.ensureNotNull)(this._ref);Ka.findDOMNode(t).appendChild(e)}}componentWillUnmount(){const{width:e,isFake:t}=this.props;t&&e.unsubscribe(this._update)}render(){const{isFake:e=!1,width:t}=this.props;return i.createElement(Qa,{shouldMeasure:!e,whitelist:["width"],onMeasure:this._handleMeasure},i.createElement(b,{ref:this._setRef,style:e?{width:t.value()}:void 0,"data-is-custom-header-element":!0}))}}function Xa(e){const{displayMode:t,params:a}=e;return s.a.createElement(u.a,{content:s.a.createElement(j,{collapseWhen:void 0!==a.icon?void 0:[],displayMode:t,icon:a.icon,text:a.title,title:a.tooltip,"data-name":"dropdown","data-is-custom-header-element":!0}),drawerPosition:"Bottom",drawerBreakpoint:y.a.TabletSmall,arrow:!1},a.items.map((e,t)=>s.a.createElement(d.b,{key:t,label:e.title,onClick:()=>e.onSelect(),"data-name":"dropdown-item"})))}function qa(){return{Bars:n.enabled("header_chart_type")?N:void 0,Compare:n.enabled("header_compare")?W:void 0,Custom:Ga,Fullscreen:n.enabled("header_fullscreen_button")?B:void 0,Indicators:n.enabled("header_indicators")?le:void 0,Intervals:n.enabled("header_resolutions")?Le:void 0,OpenPopup:Ve,Properties:n.enabled("header_settings")&&n.enabled("show_chart_property_page")?Ge:void 0,SaveLoad:n.enabled("header_saveload")?wt:void 0,Screenshot:n.enabled("header_screenshot")?Kt:void 0,SymbolSearch:n.enabled("header_symbol_search")?$t:void 0,Templates:n.enabled("study_templates")?Ra:void 0,Dropdown:Xa,UndoRedo:n.enabled("header_undo_redo")?Ba:void 0,Layout:void 0}}a.d(t,"getRestrictedToolSet",(function(){return qa}))},nPPD:function(e,t,a){"use strict";function n(e,t,a={}){const n=Object.assign({},t);for(const i of Object.keys(t)){const s=a[i]||i;s in e&&(n[i]=[e[s],t[i]].join(" "))}return n}function i(e,t,a={}){return Object.assign({},e,n(e,t,a))}a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return i}))},npeR:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M6.5 16v4.5a1 1 0 001 1h14a1 1 0 001-1V16M14.5 5V17m-4-3.5l4 4l4-4"/></svg>'},nrMg:function(e,t,a){e.exports={dottedCloud:"dottedCloud-3RnJMRVd",check:"check-3RnJMRVd",spinningCloud:"spinningCloud-3RnJMRVd",arrow:"arrow-3RnJMRVd",arrowGap:"arrowGap-3RnJMRVd",container:"container-3RnJMRVd",unsaved:"unsaved-3RnJMRVd",hovered:"hovered-3RnJMRVd",saving:"saving-3RnJMRVd",saved:"saved-3RnJMRVd"}},os48:function(e,t,a){e.exports={footer:"footer-3r-9t_XG"}},
26
- "p0W+":function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a("q1tI"),i=a("TSYQ"),s=a("tU7i"),o=a("EvtC");const l=n.forwardRef((e,t)=>{const{className:a,...l}=e;return n.createElement(s.b,{...l,ref:t,className:i(a,o.button)})})},pqsj:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v12h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v3.5h-1zm0 16.5h1V24h-1z"/></svg>'},pr86:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("YFKU");var n=a("q1tI"),i=a("TSYQ"),s=a("Iivm"),o=a("sg5d"),l=a("XfUw"),r=a("fEjm");const c={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function h(e){const{className:t,isFilled:a,isActive:h,onClick:d,...u}=e;return n.createElement(s.a,{...u,className:i(r.favorite,"apply-common-tooltip",a&&r.checked,h&&r.active,t),icon:a?o:l,onClick:d,title:a?c.remove:c.add})}},s0T6:function(e,t,a){e.exports={description:"description-2U1ZnBls"}},sHKj:function(e,t,a){e.exports={title:"title-2VoDfDWK"}},sbT4:function(e,t,a){e.exports={button:"button-2twPcS_V"}},sg5d: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 fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},t2Sj:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.982 16.689L17.192 12h3.033l4.149-4.668-.748-.664L19.776 11h-2.968l-4.79 4.311L9 12.293l-4.354 4.353.708.708L9 13.707z"/></svg>'},tOje:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("q1tI"),i=a.n(n),s=a("TSYQ"),o=a.n(s),l=a("os48");function r(e){const{className:t,children:a}=e;return i.a.createElement("div",{className:o()(l.footer,t)},a)}},uPhS:function(e,t,a){e.exports={smallWidthMenuItem:"smallWidthMenuItem-2BP6_jxN"}},uafl:function(e,t){
27
- e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M14 17a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/><path d="M5.005 16A1.003 1.003 0 0 1 4 14.992v-1.984A.998.998 0 0 1 5 12h1.252a7.87 7.87 0 0 1 .853-2.06l-.919-.925c-.356-.397-.348-1 .03-1.379l1.42-1.42a1 1 0 0 1 1.416.007l.889.882A7.96 7.96 0 0 1 12 6.253V5c0-.514.46-1 1-1h2c.557 0 1 .44 1 1v1.253a7.96 7.96 0 0 1 2.06.852l.888-.882a1 1 0 0 1 1.416-.006l1.42 1.42a.999.999 0 0 1 .029 1.377s-.4.406-.918.926a7.87 7.87 0 0 1 .853 2.06H23c.557 0 1 .447 1 1.008v1.984A.998.998 0 0 1 23 16h-1.252a7.87 7.87 0 0 1-.853 2.06l.882.888a1 1 0 0 1 .006 1.416l-1.42 1.42a1 1 0 0 1-1.415-.007l-.889-.882a7.96 7.96 0 0 1-2.059.852v1.248c0 .56-.45 1.005-1.008 1.005h-1.984A1.004 1.004 0 0 1 12 22.995v-1.248a7.96 7.96 0 0 1-2.06-.852l-.888.882a1 1 0 0 1-1.416.006l-1.42-1.42a1 1 0 0 1 .007-1.415l.882-.888A7.87 7.87 0 0 1 6.252 16H5.005zm3.378-6.193l-.227.34A6.884 6.884 0 0 0 7.14 12.6l-.082.4H5.005C5.002 13 5 13.664 5 14.992c0 .005.686.008 2.058.008l.082.4c.18.883.52 1.71 1.016 2.453l.227.34-1.45 1.46c-.004.003.466.477 1.41 1.422l1.464-1.458.34.227a6.959 6.959 0 0 0 2.454 1.016l.399.083v2.052c0 .003.664.005 1.992.005.005 0 .008-.686.008-2.057l.399-.083a6.959 6.959 0 0 0 2.454-1.016l.34-.227 1.46 1.45c.003.004.477-.466 1.422-1.41l-1.458-1.464.227-.34A6.884 6.884 0 0 0 20.86 15.4l.082-.4h2.053c.003 0 .005-.664.005-1.992 0-.005-.686-.008-2.058-.008l-.082-.4a6.884 6.884 0 0 0-1.016-2.453l-.227-.34 1.376-1.384.081-.082-1.416-1.416-1.465 1.458-.34-.227a6.959 6.959 0 0 0-2.454-1.016L15 7.057V5c0-.003-.664-.003-1.992 0-.005 0-.008.686-.008 2.057l-.399.083a6.959 6.959 0 0 0-2.454 1.016l-.34.227-1.46-1.45c-.003-.004-.477.466-1.421 1.408l1.457 1.466z"/></g></svg>'},uhCe:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("ASyk");const i={SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},wnRL:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M8.707 13l2.647 2.646-.707.708L6.792 12.5l3.853-3.854.708.708L8.707 12H14.5a5.5 5.5 0 0 1 5.5 5.5V19h-1v-1.5a4.5 4.5 0 0 0-4.5-4.5H8.707z"/></svg>'},yGrx:function(e,t,a){e.exports={wrap:"wrap-13GsG5XA",full:"full-13GsG5XA",first:"first-13GsG5XA",last:"last-13GsG5XA",medium:"medium-13GsG5XA",buttonWithFavorites:"buttonWithFavorites-13GsG5XA"}},zgWb:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M6 12l3.88-4.31a1 1 0 0 1 1.35-.13l5.07 3.9a1 1 0 0 0 1.32-.08L23 6M6.5 22v-4m4 4v-8m4 8v-6m4 6v-4m4 4v-8"/></svg>'}}]);
@@ -1,5 +0,0 @@
1
- !function(e){function a(a){for(var c,t,o=a[0],r=a[1],i=a[2],n=0,l=[];n<o.length;n++)t=o[n],Object.prototype.hasOwnProperty.call(f,t)&&f[t]&&l.push(f[t][0]),f[t]=0;for(c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c]);for(p&&p(a);l.length;)l.shift()();return b.push.apply(b,i||[]),d()}function d(){for(var e,a=0;a<b.length;a++){for(var d=b[a],c=!0,t=1;t<d.length;t++){var r=d[t];0!==f[r]&&(c=!1)}c&&(b.splice(a--,1),e=o(o.s=d[0]))}return e}var c={},t={runtime:0},f={runtime:0},b=[];function o(a){if(c[a])return c[a].exports;var d=c[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,o),d.l=!0,d.exports}o.e=function(e){var a=[];t[e]?a.push(t[e]):0!==t[e]&&{1:1,3:1,4:1,6:1,8:1,9:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,21:1,22:1,23:1,24:1,26:1,28:1,29:1,33:1,34:1,35:1,36:1,39:1,41:1,42:1,43:1,45:1,48:1,49:1,50:1,51:1,52:1,59:1,60:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1}[e]&&a.push(t[e]=new Promise((function(a,d){for(var c=e+"."+{0:"31d6cfe0d16ae931b73c",1:"92647ec0a7beb8b2898d",2:"31d6cfe0d16ae931b73c",3:"eeb90413029441681f91",4:"92647ec0a7beb8b2898d",5:"31d6cfe0d16ae931b73c",6:"2221bb6a5d920bbb4bb2",7:"31d6cfe0d16ae931b73c",8:"e66ab8f27911a033604f",9:"8ab09f93a5113a634119",10:"31d6cfe0d16ae931b73c",11:"8b65dc2e0d8b6e5041c4",12:"ef8057448f3a7ae1c3d8",13:"9240f13280154f2593b7",14:"8095b40dd1e7deedf401",15:"31d6cfe0d16ae931b73c",16:"d567c9db608f3d98d8de",17:"ec35a19db935279c5b42",18:"31d6cfe0d16ae931b73c",19:"75c30426f9d3ad5ca0c5",20:"31d6cfe0d16ae931b73c",21:"8153544955cdc47262e3",22:"da9773799a06c6066d1e",23:"ee754f50171546186397",24:"e70c1623e0c74477ef2e",25:"31d6cfe0d16ae931b73c",26:"69139a843bc1c84f790b",27:"31d6cfe0d16ae931b73c",28:"3140e8cb507ad2593c76",29:"07af6dca962ea27209f0",30:"31d6cfe0d16ae931b73c",31:"31d6cfe0d16ae931b73c",32:"31d6cfe0d16ae931b73c",33:"02ed7df481ae8243d2f2",34:"4b6099931f57311efc1a",35:"999f0e072062b7369a1a",36:"f315a19c17d5636af8f7",37:"31d6cfe0d16ae931b73c",38:"31d6cfe0d16ae931b73c",39:"74a7bc3b464cd284827f",40:"31d6cfe0d16ae931b73c",41:"8fa0fb0bd4ad0241ef2f",42:"9078fb8f1629e3eee9bd",43:"8bf90585004742c338c5",44:"31d6cfe0d16ae931b73c",45:"12a19785e3864bd62a76",46:"31d6cfe0d16ae931b73c",47:"31d6cfe0d16ae931b73c",48:"a3fdb9dd54af71b3bda6",49:"d723843c9192493b8c13",50:"8d5cba5b90176d3d2e3d",51:"300c3df03ca063ec03a0",52:"29cec22b3525b47af67e",53:"31d6cfe0d16ae931b73c",54:"31d6cfe0d16ae931b73c",55:"31d6cfe0d16ae931b73c",56:"31d6cfe0d16ae931b73c",57:"31d6cfe0d16ae931b73c",58:"31d6cfe0d16ae931b73c",59:"418f1db161eefae63284",60:"d4583c71cca790a25900",61:"31d6cfe0d16ae931b73c",62:"31d6cfe0d16ae931b73c",63:"898a61bf08239711dc74",64:"6f232bdb0fb4cdcc2d7d",65:"556980fc277562af83c8",66:"84b4001b5c622a569dde",67:"19c83a0c303c290216d2",68:"fa7424ae9c5fe5483aac",69:"094b4a764d3dc17820cf",70:"c27146ec029eda556108",71:"15e639d294c4209f256e",72:"07441fd67b864b86147b",73:"6b8b9e5e2c8e2b753cb8",74:"8c591c252b2e7ad8f744",75:"fefbc386c59bf7d4f9f7",
2
- 76:"f14d71a31295d8cd8d8b",77:"9c35f7046b848fbfd7f5",78:"0d502ab4d94441708606",79:"b990749a4839f9123f26",80:"5bdd53d5fc42d40eee28",81:"552e046aa828739c508b",82:"e06fe84c8cdead4bd52e",83:"e238aa056c5d4827cbdd",84:"bb4fc57627c8626019fd",85:"e0ba32bafcab02208901",86:"9244fc2bcc2370425a15",87:"605cbc508223ec27341c",88:"158dd8a18e176936a343",89:"5f142643917701de773b",90:"877114560c4828a97702",91:"2142b248a2bb29549a99",92:"e46f0aa06bcdbddf3831",93:"17d34ca77a7fc85a24d9",94:"b204218cb73b576333a1",95:"51244d1c4baf49d08807",96:"be9ad3d6a7c91501bb55","study-property-pages-with-definitions":"31d6cfe0d16ae931b73c","general-property-page":"31d6cfe0d16ae931b73c","lt-property-pages-with-definitions":"31d6cfe0d16ae931b73c","compare-model":"31d6cfe0d16ae931b73c","export-data":"31d6cfe0d16ae931b73c","lt-pane-views":"31d6cfe0d16ae931b73c",react:"31d6cfe0d16ae931b73c","change-interval-dialog":"31d6cfe0d16ae931b73c","simple-dialog":"31d6cfe0d16ae931b73c","go-to-date-dialog-impl":"31d6cfe0d16ae931b73c","currency-label-menu":"31d6cfe0d16ae931b73c","study-template-dialog":"31d6cfe0d16ae931b73c","study-market":"31d6cfe0d16ae931b73c",moment:"31d6cfe0d16ae931b73c","symbol-info-dialog-impl":"31d6cfe0d16ae931b73c","line-tools-icons":"31d6cfe0d16ae931b73c","floating-toolbars":"31d6cfe0d16ae931b73c","restricted-toolset":"31d6cfe0d16ae931b73c","drawing-toolbar":"31d6cfe0d16ae931b73c","chart-bottom-toolbar":"31d6cfe0d16ae931b73c","header-toolbar":"31d6cfe0d16ae931b73c","context-menu-renderer":"31d6cfe0d16ae931b73c","lollipop-tooltip-renderer":"31d6cfe0d16ae931b73c","chart-widget-gui":"31d6cfe0d16ae931b73c","chart-screenshot-hint":"31d6cfe0d16ae931b73c","chart-event-hint":"31d6cfe0d16ae931b73c",redux:"31d6cfe0d16ae931b73c","new-edit-object-dialog":"31d6cfe0d16ae931b73c","general-chart-properties-dialog":"31d6cfe0d16ae931b73c","source-properties-editor":"31d6cfe0d16ae931b73c","object-tree-dialog":"31d6cfe0d16ae931b73c","new-confirm-inputs-dialog":"31d6cfe0d16ae931b73c","load-chart-dialog":"31d6cfe0d16ae931b73c","add-compare-dialog":"31d6cfe0d16ae931b73c","symbol-search-dialog":"31d6cfe0d16ae931b73c","series-pane-views":"31d6cfe0d16ae931b73c","study-pane-views":"31d6cfe0d16ae931b73c","take-chart-image-impl":"31d6cfe0d16ae931b73c",hammerjs:"31d6cfe0d16ae931b73c","custom-intervals-add-dialog":"31d6cfe0d16ae931b73c","share-chart-to-social-utils":"31d6cfe0d16ae931b73c","full-tooltips-popup":"31d6cfe0d16ae931b73c","show-theme-save-dialog":"31d6cfe0d16ae931b73c","manage-drawings-dialog":"31d6cfe0d16ae931b73c","series-icons-map":"31d6cfe0d16ae931b73c"}[e]+("rtl"===document.dir?".rtl.css":".css"),f=o.p+c,b=document.getElementsByTagName("link"),r=0;r<b.length;r++){var i=(l=b[r]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===c||i===f))return a()}var n=document.getElementsByTagName("style");for(r=0;r<n.length;r++){var l;if((i=(l=n[r]).getAttribute("data-href"))===c||i===f)return a()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=a,s.onerror=function(a){
3
- var c=a&&a.target&&a.target.src||f,b=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");b.code="CSS_CHUNK_LOAD_FAILED",b.request=c,delete t[e],s.parentNode.removeChild(s),d(b)},s.href=f,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){t[e]=0})));var d=f[e];if(0!==d&&!{1:1,3:1,4:1,6:1,8:1,9:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,21:1,22:1,23:1,24:1,26:1,28:1,29:1,33:1,34:1,35:1,36:1,39:1,41:1,42:1,43:1,45:1,48:1,49:1,50:1,51:1,52:1,59:1,60:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1}[e])if(d)a.push(d[2]);else{var c=new Promise((function(a,c){d=f[e]=[a,c]}));a.push(d[2]=c);var b,r=document.createElement("script");r.charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.src=function(e){return o.p+""+({"study-property-pages-with-definitions":"study-property-pages-with-definitions","general-property-page":"general-property-page","lt-property-pages-with-definitions":"lt-property-pages-with-definitions","compare-model":"compare-model","export-data":"export-data","lt-pane-views":"lt-pane-views",react:"react","change-interval-dialog":"change-interval-dialog","simple-dialog":"simple-dialog","go-to-date-dialog-impl":"go-to-date-dialog-impl","currency-label-menu":"currency-label-menu","study-template-dialog":"study-template-dialog","study-market":"study-market",moment:"moment","symbol-info-dialog-impl":"symbol-info-dialog-impl","line-tools-icons":"line-tools-icons","floating-toolbars":"floating-toolbars","restricted-toolset":"restricted-toolset","drawing-toolbar":"drawing-toolbar","chart-bottom-toolbar":"chart-bottom-toolbar","header-toolbar":"header-toolbar","context-menu-renderer":"context-menu-renderer","lollipop-tooltip-renderer":"lollipop-tooltip-renderer","chart-widget-gui":"chart-widget-gui","chart-screenshot-hint":"chart-screenshot-hint","chart-event-hint":"chart-event-hint",redux:"redux","new-edit-object-dialog":"new-edit-object-dialog","general-chart-properties-dialog":"general-chart-properties-dialog","source-properties-editor":"source-properties-editor","object-tree-dialog":"object-tree-dialog","new-confirm-inputs-dialog":"new-confirm-inputs-dialog","load-chart-dialog":"load-chart-dialog","add-compare-dialog":"add-compare-dialog","symbol-search-dialog":"symbol-search-dialog","series-pane-views":"series-pane-views","study-pane-views":"study-pane-views","take-chart-image-impl":"take-chart-image-impl",hammerjs:"hammerjs","custom-intervals-add-dialog":"custom-intervals-add-dialog","share-chart-to-social-utils":"share-chart-to-social-utils","full-tooltips-popup":"full-tooltips-popup","show-theme-save-dialog":"show-theme-save-dialog","manage-drawings-dialog":"manage-drawings-dialog","series-icons-map":"series-icons-map"}[e]||e)+"."+{0:"d46f0b5e9380d7893de5",1:"f02c87d35fbc8ffcaedb",2:"60931787a6734697ac13",3:"76c398b01b707e5b251c",4:"c7430b8d89cddcf51345",5:"5e97b270ab80d99e9085",6:"2d67b0ae77825dbd455d",7:"2c7c4f8a49c6380227de",8:"ffab20b86db484062268",
4
- 9:"84ecbc930e51cb26d06a",10:"21e665b7935d5bc4ba64",11:"df012db70159a159d927",12:"37750b21f6d8d35c6e6e",13:"699469c73d09b7add56d",14:"d1148b38d59df9ca5061",15:"44f2acca80348a1da1a6",16:"680572949c1125757d35",17:"404a01f527881dfff424",18:"78de69cfba051874e071",19:"048f7f5d36fef428ca8d",20:"bc09ed47c5a62e1bc5c2",21:"4c7b5cccb67a95e7e782",22:"ca4300bcf614d8d5f4ab",23:"256ba98e6a03200bdeba",24:"bc4fafedb1730259aa10",25:"7416db26ed3dcc87c05a",26:"3aeec391d4e6e19989ee",27:"e3ec08b1fb9df5f36ada",28:"9f103042c27ea2df422f",29:"3df8712b85d45a626aa0",30:"0b732ccb122d160480b6",31:"8d2b7a538755fd1bb760",32:"13ce02217cf8f9dd6d90",33:"4d0dd1f7001fc02099bb",34:"c9baa59add71a1e48fd2",35:"ed9e360f9686ad3a9497",36:"1882d1a8d312a0e193e9",37:"90129e4904155350d6a1",38:"41f3d509b61c8af47de3",39:"bc1e9ce938fd5152831f",40:"b59f41ba4cacbfb8acc3",41:"a19b0ae5d68f855d2753",42:"494986b0981f6d116fef",43:"619c5ed4a592cc2965a4",44:"0a7df307e4f397763ce8",45:"db9dbd3e9bfeca5333da",46:"f1d4cfe6d6f830b4a011",47:"a3da3f774c90bd22798e",48:"a93f9cb8b1bcc0e0f21e",49:"bacd609f7eb77a4a4b68",50:"b282667dddcb7fe1569a",51:"11871c50951db825ace3",52:"0379a85baae3ab43b15c",53:"1d3ec98cfb8e19affb1c",54:"bb5888ae55ea0a253a5b",55:"3c35a629db21ab961f11",56:"b3e69145c0fee614443d",57:"236996ec416da4c1f683",58:"7ffac4ba908b95705e63",59:"397cb6699b74d64072a8",60:"6b5eced2ef8fa856be88",61:"38a3040c925fadff7b64",62:"63b309f5f8da9ca013b8",63:"8255c7f5191bcafcee7c",64:"ec4b4d03b28c77658dde",65:"f895a78b4e04257983ff",66:"2979e9b7c35e7bf03a37",67:"25fd4b78c8c514988aeb",68:"8b4124c875484d11fd94",69:"43756a5c7477730eb0c4",70:"cb9d1bb5a00896c1bb97",71:"6a9d0842f5e48f68399c",72:"e3925aaf38d2c8997638",73:"8ca1a096c5bdc2e5fb8a",74:"34dcc0d3cd1bbfa5e951",75:"1c9a3a6524248ddf88bf",76:"5d20bed213399f326603",77:"3e4ccccc7d3eb03c488f",78:"1d1d47a915b06f1496fb",79:"86e92b77f8cf32e6bc37",80:"b5bc6acec3b531a510a9",81:"e6a1f76017a44b03480b",82:"8c2919e6c8f54e36e9e6",83:"f3e53bb5a5940e084955",84:"8acc496b4deeeeefb5af",85:"39c78fbeaabae306f343",86:"4bbbb9e6262243419986",87:"cf03fa0a76bfcadd157d",88:"d1e3aec63ece25f6b8a9",89:"d8aa43b4b9378722d572",90:"ce47bb68fc3fc88b5590",91:"a9b79ef7ba0a62311a53",92:"76d5ca7ebec10a1a7a12",93:"6de56ef1975f4a31e542",94:"231bea5fb12b806ef287",95:"6f7da80aac5cf2bf77d6",96:"43bb935eee30715afff7","study-property-pages-with-definitions":"ca4fc2ef5a4deff8c0bb","general-property-page":"32bdfdbafbd81d9e83c6","lt-property-pages-with-definitions":"a5e8283e77afa66b5636","compare-model":"0e6bbdc5f5942c9a716e","export-data":"c819cfa996e2815ff11d","lt-pane-views":"4d2ee6c5330cd3760eb0",react:"9f2899b40ad0e104f6c9","change-interval-dialog":"e928f8dec65c9244cafe","simple-dialog":"bd79f02afd512f0f36dd","go-to-date-dialog-impl":"3481c4fcfde2f4d46426","currency-label-menu":"a7a0c0e44d64b092f2cc","study-template-dialog":"fe56a9893a3695e93531","study-market":"3efd7bf7bc6e6fc7db2d",moment:"78e587a83a009ca48cda","symbol-info-dialog-impl":"17daedab6f893acdeae4","line-tools-icons":"090f39d92664af3915a5","floating-toolbars":"d78a058b82ab09013aac",
5
- "restricted-toolset":"08fefbae2bc0877b0ef2","drawing-toolbar":"8cc497633535648562e7","chart-bottom-toolbar":"b2e895a5fd3f204fb6b6","header-toolbar":"4bff61e047f9b8379494","context-menu-renderer":"7f6f59270ef0f3afa2ed","lollipop-tooltip-renderer":"6705b971a2e73c26ecad","chart-widget-gui":"226991e9f53aba124fc2","chart-screenshot-hint":"14bfec43c52bc3d28f82","chart-event-hint":"94e94e93f9fdee936b66",redux:"43c3f6d214bcf2d1fbd1","new-edit-object-dialog":"0ed1c3834cfc0e834aed","general-chart-properties-dialog":"b08948e0c90aebf07ebd","source-properties-editor":"e858d44541ebb6f974a2","object-tree-dialog":"8e2b7eb9ba2f1dbfbc11","new-confirm-inputs-dialog":"00d79c2263e005170345","load-chart-dialog":"6cc1a47b17698c0108cb","add-compare-dialog":"f980c19f222ff9cb8fe6","symbol-search-dialog":"fd3311eee8604f807c80","series-pane-views":"eefe35e1c508ac16c102","study-pane-views":"9a873dcf74adedf7600b","take-chart-image-impl":"c0e6073dcac3041eecf2",hammerjs:"e5489031ed611f47bf09","custom-intervals-add-dialog":"bb64431fb1c6d852f9f1","share-chart-to-social-utils":"c225af2051efd23269e0","full-tooltips-popup":"96fc751e06523b742440","show-theme-save-dialog":"f81ebf1b2ce08f4399fd","manage-drawings-dialog":"1c0c3737002fa63fe6a6","series-icons-map":"ec8043f64d8b06dbce29"}[e]+".js"}(e);var i=new Error;b=function(a){r.onerror=r.onload=null,clearTimeout(n);var d=f[e];if(0!==d){if(d){var c=a&&("load"===a.type?"missing":a.type),t=a&&a.target&&a.target.src;i.message="Loading chunk "+e+" failed.\n("+c+": "+t+")",i.name="ChunkLoadError",i.type=c,i.request=t,d[1](i)}f[e]=void 0}};var n=setTimeout((function(){b({type:"timeout",target:r})}),12e4);r.onerror=r.onload=b,document.head.appendChild(r)}return Promise.all(a)},o.m=e,o.c=c,o.d=function(e,a,d){o.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:d})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,a){if(1&a&&(e=o(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var d=Object.create(null);if(o.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var c in e)o.d(d,c,function(a){return e[a]}.bind(null,c));return d},o.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(a,"a",a),a},o.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},o.p="bundles/",o.p=window.WEBPACK_PUBLIC_PATH||o.p;var r=o.e,i=Object.create(null);o.e=function(e){if(!i[e]){i[e]=function e(a,d){return r(a).catch((function(){return new Promise((function(c){var t=function(){window.removeEventListener("online",t,!1),!1===navigator.onLine?window.addEventListener("online",t,!1):c(d<2?e(a,d+1):r(a))};setTimeout(t,d*d*1e3)}))}))}(e,0);var a=function(){delete i[e]};i[e].then(a,a)}return i[e]},o.oe=function(e){throw console.error(e),e};var n=window.webpackJsonp=window.webpackJsonp||[],l=n.push.bind(n);n.push=a,n=n.slice();for(var s=0;s<n.length;s++)a(n[s]);var p=l;d()}([]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["series-icons-map"],{"1uoO":function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M9 8v12h3V8H9zm-1-.502C8 7.223 8.215 7 8.498 7h4.004c.275 0 .498.22.498.498v13.004a.493.493 0 0 1-.498.498H8.498A.496.496 0 0 1 8 20.502V7.498z"/><path d="M10 4h1v3.5h-1z"/><path d="M17 6v6h3V6h-3zm-1-.5c0-.276.215-.5.498-.5h4.004c.275 0 .498.23.498.5v7c0 .276-.215.5-.498.5h-4.004a.503.503 0 0 1-.498-.5v-7z"/><path d="M18 2h1v3.5h-1z"/></svg>'},EsZh:function(h,v,z){"use strict";z.r(v),z.d(v,"SERIES_ICONS",(function(){return w}));var t=z("G2sT"),m=z("Jtxf"),o=z("pqsj"),r=z("1uoO"),s=z("FO3N"),n=z("t2Sj"),e=z("fD7T"),i=z("VgwI");const w={3:t,0:m,1:o,8:r,9:s,2:n,10:e,12:i}},FO3N:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v11h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v5h-1zm0 14h1v5h-1zM8.5 9H10v1H8.5zM11 9h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11z"/></svg>'},G2sT:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M12.5 17.207L18.707 11h2l3.647-3.646-.708-.708L20.293 10h-2L12.5 15.793l-3-3-4.854 4.853.708.708L9.5 14.207z"/><path d="M9 16h1v1H9zm1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-3-3h1v1H8zm-1 1h1v1H7zm-1 1h1v1H6zm2 0h1v1H8zm-1 1h1v1H7zm-2 0h1v1H5zm17-9h1v1h-1zm1-1h1v1h-1zm0 2h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-5-7h1v1h-1zm2 0h1v1h-1zm1-1h1v1h-1zm-2 2h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-2-6h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-3-3h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1z"/></svg>'},Jtxf:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor" stroke-linecap="square"><path d="M10.5 7.5v15M7.5 20.5H10M13.5 11.5H11M19.5 6.5v15M16.5 9.5H19M22.5 16.5H20"/></g></svg>'},VgwI:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M7.5 7H7v14h5V7H7.5zM8 20V8h3v12H8zm7.5-11H15v10h5V9h-4.5zm.5 9v-8h3v8h-3z"/></svg>'},fD7T:function(h,v){
2
- h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor"><path stroke-dasharray="1,1" d="M4 14.5h22"/><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 12.5l2-4 1 2 2-4 3 6"/><path stroke-linecap="round" d="M5.5 16.5l-1 2"/><path stroke-linecap="round" stroke-linejoin="round" d="M17.5 16.5l2 4 2-4m2-4l1-2-1 2z"/></g></svg>'},pqsj:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v12h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v3.5h-1zm0 16.5h1V24h-1z"/></svg>'},t2Sj:function(h,v){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.982 16.689L17.192 12h3.033l4.149-4.668-.748-.664L19.776 11h-2.968l-4.79 4.311L9 12.293l-4.354 4.353.708.708L9 13.707z"/></svg>'}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["series-pane-views"],{"+weX":function(t,e,i){"use strict";var a=i("aO4+").Point,s=i("YFKU").t,r=i("Zy3/").CompositeRenderer,n=i("gQ5K").DateFormatter,l=i("4kQX").TimeFormatter,d=i("ikwP").calcTextHorizontalShift,o=i("Ialn").isRtl,h=i("zDbI").CHART_FONT_FAMILY,_=i("cPgM").ScaledPaneRenderer;class m extends _{constructor(){super(),this._data=null}setData(t){this._data=t}hitTest(){return null}_drawImpl(t){if(null!==this._data){var e=Math.round(4.5),i=0;t.save(),t.setFont("12px "+h);var a=s("Last available bar");if(this._data.eod)i=t.measureText(a).width;else{var r=t.measureText(this._data.dateString||"").width,n=t.measureText(this._data.timeString||"").width;i=Math.max(r,n)}var l=this._data.timeString?2:1,_=document.querySelector("html").classList.contains("theme-dark");t.fillStyle=_?"#50535E":"#2A2E39",t.translate(this._data.point.x+.5,this._data.point.y+.5);var m=Math.round(-i/2)-8,u=-17*l-8-4-5,T=Math.round(m+i+16);if(t.beginPath(),t.moveTo(m+2,u),t.lineTo(T-2,u),t.arcTo(T,u,T,u+2,2),t.lineTo(T,-11),t.arcTo(T,-9,T-2,-9,2),t.lineTo(6,-9),t.lineTo(0,-5),t.lineTo(-6,-9),t.lineTo(m+2,-9),t.arcTo(m,-9,m,-11,2),t.lineTo(m,u+2),t.arcTo(m,u,m+2,u,2),t.fill(),t.fillStyle="#F0F3FA",t.textBaseline="middle",t.textAlign=o()?"right":"left",this._data.eod){var c=d(t,i);t.fillText(a,m+8+c,u+(-9-u)/2)}else{var p=m+8+(i-r)/2,v=d(t,r);if(t.fillText(this._data.dateString,p+v,u+e+8),this._data.timeString){var f=d(t,n),g=m+8+(i-n)/2;t.fillText(this._data.timeString,g+f,u+17*l-e)}}t.restore()}}}t.exports.GotoDateView=class{constructor(t,e){this._gotoDateResult=e,this._series=t,this._invalidated=!0,this._renderer=new m}update(){this._invalidated=!0}updateImpl(){delete this._point,delete this._dateString,delete this._timeString,delete this._eod;var t=this._series.model().timeScale().timePointToIndex(this._gotoDateResult.timestamp),e=this._series.bars(),i=null;if(t<e.firstIndex()&&null!==e.first()?(t=e.firstIndex(),i=e.first().value):t>e.lastIndex()&&null!==e.last()?(t=e.lastIndex(),i=e.last().value):i=e.valueAt(t),null!==i){var s=this._series.firstValue();if(null!=s){var r=this._series.priceScale().priceToCoordinate(i[TradingView.HIGH_PLOT],s),d=this._series.model().timeScale().indexToCoordinate(t);if(this._point=new a(d,r),this._gotoDateResult.eod)this._eod=!0;else{var o=this._series.model().timeScale().indexToUserTime(t);this._dateString=(new n).format(o),this._series.isDWM()||(this._timeString=(new l).format(o))}}}}renderer(){return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._point?(this._renderer.setData({point:this._point,dateString:this._dateString,timeString:this._timeString,eod:this._eod}),this._renderer):new r}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["share-chart-to-social-utils"],{E5mD:function(t,n,o){"use strict";var e;o.r(n),o.d(n,"Twitter",(function(){return e})),function(t){function n(t,n){return"cme"===TradingView.widgetCustomer?n+" from cmegroup.com via @tradingview $"+t:`Check out my #${t} analysis on @TradingView: ${n}`}function o(t="about:blank",n="snapshot_tweet"){const o=Math.round(screen.width/2-275),e=Math.round(screen.height/2-210);return window.open(t,n,`scrollbars=yes,resizable=yes,toolbar=no,location=yes,\n\t\t\t\twidth=550,height=420,\n\t\t\t\tleft=${o},top=${e}`)}t.getStatus=n,t.shareSnapshot=function(t){const e=o();return{onFailure:()=>{e.close()},onSuccess:o=>{e.location.href=function(t,o){return"https://twitter.com/intent/tweet?&text="+encodeURIComponent(n(t,function(t){return window.location.protocol+"//"+window.location.host+"/x/"+t+"/"}(o)))}(t,o)}}},t.shareSnapshotInstantly=function(t,e){o(function(t,o){return"https://twitter.com/intent/tweet?&text="+encodeURIComponent(n(t,o))}(t,e))}}(e||(e={}))}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["show-theme-save-dialog"],{KeOl:function(e,t,n){"use strict";n.r(t),n.d(t,"showThemeSaveDialog",(function(){return m}));var o=n("YFKU"),a=n("fZEr"),s=n("EsvI"),i=n("JWMC");function m(e,t){function n(n){Object(s.saveTheme)(n,e).then(()=>{t&&t(n)}),Object(i.trackEvent)("GUI","Themes","Save custom theme")}Object(a.showRename)({title:Object(o.t)("Save Theme As"),text:Object(o.t)("Theme name")+":",maxLength:128,onRename:({newValue:e,focusInput:t,dialogClose:i,innerManager:m})=>new Promise(c=>{Object(s.isThemeExist)(e).then(s=>{if(s){const s=Object(o.t)("Color Theme '__themeName__' already exists. Do you really want to replace it?",{themeName:e});Object(a.showConfirm)({text:s,onConfirm:({dialogClose:t})=>{n(e),t(),i()},onClose:t},m).then(()=>{c()})}else n(e),c(),i()})})})}}}]);
@@ -1,6 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["simple-dialog"],{"+l/S":function(e,t,n){},"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("q1tI");class a extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},"2A9e":function(e){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"}')},"3tYt":function(e,t,n){e.exports={label:"label-32bOLbsS",input:"input-32bOLbsS"}},"6KyJ":function(e,t,n){"use strict";var o,a=n("q1tI"),r=n("TSYQ"),i=n("K9GE"),l=n("YZ9j");n("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(o||(o={}));class c extends a.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:o.Initial}}render(){const{className:e,color:t="black"}=this.props,n=r(l.item,{[l[t]]:Boolean(t)});return a.createElement("span",{className:r(l.loader,e,this._getStateClass())},a.createElement("span",{className:n}),a.createElement("span",{className:n}),a.createElement("span",{className:n}))}componentDidMount(){this.setState({state:o.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:o.Active})},2*i.b)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case o.Initial:return l["loader-initial"];case o.Appear:return l["loader-appear"];default:return""}}}n.d(t,"a",(function(){return c}))},ASyk:function(e,t,n){e.exports={
2
- "tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},EcUf:function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),a=n.n(o),r=n("YFKU"),i=n("TSYQ"),l=n("Iivm"),c=n("FQhm"),s=n("WXjp"),u=n("/3z9"),d=n("/KDZ"),m=n("ZjKI"),p=n("uhCe"),f=n("tmL0"),h=n("mwqF"),b=n("6KyJ"),v=n("Eyy1"),g=n("PR+g"),w=n("+EG+");const E=a.a.createContext({isSmallTablet:!1,dialogCloseHandler:()=>{}});var O=n("G4Ee");function C(e){const{disabled:t,name:n,title:r,appearance:l,intent:c,handler:s,reference:u}=e,{isSmallTablet:d,dialogCloseHandler:m}=Object(o.useContext)(E),p=Object(v.ensureNotNull)(Object(o.useContext)(w.b)),f=Object(g.a)(),[C,y]=Object(o.useState)(!1);return a.a.createElement(h.a,{disabled:t,reference:u,className:i(O.actionButton,d&&O.small),name:n,size:d?"l":void 0,appearance:l,intent:c,onClick:function(){if(C)return;const e=s({dialogClose:m,innerManager:p});e&&(y(!0),e.then(()=>{f.current&&y(!1)}))}},a.a.createElement("span",{className:i(C&&O.hiddenTitle)},r),C&&a.a.createElement(b.a,{color:"white"}))}var y=n("zztK"),S=n("yKGJ");function j(e){const{title:t,onClose:n,actions:r,dataName:h,popupDialogClassName:b,backdrop:v,closeOnOutsideClick:g=!0}=e;Object(o.useEffect)(()=>(c.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null),()=>{c.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null)}),[n]);const[w,O]=Object(o.useState)(!0),j=Object(o.useRef)(null);return a.a.createElement(d.a,{rule:p.a.TabletSmall},o=>a.a.createElement(E.Provider,{value:{isSmallTablet:o,dialogCloseHandler:n}},a.a.createElement(s.a,{className:i(S.popupDialog,b),isOpened:w,backdrop:v,onClickBackdrop:x,onClickOutside:g?x:void 0,onKeyDown:N,autofocus:!0,fixedBody:!0},a.a.createElement("div",{className:S.wrap,"data-name":h},a.a.createElement("div",{className:i(S.main,o&&S.small)},a.a.createElement("div",{className:i(S.title,o&&S.small)},t),function(t){if("html"in e)return a.a.createElement(f.a,{className:i(S.content,t&&S.small,S.html),dangerouslySetInnerHTML:{__html:e.html}});if("content"in e)return a.a.createElement(f.a,{className:i(S.content,t&&S.small)},e.content);return null}(o),r&&r.length>0&&a.a.createElement("div",{className:i(S.footer,o&&S.small)},r.map((e,t)=>a.a.createElement(C,{...e,key:e.name,reference:0===t?j:void 0})))),a.a.createElement(l.a,{className:i(S.close,o&&S.small),icon:y,onClick:x,"data-name":"close","data-role":"button"})))));function N(e){switch(Object(u.hashFromEvent)(e)){case 27:w&&(e.preventDefault(),n());break;case 13:if(w&&r&&r.length){e.preventDefault();const t=j.current;t&&t.click()}}}function x(){O(!1),n()}}function N(e){return"html"in e?{html:e.html}:{content:e.text}}var x=n("wHCJ"),k=n("3tYt");function T(e){const{maxLength:t,value:n,placeholder:r,onValueChange:i,nameInputRef:l}=e,{isSmallTablet:c}=Object(o.useContext)(E),s=a.a.useRef(null);return Object(o.useLayoutEffect)(()=>{s.current&&s.current.select()},[]),a.a.createElement(a.a.Fragment,null,function(){if("content"in e)return a.a.createElement("div",{
3
- className:k.label},e.content);if("html"in e)return a.a.createElement("div",{className:k.label,dangerouslySetInnerHTML:{__html:e.html}});return null}(),a.a.createElement(x.a,{inputClassName:k.input,autoComplete:"no",size:c?"large":void 0,reference:function(e){s.current=e,l&&(l.current=e)},value:n,placeholder:r,maxLength:t,onChange:function(e){i(e.currentTarget.value)}}))}function _(e){return Boolean(e.trim())}function L(e){const{buttonText:t,intentButton:n,actions:o}=e,a=[{name:"ok",title:t||Object(r.t)("Ok"),intent:n,handler:({dialogClose:e})=>{e()}}];return o&&o.forEach(e=>a.push(e)),a}var D=n("i8i4"),I=n.n(D);const A=new(n("Gtzb").a);n.d(t,"confirmModule",(function(){return M})),n.d(t,"renameModule",(function(){return P})),n.d(t,"warningModule",(function(){return B})),n.d(t,"showSimpleDialog",(function(){return q}));const M=function(e){const{title:t,onClose:n=(()=>{}),mainButtonText:o,mainButtonIntent:i,cancelButtonText:l,closeOnOutsideClick:c,onConfirm:s,onCancel:u}=e,d=N(e);return a.a.createElement(j,{...d,title:t||Object(r.t)("Confirmation"),onClose:n,actions:[{name:"yes",title:o||Object(r.t)("Yes"),intent:i||"success",handler:s},{name:"no",title:l||Object(r.t)("No"),appearance:"stroke",intent:"default",handler:e=>{u?u(e):e.dialogClose()}}],dataName:"confirm-dialog",closeOnOutsideClick:c})},P=function(e){const{title:t,maxLength:n,initValue:i,placeholder:l,onClose:c=(()=>{}),mainButtonText:s,mainButtonIntent:u,cancelButtonText:d,validator:m=_,onRename:p}=e,f=Object(o.useRef)(null),[h,b]=Object(o.useState)(i||""),[v,g]=Object(o.useState)(()=>m(h)),w=N(e);return a.a.createElement(j,{title:t||Object(r.t)("Rename"),content:a.a.createElement(T,{...w,nameInputRef:f,maxLength:n,placeholder:l,value:h,onValueChange:function(e){b(e),g(m(e))}}),onClose:c,actions:[{disabled:!v,name:"save",title:s||Object(r.t)("Save"),intent:u||"primary",handler:({dialogClose:e,innerManager:t})=>p({newValue:h,focusInput:E,dialogClose:e,innerManager:t})},{name:"cancel",title:d||Object(r.t)("Cancel"),appearance:"stroke",intent:"default",handler:({dialogClose:e})=>{e()}}],dataName:"rename-dialog"});function E(){f.current&&f.current.focus()}},B=function(e){const{title:t,closeOnOutsideClick:n,onClose:o=(()=>{})}=e,i=N(e);return a.a.createElement(j,{...i,title:t||Object(r.t)("Warning"),onClose:o,actions:L(e),dataName:"warning-dialog",closeOnOutsideClick:n})},q=function(e,t,n){const{title:o}=e,r=`${o}_${"text"in e?e.text:e.html}`;if(A.isOpened(r))return Object(v.ensureDefined)(A.getDialogPayload(r)).closeHandler;const i=document.createElement("div"),l=()=>{var t;null===(t=e.onClose)||void 0===t||t.call(e),I.a.unmountComponentAtNode(i),A.setAsClosed(r)};return I.a.render(a.a.createElement(w.b.Provider,{value:n||null},a.a.createElement(t,{...e,onClose:l})),i),A.setAsOpened(r,{closeHandler:l}),l}},G4Ee:function(e,t,n){e.exports={actionButton:"actionButton-3wPv1Zy2",small:"small-3wPv1Zy2",hiddenTitle:"hiddenTitle-3wPv1Zy2"}},Gtzb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));class o{constructor(){
4
- this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const a=new o},O7m7:function(e,t,n){},"PR+g":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("q1tI");const a=()=>{const e=Object(o.useRef)(!1);return Object(o.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},R5JZ:function(e,t,n){"use strict";function o(e,t,n,o,a){function r(a){if(e>a.timeStamp)return;const r=a.target;void 0!==n&&null!==t&&null!==r&&r.ownerDocument===o&&(t.contains(r)||n(a))}return a.click&&o.addEventListener("click",r,!1),a.mouseDown&&o.addEventListener("mousedown",r,!1),a.touchEnd&&o.addEventListener("touchend",r,!1),a.touchStart&&o.addEventListener("touchstart",r,!1),()=>{o.removeEventListener("click",r,!1),o.removeEventListener("mousedown",r,!1),o.removeEventListener("touchend",r,!1),o.removeEventListener("touchstart",r,!1)}}n.d(t,"a",(function(){return o}))},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"}')},ijHL:function(e,t,n){"use strict";function o(e){return r(e,i)}function a(e){return r(e,l)}function r(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function i(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function l(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return l}))},mwqF:function(e,t,n){"use strict";var o=n("q1tI"),a=n.n(o),r=n("TSYQ"),i=n("wwkJ"),l=n("ZWNO");function c(e,t){const{intent:n="primary",size:o="m",appearance:a="default",useFullWidth:i=!1,tabIndex:c=0,icon:s,className:u,isGrouped:d,cellState:m,disablePositionAdjustment:p=!1}=t,f=function(e,t){let n="";return 0!==e&&(1&e&&(n=r(n,t["no-corner-top-left"])),2&e&&(n=r(n,t["no-corner-top-right"])),4&e&&(n=r(n,t["no-corner-bottom-right"])),8&e&&(n=r(n,t["no-corner-bottom-left"]))),n}(Object(l.a)(m),e);return r(u,e.button,e["size-"+o],e["intent-"+n],e["appearance-"+a],i&&e["full-width"],-1===c&&e.noOutline,s&&"s"!==o&&e["with-icon"],f,d&&e.grouped,!p&&e["adjust-position"],m.isTop&&e["first-row"],m.isLeft&&e["first-col"])}var s=n("2A9e");n("+l/S");function u(e){const{className:t,intent:n,size:l,appearance:u,disabled:d,useFullWidth:m,reference:p,icon:f,children:h,tabIndex:b,...v}=e,{isGrouped:g,cellState:w,disablePositionAdjustment:E}=Object(o.useContext)(i.a),O=c(s,{intent:n,size:l,appearance:u,disabled:d,useFullWidth:m,tabIndex:b,icon:f,isGrouped:g,cellState:w,disablePositionAdjustment:E});return a.a.createElement("button",{className:r(O,t),disabled:d,ref:p,tabIndex:b,...v},f&&"s"!==l&&a.a.createElement("span",{className:s.icon},f),a.a.createElement("span",{
5
- className:s.content},h))}n.d(t,"a",(function(){return u}))},tmL0:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("q1tI"),a=n.n(o),r=n("x0D+"),i=n("Eyy1"),l=n("qFKp");function c(e){const{reference:t,children:n,...i}=e,c=Object(o.useRef)(null),u=Object(o.useCallback)(e=>{t&&(t.current=e),l.CheckMobile.iOS()&&(null!==c.current&&Object(r.enableBodyScroll)(c.current),c.current=e,null!==c.current&&Object(r.disableBodyScroll)(c.current,{allowTouchMove:s(c)}))},[t]);return a.a.createElement("div",{ref:u,...i},n)}function s(e){return t=>{const n=Object(i.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("ASyk");const a={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},"x0D+":function(e,t,n){var o,a,r;a=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),r=[],i=!1,l=-1,c=void 0,s=void 0,u=function(e){return r.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function(e){var t=e||window.event;return!!u(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},m=function(){setTimeout((function(){void 0!==s&&(document.body.style.paddingRight=s,s=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)}))};e.disableBodyScroll=function(e,o){if(a){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!r.some((function(t){return t.targetElement===e}))){var m={targetElement:e,options:o||{}};r=[].concat(t(r),[m]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,o,a,r;1===t.targetTouches.length&&(o=e,r=(n=t).targetTouches[0].clientY-l,!u(n.target)&&(o&&0===o.scrollTop&&0<r||(a=o)&&a.scrollHeight-a.scrollTop<=a.clientHeight&&r<0?d(n):n.stopPropagation()))},i||(document.addEventListener("touchmove",d,n?{passive:!1}:void 0),i=!0)}}else{f=o,setTimeout((function(){if(void 0===s){var e=!!f&&!0===f.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(s=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")}));var p={targetElement:e,options:o||{}};r=[].concat(t(r),[p])}var f},e.clearAllBodyScrollLocks=function(){a?(r.forEach((function(e){e.targetElement.ontouchstart=null,
6
- e.targetElement.ontouchmove=null})),i&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),i=!1),r=[],l=-1):(m(),r=[])},e.enableBodyScroll=function(e){if(a){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,r=r.filter((function(t){return t.targetElement!==e})),i&&0===r.length&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),i=!1)}else 1===r.length&&r[0].targetElement===e?(m(),r=[]):r=r.filter((function(t){return t.targetElement!==e}))}})?o.apply(t,a):o)||(e.exports=r)},yKGJ:function(e,t,n){e.exports={popupDialog:"popupDialog-35doN71j",wrap:"wrap-35doN71j",main:"main-35doN71j",small:"small-35doN71j",title:"title-35doN71j",content:"content-35doN71j",html:"html-35doN71j",footer:"footer-35doN71j",close:"close-35doN71j"}},zztK:function(e,t){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>'}}]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["source-properties-editor"],{CbZh:function(e,t,i){"use strict";i.r(t);i("YFKU");var s=i("q1tI"),o=i("i8i4"),n=i("FQhm"),a=i("Eyy1"),r=(i("bSeV"),i("qFKp")),l=i("Vdly"),c=i.n(l),h=i("ycFu"),d=i("tWVy"),u=i("aDg1"),_=i("pLAj"),p=i("tmL0"),g=i("CW80"),b=i("vHME"),m=i("3ClC"),C=i("qJq3"),P=i("Ss5c"),v=i("GVHu"),f=i("/KDZ"),S=i("LWBq"),y=i("ttKw");class I extends s.PureComponent{constructor(e){super(e),this._activePageRef=s.createRef(),this._getActionPageById=e=>{if(!e)return;const{pages:t}=this.props;return t.find(t=>t.id.toLowerCase()===e.toLowerCase())},this._onChangeActivePageDefinitions=()=>{this.setState({tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()})},this._renderFooterLeft=()=>{const{source:e,model:t}=this.props;return Object(g.isLineTool)(e)?s.createElement(_.a,{source:e,model:t}):s.createElement(f.a,{rule:"screen and (max-width: 428px)"},i=>Object(m.isStudy)(e)&&s.createElement(b.a,{model:t,source:e,mode:i?"compact":"normal"}))},this._subscribe=e=>{e&&e.definitions.subscribe(this._onChangeActivePageDefinitions)},this._unsubscribe=e=>{e&&e.definitions.unsubscribe(this._onChangeActivePageDefinitions)},this._getActiveTabSettingsName=()=>{const{source:e}=this.props;return e instanceof C.Series?"properties_dialog.active_tab.chart":e instanceof P.LineDataSource?"properties_dialog.active_tab.drawing":e instanceof v.Study?"properties_dialog.active_tab.study":""},this._handleSelectPage=e=>{const{activePageId:t}=this.state,i=this._getActionPageById(t),s=this._getActionPageById(e),o=this._getActiveTabSettingsName();t!==e&&(this._unsubscribe(i),o&&c.a.setValue(o,e),this._subscribe(s),this.setState({activePageId:e,tableKey:Date.now()},()=>{this._requestResize&&this._requestResize(),this._focusActivePageFirstTextInput()}))},this._handleScroll=()=>{d.a.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this._closePopupDialog()},this._closePopupDialog=()=>{window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.refresh(),this.props.onClose()};const{pages:t}=this.props;let i;if(this._getActionPageById(this.props.activePageId))i=Object(a.ensureDefined)(this.props.activePageId);else{const e=c.a.getValue(this._getActiveTabSettingsName(),""),s=this._getActionPageById(e);i=s?s.id:t[0].id}this.state={activePageId:i,tableKey:Date.now()},window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.hide()}componentDidMount(){const{activePageId:e}=this.state,t=this._getActionPageById(e);this._focusActivePageFirstTextInput(),this._subscribe(t)}componentWillUnmount(){const{activePageId:e}=this.props,t=this._getActionPageById(e);clearTimeout(this._timeout),this._unsubscribe(t)}render(){var e;const{source:t,onCancel:i}=this.props,{activePageId:o}=this.state,n=(null===(e=t.properties().title)||void 0===e?void 0:e.value())||t.title();return s.createElement(h.a,{dataName:"source-properties-editor",title:n,isOpened:!0,onSubmit:this._handleSubmit,onCancel:i,onClickOutside:this._handleSubmit,onClose:this._closePopupDialog,
2
- footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(o),submitOnEnterKey:!1})}_renderChildren(e){return({requestResize:t})=>{this._requestResize=t;const{pages:i}=this.props,o={allIds:i.map(e=>e.id),byId:i.reduce((e,t)=>({...e,[t.id]:{title:t.title}}),{})},n=i.find(t=>t.id===e);return s.createElement(s.Fragment,null,s.createElement(u.a,{activeTabId:e,onSelect:this._handleSelectPage,tabs:o}),s.createElement(p.a,{className:y.scrollable,onScroll:this._handleScroll},s.createElement(S.a,{page:n,pageRef:this._activePageRef,tableKey:this.state.tableKey})))}}_focusActivePageFirstTextInput(){if(!r.CheckMobile.any()&&this._activePageRef.current){const e=this._activePageRef.current.querySelector("input[type=text],textarea");e&&(this._timeout=setTimeout(()=>{e.focus()},0))}}}var w=i("sQaR");i.d(t,"SourcePropertiesEditorRenderer",(function(){return T}));class T extends w.a{constructor(e){super(),this._timeout=null,this._handleClose=()=>{o.unmountComponentAtNode(this._container),this._setVisibility(!1),this._onClose&&this._onClose(),this._subscription.unsubscribe(this,this._handleCollectionChanged)},this._handleSubmit=()=>{const e=this._source;Object(g.isLineTool)(e)&&e.hasAlert.value()&&setTimeout(()=>{e.localAndServerAlertsMismatch&&e.synchronizeAlert(!0)})},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._propertyPages=e.propertyPages,this._model=e.model,this._activePageId=e.activePageId,this._onClose=e.onClose,this._source=e.source,this._checkpoint=this._ensureCheckpoint(e.undoCheckPoint),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(){o.render(s.createElement(I,{source:this._source,onSubmit:this._handleSubmit,onClose:this._handleClose,onCancel:this._handleCancel,pages:this._propertyPages,model:this._model,activePageId:this._activePageId}),this._container),this._setVisibility(!0),n.emit("drawings_settings_dialog",{objectType:"drawing",scriptTitle:this._source.title()})}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout(()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null}))}_closeDialogIfSourceIsDeleted(){null===this._model.model().dataSourceForId(this._source.id())&&this._handleClose()}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}}},ttKw:function(e,t,i){e.exports={scrollable:"scrollable-2w4-r8AL"}}}]);
@@ -1,7 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["study-market"],{"++0f":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.3" d="M12 9l5 5-5 5"/></svg>'},"+l/S":function(e,t,n){},"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("q1tI");class r extends i.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},"0NLZ":function(e,t,n){e.exports={container:"container-12vIMEmh"}},"2A9e":function(e){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"}')},"2x13":function(e,t,n){e.exports={wrapper:"wrapper-DggvOZTm",container:"container-DggvOZTm",tab:"tab-DggvOZTm",active:"active-DggvOZTm",title:"title-DggvOZTm",icon:"icon-DggvOZTm",titleText:"titleText-DggvOZTm",nested:"nested-DggvOZTm",isTablet:"isTablet-DggvOZTm",isMobile:"isMobile-DggvOZTm"}},"9DSJ":function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",dialog:"dialog-3kc5LZDR",dialogLibrary:"dialogLibrary-3kc5LZDR",listContainer:"listContainer-3kc5LZDR",scroll:"scroll-3kc5LZDR",sidebarContainer:"sidebarContainer-3kc5LZDR",noContentBlock:"noContentBlock-3kc5LZDR"}},An2S:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return p}));var i=n("q1tI"),r=n.n(i),a=n("TSYQ"),s=n.n(a),o=n("Iivm"),l=n("++0f"),c=n("2x13");function u(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}
2
- function d(e){const{mode:t,className:n,...i}=e,{isMobile:a,isTablet:o}=u(t),l=s()(c.container,o&&c.isTablet,a&&c.isMobile,n);return r.a.createElement("div",{...i,className:l,"data-role":"dialog-sidebar"})}function m(e){return r.a.createElement("div",{className:c.wrapper,...e})}function p(e){const{mode:t,title:n,icon:i,isActive:a,onClick:d,...m}=e,{isMobile:p,isTablet:h}=u(t);return r.a.createElement("div",{...m,className:s()(c.tab,h&&c.isTablet,p&&c.isMobile,a&&c.active),onClick:d},r.a.createElement(o.a,{className:c.icon,icon:i}),!h&&r.a.createElement("span",{className:c.title},r.a.createElement("span",{className:c.titleText},n),p&&r.a.createElement(o.a,{className:c.nested,icon:l})))}},PMRz:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",container:"container-3Ywm3-oo",selected:"selected-3Ywm3-oo",disabled:"disabled-3Ywm3-oo",favorite:"favorite-3Ywm3-oo",actions:"actions-3Ywm3-oo",highlighted:"highlighted-3Ywm3-oo",light:"light-3Ywm3-oo","highlight-animation-theme-light":"highlight-animation-theme-light-3Ywm3-oo",dark:"dark-3Ywm3-oo","highlight-animation-theme-dark":"highlight-animation-theme-dark-3Ywm3-oo",pill:"pill-3Ywm3-oo",main:"main-3Ywm3-oo",paddingLeft:"paddingLeft-3Ywm3-oo",isActive:"isActive-3Ywm3-oo",author:"author-3Ywm3-oo",likes:"likes-3Ywm3-oo"}},XfUw: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="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},ZWNO:function(e,t,n){"use strict";function i(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,"a",(function(){return i}))},cu5P:function(e,t,n){e.exports={title:"title-1gYObTuJ",disabled:"disabled-1gYObTuJ",icon:"icon-1gYObTuJ",locked:"locked-1gYObTuJ",open:"open-1gYObTuJ",actionIcon:"actionIcon-1gYObTuJ",selected:"selected-1gYObTuJ",codeIcon:"codeIcon-1gYObTuJ"}},fEjm:function(e,t,n){e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},iYOJ:function(e,t,n){e.exports={title:"title-hq9up-8e",small:"small-hq9up-8e",normal:"normal-hq9up-8e",large:"large-hq9up-8e"}},idtP:function(e,t,n){e.exports={container:"container-39xfFXyr",image:"image-39xfFXyr",title:"title-39xfFXyr",description:"description-39xfFXyr",button:"button-39xfFXyr"}},jPOK:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("q1tI"),r=n("TSYQ"),a=n("Owlf");n("SzKR");function s(e){const t=r("tv-spinner","tv-spinner--shown","tv-spinner--size_"+(e.size||a.a));return i.createElement("div",{className:t,style:e.style,role:"progressbar"},i.createElement("div",{className:"tv-spinner__spinner-layer"},i.createElement("div",{className:"tv-spinner__background tv-spinner__width_element"}),i.createElement("div",{
3
- className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--left"}),i.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--right"})))}},mwqF:function(e,t,n){"use strict";var i=n("q1tI"),r=n.n(i),a=n("TSYQ"),s=n("wwkJ"),o=n("ZWNO");function l(e,t){const{intent:n="primary",size:i="m",appearance:r="default",useFullWidth:s=!1,tabIndex:l=0,icon:c,className:u,isGrouped:d,cellState:m,disablePositionAdjustment:p=!1}=t,h=function(e,t){let n="";return 0!==e&&(1&e&&(n=a(n,t["no-corner-top-left"])),2&e&&(n=a(n,t["no-corner-top-right"])),4&e&&(n=a(n,t["no-corner-bottom-right"])),8&e&&(n=a(n,t["no-corner-bottom-left"]))),n}(Object(o.a)(m),e);return a(u,e.button,e["size-"+i],e["intent-"+n],e["appearance-"+r],s&&e["full-width"],-1===l&&e.noOutline,c&&"s"!==i&&e["with-icon"],h,d&&e.grouped,!p&&e["adjust-position"],m.isTop&&e["first-row"],m.isLeft&&e["first-col"])}var c=n("2A9e");n("+l/S");function u(e){const{className:t,intent:n,size:o,appearance:u,disabled:d,useFullWidth:m,reference:p,icon:h,children:g,tabIndex:f,...v}=e,{isGrouped:b,cellState:_,disablePositionAdjustment:y}=Object(i.useContext)(s.a),w=l(c,{intent:n,size:o,appearance:u,disabled:d,useFullWidth:m,tabIndex:f,icon:h,isGrouped:b,cellState:_,disablePositionAdjustment:y});return r.a.createElement("button",{className:a(w,t),disabled:d,ref:p,tabIndex:f,...v},h&&"s"!==o&&r.a.createElement("span",{className:c.icon},h),r.a.createElement("span",{className:c.content},g))}n.d(t,"a",(function(){return u}))},pr86:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("YFKU");var i=n("q1tI"),r=n("TSYQ"),a=n("Iivm"),s=n("sg5d"),o=n("XfUw"),l=n("fEjm");const c={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function u(e){const{className:t,isFilled:n,isActive:u,onClick:d,...m}=e;return i.createElement(a.a,{...m,className:r(l.favorite,"apply-common-tooltip",n&&l.checked,u&&l.active,t),icon:n?s:o,onClick:d,title:n?c.remove:c.add})}},sg5d: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 fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},vbTm:function(e,t,n){e.exports={container:"container-gb0TB1FN"}},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("q1tI");const r=e=>{const t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[r,a]=Object(i.useState)(t?t.value():n);return Object(i.useEffect)(()=>{if(t){a(t.value());const e=e=>a(e);return t.subscribe(e),()=>t.unsubscribe(e)}return()=>{}},[t]),r}},wwkJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("q1tI");const r=n.n(i).a.createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},zbLM:function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),r=n.n(i),a=n("i8i4"),s=n.n(a),o=n("YFKU"),l=n("mMWL"),c=n("CW80"),u=n("0YCj"),d=n.n(u),m=n("Kxc7");function p(e,t){
4
- const n=e.title.toLowerCase(),i=t.title.toLowerCase();return n<i?-1:n>i?1:0}const h={earning:new RegExp("EPS"),earnings:new RegExp("EPS"),"trailing twelve months":new RegExp("TTM")};function g(e){var t;const{id:n,description:i,shortDescription:r,description_localized:a,is_hidden_study:s,version:l}=e,c=m.enabled("graying_disabled_tools_enabled")&&(null===(t=window.ChartApiInstance)||void 0===t?void 0:t.studiesAccessController.isToolGrayed(i));return{id:n,title:a||Object(o.t)(i,{context:"study"}),shortDescription:r,shortTitle:r,isStrategy:d.a.isScriptStrategy(e),isHidden:s,descriptor:{type:"java",studyId:e.id},packageName:d.a.getPackageName(n),isGrayed:c,version:l}}var f=n("TSYQ"),v=n.n(f),b=n("jPOK"),_=n("g89m"),y=n("qFKp"),w=n("QHWU"),O=n("An2S"),E=n("0NLZ");function N(e){const{reference:t,className:n,...i}=e;return r.a.createElement("div",{ref:t,className:v()(E.container,n),...i,"data-role":"dialog-content"})}var k=n("cu5P");function C(e){const{children:t,className:n,disabled:i}=e;return r.a.createElement("span",{className:v()(k.title,i&&k.disabled,n)},t)}const S=r.a.createContext(null);var x=n("1LIl"),T=n("vqb8"),j=n("oiZD"),I=n("zM7N"),D=n("pr86"),Y=n("/3z9"),R=n("PMRz");function q(e){const t=Object(i.useContext)(S),{style:n,layoutMode:a,item:s,query:o,regExpRules:l,isBeta:c,isNew:u,isUpdated:d,isSelected:m,isHighlighted:p,reference:h,onClick:g,renderActions:f}=e,{isFavorite:b,isStrategy:_,isLocked:y,public:w}=s,O=void 0!==b,E=F(g,s),N=Object(i.useCallback)(e=>e.stopPropagation(),[]),k=(null==t?void 0:t.toggleFavorite)?F(t.toggleFavorite,s):void 0,Y=Object(T.a)({watchedValue:j.watchedTheme})===I.a.Dark?R.dark:R.light,q=v()(R.container,s.isGrayed&&R.disabled,m&&R.selected,p&&R.highlighted,p&&Y);return r.a.createElement("div",{ref:h,className:q,onClick:E,style:n,"data-role":"list-item","data-disabled":s.isGrayed,"data-title":s.title,"data-id":s.id},r.a.createElement("div",{className:v()(R.main,!O&&R.paddingLeft)},O&&r.a.createElement(D.a,{className:v()(R.favorite,b&&R.isActive),isFilled:b,onClick:k}),r.a.createElement(C,{disabled:s.isGrayed},r.a.createElement(x.a,{queryString:o,rules:l,text:s.title})),!1,c&&r.a.createElement(Pill,{label:"Beta",className:R.pill,color:"gray"}),u&&r.a.createElement(Pill,{label:"New",className:R.pill,color:"orange"}),d&&r.a.createElement(Pill,{label:"Updated",className:R.pill,color:"green"})),w&&r.a.createElement("a",{href:w.authorLink,className:R.author,target:"_blank",onClick:N},w.authorName),"mobile"!==a&&w&&r.a.createElement("span",{className:R.likes},w.likesCount),!1)}function F(e,t){return n=>{const i=0===Object(Y.modifiersFromEvent)(n)&&0===n.button;!n.defaultPrevented&&e&&i&&(n.preventDefault(),e(t))}}var P=n("iYOJ");function L(e){const{title:t,type:n,className:i}=e;return r.a.createElement("h3",{className:v()(P.title,"Small"===n&&P.small,"Normal"===n&&P.normal,"Large"===n&&P.large,i)},t)}var M=n("vbTm");function Z(e){const{style:t,children:n}=e;return r.a.createElement("div",{style:t,className:M.container},n)}var A=n("Iivm"),J=n("mwqF"),z=n("idtP");function B(e){
5
- const{className:t,icon:n,title:i,description:a,buttonText:s,buttonAction:o}=e;return r.a.createElement("div",{className:v()(z.container,t)},n&&r.a.createElement(A.a,{icon:n,className:z.image}),i&&r.a.createElement("h3",{className:z.title},i),a&&r.a.createElement("p",{className:z.description},a),s&&o&&r.a.createElement(J.a,{onClick:o,className:z.button},s))}function K(e){const[t,n]=Object(i.useState)(null);function r(e){return e.findIndex(e=>(null==t?void 0:t.id)===e.id)}return[t,n,function(){n(function(){var n;const i=r(e),a=i===e.length-1;return null===t||-1===i?null!==(n=e[0])&&void 0!==n?n:null:a?e[i]:e[i+1]}())},function(){n(function(){var n;const i=r(e);return null===t||0===i||-1===i?null!==(n=e[0])&&void 0!==n?n:null:e[i-1]}())}]}var V=n("H9Gg"),W=n("9DSJ");function G(e){const{reference:t,data:n,isOpened:a,onClose:s,applyStudy:l}=e,[c,u]=Object(i.useState)(""),d=Object(i.useMemo)(()=>Object(V.a)(c,h),[c]),m=Object(i.useMemo)(()=>c?Object(V.c)({data:n,rules:d,queryString:c,primaryKey:"shortDescription",secondaryKey:"title",optionalPrimaryKey:"shortTitle"}):n,[c,d,n]),{highlightedItem:p,selectedItem:g,selectedNodeReference:f,scrollContainerRef:E,searchInputRef:k,onClickStudy:C,handleKeyDown:S}=function(e,t,n,r){let a=0;const[s,o]=Object(i.useState)(null),l=Object(i.useRef)(null),c=Object(i.useRef)(null),[u,d,m,p]=K(t),h=Object(i.useRef)(null);return Object(i.useEffect)(()=>{e?g(0):d(null)},[e]),Object(i.useEffect)(()=>{void 0!==r&&(g(0),d(null))},[r]),Object(i.useEffect)(()=>(s&&(a=setTimeout(()=>{o(null)},1500)),()=>{clearInterval(a)}),[s]),{highlightedItem:s,scrollContainerRef:l,selectedNodeReference:c,selectedItem:u,searchInputRef:h,onClickStudy:function(e){if(!n)return;n(e),d(e),o(e)},handleKeyDown:function(e){const[t,i]=function(e,t){if(null===e.current||null===t.current)return[0,0];const n=e.current.getBoundingClientRect(),i=t.current.getBoundingClientRect(),{height:r}=n,a=n.top-i.top,s=n.bottom-i.bottom+r<0?0:r,o=a-r>0?0:r,{scrollTop:l}=t.current;return[l-o,l+s]}(c,l);40===Object(Y.hashFromEvent)(e)&&(e.preventDefault(),m(),g(i));38===Object(Y.hashFromEvent)(e)&&(e.preventDefault(),p(),g(t));if(13===Object(Y.hashFromEvent)(e)&&u){if(!n)return;n(u),o(u)}}};function g(e){null!==l.current&&l.current.scrollTo&&l.current.scrollTo(0,e)}}(a,m,l),x=""===c&&!m.length;return Object(i.useEffect)(()=>{var e;a||u(""),y.CheckMobile.any()||null===(e=k.current)||void 0===e||e.focus()},[a]),r.a.createElement(_.a,{isOpened:a,onClose:s,onClickOutside:s,className:v()(W.dialogLibrary),render:function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(w.a,{reference:k,placeholder:Object(o.t)("Search"),onChange:T,onFocus:j}),r.a.createElement(O.c,null,r.a.createElement(N,{reference:E,className:W.scroll},x?r.a.createElement(b.a,null):m.length?r.a.createElement(r.a.Fragment,null,r.a.createElement(Z,null,r.a.createElement(L,{title:Object(o.t)("Script name")})),m.map(e=>{const t=(null==g?void 0:g.id)===e.id;return r.a.createElement(q,{key:e.id,item:e,onClick:()=>C(e),query:c,regExpRules:d,reference:t?f:void 0,
6
- isSelected:(null==g?void 0:g.id)===e.id,isHighlighted:(null==p?void 0:p.id)===e.id})})):r.a.createElement(B,{className:W.noContentBlock,description:Object(o.t)("No indicators matched your criteria.")}))))},title:Object(o.t)("Indicators"),dataName:"indicators-dialog",onKeyDown:S,ref:t});function T(e){u(e.target.value)}function j(){var e;c.length>0&&(null===(e=k.current)||void 0===e||e.select())}}var U=n("FQhm"),Q=n("hY0g"),X=n.n(Q);n.d(t,"IndicatorsLibraryContainer",(function(){return H}));class H extends class{constructor(e){this._searchInputRef=r.a.createRef(),this._dialog=r.a.createRef(),this._visibility=new X.a(!1),this._container=document.createElement("div"),this._isForceRender=!1,this._parentSource=null,this._isDestroyed=!1,this._chartWidgetCollection=e}isDestroyed(){return this._isDestroyed}visible(){return this._visibility.readonly()}resetAllStudies(){}updateFavorites(){}open(e){this._parentSource=null!=e?e:null,this._setProps({isOpened:!0}),this._visibility.setValue(!0),U.emit("indicators_dialog")}show(){this.open()}hide(){this._parentSource=null,this._setProps({isOpened:!1}),this._visibility.setValue(!1)}destroy(){this._isDestroyed=!0,s.a.unmountComponentAtNode(this._container)}_shouldPreventRender(){return this._isDestroyed||!this._isForceRender&&!this._getProps().value().isOpened}_getRenderData(){return{props:this._getProps().value(),container:this._getContainer()}}_applyStudy(e){var t,n;e.isGrayed?U.emit("onGrayedObjectClicked",{type:"study",name:e.shortDescription}):(y.CheckMobile.any()||null===(t=this._searchInputRef.current)||void 0===t||t.select(),async function(e,t,n){const i=t.descriptor;if("java"===i.type){const e=Object(c.tryFindStudyLineToolNameByStudyId)(i.studyId);if(null!==e)return l.tool.setValue(e),null}const r=e.activeChartWidget.value();return r?r.insertStudy(t.descriptor,n,t.shortDescription):null}(this._chartWidgetCollection,e,null!==(n=this._parentSource)&&void 0!==n?n:void 0).then(()=>{var e;y.CheckMobile.any()||(null===document.activeElement||document.activeElement===document.body||null!==this._dialog.current&&this._dialog.current.contains(document.activeElement))&&(null===(e=this._searchInputRef.current)||void 0===e||e.focus())}))}_setProps(e){const t=this._getProps().value(),{isOpened:n}=t;this._isForceRender=n&&"isOpened"in e&&!e.isOpened;const i={...t,...e};this._getProps().setValue(i)}_requestBuiltInJavaStudies(){return this._chartWidgetCollection.activeChartWidget.value().metaInfoRepository().findAllJavaStudies()}_focus(){var e;this._getProps().value().isOpened&&(null===(e=this._dialog.current)||void 0===e||e.focus())}_getContainer(){return this._container}_getDialog(){return this._dialog}}{constructor(e,t){super(e),this._studies={},this._options={onWidget:!1},this._getStudies=e=>this._studies[e]||[],t&&(this._options=t),this._props=new X.a({data:[],applyStudy:this._applyStudy.bind(this),isOpened:!1,reference:this._getDialog(),onClose:this.hide.bind(this)}),this._getProps().subscribe(this._render.bind(this)),this._init()}_getProps(){return this._props}async _init(){
7
- const e=await this._requestBuiltInJavaStudies();this._studies=function(e){const t={};return e.forEach(e=>{const{packageName:n}=e;n in t?t[n].push(e):t[n]=[e]}),t}(function(e,t=!0){return e.filter(e=>{const n=!!t||!function(e){return e.isStrategy}(e);return!e.isHidden&&n})}(e.map(g)));const t=[...this._getStudies("tv-basicstudies"),...this._getStudies("Script$STD"),...this._getStudies("tv-volumebyprice")].filter(e=>!e.isStrategy).sort(p);this._setProps({data:t})}_render(){if(this._shouldPreventRender())return;const{props:e,container:t}=this._getRenderData();s.a.render(r.a.createElement(G,{...e}),t)}}}}]);
@@ -1,5 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["study-pane-views"],{"1sos":function(t,e,i){"use strict";i.r(e),i.d(e,"HorizLinePaneView",(function(){return o}));var s=i("Eyy1"),n=i("VdBB"),r=i("Zy3/"),a=i("l4sv");class o{constructor(t,e,i){this._data=[],this._invalidated=!0,this._provider=t,this._model=e,this._hitTestResult=void 0!==i?new n.HitTestResult(n.HitTestResult.CUSTOM,i):new n.HitTestResult(n.HitTestResult.REGULAR)}update(){this._invalidated=!0}renderer(){this._invalidated&&(this._updateViewInternal(),this._invalidated=!1);const t=new r.CompositeRenderer;for(const e of this._data){const i=new a.HorizontalLineRenderer;i.setData(e),i.setHitTest(this._hitTestResult),t.append(i)}return t}_updateViewInternal(){this._data=[];const t=this._provider.priceScale(),e=this._model.timeScale();if(!t||t.isEmpty()||e.isEmpty())return;const i=this._provider.graphics().horizlines();if(0===i.size)return;const n=this._model.timeScale().visibleBarsStrictRange();if(null===n)return;const r=this._provider.firstValue();if(null===r)return;const a=n.firstBar(),o=n.lastBar();i.forEach((i,n)=>{const l=this._provider.properties().graphics.horizlines[n];l.visible.value()&&i.forEach(i=>{const n=i.startIndex,c=i.endIndex;!i.extendRight&&Math.max(n,c)<a||!i.extendLeft&&Math.min(n,c)>o||this._data.push({y:t.priceToCoordinate(Object(s.ensureDefined)(i.level),r),left:i.extendLeft?void 0:e.indexToCoordinate(n),right:i.extendRight?void 0:e.indexToCoordinate(c),color:l.color.value(),linewidth:l.width.value(),linestyle:l.style.value()})})})}}},BCbF:function(t,e,i){"use strict";i.r(e),i.d(e,"PolygonRenderer",(function(){return u}));var s=i("f6yo"),n=i("GEp6"),r=i("jFln"),a=i("pJOz"),o=i("a7Ha"),l=i("VdBB"),c=i("Tmoa"),h=i("cPgM"),d=i("Zp/P");class u extends h.ScaledPaneRenderer{constructor(t){super(),this._data=null,this._backHittest=new l.HitTestResult(l.HitTestResult.MOVEPOINT_BACKGROUND),this._points=[],this._hittest=t||new l.HitTestResult(l.HitTestResult.MOVEPOINT)}setData(t){this._data=t,this._points=t.points}hitTest(t){if(null===this._data||void 0!==this._data.mouseTouchable&&!this._data.mouseTouchable)return null;const e=Math.max(Object(d.interactionTolerance)().line,Math.ceil(this._data.linewidth/2)),i=this._points.length;if(1===i){return Object(s.pointInCircle)(t,this._points[0],e)?this._hittest:null}for(let s=1;s<i;s++){const i=this._points[s-1],r=this._points[s];if(Object(n.distanceToSegment)(i,r,t).distance<=e)return this._hittest}if(this._data.filled&&this._data.fillBackground&&i>0){const s=this._points[0],r=this._points[i-1];if(Object(n.distanceToSegment)(s,r,t).distance<=e)return this._hittest}return this._data.filled&&this._data.fillBackground&&Object(s.pointInPolygon)(t,this._data.points)?this._backHittest:null}_drawImpl(t,e){var i,s;const n=this._points.length;if(null===this._data||0===n)return;if(1===n)return void this._drawPoint(t,this._points[0],this._data.linewidth/2,this._data.color);t.beginPath();const l=null!==(i=this._data.linecap)&&void 0!==i?i:"butt";t.lineCap=l,t.strokeStyle=this._data.color,
2
- t.lineWidth=this._data.linewidth,t.lineJoin=null!==(s=this._data.linejoin)&&void 0!==s?s:"miter",Object(r.setLineStyle)(t,this._data.linestyle);const h=this._points[0];t.moveTo(h.x,h.y);for(const e of this._points)t.lineTo(e.x,e.y);if(this._data.filled&&this._data.fillBackground&&(t.fillStyle=Object(c.generateColor)(this._data.backcolor,this._data.transparency),t.fill()),this._data.filled&&!this._data.skipClosePath&&t.closePath(),this._data.linewidth>0&&t.stroke(),n>1){if("butt"!==l&&(t.lineCap="butt"),this._data.leftend===o.LineEnd.Arrow){const i=this._correctArrowPoints(this._points[1],this._points[0],t.lineWidth,l);Object(a.drawArrow)(i[0],i[1],t,t.lineWidth,e.pixelRatio)}if(this._data.rightend===o.LineEnd.Arrow){const i=this._correctArrowPoints(this._points[n-2],this._points[n-1],t.lineWidth,l);Object(a.drawArrow)(i[0],i[1],t,t.lineWidth,e.pixelRatio)}}}_drawPoint(t,e,i,s){0!==i&&(t.beginPath(),t.fillStyle=s,t.arc(e.x,e.y,i,0,2*Math.PI,!0),t.fill(),t.closePath())}_correctArrowPoints(t,e,i,s){const n=e.subtract(t),r=n.length();if("butt"===s||r<1)return[t,e];const a=r+i/2;return[t,n.scaled(a/r).add(t)]}}},BJvp:function(t,e,i){"use strict";i.r(e),i.d(e,"PolygonPaneView",(function(){return c}));var s=i("Eyy1"),n=i("aO4+"),r=i("VdBB"),a=i("Zy3/"),o=i("8Uy/"),l=i("BCbF");class c{constructor(t,e,i){this._data=[],this._invalidated=!0,this._provider=t,this._model=e,this._hitTestResult=void 0!==i?new r.HitTestResult(r.HitTestResult.CUSTOM,i):new r.HitTestResult(r.HitTestResult.REGULAR)}update(){this._invalidated=!0}renderer(){this._invalidated&&(this._updateViewInternal(),this._invalidated=!1);const t=new a.CompositeRenderer;for(const e of this._data){const i=new l.PolygonRenderer(this._hitTestResult);i.setData(e),t.append(i)}return t}_updateViewInternal(){this._data=[];const t=this._provider.priceScale(),e=this._model.timeScale();if(!t||t.isEmpty()||e.isEmpty())return;const i=this._provider.graphics().polygons();if(0===i.size)return;const r=this._model.timeScale().visibleBarsStrictRange();if(null===r)return;const a=this._provider.firstValue();if(null===a)return;const l=r.firstBar(),c=r.lastBar(),h=this._provider.properties().graphics.polygons,d=Object(s.ensureDefined)(this._provider.metaInfo().graphics.polygons);i.forEach((i,r)=>{const u=h[r];100!==u.transparency.value()&&i.forEach(i=>{let h=1/0,p=-1/0;for(const t of i.points){const e=t.index+(t.offset||0);h=Math.min(h,e),p=Math.max(p,e)}if(p<l||c<h)return;const f=i.points.map(i=>{const r=e.indexToCoordinate(i.index+(i.offset||0)),o=t.priceToCoordinate(Object(s.ensureDefined)(i.level),a);return new n.Point(r,o)});this._data.push({points:f,color:u.color.value(),backcolor:u.color.value(),linewidth:void 0!==u.showBorder&&u.showBorder.value()?1:0,linestyle:o.LINESTYLE_SOLID,filled:!0,fillBackground:!0,transparency:u.transparency.value(),mouseTouchable:Object(s.ensureDefined)(d[r]).mouseTouchable})})})}}},Gj0v:function(t,e,i){"use strict";i.r(e);var s=i("Eyy1"),n=i("VdBB"),r=i("Zy3/"),a=i("qgcf"),o=i("aO4+"),l=i("eJTA"),c=i("ikwP"),h=i("KG+6"),d=i("nEwK"),u=i("zDbI")
3
- ;function p(t,e){return{min:Math.min(t,e),max:Math.max(t,e)}}function f(t){return t.max-t.min}class _{constructor(t){this._data=t}hitTest(t,e){const i=this._data;for(const s of i.histograms){if(s.yRange.min>=t.y||t.y>=s.yRange.max)continue;let r=s.yRange.min,a=null;const o=f(s.xRange);for(const l of s.bars){const c=i.styles[l.styleId];if(!c.visible)continue;if(c.location===h.b.Absolute&&(s.xRange.min>=t.x||t.x>=s.xRange.max))continue;null===a&&(a=0,s.bars.forEach(t=>{const e=t.subBarValues.reduce((t,e)=>t+e);a=Math.max(a,e)}));const d=v(s.xRange,c,e.cssWidth),{xBasePoint:u,sign:f}=d,_=p(r,r+l.height);r+=l.height;const g=Math.max(c.percentWidth*o/100-l.subBarValues.length,0);for(let e=0;e<l.subBarValues.length;e++){const i=_.min,s=_.max,r=0===e?u:u+f*(g*l.subBarValues[e-1]/a),o=r+f*(g*l.subBarValues[e]/a);if((t.x>=r&&t.x<=o||t.x>=o&&t.x<=r)&&t.y>=i&&t.y<=s)return new n.HitTestResult(n.HitTestResult.REGULAR)}}}return null}draw(t,e){const i=this._data;t.save(),i.histograms.forEach(s=>{const n=[];let r=s.yRange.min,a=0,o=0;s.bars.forEach(t=>{const e=t.subBarValues.reduce((t,e)=>t+e);a=Math.max(a,e),o+=t.height});const c=o/s.bars.length,h=(d=c,u=e.pixelRatio,Math.floor(d*u)>=1*u?Math.floor(u):0);var d,u;const _=f(s.xRange),b=[];if(s.bars.forEach(o=>{const l=i.styles[o.styleId];if(!l.visible)return;if(l.showValues)for(let t=0;t<o.subBarValues.length;t++)n[t]=(n[t]||0)+o.subBarValues[t];const c=v(s.xRange,l,e.cssWidth),{xBasePoint:d,sign:u}=c,f=p(r,r+o.height);if(r+=o.height,f.min>e.cssHeight||f.max<0)return;const R=Math.max(l.percentWidth*_/100-o.subBarValues.length,0);for(let i=0;i<o.subBarValues.length;i++){const s=f.min,n=f.max,r=0===i?d:d+u*(R*o.subBarValues[i-1]/a),c=r+u*(R*o.subBarValues[i]/a);if(Math.abs(c-r)<.5)continue;t.fillStyle=l.colors[i],t.beginPath();const p=Math.round(r*e.pixelRatio),_=Math.round(s*e.pixelRatio),v=Math.round(c*e.pixelRatio),g=Math.round(n*e.pixelRatio),m=v-p,b=Math.max(g-_-h,1);t.rect(p,_,m,b),t.fill()}if(!l.showValues)return;const y=g(o.subBarValues,l.direction),x=m(_,f,c,l,y);b.push(x)}),b.length>0){const t=i.styles[s.bars[0].styleId],a=v(s.xRange,t,e.cssWidth),o=p(r,r+c),h=g(n,t.direction),d=m(_,o,a,t,h);d.color=Object(l.shiftColor)(d.color,1.5),b.push(d)}const y=Math.min(...b.map(t=>t.fontSize));if(y>=7.5)for(const i of b)i.fontSize=y,R(t,e,i)}),t.restore()}}function v(t,e,i){const s=e.location===h.b.Absolute,n=e.location===h.b.Relative,r=e.direction===h.a.LeftToRight,a=e.direction===h.a.RightToLeft;let o,l;if(s&&r)o=t.min,l=1;else if(s&&a)o=t.max,l=-1;else if(n&&r)o=0,l=1;else{if(!n||!a)throw new Error(`Unknown location/direction values: ${e.location}/${e.direction}`);o=i,l=-1}return{xBasePoint:o,sign:l}}function g(t,e){e===h.a.RightToLeft&&(t=t.slice()).reverse();const i=new d.VolumeFormatter;return t.map(t=>i.format(t)).join("x")}function m(t,e,i,s,n){const r=Math.min(Math.round(1.7*t/n.length),Math.round(.6*f(e))),a=s.direction===h.a.LeftToRight?"left":"right",{xBasePoint:l,sign:c}=i,d=l+3*c,u=e.min+.7*f(e);return{text:n,color:s.valuesColor,fontSize:r,align:a,point:new o.Point(d,u)}
4
- }function R(t,e,i){const{text:s,color:n,fontSize:r,align:a,point:o}=i;t.font=`${r}px ${u.CHART_FONT_FAMILY}`,t.fillStyle=n,t.textAlign=a,Object(c.drawScaled)(t,e.pixelRatio,()=>t.fillText(s,o.x,o.y))}var b=i("Tmoa");i.d(e,"HHistPaneView",(function(){return y}));class y{constructor(t,e,i){this._invalidated=!0,this._provider=t,this._model=e,this._rendererData={histograms:[],styles:{}},this._textData=[],this._hhistRenderer=new _(this._rendererData)}update(){this._invalidated=!0}renderer(){this._invalidated&&(this._updateViewInternal(),this._invalidated=!1);const t=new r.CompositeRenderer;t.append(this._hhistRenderer);for(const e of this._textData)t.append(new a.TextRenderer(e,new n.HitTestResult(n.HitTestResult.REGULAR)));return t}_resetRenderersData(){this._rendererData.histograms=[],this._textData=[]}_prepareStyles(){const t=Object(s.ensureDefined)(this._provider.graphicsInfo().hhists),e=Object.keys(t),i=this._provider.properties().graphics.hhists;this._rendererData.styles={};for(const n of e){const e=Object(s.ensureDefined)(i.child(n)),r=Object(s.ensureDefined)(t[n]),a=Object(b.generateColor)(e.colors[0].value(),e.transparencies[0].value()),o=e.colors[1]?Object(b.generateColor)(e.colors[1].value(),e.transparencies[1].value()):a;this._rendererData.styles[n]={colors:[a,o],visible:e.visible.value(),percentWidth:e.percentWidth.value(),location:r.location,direction:e.direction.value(),showValues:e.showValues.value(),valuesColor:e.valuesColor.value()}}}_updateViewInternal(){this._resetRenderersData();const t=this._provider.priceScale(),e=this._model.timeScale();if(!t||t.isEmpty()||e.isEmpty())return;if(null===this._provider.firstValue())return;const i=this._provider.graphics().hhistsByTimePointIndex();if(0===i.size)return;const n=e.visibleBarsStrictRange();if(null===n)return;const r=n.firstBar(),a=n.lastBar();this._prepareStyles(),Object(s.ensureDefined)(i).forEach((i,s)=>{let n=1/0,o=-1/0;i.forEach(t=>{n=Math.min(n,t.firstBarTime),o=Math.max(o,t.lastBarTime)}),o<r||n>a||this._updateDataForRenderers(i,t,e)})}_updateDataForRenderers(t,e,i){if(t.size<=0)return;let n=null;if(t.forEach(t=>{n=n||t}),null===n)return;let r=n;t.forEach(t=>{t.priceLow<r.priceLow&&(r=t)});const a=function(t,e){return p(e.indexToCoordinate(t.firstBarTime),e.indexToCoordinate(t.lastBarTime))}(n,i),o=[];t.forEach(t=>{null==t.rate[t.rate.length-1]&&t.rate.splice(-1,1);const i=function(t,e,i){return p(e.priceToCoordinate(t.priceHigh,i),e.priceToCoordinate(t.priceLow,i))}(t,e,Object(s.ensureNotNull)(this._provider.firstValue()));o.push({yRange:i,subBarValues:t.rate,styleId:t.styleId})}),o.sort((t,e)=>t.yRange.min-e.yRange.min);const l=[];let c=o[0].yRange.min;for(const t of o){const e=t.yRange.max-c;l.push({height:e,...t}),c=t.yRange.max}this._rendererData.histograms.push({xRange:a,yRange:p(o[0].yRange.min,c),bars:l})}}},psYU:function(t,e,i){"use strict";i.r(e),i.d(e,"VertLinePaneView",(function(){return l}));var s=i("Eyy1"),n=i("VdBB"),r=i("972a"),a=i("Zy3/"),o=i("z+cS");class l{constructor(t,e,i){this._data=[],this._invalidated=!0,this._provider=t,
5
- this._model=e,this._hitTestResult=void 0!==i?new n.HitTestResult(n.HitTestResult.CUSTOM,i):new n.HitTestResult(n.HitTestResult.REGULAR)}update(){this._invalidated=!0}renderer(){this._invalidated&&(this._updateViewInternal(),this._invalidated=!1);const t=new a.CompositeRenderer;for(const e of this._data){const i=new o.VerticalLineRenderer;i.setData(e),i.setHitTest(this._hitTestResult),t.append(i)}return t}_updateViewInternal(){this._data=[];const t=this._provider.priceScale(),e=this._model.timeScale();if(!t||t.isEmpty()||e.isEmpty())return;const i=this._provider.graphicsInfo().vertlines,n=this._provider.graphics().vertlines();if(0===n.size||void 0===i)return;const a=this._model.timeScale().visibleBarsStrictRange();if(null===a)return;const o=this._provider.firstValue();if(null===o)return;const l=a.firstBar(),c=a.lastBar();n.forEach((n,a)=>{const h=this._provider.properties().graphics.vertlines[a];if(!h.visible.value())return;let d=0;switch(Object(s.ensureDefined)(i[a]).halign){case r.a.Left:d=-e.barSpacing()/2;break;case r.a.Right:d=e.barSpacing()/2}n.forEach(i=>{const n=i.index;n<l||c<n||this._data.push({x:e.indexToCoordinate(n)+d,top:i.extendTop?void 0:t.priceToCoordinate(Object(s.ensureDefined)(i.endPrice),o),bottom:i.extendBottom?void 0:t.priceToCoordinate(Object(s.ensureDefined)(i.startPrice),o),color:h.color.value(),linewidth:h.width.value(),linestyle:h.style.value()})})})}}}}]);
@@ -1,4 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["study-property-pages-with-definitions"],{"4lou":function(e,t,i){"use strict";i.r(t),i.d(t,"RegressionTrendDefinitionsViewModel",(function(){return h}));i("YFKU"),i("HbRj");var s=i("HSjo"),o=i("cKLu"),n=i("25b6");const l=window.t("Base"),r=window.t("Up"),c=window.t("Down"),u=window.t("Pearson's R"),d=window.t("Extend Lines");class h extends o.StudyLineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs().styles.childs(),t=this._source.name(),i=Object(n.c)(t),o=e.baseLine.childs(),h=Object(s.i)({checked:Object(s.b)(this._undoModel,o.visible,`Change ${t} base line visibility`),color:Object(s.v)(this._undoModel,o.color,e.transparency,`Change ${t} base line color`),width:Object(s.b)(this._undoModel,o.linewidth,`Change ${t} base line width`),style:Object(s.b)(this._undoModel,o.linestyle,`Change ${t} base line style`)},{id:i+"BaseLine",title:l}),a=e.upLine.childs(),p=Object(s.i)({checked:Object(s.b)(this._undoModel,a.visible,`Change ${t} up line visibility`),color:Object(s.v)(this._undoModel,a.color,e.transparency,`Change ${t} up line color`),width:Object(s.b)(this._undoModel,a.linewidth,`Change ${t} up line width`),style:Object(s.b)(this._undoModel,a.linestyle,`Change ${t} up line style`)},{id:i+"UpLine",title:r}),y=e.downLine.childs();return[h,p,Object(s.i)({checked:Object(s.b)(this._undoModel,y.visible,`Change ${t} down line visibility`),color:Object(s.v)(this._undoModel,y.color,e.transparency,`Change ${t} down line color`),width:Object(s.b)(this._undoModel,y.linewidth,`Change ${t} down line width`),style:Object(s.b)(this._undoModel,y.linestyle,`Change ${t} down line style`)},{id:i+"DownLine",title:c}),Object(s.c)({checked:Object(s.b)(this._undoModel,e.extendLines,`Change ${t} Extend Lines`)},{id:i+"ExtendLines",title:d}),Object(s.c)({checked:Object(s.b)(this._undoModel,e.showPearsons,`Change ${t} show pearson's r`)},{id:i+"Pearsons",title:u})]}}},WUYT:function(e,t,i){"use strict";i.r(t);i("YFKU"),i("HbRj");var s=i("Eyy1"),o=i("Kxc7"),n=i("HSjo"),l=i("1yQO"),r=i("loJ+"),c=i("zqjM"),u=i("hY0g"),d=i.n(u),h=i("0YCj"),a=i.n(h),p=i("pPtI"),y=i("lgIt");const b=window.t("Style"),_=window.t("Inputs"),f=window.t("Visibility"),j=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"].map(e=>({value:e,title:Object(p.getTranslatedResolutionModel)(e).hint}));var w=i("Equz"),S=i("25b6");i.d(t,"StudyOverlayDefinitionsViewModel",(function(){return P}));const g=[{title:window.t("Bars"),value:0},{title:window.t("Candles"),value:1},{title:window.t("Hollow Candles"),value:9},{title:window.t("Line"),value:2},{title:window.t("Area"),value:3},{title:window.t("Baseline"),value:10}],O=window.t("Style"),m=window.t("Price Line"),I=window.t("Override Min Tick");class P extends class{constructor(e,t){this._inputSourceItems=null,this._propertyPages=[],this._sourceInput=null,this._source=t,this._undoModel=e;const i=this._sortInputs(this._source.metaInfo().inputs)
2
- ;for(const e of i)"source"===e.type&&(this._sourceInput=e);this._createPropertyRages(),null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().subscribe(this,()=>{null!==this._inputSourceItems&&this._inputSourceItems.setValue(this._getInputSourceItems())})}destroy(){null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().unsubscribeAll(this),this._propertyPages.forEach(e=>{Object(n.u)(e.definitions.value())})}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t),this._propertyPages.push(this._createVisibilitiesPropertyPage())}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?Object(l.a)(e,"style",b):null}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return Object(l.a)(Object(y.a)(this._undoModel,e,this._source.title(!0)),"visibility",f)}_stylePropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?Object(l.a)(e,"inputs",_):null}_inputsPropertyDefinitions(){const e=this._sortInputs(this._source.metaInfo().inputs),t=this._source.properties().childs().inputs.childs();return null!==this._sourceInput&&(this._inputSourceItems=new d.a(this._getInputSourceItems())),Object(r.a)(this._undoModel,e,t,!1,{resolutionItems:j,customSymbolInputSetter:this._customSymbolInputSetter(),getSymbolInfoBySymbol:this._getSymbolInfoBySymbol.bind(this),onSymbolsInfosChanged:this._source.symbolsResolved(),sourcesItems:this._inputSourceItems})}_sortInputs(e){return e}_getInputSourceItems(){const e=c.b.slice(),t=Object(s.ensureNotNull)(this._sourceInput);if(this._source&&this._source.isChildStudy()){const i=this._source.parentSource(),s=i.title(),o=a.a.getChildSourceInputTitles(t,i.metaInfo(),s);for(const t of Object.keys(o))e.push({id:t,value:t,title:o[t]})}if(o.enabled("study_on_study")&&this._source&&(this._source.isChildStudy()||a.a.canBeChild(this._source.metaInfo()))){const t=new Set([this._source,...this._source.getAllChildren()]);this._undoModel.model().allStudies().filter(e=>e.canHaveChildren()&&!t.has(e)).forEach(t=>{const i=t.title(!0,void 0,!0),o=t.sourceId()||"#"+t.id(),n=t.metaInfo(),l=n.styles,r=n.plots||[];if(1===r.length)e.push({id:o,value:o,title:i});else if(r.length>1){const t=r.reduce((e,t,n)=>{if(!a.a.canPlotBeSourceOfChildStudy(t.type))return e;let r;try{r=Object(s.ensureDefined)(Object(s.ensureDefined)(l)[t.id]).title}catch(e){r=t.id}return{...e,[`${o}$${n}`]:`${i}: ${r}`}},{});for(const i of Object.keys(t))e.push({id:i,value:i,title:t[i]})}})}return e}_customSymbolInputSetter(){}_getSymbolInfoBySymbol(e){return this._source.resolvedSymbolInfoBySymbol(e.value())}}{constructor(e,t){super(e,t),this._stylesPropertyPage=null,this.propertyPages().then(e=>{this._stylesPropertyPage=e.filter(e=>"style"===e.id)[0]
3
- }),this._source.properties().childs().style.subscribe(this,e=>{null!==this._stylesPropertyPage&&(Object(n.u)(this._stylesPropertyPage.definitions.value()),this._stylesPropertyPage.definitions.setValue(this._stylePropertyDefinitions()))})}destroy(){this._source.properties().childs().style.unsubscribeAll(this),super.destroy()}_customSymbolInputSetter(){return e=>{this._undoModel.setSymbol(this._source,e)}}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=Object(n.k)({option:Object(n.b)(this._undoModel,e.style,"Change study overlay style")},{id:"StudyOverlayStyle",title:O,options:new d.a(g)}),i=Object(n.c)({checked:Object(n.b)(this._undoModel,e.showPriceLine,"Change Price Price Line")},{id:"StudyOverlayPriceLine",title:m}),s=Object(n.k)({option:Object(n.b)(this._undoModel,e.minTick,"Change study overlay style")},{id:"StudyOverlayMinTick",title:I,options:new d.a(Object(c.d)())}),o=Object(S.c)(this._source.title());return[Object(n.l)([t,...this._getSeriesStylesDefinitions()],"SeriesStyleGroup"+o),i,s]}_getSeriesStylesDefinitions(){const e=this._source.properties().childs();return Object(w.a)(this._undoModel,e,e.style.value(),{seriesPriceSources:c.b,lineStyleTypes:c.c,isJapaneseChartsAvailable:!1},"mainSeries")}}},cKLu:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyLineDataSourceDefinitionsViewModel",(function(){return a}));var s=i("YFKU"),o=(i("HbRj"),i("HSjo")),n=i("Cn8r"),l=i("hY0g"),r=i.n(l),c=i("zqjM"),u=i("loJ+"),d=i("CA9d"),h=i("25b6");class a extends n.a{constructor(e,t){super(e,t)}_inputsPropertyDefinitions(){const e=this._undoModel.model().studyMetaInfoRepository().findByIdSync({type:"java",studyId:this._source.studyId()});return null===e?null:Object(u.a)(this._undoModel,e.inputs,this._source.properties().childs().inputs.childs(),!1,{sourcesItems:new r.a(c.b)})}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,i=[];return e.forEach((e,n)=>{const l=t[n].childs();if(!l)return;const r=Object(d.a)(this._undoModel,l);i.push(Object(o.f)({x:r.property},{id:Object(h.c)(`${this._source.name()}Point${n}`),title:Object(s.t)("#{count} (bar)",{context:"linetool point"}).format({count:(n+1).toString()}),...r.info}))}),i}}},"loJ+":function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("Eyy1"),o=i("HSjo"),n=i("hY0g"),l=i.n(n),r=i("25b6");function c(e,t){const i=e.id;return"first_visible_bar_time"!==i&&"last_visible_bar_time"!==i&&("time"!==e.type&&(!e.isHidden&&(!(t&&!e.confirm)&&void 0===e.groupId)))}function u(e){return e.name||Object(r.a)(e.id.toLowerCase())}function d(e,t,i,n,r){const d=[];for(const h of t){if(!c(h,n))continue;const t=u(h),a=window.t(t,{context:"input"});let p=null;if("resolution"===h.type)p=Object(o.k)({option:Object(o.b)(e,i[h.id],"Change "+t)},{id:"StudyInput"+t,title:a,options:new l.a(r.resolutionItems)});else if("source"===h.type){const n=Object(s.ensure)(r.sourcesItems);p=Object(o.k)({option:Object(o.b)(e,i[h.id],"Change "+t)},{id:"StudyInput"+t,title:a,options:n})
4
- }else if("options"in h&&void 0!==h.options){const s=[];for(const e of h.options){const t=h.optionsTitles&&h.optionsTitles[e]||e,i=window.t(t);s.push({value:e,title:i})}p=Object(o.k)({option:Object(o.b)(e,i[h.id],"Change "+t)},{id:"StudyInput"+t,title:a,options:new l.a(s)})}else if("symbol"===h.type){const n=i[h.id],l=Object(s.ensure)(r.getSymbolInfoBySymbol),c=Object(s.ensure)(r.onSymbolsInfosChanged);p=Object(o.p)({symbol:Object(o.z)(e,n,l,c,"Change "+a,r.customSymbolInputSetter)},{id:"StudyInput"+t,title:a})}else if("session"===h.type)p=Object(o.o)({session:Object(o.b)(e,i[h.id],"Change "+t)},{id:"StudyInput"+t,title:a});else if("bool"===h.type)p=Object(o.c)({checked:Object(o.b)(e,i[h.id],"Change "+a)},{id:"StudyInput"+t,title:a});else if("integer"===h.type||"float"===h.type||"price"===h.type){const s={id:"StudyInput"+t,title:a,type:"float"===h.type||"price"===h.type?1:0,defval:h.defval};h.min&&(s.min=new l.a(h.min)),h.max&&(s.max=new l.a(h.max)),void 0!==h.step&&isFinite(h.step)&&h.step>0&&(s.step=new l.a(h.step)),p=Object(o.j)({value:Object(o.b)(e,i[h.id],"Change "+a)},s)}else p=Object(o.q)({text:Object(o.b)(e,i[h.id],"Change "+a)},{id:"StudyInput"+t,title:a,isEditable:!0,isMultiLine:!1});d.push(p)}return 0===d.length?null:d}}}]);