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,3 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["custom-intervals-add-dialog"],{"+l/S":function(e,t,n){},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("q1tI"),r=n("TSYQ"),o=n("XiJV");function s(e){return a.createElement("div",{className:r(o.separator,e.className)})}},"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"}')},ItnF:function(e,t,n){e.exports={dialog:"dialog-2cMrvu9r",wrapper:"wrapper-2cMrvu9r",separator:"separator-2cMrvu9r"}},Qhte:function(e,t,n){e.exports={scrollable:"scrollable-FNPZI_Xo",content:"content-FNPZI_Xo",row:"row-FNPZI_Xo",title:"title-FNPZI_Xo",control:"control-FNPZI_Xo"}},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},g89m:function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a),o=n("Eyy1"),s=n("TSYQ"),i=n.n(s),l=n("/3z9"),c=n("d700"),d=n("WXjp"),u=n("02pg"),p=n("uhCe"),m=n("/KDZ"),h=n("pafz"),f=n("ZjKI"),b=n("FQhm"),g=n("Iivm");const v=r.a.createContext({setHideClose:()=>{}});var w=n("zztK"),N=n("px1m");function C(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:l,renderAfter:c,draggable:d,className:u,unsetAlign:p}=e,[m,h]=Object(a.useState)(!1);return r.a.createElement(v.Provider,{value:{setHideClose:h}},r.a.createElement("div",{className:i()(N.container,u,(n||p)&&N.unsetAlign)},l,r.a.createElement("div",{"data-dragg-area":d,className:N.title},r.a.createElement("div",{className:N.ellipsis},t),n&&r.a.createElement("div",{className:i()(N.ellipsis,N.subtitle)},n)),c,o&&!m&&r.a.createElement(g.a,{className:N.close,icon:w,onClick:s,"data-name":"close","data-role":"button"})))}var _=n("ItnF");n.d(t,"a",(function(){return A}));const E={vertical:20},O={vertical:0};class A extends r.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},
2
- this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,a=Object(o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(c.b)(n))return void a.focus();if(a.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){b.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){b.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:a,dataName:o,onClickOutside:s,additionalElementPos:l,additionalHeaderElement:c,backdrop:f,shouldForceFocus:b=!0,showSeparator:g,subtitle:v,draggable:w=!0,fullScreen:N=!1,showCloseIcon:A=!0,rounded:S=!0,isAnimationEnabled:P,growPoint:x,dialogTooltip:I,unsetHeaderAlign:j}=this.props,F="after"!==l?c:void 0,y="after"===l?c:void 0;return r.a.createElement(m.a,{rule:p.a.SmallHeight},l=>r.a.createElement(m.a,{rule:p.a.TabletSmall},c=>r.a.createElement(d.a,{rounded:!(c||N)&&S,className:i()(_.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:s,onClickBackdrop:s,fullscreen:c||N,guard:l?O:E,boundByScreen:c||N,shouldForceFocus:b,backdrop:f,draggable:w,isAnimationEnabled:P,growPoint:x,name:this.props.dataName,dialogTooltip:I},r.a.createElement("div",{className:_.wrapper,"data-name":o,"data-dialog-name":"string"==typeof a?a:""},void 0!==a&&r.a.createElement(C,{draggable:w&&!(c||N),onClose:this._handleClose,renderAfter:y,renderBefore:F,subtitle:v,title:a,showCloseIcon:A,className:t,unsetAlign:j}),g&&r.a.createElement(u.a,{className:_.separator}),r.a.createElement(h.a.Consumer,null,e=>this._renderChildren(e,c||N))))))}}},mwqF:function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a),o=n("TSYQ"),s=n("wwkJ"),i=n("ZWNO");function l(e,t){const{intent:n="primary",size:a="m",appearance:r="default",useFullWidth:s=!1,tabIndex:l=0,icon:c,className:d,isGrouped:u,cellState:p,disablePositionAdjustment:m=!1}=t,h=function(e,t){let n="";return 0!==e&&(1&e&&(n=o(n,t["no-corner-top-left"])),2&e&&(n=o(n,t["no-corner-top-right"])),4&e&&(n=o(n,t["no-corner-bottom-right"])),8&e&&(n=o(n,t["no-corner-bottom-left"]))),n}(Object(i.a)(p),e)
3
- ;return o(d,e.button,e["size-"+a],e["intent-"+n],e["appearance-"+r],s&&e["full-width"],-1===l&&e.noOutline,c&&"s"!==a&&e["with-icon"],h,u&&e.grouped,!m&&e["adjust-position"],p.isTop&&e["first-row"],p.isLeft&&e["first-col"])}var c=n("2A9e");n("+l/S");function d(e){const{className:t,intent:n,size:i,appearance:d,disabled:u,useFullWidth:p,reference:m,icon:h,children:f,tabIndex:b,...g}=e,{isGrouped:v,cellState:w,disablePositionAdjustment:N}=Object(a.useContext)(s.a),C=l(c,{intent:n,size:i,appearance:d,disabled:u,useFullWidth:p,tabIndex:b,icon:h,isGrouped:v,cellState:w,disablePositionAdjustment:N});return r.a.createElement("button",{className:o(C,t),disabled:u,ref:m,tabIndex:b,...g},h&&"s"!==i&&r.a.createElement("span",{className:c.icon},h),r.a.createElement("span",{className:c.content},f))}n.d(t,"a",(function(){return d}))},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP",title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},w9vS:function(e,t,n){"use strict";n.r(t),n.d(t,"ToolWidgetIntervalsAddDialog",(function(){return h}));var a=n("q1tI"),r=n.n(a),o=n("YFKU"),s=n("ycFu"),i=n("PECq"),l=n("wHCJ"),c=n("tWVy"),d=n("tmL0"),u=n("cSDC"),p=n("Qhte");const m=u.a.map(e=>({value:e.name,content:e.label}));function h(e){const{onAdd:t,onClose:n,onUnmount:h}=e,[f,b]=Object(a.useState)(u.a[0].name),[g,v]=Object(a.useState)("1");return Object(a.useEffect)(()=>()=>{h&&h()},[]),r.a.createElement(s.a,{dataName:"add-custom-interval-dialog",title:Object(o.t)("Add custom time interval"),isOpened:!0,onSubmit:function(){t(g,f),n()},onCancel:n,onClickOutside:n,onClose:n,render:()=>r.a.createElement(d.a,{className:p.scrollable,onScroll:N},r.a.createElement("div",{className:p.content},r.a.createElement("div",{className:p.row},r.a.createElement("div",{className:p.title},Object(o.t)("Type")),r.a.createElement(i.a,{id:"metric-items",className:p.control,value:f,items:m,onChange:C})),r.a.createElement("div",{className:p.row},r.a.createElement("div",{className:p.title},Object(o.t)("Interval")),r.a.createElement(l.a,{className:p.control,inputMode:"numeric",maxLength:6,value:g,onChange:w})))),defaultActionOnClose:"none",submitButtonText:Object(o.t)("Add"),submitOnEnterKey:!1,fullScreen:!0});function w(e){const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&v(t)}function N(){c.a.fire()}function C(e){b(e)}}},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,13 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["drawing-toolbar"],{"5f7t":function(e,t,o){"use strict";o.r(t);var i=o("q1tI"),n=o.n(i),s=o("i8i4"),a=o("Eyy1"),l=o("YFKU"),r=o("TSYQ"),c=o.n(r),d=o("8+VR"),h=o("Vdly"),u=o("Kxc7"),m=o("mMWL"),p=o("zL3Q"),b=o("FQhm"),g=o("aIyQ"),v=o.n(g),_=o("qFKp"),w=(o("mNbo"),o("MP+M"));class T{constructor(e){this._drawingsAccess=e||{tools:[],type:"black"}}isToolEnabled(e){const t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)}isToolGrayed(e){const t=this._findTool(e);return Boolean(t&&t.grayed)}_findTool(e){return this._drawingsAccess.tools.find(t=>t.name===e)}}var C=o("/3z9"),f=o("+GxX");const S=[{id:"linetool-group-cursors",title:window.t("Cursors"),items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"eraser"}]},{id:"linetool-group-trend-line",title:window.t("Trend Line Tools"),items:[{name:"LineToolTrendLine",hotkeyHash:C.Modifiers.Alt+84},{name:"LineToolArrow"},{name:"LineToolRay"},{name:"LineToolInfoLine"},{name:"LineToolExtended"},{name:"LineToolTrendAngle"},{name:"LineToolHorzLine",hotkeyHash:C.Modifiers.Alt+72},{name:"LineToolHorzRay"},{name:"LineToolVertLine",hotkeyHash:C.Modifiers.Alt+86},{name:"LineToolCrossLine",hotkeyHash:C.Modifiers.Alt+67},{name:"LineToolParallelChannel"},{name:"LineToolRegressionTrend"},{name:"LineToolFlatBottom"},{name:"LineToolDisjointAngle"},null].filter(Boolean)},{id:"linetool-group-gann-and-fibonacci",title:window.t("Gann and Fibonacci Tools"),items:[{name:"LineToolFibRetracement",hotkeyHash:C.Modifiers.Alt+70},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"},{name:"LineToolFibChannel"},{name:"LineToolFibTimeZone"},{name:"LineToolGannSquare"},{name:"LineToolGannFixed"},{name:"LineToolGannComplex"},{name:"LineToolGannFan"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolPitchfan"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"}]},{id:"linetool-group-geometric-shapes",title:window.t("Geometric Shapes"),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"},{name:"LineToolRectangle"},{name:"LineToolEllipse"},{name:"LineToolPath"},{name:"LineToolBezierQuadro"},{name:"LineToolPolyline"},{name:"LineToolTriangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolArc"},{name:"LineToolBezierCubic"}]},{id:"linetool-group-annotation",title:window.t("Annotation Tools"),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolNote"},{name:"LineToolNoteAbsolute"},{name:"LineToolSignpost"},null,{name:"LineToolCallout"},{name:"LineToolBalloon"},{name:"LineToolPriceLabel"},{name:"LineToolPriceNote"},{name:"LineToolArrowMarker"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"},{name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolFlagMark"}].filter(Boolean)},{id:"linetool-group-patterns",title:window.t("Patterns"),items:[{
2
- name:"LineTool5PointsPattern"},{name:"LineToolCypherPattern"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"},{name:"LineToolHeadAndShoulders"},{name:"LineToolElliottImpulse"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottTripleCombo"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}]},{id:"linetool-group-prediction-and-measurement",title:window.t("Prediction and Measurement Tools"),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolDateRange"},{name:"LineToolPriceRange"},{name:"LineToolDateAndPriceRange"},{name:"LineToolBarsPattern"},Object(f.isFeatureEnabled)("remove-line-tool-ghost-feed")?null:{name:"LineToolGhostFeed"},{name:"LineToolProjection"},{name:"LineToolFixedRangeVolumeProfile"}].filter(Boolean)}];var y=o("OiSa"),k=o("cvc5"),E=o("Iivm"),D=o("//lZ"),L=o("9uLv"),O=o("uJ8n"),M=o("Vike");class N extends n.a.PureComponent{constructor(e){super(e),this._scroll=null,this._handleScrollTop=()=>{this.animateTo(Math.max(0,this.currentPosition()-(this.state.heightWrap-50)))},this._handleScrollBot=()=>{this.animateTo(Math.min((this.state.heightContent||0)-(this.state.heightWrap||0),this.currentPosition()+(this.state.heightWrap-50)))},this._handleResizeWrap=({height:e})=>{this.setState({heightWrap:e})},this._handleResizeContent=({height:e})=>{this.setState({heightContent:e})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtTop(),this.isAtBot()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleTopButton:e,isVisibleBotButton:t}=this.state,o=this.isAtTop(),i=this.isAtBot();o||e?o&&e&&this.setState({isVisibleTopButton:!1}):this.setState({isVisibleTopButton:!0}),i||t?i&&t&&this.setState({isVisibleBotButton:!1}):this.setState({isVisibleBotButton:!0})},this.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()}currentPosition(){return this._scroll?this._scroll.scrollTop:0}isAtTop(){return this.currentPosition()<=1}isAtBot(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1}animateTo(e,t=L.b){const o=this._scroll;o&&Object(D.doAnimate)({onStep(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:L.c.easeInOutCubic,duration:t})}render(){const{children:e,isVisibleScrollbar:t,isVisibleFade:o,isVisibleButtons:i,onMouseOver:s,onMouseOut:a}=this.props,{heightContent:l,heightWrap:r,isVisibleBotButton:d,isVisibleTopButton:h}=this.state;return n.a.createElement(k,{whitelist:["height"],onMeasure:this._handleResizeWrap},n.a.createElement("div",{className:O.wrap,onMouseOver:s,onMouseOut:a},n.a.createElement("div",{className:c()(O.scrollWrap,{[O.noScrollBar]:!t}),onScroll:this._handleScroll,ref:e=>this._scroll=e
3
- },n.a.createElement(k,{onMeasure:this._handleResizeContent,whitelist:["height"]},n.a.createElement("div",{className:O.content},e))),o&&n.a.createElement("div",{className:c()(O.fadeTop,{[O.isVisible]:h&&l>r})}),o&&n.a.createElement("div",{className:c()(O.fadeBot,{[O.isVisible]:d&&l>r})}),i&&n.a.createElement("div",{className:c()(O.scrollTop,{[O.isVisible]:h&&l>r}),onClick:this._handleScrollTop},n.a.createElement("div",{className:O.iconWrap},n.a.createElement(E.a,{icon:M,className:O.icon}))),i&&n.a.createElement("div",{className:c()(O.scrollBot,{[O.isVisible]:d&&l>r}),onClick:this._handleScrollBot},n.a.createElement("div",{className:O.iconWrap},n.a.createElement(E.a,{icon:M,className:O.icon})))))}}N.defaultProps={isVisibleScrollbar:!0};var A=o("lxNp"),B=o("tWVy"),j=o("4rU7");function V(e){const{id:t,action:o,isActive:n,isHidden:s,isTransparent:a,toolName:l}=e;return i.createElement(j.a,{id:t,icon:w.a[l].icon,isActive:n,isHidden:s,isTransparent:a,onClick:o,title:w.a[l].localizedName,"data-name":l})}var W=o("wZIs");const P=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61440,61441,61442,61444,61445,61446,61447,61448,61452,61453,61454,61456,61457,61458,61459,61460,61461,61463,61464,61466,61467,61469,61470,61473,61475,61476,61488,61502,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61555,61557,61558,61559,61560,61565,61566,61568,61572,61574,61578,61588,61597,61601,61602,61603,61604,61605,61606,61607,61608,61609,61610,61611,61616,61617,61635,61648,61649,61654,61655,61656,61657,61658,61659,61666,61667,61669,61670,61671,61672,61673,61675,61681,61682,61683,61684,61696,61697,61698,61699,61700,61701,61702,61703,61704,61705,61706,61707,61708,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61746,61747,61748,61749,61751,61752,61753,61754,61757,61758,61760,61764,61768,61769,61770,61771,61772,61773,61774,61776,61777,61778,61799,61811,61812,61813,61814,61815,61816,61817,61818,61819,61820,61821,61826,61827,61828,61829,61830,61831,61832,61836,61838,61840,61842,61845];var F=o("9dlw"),x=o("ijHL"),U=o("Sn4D"),I=o("hn2c"),R=o("KmEK");class z extends i.PureComponent{constructor(e){super(e),this._toggleDropdown=e=>{this.setState({isOpened:void 0!==e?e:!this.state.isOpened})},this._handleClose=()=>{this._toggleDropdown(!1)},this._getDropdownPosition=()=>{if(!this._control)return{x:0,y:0};const e=this._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},this._handleClickArrow=()=>{this._toggleDropdown()},this._handleTouchStart=()=>{this.props.onClickButton&&this.props.onClickButton(),this._toggleDropdown()},this._handlePressStart=()=>{if(d.mobiletouch&&!this.props.checkable)!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton();else{if(this._doubleClickDelay)return clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay,void this._toggleDropdown(!0)
4
- ;this._doubleClickDelay=setTimeout(()=>{delete this._doubleClickDelay,!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton()},175)}this._longPressDelay=setTimeout(()=>{delete this._longPressDelay,this._toggleDropdown(!0)},300)},this._cancelAllTimeouts=()=>{clearTimeout(this._longPressDelay),delete this._longPressDelay,clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay},this._handleTouchPressEnd=e=>{e.cancelable&&e.preventDefault(),this._handlePressEnd()},this._handlePressEnd=()=>{this._longPressDelay&&(clearTimeout(this._longPressDelay),delete this._longPressDelay,this.state.isOpened?this._toggleDropdown(!1):this.props.checkable||this.state.isOpened||!this.props.isActive||d.mobiletouch?!this._doubleClickDelay&&this.props.onClickButton&&this.props.onClickButton():this._toggleDropdown(!0))},this.state={isOpened:!1}}render(){const{buttonActiveClass:e,buttonClass:t,buttonIcon:o,buttonTitle:n,buttonHotKey:s,dropdownTooltip:a,children:l,isActive:c,isGrayed:h,onClickWhenGrayed:u,checkable:m,isSmallTablet:p}=this.props,{isOpened:b}=this.state,g=Object(x.b)(this.props);return i.createElement("div",{className:r(R.dropdown,{[R.isGrayed]:h,[R.isActive]:c,[R.isOpened]:b}),onClick:h?u:void 0},i.createElement("div",{...g,ref:e=>this._control=e,className:R.control},i.createElement("div",{...this._getButtonHandlers(),className:r(R.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(n||s)}),"data-tooltip-hotkey":s,"data-tooltip-delay":1500,"data-role":"button",title:n},i.createElement(j.a,{activeClass:e,className:t,icon:o,isActive:c,isGrayed:h,isTransparent:!m})),!h&&!d.mobiletouch&&i.createElement("div",{className:r(R.arrow,a&&"apply-common-tooltip common-tooltip-vertical"),title:a,onClick:this._handleClickArrow,"data-role":"menu-handle"},i.createElement(E.a,{className:R.arrowIcon,icon:I}))),!h&&(p?b&&i.createElement(U.a,{onClose:this._handleClose,position:"Bottom"},l):i.createElement(F.a,{doNotCloseOn:this,isOpened:b,onClose:this._handleClose,position:this._getDropdownPosition},l)))}_getButtonHandlers(){const{isGrayed:e,checkable:t}=this.props;return e?{}:d.mobiletouch?t?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}}}var G=o("KKsp"),H=o("EA32");const K={icon:window.t("Icon"),dropdownTooltip:window.t("Icons")};class q extends i.Component{constructor(e){super(e),this._renderItem=(e,t)=>{const{isSmallTablet:o}=this.props,n=c()(H.item,o&&H.smallTablet,t&&o&&this.state.isActive&&e===this.state.current&&H.active);return i.createElement("div",{className:n,key:e,onClick:()=>{this._handleSelect(e),Object(B.b)()}},String.fromCharCode(e))},this._onChangeDrawingState=()=>{this.setState({isActive:this._isActive()})},this._handleSelect=e=>{Object(W.saveDefaults)("linetoolicon",{...Object(W.defaults)("linetoolicon"),icon:e}),m.iconTool.setValue(e),m.tool.setValue("LineToolIcon");let{recents:t}=this.state;const o=t.indexOf(e)
5
- ;-1!==o&&t.splice(o,1),t=[e,...t.slice(0,9)],Object(h.setJSON)("linetoolicon.recenticons",t),this.setState({current:e,recents:t})},this.state={current:Object(W.defaults)("linetoolicon").icon,recents:Object(h.getJSON)("linetoolicon.recenticons")||[]}}componentDidMount(){m.tool.subscribe(this._onChangeDrawingState),h.onSync.subscribe(this,this._onSyncSettings)}componentWillUnmount(){m.tool.unsubscribe(this._onChangeDrawingState),h.onSync.unsubscribe(this,this._onSyncSettings)}render(){const{isGrayed:e,toolName:t,isSmallTablet:o}=this.props,{current:n,isActive:s,recents:a}=this.state,l=Object(x.b)(this.props),r=c()(H.wrap,o&&H.smallTablet);return i.createElement(z,{buttonClass:H.button,buttonIcon:i.createElement("div",{className:H.buttonIcon},String.fromCharCode(n||P[0])),buttonTitle:K.icon,dropdownTooltip:K.dropdownTooltip,isActive:s,isGrayed:e,isSmallTablet:o,onClickButton:()=>this._handleSelect(n||P[0]),onClickWhenGrayed:()=>Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:w.a[t].localizedName}),...l},a&&i.createElement(i.Fragment,null,o&&i.createElement("div",{className:H.title},window.t("Recently used")),i.createElement("div",{className:r},a.map(e=>this._renderItem(e,!0))),i.createElement(G.a,{className:c()(o&&H.separator)})),i.createElement("div",{key:"all",className:r},P.map(e=>this._renderItem(e))))}_isActive(){return m.tool.value()===this.props.toolName}_onSyncSettings(){this.setState({recents:Object(h.getJSON)("linetoolicon.recenticons")})}}var J=o("Ocx9");class Y extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{this.props.saveDefaultOnChange&&Object(J.saveDefaultProperties)(!0);const e=!this.props.property.value();this.props.property.setValue(e),this.props.saveDefaultOnChange&&Object(J.saveDefaultProperties)(!1),this.props.onClick&&this.props.onClick(e)},this.state={isActive:this.props.property.value()}}componentDidMount(){this.props.property.subscribe(this,this._onChange)}componentWillUnmount(){this.props.property.unsubscribe(this,this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=w.a[e];return i.createElement(j.a,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}_onChange(e){this.setState({isActive:e.value()})}}class Q extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{m.tool.setValue(this.props.toolName)},this._onChange=()=>{this.setState({isActive:m.tool.value()===this.props.toolName})},this.state={isActive:m.tool.value()===this.props.toolName}}componentDidMount(){m.tool.subscribe(this._onChange)}componentWillUnmount(){m.tool.unsubscribe(this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=w.a[e];return i.createElement(j.a,{icon:w.a[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}}class Z extends i.PureComponent{constructor(e){super(e),this._boundUndoModel=null,this._handleClick=()=>{const e=this._activeChartWidget()
6
- ;e.hasModel()&&e.model().zoomFromViewport()},this._syncUnzoomButton=()=>{const e=this._activeChartWidget();let t=!1;if(e.hasModel()){const o=e.model();this._boundUndoModel!==o&&(this._boundUndoModel&&this._boundUndoModel.zoomStack().onChange().unsubscribe(null,this._syncUnzoomButton),o.zoomStack().onChange().subscribe(null,this._syncUnzoomButton),this._boundUndoModel=o),t=!o.zoomStack().isEmpty()}else e.withModel(null,this._syncUnzoomButton);this.setState({isVisible:t})},this.state={isVisible:!1}}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)}render(){return this.state.isVisible?i.createElement(V,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):i.createElement("div",null)}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}}var X=o("b2d7"),$=o("pr86"),ee=o("N5tr"),te=o("dhVi");class oe extends i.PureComponent{constructor(e){super(e),this._onChangeDrawingState=()=>{const e=this._getActiveToolIndex();this.setState({current:-1!==e?e:this.state.current,isActive:-1!==e})},this._handleClickButton=()=>{if(_.CheckMobile.any())return;const e=this._getCurrentToolName();this._selectTool(e)},this._handleClickItem=e=>{this._selectTool(e)},this._handleGrayedClick=e=>{Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:w.a[e].localizedName})},this._handleClickFavorite=e=>{this.state.favState&&this.state.favState[e]?X.a.removeFavorite(e):X.a.addFavorite(e)},this._onAddFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!0}})},this._onRemoveFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!1}})},this._onSyncFavorites=()=>{this.setState({favState:this._composeFavState()})};const t=this._getActiveToolIndex();this.state={current:-1===t?this._firstNonGrayedTool():t,favState:this._composeFavState(),isActive:-1!==t}}componentDidMount(){m.tool.subscribe(this._onChangeDrawingState),X.a.favoriteAdded.subscribe(null,this._onAddFavorite),X.a.favoriteRemoved.subscribe(null,this._onRemoveFavorite),X.a.favoritesSynced.subscribe(null,this._onSyncFavorites)}componentWillUnmount(){m.tool.unsubscribe(this._onChangeDrawingState),X.a.favoriteAdded.unsubscribe(null,this._onAddFavorite),X.a.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),X.a.favoritesSynced.unsubscribe(null,this._onSyncFavorites)}componentDidUpdate(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})}render(){const{favoriting:e,grayedTools:t,lineTools:o,dropdownTooltip:n,isSmallTablet:s}=this.props,{current:a,favState:l,isActive:r}=this.state,c=this._getCurrentToolName(),d=w.a[c],h=this._showShortcuts(),u=Object(x.b)(this.props);return i.createElement("span",null,i.createElement(z,{buttonIcon:d.icon,buttonTitle:d.localizedName,buttonHotKey:d.hotKey,dropdownTooltip:n,isActive:r,onClickButton:this._handleClickButton,isSmallTablet:s,...u},o.map((o,n)=>{
7
- const c=o.name,d=w.a[c],u=t[c];return i.createElement(ee.b,{key:c,"data-name":o.name,theme:s?te.a:void 0,dontClosePopup:u,forceShowShortcuts:h,shortcut:!s&&o.hotkeyHash?Object(C.humanReadableHash)(o.hotkeyHash):void 0,icon:d.icon,isActive:r&&a===n,appearAsDisabled:u,label:d.localizedName,onClick:u?this._handleGrayedClick:this._handleClickItem,onClickArg:c,showToolboxOnHover:!l[c],toolbox:e&&!u?i.createElement($.a,{isActive:r&&a===n,isFilled:l[c],onClick:()=>this._handleClickFavorite(c)}):void 0})})))}_getCurrentToolName(){const{current:e}=this.state,{lineTools:t}=this.props;return t[e||0].name}_firstNonGrayedTool(){const{grayedTools:e,lineTools:t}=this.props;return t.findIndex(t=>!e[t.name])}_getActiveToolIndex(){return this.props.lineTools.findIndex(e=>e.name===m.tool.value())}_showShortcuts(){return this.props.lineTools.some(e=>"shortcut"in e)}_selectTool(e){m.tool.setValue(e)}_composeFavState(){const e={};return this.props.lineTools.forEach(t=>{e[t.name]=X.a.isFavorite(t.name)}),e}}var ie=o("JWMC"),ne=o("nPPD"),se=o("FTBN");const ae=Object(ne.a)(ee.a,se),le={all:window.t("Remove Drawings & Indicators"),drawings:window.t("Remove Drawings"),studies:window.t("Remove Indicators")};class re extends i.PureComponent{constructor(){super(...arguments),this._handleRemoveToolClick=()=>{d.mobiletouch||this._handleRemoveDrawings()},this._handleRemoveDrawings=()=>{Object(ie.trackEvent)("GUI","Chart Left Toolbar","remove drawing"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},this._handleRemoveStudies=()=>{Object(ie.trackEvent)("GUI","Chart Left Toolbar","remove indicator"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},this._handleRemoveAll=()=>{Object(ie.trackEvent)("GUI","Chart Left Toolbar","remove all"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()}}render(){const e=this.props.isSmallTablet?ae:void 0;return i.createElement(z,{buttonIcon:w.a[this.props.toolName].icon,buttonTitle:le.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName},i.createElement(ee.b,{"data-name":"remove-drawing-tools",label:le.drawings,onClick:this._handleRemoveDrawings,theme:e}),i.createElement(ee.b,{"data-name":"remove-studies",label:le.studies,onClick:this._handleRemoveStudies,theme:e}),i.createElement(ee.b,{"data-name":"remove-all",label:le.all,onClick:this._handleRemoveAll,theme:e}))}}var ce=o("Ijvb");function de(e){const{hideDrawingsProperty:t,hideIndicatorsProperty:o,isSmallTablet:s}=e,[a,r]=Object(i.useState)(()=>h.getValue("ChartToolsHideMode","drawings")),[c,d]=Object(i.useState)(()=>t.value()),[u,m]=Object(i.useState)(()=>o.value());Object(i.useEffect)(()=>{const e=v("drawings",d),i=v("indicators",m);return t.subscribe(null,e),o.subscribe(null,i),()=>{t.unsubscribe(null,e),o.unsubscribe(null,i)}},[]);const p=w.a.hideAllDrawings,b=c||u,g=s?ae:void 0;return n.a.createElement(z,{buttonIcon:function(){switch(a){case"drawings":
8
- return c?ce.a.hideAllDrawingToolsActive:ce.a.hideAllDrawingTools;case"indicators":return u?ce.a.hideAllIndicatorsActive:ce.a.hideAllIndicators;default:return c&&u?ce.a.hideAllDrawingsActive:ce.a.hideAllDrawings}}(),buttonTitle:function(){switch(a){case"drawings":return b?Object(l.t)("Show all drawings"):Object(l.t)("Hide all drawings");case"indicators":return b?Object(l.t)("Show all indicators"):Object(l.t)("Hide all indicators");default:return b?Object(l.t)("Show all drawings and indicators"):Object(l.t)("Hide all drawings and indicators")}}(),buttonHotKey:p.hotKey,onClickButton:function(){switch(a){case"drawings":he(t);break;case"indicators":he(o);break;default:he(t),he(o)}},isSmallTablet:s,isActive:b,checkable:!0,"data-name":"hide-all","data-type":{drawings:"hide-drawing-tools",indicators:"hide-indicators",all:"hide-drawings-and-indicators"}[a]},n.a.createElement(ee.b,{label:Object(l.t)("Hide drawings"),isActive:c&&!u,onClick:function(){const e="all"===a||!c;o.setValue(!1),t.setValue(e),_("drawings"),ue("hide drawings",e)},"data-name":"hide-drawing-tools",theme:g}),n.a.createElement(ee.b,{label:Object(l.t)("Hide indicators"),isActive:!c&&u,onClick:function(){const e="all"===a||!u;t.setValue(!1),o.setValue(e),_("indicators"),ue("hide indicators",e)},"data-name":"hide-indicators",theme:g}),n.a.createElement(ee.b,{label:Object(l.t)("Hide drawings & indicators"),isActive:c&&u,onClick:function(){const e=!(c&&u);t.setValue(e),o.setValue(e),_("all"),ue("hide drawings and indicators",e)},"data-name":"hide-drawings-and-indicators",theme:g}));function v(e,t){return e=>t(e.value())}function _(e){r(e),h.setValue("ChartToolsHideMode",e)}}function he(e){e.setValue(!e.value())}function ue(e,t){Object(ie.trackEvent)("GUI","Chart Left Toolbar",`${e} ${t?"on":"off"}`)}var me=o("g5Qf"),pe=o("85c9");const be=window.t("Show Favorite Drawing Tools Toolbar");class ge extends i.PureComponent{constructor(){super(...arguments),this._instance=null,this._promise=null,this._bindedForceUpdate=()=>this.forceUpdate(),this._handleClick=()=>{null!==this._instance&&(this._instance.isVisible()?this._instance.hide():this._instance.show())}}componentDidMount(){const e=this._promise=Object(a.ensureNotNull)(Object(me.getFavoriteDrawingToolbarPromise)());e.then(t=>{this._promise===e&&(this._instance=t,this._instance.canBeShown().subscribe(this._bindedForceUpdate),this._instance.visibility().subscribe(this._bindedForceUpdate),this.forceUpdate())})}componentWillUnmount(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)}render(){return null!==this._instance&&this._instance.canBeShown().value()?i.createElement(j.a,{id:this.props.id,icon:pe,isActive:this._instance.isVisible(),onClick:this._handleClick,title:be}):null}}var ve,_e=o("4o++");!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(ve||(ve={}))
9
- ;var we=o("8d0Q"),Te=o("XAms"),Ce=o("7RN7"),fe=o("X0gx"),Se=o("Wz44");const ye=Se,ke="http://www.w3.org/2000/svg";function Ee(e){const{direction:t,theme:o=Se}=e;return i.createElement("svg",{xmlns:ke,width:"9",height:"27",viewBox:"0 0 9 27",className:r(o.container,"right"===t?o.mirror:null),onContextMenu:Te.a},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),i.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var De=o("ybOa");const Le=Object(ne.a)(ye,De),Oe={hide:window.t("Hide Drawings Toolbar"),show:window.t("Show Drawings Toolbar")};class Me extends i.PureComponent{constructor(){super(...arguments),this._toggleVisibility=()=>{y.isDrawingToolbarVisible.setValue(!y.isDrawingToolbarVisible.value())}}render(){const{toolbarVisible:e,"data-name":t}=this.props;return i.createElement("div",{className:r(Le.toggleButton,"apply-common-tooltip common-tooltip-vertical",!e&&Le.collapsed),onClick:this._toggleVisibility,title:e?Oe.hide:Oe.show,"data-name":t,"data-value":e?"visible":"collapsed"},i.createElement(Ee,{direction:e?"left":"right",theme:e?void 0:Le}))}}var Ne=o("mkWe"),Ae=o("uhCe"),Be=o("/KDZ");const je={chartWidgetCollection:o("17x9").any.isRequired};var Ve=o("1TxM"),We=o("JQKp");const Pe={weakMagnet:window.t("Weak Magnet"),strongMagnet:window.t("Strong Magnet")},Fe=Object(_.onWidget)(),xe=new v.a,Ue=ie.trackEvent.bind(null,"GUI","Chart Left Toolbar"),Ie=(e,t)=>Ue(`${e} ${t?"on":"off"}`);function Re(){const e=!m.properties().childs().magnet.value();Ie("magnet mode",e),Object(J.saveDefaultProperties)(!0),m.properties().childs().magnet.setValue(e),Object(J.saveDefaultProperties)(!1)}function ze(){Object(ie.trackEvent)("GUI","Magnet mode","Weak"),Object(J.saveDefaultProperties)(!0),m.properties().childs().magnetMode.setValue(_e.MagnetMode.WeakMagnet),m.properties().childs().magnet.setValue(!0),Object(J.saveDefaultProperties)(!1)}function Ge(){Object(ie.trackEvent)("GUI","Magnet mode","Strong"),Object(J.saveDefaultProperties)(!0),m.properties().childs().magnetMode.setValue(_e.MagnetMode.StrongMagnet),m.properties().childs().magnet.setValue(!0),Object(J.saveDefaultProperties)(!1)}class He extends i.PureComponent{constructor(e){var t;super(e),this._grayedTools={},this._handleDrawingClick=e=>{Ie("drawing mode",e)},this._handleLockClick=e=>{Ie("lock all drawing",e)},this._handleSyncClick=e=>{Ie("sync",e)},this._handleMouseOver=e=>{Object(we.a)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{Object(we.a)(e)&&this.setState({isHovered:!1})},this._handleChangeVisibility=e=>{this.setState({isVisible:e})},this._handleEsc=()=>{m.resetToCursor(!0)},this._updateMagnetEnabled=()=>{const e={magnet:Object(p.a)().value()};this.setState(e)},this._updateMagnetMode=()=>{const e={magnetMode:Object(p.b)().value()};this.setState(e)},this._handleWidgetbarSettled=e=>{var t;this.setState({isWidgetbarVisible:null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value(),widgetbarSettled:e})},
10
- this._handleWidgetbarVisible=e=>{this.setState({isWidgetbarVisible:e})},m.init(),this._toolsFilter=new T(this.props.drawingsAccess),this._filteredLineTools=S.map(e=>({id:e.id,title:e.title,items:e.items.filter(e=>this._toolsFilter.isToolEnabled(w.a[e.name].localizedName))})).filter(e=>0!==e.items.length),this._filteredLineTools.forEach(e=>e.items.forEach(e=>{this._grayedTools[e.name]=this._toolsFilter.isToolGrayed(w.a[e.name].localizedName)})),this.state={isHovered:!1,isVisible:y.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:m.properties().childs().magnet.value(),magnetMode:m.properties().childs().magnetMode.value()},this._features={favoriting:!Fe&&u.enabled("items_favoriting"),multicharts:u.enabled("support_multicharts"),tools:!Fe||u.enabled("charting_library_base")},this._registry={chartWidgetCollection:this.props.chartWidgetCollection},this._negotiateResizer()}componentDidMount(){var e;y.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),B.a.subscribe(this,this._handleGlobalClose),Object(p.a)().subscribe(this._updateMagnetEnabled),Object(p.b)().subscribe(this._updateMagnetMode),this._tool=m.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),_.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))}componentWillUnmount(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),y.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),B.a.unsubscribe(this,this._handleGlobalClose),Object(p.a)().unsubscribe(this._updateMagnetEnabled),Object(p.b)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()}componentDidUpdate(e,t){var o;const{isVisible:i,widgetbarSettled:n}=this.state;i!==t.isVisible&&(b.emit("toggle_sidebar",!i),h.setValue("ChartDrawingToolbarWidget.visible",i),this._negotiateResizer()),t.widgetbarSettled!==n&&n&&_.CheckMobile.any()&&(null===(o=window.widgetbar)||void 0===o||o.visible().subscribe(this._handleWidgetbarVisible))}render(){const{bgColor:e,chartWidgetCollection:t,readOnly:o}=this.props,{isHovered:n,isVisible:s,magnet:a,magnetMode:l}=this.state,c={backgroundColor:e&&"#"+e};let h;h=i.createElement(Me,{toolbarVisible:s,"data-name":"toolbar-drawing-toggle-button"});const p=()=>!!this._features.tools&&!!u.enabled("show_object_tree");return i.createElement(Ve.a,{validation:je,value:this._registry},i.createElement(fe.a.Provider,{value:xe},i.createElement(Ne.b,null,i.createElement(Be.a,{rule:Ae.a.TabletSmall},e=>i.createElement("div",{id:"drawing-toolbar",className:r(We.drawingToolbar,{[We.isHidden]:!s}),style:c,onClick:this.props.onClick,onContextMenu:Te.b},i.createElement(N,{onScroll:this._handleGlobalClose,isVisibleFade:d.mobiletouch,isVisibleButtons:!d.mobiletouch&&n,
11
- isVisibleScrollbar:!1,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:We.inner},!o&&i.createElement("div",{className:We.group,style:c},this._filteredLineTools.map((o,n)=>i.createElement(oe,{"data-name":o.id,chartWidgetCollection:t,favoriting:this._features.favoriting,grayedTools:this._grayedTools,key:n,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:e})),this._toolsFilter.isToolEnabled("Font Icons")&&i.createElement(q,{"data-name":"linetool-group-font-icons",isGrayed:this._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:e})),!o&&i.createElement("div",{className:We.group,style:c},i.createElement(Q,{toolName:"measure"}),i.createElement(Q,{toolName:"zoom"}),i.createElement(Z,{chartWidgetCollection:t})),!o&&i.createElement("div",{className:We.group,style:c},i.createElement(z,{"data-name":"magnet-button",buttonIcon:l===_e.MagnetMode.StrongMagnet?ce.a.strongMagnet:ce.a.magnet,buttonTitle:w.a.magnet.localizedName,isActive:a,onClickButton:Re,buttonHotKey:w.a.magnet.hotKey,checkable:!0,isSmallTablet:e},i.createElement(ee.b,{key:"weakMagnet",className:e?We.popupMenuItem:void 0,"data-name":"weakMagnet",icon:ce.a.magnet,isActive:a&&l!==_e.MagnetMode.StrongMagnet,label:Pe.weakMagnet,onClick:ze}),i.createElement(ee.b,{key:"strongMagnet",className:e?We.popupMenuItem:void 0,"data-name":"strongMagnet",icon:ce.a.strongMagnet,isActive:a&&l===_e.MagnetMode.StrongMagnet,label:Pe.strongMagnet,onClick:Ge})),this._features.tools&&i.createElement(Y,{property:m.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:this._handleDrawingClick}),this._features.tools&&i.createElement(Y,{property:m.lockDrawings(),toolName:"lockAllDrawings",onClick:this._handleLockClick}),this._features.tools&&i.createElement(de,{isSmallTablet:e,hideDrawingsProperty:m.hideAllDrawings(),hideIndicatorsProperty:m.hideAllIndicators()}),!1),!o&&this._features.tools&&i.createElement("div",{className:We.group,style:c},i.createElement(re,{chartWidgetCollection:t,isSmallTablet:e,toolName:"removeAllDrawingTools"})),i.createElement("div",{className:We.fill,style:c}),!o&&(this._features.tools||!1)&&i.createElement("div",{className:r(We.group,We.lastGroup),style:c},!1,this._features.tools&&this._features.favoriting&&i.createElement(ge,{id:ve.FavoriteDrawings}),p()&&i.createElement(V,{id:ve.ObjectTree,action:()=>this._activeChartWidget().showObjectsTreeDialog(),toolName:"showObjectsTree"})))),h)))))}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}_negotiateResizer(){const e=Ce.a;this.props.resizerBridge.negotiateWidth(this.state.isVisible?Ce.b:e)}_handleGlobalClose(){xe.fire()}_updateHotkeys(){this._hotkeys.promote()}_initHotkeys(){this._hotkeys=A.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:()=>this._handleEsc(),isDisabled:()=>m.toolIsCursor(m.tool.value())})}}o.d(t,"DrawingToolbarRenderer",(function(){return Ke}));class Ke{constructor(e,t){this._component=null,this._handleRef=e=>{
12
- this._component=e},this._container=e,s.render(i.createElement(He,{...t,ref:this._handleRef}),this._container)}destroy(){s.unmountComponentAtNode(this._container)}getComponent(){return Object(a.ensureNotNull)(this._component)}}},"85c9":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="19" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.103.687a1 1 0 0 1 1.794 0l2.374 4.81 5.309.772a1 1 0 0 1 .554 1.706l-3.841 3.745.906 5.287a1 1 0 0 1-1.45 1.054L10 15.565 5.252 18.06A1 1 0 0 1 3.8 17.007l.907-5.287L.866 7.975a1 1 0 0 1 .554-1.706l5.31-.771L9.102.688zM10 1.13L7.393 6.412l-5.829.847 4.218 4.111-.996 5.806L10 14.436l5.214 2.74-.996-5.805 4.218-4.112-5.83-.847L10 1.13z"/></svg>'},EA32:function(e,t,o){e.exports={wrap:"wrap-2qy9YC6D",smallTablet:"smallTablet-2qy9YC6D",buttonIcon:"buttonIcon-2qy9YC6D",item:"item-2qy9YC6D",hovered:"hovered-2qy9YC6D",active:"active-2qy9YC6D",title:"title-2qy9YC6D",separator:"separator-2qy9YC6D",button:"button-2qy9YC6D"}},FTBN:function(e,t,o){e.exports={item:"item-3NgvBqLJ",label:"label-3NgvBqLJ"}},JQKp:function(e,t,o){e.exports={drawingToolbar:"drawingToolbar-2_so5thS",isHidden:"isHidden-2_so5thS",inner:"inner-2_so5thS",popupMenuItem:"popupMenuItem-2_so5thS",group:"group-2_so5thS",noGroupPadding:"noGroupPadding-2_so5thS",lastGroup:"lastGroup-2_so5thS",fill:"fill-2_so5thS",separator:"separator-2_so5thS"}},KmEK:function(e,t,o){e.exports={dropdown:"dropdown-191zO2Od",buttonWrap:"buttonWrap-191zO2Od",control:"control-191zO2Od",arrow:"arrow-191zO2Od",arrowIcon:"arrowIcon-191zO2Od",isOpened:"isOpened-191zO2Od",hover:"hover-191zO2Od",isGrayed:"isGrayed-191zO2Od"}},R5JZ:function(e,t,o){"use strict";function i(e,t,o,i,n){function s(n){if(e>n.timeStamp)return;const s=n.target;void 0!==o&&null!==t&&null!==s&&s.ownerDocument===i&&(t.contains(s)||o(n))}return n.click&&i.addEventListener("click",s,!1),n.mouseDown&&i.addEventListener("mousedown",s,!1),n.touchEnd&&i.addEventListener("touchend",s,!1),n.touchStart&&i.addEventListener("touchstart",s,!1),()=>{i.removeEventListener("click",s,!1),i.removeEventListener("mousedown",s,!1),i.removeEventListener("touchend",s,!1),i.removeEventListener("touchstart",s,!1)}}o.d(t,"a",(function(){return i}))},Sn4D:function(e,t,o){"use strict";o.d(t,"a",(function(){return p}));var i=o("q1tI"),n=o.n(i),s=o("Eyy1"),a=o("TSYQ"),l=o("x0D+"),r=o("0YpW"),c=o("AiMB"),d=o("mkWe"),h=o("qFKp"),u=o("X0gx"),m=o("sHQ4");function p(e){const{position:t="Bottom",onClose:o,children:p,className:b,theme:g=m}=e,v=Object(s.ensureNotNull)(Object(i.useContext)(d.a)),[_,w]=Object(i.useState)(0),T=Object(i.useRef)(null),C=Object(i.useContext)(u.a);return Object(i.useEffect)(()=>{const e=Object(s.ensureNotNull)(T.current);return e.focus({preventScroll:!0}),C.subscribe(v,o),Object(r.a)(!0),h.CheckMobile.iOS()&&Object(l.disableBodyScroll)(e),w(v.addDrawer()),()=>{C.unsubscribe(v,o);const t=v.removeDrawer();h.CheckMobile.iOS()&&Object(l.enableBodyScroll)(e),0===t&&Object(r.a)(!1)}},[]),n.a.createElement(c.a,null,n.a.createElement("div",{
13
- className:a(m.wrap,m["position"+t])},_===v.currentDrawer&&n.a.createElement("div",{className:m.backdrop,onClick:o}),n.a.createElement("div",{className:a(m.drawer,g.drawer,m["position"+t],b),ref:T,tabIndex:-1,"data-name":e["data-name"]},p)))}},Vike:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10" width="20" height="10"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M2 1l8 8 8-8"/></svg>'},Wz44:function(e,t,o){e.exports={container:"container-3CL4Geq2",mirror:"mirror-3CL4Geq2",background:"background-3CL4Geq2",arrow:"arrow-3CL4Geq2"}},ijHL:function(e,t,o){"use strict";function i(e){return s(e,a)}function n(e){return s(e,l)}function s(e,t){const o=Object.entries(e).filter(t),i={};for(const[e,t]of o)i[e]=t;return i}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function l(e){return 0===e[0].indexOf("aria-")}o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return n})),o.d(t,"c",(function(){return s})),o.d(t,"e",(function(){return a})),o.d(t,"d",(function(){return l}))},mkWe:function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"a",(function(){return a}));var i=o("q1tI"),n=o.n(i);class s extends n.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.a.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.a.createContext(null)},sHQ4:function(e,t,o){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},uJ8n:function(e,t,o){e.exports={wrap:"wrap-379NmUSU",scrollWrap:"scrollWrap-379NmUSU",noScrollBar:"noScrollBar-379NmUSU",content:"content-379NmUSU",icon:"icon-379NmUSU",scrollBot:"scrollBot-379NmUSU",scrollTop:"scrollTop-379NmUSU",isVisible:"isVisible-379NmUSU",iconWrap:"iconWrap-379NmUSU",fadeBot:"fadeBot-379NmUSU",fadeTop:"fadeTop-379NmUSU"}},ybOa:function(e,t,o){e.exports={toggleButton:"toggleButton-3zv4iS2j",collapsed:"collapsed-3zv4iS2j",background:"background-3zv4iS2j",arrow:"arrow-3zv4iS2j"}}}]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["export-data"],{SIoL:function(e,t,s){"use strict";s.r(t),s.d(t,"exportData",(function(){return r}));s("YFKU");var i=s("Eyy1"),l=s("ZJKN"),n=s("k9/m"),o=s("23IT"),a=s("cKqi"),c=s("xCUR");const d={includeTime:!0,includeUserTime:!1,includeSeries:!0,includeDisplayedValues:!1,includedStudies:"all"};function r(e,t={}){const s=Object.assign({},d,t),o={schema:[],data:[],displayedData:[]},r=e.timeScale().points(),f=e.mainSeries(),m=function(e,t){const s=e.allStudies().filter(e=>e.showInObjectTree());if("all"===t)return s;return s.filter(e=>t.includes(e.id()))}(e,s.includedStudies),T=m.filter(e=>e instanceof a.study_Overlay).map(e=>e.data());(s.includeSeries||0===T.length)&&T.push(f.bars());const y=function(e,t,s,o){const a=Object(i.ensureNotNull)(void 0!==s?e.indexOf(s,!0):e.firstIndex()),c=Object(i.ensureNotNull)(void 0!==o?e.indexOf(o,!0):e.lastIndex());let d=c,r=a;for(const e of t){const t=e.search(a,n.PlotRowSearchMode.NearestRight);null!==t&&t.index<d&&(d=t.index);const s=e.search(c,n.PlotRowSearchMode.NearestLeft);null!==s&&s.index>r&&(r=s.index)}return Object(i.assert)(d<=r,"Range must contain at least 1 time point"),new l.BarsRange(d,r)}(r,T,s.from,s.to),w=y.firstBar(),O=y.lastBar();s.includeTime&&o.schema.push({type:"time"});const b=o.schema.length;s.includeUserTime&&o.schema.push({type:"userTime"});const g=o.schema.length;if(s.includeSeries){const e=f.statusProvider({hideResolution:!0}).getSplitTitle().filter(e=>""!==e).join(", ");o.schema.push(h("open",e)),o.schema.push(h("high",e)),o.schema.push(h("low",e)),o.schema.push(h("close",e))}let j=o.schema.length;const P=[];for(const e of m){const t=u(e);P.push(t),o.schema.push(...t.fields)}const x=o.schema.length;if(0===x)return o;for(let e=w;e<=O;++e){const e=new Float64Array(x);e.fill(NaN),o.data.push(e),s.includeDisplayedValues&&o.displayedData.push(new Array(x).fill(""))}if(s.includeTime||s.includeUserTime){const t=e.timeScale(),l=e.dateTimeFormatter();for(let e=w;e<=O;++e){s.includeTime&&(o.data[e-w][0]=Object(i.ensureNotNull)(r.valueAt(e)));const n=Object(i.ensureNotNull)(t.indexToUserTime(e));if(s.includeUserTime&&(o.data[e-w][b]=n.getTime()/1e3),s.includeDisplayedValues){const t=l.format(n);s.includeTime&&(o.displayedData[e-w][0]=t),s.includeUserTime&&(o.displayedData[e-w][b]=t)}}}if(s.includeSeries){const e=f.bars().range(w,O),t=Object(c.a)(f);e.each((e,i)=>{const l=o.data[e-w],n=p(i[1]),a=p(i[2]),c=p(i[3]),d=p(i[4]);if(l[g]=n,l[g+1]=a,l[g+2]=c,l[g+3]=d,s.includeDisplayedValues){const s=o.displayedData[e-w];s[g]=t(n),s[g+1]=t(a),s[g+2]=t(c),s[g+3]=t(d)}return!1})}for(let e=0;e<m.length;++e){const t=m[e],i=P[e],l=Object(c.a)(t);for(let e=0;e<i.fields.length;++e){const n=i.fieldPlotOffsets[e],a=i.fieldToPlotIndex[e],c=w-n,d=O-n,r=j+e;t.data().range(c,d).each((e,t)=>{const i=o.data[e-c],n=p(t[a]);return i[r]=n,s.includeDisplayedValues&&(o.displayedData[e-c][r]=l(n)),!1})}j+=i.fields.length}return o}function u(e){const t=e.metaInfo(),s={fieldToPlotIndex:[],fieldPlotOffsets:[],fields:[]
2
- },l=e.id(),n=e.title(!1,void 0,!1);for(let a=0;a<t.plots.length;++a){const c=t.plots[a];let d,r="";if(Object(o.isLinePlot)(c)||Object(o.isShapesPlot)(c)||Object(o.isCharsPlot)(c)||Object(o.isArrowsPlot)(c))d=Object(i.ensureDefined)(t.styles)[c.id];else if(Object(o.isOhlcPlot)(c))switch(d=t.ohlcPlots&&t.ohlcPlots[c.target],c.type){case"ohlc_open":r=` (${window.t("Open")})`;break;case"ohlc_high":r=" ("+window.t("High");break;case"ohlc_low":r=` (${window.t("Low")})`;break;case"ohlc_close":r=` (${window.t("Close")})`}if(void 0===d||void 0===d.title)continue;const u=`${d.title}${r}`;s.fields.push(f(l,n,u)),s.fieldToPlotIndex.push(a+1),s.fieldPlotOffsets.push(e.offset(c.id))}return s}function f(e,t,s){return{type:"value",sourceType:"study",sourceId:e,sourceTitle:t,plotTitle:s}}function h(e,t){return{type:"value",sourceType:"series",plotTitle:e,sourceTitle:t}}function p(e){return null!=e?e:NaN}}}]);
@@ -1,20 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["floating-toolbars"],{"+KIV":function(t,e){t.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>'},"0ZwQ":function(t,e,i){"use strict";var o=i("8+VR"),n=i("9uLv"),s=i("Vdly"),r=i("aIyQ"),a=i.n(r),l=i("hY0g"),c=i.n(l),d=i("cZRT");class h extends d.a{_startLoading(){return i.e("hammerjs").then(i.bind(null,"be1f")).then(t=>t.HammerJS)}}var u=i("VVxS");i("Eyy1");function p(t,e=!1){const i=getComputedStyle(t),o=[i.height];return"border-box"!==i.boxSizing&&o.push(i.paddingTop,i.paddingBottom,i.borderTopWidth,i.borderBottomWidth),e&&o.push(i.marginTop,i.marginBottom),o.reduce((t,e)=>t+(parseFloat(e)||0),0)}function g(t,e=!1){const i=getComputedStyle(t),o=[i.width];return"border-box"!==i.boxSizing&&o.push(i.paddingLeft,i.paddingRight,i.borderLeftWidth,i.borderRightWidth),e&&o.push(i.marginLeft,i.marginRight),o.reduce((t,e)=>t+(parseFloat(e)||0),0)}var _=i("qFKp");class m{constructor(t){var e,i;this._helper=null,this._handleDragStart=t=>{var e;if(null!==this._helper)return;if(!(t.target instanceof Element&&this._handle.contains(t.target)))return;const i=this._source;i.classList.add("ui-draggable-dragging");const o=this._getEventTarget();o.addEventListener("pointermove",this._handleDragMove),o.addEventListener("pointerup",this._handleDragStop),o.addEventListener("pointercancel",this._handleDragStop),o.setPointerCapture(t.pointerId);const[n,s]=[g(i),p(i)];this._helper={pointer:t.pointerId,startX:t.clientX,startY:t.clientY,startTop:parseFloat(i.style.top)||0,startLeft:parseFloat(i.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[n,s],containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(i).marginLeft)-parseInt(getComputedStyle(i).marginRight)-n,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(i).marginTop)-parseInt(getComputedStyle(i).marginBottom)-s]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-n,window.scrollY+document.documentElement.offsetHeight-s]:null},null===(e=this._start)||void 0===e||e.call(this)},this._handleDragMove=t=>{var e;if(null===this._helper||this._helper.pointer!==t.pointerId)return;const i=this._source,o=this._helper.nextTop,n=this._helper.nextLeft,s="y"===this._axis||!1===this._axis||0!==t.movementY;if(s){const e=this._helper.startTop
2
- ;isFinite(e)&&(this._helper.nextTop=t.clientY-this._helper.startY+e)}const r="x"===this._axis||!1===this._axis||0!==t.movementX;if(r){const e=this._helper.startLeft;isFinite(e)&&(this._helper.nextLeft=t.clientX-this._helper.startX+e)}if(null!==this._helper.containment){const[t,e,i,o]=this._helper.containment;s&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,o),this._helper.nextTop=Math.max(this._helper.nextTop,e)),r&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,i),this._helper.nextLeft=Math.max(this._helper.nextLeft,t))}null!==this._helper.raf||o===this._helper.nextTop&&n===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame(()=>{null!==this._helper&&(null!==this._helper.nextTop&&(i.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(i.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)})),null===(e=this._drag)||void 0===e||e.call(this)},this._handleDragStop=t=>{var e;if(null===this._helper||this._helper.pointer!==t.pointerId)return;this._source.classList.remove("ui-draggable-dragging");const i=this._getEventTarget();i.removeEventListener("pointermove",this._handleDragMove),i.removeEventListener("pointerup",this._handleDragStop),i.removeEventListener("pointercancel",this._handleDragStop),i.releasePointerCapture(this._helper.pointer),this._helper=null,null===(e=this._stop)||void 0===e||e.call(this)};const o=this._source=t.source;o.classList.add("ui-draggable");const n=this._handle=null!==(e=t.handle?o.querySelector(t.handle):null)&&void 0!==e?e:o;n.style.touchAction="none",n.classList.add("ui-draggable-handle");this._getEventTarget().addEventListener("pointerdown",this._handleDragStart),this._start=t.start,this._stop=t.stop,this._drag=t.drag,this._axis=null!==(i=t.axis)&&void 0!==i&&i,this._containment=t.containment}destroy(){const t=this._source;t.classList.remove("ui-draggable"),t.classList.remove("ui-draggable-dragging");this._handle.style.touchAction="";const e=this._getEventTarget();e.removeEventListener("pointerdown",this._handleDragStart),e.removeEventListener("pointermove",this._handleDragMove),e.removeEventListener("pointerup",this._handleDragStop),e.removeEventListener("pointercancel",this._handleDragStop),null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),e.releasePointerCapture(this._helper.pointer),this._helper=null)}_getEventTarget(){return _.CheckMobile.iOS()||Object(_.isMac)()&&o.touch?window.document.documentElement:this._handle}}var b=i("gWrr"),v=i("JWMC"),w=i("qAO1");i("PwLo");i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return C}));const f="floating-toolbar-react-widgets",y=`<div class="tv-floating-toolbar i-closed i-hidden"><div class="tv-floating-toolbar__widget-wrapper"><div class="tv-floating-toolbar__drag js-drag">${w}</div><div class="tv-floating-toolbar__content js-content"></div><div class="${f}"></div></div></div>`;class C{constructor(t){this._widget=document.createElement("div"),this._isVertical=!1,
3
- this._hiddingTimeoutId=null,this._visibility=new c.a(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new a.a,this._responsiveResizeFunction=null,this._showTimeStamp=null,this._draggable=null,this._preventClickUntilAnimation=t=>{null!==this._showTimeStamp&&performance.now()-this._showTimeStamp<this.hideDuration()&&t.stopPropagation()},C._toolbars.push(this),this._options=t,this._widget=Object(b.b)(y),this._content=this._widget.getElementsByClassName("js-content").item(0),this._reactWidgetsContainer=this._widget.getElementsByClassName(f).item(0),this._setZIndex(C._startZIndex+C._toolbars.length-1),this._options.addClass&&(this._widget.className+=" "+this._options.addClass),this._options["data-name"]&&(this._widget.dataset.name=this._options["data-name"]),this._options.layout&&"auto"!==this._options.layout&&(this._isVertical="vertical"===this._options.layout,this._updateLayoutType(),this._updateAxisOption()),this._widget.addEventListener("click",this._preventClickUntilAnimation,!0)}destroy(){this.hide(!0),C._toolbars.splice(C._toolbars.indexOf(this),1),this._widget.removeEventListener("click",this._preventClickUntilAnimation,!0),document.body.contains(this._widget)&&document.body.removeChild(this._widget),null!==this._draggable&&this._draggable.destroy(),this._widget.innerHTML="",this._responsiveResizeFunction=null}setResponsiveResizeFunc(t){this._responsiveResizeFunction=t}isVisible(){return this._visibility.value()}visibility(){return this._visibility.readonly()}isVertical(){return this._isVertical}show(){this.isVisible()||(document.body.contains(this._widget)||(this._init(),document.body.appendChild(this._widget)),this._setHiddingTimeout(null),window.addEventListener("resize",this._windowResizeListener),this.raise(),this._visibility.setValue(!0),this._showTimeStamp=performance.now(),this._widget.classList.contains("i-hidden")?(this._widget.classList.remove("i-hidden"),setTimeout(()=>{this.isVisible()&&this._widget.classList.remove("i-closed")})):this._widget.classList.remove("i-closed"),this._onWindowResize())}hide(t=!1){if(!this.isVisible())return;const e=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||e)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{const t=setTimeout(()=>{this._setHiddingTimeout(null),this._widget.classList.add("i-hidden")},this.hideDuration());this._setHiddingTimeout(t)}window.removeEventListener("resize",this._windowResizeListener)}raise(){C._toolbars.length+C._startZIndex!==this._zIndex()&&(C._toolbars.splice(C._toolbars.indexOf(this),1),C._toolbars.push(this),C._updateAllZIndexes())}hideDuration(){return.75*n.b}addWidget(t,e={}){const i=this.widgetsCount();if(void 0===e.index&&(e.index=i),e.index<0||e.index>i)throw new Error(`Index must be in [0, ${i}]`);const o=document.createElement("div");o.className="tv-floating-toolbar__widget js-widget",o.appendChild(t);const n=e.index===i?null:this._content.childNodes.item(e.index);this._content.insertBefore(o,n),
4
- this._onWindowResize()}getReactWidgetContainer(){return this._reactWidgetsContainer}removeWidget(t){const e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())}widgetsCount(){return this._content.childNodes.length}showWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")}hideWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")}removeWidgets(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()}onWidgetsReordered(){return this._reorderedDelegate}onContextMenu(t){if(o.mobiletouch){(new h).load().then(e=>{const i=new e(this._widget);i.get("press").set({time:500}),i.on("press",e=>{this._preventWidgetTouchEndEvent(),t(e.srcEvent)})})}else this._widget.addEventListener("contextmenu",t)}checkPosition(){const t=this._getCorrectedWidgetRect(),e={left:t.left,top:t.top};this._correctPosition(e),t.left===e.left&&t.top===e.top||(this._widget.style.left=e.left+"px",this._widget.style.top=e.top+"px")}_determineCurrentLayoutVertical(t){const e=this._isVertical?t.height:t.width;return window.innerWidth<e&&window.innerWidth<window.innerHeight}_getWidget(){return this._widget}_findWrapperForWidget(t){const e=this._content.getElementsByClassName("js-widget");for(let i=0;i<e.length;++i){const o=e.item(i);if(o.contains(t))return o}return null}_onVerticalChanged(t,e){}_setHiddingTimeout(t){null!==this._hiddingTimeoutId&&clearTimeout(this._hiddingTimeoutId),this._hiddingTimeoutId=t}_preventWidgetTouchEndEvent(){const t=e=>{e.preventDefault(),this._widget.removeEventListener("touchend",t)};this._widget.addEventListener("touchend",t)}_updateLayoutType(){this._widget.classList.toggle("i-vertical",this._isVertical)}_updateAxisOption(){0}_onWindowResize(){if("auto"===(this._options.layout||"auto")){const t=this._isVertical,e=this._getCorrectedWidgetRect();this._isVertical=this._determineCurrentLayoutVertical(e),this._updateLayoutType(),t!==this._isVertical&&(this._onVerticalChanged(this._isVertical,t),this._updateAxisOption())}this.checkPosition(),this._resizeResponsive()}_resizeResponsive(){if(null===this._responsiveResizeFunction)return;let t=this._options.layout||"auto";"auto"===t&&(t=this._isVertical?"vertical":"horizontal");const e="vertical"===t?this._widget.clientHeight:this._widget.clientWidth,i=("vertical"===t?window.innerHeight:window.innerWidth)-e;this._responsiveResizeFunction(e,i,t)}_correctPosition(t){const e=this._getCorrectedWidgetRect();t.left+e.width>window.innerWidth&&(t.left=Math.max(0,window.innerWidth-e.width)),t.top+e.height>window.innerHeight&&(t.top=Math.max(0,window.innerHeight-e.height)),t.left=Math.max(0,t.left),t.top=Math.max(0,t.top)}_setZIndex(t){this._widget.style.zIndex=String(t)}_zIndex(){return Number(this._widget.style.zIndex)}_loadPosition(){let t;if("device"===this._options.positionStorageType){const e=u.TVLocalStorage.getItem(this._options.positionSettingsKey);t=null!==e?JSON.parse(e):this._options.defaultPosition
5
- }else t=Object(s.getJSON)(this._options.positionSettingsKey,this._options.defaultPosition);this._widget.style.left=Math.round(t.left)+"px",this._widget.style.top=Math.round(t.top)+"px",this._onWindowResize()}_savePosition(){const t=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{u.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:t.left,top:t.top}))}catch(t){}else Object(s.setJSON)(this._options.positionSettingsKey,{left:t.left,top:t.top})}_init(){this._loadPosition(),this._draggable=new m({source:this._widget,containment:"window",handle:".js-drag",stop:this._savePosition.bind(this)}),this._widget.addEventListener("pointerdown",this.raise.bind(this))}_initSortable(){let t=-1;lazyJqueryUI(this._content).sortable({start:(e,i)=>{t=i.item.index()},stop:(e,i)=>{const o=i.item.index();t!==o&&(Object(v.trackEvent)("Floating Toolbar","User Sort"),this._reorderedDelegate.fire(t,o))},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()}_getCorrectedWidgetRect(){const t=this._widget.getBoundingClientRect();if(this._widget.classList.contains("i-closed")){const e=1/.925-1,i=t.width*e,o=t.height*e;return{bottom:t.bottom+o/2,height:t.height+o,left:t.left-i/2,right:t.right+i/2,top:t.top-o/2,width:t.width+i}}return t}static _updateAllZIndexes(){C._toolbars.forEach((t,e)=>{t._setZIndex(C._startZIndex+e)})}}C._startZIndex=20,C._toolbars=[]},"0fuu":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="none"><path stroke="currentColor" d="M13.5 6.5l-3-3-7 7 7.59 7.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82L13.5 6.5zm0 0v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v6"/><path fill="currentColor" d="M0 16.5C0 15 2.5 12 2.5 12S5 15 5 16.5 4 19 2.5 19 0 18 0 16.5z"/><circle fill="currentColor" cx="9.5" cy="9.5" r="1.5"/></svg>'},"2F1E":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 4" width="18" height="4"><rect width="18" height="4" fill="currentColor" rx="2"/></svg>'},"4QAy":function(t,e,i){},"5hRh":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=i("q1tI");const n=t=>{const[e,i]=Object(o.useState)(t.value());return Object(o.useEffect)(()=>{const e=t=>{i(t.value())};e(t);const o={};return t.subscribe(o,e),()=>t.unsubscribe(o,e)},[t]),e}},ADFN:function(t,e,i){},EvtC:function(t,e,i){t.exports={button:"button-2YcRd2gv"}},HWhk:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'},IhRv:function(t,e,i){"use strict";i.r(e),
6
- i.d(e,"ColorPickerButton",(function(){return b}));var o=i("q1tI"),n=i.n(o),s=i("TSYQ"),r=i.n(s),a=i("Eyy1"),l=i("Iivm"),c=i("eJTA"),d=i("Tmoa"),h=i("V3OP"),u=i("htM8"),p=i("wLjq"),g=i("82wv"),_=i("5hRh"),m=i("X1vi");function b(t){const{property:e,icon:i,model:s,title:b,className:v}=t,w=Object(_.a)(e),f=Object(o.useRef)(null),y=w?Object(c.parseRgba)(w)[3]:void 0,C=""===w,x=String(T()).toLowerCase()===p.c,[W,P,S]=Object(h.a)();return n.a.createElement(g.a,{className:v,content:n.a.createElement("div",{className:m.wrap},n.a.createElement(l.a,{className:m.icon,icon:i}),n.a.createElement("div",{className:m.colorBg},n.a.createElement("div",{className:r()(m.color,C&&m.multicolor,x&&m.white),style:C?void 0:{backgroundColor:w}}))),arrow:!1,title:b,ref:f,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement(u.a,{color:T(),opacity:y,onColorChange:function(t,e){const i=w?Object(d.alphaToTransparency)(Object(c.parseRgba)(w)[3]):0;L(Object(d["generateColor"])(String(t),i,true)),e||Object(a.ensureNotNull)(f.current).close()},onOpacityChange:function(t){L(Object(d.generateColor)(w,Object(d.alphaToTransparency)(t),!0))},selectOpacity:void 0!==y,selectCustom:!0,customColors:W,onAddColor:function(t){P(t),Object(a.ensureNotNull)(f.current).close()},onRemoveCustomColor:S}));function T(){return w?Object(c.rgbToHexString)(Object(c.parseRgb)(w)):null}function L(t){s.setProperty(e,t,b)}}},Lnv9:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><rect width="18" height="2" rx="1" x="5" y="14"/><rect width="18" height="1" rx=".5" x="5" y="20"/><rect width="18" height="3" rx="1.5" x="5" y="7"/></svg>'},O5Oz:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 1" width="18" height="1"><rect width="18" height="1" fill="currentColor" rx=".5"/></svg>'},PwLo:function(t,e,i){},SAe1:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var o=i("q1tI"),n=i("rzV7"),s=i.n(n);class r extends o.Component{constructor(t){super(t),this._handleMediaChange=()=>{const t=l(this.state.queries,(t,e)=>e.matches);let e=!1;for(const i in t)if(t.hasOwnProperty(i)&&this.state.matches[i]!==t[i]){e=!0;break}e&&this.setState({matches:t})};const{rules:e}=this.props;this.state=a(e)}shouldComponentUpdate(t,e){return!s()(t,this.props)||(!s()(e.rules,this.state.rules)||!s()(e.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(t,e){s()(t.rules,this.props.rules)||this._migrate(e.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(t,e){if(s()(t.rules,e.rules))return null;const{rules:i}=t;return a(i)}_migrate(t,e){null!==t&&l(t,(t,e)=>{e.removeListener(this._handleMediaChange)}),null!==e&&l(e,(t,e)=>{e.addListener(this._handleMediaChange)})}}function a(t){const e=l(t,(t,e)=>window.matchMedia(e));return{queries:e,matches:l(e,(t,e)=>e.matches),rules:{...t}}}
7
- function l(t,e){const i={};for(const o in t)t.hasOwnProperty(o)&&(i[o]=e(o,t[o]));return i}},UXdH:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'},Ve4Q:function(t,e,i){"use strict";i.r(e);var o=i("q1tI"),n=i.n(o),s=i("i8i4"),r=i.n(s),a=i("YFKU"),l=i("Kxc7"),c=i("hY0g"),d=i.n(c),h=i("ogJP"),u=i("CW80"),p=i("mMWL"),g=i("j3hX"),_=i("Eyy1"),m=i("tc+8"),b=i.n(m);class v extends b.a{constructor(t,e,i){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t,this._undoModel=e,this._undoText=i}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(t,void 0,{applyValue:(t,e)=>this._undoModel.setProperty(t,e,this._undoText)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const i=i=>{this._isProcess||e.call(t,this)},o={obj:t,method:e,callback:i};this._listenersMappers.push(o),this._baseProperty.subscribe(t,i)}unsubscribe(t,e){var i;const o=Object(_.ensureDefined)(null===(i=this._listenersMappers.find(i=>i.obj===t&&i.method===e))||void 0===i?void 0:i.callback);this._baseProperty.unsubscribe(t,o)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}var w=i("turx"),f=i("SAe1"),y=i("0ZwQ"),C=i("uhCe");const x=y.a+"__button";function W(t){const{templateButton:e,propertyButtons:i,commonButtons:o,isDrawingFinished:s,activeChartWidget:r}=t,a=r.hasModel()&&r.model().selection().dataSources();return a&&a.length?n.a.createElement(f.a,{rules:{isSmallWidth:C.a.TabletSmall,isSmallHeight:"screen and (max-height: 428px)"}},({isSmallWidth:t,isSmallHeight:e})=>n.a.createElement(n.a.Fragment,null,l(),s&&n.a.createElement(n.a.Fragment,null,Boolean(i.length)&&i.map((i,o)=>n.a.createElement(i.component,{...i.props,key:`${i.props.title}_${o}`,className:x,isSmallScreen:t||e})),Boolean(o.length)&&o.map((i,o)=>{const s=t||e;return s?i.showForSmallScreen?n.a.createElement(i.component,{...i.props,isSmallScreen:s,key:`${i.props.title}_${o}`,className:x}):null:n.a.createElement(i.component,{...i.props,key:`${i.props.title}_${o}`,className:x})})))):l();function l(){return null===e?null:n.a.createElement(e.component,{...e.props,isDrawingFinished:s,className:x})}}var P=i("JWMC"),S=i("p0W+"),T=i("Xxuz");function L(t){const{title:e,activeChartWidget:i,className:o}=t;return n.a.createElement(S.a,{className:o,icon:T,title:e,onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Settings"),i.showChartPropertiesForSource(i.model().selection().lineDataSources()[0],void 0,{onWidget:i.onWidget()})},"data-name":"settings"})}var E=i("5hRh"),B=i("TSYQ"),k=i("4rU7"),O=i("ucyy");function V(t){const{className:e,...i}=t;return n.a.createElement(k.a,{className:B(e,O.button),tooltipPosition:"horizontal",...i})}var I=i("43BO"),M=i("Uh5y");function R(t){const{activeChartWidget:e,className:i}=t,o=e.model().selection().lineDataSources()[0].properties().frozen,s=Object(E.a)(o),r=s?{
8
- title:Object(a.t)("Unlock"),icon:I}:{title:Object(a.t)("Lock"),icon:M};return n.a.createElement(V,{className:i,isActive:Boolean(s),onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Lock"),e.toggleLockSelectedObject()},"data-name":Boolean(s)?"unlock":"lock",...r})}var N=i("aVjL");function j(t){const{title:e,activeChartWidget:i,className:o}=t;return n.a.createElement(S.a,{className:o,icon:N,title:e,"data-name":"remove",onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Remove"),i.removeSelectedSources()}})}var F=i("Iivm"),A=i("8+VR"),D=i("/3z9"),z=i("lxNp"),H=i("82wv"),U=i("IAAr"),G=i("7KDR"),Q=i("ycI/"),q=i("5VQP"),K=i("HZKX"),Y=i("HWhk"),Z=i("9dnG"),$=i("dmHa");function X(t){const{title:e,activeChartWidget:s,isSmallScreen:r,className:l}=t,c=s.model(),d=c.selection().lineDataSources(),[h,u]=Object(o.useState)([]),p=Object(o.useRef)(null),g=Object(o.useMemo)(()=>new K.ActionsProvider(s),[s]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(Q.a,{keyCode:27,eventType:"keyup",handler:function(){Object(_.ensureNotNull)(p.current).close()}}),n.a.createElement(H.a,{className:l,ref:p,arrow:!1,onOpen:r?void 0:function(){const t=[new G.Action({label:Object(a.t)("Visual order"),icon:Z,subItems:m(),name:"visual-order"})],e=function(){const t=[],e=D.isMacKeyboard?" +":"",o=d.filter(t=>t.cloneable());o.length>0&&t.push(new G.Action({name:"clone",icon:i("+KIV"),shortcutHint:D.humanReadableModifiers(z.Modifiers.Mod)+e+" Drag",label:Object(a.t)("Clone"),onExecute:()=>{c.cloneLineTools(o,!1),Object(P.trackEvent)("GUI","Context action on drawings","Clone")}}));const n=d.filter(t=>t.copiable());if(n.length>0){const i={name:"copy",label:Object(a.t)("Copy"),shortcutHint:D.humanReadableModifiers(z.Modifiers.Mod)+e+" C",onExecute:()=>{s.chartWidgetCollection().clipboard.uiRequestCopy(n)}};t.push(new G.Action(i,"Copy"))}if(!function(){if(!(null==s?void 0:s.isMultipleLayout()))return!1;return d.some(t=>t.isSynchronizable())}())return t;d.filter(t=>!!t.linkKey().value()).length?t.push(new G.Action({name:"stop-sync",label:Object(a.t)("Stop syncing"),onExecute:()=>{c.unlinkLines&&c.unlinkLines(d)}})):t.push(new G.Action({name:"sync",label:Object(a.t)("Sync to all charts"),onExecute:()=>{c.copyToOtherCharts(d)}}));return t}();e.length&&t.push(new G.Separator,...e);t.push(new G.Separator,new G.Action({label:Object(a.t)("Hide"),icon:$,onExecute:()=>{s.hideSelectedObject()},name:"hide"})),u(J(t))},onClick:r?function(t){g.contextMenuActionsForSources(d).then(e=>{window.matchMedia(C.a.TabletSmall).matches?q.ContextMenuManager.createMenu(J(e),{mode:"drawer","data-name":"more-menu"}).then(e=>e.show(t)):u(J(e))})}:void 0,title:e,content:n.a.createElement(F.a,{icon:Y}),"data-name":"more",menuDataName:"more-menu"},n.a.createElement(U.a,{parentIsOpened:!0,items:h})));function m(){const t=[],e=c.availableZOrderOperations(d),i=new G.Action({name:"bring-to-front",label:Object(a.t)("Bring to Front"),onExecute:()=>{c.bringToFront(d)},disabled:1===d.length&&!e.bringToFrontEnabled}),o=new G.Action({
9
- name:"send-to-back",label:Object(a.t)("Send to Back"),onExecute:()=>{c.sendToBack(d)},disabled:1===d.length&&!e.sendToBackEnabled}),n=new G.Action({name:"bring-forward",label:Object(a.t)("Bring Forward"),onExecute:()=>{c.bringForward(d)},disabled:1===d.length&&!e.bringForwardEnabled}),s=new G.Action({name:"send-backward",label:Object(a.t)("Send Backward"),onExecute:()=>{c.sendBackward(d)},disabled:1===d.length&&!e.sendBackwardEnabled});return t.push(i,o,n,s),t}}function J(t){return A.touch&&!window.matchMedia("(pointer:fine)").matches?t.filter(t=>"Copy"!==t.id):t}var tt=i("972a"),et=i("bQEj"),it=i("UXdH"),ot=i("ZSM+");function nt(t){const{property:e,model:i,title:s,className:r}=t,l=Object(E.a)(e),c=Object(o.useMemo)(()=>[new G.Action({icon:et,label:Object(a.t)("Line"),active:tt.b.Solid===l,onExecute:()=>i.setProperty(e,tt.b.Solid,s)}),new G.Action({icon:it,label:Object(a.t)("Dashed line"),active:tt.b.Dashed===l,onExecute:()=>i.setProperty(e,tt.b.Dashed,s)}),new G.Action({icon:ot,label:Object(a.t)("Dotted line"),active:tt.b.Dotted===l,onExecute:()=>i.setProperty(e,tt.b.Dotted,s)})],[i,e,l]);return n.a.createElement(H.a,{className:r,arrow:!1,content:n.a.createElement(F.a,{icon:st(l)}),title:s,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement(U.a,{items:c}))}function st(t){switch(t){case tt.b.Solid:return et;case tt.b.Dashed:return it;case tt.b.Dotted:return ot;default:return""}}const rt=[10,11,12,14,16,20,24,28,32,40];function at(t){const{property:e,model:i,title:o,className:s}=t,r=Object(E.a)(e),a=rt.map(t=>new G.Action({label:t.toString(),onExecute:()=>i.setProperty(e,t,o),active:t===r}));return n.a.createElement(H.a,{arrow:!1,content:r,className:s,title:o,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement(U.a,{items:a}))}var lt=i("aIyQ"),ct=i.n(lt);i("m/4m"),i("ADFN");class dt extends y.b{constructor(t){super(dt._prepareOptions(t)),this._onWidgetStateChangedDelegate=new ct.a,this._statedWidgets=[],this._currentPopup=null,this._onWindowClickedListener=this._onWindowClicked.bind(this)}show(){super.show(),document.addEventListener("mousedown",this._onWindowClickedListener)}hide(t){super.hide(t),document.removeEventListener("mousedown",this._onWindowClickedListener)}destroy(){this._closePopup(),super.destroy()}addGroupedWidget(t,e={}){Object(_.assert)(t.states.length>0&&-1!==dt._getStateIndexById(t,t.currentStateId),`Argument is invalid (count: ${t.states.length}, state: ${t.currentStateId})`);const i=document.createElement("div");i.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",t.widgetAddClass&&i.classList.add(t.widgetAddClass),i.setAttribute("title",t.tooltip);const o={isEnabled:!0,statedWidget:t,toolbarWidget:i},n=this._onWidgetClicked.bind(this,o);o.clickListener=n,i.addEventListener("click",n),this._updateWidgetPreview(o),this.addWidget(i,e),this._statedWidgets.push(o)}findGroupedWidget(t){const e=this._statedWidgets.length;for(let i=0;i<e;++i){if(this._statedWidgets[i].statedWidget.id===t)return i}return-1}
10
- removeGroupedWidget(t){const e=this._statedWidgets.length;for(let i=0;i<e;++i){const e=this._statedWidgets[i];if(e.statedWidget.id===t)return this._isPopupCreatedForWidget(t)&&this._closePopup(),void 0!==e.clickListener&&e.toolbarWidget.removeEventListener("click",e.clickListener),this.removeWidget(e.toolbarWidget),this._statedWidgets.splice(i,1),void this._updatePopupPosition()}Object(_.assert)(!1,`Unknown groupId(${t})`)}updateGroupedWidget(t,e){this._closePopup();const i=this._ensuredGetWidgetDataForId(t);i.statedWidget.currentStateId=e.currentStateId,i.statedWidget.states=e.states,this._updateWidgetPreview(i)}setGroupedWidgetEnabled(t,e){const i=this._ensuredGetWidgetDataForId(t);i.isEnabled=e,i.toolbarWidget.classList.toggle("i-disabled",!e)}setGroupedWidgetState(t,e){const i=this._ensuredGetWidgetDataForId(t);Object(_.assert)(-1!==dt._getStateIndexById(i.statedWidget,e),`Unknown stateId (${e})`),i.statedWidget.currentStateId=e,this._updateSubWidgetsState(i.statedWidget),this._updateWidgetPreview(i)}onWidgetStateChanged(){return this._onWidgetStateChangedDelegate}_onVerticalChanged(t,e){this._updatePopupPosition()}_ensuredGetWidgetDataForId(t){for(const e of this._statedWidgets)if(e.statedWidget.id===t)return e;throw new Error(`Unknown groupId(${t})`)}_onWidgetClicked(t,e){const i=this._currentPopup&&this._isPopupCreatedForWidget(t.statedWidget.id);this._closePopup(),!i&&t.isEnabled&&this._createPopup(t)}_createPopup(t){const e={createdFor:t.toolbarWidget,element:document.createElement("div"),stateWidgetId:t.statedWidget.id,widgets:[]};e.element.className+="tv-grouped-floating-toolbar__popup js-popup";const i=t.statedWidget.states.length;t.statedWidget.states.forEach((o,n)=>{const s=this._createSubWidget(t,o),r=this._onSubWidgetClicked.bind(this,t,o.id);s.addEventListener("click",r),e.widgets.push({clickListener:r,stateWidget:o,widget:s}),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-"+n),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-"+(i-n+1)),o.readonly||e.element.appendChild(s)}),this._currentPopup=e,this._updateSubWidgetsState(t.statedWidget),t.toolbarWidget.classList.add("i-dropped"),this._getWidget().appendChild(this._currentPopup.element),Promise.resolve().then(()=>{this._currentPopup&&this._currentPopup.element.classList.add("i-opened")}),this._updatePopupPosition()}_closePopup(){if(this._statedWidgets.forEach(t=>{t.toolbarWidget.classList.remove("i-dropped")}),!this._currentPopup)return;const t=this._currentPopup.widgets,e=this._currentPopup.element;this._currentPopup=null,t.forEach(t=>{t.widget.removeEventListener("click",t.clickListener)}),e.classList.remove("i-opened"),e.addEventListener("transitionend",t=>{t.target===e&&this._getWidget().removeChild(e)})}_updateWidgetPreview(t){const e=dt._getStateIndexById(t.statedWidget,t.statedWidget.currentStateId);Object(_.assert)(-1!==e,"Unknown state id: "+t.statedWidget.currentStateId);const i=t.statedWidget.states[e].widget.cloneNode(!0)
11
- ;t.toolbarWidget.firstChild?t.toolbarWidget.replaceChild(i,t.toolbarWidget.firstChild):(t.toolbarWidget.appendChild(i),t.toolbarWidget.appendChild(dt._createCaret()))}_updateSubWidgetsState(t){this._currentPopup&&this._isPopupCreatedForWidget(t.id)&&this._currentPopup.widgets.forEach(e=>{e.widget.classList.toggle(dt._activeSubWidgetClass,e.stateWidget.id===t.currentStateId)})}_updatePopupPosition(){if(!this._currentPopup)return;const t=this._currentPopup.createdFor,e=this._getWidget().getBoundingClientRect(),i=this._findWrapperForWidget(t);if(!i||!this._currentPopup)throw new Error("Toolbar has no wrapper for preview's widget or there is no popup");const o=i.getBoundingClientRect(),n=this._currentPopup.element.getBoundingClientRect(),s=this._currentPopup.element;if(this.isVertical())s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top=o.top-e.top+1+"px",s.style.left="",e.left>window.innerWidth-e.right?s.classList.add("tv-grouped-floating-toolbar__popup--at-left"):s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");let t=0;o.left+n.width>window.innerWidth?e.left+n.width>window.innerWidth&&(t=e.width-n.width):t=o.left-e.left+1,s.style.left=t+"px",e.bottom+n.height>window.innerHeight?s.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top="")}}_isPopupCreatedForWidget(t){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===t)}_createSubWidget(t,e){const i=document.createElement("div");return i.className+="tv-grouped-floating-toolbar__sub-widget",t.statedWidget.stateWidgetAddClass&&i.classList.add(t.statedWidget.stateWidgetAddClass),i.appendChild(e.widget),i}_onSubWidgetClicked(t,e){this._closePopup(),t.statedWidget.currentStateId!==e&&(this.setGroupedWidgetState(t.statedWidget.id,e),this._onWidgetStateChangedDelegate.fire(t.statedWidget.id,e))}_onWindowClicked(t){if(this.isVisible()&&this._currentPopup&&!dt._isEventInElement(t,this._currentPopup.element)){for(let e=0;e<this._statedWidgets.length;++e)if(dt._isEventInElement(t,this._statedWidgets[e].toolbarWidget))return;this._closePopup()}}static _getStateIndexById(t,e){for(let i=0;i<t.states.length;++i)if(t.states[i].id===e)return i;return-1}static _createCaret(){const t=document.createElement("div");return t.className="tv-caret tv-caret--small tv-caret--colored tv-grouped-floating-toolbar__caret",t}static _prepareOptions(t){return t.addClass?t.addClass+=" tv-grouped-floating-toolbar":t.addClass=" tv-grouped-floating-toolbar",t}static _isEventInElement(t,e){return t.target===e||e.contains(t.target)}}dt._activeSubWidgetClass="tv-grouped-floating-toolbar__sub-widget--current";var ht=i("yMne"),ut=i("GxN8");i.d(e,"LineToolPropertiesWidgetBase",(function(){return pt}));class pt{constructor(t){this._isDrawingFinished=new d.a(!0),this._currentTool=null,this._updateVisibilityTimeout=null,this._lineWidthsProperty=null,this._lineColorsProperty=null,
12
- this._currentProperties=null,this._container=null,this._toolbarRendered=!1,this._templatesButton=null,this._propertyButtons=[],this._commonButtons=[],this._handleSourceEdit=t=>{p.isDirectionalMovementActive.value()||(t?this._floatingToolbar.hide(!0):this._toolbarRendered&&this._floatingToolbar.show())},this._chartWidgetCollection=t,this._floatingToolbar=new dt({defaultPosition:{top:ht.b+15,left:window.innerWidth/2},positionSettingsKey:"properties_toolbar.position",positionStorageType:"device",layout:"horizontal","data-name":"drawing-toolbar"}),this._container=this._floatingToolbar.getReactWidgetContainer(),p.isToolMovingNow.subscribe(this._handleSourceEdit),p.isToolEditingNow.subscribe(this._handleSourceEdit)}activeChartWidget(){return this._chartWidgetCollection.activeChartWidget.value()}selectedSources(){return this._chartWidgetCollection.selectedSources.value()}hide(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{Object(u.unsetNewToolProperties)(),this._floatingToolbar.hide(!0),this._isToolbarRendered()&&this._unmountToolbar(),this._clearProperties(),this._clearCommonButtons()},0)}_clearProperties(){this._clearPropertyButtons(),this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._currentProperties&&(this._currentProperties=null)}_show(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{this._renderToolbar(),this._floatingToolbar.show(),this._floatingToolbar.checkPosition()},0)}_addPropertyButton(t){this._propertyButtons.push(t),this._renderToolbar()}_addCommonButton(t){this._commonButtons.push(t),this._renderToolbar()}_addTemplatesButton(t){this._templatesButton=t}_renderToolbar(){null!==this._container&&this.activeChartWidget()&&this.activeChartWidget().hasModel()&&(r.a.render(n.a.createElement(W,{templateButton:this._templatesButton,propertyButtons:this._propertyButtons,commonButtons:this._commonButtons,isDrawingFinished:this._isDrawingFinished.value(),activeChartWidget:this.activeChartWidget()}),this._container),this._toolbarRendered=!0)}_unmountToolbar(){null!==this._container&&(r.a.unmountComponentAtNode(this._container),this._toolbarRendered=!1)}_clearTemplatesButton(){this._templatesButton=null}_clearPropertyButtons(){this._propertyButtons=[]}_clearCommonButtons(){this._commonButtons=[]}_isToolbarRendered(){return this._toolbarRendered}_createSettingsButton(){if(this.selectedSources().length>1)return;const t={component:L,props:{title:Object(a.t)("Settings"),activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createLockButton(){const t={component:R,props:{title:"Lock",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createRemoveButton(){const t={component:j,props:{title:Object(a.t)("Remove"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0};this._addCommonButton(t)}
13
- _createDotsButton(){this._addCommonButton({component:X,props:{title:Object(a.t)("More"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0})}_createAlertButton(){}_createSourceActions(){this._createLockButton()}_createLineStyleButton(t){const e=this.selectedSources();if(0===e.length)return!1;const i=e[0];if(!Object(ut.a)(i))return!1;const o={component:nt,props:{property:i.properties().linestyle||t,title:Object(a.t)("Style"),model:this.activeChartWidget().model(),"data-name":"style"}};return this._addPropertyButton(o),!0}_createFontSizeButton(t){const e=this.selectedSources();if(0===e.length)return!1;const i=e[0];if(!Object(ut.a)(i))return!1;const o={component:at,props:{property:i.properties().fontsize||t,title:Object(a.t)("Font Size"),model:this.activeChartWidget().model(),"data-name":"font-size"}};return this._addPropertyButton(o),!0}_createCommonButtons(){this._commonButtons.length&&this._clearCommonButtons(),l.enabled("property_pages")&&this._createSettingsButton(),this._createSourceActions(),this._createRemoveButton(),this._createDotsButton()}_prepareProperties(t){const e=this.selectedSources().filter(e=>Object(u.isLineTool)(e)&&e.properties()[t]);if(!(e.filter(e=>e.properties()[t].visible()).length<1))return e.map(e=>e.properties()[t]).filter(h.notNull)}_createProperty(t,e,i,o){if(e){const t=this._prepareProperties(i);if(!t)return;const e=this.activeChartWidget().model();return this._isWidthProperty(t[0])?new v(new g.MultipleLineWidthsProperty(t),e,o):new w.b(new g.MultipleLineColorsProperty(t),e,o)}if(t&&t.visible())return this._isWidthProperty(t)?new g.MultipleLineWidthsProperty([t]):new w.a(new g.MultipleLineColorsProperty([t]))}_shouldShowBackgroundProperty(t,e){return!e||!e.fillBackground||!!e.fillBackground.value()}_isDrawingToolExcludingTweet(t){return Boolean(null==t?void 0:t.toLowerCase().includes("linetool"))&&"LineToolTweet"!==t}_isWidthProperty(t){return t instanceof g.LineToolWidthsProperty}}},"W0/v":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" d="M1.5 11.5l-.7.7a1 1 0 0 0-.3.71v3.59h3.59a1 1 0 0 0 .7-.3l.71-.7m-4-4l9-9m-9 9l2 2m2 2l9-9m-9 9l-2-2m11-7l1.3-1.3a1 1 0 0 0 0-1.4l-2.6-2.6a1 1 0 0 0-1.4 0l-1.3 1.3m4 4l-4-4m-7 11l9-9"/></svg>'},X1vi:function(t,e,i){t.exports={wrap:"wrap-2EG6_6QR",icon:"icon-2EG6_6QR",colorBg:"colorBg-2EG6_6QR",color:"color-2EG6_6QR",multicolor:"multicolor-2EG6_6QR",white:"white-2EG6_6QR"}},Xxuz:function(t,e){
14
- t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentcolor" fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5V7.05l.4.09c.9.18 1.73.53 2.46 1.02l.34.23.29-.3.81-.8c.2-.2.52-.2.71 0l.7.7.36-.35-.35.35c.2.2.2.51 0 .7l-.82.82-.29.29.23.34c.49.73.84 1.57 1.02 2.46l.08.4H22.5c.28 0 .5.22.5.5v1a.5.5 0 0 1-.5.5H20.95l-.09.4c-.18.9-.53 1.73-1.02 2.46l-.23.34.3.29.8.81c.2.2.2.52 0 .71l-.7.7a.5.5 0 0 1-.7 0l-.82-.8-.29-.3-.34.23c-.73.49-1.57.84-2.46 1.02l-.4.08V22.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V20.95l-.4-.09a6.96 6.96 0 0 1-2.46-1.02l-.34-.23-.29.3-.81.8.35.36-.35-.35a.5.5 0 0 1-.71 0l-.7-.71a.5.5 0 0 1 0-.7l-.36-.36.35.35.82-.81.29-.29-.23-.34a6.96 6.96 0 0 1-1.02-2.46l-.08-.4H5.5a.5.5 0 0 1-.5-.5v-1c0-.28.22-.5.5-.5H7.05l.09-.4c.18-.9.53-1.73 1.02-2.46l.23-.34-.3-.29-.8-.81a.5.5 0 0 1 0-.71l.7-.7c.2-.2.51-.2.7 0l.82.8.29.3.34-.23a6.96 6.96 0 0 1 2.46-1.02l.4-.08V5.5zm.5-1.5c-.83 0-1.5.67-1.5 1.5v.75c-.73.2-1.43.48-2.06.86l-.54-.53a1.5 1.5 0 0 0-2.12 0l-.7.7a1.5 1.5 0 0 0 0 2.12l.53.54A7.95 7.95 0 0 0 6.25 12H5.5c-.83 0-1.5.67-1.5 1.5v1c0 .83.67 1.5 1.5 1.5h.75c.2.73.48 1.43.86 2.06l-.53.54a1.5 1.5 0 0 0 0 2.12l.7.7a1.5 1.5 0 0 0 2.12 0l.54-.53c.63.38 1.33.67 2.06.86v.75c0 .83.67 1.5 1.5 1.5h1c.83 0 1.5-.67 1.5-1.5v-.75a7.95 7.95 0 0 0 2.06-.86l.54.53a1.5 1.5 0 0 0 2.12 0l.7-.7a1.5 1.5 0 0 0 0-2.12l-.53-.54c.38-.63.67-1.33.86-2.06h.75c.83 0 1.5-.67 1.5-1.5v-1c0-.83-.67-1.5-1.5-1.5h-.75a7.95 7.95 0 0 0-.86-2.06l.53-.54a1.5 1.5 0 0 0 0-2.12l-.7-.7a1.5 1.5 0 0 0-2.12 0l-.54.53A7.95 7.95 0 0 0 16 6.25V5.5c0-.83-.67-1.5-1.5-1.5h-1zM12 14a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm2-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/></svg>'},"ZSM+":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><circle cx="9" cy="14" r="1"/><circle cx="4" cy="14" r="1"/><circle cx="14" cy="14" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="24" cy="14" r="1"/></svg>'},ZWNO:function(t,e,i){"use strict";function o(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}i.d(e,"a",(function(){return o}))},bQEj:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'},dRg2:function(t,e,i){t.exports={item:"item-3Te2Sp8a",withIcon:"withIcon-3Te2Sp8a",icon:"icon-3Te2Sp8a",labelRow:"labelRow-3Te2Sp8a",multiWidth:"multiWidth-3Te2Sp8a",buttonWrap:"buttonWrap-3Te2Sp8a",buttonLabel:"buttonLabel-3Te2Sp8a"}},gmn6:function(t,e,i){"use strict";i.r(e),i.d(e,"FavoriteDrawingToolbar",(function(){return g}));i("YFKU");var o=i("0ZwQ"),n=i("b2d7"),s=i("8+VR"),r=i("gWrr"),a=i("7KDR"),l=i("5VQP"),c=i("mMWL"),d=i("MP+M"),h=i("Vdly"),u=i("hY0g"),p=i.n(u);i("4QAy");class g extends o.b{constructor(t){super({allowSortable:!s.mobiletouch,dragOnlyInsideToolbar:!0,defaultPosition:t,positionSettingsKey:"chart.favoriteDrawingsPosition",positionStorageType:"device"}),
15
- this._linetoolsWidgets={},this._canBeShownValue=new p.a(!1),this._attachHandlers(),this._loadVisibilityState(),this._hideAction=this._createHideToolbarAction()}show(){this._canBeShownValue.value()&&(h.setValue("ChartFavoriteDrawingToolbarWidget.visible",!0),this.isVisible()||this._renderAllLinetools(),super.show())}hide(){h.setValue("ChartFavoriteDrawingToolbarWidget.visible",!1),super.hide()}canBeShown(){return this._canBeShownValue.readonly()}_onFavoriteAdded(t){this._canBeShownValue.setValue(!0),this.addWidget(this._createLinetoolWidget(t)),this.show()}_onFavoriteRemoved(t){this.removeWidget(this._linetoolsWidgets[t]),delete this._linetoolsWidgets[t],0===n.a.favoritesCount()&&(this._canBeShownValue.setValue(!1),this.hide())}_onFavoriteMoved(){this._renderAllLinetools()}_onSelectedLinetoolChanged(t){Object.keys(this._linetoolsWidgets).forEach(e=>{this._linetoolsWidgets[e].classList.toggle("i-active",t===e)})}_createLinetoolWidget(t){const e=`<span class="tv-favorited-drawings-toolbar__widget ${t===c.tool.value()?"i-active":""}" title="${d.a[t].localizedName}">${d.a[t].icon}</span>`,i=Object(r.b)(e);return i.addEventListener("click",e=>{e.preventDefault(),c.tool.value()!==t&&c.tool.setValue(t)}),this._linetoolsWidgets[t]=i,i}_renderAllLinetools(){this._linetoolsWidgets={},this.removeWidgets(),n.a.favorites().filter(t=>d.a[t]).forEach(t=>{this.addWidget(this._createLinetoolWidget(t))})}_attachHandlers(){n.a.favoriteAdded.subscribe(this,this._onFavoriteAdded),n.a.favoriteRemoved.subscribe(this,this._onFavoriteRemoved),n.a.favoriteMoved.subscribe(this,this._onFavoriteMoved),n.a.favoritesSynced.subscribe(null,()=>{this._loadVisibilityState(),this._renderAllLinetools()}),this.onWidgetsReordered().subscribe(this,(t,e)=>{if(n.a.favoriteMoved.unsubscribe(this,this._onFavoriteMoved),!n.a.moveFavorite(n.a.favorite(t),e))throw new Error("Something went wrong");n.a.favoriteMoved.subscribe(this,this._onFavoriteMoved)}),this.onContextMenu(t=>{t.preventDefault(),l.ContextMenuManager.createMenu([this._hideAction]).then(e=>{e.show(t)})}),c.tool.subscribe(this._onSelectedLinetoolChanged.bind(this))}_createHideToolbarAction(){return new a.Action({label:window.t("Hide Favorite Drawing Tools Toolbar"),onExecute:()=>{this.hide()}})}_loadVisibilityState(){const t=n.a.favoritesCount()>0;this._canBeShownValue.setValue(t);h.getBool("ChartFavoriteDrawingToolbarWidget.visible",!0)&&t?this.show():this.hide()}}},"m/4m":function(t,e,i){},mQbF:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 15" width="13" height="15" fill="none"><path stroke="currentColor" d="M4 14.5h2.5m2.5 0H6.5m0 0V.5m0 0h-5a1 1 0 0 0-1 1V4m6-3.5h5a1 1 0 0 1 1 1V4"/></svg>'},myiL:function(t,e,i){"use strict";i.r(e),i.d(e,"LineWidthButton",(function(){return f}));var o=i("q1tI"),n=i.n(o),s=i("TSYQ"),r=i("Eyy1"),a=i("Iivm"),l=i("82wv"),c=i("5hRh"),d=i("N5tr"),h=i("nPPD"),u=i("O5Oz"),p=i("xnr+"),g=i("n3oB"),_=i("2F1E"),m=i("Lnv9"),b=i("dRg2");const v=Object(h.a)(d.a,b),w=[{value:1,icon:u},{value:2,icon:p},{value:3,icon:g},{value:4,icon:_}]
16
- ;function f(t){const{multipleProperty:e,title:i,model:o,className:h,isSmallScreen:u}=t,p=Object(c.a)(Object(r.ensureDefined)(e)),g="mixed"===p||!p,_=function(t){const e=w.find(e=>e.value===t);if(!e)return m;return e.icon}(p);return n.a.createElement(l.a,{className:h,arrow:!1,title:i,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu",content:n.a.createElement("div",null,g?n.a.createElement("div",{className:b.multiWidth},n.a.createElement(a.a,{icon:m})):n.a.createElement("div",{className:b.buttonWrap},!u&&n.a.createElement(a.a,{icon:_}),n.a.createElement("div",{className:s(!u&&b.buttonLabel)},p+"px")))},w.map(({value:t,icon:e})=>n.a.createElement(d.b,{key:t,theme:v,label:t+"px",icon:e,isActive:t===p,onClick:f,onClickArg:t})));function f(t){t&&e&&(o.beginUndoMacro(i),e.setValue(t,void 0,{applyValue:(t,e)=>{o.setProperty(t,e,i)}}),o.endUndoMacro())}}},n3oB:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 3" width="18" height="3"><rect width="18" height="3" fill="currentColor" rx="1.5"/></svg>'},"p0W+":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=i("q1tI"),n=i("TSYQ"),s=i("tU7i"),r=i("EvtC");const a=o.forwardRef((t,e)=>{const{className:i,...a}=t;return o.createElement(s.b,{...a,ref:e,className:n(i,r.button)})})},qAO1:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="currentColor"><rect width="2" height="2" rx="1"/><rect width="2" height="2" rx="1" y="5"/><rect width="2" height="2" rx="1" y="10"/><rect width="2" height="2" rx="1" x="6"/><rect width="2" height="2" rx="1" x="6" y="5"/><rect width="2" height="2" rx="1" x="6" y="10"/></svg>'},rzV7:function(t,e,i){"use strict";var o=Object.prototype.hasOwnProperty;function n(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!1;for(var r=0;r<i.length;r++)if(!o.call(e,i[r])||!n(t[i[r]],e[i[r]]))return!1;return!0}},tPkB:function(t,e,i){"use strict";var o=i("YFKU").t,n=i("mMWL"),s=i("Ve4Q").LineToolPropertiesWidgetBase,r=i("e92V").isLineDrawnWithPressedButton,a=i("CW80").isLineTool;const l=i("IhRv").ColorPickerButton,c=i("myiL").LineWidthButton;i("CW80").setNewToolProperties;var d=i("W0/v"),h=i("0fuu"),u=i("mQbF"),p=window.t("Color");class g extends s{constructor(t){super(t),this._hasAlertWathcedValue=null,this._templatesButton=null,this.attachHandlers()}attachHandlers(){n.tool.subscribe(this.onToolChanged.bind(this),{callWithLast:!0}),n.iconTool.subscribe(this.onIconToolChanged.bind(this)),this._chartWidgetCollection.selectedSources.subscribe(this.onSourceChanged.bind(this))}onIconToolChanged(){this.onToolChanged(n.tool.value())}onToolChanged(t,e){this._currentTool=t;const i=this.selectedSources();this._isDrawingToolExcludingTweet(t)?(this._isDrawingFinished.setValue(!1),this._updateVisibility()):i&&i.length?(i.length>1&&this._isDrawingFinished.setValue(!0),
17
- this.onSourceChanged(this.selectedSources())):this.hide()}findSourceOnWidget(t){for(var e=0;e<this.activeChartWidget().model().panes().length;e++)for(var i=this.activeChartWidget().model().panes()[e].sourcesByGroup().all(),o=0;o<i.length;o++)if(i[o]===t)return i[o]}onSourceChanged(t){if(this._hasAlertWathcedValue&&(this._hasAlertWathcedValue.destroy(),this._hasAlertWathcedValue=null),t&&t.length&&(1!==t.length||a(t[0])))if(this._createCommonButtons(),1===t.length){var e=t[0];e.isAvailableInFloatingWidget()&&this.findSourceOnWidget(e)?(!e.userEditEnabled()||!r(e.toolname)&&this.activeChartWidget().model().lineBeingCreated()||(this._isDrawingFinished.setValue(!0),e.canHasAlert()&&(this._hasAlertWathcedValue=e.hasAlert.spawn())),this.showPropertiesOf(e.toolname,e.properties(),!0),this.showTemplatesOf({source:e}),this._toolbarVisible=!0,this._updateVisibility()):this.hide()}else this._clearProperties(),this._templatesButton&&(this._clearTemplatesButton(),this._templatesButton=null),this._updateVisibility(),this._createWidthsButton(void 0,!0),this._createColorsButton(void 0,!0),this._createBackgroundsButton(void 0,!0),this._createTextColorsButton(void 0,!0);else this.hide()}_createWidthsButton(t,e){if(this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineWidthsProperty=this._createProperty(t,e,"linesWidths","Set Line tool(s) line width"),!this._lineWidthsProperty)return!0;var i=window.t("Line tool width");e&&(1!==this.selectedSources().filter((function(t){return a(t)&&t.properties().linesWidths})).length&&(i=window.t("Line tool widths")));return this._addPropertyButton({component:c,props:{title:i,multipleProperty:this._lineWidthsProperty,model:this.activeChartWidget().model(),"data-name":"line-tool-width"}}),!0}_createColorsButton(t,e){return this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._lineColorsProperty=this._createProperty(t,e,"linesColors","Set Line tool(s) color"),!this._lineColorsProperty||(this._addPropertyButton({component:l,props:{icon:d,title:window.t("Line tool colors"),property:this._lineColorsProperty,model:this.activeChartWidget().model(),"data-name":"line-tool-color"}}),!0)}_createBackgroundsButton(t,e){return this._backgroundsProperty&&(this._backgroundsProperty.destroy(),this._backgroundsProperty=null),this._backgroundsProperty=this._createProperty(t,e,"backgroundsColors","Set Line background(s) color"),!this._backgroundsProperty||(this._addPropertyButton({component:l,props:{icon:h,title:window.t("Line tool backgrounds"),property:this._backgroundsProperty,model:this.activeChartWidget().model(),"data-name":"background-color"}}),!0)}_createTextColorsButton(t,e){return this._textColorsProperty&&(this._textColorsProperty.destroy(),this._textColorsProperty=null),this._textColorsProperty=this._createProperty(t,e,"textsColors","Set Line tool(s) text color"),!this._textColorsProperty||(this._addPropertyButton({component:l,props:{icon:u,title:window.t("Line tool text colors"),property:this._textColorsProperty,
18
- model:this.activeChartWidget().model(),"data-name":"text-color"}}),!0)}showTemplatesOf(t){}templatesList(){return this._templatesList}_getPossibleProperty(t){for(var e=[],i=this._defaultToolProperties(),o=0;o<i.length;o++){var n=i[o];n.name in t&&e.push(n)}return e}showPropertiesOf(t,e,i){this._toolExceptionCases||(this._toolExceptionCases=this._createToolExceptionCases());var o=this._toolExceptionCases[t]||this._getPossibleProperty(e);if(this._clearProperties(),this._propertiesVisible=!1,o.length){for(var n={},s=0;s<o.length;s++){for(var r=o[s],a=e,c=r.name.split("."),d=0;d<c.length;++d)a=a&&a[c[d]];var h=r.showIf;if("function"!=typeof h||h(a,e)){var u=r.factory;if(u&&u.call(this,a,i))continue;if(!a)continue;if(this._propertiesVisible=!0,"combobox"!==r.inputType){const t={component:l,props:{icon:r.iconSvgCode,title:r.title,"data-name":r.dataName,property:a,model:this.activeChartWidget().model()}};this._addPropertyButton(t);continue}n[r.name]=a}}this._currentProperties=n}}_updateVisibility(){this._isDrawingFinished.value()&&(this._toolbarVisible||this._propertiesVisible)?this._show():this.hide()}refresh(){this.onSourceChanged(this.selectedSources())}_defaultToolProperties(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:d,title:p,factory:g.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:h,title:o("Background Color"),factory:g.prototype._createBackgroundsButton,dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"textsColors",title:o("Text color"),inputType:"colorPicker",iconSvgCode:u,factory:g.prototype._createTextColorsButton,dataName:"text-color"},{name:"linesWidths",inputType:"combobox",factory:g.prototype._createWidthsButton},{name:"linestyle",title:o("Style"),inputType:"combobox",factory:g.prototype._createLineStyleButton}]}_riskPropertiesExceptionCases(){return[{name:"textcolor",title:o("Text color"),inputType:"colorPicker",iconSvgCode:u,dataName:"text-color"},{name:"profitBackground",title:o("Profit Background Color"),inputType:"colorPicker",iconSvgCode:h,dataName:"background-color"},{name:"stopBackground",title:o("Stop Background Color"),inputType:"colorPicker",iconSvgCode:h,dataName:"background-color"}]}_rangeExceptionCases(){return[{name:"linecolor",inputType:"colorPicker",iconSvgCode:d,title:p,dataName:"line-tool-color"},{name:"backgroundColor",inputType:"colorPicker",iconSvgCode:h,title:o("Background Color"),dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"linesWidths",inputType:"combobox",factory:g.prototype._createWidthsButton}]}_brushPropertiesExceptionCase(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:d,title:o("Color"),factory:g.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:h,title:o("Background Color"),dataName:"background-color",factory:g.prototype._createBackgroundsButton},{name:"linesWidths",inputType:"combobox",factory:g.prototype._createWidthsButton}]}
19
- _bezierPropertiesExceptionCases(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:d,title:o("Color"),factory:g.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:h,dataName:"background-color",title:o("Background Color"),factory:g.prototype._createBackgroundsButton,showIf:this._shouldShowBackgroundProperty},{name:"linesWidths",inputType:"combobox",factory:g.prototype._createWidthsButton},{name:"linestyle",title:o("Style"),inputType:"combobox",factory:g.prototype._createLineStyleButton}]}_textPropertiesExceptionCases(){return[{name:"color",title:o("Text color"),inputType:"colorPicker",iconSvgCode:u,dataName:"text-color"},{name:"backgroundColor",title:o("Background Color"),inputType:"colorPicker",iconSvgCode:h,dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"fontsize",title:o("Font Size"),inputType:"combobox",factory:g.prototype._createFontSizeButton}]}_notePropertiesExceptionCases(){return[{name:"markerColor",title:o("Marker Color"),inputType:"colorPicker",iconSvgCode:d,dataName:"line-tool-color"},{name:"textColor",title:o("Text color"),inputType:"colorPicker",iconSvgCode:u,dataName:"text-color"},{name:"fontSize",title:o("Font Size"),inputType:"combobox",factory:g.prototype._createFontSizeButton}]}_createToolExceptionCases(){return{LineToolRegressionTrend:[],LineToolBrush:g.prototype._brushPropertiesExceptionCase(),LineToolBezierQuadro:g.prototype._bezierPropertiesExceptionCases(),LineToolBezierCubic:g.prototype._bezierPropertiesExceptionCases(),LineToolText:g.prototype._textPropertiesExceptionCases(),LineToolTextAbsolute:g.prototype._textPropertiesExceptionCases(),LineToolBalloon:g.prototype._textPropertiesExceptionCases(),LineToolCallout:g.prototype._textPropertiesExceptionCases(),LineToolPriceLabel:g.prototype._textPropertiesExceptionCases(),LineToolDateRange:g.prototype._rangeExceptionCases(),LineToolPriceRange:g.prototype._rangeExceptionCases(),LineToolDateAndPriceRange:g.prototype._rangeExceptionCases(),LineToolNote:g.prototype._notePropertiesExceptionCases(),LineToolNoteAbsolute:g.prototype._notePropertiesExceptionCases(),LineToolRiskRewardLong:g.prototype._riskPropertiesExceptionCases(),LineToolRiskRewardShort:g.prototype._riskPropertiesExceptionCases(),LineToolBarsPattern:[{name:"color",title:p,inputType:"colorPicker",iconSvgCode:h,dataName:"background-color"}],LineToolProjection:[{name:"color1",title:o("Background color 1"),inputType:"colorPicker",iconSvgCode:h,dataName:"background-color"},{name:"color2",title:o("Background color 2"),inputType:"colorPicker",iconSvgCode:h,dataName:"background-color"},{name:"linesWidths",inputType:"combobox",factory:g.prototype._createWidthsButton}],LineToolSignpost:[{name:"fontSize",title:o("Font Size"),inputType:"combobox"},{name:"linesColors",inputType:"colorPicker",iconSvgCode:h,dataName:"background-color",title:p,factory:g.prototype._createBackgroundsButton,showIf:function(t,e){return e&&e.showImage.value()}}]}}}t.exports=g},turx:function(t,e,i){"use strict"
20
- ;i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return l}));var o=i("Eyy1"),n=i("tc+8"),s=i.n(n);class r extends s.a{constructor(t){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t}destroy(){this._baseProperty.destroy()}value(){const t=this._baseProperty.value();return"mixed"===t?"":t}visible(){return this._baseProperty.visible()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(""===t?"mixed":t,void 0,{applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const i=i=>{this._isProcess||e.call(t,this)},o={obj:t,method:e,callback:i};this._listenersMappers.push(o),this._baseProperty.subscribe(t,i)}unsubscribe(t,e){var i;const n=Object(o.ensureDefined)(null===(i=this._listenersMappers.find(i=>i.obj===t&&i.method===e))||void 0===i?void 0:i.callback);this._baseProperty.unsubscribe(t,n)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}class a extends r{constructor(t,e,i){super(t),this._undoModel=e,this._undoText=i}_applyValue(t,e){this._undoModel.setProperty(t,e,this._undoText)}}class l extends r{_applyValue(t,e){t.setValue(e)}}},ucyy:function(t,e,i){t.exports={button:"button-1gEXpG61"}},wwkJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=i("q1tI");const n=i.n(o).a.createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},"xnr+":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 2" width="18" height="2"><rect width="18" height="2" fill="currentColor" rx="1"/></svg>'}}]);
@@ -1,3 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["full-tooltips-popup"],{"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("q1tI"),r=n.n(o),a=n("i8i4"),i=n.n(a),l=n("AiMB"),s=n("DTHj"),c=n("X0gx"),u=n("8Rai");function d(e){const{controller:t,children:n,isOpened:a,closeOnClickOutside:d=!0,doNotCloseOn:m,onClickOutside:p,onClose:v,...f}=e,h=Object(o.useContext)(c.a),g=Object(u.a)({handler:function(e){p&&p(e);if(!d)return;if(m&&e.target instanceof Node){const t=i.a.findDOMNode(m);if(t instanceof Node&&t.contains(e.target))return}v()},mouseDown:!0,touchStart:!0});return a?r.a.createElement(l.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.a.createElement("span",{ref:g,style:{pointerEvents:"auto"}},r.a.createElement(s.b,{...f,onClose:v,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:h,ref:t},n))):null}},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n("q1tI"),r=n.n(o),a=n("Eyy1"),i=n("TSYQ"),l=n("x0D+"),s=n("0YpW"),c=n("AiMB"),u=n("mkWe"),d=n("qFKp"),m=n("X0gx"),p=n("sHQ4");function v(e){const{position:t="Bottom",onClose:n,children:v,className:f,theme:h=p}=e,g=Object(a.ensureNotNull)(Object(o.useContext)(u.a)),[b,w]=Object(o.useState)(0),y=Object(o.useRef)(null),E=Object(o.useContext)(m.a);return Object(o.useEffect)(()=>{const e=Object(a.ensureNotNull)(y.current);return e.focus({preventScroll:!0}),E.subscribe(g,n),Object(s.a)(!0),d.CheckMobile.iOS()&&Object(l.disableBodyScroll)(e),w(g.addDrawer()),()=>{E.unsubscribe(g,n);const t=g.removeDrawer();d.CheckMobile.iOS()&&Object(l.enableBodyScroll)(e),0===t&&Object(s.a)(!1)}},[]),r.a.createElement(c.a,null,r.a.createElement("div",{className:i(p.wrap,p["position"+t])},b===g.currentDrawer&&r.a.createElement("div",{className:p.backdrop,onClick:n}),r.a.createElement("div",{className:i(p.drawer,h.drawer,p["position"+t],f),ref:y,tabIndex:-1,"data-name":e["data-name"]},v)))}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var o=n("q1tI"),r=n.n(o);class a extends r.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.a.createElement(i.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const i=r.a.createContext(null)},my4O:function(e,t,n){e.exports={"css-value-small-size":"18px","css-value-border-radius-small-size":"9px","css-value-large-size":"22px","css-value-border-radius-large-size":"11px",popupWidget:"popupWidget-1LnizAbt",desc:"desc-1LnizAbt",icon:"icon-1LnizAbt",small:"small-1LnizAbt",large:"large-1LnizAbt",title:"title-1LnizAbt",text:"text-1LnizAbt",action:"action-1LnizAbt",additionalWidget:"additionalWidget-1LnizAbt"}},sHQ4:function(e,t,n){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",
2
- backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},"vR7+":function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),r=n.n(o),a=n("i8i4"),i=(n("YFKU"),n("9dlw")),l=n("/KDZ"),s=n("Sn4D"),c=n("mkWe"),u=n("e3/o"),d=n("TSYQ"),m=n("Eyy1"),p=n("Iivm"),v=n("vqb8"),f=n("my4O");const h=new WeakMap,g=new WeakMap;function b(e){const t=Object(v.a)({watchedValue:e.info});if(null===t)return null;const n=t.map(t=>{const{title:n,titleColor:o,icon:a,iconClassName:i,html:l,action:s,size:c}=t;h.has(t)||h.set(t,Object(u.randomHash)());let v=[];return void 0!==e.additionalWidgets&&(v=e.additionalWidgets.map(e=>(g.has(e)||g.set(e,Object(u.randomHash)()),e.renderer(Object(m.ensureDefined)(g.get(e)),f.additionalWidget)))),r.a.createElement("div",{key:h.get(t),className:f.popupWidget},r.a.createElement(p.a,{className:d(f.icon,i,f[c]),icon:a||void 0}),r.a.createElement("div",{className:f.desc},r.a.createElement("span",{style:{color:o||void 0},className:d(f.title,f[c])},n),l&&r.a.createElement("p",{className:d(f.text,f[c]),dangerouslySetInnerHTML:{__html:l.join(" ")}}),s&&r.a.createElement("span",{className:d(s.tooltip&&"apply-common-tooltip",f.action,f[c]),onClick:()=>{e.onClose(),null==s||s.onClick()},title:s.tooltip},s.text),v))});return r.a.createElement(r.a.Fragment,null,n)}const w=new WeakMap;function y(e){const{statusWidgetInfos:t}=e,n=t.filter(e=>e.visible.value()).map(t=>(w.has(t)||w.set(t,Object(u.randomHash)()),r.a.createElement(b,{key:w.get(t),info:t.model.fullInfo(),onClose:e.onClose,additionalWidgets:t.additionalWidgets})));return r.a.createElement(c.b,null,r.a.createElement(l.a,{rule:"screen and (max-width: 428px)"},t=>t?r.a.createElement(s.a,{onClose:e.onClose,position:"Bottom"},n):r.a.createElement(i.a,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},n)))}function E(e,t,n,r,i,l){const s={rendererButton:n,position:l,statusWidgetInfos:r,onClose:i};e?a.render(o.createElement(y,{...s}),t):a.unmountComponentAtNode(t)}n.d(t,"render",(function(){return E}))},"x0D+":function(e,t,n){var o,r,a;r=[t],void 0===(a="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 r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),a=[],i=!1,l=-1,s=void 0,c=void 0,u=function(e){return a.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!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)}))};e.disableBodyScroll=function(e,o){if(r){
3
- if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!a.some((function(t){return t.targetElement===e}))){var m={targetElement:e,options:o||{}};a=[].concat(t(a),[m]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,o,r,a;1===t.targetTouches.length&&(o=e,a=(n=t).targetTouches[0].clientY-l,!u(n.target)&&(o&&0===o.scrollTop&&0<a||(r=o)&&r.scrollHeight-r.scrollTop<=r.clientHeight&&a<0?d(n):n.stopPropagation()))},i||(document.addEventListener("touchmove",d,n?{passive:!1}:void 0),i=!0)}}else{v=o,setTimeout((function(){if(void 0===c){var e=!!v&&!0===v.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(c=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")}));var p={targetElement:e,options:o||{}};a=[].concat(t(a),[p])}var v},e.clearAllBodyScrollLocks=function(){r?(a.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),i&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),i=!1),a=[],l=-1):(m(),a=[])},e.enableBodyScroll=function(e){if(r){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,a=a.filter((function(t){return t.targetElement!==e})),i&&0===a.length&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),i=!1)}else 1===a.length&&a[0].targetElement===e?(m(),a=[]):a=a.filter((function(t){return t.targetElement!==e}))}})?o.apply(t,r):o)||(e.exports=a)}}]);
@@ -1,5 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["general-chart-properties-dialog"],{"++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>'},"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"}},An2S:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p}));var i=n("q1tI"),l=n.n(i),a=n("TSYQ"),o=n.n(a),s=n("Iivm"),r=n("++0f"),c=n("2x13");function m(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function h(e){const{mode:t,className:n,...i}=e,{isMobile:a,isTablet:s}=m(t),r=o()(c.container,s&&c.isTablet,a&&c.isMobile,n);return l.a.createElement("div",{...i,className:r,"data-role":"dialog-sidebar"})}function d(e){return l.a.createElement("div",{className:c.wrapper,...e})}function p(e){const{mode:t,title:n,icon:i,isActive:a,onClick:h,...d}=e,{isMobile:p,isTablet:u}=m(t);return l.a.createElement("div",{...d,className:o()(c.tab,u&&c.isTablet,p&&c.isMobile,a&&c.active),onClick:h},l.a.createElement(s.a,{className:c.icon,icon:i}),!u&&l.a.createElement("span",{className:c.title},l.a.createElement("span",{className:c.titleText},n),p&&l.a.createElement(s.a,{className:c.nested,icon:r})))}},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("q1tI"),l=n("TSYQ"),a=n.n(l),o=n("NOPy");function s(e){const{size:t="normal",className:n}=e;return i.createElement("div",{className:a()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,n)})}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},PI1I:function(e,t,n){"use strict";n.r(t);n("YFKU");var i=n("q1tI"),l=n("i8i4"),a=n("mwqF"),o=n("bvfV"),s=n("ycFu"),r=n("ybVX"),c=n("Q+1u"),m=n("Vdly"),h=n.n(m),d=n("VNzU"),p=n("/KDZ"),u=(n("bSeV"),n("K+KL")),b=n("N5tr"),g=n("KKsp"),y=n("Iivm"),T=n("EsvI"),_=(n("HbRj"),n("fZEr"));const C=window.t("Do you really want to delete Color Theme '{name}' ?");var v=n("+EG+"),S=n("2uTr"),f=n("i/MG"),k=n("JWMC"),A=n("8d0Q"),w=n("8+VR"),E=n("utEQ");function P(e){const{themeName:t,chartWidgetCollection:n,onRemove:l,manager:a}=e,[o,s]=Object(A.c)(),r=i.useCallback(()=>function(e,t,n){window.is_authenticated&&Object(_.showConfirm)({text:C.format({name:e}),onConfirm:({dialogClose:n})=>{Object(T.removeTheme)(e),t&&t(e),n()}},n)}(t,l,a),[t,l,a]),c=i.useCallback(()=>{Object(T.loadTheme)(t,!1,!1,n).then(()=>{window.saver.saveChartSilently(),Object(k.trackEvent)("GUI","Switch to custom theme")})},[t,n]);return i.createElement("div",{...s},i.createElement(b.b,{className:E.defaultsButtonItem,isActive:!1,label:t,onClick:c,toolbox:i.createElement(f.a,{hidden:!w.mobiletouch&&!o,
2
- onClick:r})}))}var x=n("HWhk");const B=window.t("Template"),I=window.t("Apply Defaults"),N=(Object(S.appendEllipsis)(window.t("Save As")),window.t("Apply to all"));class M extends i.PureComponent{constructor(e){super(e),this._manager=null,this._handleApplyDefaults=()=>{const{model:e,chartWidgetCollection:t}=this.props;e.restorePreferences();const n=Object(T.getCurrentTheme)().name;Object(T.loadTheme)(n,!0,!0,t,void 0,void 0,!0)},this._handleSaveAs=()=>{0},this._handleRemoveTheme=e=>{this.setState({themes:this.state.themes.filter(t=>t!==e)})},this._syncThemeList=()=>{0},this.state={themes:[]},this._syncThemeList()}render(){return i.createElement(v.b.Consumer,null,e=>(this._manager=e,i.createElement(p.a,{rule:"screen and (max-width: 768px)"},e=>i.createElement(u.a,{id:"series-theme-manager",className:!e&&E.themesButtonText,hideArrowButton:e,"data-name":"theme-select",buttonChildren:this._getPlaceHolderItem(e)},this._getThemeItems(e)))))}_getPlaceHolderItem(e){return e?i.createElement(y.a,{className:E.themesButtonIcon,icon:x}):B}_getThemeItems(e){const{isApplyToAllVisible:t,chartWidgetCollection:n,applyToAllCallback:l}=this.props,{themes:a}=this.state;return i.createElement(i.Fragment,null,e&&t&&i.createElement(b.b,{className:E.defaultsButtonItem,isActive:!1,label:N,onClick:l}),i.createElement(b.b,{className:E.defaultsButtonItem,isActive:!1,label:I,onClick:this._handleApplyDefaults}),!1,a.length>0&&i.createElement(i.Fragment,null,i.createElement(g.a,{key:"separator"}),a.map(e=>i.createElement(P,{key:e,themeName:e,onRemove:this._handleRemoveTheme,chartWidgetCollection:n,manager:this._manager}))))}}var D=n("tWVy"),O=n("yqnI"),W=n("uhCe"),z=n("An2S"),V=n("tmL0");const L={areaSymbolMinTick:"normal",areaSymbolTimezone:"normal",barSymbolMinTick:"normal",barSymbolTimezone:"normal",baselineSymbolMinTick:"normal",baselineSymbolTimezone:"normal",candleSymbolMinTick:"normal",candleSymbolTimezone:"normal",dateFormat:"normal",haSymbolMinTick:"normal",haSymbolTimezone:"normal",hiloSymbolMinTick:"normal",hiloSymbolTimezone:"normal",hollowCandleSymbolMinTick:"normal",hollowCandleSymbolTimezone:"normal",kagiAtrLength:"normal",kagiReversalAmount:"normal",kagiStyle:"normal",kagiSymbolMinTick:"normal",kagiSymbolTimezone:"normal",lineSymbolMinTick:"normal",lineSymbolTimezone:"normal",sessionId:"normal",lockScale:"normal",mainSeriesSymbolAreaPriceSource:"normal",mainSeriesSymbolBaseLevelPercentage:"normal",mainSeriesSymbolBaseLinePriceSource:"normal",mainSeriesSymbolLinePriceSource:"normal",mainSeriesSymbolStyleType:"normal",navButtons:"big",paneButtons:"big",pbLb:"normal",pbSymbolMinTick:"normal",pbSymbolTimezone:"normal",pnfAtrLength:"normal",pnfBoxSize:"normal",pnfReversalAmount:"normal",pnfSources:"normal",pnfStyle:"normal",pnfSymbolMinTick:"normal",pnfSymbolTimezone:"normal",rangeSymbolMinTick:"normal",rangeSymbolTimezone:"normal",renkoAtrLength:"normal",renkoBoxSize:"normal",renkoStyle:"normal",renkoSymbolMinTick:"normal",renkoSymbolTimezone:"normal",scalesPlacement:"normal",symbolLastValueLabel:"big",symbolTextSource:"normal"}
3
- ;var R=n("yMyk"),q=n("U0JK");function K(e){return i.createElement(y.a,{className:R.backButton,icon:q,onClick:e.onClick})}var Z=n("sXZi");class j extends i.PureComponent{constructor(e){super(e),this._renderChildren=({requestResize:e,isSmallWidth:t})=>(this._requestResize=e,i.createElement("div",{className:Z.content},this._renderTabs(t),this._renderTabContent(t))),this._renderApplyToAllButton=()=>i.createElement(p.a,{rule:W.a.TabletNormal},e=>this._renderApplyToAll(e)),this._renderFooterLeft=()=>{const{model:e,chartWidgetCollection:t}=this.props,{isApplyToAllVisible:n}=this.state;return i.createElement(M,{model:e,isApplyToAllVisible:n,applyToAllCallback:this._handleApplyToAll,chartWidgetCollection:t})},this._createTabClickHandler=e=>()=>this._selectPage(e),this._selectPage=e=>{const{activePage:t}=this.state;e!==t&&(t&&t.definitions.unsubscribe(this._onChangeActivePageDefinitions),h.a.setValue("properties_dialog.last_page_id",e.id),e.definitions.subscribe(this._onChangeActivePageDefinitions),this.setState({activePage:e,tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()}))},this._onChangeActivePageDefinitions=()=>{O.a.logNormal("Definition collection was updated"),this.setState({tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()})},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()},this._handleScroll=()=>{D.a.fire()},this._handleApplyToAll=()=>{const{chartWidgetCollection:e,model:t}=this.props,{isApplyToAllVisible:n}=this.state;n&&e.applyPreferencesToAllCharts(t)},this._syncApplyToAllVisibility=()=>{const{chartWidgetCollection:e}=this.props;this.setState({isApplyToAllVisible:Object(d.isMultipleLayout)(e.layout.value())})},this._handleBackClick=()=>{const{activePage:e}=this.state;e&&e.definitions.unsubscribe(this._onChangeActivePageDefinitions),this.setState({activePage:null})};const{pages:t,activePageId:n}=e;let l=t.find(e=>e.id===n);if(!l){const e=h.a.getValue("properties_dialog.last_page_id"),n=t.find(t=>t.id===e);l=n||t[0]}this.state={activePage:l,isApplyToAllVisible:Object(d.isMultipleLayout)(e.chartWidgetCollection.layout.value()),tableKey:Date.now()}}componentDidMount(){const{chartWidgetCollection:e}=this.props,{activePage:t}=this.state;e.layout.subscribe(this._syncApplyToAllVisibility),t&&t.definitions.subscribe(this._onChangeActivePageDefinitions)}componentWillUnmount(){const{chartWidgetCollection:e}=this.props,{activePage:t}=this.state;t&&t.definitions.unsubscribe(this._onChangeActivePageDefinitions),e.layout.unsubscribe(this._syncApplyToAllVisibility)}render(){const{isOpened:e,onClose:t}=this.props,{activePage:n}=this.state;return i.createElement(p.a,{rule:W.a.TabletSmall},l=>i.createElement(s.a,{className:Z.withSidebar,dataName:"series-properties-dialog",onClose:t,isOpened:e,title:null!==n&&l?n.title:window.t("Chart settings"),footerLeftRenderer:this._renderFooterLeft,additionalButtons:this._renderApplyToAllButton(),additionalHeaderElement:null!==n&&l?i.createElement(K,{
4
- onClick:this._handleBackClick}):void 0,onSubmit:this._handleSubmit,onCancel:this._handleCancel,render:this._renderChildren,submitOnEnterKey:!1}))}_renderTabContent(e){const{pages:t}=this.props,n=this._getCurrentPage(e);if(n){const e=t.find(e=>e.id===n.id),l=e?e.definitions.value():[];return i.createElement(V.a,{className:Z.tabContent,onScroll:this._handleScroll},i.createElement(r.b.Provider,{value:L},i.createElement(c.a,{key:this.state.tableKey},l.map(e=>i.createElement(o.a,{key:e.id,definition:e})))))}return null}_renderTabs(e){const{pages:t}=this.props,{activePage:n}=this.state;if(n&&e)return null;const l=this._getCurrentPage(e);return i.createElement(p.a,{rule:W.a.TabletNormal},e=>i.createElement(p.a,{rule:W.a.TabletSmall},n=>{const a=n?"mobile":e?"tablet":void 0;return i.createElement(z.a,{mode:a,onScroll:this._handleScroll},t.map(e=>i.createElement(z.b,{key:e.id,mode:a,"data-name":e.id,title:e.title,icon:e.icon,onClick:this._createTabClickHandler(e),isActive:l?e.id===l.id:void 0})))}))}_renderApplyToAll(e){const{isApplyToAllVisible:t}=this.state;return!e&&t&&i.createElement("span",{className:Z.applyToAllButton},i.createElement(a.a,{appearance:"stroke",onClick:this._handleApplyToAll},window.t("Apply to all")))}_getCurrentPage(e){const{pages:t}=this.props,{activePage:n}=this.state;let i=null;return n?i=n:!e&&t.length&&(i=t[0]),i}}var U=n("FQhm"),F=n("sQaR");n.d(t,"GeneralChartPropertiesDialogRenderer",(function(){return Q}));const G=window.t("Chart settings");class Q extends F.a{constructor(e){super(),this._handleClose=()=>{l.unmountComponentAtNode(this._container),this._setVisibility(!1),this._onClose&&this._onClose()},this._handleSubmit=()=>{},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._propertyPages=e.propertyPages,this._model=e.model,this._activePageId=e.activePageId,this._onClose=e.onClose,this._chartWidgetCollection=e.chartWidgetCollection,this._checkpoint=this._ensureCheckpoint(e.undoCheckPoint)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(){l.render(i.createElement(j,{title:G,isOpened:!0,onSubmit:this._handleSubmit,onClose:this._handleClose,onCancel:this._handleCancel,pages:this._propertyPages,model:this._model,activePageId:this._activePageId,chartWidgetCollection:this._chartWidgetCollection}),this._container),this._setVisibility(!0),U.emit("edit_object_dialog",{objectType:"mainSeries",scriptTitle:this._model.mainSeries().title()})}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}}},sXZi:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tablet-small-breakpoint":"screen and (max-width: 428px)",withSidebar:"withSidebar-1e-cIUlp",content:"content-1e-cIUlp",tabContent:"tabContent-1e-cIUlp",applyToAllButton:"applyToAllButton-1e-cIUlp"}},utEQ:function(e,t,n){e.exports={themesButtonText:"themesButtonText-3vn5WLwC",themesButtonIcon:"themesButtonIcon-3vn5WLwC",defaultsButtonText:"defaultsButtonText-3vn5WLwC",
5
- defaultsButtonItem:"defaultsButtonItem-3vn5WLwC"}},yMyk:function(e,t,n){e.exports={backButton:"backButton-ukxmTk5_"}}}]);
@@ -1,6 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["general-property-page"],{"34BO":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 7H7v14h2v3h1v-3h2V7h-2V4H9v3zM8 8v12h3V8H8zm9 1h-2v10h2v3h1v-3h2V9h-2V6h-1v3zm-1 1v8h3v-8h-3z"/></svg>'},"5lPo":function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("Kxc7"),o=(i("N22A"),i("hY0g")),a=i.n(o),n=i("HSjo"),l=i("1yQO"),c=i("1ANp"),h=i("RspR"),d=i("MWAT"),p=i("zqjM"),b=i("x2L+");const u=window.t("Show Buy/Sell Buttons");var g=i("qFKp");const w=window.t("Symbol"),y=window.t("OHLC Values"),P=window.t("Bar Change Values"),O=window.t("Indicator Titles"),m=window.t("Indicator Arguments"),v=window.t("Indicator Values"),j=window.t("Background"),C=(window.t("Wrap text"),window.t("Show Open market status"));g.CheckMobile.any();function S(e,t,i,s,o){const l=[],c=[],h=Object(n.k)({checked:Object(n.b)(e,t.showSeriesTitle,"Change Symbol Description Visibility"),option:Object(n.b)(e,i.property,"Change Symbol Legend Format")},{id:"symbolTextSource",title:w,options:new a.a(i.values)});if(c.push(h),null!==s){const t=Object(n.c)({checked:Object(n.b)(e,s,"Change show open market status")},{id:"showOpenMarketStatus",title:C});c.push(t)}const d=Object(n.c)({checked:Object(n.b)(e,t.showSeriesOHLC,"Change OHLC Values Visibility")},{id:"ohlcTitle",title:y});c.push(d);const p=Object(n.c)({checked:Object(n.b)(e,t.showBarChange,"Change Bar Change Visibility")},{id:"barChange",title:P});c.push(p),l.push(Object(n.l)(c,"seriesLegendVisibilityGroup"));const b=function(e,t){return null!==t&&r.enabled("buy_sell_buttons")?Object(n.c)({checked:Object(n.a)(e,t.showSellBuyButtons,"Change buy/sell buttons visibility")},{id:"tradingSellBuyPanel",title:u}):null}(e,o);null!==b&&l.push(Object(n.l)([b],"sellBuyButtonsLegendVisibilityGroup"));const g=[],S=Object(n.c)({checked:Object(n.b)(e,t.showStudyArguments,"Change Indicator Arguments Visibility")},{id:"studyArguments",title:m}),_=Object(n.d)({checked:Object(n.b)(e,t.showStudyTitles,"Change Indicator Titles Visibility")},{id:"studyTitles",title:O},[S]);g.push(_);const f=Object(n.c)({checked:Object(n.b)(e,t.showStudyValues,"Change Indicator Values Visibility")},{id:"studyValues",title:v});g.push(f),l.push(Object(n.l)(g,"studiesLegendVisibilityGroup"));const L=[];const k=Object(n.r)({checked:Object(n.b)(e,t.showBackground,"Change Legend Background Visibility"),transparency:Object(n.b)(e,t.backgroundTransparency,"Change Legend Background Transparency")},{id:"legendBgTransparency",title:j});return L.push(k),l.push(Object(n.l)(L,"generalLegendGroup")),l}var _=i("oXaB"),f=i("Z5lT"),L=i("GDWD");const k=window.t("Symbol Name Label"),V=window.t("Symbol Last Price Label"),M=(window.t("Symbol Previous Day Close Price Label (Intraday Only)"),window.t("Indicator Name Label")),x=window.t("Indicator Last Value Label"),B=(window.t("Financials Name Label"),window.t("Financials Last Value Label"),window.t("Bid and Ask Labels"),
2
- window.t("Pre/Post Market Price Label"),window.t("High and low price labels")),z=window.t("Average close price label"),D=window.t("Countdown To Bar Close"),T=window.t("Currency"),A=window.t("Unit"),H=window.t("Plus Button"),G=window.t("Scales Placement"),R=window.t("Date Format"),E=window.t("Lock Price to Bar Ratio"),N=window.t("No Overlapping Labels"),W=[{value:_.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:window.t("Price and Percentage Value")},{value:_.PriceAxisLastValueMode.LastValueAccordingToScale,title:window.t("Value according to Scale")}];const F=window.t("Background"),I=window.t("Vert Grid Lines"),U=window.t("Horz Grid Lines"),q=window.t("Session Breaks"),K=window.t("Scales text"),Q=window.t("Scales lines"),J=window.t("Crosshair"),Z=window.t("Watermark"),X=window.t("Top Margin"),Y=window.t("Navigation Buttons"),$=window.t("Pane Buttons"),ee=window.t("Bottom Margin"),te=window.t("Right Margin"),ie=window.t("bars",{context:"unit"});var se=i("e1ZQ"),re=i("3t3b"),oe=i("gQ5K"),ae=i("+6ja");const ne={symbol:i("34BO"),legend:i("ggCF"),scales:i("Iilx"),appearance:i("DyO1"),events:i("iUxq"),trading:i("WS5G")};i.d(t,"ChartPropertyDefinitionsViewModel",(function(){return ge}));const le=window.t("Symbol"),ce=window.t("Status line"),he=window.t("Scales"),de=window.t("Appearance");window.t("Events"),window.t("Trading");let pe=null;function be(){const e=new Date(Date.UTC(1997,8,29));return se.a.map(t=>({value:t,title:new oe.DateFormatter(t).format(e)}))}const ue=[{id:"symbol-text-source-description",value:"description",title:window.t("Description")},{id:"symbol-text-source-ticker",value:"ticker",title:window.t("Ticker")},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:window.t("Ticker and description")}];class ge{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._isDestroyed=!1,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel(),this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){null!==this._propertyPages&&this._propertyPages.filter((e,t)=>0!==t).forEach(e=>{Object(n.u)(e.definitions.value())}),this._seriesPropertyDefinitionViewModel.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);Object(s.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._isDestroyed=!0}propertyPages(){
3
- return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then(e=>{if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage),null!==this._eventsPropertyPage&&this._propertyPages.push(this._eventsPropertyPage)),this._propertyPages}):Promise.resolve(this._propertyPages)}_updateDefinitions(){Object(n.u)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e)}_createSeriesViewModel(){const e={property:this._model.properties().timezone,values:ae.availableTimezones.map(e=>({value:e.id,title:e.title}))};return new p.a(this._series,this._undoModel,"symbol",le,ne.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:ue},i=S(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?b.b:null,pe);return Object(l.a)(i,"legend",ce,ne.legend)}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return Object(l.a)(e,"scales",he,ne.scales)}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().priceScaleSelectionStrategyName,values:Object(d.allPriceScaleSelectionStrategyInfo)().map(e=>({value:e.name,title:e.title}))},i={property:re.dateFormatProperty,values:be()},s=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,s){const o=s.seriesPriceScale.properties().childs(),l=[],c=[];if(s.seriesHasClosePrice){const t=Object(n.c)({checked:Object(n.b)(e,i.showSymbolLabels,"Show Symbol Labels")},{id:"symbolNameLabel",title:k}),s=Object(n.k)({checked:Object(n.b)(e,i.showSeriesLastValue,"Change Symbol Last Value Visibility"),option:Object(n.b)(e,i.seriesLastValueMode,"Change Symbol Last Value Mode")},{id:"symbolLastValueLabel",title:V,options:new a.a(W)});c.push(t,s)}const h=t.highLowAvgPrice,d=Object(n.c)({checked:Object(n.b)(e,h.childs().highLowPriceLabelsVisible,"Change high/low price labels visibility")},{id:"highLowPriceLabels",title:B}),p=Object(n.c)({checked:Object(n.b)(e,h.childs().averageClosePriceLabelVisible,"Change average close price label visibility")},{id:"averageClosePriceLabels",title:z});c.push(d,p);const b=Object(n.c)({checked:Object(n.b)(e,i.showStudyPlotLabels,"Show Study Plots Labels")},{id:"studyNameLabel",title:M}),u=Object(n.c)({checked:Object(n.b)(e,i.showStudyLastValue,"Change Indicator Last Value Visibility")},{id:"studyLastValueLabel",title:x});c.push(b,u);const g=Object(n.c)({checked:Object(n.b)(e,o.alignLabels,"Change No Overlapping Labels")},{id:"noOverlappingLabels",title:N});if(c.push(g),s.countdownEnabled){const i=Object(n.c)({
4
- checked:Object(n.b)(e,t.showCountdown,"Change Show Countdown")},{id:"countdown",title:D});c.push(i)}if(s.currencyConversionEnabled){const t=Object(n.c)({checked:Object(n.b)(e,i.showCurrency,"Change Currency Label Visibility")},{id:"scalesCurrency",title:T});c.push(t)}if(s.unitConversionEnabled){const t=Object(n.c)({checked:Object(n.b)(e,i.showUnit,"Change Unit Label Visibility")},{id:"scalesUnit",title:A});c.push(t)}if(e.crossHairSource().isMenuEnabled()){const t=Object(n.c)({checked:Object(n.b)(e,L.addPlusButtonProperty,"Plus Button")},{id:"addPlusButton",title:H});c.push(t)}l.push(Object(n.l)(c,"generalScalesLabelsGroup"));const w=Object(n.j)({checked:Object(n.w)(e,o.lockScale,s.seriesPriceScale,"Change lock scale"),value:Object(n.y)(e,s.mainSeriesScaleRatioProperty,"Change Price to Bar Ratio",[Object(f.c)(7),e=>e])},{id:"lockScale",title:E,min:new a.a(s.mainSeriesScaleRatioProperty.getMinValue()),max:new a.a(s.mainSeriesScaleRatioProperty.getMaxValue()),step:new a.a(s.mainSeriesScaleRatioProperty.getStepChangeValue())}),y=Object(n.k)({option:Object(n.x)(e,s.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:G,options:new a.a(s.scalesPlacementPropertyObj.values)});if(l.push(w,y),r.enabled("scales_date_format")){const t=Object(n.k)({option:Object(n.b)(e,s.dateFormatPropertyObj.property,"Change Date Format")},{id:"dateFormat",title:R,options:new a.a(s.dateFormatPropertyObj.values)});l.push(t)}return l}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:s,scalesPlacementPropertyObj:t,dateFormatPropertyObj:i,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled})}_createMaxOffsetPropertyObject(){const e=Object(s.ensureNotNull)(this._model.timeScale()),t=new a.a(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,e=>{t.setValue(Math.floor(e))}),this._maxRightOffsetPropertyObject={property:e.defaultRightOffsetProperty(),min:new a.a(0),max:t}}_createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),i=e.scalesProperties.childs(),o=this._model.watermarkSource();let d=null;null!==o&&(d=o.properties().childs());const p={property:c.property(),values:c.availableValues()},b={property:h.property(),values:h.availableValues()},u=this._model.sessions().properties().childs().graphics.childs().vertlines.childs().sessBreaks.childs();null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject();const g=Object(s.ensureNotNull)(this._maxRightOffsetPropertyObject),w=function(e,t,i,s,o,l,c,h,d){const p=[],b=Object(n.e)({color:Object(n.v)(e,t.background,null,"Change Chart Background Color"),gradientColor1:Object(n.v)(e,t.backgroundGradientStartColor,null,"Change Chart Background Color"),
5
- gradientColor2:Object(n.v)(e,t.backgroundGradientEndColor,null,"Change Chart Background Color"),type:Object(n.b)(e,t.backgroundType,"Change Chart Background Type")},{id:"chartBackground",title:F,noAlpha:!0}),u=t.vertGridProperties.childs(),g=Object(n.i)({color:Object(n.v)(e,u.color,null,"Change Vert Grid Lines Color"),style:Object(n.b)(e,u.style,"Change Vert Grid Lines Style")},{id:"vertGridLine",title:I}),w=t.horzGridProperties.childs(),y=Object(n.i)({color:Object(n.v)(e,w.color,null,"Change Horz Grid Lines Color"),style:Object(n.b)(e,w.style,"Change Horz Grid Lines Style")},{id:"horizGridLine",title:U}),P=Object(n.i)({disabled:Object(n.b)(e,l,"Change Intraday Interval Property"),checked:Object(n.b)(e,o.visible,"Change Sessions Breaks Visibility"),color:Object(n.v)(e,o.color,null,"Change Sessions Breaks Color"),width:Object(n.b)(e,o.width,"Change Sessions Breaks Width"),style:Object(n.b)(e,o.style,"Change Sessions Breaks Style")},{id:"sessionBeaks",title:q}),O=Object(n.q)({color:Object(n.v)(e,s.textColor,null,"Change Scales Text Color"),size:Object(n.b)(e,s.fontSize,"Change Scales Font Size")},{id:"scalesText",title:K}),m=Object(n.i)({color:Object(n.v)(e,s.lineColor,null,"Change Scales Lines Color")},{id:"scalesLine",title:Q}),v=t.crossHairProperties.childs(),j=Object(n.i)({color:Object(n.v)(e,v.color,v.transparency,"Change Crosshair Color"),width:Object(n.b)(e,v.width,"Change Crosshair Width"),style:Object(n.b)(e,v.style,"Change Crosshair Style")},{id:"crossHair",title:J});if(p.push(b,g,y,P,O,m,j),null!==i){const t=Object(n.e)({checked:Object(n.b)(e,i.visibility,"Change Symbol Watermark Visibility"),color:Object(n.v)(e,i.color,null,"Change Symbol Watermark Color")},{id:"watermark",title:Z});p.push(t)}const C=Object(n.k)({option:Object(n.b)(e,h.property,"Change Navigation Buttons Visibility")},{id:"navButtons",title:Y,options:new a.a(h.values)});p.push(C);const S=Object(n.k)({option:Object(n.b)(e,d.property,"Change Pane Buttons Visibility")},{id:"paneButtons",title:$,options:new a.a(d.values)});p.push(S);const _=Object(n.j)({value:Object(n.b)(e,t.topMargin,"Change Top Margin",[f.b])},{type:0,id:"paneTopMargin",title:X,min:new a.a(0),max:new a.a(25),step:new a.a(1),unit:new a.a("%")}),L=Object(n.j)({value:Object(n.b)(e,t.bottomMargin,"Change Bottom Margin",[f.b])},{type:0,id:"paneBottomMargin",title:ee,min:new a.a(0),max:new a.a(25),step:new a.a(1),unit:new a.a("%")}),k=Object(n.j)({value:Object(n.b)(e,c.property,"Change Right Margin",[f.b])},{type:0,id:"paneRightMargin",title:te,min:c.min,max:c.max,step:new a.a(1),unit:new a.a(ie)}),V=[Object(n.l)(p,"generalAppearanceGroup"),_,L];return r.enabled("chart_property_page_right_margin_editor")&&V.push(k),V}(this._undoModel,t,d,i,u,this._series.isDWMProperty(),g,p,b);return Object(l.a)(w,"appearance",de,ne.appearance)}_createTradingPropertyPage(){return null}_createEventsPropertyPage(){return null}}},DyO1:function(e,t){
6
- e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 16.5l-1 1v4h4l1-1m-4-4l2 2m-2-2l9-9m-5 13l-2-2m2 2l9-9m-11 7l9-9m0 0l-2-2m2 2l2 2m-4-4l.94-.94a1.5 1.5 0 0 1 2.12 0l1.88 1.88a1.5 1.5 0 0 1 0 2.12l-.94.94"/></svg>'},Iilx:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M10.5 20.5a2 2 0 1 1-2-2m2 2a2 2 0 0 0-2-2m2 2h14m-16-2v-14m16 16L21 17m3.5 3.5L21 24M8.5 4.5L12 8M8.5 4.5L5 8"/></svg>'},WS5G:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M24.068 9a.569.569 0 0 1 .73.872L19 14.842l-5.798-4.97a.569.569 0 0 1 .73-.872l4.751 3.887.317.26.317-.26L24.068 9zm1.47-.67a1.569 1.569 0 0 0-2.103-.104L19 11.854l-4.435-3.628a1.569 1.569 0 0 0-2.014 2.405l6.124 5.249.325.279.325-.28 6.124-5.248a1.569 1.569 0 0 0 .088-2.3zm-11.484 9.728a.57.57 0 0 0 .688-.91L9 12.636l-5.742 4.512a.57.57 0 0 0 .688.91l4.76-3.462.294-.214.294.214 4.76 3.462zm1.446.649a1.57 1.57 0 0 1-2.034.16L9 15.618l-4.466 3.249a1.57 1.57 0 0 1-1.894-2.505l6.051-4.755.309-.243.309.243 6.051 4.755c.74.581.806 1.68.14 2.345z"/></svg>'},ggCF:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" d="M6 13h12v1H6zM6 17h12v1H6zM6 21h12v1H6z"/><rect width="17" height="3" stroke="currentColor" rx="1.5" x="5.5" y="6.5"/></svg>'},iUxq:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5A1.5 1.5 0 0 0 6 8.5v11A1.5 1.5 0 0 0 7.5 21h13a1.5 1.5 0 0 0 1.5-1.5v-11A1.5 1.5 0 0 0 20.5 7H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'}}]);
@@ -1,14 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([["go-to-date-dialog-impl"],{"++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){},"/Wph":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 fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5C6.67 7 6 7.67 6 8.5v11c0 .83.67 1.5 1.5 1.5h13c.83 0 1.5-.67 1.5-1.5v-11c0-.83-.67-1.5-1.5-1.5H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n("q1tI"),o=n("TSYQ"),a=n("XiJV");function r(e){return s.createElement("div",{className:o(a.separator,e.className)})}},"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"}')},"2sPR":function(e,t,n){e.exports={calendar:"calendar-3r0qUNSu",popupStyle:"popupStyle-3r0qUNSu",header:"header-3r0qUNSu",title:"title-3r0qUNSu",switchBtn:"switchBtn-3r0qUNSu",prev:"prev-3r0qUNSu",month:"month-3r0qUNSu",weekdays:"weekdays-3r0qUNSu",weeks:"weeks-3r0qUNSu",week:"week-3r0qUNSu",day:"day-3r0qUNSu",disabled:"disabled-3r0qUNSu",selected:"selected-3r0qUNSu",currentDay:"currentDay-3r0qUNSu",isOnHighlightedEdge:"isOnHighlightedEdge-3r0qUNSu",withinSelectedRange:"withinSelectedRange-3r0qUNSu"}},"5VK0":function(e,t,n){e.exports={scrollWrap:"scrollWrap-1KEqJy8_",tabsWrap:"tabsWrap-1KEqJy8_",tabs:"tabs-1KEqJy8_",withoutBorder:"withoutBorder-1KEqJy8_",tab:"tab-1KEqJy8_",withHover:"withHover-1KEqJy8_",headerBottomSeparator:"headerBottomSeparator-1KEqJy8_",fadeWithoutSlider:"fadeWithoutSlider-1KEqJy8_"}},"5o6O":function(e,t,n){e.exports={tabs:"tabs-3I2ohC86",tab:"tab-3I2ohC86",noBorder:"noBorder-3I2ohC86",disabled:"disabled-3I2ohC86",
2
- active:"active-3I2ohC86",defaultCursor:"defaultCursor-3I2ohC86",slider:"slider-3I2ohC86",content:"content-3I2ohC86"}},"77yN":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M4 0c-.6 0-1 .4-1 1v1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1h-2V1c0-.6-.4-1-1-1h-1c-.6 0-1 .4-1 1v1H6V1c0-.6-.4-1-1-1H4zM2 5h12v9H2V5zm5 2v2h2V7H7zm3 0v2h2V7h-2zm-6 3v2h2v-2H4zm3 0v2h2v-2H7zm3 0v2h2v-2h-2z"/></svg>'},"8JZL":function(e,t,n){e.exports={tooltip:"tooltip-3y8LFwiB"}},"8NUT":function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-KW8170fm",submitButton:"submitButton-KW8170fm",buttons:"buttons-KW8170fm"}},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var s=n("q1tI"),o=n.n(s),a=n("i8i4"),r=n.n(a),i=n("AiMB"),c=n("DTHj"),l=n("X0gx"),u=n("8Rai");function d(e){const{controller:t,children:n,isOpened:a,closeOnClickOutside:d=!0,doNotCloseOn:h,onClickOutside:p,onClose:m,...f}=e,b=Object(s.useContext)(l.a),v=Object(u.a)({handler:function(e){p&&p(e);if(!d)return;if(h&&e.target instanceof Node){const t=r.a.findDOMNode(h);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return a?o.a.createElement(i.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.a.createElement("span",{ref:v,style:{pointerEvents:"auto"}},o.a.createElement(c.b,{...f,onClose:m,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:b,ref:t},n))):null}},ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},F6Wo:function(e,t,n){e.exports={container:"container-3tk-77P6",icon:"icon-3tk-77P6",tooltip:"tooltip-3tk-77P6",date:"date-3tk-77P6",time:"time-3tk-77P6"}},FT3R:function(e,t,n){e.exports={dialogWrapper:"dialogWrapper-C-Wab_3K",dialogWrapperSmall:"dialogWrapperSmall-C-Wab_3K",tabs:"tabs-C-Wab_3K",content:"content-C-Wab_3K",contentMobile:"contentMobile-C-Wab_3K",bodyWrapper:"bodyWrapper-C-Wab_3K"}},Gtzb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o}));class s{constructor(){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 o=new s},Hrlb:function(e,t,n){e.exports={pickerInput:"pickerInput-2oRut0q-",icon:"icon-2oRut0q-",disabled:"disabled-2oRut0q-",picker:"picker-2oRut0q-",fixed:"fixed-2oRut0q-",absolute:"absolute-2oRut0q-",nativePicker:"nativePicker-2oRut0q-"}},ItnF:function(e,t,n){e.exports={dialog:"dialog-2cMrvu9r",wrapper:"wrapper-2cMrvu9r",separator:"separator-2cMrvu9r"}},K3s3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var s=n("q1tI"),o=n("TSYQ"),a=n("Eyy1"),r=n("5o6O");const i=r;function c(e){const t=o(e.className,r.tab,{
3
- [r.active]:e.isActive,[r.disabled]:e.isDisabled,[r.defaultCursor]:!!e.shouldUseDefaultCursor,[r.noBorder]:!!e.noBorder});return s.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function l(e){return class extends s.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){Object(a.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return s.createElement("div",{className:o(t,r.tabs),"data-name":this.props["data-name"]},n,s.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,s.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),o={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return s.cloneElement(t,o)})}_componentDidUpdate(){const e=Object(a.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}l((function(e){return s.createElement("div",{className:r.slider,ref:e.reference})}))},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var s=n("q1tI"),o=n.n(s),a=n("TSYQ"),r=n("tWVy"),i=n("JWMC"),c=n("ijHL"),l=n("v1bN");const u=l;function d(e){const{reference:t,...n}=e,s={...n,ref:t};return o.a.createElement(e.href?"a":"div",s)}function h(e){e.stopPropagation()}function p(e){const{id:t,role:n,"aria-selected":u,className:p,title:m,labelRowClassName:f,labelClassName:b,shortcut:v,forceShowShortcuts:g,icon:w,isActive:C,isDisabled:D,isHovered:_,appearAsDisabled:E,label:N,link:S,showToolboxOnHover:O,target:y,rel:k,toolbox:x,reference:I,onMouseOut:j,onMouseOver:T,suppressToolboxClick:P=!0,theme:F=l}=e,R=Object(c.b)(e),M=Object(s.useRef)(null);return o.a.createElement(d,{...R,id:t,role:n,"aria-selected":u,className:a(p,F.item,w&&F.withIcon,{[F.isActive]:C,[F.isDisabled]:D||E,[F.hovered]:_}),title:m,href:S,target:y,rel:k,reference:function(e){M.current=e,"function"==typeof I&&I(e);"object"==typeof I&&(I.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:s,onClickArg:o,trackEventObject:a}=e;if(D)return;a&&Object(i.trackEvent)(a.category,a.event,a.label);s&&s(o,t);n||Object(r.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:s}=e;n&&s&&Object(i.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:s}=e;if(1===t.button&&S&&n){let e=n.label;s&&(e+="_mouseWheelClick"),Object(i.trackEvent)(n.category,n.event,e)}},onMouseOver:T,onMouseOut:j},void 0!==w&&o.a.createElement("div",{className:F.icon,dangerouslySetInnerHTML:{__html:w}}),o.a.createElement("div",{className:a(F.labelRow,f)
4
- },o.a.createElement("div",{className:a(F.label,b)},N)),(void 0!==v||g)&&o.a.createElement("div",{className:F.shortcut},(A=v)&&A.split("+").join(" + ")),void 0!==x&&o.a.createElement("div",{onClick:P?h:void 0,className:a(F.toolbox,{[F.showOnHover]:O})},x));var A}},R5JZ:function(e,t,n){"use strict";function s(e,t,n,s,o){function a(o){if(e>o.timeStamp)return;const a=o.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===s&&(t.contains(a)||n(o))}return o.click&&s.addEventListener("click",a,!1),o.mouseDown&&s.addEventListener("mousedown",a,!1),o.touchEnd&&s.addEventListener("touchend",a,!1),o.touchStart&&s.addEventListener("touchstart",a,!1),()=>{s.removeEventListener("click",a,!1),s.removeEventListener("mousedown",a,!1),s.removeEventListener("touchend",a,!1),s.removeEventListener("touchstart",a,!1)}}n.d(t,"a",(function(){return s}))},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},aDg1:function(e,t,n){"use strict";var s=n("q1tI"),o=n("TSYQ"),a=n("K3s3"),r=n("nPPD"),i=n("dMmr");const c=Object(r.a)(a.a,i);var l=n("4Cm8"),u=n("8+VR"),d=n("5VK0");n.d(t,"a",(function(){return m}));const h=d,p=Object(a.c)((function(e){return s.createElement("div",{className:c.slider,ref:e.reference},s.createElement("div",{className:c.inner}))}));class m extends s.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=h,hiddenBottomBorders:t,fadedSlider:n=!0,ScrollComponent:a=l.a}=this.props,r=this._generateDialogTabs();return s.createElement("div",{className:o(e.scrollWrap)},!t&&s.createElement("div",{className:e.headerBottomSeparator}),s.createElement(a,{isVisibleFade:u.mobiletouch,isVisibleButtons:!u.mobiletouch,isVisibleScrollbar:!1,fadeClassName:o({[e.fadeWithoutSlider]:!n})},s.createElement("div",{className:e.tabsWrap},s.createElement(p,{className:o(e.tabs,t&&e.withoutBorder)},r))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:n=h}=this.props;return t.allIds.map(r=>{const i=e===r;return s.createElement(a.b,{key:r,value:r,className:o(n.tab,!i&&n.withHover),isActive:i,onClick:this._createClickHandler(r)},t.byId[r].title)})}}},dMmr:function(e,t,n){e.exports={slider:"slider-3RfwXbxu",inner:"inner-3RfwXbxu"}},g89m:function(e,t,n){"use strict";var s=n("q1tI"),o=n.n(s),a=n("Eyy1"),r=n("TSYQ"),i=n.n(r),c=n("/3z9"),l=n("d700"),u=n("WXjp"),d=n("02pg"),h=n("uhCe"),p=n("/KDZ"),m=n("pafz"),f=n("ZjKI"),b=n("FQhm"),v=n("Iivm");const g=o.a.createContext({setHideClose:()=>{}});var w=n("zztK"),C=n("px1m");function D(e){const{title:t,subtitle:n,showCloseIcon:a=!0,onClose:r,renderBefore:c,renderAfter:l,draggable:u,className:d,unsetAlign:h}=e,[p,m]=Object(s.useState)(!1);return o.a.createElement(g.Provider,{value:{setHideClose:m}},o.a.createElement("div",{className:i()(C.container,d,(n||h)&&C.unsetAlign)},c,o.a.createElement("div",{"data-dragg-area":u,className:C.title},o.a.createElement("div",{className:C.ellipsis},t),n&&o.a.createElement("div",{className:i()(C.ellipsis,C.subtitle)},n)),l,a&&!p&&o.a.createElement(v.a,{className:C.close,icon:w,onClick:r,
5
- "data-name":"close","data-role":"button"})))}var _=n("ItnF");n.d(t,"a",(function(){return S}));const E={vertical:20},N={vertical:0};class S extends o.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(c.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,s=Object(a.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(l.b)(n))return void s.focus();if(s.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){b.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){b.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(a.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:s,dataName:a,onClickOutside:r,additionalElementPos:c,additionalHeaderElement:l,backdrop:f,shouldForceFocus:b=!0,showSeparator:v,subtitle:g,draggable:w=!0,fullScreen:C=!1,showCloseIcon:S=!0,rounded:O=!0,isAnimationEnabled:y,growPoint:k,dialogTooltip:x,unsetHeaderAlign:I}=this.props,j="after"!==c?l:void 0,T="after"===c?l:void 0;return o.a.createElement(p.a,{rule:h.a.SmallHeight},c=>o.a.createElement(p.a,{rule:h.a.TabletSmall},l=>o.a.createElement(u.a,{rounded:!(l||C)&&O,className:i()(_.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:r,onClickBackdrop:r,fullscreen:l||C,guard:c?N:E,boundByScreen:l||C,shouldForceFocus:b,backdrop:f,draggable:w,isAnimationEnabled:y,growPoint:k,name:this.props.dataName,dialogTooltip:x},o.a.createElement("div",{className:_.wrapper,"data-name":a,"data-dialog-name":"string"==typeof s?s:""},void 0!==s&&o.a.createElement(D,{draggable:w&&!(l||C),onClose:this._handleClose,renderAfter:T,renderBefore:j,subtitle:g,title:s,showCloseIcon:S,className:t,unsetAlign:I}),v&&o.a.createElement(d.a,{className:_.separator}),o.a.createElement(m.a.Consumer,null,e=>this._renderChildren(e,l||C))))))}}},ijHL:function(e,t,n){"use strict";function s(e){return a(e,r)}function o(e){return a(e,i)}function a(e,t){const n=Object.entries(e).filter(t),s={};for(const[e,t]of n)s[e]=t;return s}function r(e){const[t,n]=e
6
- ;return 0===t.indexOf("data-")&&"string"==typeof n}function i(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i}))},mwqF:function(e,t,n){"use strict";var s=n("q1tI"),o=n.n(s),a=n("TSYQ"),r=n("wwkJ"),i=n("ZWNO");function c(e,t){const{intent:n="primary",size:s="m",appearance:o="default",useFullWidth:r=!1,tabIndex:c=0,icon:l,className:u,isGrouped:d,cellState:h,disablePositionAdjustment:p=!1}=t,m=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(i.a)(h),e);return a(u,e.button,e["size-"+s],e["intent-"+n],e["appearance-"+o],r&&e["full-width"],-1===c&&e.noOutline,l&&"s"!==s&&e["with-icon"],m,d&&e.grouped,!p&&e["adjust-position"],h.isTop&&e["first-row"],h.isLeft&&e["first-col"])}var l=n("2A9e");n("+l/S");function u(e){const{className:t,intent:n,size:i,appearance:u,disabled:d,useFullWidth:h,reference:p,icon:m,children:f,tabIndex:b,...v}=e,{isGrouped:g,cellState:w,disablePositionAdjustment:C}=Object(s.useContext)(r.a),D=c(l,{intent:n,size:i,appearance:u,disabled:d,useFullWidth:h,tabIndex:b,icon:m,isGrouped:g,cellState:w,disablePositionAdjustment:C});return o.a.createElement("button",{className:a(D,t),disabled:d,ref:p,tabIndex:b,...v},m&&"s"!==i&&o.a.createElement("span",{className:l.icon},m),o.a.createElement("span",{className:l.content},f))}n.d(t,"a",(function(){return u}))},nPPD:function(e,t,n){"use strict";function s(e,t,n={}){const s=Object.assign({},t);for(const o of Object.keys(t)){const a=n[o]||o;a in e&&(s[o]=[e[a],t[o]].join(" "))}return s}function o(e,t,n={}){return Object.assign({},e,s(e,t,n))}n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}))},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP",title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},sw0u:function(e,t,n){e.exports={row:"row-PABCY1cG",mobileRow:"mobileRow-PABCY1cG"}},"uUY/":function(e,t,n){"use strict";n.r(t);var s=n("q1tI"),o=n.n(s),a=n("i8i4"),r=n.n(a),i=n("Eyy1"),c=n("PT1i");function l(e){return("0"+e).slice(-2)}function u(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function d(e,t=!1){const n=u(e),s=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(n.getDay()):n.getDay();return n.setDate(n.getDate()-s),n}function h(e){const t=u(e);return t.setDate(1),t}function p(e,t){return Number(u(e))===Number(u(t))}function m(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}function f(e,t,n){const s=!t||Number(u(t))-Number(u(e))<=0;return(!n||Number(u(n))-Number(u(e))>=0)&&s}function b(e){return new Date(e).getTimezoneOffset()/60}function v(e){const t=new Date(e)
7
- ;return t.setHours(t.getHours()+b(t)),t}function g(e){const t=new Date(e);return t.setHours(t.getHours()-b(t)),t}var w=n("Gtzb"),C=n("jCNj"),D=n.n(C);const _=o.a.createContext(null);function E(e){const{initialGoToDate:t,children:n}=e,[a,r]=Object(s.useState)(t),i=a.valueOf()<=function(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}(new Date).valueOf(),c=Object(s.useMemo)(()=>({date:a,setDate:r,isValid:i}),[a,i]);return o.a.createElement(_.Provider,{value:c},n)}const N=o.a.createContext(null);function S(e){const{initialRanges:t,children:n}=e,[a,r]=Object(s.useState)(t.from),[i,c]=Object(s.useState)(t.to),l=a.valueOf()<=i.valueOf(),u=Object(s.useMemo)(()=>({dateFrom:a,dateTo:i,setDateFrom:r,setDateTo:c,isValid:l}),[a,i,l]);return o.a.createElement(N.Provider,{value:u},n)}var O=n("YFKU"),y=n("TSYQ"),k=n.n(y),x=n("FQhm"),I=n("Vdly"),j=n.n(I),T=n("ZjKI"),P=n("uhCe"),F=n("ycFu"),R=n("sw0u");function M(e){const{children:t}=e;return o.a.createElement("div",{className:k()(R.row,_e&&R.mobileRow)},t)}var A=n("8+VR"),B=n("gQ5K"),z=n("Iivm"),W=n("2sPR");class K extends s.PureComponent{constructor(){super(...arguments),this._dateFormatter=new B.DateFormatter,this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){const e=y(W.day,{[W.selected]:this.props.isSelected,[W.disabled]:this.props.isDisabled,[W.withinSelectedRange]:this._withinSelectedRange(),[W.isOnHighlightedEdge]:this._isOnHighlightedEdge(),[W.currentDay]:this._isCurrentDay()});return s.createElement("span",{className:e,onClick:this._onClick,"data-day":this._dateFormatter.formatLocal(this.props.day)},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&(p(e,t)||p(e,n))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&this._isBetweenByDay(t,e,n)}_isCurrentDay(){return p(new Date,this.props.day)}_isBetweenByDay(e,t,n){const s=u(e),o=u(t),a=u(n);return s<o&&o<a}}const H=[Object(O.t)("Mo",{context:"day_of_week"}),Object(O.t)("Tu",{context:"day_of_week"}),Object(O.t)("We",{context:"day_of_week"}),Object(O.t)("Th",{context:"day_of_week"}),Object(O.t)("Fr",{context:"day_of_week"}),Object(O.t)("Sa",{context:"day_of_week"}),Object(O.t)("Su",{context:"day_of_week"})];class q extends s.PureComponent{constructor(){super(...arguments),this._renderWeekdays=()=>H.map(e=>s.createElement("span",{key:e},e))}render(){return s.createElement("div",{className:W.month},s.createElement("div",{className:W.weekdays},this._renderWeekdays()),s.createElement("div",{className:W.weeks},this._renderWeeks()))}_renderWeeks(){const e=[];let t=d(h(this.props.viewDate),!0);for(let n=0;n<6;n++)e.push(this._renderWeek(t)),t=new Date(m(t));return e}_renderWeek(e){const t=[];for(let a=0;a<7;a++){const r=new Date(e);r.setDate(r.getDate()+a),(n=r,o=this.props.viewDate,Number(h(n))===Number(h(o)))&&t.push(s.createElement(K,{key:a,day:r,isDisabled:this._isDayDisabled(r),
8
- isSelected:p(r,this.props.selectedDate),onClick:this.props.onClickDay,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}var n,o;if(0===t.length)return null;const a=function(e){const t=new Date(e.getFullYear(),0,1),n=(Number(e)-Number(t))/864e5;return Math.ceil((n+t.getDay()+1)/7)}(e);return s.createElement("div",{className:W.week,key:a},t)}_isDayDisabled(e){if(!f(e,this.props.minDate,this.props.maxDate))return!0;const t=[6,0].includes(e.getDay());return!!this.props.disableWeekends&&t}}var L=n("++0f");const U=[Object(O.t)("January"),Object(O.t)("February"),Object(O.t)("March"),Object(O.t)("April"),Object(O.t)("May"),Object(O.t)("June"),Object(O.t)("July"),Object(O.t)("August"),Object(O.t)("September"),Object(O.t)("October"),Object(O.t)("November"),Object(O.t)("December")];class V extends s.PureComponent{constructor(e){super(e),this._prevMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()-1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._nextMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()+1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._onClickDay=e=>{this.setState({viewDate:new Date(e)}),this.props.onSelect&&this.props.onSelect(new Date(e))},this.state={viewDate:e.selectedDate}}render(){return s.createElement("div",{className:y(W.calendar,this.props.popupStyle&&W.popupStyle,this.props.className),tabIndex:-1},s.createElement("div",{className:W.header},s.createElement(z.a,{icon:L,onClick:this._prevMonth,className:y(W.switchBtn,W.prev)}),s.createElement("div",{className:W.title},`${U[this.state.viewDate.getMonth()]} ${this.state.viewDate.getFullYear()}`),s.createElement(z.a,{icon:L,onClick:this._nextMonth,className:y(W.switchBtn,W.next)})),s.createElement(q,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,minDate:this.props.minDate,onClickDay:this._onClickDay,disableWeekends:this.props.disableWeekends,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}}V.defaultProps={popupStyle:!0};var G=n("dKnb"),J=n("jh7f"),Y=n("xADF"),Q=n("RgaO"),Z=n("Hrlb");class X extends s.PureComponent{constructor(e){super(e),this._input=null,this._handleFocus=()=>{this.props.showOnFocus&&this.props.onShowPicker()},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onShowPicker=e=>{if(e){const t=e.getBoundingClientRect();t.width&&t.right>window.innerWidth?e.style.right="0":e.style.right="auto"}},this._onChange=()=>{const e=Object(i.ensureNotNull)(this._input).value;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.onHidePicker()},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=Object(i.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this.state={
9
- value:e.value}}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){const{position:e="fixed",className:t,size:n,disabled:o,readonly:a,errors:r,icon:i,InputComponent:c=G.a}=this.props;return s.createElement("div",{className:Z.pickerInput},s.createElement(c,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:t,size:n,disabled:o,errors:r,messagesPosition:J.a.Attached,hasErrors:this.props.showErrorMessages&&r&&r.length>0,name:this.props.name,readonly:a,endSlot:r&&r.length?void 0:s.createElement(Y.b,null,s.createElement(z.a,{icon:i,className:y(Z.icon,o&&Z.disabled),onClick:o||a?void 0:this.props.onShowPicker})),"data-name":this.props.name}),this.props.showPicker&&!a?s.createElement(Q.a,{mouseDown:!0,handler:this.props.onHidePicker},t=>s.createElement("span",{ref:t},s.createElement("div",{className:y(Z.picker,Z[e]),key:"0",ref:this._onShowPicker},this.props.children))):null)}}X.defaultProps={showOnFocus:!0};class $ extends s.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=s.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.state.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,disabled:t,errors:n,InputComponent:o=G.a}=this.props,a=!this.props.readonly&&!t,r=this.props.showErrorMessages&&n&&n.length>0;return s.createElement("div",{className:Z.pickerInput},s.createElement(o,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,endSlot:n&&n.length?void 0:s.createElement(Y.b,null,s.createElement(z.a,{icon:this.props.icon,className:y(Z.icon,t&&Z.disabled)})),className:e,inputClassName:Z.textInput,size:this.props.size,disabled:t,hasErrors:r,errors:n,alwaysShowAttachedErrors:!0,messagesPosition:J.a.Attached,name:a?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!r&&this.state.isFocused?"primary":void 0}),a&&s.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:Z.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var ee=n("ldG2"),te=n("77yN");class ne extends o.a.PureComponent{constructor(e){super(e),this._pickerInputContainerRef=o.a.createRef(),this._dateFormatter=new B.DateFormatter,this._fixValue=e=>(e=(e=e.substr(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),
10
- this._isValid=e=>{if(/^[0-9]{4}(-[0-9]{2}){2}/.test(e)){const t=new Date(e.concat("T00:00"));return!function(e){return Number.isNaN(Number(e))}(t)&&(!!this.props.noRangeValidation||f(t,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{var t;if(!this.props.revertInvalidData||(null===(t=this._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget)))return;const{value:n}=e.target;if(!this._isValid(n)){const t=new Date(this.state.date);this.setState({pickerInputKey:e.timeStamp,date:t,isInvalid:!1}),this.props.onPick(t)}},this._onType=e=>{const t=this._isValid(e)?new Date(e.concat("T00:00")):null;t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState({date:e,showCalendar:!1,isInvalid:!1}),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push(window.t("Please enter the right date format yyyy-mm-dd")),e},this.state={pickerInputKey:0,date:e.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(e.initial))}}render(){return A.mobiletouch?o.a.createElement($,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:te,disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:y(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):o.a.createElement("div",{ref:this._pickerInputContainerRef},o.a.createElement(X,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:te,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:y(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent},o.a.createElement(V,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect})))}UNSAFE_componentWillReceiveProps(e){this.props.initial!==e.initial&&this.setState({date:e.initial})}_getFontSizeClassName(e){return e?"large"===e?ee.b.FontSizeLarge:ee.b.FontSizeMedium:void 0}}ne.defaultProps={position:"fixed",withCalendar:!0};var se=n("8JZL");function oe(e){
11
- const{className:t,text:n}=e;return o.a.createElement("span",{className:k()(se.tooltip,t)},n)}var ae=n("/Wph"),re=n("F6Wo");function ie(e){const{hasErrors:t,onClick:n,errors:s,...a}=e;return o.a.createElement("div",{className:re.container,onClick:n},o.a.createElement(G.a,{...a,className:re.date,hasErrors:t,errors:[],endSlot:!t&&o.a.createElement(Y.b,{icon:!0,interactive:!1},o.a.createElement(z.a,{icon:ae,className:re.icon}))}),t&&o.a.createElement(oe,{text:Object(O.t)("Please enter the right date"),className:re.tooltip}))}const ce=o.a.createContext({isActive:!1,isFocused:!1});function le(e){const{value:t,reference:n,isActive:a,onPick:r,onFocus:i}=e,[c,l]=Object(s.useState)(!1);return o.a.createElement(ce.Provider,{value:{isActive:a,isFocused:c}},o.a.createElement("div",{onFocus:function(){l(!0),i&&i()},onBlur:function(){l(!1)}},o.a.createElement(ne,{initial:t,inputReference:n,InputComponent:ue,withCalendar:!1,onPick:function(e){if(!e)return;r(new Date(e))},revertInvalidData:!0,name:e.name})))}function ue(e){const{isActive:t,isFocused:n}=Object(s.useContext)(ce);return o.a.createElement(ie,{...e,highlight:t||n})}var de=n("qZIh");function he(e){const{value:t,isDisabled:n,onPick:s}=e;return o.a.createElement(de.a,{value:(a=t,l(a.getHours())+":"+l(a.getMinutes())),onChange:s,disabled:n});var a}var pe=n("vx8J");function me(e){return o.a.createElement(V,{...e,className:pe.calendar,popupStyle:!1})}function fe(e,t){const n=new Date(t);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),n}function be(e,t){const n=new Date(t);return n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n}function ve(e){const{dateOnly:t,onCalendarMonthSwitch:n}=e,{date:a,setDate:r}=Object(i.ensureNotNull)(Object(s.useContext)(_)),c=Object(s.useRef)(null),l=Object(s.useRef)(null);return Object(s.useEffect)(()=>{_e||null===l.current||l.current.focus()},[]),o.a.createElement("div",{ref:c,tabIndex:-1},o.a.createElement(M,null,o.a.createElement(le,{reference:function(e){l.current=e},value:new Date(a),onPick:function(e){const t=fe(e,a);r(t)},isActive:!_e}),o.a.createElement(he,{value:new Date(a),isDisabled:t,onPick:function(e){var t;const[n,s]=e.split(":"),o=new Date;o.setHours(Number(n)),o.setMinutes(Number(s));const i=be(o,a);r(i),_e||null===(t=c.current)||void 0===t||t.focus({preventScroll:!0})}})),!_e&&o.a.createElement(me,{key:`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`,selectedDate:new Date(a),onSelect:function(e){var t;const n=fe(e,a);r(n),null===(t=c.current)||void 0===t||t.focus({preventScroll:!0})},onMonthSwitch:n,maxDate:new Date}))}function ge(e){const{dateOnly:t,onCalendarMonthSwitch:n,onDateInputFocus:a}=e,{dateFrom:r,dateTo:c,setDateFrom:l,setDateTo:u}=Object(i.ensureNotNull)(Object(s.useContext)(N)),[d,h]=Object(s.useState)("from"),p=Object(s.useRef)(null),m=Object(s.useRef)(null),f=Object(s.useRef)(null),b=Object(s.useMemo)(()=>"from"===d?new Date(r):new Date(c),[d,c,r]);return Object(s.useEffect)(()=>{_e||null===m.current||m.current.focus()},[]),o.a.createElement("div",{ref:p,tabIndex:-1
12
- },o.a.createElement(M,null,o.a.createElement(le,{value:r,reference:function(e){m.current=e},isActive:!_e&&"from"===d,onPick:function(e){const t=fe(e,r);l(t)},onFocus:function(){h("from"),a()},name:"start-date-range"}),o.a.createElement(he,{value:r,isDisabled:t,onPick:function(e){v(e,r,l)}})),o.a.createElement(M,null,o.a.createElement(le,{value:c,reference:function(e){f.current=e},isActive:!_e&&"to"===d,onPick:function(e){const t=fe(e,c);u(t)},onFocus:function(){h("to"),a()},name:"end-date-range"}),o.a.createElement(he,{value:c,isDisabled:t,onPick:function(e){v(e,c,u)}})),!_e&&o.a.createElement(me,{key:`${b.getFullYear()}-${b.getMonth()}-${b.getDate()}`,selectedDate:new Date(b),onSelect:function(e){const t=fe(e,"from"===d?r:c);({from:()=>{var e;l(t),null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})},to:()=>{var e;u(t),null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})}})[d]()},onMonthSwitch:n,highlightedFrom:new Date(r),highlightedTo:new Date(c),maxDate:"from"===d?new Date(c):void 0,minDate:"to"===d?new Date(r):void 0}));function v(e,t,n){var s;const[o,a]=e.split(":"),r=new Date;r.setHours(Number(o)),r.setMinutes(Number(a));n(be(r,t)),_e||null===(s=p.current)||void 0===s||s.focus({preventScroll:!0})}}var we=n("aDg1"),Ce=n("/KDZ"),De=n("FT3R");const _e=A.mobiletouch,Ee=()=>!0,Ne={byId:{Date:{title:Object(O.t)("Date")},CustomRange:{title:Object(O.t)("Custom range")}},allIds:["Date","CustomRange"]};function Se(e){const{dateOnly:t,onClose:n,onGoToDate:a,onGoToRange:r}=e,c=Object(s.useRef)(null),[l,u]=Object(s.useState)(j.a.getValue("GoToDialog.activeTab","Date")),[d,h]=Object(s.useState)(0),{date:p,isValid:m}=Object(i.ensureNotNull)(Object(s.useContext)(_)),{dateFrom:f,dateTo:b,isValid:v}=Object(i.ensureNotNull)(Object(s.useContext)(N));return Object(s.useEffect)(()=>(x.subscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,D,null),()=>{x.unsubscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,D,null)}),[n]),Object(s.useEffect)(()=>{null!==c.current&&c.current()},[d,l,p,f,b]),o.a.createElement(Ce.a,{rule:P.a.TabletSmall},e=>o.a.createElement(F.a,{className:k()(De.dialogWrapper,e&&De.dialogWrapperSmall),title:Object(O.t)("Go to"),dataName:"go-to-date-dialog",render:g,defaultActionOnClose:"cancel",onClose:D,onClickOutside:D,onCancel:D,onSubmit:C,submitButtonDisabled:w(),submitButtonText:Object(O.t)("Go to"),forceCloseOnEsc:Ee,shouldForceFocus:!1,fullScreen:e,isOpened:!0}));function g({requestResize:e}){return c.current=e,o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:De.tabs},o.a.createElement(we.a,{activeTabId:l,tabs:Ne,onSelect:E})),o.a.createElement("div",{className:k()(De.content,_e&&De.contentMobile)},o.a.createElement("div",{className:De.bodyWrapper},o.a.createElement(Oe,{onCalendarMonthSwitch:S,onDateInputFocus:S,activeTab:l,dateOnly:t}))))}function w(){return{CustomRange:!v,Date:!m}[l]}function C(){switch(l){case"Date":a(p);break;case"CustomRange":r(f,b)}}function D(){n()}function E(e){u(e),j.a.setValue("GoToDialog.activeTab",e)}function S(){h(d+1)}}function Oe(e){
13
- const{activeTab:t,dateOnly:n,onCalendarMonthSwitch:s,onDateInputFocus:a}=e;switch(t){case"Date":return o.a.createElement(ve,{dateOnly:n,onCalendarMonthSwitch:s});case"CustomRange":return o.a.createElement(ge,{dateOnly:n,onCalendarMonthSwitch:s,onDateInputFocus:a})}}function ye(e){const{dateOnly:t,onClose:n,onGoToDate:s,onGoToRange:a,initialGoToDate:r,initialRanges:i}=e;return o.a.createElement(E,{initialGoToDate:r},o.a.createElement(S,{initialRanges:i},o.a.createElement(Se,{dateOnly:t,onClose:n,onGoToDate:s,onGoToRange:a})))}var ke=n("pPtI"),xe=n("k9/m");const Ie=new class{constructor(){this._hasError=!1}getItemOrDefault(e,t){return!sessionStorage||this._hasError?t:sessionStorage.getItem(e)}setItem(e,t="true"){try{sessionStorage.setItem(e,t),this._hasError=!1}catch(e){this._hasError=!0}}};n.d(t,"showGoToDateDialog",(function(){return Te}));const je=new w.a;function Te(e){if(je.isOpened("goTo"))return;if(!e.hasModel())return;const t=e.model(),n=document.createElement("div"),s=o.a.createElement(ye,{onClose:a,dateOnly:t.model().mainSeries().isDWM(),initialGoToDate:Pe(),initialRanges:Fe(e),onGoToDate:e=>{!function(e,t){Ie.setItem("goToDateTabLastPickedDate",String(t.valueOf()));if(void 0===e.model().timeScale().tickMarks().minIndex)return;const n=g(t).valueOf();e.model().gotoTime(n).then(t=>{const n=e.model().mainSeries();void 0===t?n.clearGotoDateResult():n.setGotoDateResult(t)})}(t,e),a()},onGoToRange:(t,n)=>{!function(e,t,n){const s=function(e){const t=e.timezone();if("exchange"!==t)return t;const n=e.mainSeries().symbolInfo();return null==n?void 0:n.timezone}(e.model().model());if(!s)return;const o=c.linking.interval.value(),a=o&&Object(ke.normalizeIntervalString)(o),r=D.a.get_timezone(s),i=e=>Object(C.cal_to_utc)(r,new Date(e)),l=g(t).valueOf(),u=g(n).valueOf(),d={val:{type:"time-range",from:i(l)/1e3,to:i(u)/1e3},res:a};e.chartWidgetCollection().setTimeFrame(d)}(e,t,n),a()}});function a(){r.a.unmountComponentAtNode(n),je.setAsClosed("goTo")}r.a.render(s,n),je.setAsOpened("goTo")}function Pe(){const e=Ie.getItemOrDefault("goToDateTabLastPickedDate",null);return null===e?u(new Date):new Date(Number(e))}function Fe(e){const t=function(e){const t=e.model().timeScale(),n=t.visibleBarsStrictRange();if(null===n)return;const s=e.model().mainSeries(),o=s.nearestIndex(n.firstBar(),xe.PlotRowSearchMode.NearestRight),a=s.nearestIndex(n.lastBar(),xe.PlotRowSearchMode.NearestLeft);if(void 0===o||void 0===a)return;return{from:Object(i.ensureNotNull)(t.indexToUserTime(o)),to:Object(i.ensureNotNull)(t.indexToUserTime(a))}}(e);return t?{from:v(t.from),to:v(t.to)}:{from:v(new Date),to:v(new Date)}}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n("ASyk");const o={SmallHeight:s["small-height-breakpoint"],TabletSmall:s["tablet-small-breakpoint"],TabletNormal:s["tablet-normal-breakpoint"]}},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",
14
- shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},vx8J:function(e,t,n){e.exports={calendar:"calendar-1NjzAl_S"}},ycFu:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var s=n("q1tI"),o=n.n(s),a=n("TSYQ"),r=n.n(a),i=n("mwqF"),c=n("Eyy1"),l=(n("YFKU"),n("/3z9")),u=n("g89m"),d=n("8NUT");class h extends o.a.PureComponent{constructor(){super(...arguments),this._dialogRef=o.a.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:s}=this.props;switch(e){case"submit":t();break;case"cancel":n()}s()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:s}=this.props;switch(Object(l.hashFromEvent)(e)){case 13:!n&&s&&(e.preventDefault(),t())}}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:s,footerLeftRenderer:a,submitButtonText:r,submitButtonDisabled:i,defaultActionOnClose:c,submitOnEnterKey:l,...d}=this.props;return o.a.createElement(u.a,{...d,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){Object(c.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:s,submitButtonText:a,submitButtonDisabled:c,onSubmit:l,cancelButtonText:u,showCancelButton:h=!0,submitButtonClassName:p,cancelButtonClassName:m,buttonsWrapperClassName:f}=this.props;return o.a.createElement(o.a.Fragment,null,t(e),o.a.createElement("div",{className:d.footer},n&&n(e.isSmallWidth),o.a.createElement("div",{className:r()(d.buttons,f)},s,h&&o.a.createElement(i.a,{className:m,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=u?u:window.t("Cancel")),o.a.createElement("span",{className:d.submitButton},o.a.createElement(i.a,{className:p,disabled:c,name:"submit",onClick:l,"data-name":"submit-button"},null!=a?a:window.t("Ok"))))))}}}h.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},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>'}}]);