binbot-charts 0.0.1 → 0.0.4
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.
- package/README.md +5 -7
- package/babel.config.json +18 -0
- package/dist/TVChartContainer.js +85 -0
- package/dist/ar-tv-chart.f0bc1e45.html +1 -0
- package/dist/bundles/0.d46f0b5e9380d7893de5.js +334 -0
- package/dist/bundles/0579d40b812fa2c3ffe72e5803a6e14c.cur +0 -0
- package/{public/put-charting-library-here → dist/bundles/1.92647ec0a7beb8b2898d.css} +0 -0
- package/{public/put-datafeeds-here → dist/bundles/1.92647ec0a7beb8b2898d.rtl.css} +0 -0
- package/dist/bundles/1.f02c87d35fbc8ffcaedb.js +3 -0
- package/dist/bundles/10.21e665b7935d5bc4ba64.js +807 -0
- package/dist/bundles/11.8b65dc2e0d8b6e5041c4.css +1 -0
- package/dist/bundles/11.8b65dc2e0d8b6e5041c4.rtl.css +1 -0
- package/dist/bundles/11.df012db70159a159d927.js +3 -0
- package/dist/bundles/12.37750b21f6d8d35c6e6e.js +3 -0
- package/dist/bundles/12.ef8057448f3a7ae1c3d8.css +1 -0
- package/dist/bundles/12.ef8057448f3a7ae1c3d8.rtl.css +1 -0
- package/dist/bundles/13.699469c73d09b7add56d.js +3 -0
- package/dist/bundles/13.9240f13280154f2593b7.css +1 -0
- package/dist/bundles/13.9240f13280154f2593b7.rtl.css +1 -0
- package/dist/bundles/14.8095b40dd1e7deedf401.css +1 -0
- package/dist/bundles/14.8095b40dd1e7deedf401.rtl.css +1 -0
- package/dist/bundles/14.d1148b38d59df9ca5061.js +3 -0
- package/dist/bundles/15.44f2acca80348a1da1a6.js +526 -0
- package/dist/bundles/16.680572949c1125757d35.js +3 -0
- package/dist/bundles/16.d567c9db608f3d98d8de.css +1 -0
- package/dist/bundles/16.d567c9db608f3d98d8de.rtl.css +1 -0
- package/dist/bundles/17.404a01f527881dfff424.js +3 -0
- package/dist/bundles/17.ec35a19db935279c5b42.css +1 -0
- package/dist/bundles/17.ec35a19db935279c5b42.rtl.css +1 -0
- package/dist/bundles/18.78de69cfba051874e071.js +569 -0
- package/dist/bundles/19.048f7f5d36fef428ca8d.js +3 -0
- package/dist/bundles/19.75c30426f9d3ad5ca0c5.css +1 -0
- package/dist/bundles/19.75c30426f9d3ad5ca0c5.rtl.css +1 -0
- package/dist/bundles/1df47f578aeef40dd1f2328338a133be.png +0 -0
- package/dist/bundles/2.60931787a6734697ac13.js +507 -0
- package/dist/bundles/20.bc09ed47c5a62e1bc5c2.js +540 -0
- package/dist/bundles/21.4c7b5cccb67a95e7e782.js +3 -0
- package/dist/bundles/21.8153544955cdc47262e3.css +1 -0
- package/dist/bundles/21.8153544955cdc47262e3.rtl.css +1 -0
- package/dist/bundles/22.ca4300bcf614d8d5f4ab.js +3 -0
- package/dist/bundles/22.da9773799a06c6066d1e.css +1 -0
- package/dist/bundles/22.da9773799a06c6066d1e.rtl.css +1 -0
- package/dist/bundles/23.256ba98e6a03200bdeba.js +3 -0
- package/dist/bundles/23.ee754f50171546186397.css +1 -0
- package/dist/bundles/23.ee754f50171546186397.rtl.css +1 -0
- package/dist/bundles/24.bc4fafedb1730259aa10.js +3 -0
- package/dist/bundles/24.e70c1623e0c74477ef2e.css +1 -0
- package/dist/bundles/24.e70c1623e0c74477ef2e.rtl.css +1 -0
- package/dist/bundles/25.7416db26ed3dcc87c05a.js +2731 -0
- package/dist/bundles/26.3aeec391d4e6e19989ee.js +3 -0
- package/dist/bundles/26.69139a843bc1c84f790b.css +1 -0
- package/dist/bundles/26.69139a843bc1c84f790b.rtl.css +1 -0
- package/dist/bundles/27.e3ec08b1fb9df5f36ada.js +477 -0
- package/dist/bundles/28.3140e8cb507ad2593c76.css +1 -0
- package/dist/bundles/28.3140e8cb507ad2593c76.rtl.css +1 -0
- package/dist/bundles/28.9f103042c27ea2df422f.js +3 -0
- package/dist/bundles/29.07af6dca962ea27209f0.css +1 -0
- package/dist/bundles/29.07af6dca962ea27209f0.rtl.css +1 -0
- package/dist/bundles/29.3df8712b85d45a626aa0.js +3 -0
- package/dist/bundles/3.76c398b01b707e5b251c.js +3 -0
- package/dist/bundles/3.eeb90413029441681f91.css +1 -0
- package/dist/bundles/3.eeb90413029441681f91.rtl.css +1 -0
- package/dist/bundles/30.0b732ccb122d160480b6.js +1244 -0
- package/dist/bundles/31.8d2b7a538755fd1bb760.js +935 -0
- package/dist/bundles/32.13ce02217cf8f9dd6d90.js +636 -0
- package/dist/bundles/3293616ec0c605c7c2db25829a0a509e.woff +0 -0
- package/dist/bundles/33.02ed7df481ae8243d2f2.css +1 -0
- package/dist/bundles/33.02ed7df481ae8243d2f2.rtl.css +1 -0
- package/dist/bundles/33.4d0dd1f7001fc02099bb.js +3 -0
- package/dist/bundles/34.4b6099931f57311efc1a.css +1 -0
- package/dist/bundles/34.4b6099931f57311efc1a.rtl.css +1 -0
- package/dist/bundles/34.c9baa59add71a1e48fd2.js +3 -0
- package/dist/bundles/35.999f0e072062b7369a1a.css +1 -0
- package/dist/bundles/35.999f0e072062b7369a1a.rtl.css +1 -0
- package/dist/bundles/35.ed9e360f9686ad3a9497.js +3 -0
- package/dist/bundles/36.1882d1a8d312a0e193e9.js +3 -0
- package/dist/bundles/36.f315a19c17d5636af8f7.css +1 -0
- package/dist/bundles/36.f315a19c17d5636af8f7.rtl.css +1 -0
- package/dist/bundles/37.90129e4904155350d6a1.js +1288 -0
- package/dist/bundles/38.41f3d509b61c8af47de3.js +502 -0
- package/dist/bundles/39.74a7bc3b464cd284827f.css +1 -0
- package/dist/bundles/39.74a7bc3b464cd284827f.rtl.css +1 -0
- package/dist/bundles/39.bc1e9ce938fd5152831f.js +3 -0
- package/dist/bundles/4.92647ec0a7beb8b2898d.css +0 -0
- package/dist/bundles/4.92647ec0a7beb8b2898d.rtl.css +0 -0
- package/dist/bundles/4.c7430b8d89cddcf51345.js +3 -0
- package/dist/bundles/40.b59f41ba4cacbfb8acc3.js +255 -0
- package/dist/bundles/40566afd832a155e5e370a8bd423de4b.svg +1 -0
- package/dist/bundles/40f9a03d174178efb12303caa9bc7cd8.woff2 +0 -0
- package/dist/bundles/41.8fa0fb0bd4ad0241ef2f.css +1 -0
- package/dist/bundles/41.8fa0fb0bd4ad0241ef2f.rtl.css +1 -0
- package/dist/bundles/41.a19b0ae5d68f855d2753.js +3 -0
- package/dist/bundles/42.494986b0981f6d116fef.js +3 -0
- package/dist/bundles/42.9078fb8f1629e3eee9bd.css +1 -0
- package/dist/bundles/42.9078fb8f1629e3eee9bd.rtl.css +1 -0
- package/dist/bundles/43.619c5ed4a592cc2965a4.js +3 -0
- package/dist/bundles/43.8bf90585004742c338c5.css +1 -0
- package/dist/bundles/43.8bf90585004742c338c5.rtl.css +1 -0
- package/dist/bundles/44.0a7df307e4f397763ce8.js +3474 -0
- package/dist/bundles/45.12a19785e3864bd62a76.css +1 -0
- package/dist/bundles/45.12a19785e3864bd62a76.rtl.css +1 -0
- package/dist/bundles/45.db9dbd3e9bfeca5333da.js +3 -0
- package/dist/bundles/46.f1d4cfe6d6f830b4a011.js +495 -0
- package/dist/bundles/47.a3da3f774c90bd22798e.js +555 -0
- package/dist/bundles/48.a3fdb9dd54af71b3bda6.css +1 -0
- package/dist/bundles/48.a3fdb9dd54af71b3bda6.rtl.css +1 -0
- package/dist/bundles/48.a93f9cb8b1bcc0e0f21e.js +3 -0
- package/dist/bundles/49.bacd609f7eb77a4a4b68.js +3 -0
- package/dist/bundles/49.d723843c9192493b8c13.css +1 -0
- package/dist/bundles/49.d723843c9192493b8c13.rtl.css +1 -0
- package/dist/bundles/4a9abefd31dab7c8239e02e925aacd78.png +0 -0
- package/dist/bundles/4fafff07d8914dc11f6d335f606ff47c.png +0 -0
- package/dist/bundles/5.5e97b270ab80d99e9085.js +335 -0
- package/dist/bundles/50.8d5cba5b90176d3d2e3d.css +1 -0
- package/dist/bundles/50.8d5cba5b90176d3d2e3d.rtl.css +1 -0
- package/dist/bundles/50.b282667dddcb7fe1569a.js +3 -0
- package/dist/bundles/51.11871c50951db825ace3.js +3 -0
- package/dist/bundles/51.300c3df03ca063ec03a0.css +1 -0
- package/dist/bundles/51.300c3df03ca063ec03a0.rtl.css +1 -0
- package/dist/bundles/52.0379a85baae3ab43b15c.js +3 -0
- package/dist/bundles/52.29cec22b3525b47af67e.css +1 -0
- package/dist/bundles/52.29cec22b3525b47af67e.rtl.css +1 -0
- package/dist/bundles/53.1d3ec98cfb8e19affb1c.js +808 -0
- package/dist/bundles/54.bb5888ae55ea0a253a5b.js +1083 -0
- package/dist/bundles/55.3c35a629db21ab961f11.js +1733 -0
- package/dist/bundles/56.b3e69145c0fee614443d.js +723 -0
- package/dist/bundles/57.236996ec416da4c1f683.js +473 -0
- package/dist/bundles/58.7ffac4ba908b95705e63.js +410 -0
- package/dist/bundles/59.397cb6699b74d64072a8.js +3 -0
- package/dist/bundles/59.418f1db161eefae63284.css +1 -0
- package/dist/bundles/59.418f1db161eefae63284.rtl.css +1 -0
- package/dist/bundles/6.2221bb6a5d920bbb4bb2.css +1 -0
- package/dist/bundles/6.2221bb6a5d920bbb4bb2.rtl.css +1 -0
- package/dist/bundles/6.2d67b0ae77825dbd455d.js +3 -0
- package/dist/bundles/60.6b5eced2ef8fa856be88.js +3 -0
- package/dist/bundles/60.d4583c71cca790a25900.css +1 -0
- package/dist/bundles/60.d4583c71cca790a25900.rtl.css +1 -0
- package/dist/bundles/61.38a3040c925fadff7b64.js +743 -0
- package/dist/bundles/62.63b309f5f8da9ca013b8.js +309 -0
- package/dist/bundles/63.8255c7f5191bcafcee7c.js +3 -0
- package/dist/bundles/63.898a61bf08239711dc74.css +1 -0
- package/dist/bundles/63.898a61bf08239711dc74.rtl.css +1 -0
- package/dist/bundles/64.6f232bdb0fb4cdcc2d7d.css +1 -0
- package/dist/bundles/64.6f232bdb0fb4cdcc2d7d.rtl.css +1 -0
- package/dist/bundles/64.ec4b4d03b28c77658dde.js +3 -0
- package/dist/bundles/65.556980fc277562af83c8.css +1 -0
- package/dist/bundles/65.556980fc277562af83c8.rtl.css +1 -0
- package/dist/bundles/65.f895a78b4e04257983ff.js +3 -0
- package/dist/bundles/66.2979e9b7c35e7bf03a37.js +3 -0
- package/dist/bundles/66.84b4001b5c622a569dde.css +1 -0
- package/dist/bundles/66.84b4001b5c622a569dde.rtl.css +1 -0
- package/dist/bundles/67.19c83a0c303c290216d2.css +1 -0
- package/dist/bundles/67.19c83a0c303c290216d2.rtl.css +1 -0
- package/dist/bundles/67.25fd4b78c8c514988aeb.js +3 -0
- package/dist/bundles/68.8b4124c875484d11fd94.js +3 -0
- package/dist/bundles/68.fa7424ae9c5fe5483aac.css +1 -0
- package/dist/bundles/68.fa7424ae9c5fe5483aac.rtl.css +1 -0
- package/dist/bundles/69.094b4a764d3dc17820cf.css +1 -0
- package/dist/bundles/69.094b4a764d3dc17820cf.rtl.css +1 -0
- package/dist/bundles/69.43756a5c7477730eb0c4.js +3 -0
- package/dist/bundles/7.2c7c4f8a49c6380227de.js +315 -0
- package/dist/bundles/70.c27146ec029eda556108.css +1 -0
- package/dist/bundles/70.c27146ec029eda556108.rtl.css +1 -0
- package/dist/bundles/70.cb9d1bb5a00896c1bb97.js +3 -0
- package/dist/bundles/71.15e639d294c4209f256e.css +1 -0
- package/dist/bundles/71.15e639d294c4209f256e.rtl.css +1 -0
- package/dist/bundles/71.6a9d0842f5e48f68399c.js +3 -0
- package/dist/bundles/72.07441fd67b864b86147b.css +1 -0
- package/dist/bundles/72.07441fd67b864b86147b.rtl.css +1 -0
- package/dist/bundles/72.e3925aaf38d2c8997638.js +3 -0
- package/dist/bundles/73.6b8b9e5e2c8e2b753cb8.css +1 -0
- package/dist/bundles/73.6b8b9e5e2c8e2b753cb8.rtl.css +1 -0
- package/dist/bundles/73.8ca1a096c5bdc2e5fb8a.js +3 -0
- package/dist/bundles/7393f661fc7d4389ea6d4dabd2a5aeea.png +0 -0
- package/dist/bundles/74.34dcc0d3cd1bbfa5e951.js +3 -0
- package/dist/bundles/74.8c591c252b2e7ad8f744.css +1 -0
- package/dist/bundles/74.8c591c252b2e7ad8f744.rtl.css +1 -0
- package/dist/bundles/75.1c9a3a6524248ddf88bf.js +3 -0
- package/dist/bundles/75.fefbc386c59bf7d4f9f7.css +1 -0
- package/dist/bundles/75.fefbc386c59bf7d4f9f7.rtl.css +1 -0
- package/dist/bundles/76.5d20bed213399f326603.js +3 -0
- package/dist/bundles/76.f14d71a31295d8cd8d8b.css +1 -0
- package/dist/bundles/76.f14d71a31295d8cd8d8b.rtl.css +1 -0
- package/dist/bundles/77.3e4ccccc7d3eb03c488f.js +3 -0
- package/dist/bundles/77.9c35f7046b848fbfd7f5.css +1 -0
- package/dist/bundles/77.9c35f7046b848fbfd7f5.rtl.css +1 -0
- package/dist/bundles/78.0d502ab4d94441708606.css +1 -0
- package/dist/bundles/78.0d502ab4d94441708606.rtl.css +1 -0
- package/dist/bundles/78.1d1d47a915b06f1496fb.js +3 -0
- package/dist/bundles/79.86e92b77f8cf32e6bc37.js +3 -0
- package/dist/bundles/79.b990749a4839f9123f26.css +1 -0
- package/dist/bundles/79.b990749a4839f9123f26.rtl.css +1 -0
- package/dist/bundles/7e0cc5f7d7f5151500dd60b8d6ca60a1.png +0 -0
- package/dist/bundles/8.e66ab8f27911a033604f.css +1 -0
- package/dist/bundles/8.e66ab8f27911a033604f.rtl.css +1 -0
- package/dist/bundles/8.ffab20b86db484062268.js +3 -0
- package/dist/bundles/80.5bdd53d5fc42d40eee28.css +1 -0
- package/dist/bundles/80.5bdd53d5fc42d40eee28.rtl.css +1 -0
- package/dist/bundles/80.b5bc6acec3b531a510a9.js +3 -0
- package/dist/bundles/81.552e046aa828739c508b.css +1 -0
- package/dist/bundles/81.552e046aa828739c508b.rtl.css +1 -0
- package/dist/bundles/81.e6a1f76017a44b03480b.js +3 -0
- package/dist/bundles/82.8c2919e6c8f54e36e9e6.js +3 -0
- package/dist/bundles/82.e06fe84c8cdead4bd52e.css +1 -0
- package/dist/bundles/82.e06fe84c8cdead4bd52e.rtl.css +1 -0
- package/dist/bundles/83.e238aa056c5d4827cbdd.css +1 -0
- package/dist/bundles/83.e238aa056c5d4827cbdd.rtl.css +1 -0
- package/dist/bundles/83.f3e53bb5a5940e084955.js +3 -0
- package/dist/bundles/84.8acc496b4deeeeefb5af.js +3 -0
- package/dist/bundles/84.bb4fc57627c8626019fd.css +1 -0
- package/dist/bundles/84.bb4fc57627c8626019fd.rtl.css +1 -0
- package/dist/bundles/85.39c78fbeaabae306f343.js +3 -0
- package/dist/bundles/85.e0ba32bafcab02208901.css +1 -0
- package/dist/bundles/85.e0ba32bafcab02208901.rtl.css +1 -0
- package/dist/bundles/86.4bbbb9e6262243419986.js +3 -0
- package/dist/bundles/86.9244fc2bcc2370425a15.css +1 -0
- package/dist/bundles/86.9244fc2bcc2370425a15.rtl.css +1 -0
- package/dist/bundles/87.605cbc508223ec27341c.css +1 -0
- package/dist/bundles/87.605cbc508223ec27341c.rtl.css +1 -0
- package/dist/bundles/87.cf03fa0a76bfcadd157d.js +3 -0
- package/dist/bundles/88.158dd8a18e176936a343.css +1 -0
- package/dist/bundles/88.158dd8a18e176936a343.rtl.css +1 -0
- package/dist/bundles/88.d1e3aec63ece25f6b8a9.js +3 -0
- package/dist/bundles/89.5f142643917701de773b.css +1 -0
- package/dist/bundles/89.5f142643917701de773b.rtl.css +1 -0
- package/dist/bundles/89.d8aa43b4b9378722d572.js +3 -0
- package/dist/bundles/898929f1acdb622689e0fc0c95c8fcd0.png +0 -0
- package/dist/bundles/9.84ecbc930e51cb26d06a.js +3 -0
- package/dist/bundles/9.8ab09f93a5113a634119.css +1 -0
- package/dist/bundles/9.8ab09f93a5113a634119.rtl.css +1 -0
- package/dist/bundles/90.877114560c4828a97702.css +1 -0
- package/dist/bundles/90.877114560c4828a97702.rtl.css +1 -0
- package/dist/bundles/90.ce47bb68fc3fc88b5590.js +3 -0
- package/dist/bundles/91.2142b248a2bb29549a99.css +1 -0
- package/dist/bundles/91.2142b248a2bb29549a99.rtl.css +1 -0
- package/dist/bundles/91.a9b79ef7ba0a62311a53.js +3 -0
- package/dist/bundles/92.76d5ca7ebec10a1a7a12.js +3 -0
- package/dist/bundles/92.e46f0aa06bcdbddf3831.css +1 -0
- package/dist/bundles/92.e46f0aa06bcdbddf3831.rtl.css +1 -0
- package/dist/bundles/93.17d34ca77a7fc85a24d9.css +1 -0
- package/dist/bundles/93.17d34ca77a7fc85a24d9.rtl.css +1 -0
- package/dist/bundles/93.6de56ef1975f4a31e542.js +3 -0
- package/dist/bundles/94.231bea5fb12b806ef287.js +3 -0
- package/dist/bundles/94.b204218cb73b576333a1.css +1 -0
- package/dist/bundles/94.b204218cb73b576333a1.rtl.css +1 -0
- package/dist/bundles/95.51244d1c4baf49d08807.css +1 -0
- package/dist/bundles/95.51244d1c4baf49d08807.rtl.css +1 -0
- package/dist/bundles/95.6f7da80aac5cf2bf77d6.js +3 -0
- package/dist/bundles/96.43bb935eee30715afff7.js +3 -0
- package/dist/bundles/96.be9ad3d6a7c91501bb55.css +1 -0
- package/dist/bundles/96.be9ad3d6a7c91501bb55.rtl.css +1 -0
- package/dist/bundles/a6506134daec7169f68f563f084a9d41.svg +1 -0
- package/dist/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +1285 -0
- package/dist/bundles/b1a63a011fd92dfb93db6db243bb036c.woff2 +0 -0
- package/dist/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +260 -0
- package/dist/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +2205 -0
- package/dist/bundles/chart-event-hint.94e94e93f9fdee936b66.js +367 -0
- package/dist/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +228 -0
- package/dist/bundles/chart-widget-gui.226991e9f53aba124fc2.js +4265 -0
- package/dist/bundles/compare-model.0e6bbdc5f5942c9a716e.js +667 -0
- package/dist/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +432 -0
- package/dist/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +724 -0
- package/dist/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +440 -0
- package/dist/bundles/drawing-toolbar.8cc497633535648562e7.js +1814 -0
- package/dist/bundles/ed68e83c16f77203e73dbc4c3a7c7fa1.cur +0 -0
- package/dist/bundles/export-data.c819cfa996e2815ff11d.js +238 -0
- package/dist/bundles/f55394b616ed1ae9462c37daab941d93.png +0 -0
- package/dist/bundles/floating-toolbars.d78a058b82ab09013aac.js +2373 -0
- package/dist/bundles/full-tooltips-popup.96fc751e06523b742440.js +423 -0
- package/dist/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +656 -0
- package/dist/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +604 -0
- package/dist/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +2313 -0
- package/dist/bundles/hammerjs.e5489031ed611f47bf09.js +993 -0
- package/dist/bundles/header-toolbar.4bff61e047f9b8379494.js +1293 -0
- package/dist/bundles/library.579e6e3fd95b660ad833.css +1 -0
- package/dist/bundles/library.579e6e3fd95b660ad833.rtl.css +1 -0
- package/dist/bundles/library.8b0dd8732414a2bcbcb1.js +1 -0
- package/dist/bundles/line-tools-icons.090f39d92664af3915a5.js +349 -0
- package/dist/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +683 -0
- package/dist/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +573 -0
- package/dist/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +11748 -0
- package/dist/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +3491 -0
- package/dist/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +81 -0
- package/dist/bundles/moment.78e587a83a009ca48cda.js +2059 -0
- package/dist/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +305 -0
- package/dist/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +2953 -0
- package/dist/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +7693 -0
- package/dist/bundles/react.9f2899b40ad0e104f6c9.js +7156 -0
- package/dist/bundles/redux.43c3f6d214bcf2d1fbd1.js +1691 -0
- package/dist/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +3692 -0
- package/dist/bundles/runtime.dfe30490f666a6b5d4fe.js +654 -0
- package/dist/bundles/series-icons-map.ec8043f64d8b06dbce29.js +53 -0
- package/dist/bundles/series-pane-views.eefe35e1c508ac16c102.js +113 -0
- package/dist/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +44 -0
- package/dist/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +60 -0
- package/dist/bundles/simple-dialog.bd79f02afd512f0f36dd.js +919 -0
- package/dist/bundles/source-properties-editor.e858d44541ebb6f974a2.js +265 -0
- package/dist/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +1030 -0
- package/dist/bundles/study-pane-views.9a873dcf74adedf7600b.js +682 -0
- package/dist/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +502 -0
- package/dist/bundles/study-template-dialog.fe56a9893a3695e93531.js +1598 -0
- package/dist/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +642 -0
- package/dist/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +112 -0
- package/dist/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +153 -0
- package/dist/bundles/vendors.6f5e0d8d267cb3e63ee0.js +5316 -0
- package/dist/charting_library.cjs.js +499 -0
- package/dist/charting_library.d.ts +2087 -0
- package/dist/charting_library.esm.js +503 -0
- package/dist/charting_library.js +506 -0
- package/dist/charting_library.standalone.js +500 -0
- package/dist/cs-tv-chart.f0bc1e45.html +1 -0
- package/dist/da_DK-tv-chart.f0bc1e45.html +1 -0
- package/dist/datafeed-api.d.ts +274 -0
- package/dist/de-tv-chart.f0bc1e45.html +1 -0
- package/dist/el-tv-chart.f0bc1e45.html +1 -0
- package/dist/en-tv-chart.f0bc1e45.html +1 -0
- package/dist/es-tv-chart.f0bc1e45.html +1 -0
- package/dist/et_EE-tv-chart.f0bc1e45.html +1 -0
- package/dist/fa-tv-chart.f0bc1e45.html +1 -0
- package/dist/fr-tv-chart.f0bc1e45.html +1 -0
- package/dist/he_IL-tv-chart.f0bc1e45.html +1 -0
- package/dist/hu_HU-tv-chart.f0bc1e45.html +1 -0
- package/dist/id_ID-tv-chart.f0bc1e45.html +1 -0
- package/dist/it-tv-chart.f0bc1e45.html +1 -0
- package/dist/ja-tv-chart.f0bc1e45.html +1 -0
- package/dist/ko-tv-chart.f0bc1e45.html +1 -0
- package/dist/ms_MY-tv-chart.f0bc1e45.html +1 -0
- package/dist/nl_NL-tv-chart.f0bc1e45.html +1 -0
- package/dist/no-tv-chart.f0bc1e45.html +1 -0
- package/dist/package.json +8 -0
- package/dist/pl-tv-chart.f0bc1e45.html +1 -0
- package/dist/pt-tv-chart.f0bc1e45.html +1 -0
- package/dist/ro-tv-chart.f0bc1e45.html +1 -0
- package/dist/ru-tv-chart.f0bc1e45.html +1 -0
- package/dist/sk_SK-tv-chart.f0bc1e45.html +1 -0
- package/dist/sv-tv-chart.f0bc1e45.html +1 -0
- package/dist/th-tv-chart.f0bc1e45.html +1 -0
- package/dist/tr-tv-chart.f0bc1e45.html +1 -0
- package/dist/vi-tv-chart.f0bc1e45.html +1 -0
- package/dist/zh-tv-chart.f0bc1e45.html +1 -0
- package/dist/zh_TW-tv-chart.f0bc1e45.html +1 -0
- package/package.json +10 -6
- package/src/App.jsx +2 -2
- package/src/components/TVChartContainer.jsx +17 -30
- package/src/components/datafeed.js +201 -0
- package/src/components/helpers.js +32 -0
- package/src/components/streaming.js +136 -0
- package/copy_charting_library_files.sh +0 -30
- package/public/charting_library/yarn.lock +0 -4
- package/src/charting_library/yarn.lock +0 -4
|
@@ -0,0 +1,2313 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.string.split.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.assign.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.array.includes.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.regexp.test.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.string.replace.js");
|
|
18
|
+
|
|
19
|
+
const _excluded = ["controller", "children", "isOpened", "closeOnClickOutside", "doNotCloseOn", "onClickOutside", "onClose"],
|
|
20
|
+
_excluded2 = ["reference"],
|
|
21
|
+
_excluded3 = ["className", "intent", "size", "appearance", "disabled", "useFullWidth", "reference", "icon", "children", "tabIndex"],
|
|
22
|
+
_excluded4 = ["hasErrors", "onClick", "errors"],
|
|
23
|
+
_excluded5 = ["render", "onClose", "onSubmit", "onCancel", "footerLeftRenderer", "submitButtonText", "submitButtonDisabled", "defaultActionOnClose", "submitOnEnterKey"];
|
|
24
|
+
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
|
+
|
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28
|
+
|
|
29
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
+
|
|
31
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
32
|
+
|
|
33
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
34
|
+
|
|
35
|
+
(window.webpackJsonp = window.webpackJsonp || []).push([["go-to-date-dialog-impl"], {
|
|
36
|
+
"++0f": function f(e, t) {
|
|
37
|
+
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>';
|
|
38
|
+
},
|
|
39
|
+
"+l/S": function lS(e, t, n) {},
|
|
40
|
+
"/Wph": function Wph(e, t) {
|
|
41
|
+
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>';
|
|
42
|
+
},
|
|
43
|
+
"02pg": function pg(e, t, n) {
|
|
44
|
+
"use strict";
|
|
45
|
+
|
|
46
|
+
n.d(t, "a", function () {
|
|
47
|
+
return r;
|
|
48
|
+
});
|
|
49
|
+
var s = n("q1tI"),
|
|
50
|
+
o = n("TSYQ"),
|
|
51
|
+
a = n("XiJV");
|
|
52
|
+
|
|
53
|
+
function r(e) {
|
|
54
|
+
return s.createElement("div", {
|
|
55
|
+
className: o(a.separator, e.className)
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"2A9e": function A9e(e) {
|
|
60
|
+
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"}');
|
|
61
|
+
},
|
|
62
|
+
"2sPR": function sPR(e, t, n) {
|
|
63
|
+
e.exports = {
|
|
64
|
+
calendar: "calendar-3r0qUNSu",
|
|
65
|
+
popupStyle: "popupStyle-3r0qUNSu",
|
|
66
|
+
header: "header-3r0qUNSu",
|
|
67
|
+
title: "title-3r0qUNSu",
|
|
68
|
+
switchBtn: "switchBtn-3r0qUNSu",
|
|
69
|
+
prev: "prev-3r0qUNSu",
|
|
70
|
+
month: "month-3r0qUNSu",
|
|
71
|
+
weekdays: "weekdays-3r0qUNSu",
|
|
72
|
+
weeks: "weeks-3r0qUNSu",
|
|
73
|
+
week: "week-3r0qUNSu",
|
|
74
|
+
day: "day-3r0qUNSu",
|
|
75
|
+
disabled: "disabled-3r0qUNSu",
|
|
76
|
+
selected: "selected-3r0qUNSu",
|
|
77
|
+
currentDay: "currentDay-3r0qUNSu",
|
|
78
|
+
isOnHighlightedEdge: "isOnHighlightedEdge-3r0qUNSu",
|
|
79
|
+
withinSelectedRange: "withinSelectedRange-3r0qUNSu"
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
"5VK0": function VK0(e, t, n) {
|
|
83
|
+
e.exports = {
|
|
84
|
+
scrollWrap: "scrollWrap-1KEqJy8_",
|
|
85
|
+
tabsWrap: "tabsWrap-1KEqJy8_",
|
|
86
|
+
tabs: "tabs-1KEqJy8_",
|
|
87
|
+
withoutBorder: "withoutBorder-1KEqJy8_",
|
|
88
|
+
tab: "tab-1KEqJy8_",
|
|
89
|
+
withHover: "withHover-1KEqJy8_",
|
|
90
|
+
headerBottomSeparator: "headerBottomSeparator-1KEqJy8_",
|
|
91
|
+
fadeWithoutSlider: "fadeWithoutSlider-1KEqJy8_"
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
"5o6O": function o6O(e, t, n) {
|
|
95
|
+
e.exports = {
|
|
96
|
+
tabs: "tabs-3I2ohC86",
|
|
97
|
+
tab: "tab-3I2ohC86",
|
|
98
|
+
noBorder: "noBorder-3I2ohC86",
|
|
99
|
+
disabled: "disabled-3I2ohC86",
|
|
100
|
+
active: "active-3I2ohC86",
|
|
101
|
+
defaultCursor: "defaultCursor-3I2ohC86",
|
|
102
|
+
slider: "slider-3I2ohC86",
|
|
103
|
+
content: "content-3I2ohC86"
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
"77yN": function yN(e, t) {
|
|
107
|
+
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>';
|
|
108
|
+
},
|
|
109
|
+
"8JZL": function JZL(e, t, n) {
|
|
110
|
+
e.exports = {
|
|
111
|
+
tooltip: "tooltip-3y8LFwiB"
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
"8NUT": function NUT(e, t, n) {
|
|
115
|
+
e.exports = {
|
|
116
|
+
"small-height-breakpoint": "screen and (max-height: 360px)",
|
|
117
|
+
footer: "footer-KW8170fm",
|
|
118
|
+
submitButton: "submitButton-KW8170fm",
|
|
119
|
+
buttons: "buttons-KW8170fm"
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
"9dlw": function dlw(e, t, n) {
|
|
123
|
+
"use strict";
|
|
124
|
+
|
|
125
|
+
n.d(t, "a", function () {
|
|
126
|
+
return d;
|
|
127
|
+
});
|
|
128
|
+
var s = n("q1tI"),
|
|
129
|
+
o = n.n(s),
|
|
130
|
+
a = n("i8i4"),
|
|
131
|
+
r = n.n(a),
|
|
132
|
+
i = n("AiMB"),
|
|
133
|
+
c = n("DTHj"),
|
|
134
|
+
l = n("X0gx"),
|
|
135
|
+
u = n("8Rai");
|
|
136
|
+
|
|
137
|
+
function d(e) {
|
|
138
|
+
const {
|
|
139
|
+
controller: t,
|
|
140
|
+
children: n,
|
|
141
|
+
isOpened: a,
|
|
142
|
+
closeOnClickOutside: d = !0,
|
|
143
|
+
doNotCloseOn: h,
|
|
144
|
+
onClickOutside: p,
|
|
145
|
+
onClose: m
|
|
146
|
+
} = e,
|
|
147
|
+
f = _objectWithoutProperties(e, _excluded),
|
|
148
|
+
b = Object(s.useContext)(l.a),
|
|
149
|
+
v = Object(u.a)({
|
|
150
|
+
handler: function handler(e) {
|
|
151
|
+
p && p(e);
|
|
152
|
+
if (!d) return;
|
|
153
|
+
|
|
154
|
+
if (h && e.target instanceof Node) {
|
|
155
|
+
const t = r.a.findDOMNode(h);
|
|
156
|
+
if (t instanceof Node && t.contains(e.target)) return;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
m();
|
|
160
|
+
},
|
|
161
|
+
mouseDown: !0,
|
|
162
|
+
touchStart: !0
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
return a ? o.a.createElement(i.a, {
|
|
166
|
+
top: "0",
|
|
167
|
+
left: "0",
|
|
168
|
+
right: "0",
|
|
169
|
+
bottom: "0",
|
|
170
|
+
pointerEvents: "none"
|
|
171
|
+
}, o.a.createElement("span", {
|
|
172
|
+
ref: v,
|
|
173
|
+
style: {
|
|
174
|
+
pointerEvents: "auto"
|
|
175
|
+
}
|
|
176
|
+
}, o.a.createElement(c.b, _objectSpread(_objectSpread({}, f), {}, {
|
|
177
|
+
onClose: m,
|
|
178
|
+
onScroll: function onScroll(t) {
|
|
179
|
+
const {
|
|
180
|
+
onScroll: n
|
|
181
|
+
} = e;
|
|
182
|
+
n && n(t);
|
|
183
|
+
},
|
|
184
|
+
customCloseDelegate: b,
|
|
185
|
+
ref: t
|
|
186
|
+
}), n))) : null;
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
ASyk: function ASyk(e, t, n) {
|
|
190
|
+
e.exports = {
|
|
191
|
+
"tablet-normal-breakpoint": "screen and (max-width: 768px)",
|
|
192
|
+
"small-height-breakpoint": "screen and (max-height: 360px)",
|
|
193
|
+
"tablet-small-breakpoint": "screen and (max-width: 428px)"
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
F6Wo: function F6Wo(e, t, n) {
|
|
197
|
+
e.exports = {
|
|
198
|
+
container: "container-3tk-77P6",
|
|
199
|
+
icon: "icon-3tk-77P6",
|
|
200
|
+
tooltip: "tooltip-3tk-77P6",
|
|
201
|
+
date: "date-3tk-77P6",
|
|
202
|
+
time: "time-3tk-77P6"
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
FT3R: function FT3R(e, t, n) {
|
|
206
|
+
e.exports = {
|
|
207
|
+
dialogWrapper: "dialogWrapper-C-Wab_3K",
|
|
208
|
+
dialogWrapperSmall: "dialogWrapperSmall-C-Wab_3K",
|
|
209
|
+
tabs: "tabs-C-Wab_3K",
|
|
210
|
+
content: "content-C-Wab_3K",
|
|
211
|
+
contentMobile: "contentMobile-C-Wab_3K",
|
|
212
|
+
bodyWrapper: "bodyWrapper-C-Wab_3K"
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
Gtzb: function Gtzb(e, t, n) {
|
|
216
|
+
"use strict";
|
|
217
|
+
|
|
218
|
+
n.d(t, "a", function () {
|
|
219
|
+
return s;
|
|
220
|
+
}), n.d(t, "b", function () {
|
|
221
|
+
return o;
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
class s {
|
|
225
|
+
constructor() {
|
|
226
|
+
this._storage = new Map();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
setAsOpened(e, t) {
|
|
230
|
+
this._storage.set(e, t);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
setAsClosed(e) {
|
|
234
|
+
this._storage.delete(e);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
isOpened(e) {
|
|
238
|
+
return this._storage.has(e);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
getDialogPayload(e) {
|
|
242
|
+
return this._storage.get(e);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const o = new s();
|
|
248
|
+
},
|
|
249
|
+
Hrlb: function Hrlb(e, t, n) {
|
|
250
|
+
e.exports = {
|
|
251
|
+
pickerInput: "pickerInput-2oRut0q-",
|
|
252
|
+
icon: "icon-2oRut0q-",
|
|
253
|
+
disabled: "disabled-2oRut0q-",
|
|
254
|
+
picker: "picker-2oRut0q-",
|
|
255
|
+
fixed: "fixed-2oRut0q-",
|
|
256
|
+
absolute: "absolute-2oRut0q-",
|
|
257
|
+
nativePicker: "nativePicker-2oRut0q-"
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
ItnF: function ItnF(e, t, n) {
|
|
261
|
+
e.exports = {
|
|
262
|
+
dialog: "dialog-2cMrvu9r",
|
|
263
|
+
wrapper: "wrapper-2cMrvu9r",
|
|
264
|
+
separator: "separator-2cMrvu9r"
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
K3s3: function K3s3(e, t, n) {
|
|
268
|
+
"use strict";
|
|
269
|
+
|
|
270
|
+
n.d(t, "a", function () {
|
|
271
|
+
return i;
|
|
272
|
+
}), n.d(t, "b", function () {
|
|
273
|
+
return c;
|
|
274
|
+
}), n.d(t, "c", function () {
|
|
275
|
+
return l;
|
|
276
|
+
});
|
|
277
|
+
var s = n("q1tI"),
|
|
278
|
+
o = n("TSYQ"),
|
|
279
|
+
a = n("Eyy1"),
|
|
280
|
+
r = n("5o6O");
|
|
281
|
+
const i = r;
|
|
282
|
+
|
|
283
|
+
function c(e) {
|
|
284
|
+
const t = o(e.className, r.tab, {
|
|
285
|
+
[r.active]: e.isActive,
|
|
286
|
+
[r.disabled]: e.isDisabled,
|
|
287
|
+
[r.defaultCursor]: !!e.shouldUseDefaultCursor,
|
|
288
|
+
[r.noBorder]: !!e.noBorder
|
|
289
|
+
});
|
|
290
|
+
return s.createElement("div", {
|
|
291
|
+
className: t,
|
|
292
|
+
onClick: e.onClick,
|
|
293
|
+
ref: e.reference,
|
|
294
|
+
"data-type": "tab-item",
|
|
295
|
+
"data-value": e.value,
|
|
296
|
+
"data-name": "tab-item-" + e.value.toString().toLowerCase()
|
|
297
|
+
}, e.children);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function l(e) {
|
|
301
|
+
return class extends s.PureComponent {
|
|
302
|
+
constructor() {
|
|
303
|
+
super(...arguments), this.activeTab = {
|
|
304
|
+
current: null
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
componentDidUpdate() {
|
|
309
|
+
Object(a.ensureNotNull)(this._slider).style.transition = "transform 350ms", this._componentDidUpdate();
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
componentDidMount() {
|
|
313
|
+
this._componentDidUpdate();
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
render() {
|
|
317
|
+
const {
|
|
318
|
+
className: t
|
|
319
|
+
} = this.props,
|
|
320
|
+
n = this._generateTabs();
|
|
321
|
+
|
|
322
|
+
return s.createElement("div", {
|
|
323
|
+
className: o(t, r.tabs),
|
|
324
|
+
"data-name": this.props["data-name"]
|
|
325
|
+
}, n, s.createElement(e, {
|
|
326
|
+
reference: e => {
|
|
327
|
+
this._slider = e;
|
|
328
|
+
}
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
_generateTabs() {
|
|
333
|
+
return this.activeTab.current = null, s.Children.map(this.props.children, e => {
|
|
334
|
+
const t = e,
|
|
335
|
+
n = Boolean(t.props.isActive),
|
|
336
|
+
o = {
|
|
337
|
+
reference: e => {
|
|
338
|
+
n && (this.activeTab.current = e), t.props.reference && t.props.reference(e);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
return s.cloneElement(t, o);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
_componentDidUpdate() {
|
|
346
|
+
const e = Object(a.ensureNotNull)(this._slider).style;
|
|
347
|
+
|
|
348
|
+
if (this.activeTab.current) {
|
|
349
|
+
const t = this.activeTab.current.offsetWidth,
|
|
350
|
+
n = this.activeTab.current.offsetLeft;
|
|
351
|
+
e.transform = "translateX(".concat(n, "px)"), e.width = t + "px", e.opacity = "1";
|
|
352
|
+
} else e.opacity = "0";
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
l(function (e) {
|
|
359
|
+
return s.createElement("div", {
|
|
360
|
+
className: r.slider,
|
|
361
|
+
ref: e.reference
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
N5tr: function N5tr(e, t, n) {
|
|
366
|
+
"use strict";
|
|
367
|
+
|
|
368
|
+
n.d(t, "a", function () {
|
|
369
|
+
return u;
|
|
370
|
+
}), n.d(t, "b", function () {
|
|
371
|
+
return p;
|
|
372
|
+
});
|
|
373
|
+
var s = n("q1tI"),
|
|
374
|
+
o = n.n(s),
|
|
375
|
+
a = n("TSYQ"),
|
|
376
|
+
r = n("tWVy"),
|
|
377
|
+
i = n("JWMC"),
|
|
378
|
+
c = n("ijHL"),
|
|
379
|
+
l = n("v1bN");
|
|
380
|
+
const u = l;
|
|
381
|
+
|
|
382
|
+
function d(e) {
|
|
383
|
+
const {
|
|
384
|
+
reference: t
|
|
385
|
+
} = e,
|
|
386
|
+
n = _objectWithoutProperties(e, _excluded2),
|
|
387
|
+
s = _objectSpread(_objectSpread({}, n), {}, {
|
|
388
|
+
ref: t
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
return o.a.createElement(e.href ? "a" : "div", s);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function h(e) {
|
|
395
|
+
e.stopPropagation();
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function p(e) {
|
|
399
|
+
const {
|
|
400
|
+
id: t,
|
|
401
|
+
role: n,
|
|
402
|
+
"aria-selected": u,
|
|
403
|
+
className: p,
|
|
404
|
+
title: m,
|
|
405
|
+
labelRowClassName: f,
|
|
406
|
+
labelClassName: b,
|
|
407
|
+
shortcut: v,
|
|
408
|
+
forceShowShortcuts: g,
|
|
409
|
+
icon: w,
|
|
410
|
+
isActive: C,
|
|
411
|
+
isDisabled: D,
|
|
412
|
+
isHovered: _,
|
|
413
|
+
appearAsDisabled: E,
|
|
414
|
+
label: N,
|
|
415
|
+
link: S,
|
|
416
|
+
showToolboxOnHover: O,
|
|
417
|
+
target: y,
|
|
418
|
+
rel: k,
|
|
419
|
+
toolbox: x,
|
|
420
|
+
reference: I,
|
|
421
|
+
onMouseOut: j,
|
|
422
|
+
onMouseOver: T,
|
|
423
|
+
suppressToolboxClick: P = !0,
|
|
424
|
+
theme: F = l
|
|
425
|
+
} = e,
|
|
426
|
+
R = Object(c.b)(e),
|
|
427
|
+
M = Object(s.useRef)(null);
|
|
428
|
+
return o.a.createElement(d, _objectSpread(_objectSpread({}, R), {}, {
|
|
429
|
+
id: t,
|
|
430
|
+
role: n,
|
|
431
|
+
"aria-selected": u,
|
|
432
|
+
className: a(p, F.item, w && F.withIcon, {
|
|
433
|
+
[F.isActive]: C,
|
|
434
|
+
[F.isDisabled]: D || E,
|
|
435
|
+
[F.hovered]: _
|
|
436
|
+
}),
|
|
437
|
+
title: m,
|
|
438
|
+
href: S,
|
|
439
|
+
target: y,
|
|
440
|
+
rel: k,
|
|
441
|
+
reference: function reference(e) {
|
|
442
|
+
M.current = e, "function" == typeof I && I(e);
|
|
443
|
+
"object" == typeof I && (I.current = e);
|
|
444
|
+
},
|
|
445
|
+
onClick: function onClick(t) {
|
|
446
|
+
const {
|
|
447
|
+
dontClosePopup: n,
|
|
448
|
+
onClick: s,
|
|
449
|
+
onClickArg: o,
|
|
450
|
+
trackEventObject: a
|
|
451
|
+
} = e;
|
|
452
|
+
if (D) return;
|
|
453
|
+
a && Object(i.trackEvent)(a.category, a.event, a.label);
|
|
454
|
+
s && s(o, t);
|
|
455
|
+
n || Object(r.b)();
|
|
456
|
+
},
|
|
457
|
+
onContextMenu: function onContextMenu(t) {
|
|
458
|
+
const {
|
|
459
|
+
trackEventObject: n,
|
|
460
|
+
trackRightClick: s
|
|
461
|
+
} = e;
|
|
462
|
+
n && s && Object(i.trackEvent)(n.category, n.event, n.label + "_rightClick");
|
|
463
|
+
},
|
|
464
|
+
onMouseUp: function onMouseUp(t) {
|
|
465
|
+
const {
|
|
466
|
+
trackEventObject: n,
|
|
467
|
+
trackMouseWheelClick: s
|
|
468
|
+
} = e;
|
|
469
|
+
|
|
470
|
+
if (1 === t.button && S && n) {
|
|
471
|
+
let e = n.label;
|
|
472
|
+
s && (e += "_mouseWheelClick"), Object(i.trackEvent)(n.category, n.event, e);
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
onMouseOver: T,
|
|
476
|
+
onMouseOut: j
|
|
477
|
+
}), void 0 !== w && o.a.createElement("div", {
|
|
478
|
+
className: F.icon,
|
|
479
|
+
dangerouslySetInnerHTML: {
|
|
480
|
+
__html: w
|
|
481
|
+
}
|
|
482
|
+
}), o.a.createElement("div", {
|
|
483
|
+
className: a(F.labelRow, f)
|
|
484
|
+
}, o.a.createElement("div", {
|
|
485
|
+
className: a(F.label, b)
|
|
486
|
+
}, N)), (void 0 !== v || g) && o.a.createElement("div", {
|
|
487
|
+
className: F.shortcut
|
|
488
|
+
}, (A = v) && A.split("+").join(" + ")), void 0 !== x && o.a.createElement("div", {
|
|
489
|
+
onClick: P ? h : void 0,
|
|
490
|
+
className: a(F.toolbox, {
|
|
491
|
+
[F.showOnHover]: O
|
|
492
|
+
})
|
|
493
|
+
}, x));
|
|
494
|
+
var A;
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
R5JZ: function R5JZ(e, t, n) {
|
|
498
|
+
"use strict";
|
|
499
|
+
|
|
500
|
+
function s(e, t, n, s, o) {
|
|
501
|
+
function a(o) {
|
|
502
|
+
if (e > o.timeStamp) return;
|
|
503
|
+
const a = o.target;
|
|
504
|
+
void 0 !== n && null !== t && null !== a && a.ownerDocument === s && (t.contains(a) || n(o));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
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), () => {
|
|
508
|
+
s.removeEventListener("click", a, !1), s.removeEventListener("mousedown", a, !1), s.removeEventListener("touchend", a, !1), s.removeEventListener("touchstart", a, !1);
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
n.d(t, "a", function () {
|
|
513
|
+
return s;
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
XiJV: function XiJV(e, t, n) {
|
|
517
|
+
e.exports = {
|
|
518
|
+
separator: "separator-3No0pWrk"
|
|
519
|
+
};
|
|
520
|
+
},
|
|
521
|
+
aDg1: function aDg1(e, t, n) {
|
|
522
|
+
"use strict";
|
|
523
|
+
|
|
524
|
+
var s = n("q1tI"),
|
|
525
|
+
o = n("TSYQ"),
|
|
526
|
+
a = n("K3s3"),
|
|
527
|
+
r = n("nPPD"),
|
|
528
|
+
i = n("dMmr");
|
|
529
|
+
const c = Object(r.a)(a.a, i);
|
|
530
|
+
var l = n("4Cm8"),
|
|
531
|
+
u = n("8+VR"),
|
|
532
|
+
d = n("5VK0");
|
|
533
|
+
n.d(t, "a", function () {
|
|
534
|
+
return m;
|
|
535
|
+
});
|
|
536
|
+
const h = d,
|
|
537
|
+
p = Object(a.c)(function (e) {
|
|
538
|
+
return s.createElement("div", {
|
|
539
|
+
className: c.slider,
|
|
540
|
+
ref: e.reference
|
|
541
|
+
}, s.createElement("div", {
|
|
542
|
+
className: c.inner
|
|
543
|
+
}));
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
class m extends s.PureComponent {
|
|
547
|
+
constructor() {
|
|
548
|
+
super(...arguments), this._createClickHandler = e => () => {
|
|
549
|
+
this.props.onSelect(e);
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
render() {
|
|
554
|
+
const {
|
|
555
|
+
theme: e = h,
|
|
556
|
+
hiddenBottomBorders: t,
|
|
557
|
+
fadedSlider: n = !0,
|
|
558
|
+
ScrollComponent: a = l.a
|
|
559
|
+
} = this.props,
|
|
560
|
+
r = this._generateDialogTabs();
|
|
561
|
+
|
|
562
|
+
return s.createElement("div", {
|
|
563
|
+
className: o(e.scrollWrap)
|
|
564
|
+
}, !t && s.createElement("div", {
|
|
565
|
+
className: e.headerBottomSeparator
|
|
566
|
+
}), s.createElement(a, {
|
|
567
|
+
isVisibleFade: u.mobiletouch,
|
|
568
|
+
isVisibleButtons: !u.mobiletouch,
|
|
569
|
+
isVisibleScrollbar: !1,
|
|
570
|
+
fadeClassName: o({
|
|
571
|
+
[e.fadeWithoutSlider]: !n
|
|
572
|
+
})
|
|
573
|
+
}, s.createElement("div", {
|
|
574
|
+
className: e.tabsWrap
|
|
575
|
+
}, s.createElement(p, {
|
|
576
|
+
className: o(e.tabs, t && e.withoutBorder)
|
|
577
|
+
}, r))));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
_generateDialogTabs() {
|
|
581
|
+
const {
|
|
582
|
+
activeTabId: e,
|
|
583
|
+
tabs: t,
|
|
584
|
+
theme: n = h
|
|
585
|
+
} = this.props;
|
|
586
|
+
return t.allIds.map(r => {
|
|
587
|
+
const i = e === r;
|
|
588
|
+
return s.createElement(a.b, {
|
|
589
|
+
key: r,
|
|
590
|
+
value: r,
|
|
591
|
+
className: o(n.tab, !i && n.withHover),
|
|
592
|
+
isActive: i,
|
|
593
|
+
onClick: this._createClickHandler(r)
|
|
594
|
+
}, t.byId[r].title);
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
dMmr: function dMmr(e, t, n) {
|
|
601
|
+
e.exports = {
|
|
602
|
+
slider: "slider-3RfwXbxu",
|
|
603
|
+
inner: "inner-3RfwXbxu"
|
|
604
|
+
};
|
|
605
|
+
},
|
|
606
|
+
g89m: function g89m(e, t, n) {
|
|
607
|
+
"use strict";
|
|
608
|
+
|
|
609
|
+
var s = n("q1tI"),
|
|
610
|
+
o = n.n(s),
|
|
611
|
+
a = n("Eyy1"),
|
|
612
|
+
r = n("TSYQ"),
|
|
613
|
+
i = n.n(r),
|
|
614
|
+
c = n("/3z9"),
|
|
615
|
+
l = n("d700"),
|
|
616
|
+
u = n("WXjp"),
|
|
617
|
+
d = n("02pg"),
|
|
618
|
+
h = n("uhCe"),
|
|
619
|
+
p = n("/KDZ"),
|
|
620
|
+
m = n("pafz"),
|
|
621
|
+
f = n("ZjKI"),
|
|
622
|
+
b = n("FQhm"),
|
|
623
|
+
v = n("Iivm");
|
|
624
|
+
const g = o.a.createContext({
|
|
625
|
+
setHideClose: () => {}
|
|
626
|
+
});
|
|
627
|
+
var w = n("zztK"),
|
|
628
|
+
C = n("px1m");
|
|
629
|
+
|
|
630
|
+
function D(e) {
|
|
631
|
+
const {
|
|
632
|
+
title: t,
|
|
633
|
+
subtitle: n,
|
|
634
|
+
showCloseIcon: a = !0,
|
|
635
|
+
onClose: r,
|
|
636
|
+
renderBefore: c,
|
|
637
|
+
renderAfter: l,
|
|
638
|
+
draggable: u,
|
|
639
|
+
className: d,
|
|
640
|
+
unsetAlign: h
|
|
641
|
+
} = e,
|
|
642
|
+
[p, m] = Object(s.useState)(!1);
|
|
643
|
+
return o.a.createElement(g.Provider, {
|
|
644
|
+
value: {
|
|
645
|
+
setHideClose: m
|
|
646
|
+
}
|
|
647
|
+
}, o.a.createElement("div", {
|
|
648
|
+
className: i()(C.container, d, (n || h) && C.unsetAlign)
|
|
649
|
+
}, c, o.a.createElement("div", {
|
|
650
|
+
"data-dragg-area": u,
|
|
651
|
+
className: C.title
|
|
652
|
+
}, o.a.createElement("div", {
|
|
653
|
+
className: C.ellipsis
|
|
654
|
+
}, t), n && o.a.createElement("div", {
|
|
655
|
+
className: i()(C.ellipsis, C.subtitle)
|
|
656
|
+
}, n)), l, a && !p && o.a.createElement(v.a, {
|
|
657
|
+
className: C.close,
|
|
658
|
+
icon: w,
|
|
659
|
+
onClick: r,
|
|
660
|
+
"data-name": "close",
|
|
661
|
+
"data-role": "button"
|
|
662
|
+
})));
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
var _ = n("ItnF");
|
|
666
|
+
|
|
667
|
+
n.d(t, "a", function () {
|
|
668
|
+
return S;
|
|
669
|
+
});
|
|
670
|
+
const E = {
|
|
671
|
+
vertical: 20
|
|
672
|
+
},
|
|
673
|
+
N = {
|
|
674
|
+
vertical: 0
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
class S extends o.a.PureComponent {
|
|
678
|
+
constructor() {
|
|
679
|
+
super(...arguments), this._controller = null, this._reference = null, this._renderChildren = (e, t) => (this._controller = e, this.props.render({
|
|
680
|
+
requestResize: this._requestResize,
|
|
681
|
+
centerAndFit: this._centerAndFit,
|
|
682
|
+
isSmallWidth: t
|
|
683
|
+
})), this._handleReference = e => this._reference = e, this._handleClose = () => {
|
|
684
|
+
this.props.onClose();
|
|
685
|
+
}, this._handleKeyDown = e => {
|
|
686
|
+
var t;
|
|
687
|
+
if (!e.defaultPrevented) switch (this.props.onKeyDown && this.props.onKeyDown(e), Object(c.hashFromEvent)(e)) {
|
|
688
|
+
case 27:
|
|
689
|
+
if (e.defaultPrevented) return;
|
|
690
|
+
if (this.props.forceCloseOnEsc && this.props.forceCloseOnEsc()) return void this._handleClose();
|
|
691
|
+
const {
|
|
692
|
+
activeElement: n
|
|
693
|
+
} = document,
|
|
694
|
+
s = Object(a.ensureNotNull)(this._reference);
|
|
695
|
+
|
|
696
|
+
if (null !== n) {
|
|
697
|
+
if (e.preventDefault(), "true" === (t = n).getAttribute("data-haspopup") && "true" !== t.getAttribute("data-expanded")) return void this._handleClose();
|
|
698
|
+
if (Object(l.b)(n)) return void s.focus();
|
|
699
|
+
if (s.contains(n)) return void this._handleClose();
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
}
|
|
703
|
+
}, this._requestResize = () => {
|
|
704
|
+
null !== this._controller && this._controller.recalculateBounds();
|
|
705
|
+
}, this._centerAndFit = () => {
|
|
706
|
+
null !== this._controller && this._controller.centerAndFit();
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
componentDidMount() {
|
|
711
|
+
b.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._handleClose, null);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
componentWillUnmount() {
|
|
715
|
+
b.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND, this._handleClose, null);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
focus() {
|
|
719
|
+
Object(a.ensureNotNull)(this._reference).focus();
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
getElement() {
|
|
723
|
+
return this._reference;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
contains(e) {
|
|
727
|
+
var t, n;
|
|
728
|
+
return null !== (n = null === (t = this._reference) || void 0 === t ? void 0 : t.contains(e)) && void 0 !== n && n;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
render() {
|
|
732
|
+
const {
|
|
733
|
+
className: e,
|
|
734
|
+
headerClassName: t,
|
|
735
|
+
isOpened: n,
|
|
736
|
+
title: s,
|
|
737
|
+
dataName: a,
|
|
738
|
+
onClickOutside: r,
|
|
739
|
+
additionalElementPos: c,
|
|
740
|
+
additionalHeaderElement: l,
|
|
741
|
+
backdrop: f,
|
|
742
|
+
shouldForceFocus: b = !0,
|
|
743
|
+
showSeparator: v,
|
|
744
|
+
subtitle: g,
|
|
745
|
+
draggable: w = !0,
|
|
746
|
+
fullScreen: C = !1,
|
|
747
|
+
showCloseIcon: S = !0,
|
|
748
|
+
rounded: O = !0,
|
|
749
|
+
isAnimationEnabled: y,
|
|
750
|
+
growPoint: k,
|
|
751
|
+
dialogTooltip: x,
|
|
752
|
+
unsetHeaderAlign: I
|
|
753
|
+
} = this.props,
|
|
754
|
+
j = "after" !== c ? l : void 0,
|
|
755
|
+
T = "after" === c ? l : void 0;
|
|
756
|
+
return o.a.createElement(p.a, {
|
|
757
|
+
rule: h.a.SmallHeight
|
|
758
|
+
}, c => o.a.createElement(p.a, {
|
|
759
|
+
rule: h.a.TabletSmall
|
|
760
|
+
}, l => o.a.createElement(u.a, {
|
|
761
|
+
rounded: !(l || C) && O,
|
|
762
|
+
className: i()(_.dialog, e),
|
|
763
|
+
isOpened: n,
|
|
764
|
+
reference: this._handleReference,
|
|
765
|
+
onKeyDown: this._handleKeyDown,
|
|
766
|
+
onClickOutside: r,
|
|
767
|
+
onClickBackdrop: r,
|
|
768
|
+
fullscreen: l || C,
|
|
769
|
+
guard: c ? N : E,
|
|
770
|
+
boundByScreen: l || C,
|
|
771
|
+
shouldForceFocus: b,
|
|
772
|
+
backdrop: f,
|
|
773
|
+
draggable: w,
|
|
774
|
+
isAnimationEnabled: y,
|
|
775
|
+
growPoint: k,
|
|
776
|
+
name: this.props.dataName,
|
|
777
|
+
dialogTooltip: x
|
|
778
|
+
}, o.a.createElement("div", {
|
|
779
|
+
className: _.wrapper,
|
|
780
|
+
"data-name": a,
|
|
781
|
+
"data-dialog-name": "string" == typeof s ? s : ""
|
|
782
|
+
}, void 0 !== s && o.a.createElement(D, {
|
|
783
|
+
draggable: w && !(l || C),
|
|
784
|
+
onClose: this._handleClose,
|
|
785
|
+
renderAfter: T,
|
|
786
|
+
renderBefore: j,
|
|
787
|
+
subtitle: g,
|
|
788
|
+
title: s,
|
|
789
|
+
showCloseIcon: S,
|
|
790
|
+
className: t,
|
|
791
|
+
unsetAlign: I
|
|
792
|
+
}), v && o.a.createElement(d.a, {
|
|
793
|
+
className: _.separator
|
|
794
|
+
}), o.a.createElement(m.a.Consumer, null, e => this._renderChildren(e, l || C))))));
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
ijHL: function ijHL(e, t, n) {
|
|
800
|
+
"use strict";
|
|
801
|
+
|
|
802
|
+
function s(e) {
|
|
803
|
+
return a(e, r);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function o(e) {
|
|
807
|
+
return a(e, i);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function a(e, t) {
|
|
811
|
+
const n = Object.entries(e).filter(t),
|
|
812
|
+
s = {};
|
|
813
|
+
|
|
814
|
+
for (const [e, t] of n) s[e] = t;
|
|
815
|
+
|
|
816
|
+
return s;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
function r(e) {
|
|
820
|
+
const [t, n] = e;
|
|
821
|
+
return 0 === t.indexOf("data-") && "string" == typeof n;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
function i(e) {
|
|
825
|
+
return 0 === e[0].indexOf("aria-");
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
n.d(t, "b", function () {
|
|
829
|
+
return s;
|
|
830
|
+
}), n.d(t, "a", function () {
|
|
831
|
+
return o;
|
|
832
|
+
}), n.d(t, "c", function () {
|
|
833
|
+
return a;
|
|
834
|
+
}), n.d(t, "e", function () {
|
|
835
|
+
return r;
|
|
836
|
+
}), n.d(t, "d", function () {
|
|
837
|
+
return i;
|
|
838
|
+
});
|
|
839
|
+
},
|
|
840
|
+
mwqF: function mwqF(e, t, n) {
|
|
841
|
+
"use strict";
|
|
842
|
+
|
|
843
|
+
var s = n("q1tI"),
|
|
844
|
+
o = n.n(s),
|
|
845
|
+
a = n("TSYQ"),
|
|
846
|
+
r = n("wwkJ"),
|
|
847
|
+
i = n("ZWNO");
|
|
848
|
+
|
|
849
|
+
function c(e, t) {
|
|
850
|
+
const {
|
|
851
|
+
intent: n = "primary",
|
|
852
|
+
size: s = "m",
|
|
853
|
+
appearance: o = "default",
|
|
854
|
+
useFullWidth: r = !1,
|
|
855
|
+
tabIndex: c = 0,
|
|
856
|
+
icon: l,
|
|
857
|
+
className: u,
|
|
858
|
+
isGrouped: d,
|
|
859
|
+
cellState: h,
|
|
860
|
+
disablePositionAdjustment: p = !1
|
|
861
|
+
} = t,
|
|
862
|
+
m = function (e, t) {
|
|
863
|
+
let n = "";
|
|
864
|
+
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;
|
|
865
|
+
}(Object(i.a)(h), e);
|
|
866
|
+
|
|
867
|
+
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"]);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
var l = n("2A9e");
|
|
871
|
+
n("+l/S");
|
|
872
|
+
|
|
873
|
+
function u(e) {
|
|
874
|
+
const {
|
|
875
|
+
className: t,
|
|
876
|
+
intent: n,
|
|
877
|
+
size: i,
|
|
878
|
+
appearance: u,
|
|
879
|
+
disabled: d,
|
|
880
|
+
useFullWidth: h,
|
|
881
|
+
reference: p,
|
|
882
|
+
icon: m,
|
|
883
|
+
children: f,
|
|
884
|
+
tabIndex: b
|
|
885
|
+
} = e,
|
|
886
|
+
v = _objectWithoutProperties(e, _excluded3),
|
|
887
|
+
{
|
|
888
|
+
isGrouped: g,
|
|
889
|
+
cellState: w,
|
|
890
|
+
disablePositionAdjustment: C
|
|
891
|
+
} = Object(s.useContext)(r.a),
|
|
892
|
+
D = c(l, {
|
|
893
|
+
intent: n,
|
|
894
|
+
size: i,
|
|
895
|
+
appearance: u,
|
|
896
|
+
disabled: d,
|
|
897
|
+
useFullWidth: h,
|
|
898
|
+
tabIndex: b,
|
|
899
|
+
icon: m,
|
|
900
|
+
isGrouped: g,
|
|
901
|
+
cellState: w,
|
|
902
|
+
disablePositionAdjustment: C
|
|
903
|
+
});
|
|
904
|
+
|
|
905
|
+
return o.a.createElement("button", _objectSpread({
|
|
906
|
+
className: a(D, t),
|
|
907
|
+
disabled: d,
|
|
908
|
+
ref: p,
|
|
909
|
+
tabIndex: b
|
|
910
|
+
}, v), m && "s" !== i && o.a.createElement("span", {
|
|
911
|
+
className: l.icon
|
|
912
|
+
}, m), o.a.createElement("span", {
|
|
913
|
+
className: l.content
|
|
914
|
+
}, f));
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
n.d(t, "a", function () {
|
|
918
|
+
return u;
|
|
919
|
+
});
|
|
920
|
+
},
|
|
921
|
+
nPPD: function nPPD(e, t, n) {
|
|
922
|
+
"use strict";
|
|
923
|
+
|
|
924
|
+
function s(e, t) {
|
|
925
|
+
let n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
926
|
+
const s = Object.assign({}, t);
|
|
927
|
+
|
|
928
|
+
for (const o of Object.keys(t)) {
|
|
929
|
+
const a = n[o] || o;
|
|
930
|
+
a in e && (s[o] = [e[a], t[o]].join(" "));
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
return s;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
function o(e, t) {
|
|
937
|
+
let n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
938
|
+
return Object.assign({}, e, s(e, t, n));
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
n.d(t, "b", function () {
|
|
942
|
+
return s;
|
|
943
|
+
}), n.d(t, "a", function () {
|
|
944
|
+
return o;
|
|
945
|
+
});
|
|
946
|
+
},
|
|
947
|
+
px1m: function px1m(e, t, n) {
|
|
948
|
+
e.exports = {
|
|
949
|
+
"small-height-breakpoint": "screen and (max-height: 360px)",
|
|
950
|
+
container: "container-2sL5JydP",
|
|
951
|
+
unsetAlign: "unsetAlign-2sL5JydP",
|
|
952
|
+
title: "title-2sL5JydP",
|
|
953
|
+
subtitle: "subtitle-2sL5JydP",
|
|
954
|
+
ellipsis: "ellipsis-2sL5JydP",
|
|
955
|
+
close: "close-2sL5JydP"
|
|
956
|
+
};
|
|
957
|
+
},
|
|
958
|
+
sw0u: function sw0u(e, t, n) {
|
|
959
|
+
e.exports = {
|
|
960
|
+
row: "row-PABCY1cG",
|
|
961
|
+
mobileRow: "mobileRow-PABCY1cG"
|
|
962
|
+
};
|
|
963
|
+
},
|
|
964
|
+
"uUY/": function uUY(e, t, n) {
|
|
965
|
+
"use strict";
|
|
966
|
+
|
|
967
|
+
n.r(t);
|
|
968
|
+
var s = n("q1tI"),
|
|
969
|
+
o = n.n(s),
|
|
970
|
+
a = n("i8i4"),
|
|
971
|
+
r = n.n(a),
|
|
972
|
+
i = n("Eyy1"),
|
|
973
|
+
c = n("PT1i");
|
|
974
|
+
|
|
975
|
+
function l(e) {
|
|
976
|
+
return ("0" + e).slice(-2);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
function u(e) {
|
|
980
|
+
const t = new Date(e);
|
|
981
|
+
return t.setMilliseconds(0), t.setSeconds(0), t.setMinutes(0), t.setHours(0), t;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
function d(e) {
|
|
985
|
+
let t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
986
|
+
const n = u(e),
|
|
987
|
+
s = t ? function (e) {
|
|
988
|
+
if (e > 6) throw new Error("Invalid day is provided");
|
|
989
|
+
return 0 === e ? 6 : e - 1;
|
|
990
|
+
}(n.getDay()) : n.getDay();
|
|
991
|
+
return n.setDate(n.getDate() - s), n;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
function h(e) {
|
|
995
|
+
const t = u(e);
|
|
996
|
+
return t.setDate(1), t;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
function p(e, t) {
|
|
1000
|
+
return Number(u(e)) === Number(u(t));
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
function m(e) {
|
|
1004
|
+
const t = new Date(e);
|
|
1005
|
+
return t.setDate(t.getDate() + 7), t;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
function f(e, t, n) {
|
|
1009
|
+
const s = !t || Number(u(t)) - Number(u(e)) <= 0;
|
|
1010
|
+
return (!n || Number(u(n)) - Number(u(e)) >= 0) && s;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
function b(e) {
|
|
1014
|
+
return new Date(e).getTimezoneOffset() / 60;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
function v(e) {
|
|
1018
|
+
const t = new Date(e);
|
|
1019
|
+
return t.setHours(t.getHours() + b(t)), t;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
function g(e) {
|
|
1023
|
+
const t = new Date(e);
|
|
1024
|
+
return t.setHours(t.getHours() - b(t)), t;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
var w = n("Gtzb"),
|
|
1028
|
+
C = n("jCNj"),
|
|
1029
|
+
D = n.n(C);
|
|
1030
|
+
|
|
1031
|
+
const _ = o.a.createContext(null);
|
|
1032
|
+
|
|
1033
|
+
function E(e) {
|
|
1034
|
+
const {
|
|
1035
|
+
initialGoToDate: t,
|
|
1036
|
+
children: n
|
|
1037
|
+
} = e,
|
|
1038
|
+
[a, r] = Object(s.useState)(t),
|
|
1039
|
+
i = a.valueOf() <= function (e) {
|
|
1040
|
+
const t = new Date(e);
|
|
1041
|
+
return t.setMilliseconds(999), t.setSeconds(59), t.setMinutes(59), t.setHours(23), t;
|
|
1042
|
+
}(new Date()).valueOf(),
|
|
1043
|
+
c = Object(s.useMemo)(() => ({
|
|
1044
|
+
date: a,
|
|
1045
|
+
setDate: r,
|
|
1046
|
+
isValid: i
|
|
1047
|
+
}), [a, i]);
|
|
1048
|
+
|
|
1049
|
+
return o.a.createElement(_.Provider, {
|
|
1050
|
+
value: c
|
|
1051
|
+
}, n);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
const N = o.a.createContext(null);
|
|
1055
|
+
|
|
1056
|
+
function S(e) {
|
|
1057
|
+
const {
|
|
1058
|
+
initialRanges: t,
|
|
1059
|
+
children: n
|
|
1060
|
+
} = e,
|
|
1061
|
+
[a, r] = Object(s.useState)(t.from),
|
|
1062
|
+
[i, c] = Object(s.useState)(t.to),
|
|
1063
|
+
l = a.valueOf() <= i.valueOf(),
|
|
1064
|
+
u = Object(s.useMemo)(() => ({
|
|
1065
|
+
dateFrom: a,
|
|
1066
|
+
dateTo: i,
|
|
1067
|
+
setDateFrom: r,
|
|
1068
|
+
setDateTo: c,
|
|
1069
|
+
isValid: l
|
|
1070
|
+
}), [a, i, l]);
|
|
1071
|
+
return o.a.createElement(N.Provider, {
|
|
1072
|
+
value: u
|
|
1073
|
+
}, n);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
var O = n("YFKU"),
|
|
1077
|
+
y = n("TSYQ"),
|
|
1078
|
+
k = n.n(y),
|
|
1079
|
+
x = n("FQhm"),
|
|
1080
|
+
I = n("Vdly"),
|
|
1081
|
+
j = n.n(I),
|
|
1082
|
+
T = n("ZjKI"),
|
|
1083
|
+
P = n("uhCe"),
|
|
1084
|
+
F = n("ycFu"),
|
|
1085
|
+
R = n("sw0u");
|
|
1086
|
+
|
|
1087
|
+
function M(e) {
|
|
1088
|
+
const {
|
|
1089
|
+
children: t
|
|
1090
|
+
} = e;
|
|
1091
|
+
return o.a.createElement("div", {
|
|
1092
|
+
className: k()(R.row, _e && R.mobileRow)
|
|
1093
|
+
}, t);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
var A = n("8+VR"),
|
|
1097
|
+
B = n("gQ5K"),
|
|
1098
|
+
z = n("Iivm"),
|
|
1099
|
+
W = n("2sPR");
|
|
1100
|
+
|
|
1101
|
+
class K extends s.PureComponent {
|
|
1102
|
+
constructor() {
|
|
1103
|
+
super(...arguments), this._dateFormatter = new B.DateFormatter(), this._onClick = () => {
|
|
1104
|
+
this.props.onClick && !this.props.isDisabled && this.props.onClick(new Date(this.props.day));
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
render() {
|
|
1109
|
+
const e = y(W.day, {
|
|
1110
|
+
[W.selected]: this.props.isSelected,
|
|
1111
|
+
[W.disabled]: this.props.isDisabled,
|
|
1112
|
+
[W.withinSelectedRange]: this._withinSelectedRange(),
|
|
1113
|
+
[W.isOnHighlightedEdge]: this._isOnHighlightedEdge(),
|
|
1114
|
+
[W.currentDay]: this._isCurrentDay()
|
|
1115
|
+
});
|
|
1116
|
+
return s.createElement("span", {
|
|
1117
|
+
className: e,
|
|
1118
|
+
onClick: this._onClick,
|
|
1119
|
+
"data-day": this._dateFormatter.formatLocal(this.props.day)
|
|
1120
|
+
}, this.props.day.getDate());
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
_isOnHighlightedEdge() {
|
|
1124
|
+
const {
|
|
1125
|
+
day: e,
|
|
1126
|
+
highlightedFrom: t,
|
|
1127
|
+
highlightedTo: n
|
|
1128
|
+
} = this.props;
|
|
1129
|
+
return !(!t || !n) && (p(e, t) || p(e, n));
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
_withinSelectedRange() {
|
|
1133
|
+
const {
|
|
1134
|
+
day: e,
|
|
1135
|
+
highlightedFrom: t,
|
|
1136
|
+
highlightedTo: n
|
|
1137
|
+
} = this.props;
|
|
1138
|
+
return !(!t || !n) && this._isBetweenByDay(t, e, n);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
_isCurrentDay() {
|
|
1142
|
+
return p(new Date(), this.props.day);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
_isBetweenByDay(e, t, n) {
|
|
1146
|
+
const s = u(e),
|
|
1147
|
+
o = u(t),
|
|
1148
|
+
a = u(n);
|
|
1149
|
+
return s < o && o < a;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
const H = [Object(O.t)("Mo", {
|
|
1155
|
+
context: "day_of_week"
|
|
1156
|
+
}), Object(O.t)("Tu", {
|
|
1157
|
+
context: "day_of_week"
|
|
1158
|
+
}), Object(O.t)("We", {
|
|
1159
|
+
context: "day_of_week"
|
|
1160
|
+
}), Object(O.t)("Th", {
|
|
1161
|
+
context: "day_of_week"
|
|
1162
|
+
}), Object(O.t)("Fr", {
|
|
1163
|
+
context: "day_of_week"
|
|
1164
|
+
}), Object(O.t)("Sa", {
|
|
1165
|
+
context: "day_of_week"
|
|
1166
|
+
}), Object(O.t)("Su", {
|
|
1167
|
+
context: "day_of_week"
|
|
1168
|
+
})];
|
|
1169
|
+
|
|
1170
|
+
class q extends s.PureComponent {
|
|
1171
|
+
constructor() {
|
|
1172
|
+
super(...arguments), this._renderWeekdays = () => H.map(e => s.createElement("span", {
|
|
1173
|
+
key: e
|
|
1174
|
+
}, e));
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
render() {
|
|
1178
|
+
return s.createElement("div", {
|
|
1179
|
+
className: W.month
|
|
1180
|
+
}, s.createElement("div", {
|
|
1181
|
+
className: W.weekdays
|
|
1182
|
+
}, this._renderWeekdays()), s.createElement("div", {
|
|
1183
|
+
className: W.weeks
|
|
1184
|
+
}, this._renderWeeks()));
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
_renderWeeks() {
|
|
1188
|
+
const e = [];
|
|
1189
|
+
let t = d(h(this.props.viewDate), !0);
|
|
1190
|
+
|
|
1191
|
+
for (let n = 0; n < 6; n++) e.push(this._renderWeek(t)), t = new Date(m(t));
|
|
1192
|
+
|
|
1193
|
+
return e;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
_renderWeek(e) {
|
|
1197
|
+
const t = [];
|
|
1198
|
+
|
|
1199
|
+
for (let a = 0; a < 7; a++) {
|
|
1200
|
+
const r = new Date(e);
|
|
1201
|
+
r.setDate(r.getDate() + a), (n = r, o = this.props.viewDate, Number(h(n)) === Number(h(o))) && t.push(s.createElement(K, {
|
|
1202
|
+
key: a,
|
|
1203
|
+
day: r,
|
|
1204
|
+
isDisabled: this._isDayDisabled(r),
|
|
1205
|
+
isSelected: p(r, this.props.selectedDate),
|
|
1206
|
+
onClick: this.props.onClickDay,
|
|
1207
|
+
highlightedFrom: this.props.highlightedFrom,
|
|
1208
|
+
highlightedTo: this.props.highlightedTo
|
|
1209
|
+
}));
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
var n, o;
|
|
1213
|
+
if (0 === t.length) return null;
|
|
1214
|
+
|
|
1215
|
+
const a = function (e) {
|
|
1216
|
+
const t = new Date(e.getFullYear(), 0, 1),
|
|
1217
|
+
n = (Number(e) - Number(t)) / 864e5;
|
|
1218
|
+
return Math.ceil((n + t.getDay() + 1) / 7);
|
|
1219
|
+
}(e);
|
|
1220
|
+
|
|
1221
|
+
return s.createElement("div", {
|
|
1222
|
+
className: W.week,
|
|
1223
|
+
key: a
|
|
1224
|
+
}, t);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
_isDayDisabled(e) {
|
|
1228
|
+
if (!f(e, this.props.minDate, this.props.maxDate)) return !0;
|
|
1229
|
+
const t = [6, 0].includes(e.getDay());
|
|
1230
|
+
return !!this.props.disableWeekends && t;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
var L = n("++0f");
|
|
1236
|
+
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")];
|
|
1237
|
+
|
|
1238
|
+
class V extends s.PureComponent {
|
|
1239
|
+
constructor(e) {
|
|
1240
|
+
super(e), this._prevMonth = () => {
|
|
1241
|
+
const e = new Date(this.state.viewDate);
|
|
1242
|
+
e.setMonth(e.getMonth() - 1), this.setState({
|
|
1243
|
+
viewDate: e
|
|
1244
|
+
}), this.props.onMonthSwitch && this.props.onMonthSwitch();
|
|
1245
|
+
}, this._nextMonth = () => {
|
|
1246
|
+
const e = new Date(this.state.viewDate);
|
|
1247
|
+
e.setMonth(e.getMonth() + 1), this.setState({
|
|
1248
|
+
viewDate: e
|
|
1249
|
+
}), this.props.onMonthSwitch && this.props.onMonthSwitch();
|
|
1250
|
+
}, this._onClickDay = e => {
|
|
1251
|
+
this.setState({
|
|
1252
|
+
viewDate: new Date(e)
|
|
1253
|
+
}), this.props.onSelect && this.props.onSelect(new Date(e));
|
|
1254
|
+
}, this.state = {
|
|
1255
|
+
viewDate: e.selectedDate
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
render() {
|
|
1260
|
+
return s.createElement("div", {
|
|
1261
|
+
className: y(W.calendar, this.props.popupStyle && W.popupStyle, this.props.className),
|
|
1262
|
+
tabIndex: -1
|
|
1263
|
+
}, s.createElement("div", {
|
|
1264
|
+
className: W.header
|
|
1265
|
+
}, s.createElement(z.a, {
|
|
1266
|
+
icon: L,
|
|
1267
|
+
onClick: this._prevMonth,
|
|
1268
|
+
className: y(W.switchBtn, W.prev)
|
|
1269
|
+
}), s.createElement("div", {
|
|
1270
|
+
className: W.title
|
|
1271
|
+
}, "".concat(U[this.state.viewDate.getMonth()], " ").concat(this.state.viewDate.getFullYear())), s.createElement(z.a, {
|
|
1272
|
+
icon: L,
|
|
1273
|
+
onClick: this._nextMonth,
|
|
1274
|
+
className: y(W.switchBtn, W.next)
|
|
1275
|
+
})), s.createElement(q, {
|
|
1276
|
+
viewDate: this.state.viewDate,
|
|
1277
|
+
selectedDate: this.props.selectedDate,
|
|
1278
|
+
maxDate: this.props.maxDate,
|
|
1279
|
+
minDate: this.props.minDate,
|
|
1280
|
+
onClickDay: this._onClickDay,
|
|
1281
|
+
disableWeekends: this.props.disableWeekends,
|
|
1282
|
+
highlightedFrom: this.props.highlightedFrom,
|
|
1283
|
+
highlightedTo: this.props.highlightedTo
|
|
1284
|
+
}));
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
V.defaultProps = {
|
|
1290
|
+
popupStyle: !0
|
|
1291
|
+
};
|
|
1292
|
+
var G = n("dKnb"),
|
|
1293
|
+
J = n("jh7f"),
|
|
1294
|
+
Y = n("xADF"),
|
|
1295
|
+
Q = n("RgaO"),
|
|
1296
|
+
Z = n("Hrlb");
|
|
1297
|
+
|
|
1298
|
+
class X extends s.PureComponent {
|
|
1299
|
+
constructor(e) {
|
|
1300
|
+
super(e), this._input = null, this._handleFocus = () => {
|
|
1301
|
+
this.props.showOnFocus && this.props.onShowPicker();
|
|
1302
|
+
}, this._handleInputRef = e => {
|
|
1303
|
+
this._input = e, this.props.inputReference && this.props.inputReference(this._input);
|
|
1304
|
+
}, this._onShowPicker = e => {
|
|
1305
|
+
if (e) {
|
|
1306
|
+
const t = e.getBoundingClientRect();
|
|
1307
|
+
t.width && t.right > window.innerWidth ? e.style.right = "0" : e.style.right = "auto";
|
|
1308
|
+
}
|
|
1309
|
+
}, this._onChange = () => {
|
|
1310
|
+
const e = Object(i.ensureNotNull)(this._input).value;
|
|
1311
|
+
this.setState({
|
|
1312
|
+
value: e
|
|
1313
|
+
}), this.props.onType(e);
|
|
1314
|
+
}, this._onKeyDown = e => {
|
|
1315
|
+
this.props.onHidePicker();
|
|
1316
|
+
}, this._onKeyPress = e => {
|
|
1317
|
+
if (e.charCode) {
|
|
1318
|
+
const t = String.fromCharCode(e.charCode);
|
|
1319
|
+
this.props.inputRegex.test(t) || e.preventDefault();
|
|
1320
|
+
}
|
|
1321
|
+
}, this._onKeyUp = e => {
|
|
1322
|
+
if (8 !== e.keyCode) {
|
|
1323
|
+
const e = Object(i.ensureNotNull)(this._input).value,
|
|
1324
|
+
t = this.props.fixValue(e);
|
|
1325
|
+
t !== e && this.setState({
|
|
1326
|
+
value: t
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
}, this.state = {
|
|
1330
|
+
value: e.value
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
1335
|
+
e.value !== this.props.value && this.setState({
|
|
1336
|
+
value: e.value
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
render() {
|
|
1341
|
+
const {
|
|
1342
|
+
position: e = "fixed",
|
|
1343
|
+
className: t,
|
|
1344
|
+
size: n,
|
|
1345
|
+
disabled: o,
|
|
1346
|
+
readonly: a,
|
|
1347
|
+
errors: r,
|
|
1348
|
+
icon: i,
|
|
1349
|
+
InputComponent: c = G.a
|
|
1350
|
+
} = this.props;
|
|
1351
|
+
return s.createElement("div", {
|
|
1352
|
+
className: Z.pickerInput
|
|
1353
|
+
}, s.createElement(c, {
|
|
1354
|
+
value: this.state.value,
|
|
1355
|
+
onBlur: this.props.onBlur,
|
|
1356
|
+
onKeyDown: this._onKeyDown,
|
|
1357
|
+
onKeyPress: this._onKeyPress,
|
|
1358
|
+
onKeyUp: this._onKeyUp,
|
|
1359
|
+
onChange: this._onChange,
|
|
1360
|
+
onFocus: this._handleFocus,
|
|
1361
|
+
onClick: this.props.onShowPicker,
|
|
1362
|
+
reference: this._handleInputRef,
|
|
1363
|
+
className: t,
|
|
1364
|
+
size: n,
|
|
1365
|
+
disabled: o,
|
|
1366
|
+
errors: r,
|
|
1367
|
+
messagesPosition: J.a.Attached,
|
|
1368
|
+
hasErrors: this.props.showErrorMessages && r && r.length > 0,
|
|
1369
|
+
name: this.props.name,
|
|
1370
|
+
readonly: a,
|
|
1371
|
+
endSlot: r && r.length ? void 0 : s.createElement(Y.b, null, s.createElement(z.a, {
|
|
1372
|
+
icon: i,
|
|
1373
|
+
className: y(Z.icon, o && Z.disabled),
|
|
1374
|
+
onClick: o || a ? void 0 : this.props.onShowPicker
|
|
1375
|
+
})),
|
|
1376
|
+
"data-name": this.props.name
|
|
1377
|
+
}), this.props.showPicker && !a ? s.createElement(Q.a, {
|
|
1378
|
+
mouseDown: !0,
|
|
1379
|
+
handler: this.props.onHidePicker
|
|
1380
|
+
}, t => s.createElement("span", {
|
|
1381
|
+
ref: t
|
|
1382
|
+
}, s.createElement("div", {
|
|
1383
|
+
className: y(Z.picker, Z[e]),
|
|
1384
|
+
key: "0",
|
|
1385
|
+
ref: this._onShowPicker
|
|
1386
|
+
}, this.props.children))) : null);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
X.defaultProps = {
|
|
1392
|
+
showOnFocus: !0
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
class $ extends s.PureComponent {
|
|
1396
|
+
constructor(e) {
|
|
1397
|
+
super(e), this._input = null, this._nativeInputRef = s.createRef(), this._handleInputRef = e => {
|
|
1398
|
+
this._input = e, this.props.inputReference && this.props.inputReference(this._input);
|
|
1399
|
+
}, this._onFocus = () => {
|
|
1400
|
+
this.setState({
|
|
1401
|
+
isFocused: !0
|
|
1402
|
+
});
|
|
1403
|
+
}, this._onBlur = () => {
|
|
1404
|
+
this._nativeInputRef.current && (this._nativeInputRef.current.defaultValue = this.state.value), this.setState({
|
|
1405
|
+
isFocused: !1
|
|
1406
|
+
});
|
|
1407
|
+
}, this._onChange = e => {
|
|
1408
|
+
const {
|
|
1409
|
+
value: t
|
|
1410
|
+
} = e.target;
|
|
1411
|
+
t && (this.setState({
|
|
1412
|
+
value: t
|
|
1413
|
+
}), this.props.onChange(t));
|
|
1414
|
+
}, this.state = {
|
|
1415
|
+
value: e.value,
|
|
1416
|
+
isFocused: !1
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
componentDidMount() {
|
|
1421
|
+
this._nativeInputRef.current && (this._nativeInputRef.current.defaultValue = this.props.value);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
render() {
|
|
1425
|
+
const {
|
|
1426
|
+
className: e,
|
|
1427
|
+
disabled: t,
|
|
1428
|
+
errors: n,
|
|
1429
|
+
InputComponent: o = G.a
|
|
1430
|
+
} = this.props,
|
|
1431
|
+
a = !this.props.readonly && !t,
|
|
1432
|
+
r = this.props.showErrorMessages && n && n.length > 0;
|
|
1433
|
+
return s.createElement("div", {
|
|
1434
|
+
className: Z.pickerInput
|
|
1435
|
+
}, s.createElement(o, {
|
|
1436
|
+
value: this.state.value,
|
|
1437
|
+
readonly: !0,
|
|
1438
|
+
noReadonlyStyles: !0,
|
|
1439
|
+
endSlot: n && n.length ? void 0 : s.createElement(Y.b, null, s.createElement(z.a, {
|
|
1440
|
+
icon: this.props.icon,
|
|
1441
|
+
className: y(Z.icon, t && Z.disabled)
|
|
1442
|
+
})),
|
|
1443
|
+
className: e,
|
|
1444
|
+
inputClassName: Z.textInput,
|
|
1445
|
+
size: this.props.size,
|
|
1446
|
+
disabled: t,
|
|
1447
|
+
hasErrors: r,
|
|
1448
|
+
errors: n,
|
|
1449
|
+
alwaysShowAttachedErrors: !0,
|
|
1450
|
+
messagesPosition: J.a.Attached,
|
|
1451
|
+
name: a ? void 0 : this.props.name,
|
|
1452
|
+
reference: this._handleInputRef,
|
|
1453
|
+
highlight: this.state.isFocused,
|
|
1454
|
+
intent: !r && this.state.isFocused ? "primary" : void 0
|
|
1455
|
+
}), a && s.createElement("input", {
|
|
1456
|
+
ref: this._nativeInputRef,
|
|
1457
|
+
type: this.props.type,
|
|
1458
|
+
className: Z.nativePicker,
|
|
1459
|
+
onChange: this._onChange,
|
|
1460
|
+
onInput: this._onChange,
|
|
1461
|
+
min: this.props.min,
|
|
1462
|
+
max: this.props.max,
|
|
1463
|
+
name: this.props.name,
|
|
1464
|
+
onFocus: this._onFocus,
|
|
1465
|
+
onBlur: this._onBlur
|
|
1466
|
+
}));
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
var ee = n("ldG2"),
|
|
1472
|
+
te = n("77yN");
|
|
1473
|
+
|
|
1474
|
+
class ne extends o.a.PureComponent {
|
|
1475
|
+
constructor(e) {
|
|
1476
|
+
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), this._isValid = e => {
|
|
1477
|
+
if (/^[0-9]{4}(-[0-9]{2}){2}/.test(e)) {
|
|
1478
|
+
const t = new Date(e.concat("T00:00"));
|
|
1479
|
+
return !function (e) {
|
|
1480
|
+
return Number.isNaN(Number(e));
|
|
1481
|
+
}(t) && (!!this.props.noRangeValidation || f(t, this.props.minDate, this.props.maxDate));
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
return !1;
|
|
1485
|
+
}, this._onBlur = e => {
|
|
1486
|
+
var t;
|
|
1487
|
+
if (!this.props.revertInvalidData || (null === (t = this._pickerInputContainerRef.current) || void 0 === t ? void 0 : t.contains(e.relatedTarget))) return;
|
|
1488
|
+
const {
|
|
1489
|
+
value: n
|
|
1490
|
+
} = e.target;
|
|
1491
|
+
|
|
1492
|
+
if (!this._isValid(n)) {
|
|
1493
|
+
const t = new Date(this.state.date);
|
|
1494
|
+
this.setState({
|
|
1495
|
+
pickerInputKey: e.timeStamp,
|
|
1496
|
+
date: t,
|
|
1497
|
+
isInvalid: !1
|
|
1498
|
+
}), this.props.onPick(t);
|
|
1499
|
+
}
|
|
1500
|
+
}, this._onType = e => {
|
|
1501
|
+
const t = this._isValid(e) ? new Date(e.concat("T00:00")) : null;
|
|
1502
|
+
t ? this.setState({
|
|
1503
|
+
date: t,
|
|
1504
|
+
isInvalid: !1
|
|
1505
|
+
}) : this.setState({
|
|
1506
|
+
isInvalid: !0
|
|
1507
|
+
}), this.props.onPick(t);
|
|
1508
|
+
}, this._onSelect = e => {
|
|
1509
|
+
this.setState({
|
|
1510
|
+
date: e,
|
|
1511
|
+
showCalendar: !1,
|
|
1512
|
+
isInvalid: !1
|
|
1513
|
+
}), this.props.onPick(e);
|
|
1514
|
+
}, this._showCalendar = () => {
|
|
1515
|
+
this.setState({
|
|
1516
|
+
showCalendar: !0
|
|
1517
|
+
});
|
|
1518
|
+
}, this._hideCalendar = () => {
|
|
1519
|
+
this.setState({
|
|
1520
|
+
showCalendar: !1
|
|
1521
|
+
});
|
|
1522
|
+
}, this._getErrors = () => {
|
|
1523
|
+
const e = this.props.errors ? [...this.props.errors] : [];
|
|
1524
|
+
return this.state.isInvalid && e.push(window.t("Please enter the right date format yyyy-mm-dd")), e;
|
|
1525
|
+
}, this.state = {
|
|
1526
|
+
pickerInputKey: 0,
|
|
1527
|
+
date: e.initial,
|
|
1528
|
+
showCalendar: !1,
|
|
1529
|
+
isInvalid: !this._isValid(this._dateFormatter.formatLocal(e.initial))
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
render() {
|
|
1534
|
+
return A.mobiletouch ? o.a.createElement($, {
|
|
1535
|
+
value: this._dateFormatter.formatLocal(this.state.date),
|
|
1536
|
+
type: "date",
|
|
1537
|
+
onChange: this._onType,
|
|
1538
|
+
icon: te,
|
|
1539
|
+
disabled: this.props.disabled,
|
|
1540
|
+
size: this.props.size,
|
|
1541
|
+
min: this.props.minDate && this._dateFormatter.formatLocal(this.props.minDate),
|
|
1542
|
+
max: this.props.maxDate && this._dateFormatter.formatLocal(this.props.maxDate),
|
|
1543
|
+
errors: this._getErrors(),
|
|
1544
|
+
showErrorMessages: this.props.showErrorMessages,
|
|
1545
|
+
name: this.props.name,
|
|
1546
|
+
readonly: this.props.readonly,
|
|
1547
|
+
className: y(this._getFontSizeClassName(this.props.size), this.props.className),
|
|
1548
|
+
inputReference: this.props.inputReference,
|
|
1549
|
+
InputComponent: this.props.InputComponent
|
|
1550
|
+
}) : o.a.createElement("div", {
|
|
1551
|
+
ref: this._pickerInputContainerRef
|
|
1552
|
+
}, o.a.createElement(X, {
|
|
1553
|
+
key: this.state.pickerInputKey,
|
|
1554
|
+
value: this._dateFormatter.formatLocal(this.state.date),
|
|
1555
|
+
inputRegex: /[0-9.]/,
|
|
1556
|
+
fixValue: this._fixValue,
|
|
1557
|
+
onType: this._onType,
|
|
1558
|
+
onBlur: this._onBlur,
|
|
1559
|
+
onShowPicker: this._showCalendar,
|
|
1560
|
+
onHidePicker: this._hideCalendar,
|
|
1561
|
+
showPicker: this.state.showCalendar && this.props.withCalendar,
|
|
1562
|
+
showOnFocus: this.props.showOnFocus,
|
|
1563
|
+
icon: te,
|
|
1564
|
+
disabled: this.props.disabled,
|
|
1565
|
+
size: this.props.size,
|
|
1566
|
+
errors: this._getErrors(),
|
|
1567
|
+
showErrorMessages: this.props.showErrorMessages,
|
|
1568
|
+
name: this.props.name,
|
|
1569
|
+
readonly: this.props.readonly,
|
|
1570
|
+
position: this.props.position,
|
|
1571
|
+
className: y(this._getFontSizeClassName(this.props.size), this.props.className),
|
|
1572
|
+
inputReference: this.props.inputReference,
|
|
1573
|
+
InputComponent: this.props.InputComponent
|
|
1574
|
+
}, o.a.createElement(V, {
|
|
1575
|
+
selectedDate: this.state.date,
|
|
1576
|
+
maxDate: this.props.maxDate,
|
|
1577
|
+
minDate: this.props.minDate,
|
|
1578
|
+
onSelect: this._onSelect
|
|
1579
|
+
})));
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
1583
|
+
this.props.initial !== e.initial && this.setState({
|
|
1584
|
+
date: e.initial
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
_getFontSizeClassName(e) {
|
|
1589
|
+
return e ? "large" === e ? ee.b.FontSizeLarge : ee.b.FontSizeMedium : void 0;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
ne.defaultProps = {
|
|
1595
|
+
position: "fixed",
|
|
1596
|
+
withCalendar: !0
|
|
1597
|
+
};
|
|
1598
|
+
var se = n("8JZL");
|
|
1599
|
+
|
|
1600
|
+
function oe(e) {
|
|
1601
|
+
const {
|
|
1602
|
+
className: t,
|
|
1603
|
+
text: n
|
|
1604
|
+
} = e;
|
|
1605
|
+
return o.a.createElement("span", {
|
|
1606
|
+
className: k()(se.tooltip, t)
|
|
1607
|
+
}, n);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
var ae = n("/Wph"),
|
|
1611
|
+
re = n("F6Wo");
|
|
1612
|
+
|
|
1613
|
+
function ie(e) {
|
|
1614
|
+
const {
|
|
1615
|
+
hasErrors: t,
|
|
1616
|
+
onClick: n,
|
|
1617
|
+
errors: s
|
|
1618
|
+
} = e,
|
|
1619
|
+
a = _objectWithoutProperties(e, _excluded4);
|
|
1620
|
+
|
|
1621
|
+
return o.a.createElement("div", {
|
|
1622
|
+
className: re.container,
|
|
1623
|
+
onClick: n
|
|
1624
|
+
}, o.a.createElement(G.a, _objectSpread(_objectSpread({}, a), {}, {
|
|
1625
|
+
className: re.date,
|
|
1626
|
+
hasErrors: t,
|
|
1627
|
+
errors: [],
|
|
1628
|
+
endSlot: !t && o.a.createElement(Y.b, {
|
|
1629
|
+
icon: !0,
|
|
1630
|
+
interactive: !1
|
|
1631
|
+
}, o.a.createElement(z.a, {
|
|
1632
|
+
icon: ae,
|
|
1633
|
+
className: re.icon
|
|
1634
|
+
}))
|
|
1635
|
+
})), t && o.a.createElement(oe, {
|
|
1636
|
+
text: Object(O.t)("Please enter the right date"),
|
|
1637
|
+
className: re.tooltip
|
|
1638
|
+
}));
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
const ce = o.a.createContext({
|
|
1642
|
+
isActive: !1,
|
|
1643
|
+
isFocused: !1
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1646
|
+
function le(e) {
|
|
1647
|
+
const {
|
|
1648
|
+
value: t,
|
|
1649
|
+
reference: n,
|
|
1650
|
+
isActive: a,
|
|
1651
|
+
onPick: r,
|
|
1652
|
+
onFocus: i
|
|
1653
|
+
} = e,
|
|
1654
|
+
[c, l] = Object(s.useState)(!1);
|
|
1655
|
+
return o.a.createElement(ce.Provider, {
|
|
1656
|
+
value: {
|
|
1657
|
+
isActive: a,
|
|
1658
|
+
isFocused: c
|
|
1659
|
+
}
|
|
1660
|
+
}, o.a.createElement("div", {
|
|
1661
|
+
onFocus: function onFocus() {
|
|
1662
|
+
l(!0), i && i();
|
|
1663
|
+
},
|
|
1664
|
+
onBlur: function onBlur() {
|
|
1665
|
+
l(!1);
|
|
1666
|
+
}
|
|
1667
|
+
}, o.a.createElement(ne, {
|
|
1668
|
+
initial: t,
|
|
1669
|
+
inputReference: n,
|
|
1670
|
+
InputComponent: ue,
|
|
1671
|
+
withCalendar: !1,
|
|
1672
|
+
onPick: function onPick(e) {
|
|
1673
|
+
if (!e) return;
|
|
1674
|
+
r(new Date(e));
|
|
1675
|
+
},
|
|
1676
|
+
revertInvalidData: !0,
|
|
1677
|
+
name: e.name
|
|
1678
|
+
})));
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
function ue(e) {
|
|
1682
|
+
const {
|
|
1683
|
+
isActive: t,
|
|
1684
|
+
isFocused: n
|
|
1685
|
+
} = Object(s.useContext)(ce);
|
|
1686
|
+
return o.a.createElement(ie, _objectSpread(_objectSpread({}, e), {}, {
|
|
1687
|
+
highlight: t || n
|
|
1688
|
+
}));
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
var de = n("qZIh");
|
|
1692
|
+
|
|
1693
|
+
function he(e) {
|
|
1694
|
+
const {
|
|
1695
|
+
value: t,
|
|
1696
|
+
isDisabled: n,
|
|
1697
|
+
onPick: s
|
|
1698
|
+
} = e;
|
|
1699
|
+
return o.a.createElement(de.a, {
|
|
1700
|
+
value: (a = t, l(a.getHours()) + ":" + l(a.getMinutes())),
|
|
1701
|
+
onChange: s,
|
|
1702
|
+
disabled: n
|
|
1703
|
+
});
|
|
1704
|
+
var a;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
var pe = n("vx8J");
|
|
1708
|
+
|
|
1709
|
+
function me(e) {
|
|
1710
|
+
return o.a.createElement(V, _objectSpread(_objectSpread({}, e), {}, {
|
|
1711
|
+
className: pe.calendar,
|
|
1712
|
+
popupStyle: !1
|
|
1713
|
+
}));
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
function fe(e, t) {
|
|
1717
|
+
const n = new Date(t);
|
|
1718
|
+
return n.setFullYear(e.getFullYear()), n.setMonth(e.getMonth()), n.setDate(e.getDate()), n;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
function be(e, t) {
|
|
1722
|
+
const n = new Date(t);
|
|
1723
|
+
return n.setHours(e.getHours()), n.setMinutes(e.getMinutes()), n;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
function ve(e) {
|
|
1727
|
+
const {
|
|
1728
|
+
dateOnly: t,
|
|
1729
|
+
onCalendarMonthSwitch: n
|
|
1730
|
+
} = e,
|
|
1731
|
+
{
|
|
1732
|
+
date: a,
|
|
1733
|
+
setDate: r
|
|
1734
|
+
} = Object(i.ensureNotNull)(Object(s.useContext)(_)),
|
|
1735
|
+
c = Object(s.useRef)(null),
|
|
1736
|
+
l = Object(s.useRef)(null);
|
|
1737
|
+
return Object(s.useEffect)(() => {
|
|
1738
|
+
_e || null === l.current || l.current.focus();
|
|
1739
|
+
}, []), o.a.createElement("div", {
|
|
1740
|
+
ref: c,
|
|
1741
|
+
tabIndex: -1
|
|
1742
|
+
}, o.a.createElement(M, null, o.a.createElement(le, {
|
|
1743
|
+
reference: function reference(e) {
|
|
1744
|
+
l.current = e;
|
|
1745
|
+
},
|
|
1746
|
+
value: new Date(a),
|
|
1747
|
+
onPick: function onPick(e) {
|
|
1748
|
+
const t = fe(e, a);
|
|
1749
|
+
r(t);
|
|
1750
|
+
},
|
|
1751
|
+
isActive: !_e
|
|
1752
|
+
}), o.a.createElement(he, {
|
|
1753
|
+
value: new Date(a),
|
|
1754
|
+
isDisabled: t,
|
|
1755
|
+
onPick: function onPick(e) {
|
|
1756
|
+
var t;
|
|
1757
|
+
const [n, s] = e.split(":"),
|
|
1758
|
+
o = new Date();
|
|
1759
|
+
o.setHours(Number(n)), o.setMinutes(Number(s));
|
|
1760
|
+
const i = be(o, a);
|
|
1761
|
+
r(i), _e || null === (t = c.current) || void 0 === t || t.focus({
|
|
1762
|
+
preventScroll: !0
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
})), !_e && o.a.createElement(me, {
|
|
1766
|
+
key: "".concat(a.getFullYear(), "-").concat(a.getMonth(), "-").concat(a.getDate()),
|
|
1767
|
+
selectedDate: new Date(a),
|
|
1768
|
+
onSelect: function onSelect(e) {
|
|
1769
|
+
var t;
|
|
1770
|
+
const n = fe(e, a);
|
|
1771
|
+
r(n), null === (t = c.current) || void 0 === t || t.focus({
|
|
1772
|
+
preventScroll: !0
|
|
1773
|
+
});
|
|
1774
|
+
},
|
|
1775
|
+
onMonthSwitch: n,
|
|
1776
|
+
maxDate: new Date()
|
|
1777
|
+
}));
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
function ge(e) {
|
|
1781
|
+
const {
|
|
1782
|
+
dateOnly: t,
|
|
1783
|
+
onCalendarMonthSwitch: n,
|
|
1784
|
+
onDateInputFocus: a
|
|
1785
|
+
} = e,
|
|
1786
|
+
{
|
|
1787
|
+
dateFrom: r,
|
|
1788
|
+
dateTo: c,
|
|
1789
|
+
setDateFrom: l,
|
|
1790
|
+
setDateTo: u
|
|
1791
|
+
} = Object(i.ensureNotNull)(Object(s.useContext)(N)),
|
|
1792
|
+
[d, h] = Object(s.useState)("from"),
|
|
1793
|
+
p = Object(s.useRef)(null),
|
|
1794
|
+
m = Object(s.useRef)(null),
|
|
1795
|
+
f = Object(s.useRef)(null),
|
|
1796
|
+
b = Object(s.useMemo)(() => "from" === d ? new Date(r) : new Date(c), [d, c, r]);
|
|
1797
|
+
return Object(s.useEffect)(() => {
|
|
1798
|
+
_e || null === m.current || m.current.focus();
|
|
1799
|
+
}, []), o.a.createElement("div", {
|
|
1800
|
+
ref: p,
|
|
1801
|
+
tabIndex: -1
|
|
1802
|
+
}, o.a.createElement(M, null, o.a.createElement(le, {
|
|
1803
|
+
value: r,
|
|
1804
|
+
reference: function reference(e) {
|
|
1805
|
+
m.current = e;
|
|
1806
|
+
},
|
|
1807
|
+
isActive: !_e && "from" === d,
|
|
1808
|
+
onPick: function onPick(e) {
|
|
1809
|
+
const t = fe(e, r);
|
|
1810
|
+
l(t);
|
|
1811
|
+
},
|
|
1812
|
+
onFocus: function onFocus() {
|
|
1813
|
+
h("from"), a();
|
|
1814
|
+
},
|
|
1815
|
+
name: "start-date-range"
|
|
1816
|
+
}), o.a.createElement(he, {
|
|
1817
|
+
value: r,
|
|
1818
|
+
isDisabled: t,
|
|
1819
|
+
onPick: function onPick(e) {
|
|
1820
|
+
v(e, r, l);
|
|
1821
|
+
}
|
|
1822
|
+
})), o.a.createElement(M, null, o.a.createElement(le, {
|
|
1823
|
+
value: c,
|
|
1824
|
+
reference: function reference(e) {
|
|
1825
|
+
f.current = e;
|
|
1826
|
+
},
|
|
1827
|
+
isActive: !_e && "to" === d,
|
|
1828
|
+
onPick: function onPick(e) {
|
|
1829
|
+
const t = fe(e, c);
|
|
1830
|
+
u(t);
|
|
1831
|
+
},
|
|
1832
|
+
onFocus: function onFocus() {
|
|
1833
|
+
h("to"), a();
|
|
1834
|
+
},
|
|
1835
|
+
name: "end-date-range"
|
|
1836
|
+
}), o.a.createElement(he, {
|
|
1837
|
+
value: c,
|
|
1838
|
+
isDisabled: t,
|
|
1839
|
+
onPick: function onPick(e) {
|
|
1840
|
+
v(e, c, u);
|
|
1841
|
+
}
|
|
1842
|
+
})), !_e && o.a.createElement(me, {
|
|
1843
|
+
key: "".concat(b.getFullYear(), "-").concat(b.getMonth(), "-").concat(b.getDate()),
|
|
1844
|
+
selectedDate: new Date(b),
|
|
1845
|
+
onSelect: function onSelect(e) {
|
|
1846
|
+
const t = fe(e, "from" === d ? r : c);
|
|
1847
|
+
({
|
|
1848
|
+
from: () => {
|
|
1849
|
+
var e;
|
|
1850
|
+
l(t), null === (e = f.current) || void 0 === e || e.focus({
|
|
1851
|
+
preventScroll: !0
|
|
1852
|
+
});
|
|
1853
|
+
},
|
|
1854
|
+
to: () => {
|
|
1855
|
+
var e;
|
|
1856
|
+
u(t), null === (e = p.current) || void 0 === e || e.focus({
|
|
1857
|
+
preventScroll: !0
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
})[d]();
|
|
1861
|
+
},
|
|
1862
|
+
onMonthSwitch: n,
|
|
1863
|
+
highlightedFrom: new Date(r),
|
|
1864
|
+
highlightedTo: new Date(c),
|
|
1865
|
+
maxDate: "from" === d ? new Date(c) : void 0,
|
|
1866
|
+
minDate: "to" === d ? new Date(r) : void 0
|
|
1867
|
+
}));
|
|
1868
|
+
|
|
1869
|
+
function v(e, t, n) {
|
|
1870
|
+
var s;
|
|
1871
|
+
const [o, a] = e.split(":"),
|
|
1872
|
+
r = new Date();
|
|
1873
|
+
r.setHours(Number(o)), r.setMinutes(Number(a));
|
|
1874
|
+
n(be(r, t)), _e || null === (s = p.current) || void 0 === s || s.focus({
|
|
1875
|
+
preventScroll: !0
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
var we = n("aDg1"),
|
|
1881
|
+
Ce = n("/KDZ"),
|
|
1882
|
+
De = n("FT3R");
|
|
1883
|
+
|
|
1884
|
+
const _e = A.mobiletouch,
|
|
1885
|
+
Ee = () => !0,
|
|
1886
|
+
Ne = {
|
|
1887
|
+
byId: {
|
|
1888
|
+
Date: {
|
|
1889
|
+
title: Object(O.t)("Date")
|
|
1890
|
+
},
|
|
1891
|
+
CustomRange: {
|
|
1892
|
+
title: Object(O.t)("Custom range")
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
allIds: ["Date", "CustomRange"]
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
function Se(e) {
|
|
1899
|
+
const {
|
|
1900
|
+
dateOnly: t,
|
|
1901
|
+
onClose: n,
|
|
1902
|
+
onGoToDate: a,
|
|
1903
|
+
onGoToRange: r
|
|
1904
|
+
} = e,
|
|
1905
|
+
c = Object(s.useRef)(null),
|
|
1906
|
+
[l, u] = Object(s.useState)(j.a.getValue("GoToDialog.activeTab", "Date")),
|
|
1907
|
+
[d, h] = Object(s.useState)(0),
|
|
1908
|
+
{
|
|
1909
|
+
date: p,
|
|
1910
|
+
isValid: m
|
|
1911
|
+
} = Object(i.ensureNotNull)(Object(s.useContext)(_)),
|
|
1912
|
+
{
|
|
1913
|
+
dateFrom: f,
|
|
1914
|
+
dateTo: b,
|
|
1915
|
+
isValid: v
|
|
1916
|
+
} = Object(i.ensureNotNull)(Object(s.useContext)(N));
|
|
1917
|
+
return Object(s.useEffect)(() => (x.subscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND, D, null), () => {
|
|
1918
|
+
x.unsubscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND, D, null);
|
|
1919
|
+
}), [n]), Object(s.useEffect)(() => {
|
|
1920
|
+
null !== c.current && c.current();
|
|
1921
|
+
}, [d, l, p, f, b]), o.a.createElement(Ce.a, {
|
|
1922
|
+
rule: P.a.TabletSmall
|
|
1923
|
+
}, e => o.a.createElement(F.a, {
|
|
1924
|
+
className: k()(De.dialogWrapper, e && De.dialogWrapperSmall),
|
|
1925
|
+
title: Object(O.t)("Go to"),
|
|
1926
|
+
dataName: "go-to-date-dialog",
|
|
1927
|
+
render: g,
|
|
1928
|
+
defaultActionOnClose: "cancel",
|
|
1929
|
+
onClose: D,
|
|
1930
|
+
onClickOutside: D,
|
|
1931
|
+
onCancel: D,
|
|
1932
|
+
onSubmit: C,
|
|
1933
|
+
submitButtonDisabled: w(),
|
|
1934
|
+
submitButtonText: Object(O.t)("Go to"),
|
|
1935
|
+
forceCloseOnEsc: Ee,
|
|
1936
|
+
shouldForceFocus: !1,
|
|
1937
|
+
fullScreen: e,
|
|
1938
|
+
isOpened: !0
|
|
1939
|
+
}));
|
|
1940
|
+
|
|
1941
|
+
function g(_ref) {
|
|
1942
|
+
let {
|
|
1943
|
+
requestResize: e
|
|
1944
|
+
} = _ref;
|
|
1945
|
+
return c.current = e, o.a.createElement(o.a.Fragment, null, o.a.createElement("div", {
|
|
1946
|
+
className: De.tabs
|
|
1947
|
+
}, o.a.createElement(we.a, {
|
|
1948
|
+
activeTabId: l,
|
|
1949
|
+
tabs: Ne,
|
|
1950
|
+
onSelect: E
|
|
1951
|
+
})), o.a.createElement("div", {
|
|
1952
|
+
className: k()(De.content, _e && De.contentMobile)
|
|
1953
|
+
}, o.a.createElement("div", {
|
|
1954
|
+
className: De.bodyWrapper
|
|
1955
|
+
}, o.a.createElement(Oe, {
|
|
1956
|
+
onCalendarMonthSwitch: S,
|
|
1957
|
+
onDateInputFocus: S,
|
|
1958
|
+
activeTab: l,
|
|
1959
|
+
dateOnly: t
|
|
1960
|
+
}))));
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
function w() {
|
|
1964
|
+
return {
|
|
1965
|
+
CustomRange: !v,
|
|
1966
|
+
Date: !m
|
|
1967
|
+
}[l];
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
function C() {
|
|
1971
|
+
switch (l) {
|
|
1972
|
+
case "Date":
|
|
1973
|
+
a(p);
|
|
1974
|
+
break;
|
|
1975
|
+
|
|
1976
|
+
case "CustomRange":
|
|
1977
|
+
r(f, b);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
function D() {
|
|
1982
|
+
n();
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
function E(e) {
|
|
1986
|
+
u(e), j.a.setValue("GoToDialog.activeTab", e);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
function S() {
|
|
1990
|
+
h(d + 1);
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
function Oe(e) {
|
|
1995
|
+
const {
|
|
1996
|
+
activeTab: t,
|
|
1997
|
+
dateOnly: n,
|
|
1998
|
+
onCalendarMonthSwitch: s,
|
|
1999
|
+
onDateInputFocus: a
|
|
2000
|
+
} = e;
|
|
2001
|
+
|
|
2002
|
+
switch (t) {
|
|
2003
|
+
case "Date":
|
|
2004
|
+
return o.a.createElement(ve, {
|
|
2005
|
+
dateOnly: n,
|
|
2006
|
+
onCalendarMonthSwitch: s
|
|
2007
|
+
});
|
|
2008
|
+
|
|
2009
|
+
case "CustomRange":
|
|
2010
|
+
return o.a.createElement(ge, {
|
|
2011
|
+
dateOnly: n,
|
|
2012
|
+
onCalendarMonthSwitch: s,
|
|
2013
|
+
onDateInputFocus: a
|
|
2014
|
+
});
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
function ye(e) {
|
|
2019
|
+
const {
|
|
2020
|
+
dateOnly: t,
|
|
2021
|
+
onClose: n,
|
|
2022
|
+
onGoToDate: s,
|
|
2023
|
+
onGoToRange: a,
|
|
2024
|
+
initialGoToDate: r,
|
|
2025
|
+
initialRanges: i
|
|
2026
|
+
} = e;
|
|
2027
|
+
return o.a.createElement(E, {
|
|
2028
|
+
initialGoToDate: r
|
|
2029
|
+
}, o.a.createElement(S, {
|
|
2030
|
+
initialRanges: i
|
|
2031
|
+
}, o.a.createElement(Se, {
|
|
2032
|
+
dateOnly: t,
|
|
2033
|
+
onClose: n,
|
|
2034
|
+
onGoToDate: s,
|
|
2035
|
+
onGoToRange: a
|
|
2036
|
+
})));
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
var ke = n("pPtI"),
|
|
2040
|
+
xe = n("k9/m");
|
|
2041
|
+
const Ie = new class {
|
|
2042
|
+
constructor() {
|
|
2043
|
+
this._hasError = !1;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
getItemOrDefault(e, t) {
|
|
2047
|
+
return !sessionStorage || this._hasError ? t : sessionStorage.getItem(e);
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
setItem(e) {
|
|
2051
|
+
let t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "true";
|
|
2052
|
+
|
|
2053
|
+
try {
|
|
2054
|
+
sessionStorage.setItem(e, t), this._hasError = !1;
|
|
2055
|
+
} catch (e) {
|
|
2056
|
+
this._hasError = !0;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
}();
|
|
2061
|
+
n.d(t, "showGoToDateDialog", function () {
|
|
2062
|
+
return Te;
|
|
2063
|
+
});
|
|
2064
|
+
const je = new w.a();
|
|
2065
|
+
|
|
2066
|
+
function Te(e) {
|
|
2067
|
+
if (je.isOpened("goTo")) return;
|
|
2068
|
+
if (!e.hasModel()) return;
|
|
2069
|
+
const t = e.model(),
|
|
2070
|
+
n = document.createElement("div"),
|
|
2071
|
+
s = o.a.createElement(ye, {
|
|
2072
|
+
onClose: a,
|
|
2073
|
+
dateOnly: t.model().mainSeries().isDWM(),
|
|
2074
|
+
initialGoToDate: Pe(),
|
|
2075
|
+
initialRanges: Fe(e),
|
|
2076
|
+
onGoToDate: e => {
|
|
2077
|
+
!function (e, t) {
|
|
2078
|
+
Ie.setItem("goToDateTabLastPickedDate", String(t.valueOf()));
|
|
2079
|
+
if (void 0 === e.model().timeScale().tickMarks().minIndex) return;
|
|
2080
|
+
const n = g(t).valueOf();
|
|
2081
|
+
e.model().gotoTime(n).then(t => {
|
|
2082
|
+
const n = e.model().mainSeries();
|
|
2083
|
+
void 0 === t ? n.clearGotoDateResult() : n.setGotoDateResult(t);
|
|
2084
|
+
});
|
|
2085
|
+
}(t, e), a();
|
|
2086
|
+
},
|
|
2087
|
+
onGoToRange: (t, n) => {
|
|
2088
|
+
!function (e, t, n) {
|
|
2089
|
+
const s = function (e) {
|
|
2090
|
+
const t = e.timezone();
|
|
2091
|
+
if ("exchange" !== t) return t;
|
|
2092
|
+
const n = e.mainSeries().symbolInfo();
|
|
2093
|
+
return null == n ? void 0 : n.timezone;
|
|
2094
|
+
}(e.model().model());
|
|
2095
|
+
|
|
2096
|
+
if (!s) return;
|
|
2097
|
+
|
|
2098
|
+
const o = c.linking.interval.value(),
|
|
2099
|
+
a = o && Object(ke.normalizeIntervalString)(o),
|
|
2100
|
+
r = D.a.get_timezone(s),
|
|
2101
|
+
i = e => Object(C.cal_to_utc)(r, new Date(e)),
|
|
2102
|
+
l = g(t).valueOf(),
|
|
2103
|
+
u = g(n).valueOf(),
|
|
2104
|
+
d = {
|
|
2105
|
+
val: {
|
|
2106
|
+
type: "time-range",
|
|
2107
|
+
from: i(l) / 1e3,
|
|
2108
|
+
to: i(u) / 1e3
|
|
2109
|
+
},
|
|
2110
|
+
res: a
|
|
2111
|
+
};
|
|
2112
|
+
|
|
2113
|
+
e.chartWidgetCollection().setTimeFrame(d);
|
|
2114
|
+
}(e, t, n), a();
|
|
2115
|
+
}
|
|
2116
|
+
});
|
|
2117
|
+
|
|
2118
|
+
function a() {
|
|
2119
|
+
r.a.unmountComponentAtNode(n), je.setAsClosed("goTo");
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
r.a.render(s, n), je.setAsOpened("goTo");
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
function Pe() {
|
|
2126
|
+
const e = Ie.getItemOrDefault("goToDateTabLastPickedDate", null);
|
|
2127
|
+
return null === e ? u(new Date()) : new Date(Number(e));
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
function Fe(e) {
|
|
2131
|
+
const t = function (e) {
|
|
2132
|
+
const t = e.model().timeScale(),
|
|
2133
|
+
n = t.visibleBarsStrictRange();
|
|
2134
|
+
if (null === n) return;
|
|
2135
|
+
const s = e.model().mainSeries(),
|
|
2136
|
+
o = s.nearestIndex(n.firstBar(), xe.PlotRowSearchMode.NearestRight),
|
|
2137
|
+
a = s.nearestIndex(n.lastBar(), xe.PlotRowSearchMode.NearestLeft);
|
|
2138
|
+
if (void 0 === o || void 0 === a) return;
|
|
2139
|
+
return {
|
|
2140
|
+
from: Object(i.ensureNotNull)(t.indexToUserTime(o)),
|
|
2141
|
+
to: Object(i.ensureNotNull)(t.indexToUserTime(a))
|
|
2142
|
+
};
|
|
2143
|
+
}(e);
|
|
2144
|
+
|
|
2145
|
+
return t ? {
|
|
2146
|
+
from: v(t.from),
|
|
2147
|
+
to: v(t.to)
|
|
2148
|
+
} : {
|
|
2149
|
+
from: v(new Date()),
|
|
2150
|
+
to: v(new Date())
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
uhCe: function uhCe(e, t, n) {
|
|
2155
|
+
"use strict";
|
|
2156
|
+
|
|
2157
|
+
n.d(t, "a", function () {
|
|
2158
|
+
return o;
|
|
2159
|
+
});
|
|
2160
|
+
var s = n("ASyk");
|
|
2161
|
+
const o = {
|
|
2162
|
+
SmallHeight: s["small-height-breakpoint"],
|
|
2163
|
+
TabletSmall: s["tablet-small-breakpoint"],
|
|
2164
|
+
TabletNormal: s["tablet-normal-breakpoint"]
|
|
2165
|
+
};
|
|
2166
|
+
},
|
|
2167
|
+
v1bN: function v1bN(e, t, n) {
|
|
2168
|
+
e.exports = {
|
|
2169
|
+
"tablet-small-breakpoint": "screen and (max-width: 428px)",
|
|
2170
|
+
item: "item-2IihgTnv",
|
|
2171
|
+
hovered: "hovered-2IihgTnv",
|
|
2172
|
+
isDisabled: "isDisabled-2IihgTnv",
|
|
2173
|
+
isActive: "isActive-2IihgTnv",
|
|
2174
|
+
shortcut: "shortcut-2IihgTnv",
|
|
2175
|
+
toolbox: "toolbox-2IihgTnv",
|
|
2176
|
+
withIcon: "withIcon-2IihgTnv",
|
|
2177
|
+
icon: "icon-2IihgTnv",
|
|
2178
|
+
labelRow: "labelRow-2IihgTnv",
|
|
2179
|
+
label: "label-2IihgTnv",
|
|
2180
|
+
showOnHover: "showOnHover-2IihgTnv"
|
|
2181
|
+
};
|
|
2182
|
+
},
|
|
2183
|
+
vx8J: function vx8J(e, t, n) {
|
|
2184
|
+
e.exports = {
|
|
2185
|
+
calendar: "calendar-1NjzAl_S"
|
|
2186
|
+
};
|
|
2187
|
+
},
|
|
2188
|
+
ycFu: function ycFu(e, t, n) {
|
|
2189
|
+
"use strict";
|
|
2190
|
+
|
|
2191
|
+
n.d(t, "a", function () {
|
|
2192
|
+
return h;
|
|
2193
|
+
});
|
|
2194
|
+
var s = n("q1tI"),
|
|
2195
|
+
o = n.n(s),
|
|
2196
|
+
a = n("TSYQ"),
|
|
2197
|
+
r = n.n(a),
|
|
2198
|
+
i = n("mwqF"),
|
|
2199
|
+
c = n("Eyy1"),
|
|
2200
|
+
l = (n("YFKU"), n("/3z9")),
|
|
2201
|
+
u = n("g89m"),
|
|
2202
|
+
d = n("8NUT");
|
|
2203
|
+
|
|
2204
|
+
class h extends o.a.PureComponent {
|
|
2205
|
+
constructor() {
|
|
2206
|
+
super(...arguments), this._dialogRef = o.a.createRef(), this._handleClose = () => {
|
|
2207
|
+
const {
|
|
2208
|
+
defaultActionOnClose: e,
|
|
2209
|
+
onSubmit: t,
|
|
2210
|
+
onCancel: n,
|
|
2211
|
+
onClose: s
|
|
2212
|
+
} = this.props;
|
|
2213
|
+
|
|
2214
|
+
switch (e) {
|
|
2215
|
+
case "submit":
|
|
2216
|
+
t();
|
|
2217
|
+
break;
|
|
2218
|
+
|
|
2219
|
+
case "cancel":
|
|
2220
|
+
n();
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
s();
|
|
2224
|
+
}, this._handleCancel = () => {
|
|
2225
|
+
this.props.onCancel(), this.props.onClose();
|
|
2226
|
+
}, this._handleKeyDown = e => {
|
|
2227
|
+
const {
|
|
2228
|
+
onSubmit: t,
|
|
2229
|
+
submitButtonDisabled: n,
|
|
2230
|
+
submitOnEnterKey: s
|
|
2231
|
+
} = this.props;
|
|
2232
|
+
|
|
2233
|
+
switch (Object(l.hashFromEvent)(e)) {
|
|
2234
|
+
case 13:
|
|
2235
|
+
!n && s && (e.preventDefault(), t());
|
|
2236
|
+
}
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
render() {
|
|
2241
|
+
const _this$props = this.props,
|
|
2242
|
+
{
|
|
2243
|
+
render: e,
|
|
2244
|
+
onClose: t,
|
|
2245
|
+
onSubmit: n,
|
|
2246
|
+
onCancel: s,
|
|
2247
|
+
footerLeftRenderer: a,
|
|
2248
|
+
submitButtonText: r,
|
|
2249
|
+
submitButtonDisabled: i,
|
|
2250
|
+
defaultActionOnClose: c,
|
|
2251
|
+
submitOnEnterKey: l
|
|
2252
|
+
} = _this$props,
|
|
2253
|
+
d = _objectWithoutProperties(_this$props, _excluded5);
|
|
2254
|
+
|
|
2255
|
+
return o.a.createElement(u.a, _objectSpread(_objectSpread({}, d), {}, {
|
|
2256
|
+
ref: this._dialogRef,
|
|
2257
|
+
onKeyDown: this._handleKeyDown,
|
|
2258
|
+
render: this._renderChildren(),
|
|
2259
|
+
onClose: this._handleClose
|
|
2260
|
+
}));
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
focus() {
|
|
2264
|
+
Object(c.ensureNotNull)(this._dialogRef.current).focus();
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
_renderChildren() {
|
|
2268
|
+
return e => {
|
|
2269
|
+
const {
|
|
2270
|
+
render: t,
|
|
2271
|
+
footerLeftRenderer: n,
|
|
2272
|
+
additionalButtons: s,
|
|
2273
|
+
submitButtonText: a,
|
|
2274
|
+
submitButtonDisabled: c,
|
|
2275
|
+
onSubmit: l,
|
|
2276
|
+
cancelButtonText: u,
|
|
2277
|
+
showCancelButton: h = !0,
|
|
2278
|
+
submitButtonClassName: p,
|
|
2279
|
+
cancelButtonClassName: m,
|
|
2280
|
+
buttonsWrapperClassName: f
|
|
2281
|
+
} = this.props;
|
|
2282
|
+
return o.a.createElement(o.a.Fragment, null, t(e), o.a.createElement("div", {
|
|
2283
|
+
className: d.footer
|
|
2284
|
+
}, n && n(e.isSmallWidth), o.a.createElement("div", {
|
|
2285
|
+
className: r()(d.buttons, f)
|
|
2286
|
+
}, s, h && o.a.createElement(i.a, {
|
|
2287
|
+
className: m,
|
|
2288
|
+
name: "cancel",
|
|
2289
|
+
appearance: "stroke",
|
|
2290
|
+
onClick: this._handleCancel
|
|
2291
|
+
}, null != u ? u : window.t("Cancel")), o.a.createElement("span", {
|
|
2292
|
+
className: d.submitButton
|
|
2293
|
+
}, o.a.createElement(i.a, {
|
|
2294
|
+
className: p,
|
|
2295
|
+
disabled: c,
|
|
2296
|
+
name: "submit",
|
|
2297
|
+
onClick: l,
|
|
2298
|
+
"data-name": "submit-button"
|
|
2299
|
+
}, null != a ? a : window.t("Ok"))))));
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
h.defaultProps = {
|
|
2306
|
+
defaultActionOnClose: "submit",
|
|
2307
|
+
submitOnEnterKey: !0
|
|
2308
|
+
};
|
|
2309
|
+
},
|
|
2310
|
+
zztK: function zztK(e, t) {
|
|
2311
|
+
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>';
|
|
2312
|
+
}
|
|
2313
|
+
}]);
|