@stlite/desktop 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dump_artifacts.js +1 -1
- package/build/asset-manifest.json +150 -82
- package/build/index.html +1 -1
- package/build/static/css/3683.60b7ada4.chunk.css +1 -0
- package/build/static/css/4320.1edfa457.chunk.css +1 -0
- package/build/static/css/main.b43a24ba.css +1 -0
- package/build/static/js/1367.9dcea0bc.chunk.js +9 -0
- package/build/static/js/142.85e6074f.chunk.js +1 -0
- package/build/static/js/1579.10c95eae.chunk.js +1 -0
- package/build/static/js/1839.410079bf.chunk.js +1 -0
- package/build/static/js/2116.2e449b06.chunk.js +1 -0
- package/build/static/js/2458.cfb63c88.chunk.js +1 -0
- package/build/static/js/2523.7919ada5.chunk.js +5 -0
- package/build/static/js/2632.3ed5d578.chunk.js +1 -0
- package/build/static/js/277.fbace0b9.chunk.js +1 -0
- package/build/static/js/2909.783348bb.chunk.js +1 -0
- package/build/static/js/2961.e91b0c14.chunk.js +2 -0
- package/build/static/js/2961.e91b0c14.chunk.js.LICENSE.txt +45 -0
- package/build/static/js/3392.d73d4efc.chunk.js +1 -0
- package/build/static/js/3683.68da2452.chunk.js +1 -0
- package/build/static/js/3975.5538132d.chunk.js +1 -0
- package/build/static/js/3977.8a9ac9d7.chunk.js +1 -0
- package/build/static/js/4210.66c14600.chunk.js +1 -0
- package/build/static/js/4320.8fa60786.chunk.js +2 -0
- package/build/static/js/{7.e8b702b0.chunk.js.LICENSE.txt → 4320.8fa60786.chunk.js.LICENSE.txt} +2 -0
- package/build/static/js/4514.ff4d47b7.chunk.js +5 -0
- package/build/static/js/458.895bbb73.chunk.js +1 -0
- package/build/static/js/464.8a875fdd.chunk.js +1 -0
- package/build/static/js/4994.8f0118ec.chunk.js +1 -0
- package/build/static/js/5070.1d0d565e.chunk.js +1 -0
- package/build/static/js/5608.314b94e4.chunk.js +1 -0
- package/build/static/js/5678.b7f865a0.chunk.js +1 -0
- package/build/static/js/5752.d5d30939.chunk.js +1 -0
- package/build/static/js/5865.90a40692.chunk.js +17 -0
- package/build/static/js/6097.56c4b02a.chunk.js +1 -0
- package/build/static/js/6242.5e6f91ac.chunk.js +1 -0
- package/build/static/js/6391.6cdac98a.chunk.js +1 -0
- package/build/static/js/6422.f69a61a8.chunk.js +1 -0
- package/build/static/js/6449.702355ee.chunk.js +1 -0
- package/build/static/js/6668.8cb69721.chunk.js +2 -0
- package/build/static/js/{9.d99eed24.chunk.js.LICENSE.txt → 6668.8cb69721.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/6679.d28318d1.chunk.js +2 -0
- package/build/static/js/{18.b32ef4e7.chunk.js.LICENSE.txt → 6679.d28318d1.chunk.js.LICENSE.txt} +9 -9
- package/build/static/js/6865.b0803b6b.chunk.js +1 -0
- package/build/static/js/6928.228563da.chunk.js +2 -0
- package/build/static/js/{2.90589c59.chunk.js.LICENSE.txt → 6928.228563da.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/7135.57023452.chunk.js +1 -0
- package/build/static/js/7496.37614377.chunk.js +1 -0
- package/build/static/js/761.e16e6486.chunk.js +1 -0
- package/build/static/js/7698.095351a0.chunk.js +1 -0
- package/build/static/js/7842.a98fbb15.chunk.js +1 -0
- package/build/static/js/7858.fa281cb7.chunk.js +5 -0
- package/build/static/js/7937.a3bc5cdb.chunk.js +1 -0
- package/build/static/js/8355.7352ad1b.chunk.js +1 -0
- package/build/static/js/8461.87a9a578.chunk.js +1 -0
- package/build/static/js/8565.f27e3917.chunk.js +1 -0
- package/build/static/js/8910.e6dda87e.chunk.js +2 -0
- package/build/static/js/{15.b28e3a9f.chunk.js.LICENSE.txt → 8910.e6dda87e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/91.f23bbeac.chunk.js +1 -0
- package/build/static/js/9462.6616e921.chunk.js +1 -0
- package/build/static/js/9551.e50bee9b.chunk.js +1 -0
- package/build/static/js/9733.aa290ea2.chunk.js +2 -0
- package/build/static/js/9733.aa290ea2.chunk.js.LICENSE.txt +10 -0
- package/build/static/js/9735.0e70600f.chunk.js +1 -0
- package/build/static/js/main.91a73418.js +28 -0
- package/build/static/js/{6.9c8c6dae.chunk.js.LICENSE.txt → main.91a73418.js.LICENSE.txt} +11 -66
- package/build/static/media/{KaTeX_AMS-Regular.73ea273a.woff2 → KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2} +0 -0
- package/build/static/media/{KaTeX_AMS-Regular.853be924.ttf → KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf} +0 -0
- package/build/static/media/{KaTeX_AMS-Regular.d562e886.woff → KaTeX_AMS-Regular.d562e886c52f12660a41.woff} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.7489a2fb.ttf → KaTeX_Caligraphic-Bold.7489a2fbfb9bfe704420.ttf} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.a1abf90d.woff2 → KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a.woff2} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.d757c535.woff → KaTeX_Caligraphic-Bold.d757c535a2e5902f1325.woff} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.7e873d38.ttf → KaTeX_Caligraphic-Regular.7e873d3833eb108a0758.ttf} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.d6484fce.woff2 → KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94.woff2} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.db074fa2.woff → KaTeX_Caligraphic-Regular.db074fa22cf224af93d7.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.354501ba.woff → KaTeX_Fraktur-Bold.354501bac435c3264834.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.4c761b37.ttf → KaTeX_Fraktur-Bold.4c761b3711973ab04edf.ttf} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.931d67ea.woff2 → KaTeX_Fraktur-Bold.931d67ea207ab37ee693.woff2} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.172d3529.woff2 → KaTeX_Fraktur-Regular.172d3529b26f8cedef6b.woff2} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.6fdf0ac5.woff → KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.ed305b54.ttf → KaTeX_Fraktur-Regular.ed305b5434865e06ffde.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.0c3b8929.woff → KaTeX_Main-Bold.0c3b8929d377c0e9b2f3.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.39890742.woff2 → KaTeX_Main-Bold.39890742bc957b368704.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.8169508b.ttf → KaTeX_Main-Bold.8169508bf58f8bd92ad8.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.20f389c4.woff2 → KaTeX_Main-BoldItalic.20f389c4120be058d80a.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.428978dc.woff → KaTeX_Main-BoldItalic.428978dc7837d46de091.woff} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.828abcb2.ttf → KaTeX_Main-BoldItalic.828abcb200061cffbaae.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fa675e5e.ttf → KaTeX_Main-Italic.fa675e5e4bec9eb250b6.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fd947498.woff → KaTeX_Main-Italic.fd947498bc16392e76c2.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fe2176f7.woff2 → KaTeX_Main-Italic.fe2176f79edaa716e621.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.4f35fbcc.woff → KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.9eba1d77.ttf → KaTeX_Main-Regular.9eba1d77abcf2aa6e94e.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.f650f111.woff2 → KaTeX_Main-Regular.f650f111a3b890d116f1.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.3f07ed67.woff → KaTeX_Math-BoldItalic.3f07ed67f06c720120ce.woff} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.bf2d440b.ttf → KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998.ttf} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.dcbcbd93.woff2 → KaTeX_Math-BoldItalic.dcbcbd93bac0470b462d.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.6d3d25f4.woff2 → KaTeX_Math-Italic.6d3d25f4820d0da8f01f.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.8a5f9363.ttf → KaTeX_Math-Italic.8a5f936332e8028c7278.ttf} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.96759856.woff → KaTeX_Math-Italic.96759856b4e70f3a8338.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.5b49f499.ttf → KaTeX_SansSerif-Bold.5b49f4993ae22d7975b4.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.95591a92.woff2 → KaTeX_SansSerif-Bold.95591a929f0d32aa282a.woff2} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.b9cd458a.woff → KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c3.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.7d393d38.woff2 → KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637.woff2} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.8d593cfa.woff → KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.b257a18c.ttf → KaTeX_SansSerif-Italic.b257a18c016f37ee4543.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.02271ec5.woff → KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.2f7bc363.ttf → KaTeX_SansSerif-Regular.2f7bc363fc5424ebda59.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.cd5e231e.woff2 → KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c0.woff2} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.073b3402.woff → KaTeX_Script-Regular.073b3402d036714b4370.woff} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.c81d1b2a.woff2 → KaTeX_Script-Regular.c81d1b2a4b75d3eded60.woff2} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.fc9ba524.ttf → KaTeX_Script-Regular.fc9ba5249878cd8f8d88.ttf} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.0108e89c.woff → KaTeX_Size1-Regular.0108e89c9003e8c14ea3.woff} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.6de7d4b5.ttf → KaTeX_Size1-Regular.6de7d4b539221a49e9e2.ttf} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.6eec866c.woff2 → KaTeX_Size1-Regular.6eec866c69313624be60.woff2} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.2960900c.woff2 → KaTeX_Size2-Regular.2960900c4f271311eb36.woff2} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.3a99e70a.woff → KaTeX_Size2-Regular.3a99e70aee4076660d38.woff} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.57f5c183.ttf → KaTeX_Size2-Regular.57f5c1837853986ea1db.ttf} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.7947224e.woff → KaTeX_Size3-Regular.7947224e8a9914fa332b.woff} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.8d6b6822.ttf → KaTeX_Size3-Regular.8d6b6822586eea3d3b20.ttf} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.e1951519.woff2 → KaTeX_Size3-Regular.e1951519f6f0596f7356.woff2} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.4ad7c7e8.ttf → KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7.ttf} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.aeffd802.woff → KaTeX_Size4-Regular.aeffd8025cba3647f1a6.woff} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.e418bf25.woff2 → KaTeX_Size4-Regular.e418bf257af1052628d8.woff2} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.4c6b94fd.woff → KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7c.woff} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.c295e7f7.woff2 → KaTeX_Typewriter-Regular.c295e7f71970f03c0549.woff2} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.c5c02d76.ttf → KaTeX_Typewriter-Regular.c5c02d763c89380dcb4e.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Bold.52ac8f30.ttf → SourceCodePro-Bold.52ac8f3034507f1d9e53.ttf} +0 -0
- package/build/static/media/{SourceCodePro-BoldItalic.05b61807.ttf → SourceCodePro-BoldItalic.05b618077343fbbd92b7.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Italic.454577c2.ttf → SourceCodePro-Italic.454577c22304619db035.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Regular.70cc7ff2.ttf → SourceCodePro-Regular.70cc7ff27245e82ad414.ttf} +0 -0
- package/build/static/media/{SourceCodePro-SemiBold.4d4c53c0.ttf → SourceCodePro-SemiBold.4d4c53c06b5bebed1cf3.ttf} +0 -0
- package/build/static/media/{SourceCodePro-SemiBoldItalic.2f5470bc.ttf → SourceCodePro-SemiBoldItalic.2f5470bc8b2cd27a5c4b.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Bold.12e6acd2.ttf → SourceSansPro-Bold.12e6acd2589d00c9d0aa.ttf} +0 -0
- package/build/static/media/{SourceSansPro-BoldItalic.7c4f9b00.ttf → SourceSansPro-BoldItalic.7c4f9b00300acb82f0f6.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Italic.3c01996d.ttf → SourceSansPro-Italic.3c01996d38a55834ddcb.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Regular.efa76f83.ttf → SourceSansPro-Regular.efa76f8326aa5cee3bdd.ttf} +0 -0
- package/build/static/media/{SourceSansPro-SemiBold.43cc81b4.ttf → SourceSansPro-SemiBold.43cc81b496222dc9ce3c.ttf} +0 -0
- package/build/static/media/{SourceSansPro-SemiBoldItalic.c30987e2.ttf → SourceSansPro-SemiBoldItalic.c30987e28fc21daba1ae.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Bold.bada4fe1.ttf → SourceSerifPro-Bold.bada4fe17051c992f22f.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-BoldItalic.9f9b1eb2.ttf → SourceSerifPro-BoldItalic.9f9b1eb2d82e26bb2f4a.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Italic.90931d6a.ttf → SourceSerifPro-Italic.90931d6ad253cd8de8e4.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Regular.6f22301c.ttf → SourceSerifPro-Regular.6f22301c30206f4bad62.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-SemiBold.b27cb117.ttf → SourceSerifPro-SemiBold.b27cb117978bab2c80a3.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-SemiBoldItalic.1266f2c1.ttf → SourceSerifPro-SemiBoldItalic.1266f2c17835efdcff7b.ttf} +0 -0
- package/build/static/media/{balloon-0.0e6e96ec.png → balloon-0.0e6e96ece0ea0719d6b6.png} +0 -0
- package/build/static/media/{balloon-1.a503c271.png → balloon-1.a503c271109e9a0fdd2d.png} +0 -0
- package/build/static/media/{balloon-2.872250f3.png → balloon-2.872250f3bf3a8965d655.png} +0 -0
- package/build/static/media/{balloon-3.e772fafd.png → balloon-3.e772fafd3bfc55fb439b.png} +0 -0
- package/build/static/media/{balloon-4.1a741624.png → balloon-4.1a74162473d81c9cb9ee.png} +0 -0
- package/build/static/media/{balloon-5.edb75c74.png → balloon-5.edb75c74c54165b29856.png} +0 -0
- package/build/static/media/{fireworks.0906f02e.gif → fireworks.0906f02ea43f1018a6d2.gif} +0 -0
- package/build/static/media/{flake-0.beded754.png → flake-0.beded754e8024c73d9d2.png} +0 -0
- package/build/static/media/{flake-1.8077dc15.png → flake-1.8077dc154e0bf900aa73.png} +0 -0
- package/build/static/media/{flake-2.e3f07d06.png → flake-2.e3f07d06933dd0e84c24.png} +0 -0
- package/build/static/media/{icon_running.de1119da.gif → icon_running.de1119daebe465fa5263.gif} +0 -0
- package/build/static/media/index.09797f5e19b3c0491904.cjs +1 -0
- package/build/static/media/index.1e3d64b0fcde879f0060.cjs +1 -0
- package/build/static/media/index.294a0edb7af7d19b781b.cjs +1 -0
- package/build/static/media/index.85823dd8655ed4119d0c.cjs +1 -0
- package/build/static/media/index.b599194a631d76b49328.cjs +1 -0
- package/package.json +12 -11
- package/build/static/css/6.69790b96.chunk.css +0 -1
- package/build/static/css/7.3d0f8b8b.chunk.css +0 -1
- package/build/static/css/9.f71f4f0d.chunk.css +0 -1
- package/build/static/css/main.7bc75681.chunk.css +0 -1
- package/build/static/js/0.1470a040.chunk.js +0 -1
- package/build/static/js/1.75536554.chunk.js +0 -1
- package/build/static/js/10.e9d08ce6.chunk.js +0 -1
- package/build/static/js/11.245d6c33.chunk.js +0 -9
- package/build/static/js/12.a31ecc8c.chunk.js +0 -17
- package/build/static/js/13.6a2e32ae.chunk.js +0 -1
- package/build/static/js/14.1655f4db.chunk.js +0 -1
- package/build/static/js/15.b28e3a9f.chunk.js +0 -2
- package/build/static/js/16.4002de21.chunk.js +0 -1
- package/build/static/js/17.f01379ea.chunk.js +0 -1
- package/build/static/js/18.b32ef4e7.chunk.js +0 -2
- package/build/static/js/19.757ce6cd.chunk.js +0 -1
- package/build/static/js/2.90589c59.chunk.js +0 -2
- package/build/static/js/20.06333e7b.chunk.js +0 -1
- package/build/static/js/21.3fab05ae.chunk.js +0 -5
- package/build/static/js/22.a1775ac4.chunk.js +0 -1
- package/build/static/js/23.fd21f92a.chunk.js +0 -1
- package/build/static/js/24.50f424ba.chunk.js +0 -5
- package/build/static/js/25.3855f89c.chunk.js +0 -1
- package/build/static/js/26.5f51a172.chunk.js +0 -1
- package/build/static/js/27.f075da8f.chunk.js +0 -1
- package/build/static/js/28.e76203d9.chunk.js +0 -5
- package/build/static/js/29.12291bff.chunk.js +0 -1
- package/build/static/js/3.8dacc9e7.chunk.js +0 -1
- package/build/static/js/30.9780f1e6.chunk.js +0 -1
- package/build/static/js/31.622e28f6.chunk.js +0 -1
- package/build/static/js/32.44bddfd2.chunk.js +0 -1
- package/build/static/js/33.e3480cb9.chunk.js +0 -1
- package/build/static/js/34.4e913e44.chunk.js +0 -1
- package/build/static/js/35.d8c3a90e.chunk.js +0 -1
- package/build/static/js/36.d7336b9b.chunk.js +0 -1
- package/build/static/js/37.b06f1532.chunk.js +0 -1
- package/build/static/js/38.2303d913.chunk.js +0 -1
- package/build/static/js/39.9cb4bae4.chunk.js +0 -1
- package/build/static/js/40.b8f90b9a.chunk.js +0 -1
- package/build/static/js/41.bb169dbf.chunk.js +0 -1
- package/build/static/js/42.e8639ee2.chunk.js +0 -1
- package/build/static/js/43.b5e07f4c.chunk.js +0 -1
- package/build/static/js/44.0206e0dc.chunk.js +0 -1
- package/build/static/js/45.db4595ee.chunk.js +0 -1
- package/build/static/js/46.f534e5a2.chunk.js +0 -1
- package/build/static/js/47.89ae0b12.chunk.js +0 -1
- package/build/static/js/48.86b245a1.chunk.js +0 -1
- package/build/static/js/49.1db19a37.chunk.js +0 -1
- package/build/static/js/6.9c8c6dae.chunk.js +0 -2
- package/build/static/js/7.e8b702b0.chunk.js +0 -2
- package/build/static/js/8.348fb43a.chunk.js +0 -2
- package/build/static/js/8.348fb43a.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/9.d99eed24.chunk.js +0 -2
- package/build/static/js/main.f1cf2dec.chunk.js +0 -27
- package/build/static/js/runtime-main.e5a1f36a.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[36],{1772:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return x}));var a=i(0),n=i(65),s=i(19),r=i(227),o=i.n(r),c=i(200),h=i(176),d=i(79),l=i(1402),g=i(1226),u=i(1348),f=i(4);const p=Object(f.a)("div",{target:"e10fe9o10"})((({theme:t})=>({"&.vega-embed":{".vega-actions":{zIndex:t.zIndices.popupMenu},summary:{height:"auto",zIndex:t.zIndices.menuButton}}})),"");var b=i(1);const w="(index)",m="source",v=new Set(["datetimeIndex","float_64Index","int_64Index","rangeIndex","timedeltaIndex","uint_64Index"]);class O extends a.PureComponent{constructor(...t){super(...t),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=m,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{const{element:t,theme:e}=this.props,i=JSON.parse(t.get("spec")),a=JSON.parse(t.get("useContainerWidth"));if(i.config=function(t,e){const{colors:i,fontSizes:a,genericFonts:n}=e,s={labelFont:n.bodyFont,titleFont:n.bodyFont,labelFontSize:a.twoSmPx,titleFontSize:a.twoSmPx},r={background:i.bgColor,axis:{labelColor:i.bodyText,titleColor:i.bodyText,gridColor:i.fadedText10,...s},legend:{labelColor:i.bodyText,titleColor:i.bodyText,...s},title:{color:i.bodyText,subtitleColor:i.bodyText,...s},header:{labelColor:i.bodyText},view:{continuousHeight:300,continuousWidth:400}};if(!t)return r;return o()({},r,t)}(i.config,e),this.props.height?(i.width=this.props.width-38,i.height=this.props.height):a&&(i.width=this.props.width-38),i.padding||(i.padding={}),null==i.padding.bottom&&(i.padding.bottom=20),i.datasets)throw new Error("Datasets should not be passed as part of the spec");return i}}async componentDidMount(){try{await this.createView()}catch(t){const e=Object(d.a)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:i}=t,{element:a,theme:n}=this.props,r=e.get("spec"),o=a.get("spec");if(!this.vegaView||r!==o||i!==n||t.width!==this.props.width||t.height!==this.props.height){Object(s.c)("Vega spec changed.");try{await this.createView()}catch(u){const t=Object(d.a)(u);this.setState({error:t})}return}const c=e.get("data"),h=a.get("data");(c||h)&&this.updateData(this.defaultDataName,c,h);const l=y(e)||{},g=y(a)||{};for(const[s,d]of Object.entries(g)){const t=s||this.defaultDataName,e=l[t];this.updateData(t,e,d)}for(const s of Object.keys(l))g.hasOwnProperty(s)||s===this.defaultDataName||this.updateData(s,null,null);this.vegaView.resize().runAsync()}updateData(t,e,i){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!i||!i.get("data")){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,g.truthy))}if(!e||!e.get("data"))return void this.vegaView.insert(t,j(i));const[a,n]=Object(h.g)(e.get("data")),[r,o]=Object(h.g)(i.get("data"));if(function(t,e,i,a,n,s){if(i!==s)return!1;if(e>=n)return!1;if(0===e)return!1;const r=t.get("data"),o=a.get("data"),c=s-1,d=e-1;if(Object(h.f)(r,c,0)!==Object(h.f)(o,c,0)||Object(h.f)(r,c,d)!==Object(h.f)(o,c,d))return!1;return!0}(e,a,n,i,r,o))a<r&&this.vegaView.insert(t,j(i,a));else{const e=g.changeset().remove(g.truthy).insert(j(i));this.vegaView.change(t,e),Object(s.c)(`Had to clear the ${t} dataset before inserting data through Vega view.`)}}async createView(){if(Object(s.c)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),i={ast:!0,expr:u.a},{vgSpec:a,view:n,finalize:r}=await Object(l.a)(this.element,e,i);this.vegaView=n,this.vegaFinalizer=r;const o=function(t){const e=y(t);if(null==e)return null;const i={};for(const[a,n]of Object.entries(e))i[a]=j(n);return i}(t),c=o?Object.keys(o):[];if(1===c.length){const[t]=c;this.defaultDataName=t}else 0===c.length&&a.data&&(this.defaultDataName=m);const h=function(t){const e=t.get("data");if(!e)return null;return j(e)}(t);if(h&&n.insert(this.defaultDataName,h),o)for(const[s,d]of Object.entries(o))n.insert(s,d);await n.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return Object(b.jsx)(p,{"data-testid":"stVegaLiteChart",ref:t=>{this.element=t}})}}function y(t){if(!t.get("datasets")||t.get("datasets").isEmpty())return null;const e={};return t.get("datasets").forEach(((t,i)=>{if(!t)return;const a=t.get("hasName")?t.get("name"):null;e[a]=t.get("data")})),e}function j(t,e=0){if(!t.get("data"))return[];if(!t.get("index"))return[];if(!t.get("columns"))return[];const i=[],[a,n]=Object(h.g)(t.get("data")),s=t.get("index").get("type"),r=v.has(s);for(let o=e;o<a;o++){const e={};r&&(e[w]=Object(h.e)(t.get("index"),0,o));for(let i=0;i<n;i++)e[Object(h.e)(t.get("columns"),0,i)]=Object(h.f)(t.get("data"),i,o);i.push(e)}return i}var x=Object(n.d)(Object(c.a)(O))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[37],{1780:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var s=r(0),n=r(56),a=r(15),c=r(87),i=r(89),o=r(1);function d({element:e,width:t}){const r=Object(s.useRef)(null),{getBaseUriParts:d}=Object(s.useContext)(n.a),{type:l,url:u}=e,f=Object(i.j)(u);Object(s.useEffect)((()=>{const t=r.current,s=()=>{t&&(t.currentTime=e.startTime)};return t&&t.addEventListener("loadedmetadata",s),()=>{t&&t.removeEventListener("loadedmetadata",s)}}),[e]);const m=t=>{const{startTime:r}=e;return r?`${t}?start=${r}`:t};if(l===a.x.Type.YOUTUBE_IFRAME){const e=0!==t?.75*t:528;return Object(o.jsx)("iframe",{title:f,src:m(f),width:t,height:e,frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0})}return Object(o.jsx)("video",{ref:r,controls:!0,src:Object(c.b)(f,d()),className:"stVideo",style:{width:t,height:0===t?528:void 0}})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[38],{1781:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return r}));s(0);var i=s(23),l=s(48),n=s(1);var r=function(e){const{disabled:t,element:s,widgetMgr:r,width:c}=e,d={width:c},a="primary"===s.type?i.b.PRIMARY:i.b.SECONDARY;return Object(n.jsx)("div",{className:"row-widget stButton",style:d,children:Object(n.jsx)(i.a,{help:s.help,children:Object(n.jsx)(i.d,{kind:a,size:i.c.SMALL,disabled:t,onClick:()=>r.setTriggerValue(s,{fromUi:!0}),children:Object(n.jsx)(l.a,{source:s.label,allowHTML:!1,isButton:!0})})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[39],{1762:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return _}));var r=o(0),i=o.n(r),n=o(65),a=o(29),l=o(11),s=o(20);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){u(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function p(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,n=e.$isHovered,a=e.$isActive,l=e.$theme.colors;return t?o||r?l.tickFillDisabled:l.tickFill:i&&(r||o)?a?l.tickFillErrorSelectedHoverActive:n?l.tickFillErrorSelectedHover:l.tickFillErrorSelected:i?a?l.tickFillErrorHoverActive:n?l.tickFillErrorHover:l.tickFillError:r||o?a?l.tickFillSelectedHoverActive:n?l.tickFillSelectedHover:l.tickFillSelected:a?l.tickFillActive:n?l.tickFillHover:l.tickFill}function b(e){var t=e.$disabled,o=e.$theme.colors;return t?o.contentSecondary:o.contentPrimary}var h=Object(s.a)("label",(function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:"top"===o||"bottom"===o?"column":"row",display:"flex",alignItems:"top"===o||"bottom"===o?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));h.displayName="Root",h.displayName="Root";var m=Object(s.a)("span",(function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.sizing,s=n.animation,c=o?n.colors.tickMarkFillDisabled:r?n.colors.tickMarkFillError:n.colors.tickMarkFill,d=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(c,'"/>\n </svg>\n ')),u=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(c,'"/>\n </svg>\n ')),b=n.borders.checkboxBorderRadius,h=function(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.colors;return t?l.tickFillDisabled:o||i?"transparent":r?l.borderNegative:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:s.timing200,transitionTimingFunction:s.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:h,borderRightColor:h,borderTopColor:h,borderBottomColor:h,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,outline:a&&t?"3px solid ".concat(n.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:i?"url('data:image/svg+xml,".concat(d,"');"):t?"url('data:image/svg+xml,".concat(u,"');"):null,backgroundColor:p(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:n.sizing.scale0,marginBottom:n.sizing.scale0,marginLeft:n.sizing.scale0,marginRight:n.sizing.scale0}}));m.displayName="Checkmark",m.displayName="Checkmark";var f=Object(s.a)("div",(function(e){var t=e.$theme.typography;return d(d(d({verticalAlign:"middle"},function(e){var t,o=e.$labelPlacement,r=void 0===o?"":o,i=e.$theme,n=i.sizing.scale300;switch(r){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:case"right":t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),u({},"padding".concat(t),n)}(e)),{},{color:b(e)},t.LabelMedium),{},{lineHeight:"24px"})}));f.displayName="Label",f.displayName="Label";var g=Object(s.a)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});g.displayName="Input",g.displayName="Input";var v=Object(s.a)("div",(function(e){var t=e.$theme.colors.toggleFill;return e.$disabled?t=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?t=e.$theme.colors.tickFillErrorSelected:e.$checked&&(t=e.$theme.colors.toggleFillChecked),{backgroundColor:t,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}));v.displayName="Toggle",v.displayName="Toggle";var y=Object(s.a)("div",(function(e){var t=e.$theme.colors.toggleTrackFill;return e.$disabled?t=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(t=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:t,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}));y.displayName="ToggleTrack",y.displayName="ToggleTrack";var k=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),$=(Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"}),o(36));function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=L(e);if(t){var i=L(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return T(this,o)}}function T(e,t){if(t&&("object"===O(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var P=function(e){return e.stopPropagation()},M=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(a,e);var t,o,i,n=R(a);function a(){var e;j(this,a);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return S(C(e=n.call.apply(n,[this].concat(o))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),S(C(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),S(C(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),S(C(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),S(C(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),S(C(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),Object($.d)(t)&&e.setState({isFocusVisible:!0})})),S(C(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),e}return t=a,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,o=e.inputRef;t&&o.current&&o.current.focus()}},{key:"render",value:function(){var e=this.props,t=e.overrides,o=void 0===t?{}:t,i=e.onChange,n=e.labelPlacement,a=void 0===n?this.props.checkmarkType===k.toggle?"left":"right":n,s=e.inputRef,c=e.isIndeterminate,d=e.error,u=e.disabled,p=e.value,b=e.name,$=e.type,O=e.checked,j=e.children,F=e.required,x=e.title,R=o.Root,T=o.Checkmark,C=o.Label,L=o.Input,S=o.Toggle,M=o.ToggleTrack,B=Object(l.a)(R)||h,E=Object(l.a)(T)||m,V=Object(l.a)(C)||f,H=Object(l.a)(L)||g,D=Object(l.a)(S)||v,I=Object(l.a)(M)||y,z={onChange:i,onFocus:this.onFocus,onBlur:this.onBlur},A={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},U={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:d,$checked:O,$isIndeterminate:c,$required:F,$disabled:u,$value:p},N=j&&r.createElement(V,w({$labelPlacement:a},U,Object(l.b)(C)),this.props.containsInteractiveElement?r.createElement("div",{onClick:function(e){return e.preventDefault()}},j):j);return r.createElement(B,w({"data-baseweb":"checkbox",title:x||null,$labelPlacement:a},U,A,Object(l.b)(R)),("top"===a||"left"===a)&&N,this.props.checkmarkType===k.toggle?r.createElement(I,w({},U,Object(l.b)(M)),r.createElement(D,w({},U,Object(l.b)(S)))):r.createElement(E,w({},U,Object(l.b)(T))),r.createElement(H,w({value:p,name:b,checked:O,required:F,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":c?"mixed":O,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":d||null,"aria-required":F||null,disabled:u,type:$,ref:s,onClick:P},U,z,Object(l.b)(L))),("bottom"===a||"right"===a)&&N)}}])&&F(t.prototype,o),i&&F(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);S(M,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:r.createRef(),error:!1,type:"checkbox",checkmarkType:k.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});var B=M,E=o(22),V=o(199),H=o(118),D=o(52),I=o(117),z=o(48),A=o(4);const U=Object(A.a)("div",{target:"ek41t0m0"})((({theme:e,visibility:t})=>({display:t===a.a.Collapsed?"none":"flex",visibility:t===a.a.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),"");var N=o(1);class W extends i.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new V.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{theme:t,width:o,element:r,disabled:i,widgetMgr:n}=this.props,{colors:l,spacing:s,radii:c}=t,d={width:o},u=i?l.fadedText40:l.bodyText;return this.formClearHelper.manageFormClearListener(n,r.formId,this.onFormCleared),Object(N.jsx)("div",{className:"row-widget stCheckbox",style:d,children:Object(N.jsx)(B,{checked:this.state.value,disabled:i,onChange:this.onChange,"aria-label":r.label,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?l.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const o=t&&!i?l.primary:l.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${Object(E.g)(l.primary,.5)}`:"",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderTopLeftRadius:c.md,borderTopRightRadius:c.md,borderBottomLeftRadius:c.md,borderBottomRightRadius:c.md,borderLeftColor:o,borderRightColor:o,borderTopColor:o,borderBottomColor:o}}},Label:{style:{color:u}}},children:Object(N.jsxs)(U,{visibility:Object(a.k)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:[Object(N.jsx)(z.a,{source:r.label,allowHTML:!1,isLabel:!0,isCheckbox:!0}),r.help&&Object(N.jsx)(I.c,{color:u,children:Object(N.jsx)(H.a,{content:r.help,placement:D.b.TOP_RIGHT})})]})})})}}var _=Object(n.d)(W)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[40],{1783:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return m}));var s=i(0),o=i.n(s),l=i(199),r=i(167),a=i(29),n=i(1);class u extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new l.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onColorClose=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,width:i,disabled:s,widgetMgr:o}=this.props,{value:l}=this.state;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),Object(n.jsx)(r.a,{label:t.label,labelVisibility:Object(a.k)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),help:t.help,onChange:this.onColorClose,disabled:s,width:i,value:l})}}var m=u}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[41],{1766:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return k}));var n=o(0),i=o.n(n),r=o(1385),l=o(432),a=o(1723),s=o(22),d=o(65),c=o(200),u=o(19),h=o(124),m=o(29);let g;function b(e){const t=e&&h.b.getTypeName(e);let o=g.Text;return t?"bool"===t?o=g.Boolean:["int64","float64","range"].includes(t)?o=g.Number:t.startsWith("list")&&(o=g.List):o=g.Text,o}function f(e){return(e.displayContent||h.b.format(e.content,e.contentType,e.field)).replace(/(\r\n|\n|\r)/gm," ")}function p(e,t,o){const n=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");o=o.replace(/{/g," {");const i=n.exec(o);if(i)return i[1].trim()}function y(e,t,o="normal"){if(e===g.Text)return{kind:r.c.Text,data:"",displayData:"",allowOverlay:!0,readonly:t,style:o};if(e===g.Boolean)return{kind:r.c.Boolean,data:!1,readonly:t,allowOverlay:!1,style:o};if(e===g.Number)return{kind:r.c.Number,data:void 0,displayData:"",readonly:t,allowOverlay:!0,contentAlign:"right",style:o};if(e===g.List)return{kind:r.c.Bubble,data:[],allowOverlay:!0,style:o};throw new Error(`Unsupported cell type: ${e}`)}!function(e){e.Text="text",e.Number="number",e.Boolean="boolean",e.List="list"}(g||(g={}));var w=o(4);const x=Object(w.a)("div",{target:"e17g77xh0"})((()=>({position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%"},"& .dvn-scroller":{scrollbarWidth:"thin",overflowX:"overlay !important",overflowY:"overlay !important"}})),"");o(1540);var v=o(1);const C=35;function T(e){return{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:Object(s.g)(e.colors.primary,.9),borderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:Object(s.g)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:Object(s.g)(e.colors.bodyText,.2),textLight:e.colors.fadedText60,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25}}function S(e,t,o){var l,s,d;const[c,h]=Object(n.useState)((()=>new Map)),w=function(e,t){var o,n,i,r,l,a;const s=[],d=e.useContainerWidth||e.width;if(t.isEmpty())return s.push({id:"empty-index",title:"",hasMenu:!1,getTemplate:()=>y(g.Text,!0,"faded"),columnType:g.Text,...d?{grow:1}:{}}),s;const c=null!==(o=null===(n=t.types)||void 0===n||null===(i=n.index)||void 0===i?void 0:i.length)&&void 0!==o?o:0,u=null!==(r=null===(l=t.columns)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.length)&&void 0!==r?r:0;for(let h=0;h<c;h++){const e=b(t.types.index[h]);s.push({id:`index-${h}`,title:"",hasMenu:!1,getTemplate:()=>y(e,!0,"faded"),columnType:e,...d?{grow:1}:{}})}for(let h=0;h<u;h++){const e=t.columns[0][h],o=b(t.types.data[h]);s.push({id:`column-${e}-${h}`,title:e,hasMenu:!1,getTemplate:()=>y(o,!0),columnType:o,...d?{grow:3}:{}})}return s}(e,t).map((e=>e.id&&c.has(e.id)&&void 0!==c.get(e.id)?{...e,width:c.get(e.id),grow:0}:e)),x=t.isEmpty()?1:t.dimensions.rows-1,v=null!==(l=null===(s=t.types)||void 0===s||null===(d=s.index)||void 0===d?void 0:d.length)&&void 0!==l?l:0,C=i.a.useCallback(((e,t,o,n)=>{e.id&&h(new Map(c).set(e.id,n))}),[w]),T=i.a.useCallback((([e,o])=>{if(t.isEmpty())return{...y(g.Text,!0,"faded"),displayData:"empty"};if(e>w.length-1)return y(g.Text,!0);const n=w[e].getTemplate();if(o>x-1)return n;try{return function(e,t,o){let n=e.kind;var i;if(e.kind===r.c.Custom&&(n=null===(i=e.data)||void 0===i?void 0:i.kind,!n))throw new Error("Unable to determine cell type for custom cell.");if(o&&t.cssId){const n={},i=p(t.cssId,"color",o);i&&(n.textDark=i);const r=p(t.cssId,"background-color",o);r&&(n.bgCell=r),n&&(e={...e,themeOverride:n})}if(n===r.c.Text){const o=f(t);return{...e,data:"string"!==typeof t.content&&Object(m.n)(t.content)?o:t.content,displayData:o}}if(n===r.c.Number){const o=f(t);let n=t.content;return n instanceof Int32Array&&(n=n[0]),{...e,data:Object(m.n)(n)?Number(n):void 0,displayData:o}}if(n===r.c.Boolean)return{...e,data:t.content};if(n===r.c.Bubble)return{...e,data:Object(m.n)(t.content)?JSON.parse(JSON.stringify(t.content,((e,t)=>"bigint"===typeof t?Number(t):t))):[]};throw new Error(`Unsupported cell kind: ${n}`)}(n,t.getCell(o+1,e),t.cssStyles)}catch(i){return Object(u.b)(i),n}}),[w,x,t]),{getCellContent:S}=Object(a.a)({columns:w,getCellContent:T,rows:x,sort:o}),k=function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(w,o);return{numRows:x,numIndices:v,columns:k,getCellContent:S,onColumnResize:C}}var k=Object(c.a)((function({element:e,data:t,width:o,height:n,isFullScreen:a}){const[s,c]=i.a.useState(),u=i.a.useRef(null),h=Object(d.g)(),m=e.useContainerWidth||e.width,{numRows:b,numIndices:f,columns:p,getCellContent:y,onColumnResize:w}=S(e,t,s),[k,M]=i.a.useState(!0),[O,j]=i.a.useState({columns:r.a.empty(),rows:r.a.empty()}),z=i.a.useRef(null),B=i.a.useCallback((e=>{let t="asc";const o=p[e];if(s&&s.column.id===o.id){if("asc"!==s.direction)return void c(void 0);t="desc"}var n;c({column:o,direction:t,mode:(n=o.columnType,n===g.Number?"smart":"default")})}),[s,p]);let H,N=Math.max((b+1)*C+1+2,73),R=Math.min(N,400);e.height&&(R=Math.max(e.height,73),N=Math.max(e.height,N)),n&&(R=Math.min(R,n),N=Math.min(N,n),e.height||(R=N));let E=o;e.useContainerWidth?H=o:e.width&&(H=Math.min(Math.max(e.width,38),o),E=Math.min(Math.max(e.width,E),o));const[F,W]=i.a.useState({width:H||"100%",height:R});return i.a.useLayoutEffect((()=>{z.current&&e.useContainerWidth&&"100%"===F.width&&W({width:o,height:F.height})}),[o]),i.a.useLayoutEffect((()=>{z.current&&W({width:F.width,height:R})}),[b]),i.a.useLayoutEffect((()=>{z.current&&W(a?{width:m?E:"100%",height:N}:{width:H||"100%",height:R})}),[a]),Object(v.jsx)(x,{className:"stDataFrame",onBlur:()=>{k||j({columns:r.a.empty(),rows:r.a.empty(),current:void 0})},children:Object(v.jsx)(l.a,{"data-testid":"stDataFrameResizable",ref:z,defaultSize:F,style:{border:`1px solid ${h.colors.fadedText05}`},minHeight:73,maxHeight:N,minWidth:38,maxWidth:E,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,C],snapGap:C/3,size:F,onResizeStop:(e,t,o,n)=>{z.current&&W({width:z.current.size.width,height:N-z.current.size.height===3?z.current.size.height+3:z.current.size.height})},children:Object(v.jsx)(r.b,{className:"glideDataEditor",ref:u,columns:p,rows:b,minColumnWidth:35,maxColumnWidth:650,rowHeight:C,headerHeight:C,getCellContent:y,onColumnResize:w,freezeColumns:f,smoothScrollX:!0,smoothScrollY:b<1e5,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:"rect",columnSelect:"none",rowSelect:"none",keybindings:{search:!0},onHeaderClicked:B,gridSelection:O,onGridSelectionChange:e=>{j(e)},theme:T(h),onMouseMove:e=>{"out-of-bounds"===e.kind&&k?M(!1):"out-of-bounds"===e.kind||k||M(!0)},experimental:{scrollbarWidthOverride:1}})})})}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[42],{1784:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return C}));var i=s(0),a=s.n(i),o=s(111),n=s.n(o),r=s(65),l=s(1749),d=s(1236),p=s(27),m=s(199),h=s(117),u=s(118),c=s(52),g=s(29),f=s(1);const b="YYYY/MM/DD";function y(e){return e.map((e=>new Date(e)))}class v extends a.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new m.b,this.state={values:this.initialValue,isRange:this.props.element.isRange,isEmpty:!1},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringArrayValue(this.props.element,this.state.values.map((e=>n()(e).format(b))),e)},this.onFormCleared=()=>{const e=y(this.props.element.default);this.setState({values:e},(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({date:e})=>{if(null===e||void 0===e)return void this.setState({values:[],isEmpty:!0});const t=[];Array.isArray(e)?e.forEach((e=>{e&&t.push(e)})):t.push(e),this.setState({values:t,isEmpty:!t},(()=>{this.state.isEmpty||this.commitWidgetValue({fromUi:!0})}))},this.handleClose=()=>{const{isEmpty:e}=this.state;e&&this.setState(((e,t)=>({values:y(t.element.default),isEmpty:!y(t.element.default)})),(()=>{this.commitWidgetValue({fromUi:!0})}))},this.getMaxDate=()=>{const{element:e}=this.props,t=e.max;return t&&t.length>0?n()(t,b).toDate():void 0}}get initialValue(){const e=this.props.widgetMgr.getStringArrayValue(this.props.element);return y(void 0!==e?e:this.props.element.default)}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({values:e.map((e=>new Date(e)))},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{width:t,element:s,disabled:i,theme:a,widgetMgr:o}=this.props,{values:r,isRange:m}=this.state,{colors:y,fontSizes:v,lineHeights:C}=a,x={width:t},V=n()(s.min,b).toDate(),j=this.getMaxDate();return this.formClearHelper.manageFormClearListener(o,s.formId,this.onFormCleared),Object(f.jsxs)("div",{className:"stDateInput",style:x,children:[Object(f.jsx)(h.d,{label:s.label,disabled:i,labelVisibility:Object(g.k)(null===(e=s.labelVisibility)||void 0===e?void 0:e.value),children:s.help&&Object(f.jsx)(h.b,{children:Object(f.jsx)(u.a,{content:s.help,placement:c.b.TOP_RIGHT})})}),Object(f.jsx)(l.a,{density:d.b.high,formatString:"yyyy/MM/dd",disabled:i,onChange:this.handleChange,onClose:this.handleClose,overrides:{Popover:{props:{placement:p.f.bottomLeft,overrides:{Body:{style:{border:`1px solid ${y.fadedText10}`}}}}},CalendarContainer:{style:{fontSize:v.sm,paddingRight:a.spacing.sm,paddingLeft:a.spacing.sm,paddingBottom:a.spacing.sm,paddingTop:a.spacing.sm}},Week:{style:{fontSize:v.sm}},Day:{style:{fontSize:v.sm,lineHeight:C.base,"::after":{borderColor:y.transparent}}},PrevButton:{style:()=>({display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:y.transparent},":focus":{backgroundColor:y.transparent,outline:0}})},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:y.transparent},":focus":{backgroundColor:y.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},Input:{style:{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}}}}},value:r,minDate:V,maxDate:j,range:m})]})}}var C=Object(r.d)(v)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[43],{1782:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return d}));var s=i(0),n=i(56),r=i(23),c=i(48),l=i(87),o=i(89),a=i(1);var d=function(t){const{disabled:e,element:i,widgetMgr:d,width:u}=t,b={width:u},{getBaseUriParts:h}=Object(s.useContext)(n.a),j=Object(o.i)();return Object(a.jsx)("div",{className:"row-widget stDownloadButton",style:b,children:Object(a.jsx)(r.a,{help:i.help,children:Object(a.jsx)(r.d,{kind:r.b.SECONDARY,size:r.c.SMALL,disabled:e,onClick:()=>{if(d.setTriggerValue(i,{fromUi:!0}),i.url.startsWith("/media"))return void Object(o.g)(j,i.url);const t=document.createElement("a"),e=`${Object(l.b)(i.url,h())}?title=${encodeURIComponent(document.title)}`;t.setAttribute("href",e),t.setAttribute("target","_blank"),t.click()},children:Object(a.jsx)(c.a,{source:i.label,allowHTML:!1,isButton:!0})})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[44],{1768:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return f}));var s=i(0),o=i.n(s),a=i(65),r=i(1739),l=i(1740),n=i(1741),d=i(117),h=i(118),p=i(52),u=i(1);class m extends o.a.PureComponent{constructor(...e){super(...e),this.state={value:this.props.value},this.onChange=e=>{const t=parseInt(e.target.value,10);this.setState({value:t},(()=>this.props.onChange(t)))}}componentDidUpdate(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState(((e,t)=>({value:t.value})))}render(){const{theme:e,width:t,help:i,label:s,horizontal:o,labelVisibility:a}=this.props;let{disabled:m}=this.props;const{colors:c,radii:b}=e,g={width:t},v=[...this.props.options];return 0===v.length&&(v.push("No options to select."),m=!0),Object(u.jsxs)("div",{className:"row-widget stRadio",style:g,children:[Object(u.jsx)(d.d,{label:s,disabled:m,labelVisibility:a,children:i&&Object(u.jsx)(d.c,{children:Object(u.jsx)(h.a,{content:i,placement:p.b.TOP_RIGHT})})}),Object(u.jsx)(r.a,{onChange:this.onChange,value:this.state.value.toString(),disabled:m,align:o?l.a.horizontal:l.a.vertical,"aria-label":s,children:v.map(((e,t)=>Object(u.jsx)(n.a,{value:t.toString(),overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,marginRight:"1rem",paddingLeft:0,alignItems:"start",paddingRight:"2px",backgroundColor:e?c.darkenedBgMix25:"",borderTopLeftRadius:b.md,borderTopRightRadius:b.md,borderBottomLeftRadius:b.md,borderBottomRightRadius:b.md})},RadioMarkOuter:{style:({$checked:e})=>({width:"1rem",height:"1rem",marginTop:"0.35rem",marginRight:"0",backgroundColor:e&&!m?c.primary:c.fadedText40})},RadioMarkInner:{style:({$checked:e})=>({height:e?"6px":".75rem",width:e?"6px":".75rem"})},Label:{style:{color:m?c.fadedText40:c.bodyText,position:"relative",top:"1px"}}},children:e},t)))})]})}}var c=Object(a.d)(m),b=i(199),g=i(29);class v extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new b.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getIntValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{disabled:e,element:t,width:i,widgetMgr:s}=this.props,{horizontal:o,options:a,label:r,labelVisibility:l,help:n}=t;return this.formClearHelper.manageFormClearListener(s,t.formId,this.onFormCleared),Object(u.jsx)(c,{label:r,onChange:this.onChange,options:a,width:i,disabled:e,horizontal:o,labelVisibility:Object(g.k)(null===l||void 0===l?void 0:l.value),value:this.state.value,help:n})}}var f=v}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[45],{1786:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return u}));var s=i(0),o=i.n(s),l=i(199),a=i(155),r=i(29),n=i(1);class p extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new l.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getIntValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{options:e,help:t,label:i,labelVisibility:s,formId:o}=this.props.element,{disabled:l,widgetMgr:p}=this.props;return this.formClearHelper.manageFormClearListener(p,o,this.onFormCleared),Object(n.jsx)(a.b,{label:i,labelVisibility:Object(r.k)(null===s||void 0===s?void 0:s.value),options:e,disabled:l,width:this.props.width,onChange:this.onChange,value:this.state.value,help:t})}}var u=p}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[46],{1775:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return w}));var a=i(0),s=i.n(a),o=i(37),n=i(1788),r=i(65),l=i(1376),d=i(199),h=i(15),m=i(29),u=i(111),c=i.n(u),p=i(117),b=i(118),g=i(52),f=i(4),T=i(22);const y=Object(f.a)("div",{target:"e88czh83"})((({disabled:e,theme:t})=>({alignItems:"center",backgroundColor:e?t.colors.gray:t.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",boxShadow:"none",display:"flex",height:t.radii.xl,justifyContent:"center",width:t.radii.xl,":focus":{boxShadow:`0 0 0 0.2rem ${Object(T.g)(t.colors.primary,.5)}`,outline:"none"}})),""),v=Object(f.a)("div",{target:"e88czh82"})((({disabled:e,theme:t})=>({fontFamily:t.fonts.monospace,fontSize:t.fontSizes.sm,paddingBottom:t.spacing.twoThirdsSmFont,color:e?t.colors.gray:t.colors.primary,top:"-22px",position:"absolute",whiteSpace:"nowrap",backgroundColor:t.colors.transparent,lineHeight:t.lineHeights.base,fontWeight:"normal"})),""),j=Object(f.a)("div",{target:"e88czh81"})((({theme:e})=>({paddingBottom:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingTop:e.spacing.twoThirdsSmFont,justifyContent:"space-between",alignItems:"center",display:"flex"})),""),R=Object(f.a)("div",{target:"e88czh80"})((({disabled:e,theme:t})=>({lineHeight:t.lineHeights.base,fontWeight:"normal",fontSize:t.fontSizes.sm,fontFamily:t.fonts.monospace,color:e?t.colors.fadedText40:"inherit"})),"");var V=i(1);class x extends s.a.PureComponent{constructor(e){super(e),this.formClearHelper=new d.b,this.state=void 0,this.sliderRef=s.a.createRef(),this.thumbRef=[],this.thumbValueRef=[],this.commitWidgetValueDebounced=void 0,this.commitWidgetValue=e=>{this.props.widgetMgr.setDoubleArrayValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({value:e})=>{this.setState({value:e},(()=>this.commitWidgetValueDebounced({fromUi:!0})))},this.renderThumb=s.a.forwardRef(((e,t)=>{var i;const{$value:a,$thumbIndex:n}=e,r=n||0;this.thumbRef[r]=t,(i=this.thumbValueRef)[r]||(i[r]=s.a.createRef());const l=a?this.formatValue(a[n]):"",d=Object(o.pick)(e,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),h={};return(this.props.element.options.length>0||this.isDateTimeType())&&(h["aria-valuetext"]=l),this.thumbValueAlignment(this.thumbRef[r].current,this.thumbValueRef[r].current),Object(V.jsx)(y,{...d,disabled:!0===e.$disabled,ref:this.thumbRef[r],"aria-valuetext":l,"aria-label":this.props.element.label,children:Object(V.jsx)(v,{className:"StyledThumbValue","data-testid":"stThumbValue",disabled:!0===e.$disabled,ref:this.thumbValueRef[r],children:l})})})),this.renderTickBar=()=>{const{disabled:e,element:t}=this.props,{max:i,min:a}=t;return Object(V.jsxs)(j,{"data-testid":"stTickBar",children:[Object(V.jsx)(R,{disabled:e,"data-testid":"stTickBarMin",children:this.formatValue(a)}),Object(V.jsx)(R,{disabled:e,"data-testid":"stTickBarMax",children:this.formatValue(i)})]})},this.commitWidgetValueDebounced=Object(m.b)(200,this.commitWidgetValue.bind(this)),this.state={value:this.initialValue}}get initialValue(){const e=this.props.widgetMgr.getDoubleArrayValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){for(let e=0;e<Math.min(this.thumbRef.length,this.thumbValueRef.length);e++)this.thumbValueAlignment(this.thumbRef[e].current,this.thumbValueRef[e].current);this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}get value(){const{min:e,max:t}=this.props.element,{value:i}=this.state;let a=i[0],s=i.length>1?i[1]:i[0];return a>s&&(a=s),a<e&&(a=e),a>t&&(a=t),s<e&&(s=e),s>t&&(s=t),i.length>1?[a,s]:[a]}isDateTimeType(){const{dataType:e}=this.props.element;return e===h.t.DataType.DATETIME||e===h.t.DataType.DATE||e===h.t.DataType.TIME}formatValue(e){const{format:t,options:i}=this.props.element;return this.isDateTimeType()?c.a.utc(e/1e3).format(t):i.length>0?Object(l.sprintf)(t,i[e]):Object(l.sprintf)(t,e)}thumbValueAlignment(e,t){const i=this.sliderRef.current;if(i&&e&&t){const a=i.getBoundingClientRect(),s=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n=s.left+s.width/2,r=n-o.width/2<a.left,l=n+o.width/2>a.right;t.style.left=r?"0":"",t.style.right=l?"0":""}}render(){var e;const{disabled:t,element:i,theme:a,width:s,widgetMgr:o}=this.props,{colors:r,fonts:l,fontSizes:d,spacing:h}=a,u={width:s};return this.formClearHelper.manageFormClearListener(o,i.formId,this.onFormCleared),Object(V.jsxs)("div",{ref:this.sliderRef,className:"stSlider",style:u,children:[Object(V.jsx)(p.d,{label:i.label,disabled:t,labelVisibility:Object(m.k)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&Object(V.jsx)(p.b,{children:Object(V.jsx)(b.a,{content:i.help,placement:g.b.TOP_RIGHT})})}),Object(V.jsx)(n.a,{min:i.min,max:i.max,step:i.step,value:this.value,onChange:this.handleChange,disabled:t,overrides:{Root:{style:{paddingTop:h.twoThirdsSmFont}},Thumb:this.renderThumb,Tick:{style:{fontFamily:l.monospace,fontSize:d.sm}},Track:{style:{backgroundColor:"none !important",paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:h.twoThirdsSmFont}},InnerTrack:{style:({$disabled:e})=>({height:"4px",...e?{background:r.darkenedBgMix25}:{}})},TickBar:this.renderTickBar}})]})}}var w=Object(r.d)(x)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[47],{1787:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return m}));var s=i(0),o=i(1661),r=i(199),a=i(117),l=i(118),n=i(52),d=i(29),p=i(1);class h extends s.PureComponent{constructor(...e){super(...e),this.formClearHelper=new r.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=e=>{let t;t=null===e?this.initialValue:this.dateToString(e),this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))},this.stringToDate=e=>{const[t,i]=e.split(":").map(Number),s=new Date;return s.setHours(t),s.setMinutes(i),s},this.dateToString=e=>`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{disabled:t,width:i,element:s,widgetMgr:r}=this.props,h={width:i},m={Select:{props:{disabled:t,overrides:{ControlContainer:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},IconsContainer:{style:()=>({paddingRight:".5rem"})},ValueContainer:{style:()=>({paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"})},Dropdown:{style:()=>({paddingTop:0,paddingBottom:0})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:"1px"})}}}}}}}};return this.formClearHelper.manageFormClearListener(r,s.formId,this.onFormCleared),Object(p.jsxs)("div",{className:"stTimeInput",style:h,children:[Object(p.jsx)(a.d,{label:s.label,disabled:t,labelVisibility:Object(d.k)(null===(e=s.labelVisibility)||void 0===e?void 0:e.value),children:s.help&&Object(p.jsx)(a.b,{children:Object(p.jsx)(l.a,{content:s.help,placement:n.b.TOP_RIGHT})})}),Object(p.jsx)(o.a,{format:"24",value:this.stringToDate(this.state.value),onChange:this.handleChange,overrides:m,creatable:!0,"aria-label":s.label})]})}}var m=h}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[48],{1789:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return I}));var n,a=r(1396),o=r(0),u=r.n(o);function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function l(){}function c(e){return!!(e||"").match(/\d/)}function s(e){return null===e||void 0===e}function f(e){return"number"===typeof e&&isNaN(e)}function v(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function d(e,t){void 0===t&&(t=!0);var r="-"===e[0],n=r&&t,a=(e=e.replace("-","")).split(".");return{beforeDecimal:a[0],afterDecimal:a[1]||"",hasNegation:r,addNegation:n}}function g(e,t,r){for(var n="",a=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||a;return n}function p(e,t){return Array(t+1).join(e)}function m(e){var t=e+"",r="-"===t[0]?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],o=n[1];if(!(o=Number(o)))return r+a;var u=1+o,i=(a=a.replace(".","")).length;return u<0?a="0."+p("0",Math.abs(u))+a:u>=i?a+=p("0",u-i):a=(a.substring(0,u)||"0")+"."+a.substring(u),r+a}function h(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,a=d(e),o=a.beforeDecimal,u=a.afterDecimal,i=a.hasNegation,l=parseFloat("0."+(u||"0")),c=(u.length<=t?"0."+u:l.toFixed(t)).split(".");return""+(i?"-":"")+o.split("").reverse().reduce((function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),c[0])+(n?".":"")+g(c[1]||"",t,r)}function S(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function b(e){return Math.max(e.selectionStart,e.selectionEnd)}function y(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function w(e,t,r,n){var a,o,u,i=e.length;if(a=t,o=0,u=i,t=Math.min(Math.max(a,o),u),"left"===n){for(;t>=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return-1===t&&(t=i),t}function O(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),r=0,n=t.length;r<n;r++)t[r]=Boolean(c(e[r])||c(e[r-1]));return t}function x(e,t,r,n,a,u){void 0===u&&(u=l);var i=Object(o.useRef)(),c=function(e){var t=Object(o.useRef)(e);return t.current=e,Object(o.useRef)((function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return t.current.apply(t,e)})).current}((function(e){var t,o;return s(e)||f(e)?(o="",t=""):"number"===typeof e||r?(o="number"===typeof e?m(e):e,t=n(o)):(o=a(e,void 0),t=e),{formattedValue:t,numAsString:o}})),v=Object(o.useState)((function(){return c(t)})),d=v[0],g=v[1];return Object(o.useMemo)((function(){s(e)?i.current=void 0:(i.current=c(e),g(i.current))}),[e,c]),[d,function(e,t){g({formattedValue:e.formattedValue,numAsString:e.value}),u(e,t)}]}function V(e){return e.replace(/[^0-9]/g,"")}function j(e){return e}function D(e){var t=e.type;void 0===t&&(t="text");var r=e.displayType;void 0===r&&(r="input");var a=e.customInput,s=e.renderText,f=e.getInputRef,v=e.format;void 0===v&&(v=j);var d=e.removeFormatting;void 0===d&&(d=V);var g=e.defaultValue,p=e.valueIsNumericString,m=e.onValueChange,h=e.isAllowed,y=e.onChange;void 0===y&&(y=l);var D=e.onKeyDown;void 0===D&&(D=l);var N=e.onMouseUp;void 0===N&&(N=l);var C=e.onFocus;void 0===C&&(C=l);var E=e.onBlur;void 0===E&&(E=l);var R=e.value,T=e.getCaretBoundary;void 0===T&&(T=O);var A=e.isValidInputCharacter;void 0===A&&(A=c);var B=i(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),I=x(R,g,Boolean(p),v,d,m),F=I[0],k=F.formattedValue,M=F.numAsString,P=I[1],K=Object(o.useRef)();Object(o.useEffect)((function(){var e=v(M);if(void 0===K.current||e!==K.current){var t=G.current,r=d(e,void 0);Q({formattedValue:e,numAsString:r,input:t,setCaretPosition:!0,source:n.props,event:void 0})}}));var L=Object(o.useState)(!1),W=L[0],U=L[1],G=Object(o.useRef)(null),$=Object(o.useRef)({setCaretTimeout:null,focusTimeout:null});Object(o.useEffect)((function(){return U(!0),function(){clearTimeout($.current.setCaretTimeout),clearTimeout($.current.focusTimeout)}}),[]);var z=v,J=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},Z=function(e,t,r){S(e,t),$.current.setCaretTimeout=setTimeout((function(){e.value===r&&S(e,t)}),0)},q=function(e,t,r){return w(e,t,T(e),r)},H=function(e,t,r){var n=T(t),a=function(e,t,r,n,a,o){var u=a.findIndex((function(e){return e})),i=e.slice(0,u);t||r.startsWith(i)||(r=i+r,n+=i.length);for(var l=r.length,c=e.length,s={},f=new Array(l),v=0;v<l;v++){f[v]=-1;for(var d=0,g=c;d<g;d++)if(r[v]===e[d]&&!0!==s[d]){f[v]=d,s[d]=!0;break}}for(var p=n;p<l&&(-1===f[p]||!o(r[p]));)p++;var m=p===l||-1===f[p]?c:f[p];for(p=n-1;p>0&&-1===f[p];)p--;var h=-1===p||-1===f[p]?0:f[p]+1;return h>m?m:n-h<m-n?h:m}(t,k,e,r,n,A);return a=w(t,a,n)},Q=function(e){var t=e.formattedValue;void 0===t&&(t="");var r=e.input,n=e.setCaretPosition;void 0===n&&(n=!0);var a=e.source,o=e.event,u=e.numAsString,i=e.caretPos;if(r){if(void 0===i&&n){var l=e.inputValue||r.value,c=b(r);r.value=t,i=H(l,t,c)}r.value=t,n&&void 0!==i&&Z(r,i,t)}t!==k&&function(e,t){K.current=e.formattedValue,P(e,t)}(J(t,u),{event:o,source:a})},X=!W||"undefined"===typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",Y=Object.assign({inputMode:X},B,{type:t,value:k,onChange:function(e){(function(e,t,r){var n=function(e,t){for(var r=0,n=0,a=e.length,o=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[o-1-n]&&o-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:o-n}}}(k,e),a=Object.assign(Object.assign({},n),{lastValue:k}),o=d(e,a),u=z(o);if(o=d(u,void 0),h&&!h(J(u,o))){var i=t.target,l=b(i),c=H(e,k,l);return Z(i,c,k),!1}return Q({formattedValue:u,numAsString:o,inputValue:e,event:t,source:r,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,n.event)&&y(e)},onKeyDown:function(e){var t,r=e.target,n=e.key,a=r.selectionStart,o=r.selectionEnd,u=r.value;if(void 0===u&&(u=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(a-1,0):"ArrowRight"===n?t=Math.min(a+1,u.length):"Delete"===n&&(t=a),void 0!==t&&a===o){var i=t;if("ArrowLeft"===n||"ArrowRight"===n)i=q(u,t,"ArrowLeft"===n?"left":"right");else"Delete"!==n||A(u[t])?"Backspace"!==n||A(u[t])||(i=q(u,t,"left")):i=q(u,t,"right");i!==t&&Z(r,i,u),e.isUnitTestRun&&Z(r,i,u),D(e)}else D(e)},onMouseUp:function(e){var t=e.target,r=t.selectionStart,n=t.selectionEnd,a=t.value;if(void 0===a&&(a=""),r===n){var o=q(a,r);o!==r&&Z(t,o,a)}N(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;G.current=t,$.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,n=t.selectionEnd,a=t.value;void 0===a&&(a="");var o=q(a,r);o===r||0===r&&n===a.length||Z(t,o,a),C(e)}),0)},onBlur:function(e){G.current=null,clearTimeout($.current.focusTimeout),clearTimeout($.current.setCaretTimeout),E(e)}});if("text"===r)return s?u.a.createElement(u.a.Fragment,null,s(k,B)||null):u.a.createElement("span",Object.assign({},B,{ref:f}),k);if(a){var _=a;return u.a.createElement(_,Object.assign({},Y,{ref:f}))}return u.a.createElement("input",Object.assign({},Y,{ref:f}))}function N(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,a=t.prefix;void 0===a&&(a="");var o=t.suffix;void 0===o&&(o="");var u=t.allowNegative;void 0===u&&(u=!0);var i=t.thousandsGroupStyle;if(void 0===i&&(i="thousand"),""===e||"-"===e)return e;var l=C(t),c=l.thousandSeparator,s=l.decimalSeparator,f=0!==r&&-1!==e.indexOf(".")||r&&n,v=d(e,u),p=v.beforeDecimal,m=v.afterDecimal,h=v.addNegation;return void 0!==r&&(m=g(m,r,!!n)),c&&(p=function(e,t,r){var n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(r),a=e.search(/[1-9]/);return a=-1===a?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(n,"$1"+t)}(p,c,i)),a&&(p=a+p),o&&(m+=o),h&&(p="-"+p),e=p+(f&&s||"")+m}function C(e){var t=e.decimalSeparator;void 0===t&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function E(e,t,r){void 0===t&&(t=y(e));var n=r.allowNegative;void 0===n&&(n=!0);var a=r.prefix;void 0===a&&(a="");var o=r.suffix;void 0===o&&(o="");var u=r.decimalScale,i=t.from,l=t.to,c=l.start,s=l.end,f=C(r),g=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[s]===p;if(s-c===1&&-1!==g.indexOf(e[c])){var h=0===u?"":p;e=e.substring(0,c)+h+e.substring(c+1,e.length)}var S=!1;a.startsWith("-")?S=e.startsWith("--"):o.startsWith("-")&&e.length===o.length?S=!1:"-"===e[0]&&(S=!0),S&&(e=e.substring(1),c-=1,s-=1);var b=0;e.startsWith(a)?b+=a.length:c<a.length&&(b=c),s-=b;var w=(e=e.substring(b)).length,O=e.length-o.length;e.endsWith(o)?w=O:s>e.length-o.length&&(w=s),e=e.substring(0,w);var x=(e=((e=function(e,t){void 0===e&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),a&&!o&&t&&(e="-"+e),e}(S?"-"+e:e,n)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+v(e),t?"g":void 0)}(p,!0))||[]).join("")).indexOf(p),V=d(e=e.replace(new RegExp(v(p),"g"),(function(e,t){return t===x?".":""})),n),j=V.beforeDecimal,D=V.afterDecimal,N=V.addNegation;return l.end-l.start<i.end-i.start&&""===j&&m&&!parseFloat(D)&&(e=N?"-":""),e}function R(e){var t=e.decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix,e.allowNegative;var r=e.allowLeadingZeros,a=e.onKeyDown;void 0===a&&(a=l);var o=e.onBlur;void 0===o&&(o=l);var u=e.thousandSeparator,v=e.decimalScale,d=e.fixedDecimalScale,g=e.prefix;void 0===g&&(g="");var p=e.defaultValue,b=e.value,y=e.valueIsNumericString,w=e.onValueChange,O=i(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]);!function(e){var t=C(e),r=t.thousandSeparator,n=t.decimalSeparator;if(r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ")}(e);var V=function(t){return N(t,e)},j=function(t,r){return E(t,r,e)},D=y;s(b)?s(p)||(D=null!==y&&void 0!==y?y:"number"===typeof p):D=null!==y&&void 0!==y?y:"number"===typeof b;var R=function(e){return s(e)||f(e)?e:("number"===typeof e&&(e=m(e)),D&&"number"===typeof v?h(e,v,Boolean(d)):e)},T=x(R(b),R(p),Boolean(D),V,j,w),A=T[0],B=A.numAsString,I=A.formattedValue,F=T[1];return Object.assign(Object.assign({},O),{value:I,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||c(e)},onValueChange:F,format:V,removeFormatting:j,getCaretBoundary:function(t){return function(e,t){var r=t.prefix;void 0===r&&(r="");var n=t.suffix;void 0===n&&(n="");var a=Array.from({length:e.length+1}).map((function(){return!0})),o="-"===e[0];a.fill(!1,0,r.length+(o?1:0));var u=e.length;return a.fill(!1,u-n.length+1,u+1),a}(t,e)},onKeyDown:function(t){var r=t.target,n=t.key,o=r.selectionStart,i=r.selectionEnd,l=r.value;if(void 0===l&&(l=""),o===i){"Backspace"===n&&"-"===l[0]&&o===g.length+1&&S(r,1);var c=C(e),s=c.decimalSeparator,f=c.allowedDecimalSeparators;"Backspace"===n&&l[o-1]===s&&v&&d&&(S(r,o-1),t.preventDefault()),(null===f||void 0===f?void 0:f.includes(n))&&l[o]===s&&S(r,o+1);var p=!0===u?",":u;"Backspace"===n&&l[o-1]===p&&S(r,o-1),"Delete"===n&&l[o]===p&&S(r,o+1),a(t)}else a(t)},onBlur:function(t){var a=B;if(a.match(/\d/g)||(a=""),r||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}(a)),d&&v&&(a=h(a,v,d)),a!==B){var u=N(a,e);F({formattedValue:u,value:a,floatValue:parseFloat(a)},{event:t,source:n.event})}o(t)}})}function T(e){var t=R(e);return u.a.createElement(D,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(n||(n={}));var A=Object(a.a)("div")({name:"NumberOverlayEditorStyle",class:"n1czszh3"});function B(){var e,t,r;const n=null==(r=null==(t=null==(e=Intl.NumberFormat())?void 0:e.formatToParts(1.1))?void 0:t.find((e=>"decimal"===e.type)))?void 0:r.value;return null!=n?n:"."}var I=e=>{const{value:t,onChange:r,disabled:n,highlight:a,validatedSelection:u}=e,i=o.useRef();return o.useLayoutEffect((()=>{var e;if(void 0!==u){const t="number"===typeof u?[u,null]:u;null==(e=i.current)||e.setSelectionRange(t[0],t[1])}}),[u]),o.createElement(A,null,o.createElement(T,{autoFocus:!0,getInputRef:i,className:"gdg-input",onFocus:e=>e.target.setSelectionRange(a?0:e.target.value.length,e.target.value.length),disabled:!0===n,thousandSeparator:"."===B()?",":".",decimalSeparator:B(),value:Object.is(t,-0)?"-":null!=t?t:"",onValueChange:r}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[49],{1722:function(e,t,n){!function(t){if("undefined"!==typeof window){var n=!0,o="",i=0,r="",a=null,u="",c=!1,s={resize:1,click:1},d=128,l=!0,f=1,m="bodyOffset",h=m,g=!0,p="",v={},y=32,w=null,b=!1,T=!1,E="[iFrameSizer]",O=E.length,S="",M={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",N=window.parent,A="*",k=0,C=!1,z=null,R=16,x=1,L="scroll",F=L,P=window,D=function(){$("onMessage function not defined")},j=function(){},q=function(){},H={height:function(){return $("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return $("Custom width calculation function not defined"),document.body.scrollWidth}},W={},B=!1;try{var J=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",Y,J),window.removeEventListener("test",Y,J)}catch(Te){}var U={bodyOffset:function(){return document.body.offsetHeight+se("marginTop")+se("marginBottom")},offset:function(){return U.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,le(U))},min:function(){return Math.min.apply(null,le(U))},grow:function(){return U.max()},lowestElement:function(){return Math.max(U.bodyOffset()||U.documentElementOffset(),de("bottom",me()))},taggedElement:function(){return fe("bottom","data-iframe-height")}},V={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(V.bodyScroll(),V.documentElementScroll())},max:function(){return Math.max.apply(null,le(V))},min:function(){return Math.min.apply(null,le(V))},rightMostElement:function(){return de("right",me())},taggedElement:function(){return fe("right","data-iframe-width")}},X=function(e){var t,n,o,i=null,r=0,a=function(){r=Date.now(),i=null,o=e.apply(t,n),i||(t=n=null)};return function(){var u=Date.now();r||(r=u);var c=R-(u-r);return t=this,n=arguments,c<=0||c>R?(i&&(clearTimeout(i),i=null),r=u,o=e.apply(t,n),i||(t=n=null)):i||(i=setTimeout(a,c)),o}}(he);K(window,"message",(function(n){var o={init:function(){p=n.data,N=n.source,_(),l=!1,setTimeout((function(){g=!1}),d)},reset:function(){g?Z("Page reset ignored by init"):(Z("Page size reset by host page"),ve("resetPage"))},resize:function(){ge("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(r())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=r();Z("PageInfoFromParent called from parent: "+e),q(JSON.parse(e)),Z(" --")},message:function(){var e=r();Z("onMessage called from parent: "+e),D(JSON.parse(e)),Z(" --")}};function i(){return n.data.split("]")[1].split(":")[0]}function r(){return n.data.slice(n.data.indexOf(":")+1)}function a(){return n.data.split(":")[2]in{true:1,false:1}}function u(){var r=i();r in o?o[r]():!e.exports&&"iFrameResize"in window||window.jQuery!==t&&"iFrameResize"in window.jQuery.prototype||a()||$("Unexpected message ("+n.data+")")}E===(""+n.data).slice(0,O)&&(!1===l?u():a()?o.init():Z('Ignored message of type "'+i()+'". Received before initialization.'))})),K(window,"readystatechange",be),be()}function Y(){}function K(e,t,n,o){e.addEventListener(t,n,!!B&&(o||{}))}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function G(e){return E+"["+S+"] "+e}function Z(e){b&&"object"===typeof window.console&&console.log(G(e))}function $(e){"object"===typeof window.console&&console.warn(G(e))}function _(){!function(){function e(e){return"true"===e}var a=p.slice(O).split(":");S=a[0],i=t===a[1]?i:Number(a[1]),c=t===a[2]?c:e(a[2]),b=t===a[3]?b:e(a[3]),y=t===a[4]?y:Number(a[4]),n=t===a[6]?n:e(a[6]),r=a[7],h=t===a[8]?h:a[8],o=a[9],u=a[10],k=t===a[11]?k:Number(a[11]),v.enable=t!==a[12]&&e(a[12]),I=t===a[13]?I:a[13],F=t===a[14]?F:a[14],T=t===a[15]?T:Boolean(a[15])}(),Z("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;Z("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ee,e),D="onMessage"in e?e.onMessage:D,j="onReady"in e?e.onReady:j,A="targetOrigin"in e?e.targetOrigin:A,h="heightCalculationMethod"in e?e.heightCalculationMethod:h,F="widthCalculationMethod"in e?e.widthCalculationMethod:F}function t(e,t){return"function"===typeof e&&(Z("Setup custom "+t+"CalcMethod"),H[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),h=t(h,"height"),F=t(F,"width"));Z("TargetOrigin for parent set to: "+A)}(),function(){t===r&&(r=i+"px");te("margin",function(e,t){-1!==t.indexOf("-")&&($("Negative CSS value ignored for "+e),t="");return t}("margin",r))}(),te("background",o),te("padding",u),function(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}(),re(),ae(),document.documentElement.style.height="",document.body.style.height="",Z('HTML & body height set to "auto"'),Z("Enable public methods"),P.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,ue()):!1===e&&!0===n&&(n=!1,oe("remove"),null!==a&&a.disconnect(),clearInterval(w)),we(0,0,"autoResize",JSON.stringify(n)),n},close:function(){we(0,0,"close")},getId:function(){return S},getPageInfo:function(e){"function"===typeof e?(q=e,we(0,0,"pageInfo")):(q=function(){},we(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){ye("parentIFrame.reset")},scrollTo:function(e,t){we(t,e,"scrollTo")},scrollToOffset:function(e,t){we(t,e,"scrollToOffset")},sendMessage:function(e,t){we(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){h=e,re()},setWidthCalculationMethod:function(e){F=e,ae()},setTargetOrigin:function(e){Z("Set targetOrigin: "+e),A=e},size:function(e,t){ge("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==T)return;function e(e){we(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){Z("Add event listener: "+n),K(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),ue(),v=function(){function e(){return{x:window.pageXOffset===t?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===t?document.documentElement.scrollTop:window.pageYOffset}}function n(t){var n=t.getBoundingClientRect(),o=e();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var t=n(e);Z("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),we(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,r=decodeURIComponent(i),a=document.getElementById(r)||document.getElementsByName(r)[0];t===a?(Z("In page link (#"+i+") not found in iFrame, so sending to parent"),we(0,0,"inPageLink","#"+i)):o(a)}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&K(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){K(window,"hashchange",i)}function u(){setTimeout(i,d)}function c(){Array.prototype.forEach&&document.querySelectorAll?(Z("Setting up location.hash handlers"),r(),a(),u()):$("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}v.enable?c():Z("In page linking not enabled");return{findTarget:o}}(),ge("init","Init message from host page"),j()}function ee(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],$("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function te(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,Z("Body "+e+' set to "'+n+'"'))}function ne(e){var t={add:function(t){function n(){ge(e.eventName,e.eventType)}W[t]=n,K(window,t,n,{passive:!0})},remove:function(e){var t,n,o,i=W[e];delete W[e],t=window,n=e,o=i,t.removeEventListener(n,o,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),Z(Q(e.method)+" event listener: "+e.eventType)}function oe(e){ne({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ne({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ne({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ne({method:e,eventType:"Input",eventName:"input"}),ne({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ne({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ne({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ne({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),ne({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ne({method:e,eventType:"Touch Start",eventName:"touchstart"}),ne({method:e,eventType:"Touch End",eventName:"touchend"}),ne({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ne({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ne({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ne({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===I&&ne({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ie(e,t,n,o){return t!==e&&(e in n||($(e+" is not a valid option for "+o+"CalculationMethod."),e=t),Z(o+' calculation method set to "'+e+'"')),e}function re(){h=ie(h,m,U,"height")}function ae(){F=ie(F,L,V,"width")}function ue(){!0===n?(oe("add"),function(){var e=0>y;window.MutationObserver||window.WebKitMutationObserver?e?ce():a=function(){function e(e){function t(e){!1===e.complete&&(Z("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){c.splice(c.indexOf(e),1)}function n(e){Z("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),t(e)}function o(e,t,o){n(e.target),ge(t,o+": "+e.target.src)}function i(e){o(e,"imageLoad","Image loaded")}function r(e){o(e,"imageLoadFailed","Image load failed")}function a(t){ge("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function u(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new s(a),Z("Create body MutationObserver"),d.observe(e,t),d}var c=[],s=window.MutationObserver||window.WebKitMutationObserver,d=u();return{disconnect:function(){"disconnect"in d&&(Z("Disconnect body MutationObserver"),d.disconnect(),c.forEach(n))}}}():(Z("MutationObserver not supported in this browser!"),ce())}()):Z("Auto Resize disabled")}function ce(){0!==y&&(Z("setInterval: "+y+"ms"),w=setInterval((function(){ge("interval","setInterval: "+y)}),Math.abs(y)))}function se(e,t){var n=0;return t=t||document.body,n=null===(n=document.defaultView.getComputedStyle(t,null))?0:n[e],parseInt(n,10)}function de(e,t){for(var n=t.length,o=0,i=0,r=Q(e),a=Date.now(),u=0;u<n;u++)(o=t[u].getBoundingClientRect()[e]+se("margin"+r,t[u]))>i&&(i=o);return a=Date.now()-a,Z("Parsed "+n+" HTML elements"),Z("Element position calculated in "+a+"ms"),function(e){e>R/2&&Z("Event throttle increased to "+(R=2*e)+"ms")}(a),i}function le(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function fe(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&($("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),de(e,n)}function me(){return document.querySelectorAll("body *")}function he(e,n,o,i){var r,a;!function(){function e(e,t){return!(Math.abs(e-t)<=k)}return r=t===o?U[h]():o,a=t===i?V[F]():i,e(f,r)||c&&e(x,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(h in M||c&&F in M)?ye(n):e in{interval:1}||Z("No change in size detected"):(pe(),we(f=r,x=a,e))}function ge(e,t,n,o){C&&e in s?Z("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||Z("Trigger event: "+t),"init"===e?he(e,t,n,o):X(e,t,n,o))}function pe(){C||(C=!0,Z("Trigger event lock on")),clearTimeout(z),z=setTimeout((function(){C=!1,Z("Trigger event lock off"),Z("--")}),d)}function ve(e){f=U[h](),x=V[F](),we(f,x,e)}function ye(e){var t=h;h=m,Z("Reset trigger event: "+e),pe(),ve("reset"),h=t}function we(e,n,o,i,r){t===r?r=A:Z("Message targetOrigin: "+r),function(){var a=S+":"+e+":"+n+":"+o+(t===i?"":":"+i);Z("Sending message to host page ("+a+")"),N.postMessage(E+a,r)}()}function be(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()}}]);
|