streamlit-nightly 1.52.3.dev20260108__py3-none-any.whl → 1.52.3.dev20260110__py3-none-any.whl
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.
- streamlit/components/v2/__init__.py +3 -3
- streamlit/components/v2/types.py +4 -4
- streamlit/config.py +14 -0
- streamlit/elements/lib/options_selector_utils.py +98 -0
- streamlit/elements/widgets/multiselect.py +19 -9
- streamlit/elements/widgets/selectbox.py +12 -24
- streamlit/proto/MetricsEvent_pb2.py +4 -4
- streamlit/proto/MetricsEvent_pb2.pyi +4 -1
- streamlit/proto/PageProfile_pb2.py +6 -6
- streamlit/proto/PageProfile_pb2.pyi +11 -1
- streamlit/runtime/metrics_util.py +4 -0
- streamlit/runtime/runtime.py +3 -0
- streamlit/starlette.py +34 -0
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +300 -300
- streamlit/static/static/js/{ErrorOutline.esm.j3b3OjAK.js → ErrorOutline.esm.BcqUpfNe.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.DCizXv6Q.js → FileDownload.esm.CtJWBuub.js} +1 -1
- streamlit/static/static/js/{FileHelper.EpMV5UVe.js → FileHelper.D0dQPhOs.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.lF7Ran5M.js → FormClearHelper.Cm3GDSk6.js} +1 -1
- streamlit/static/static/js/{InputInstructions.CMvqhPhy.js → InputInstructions.D7Hxdzwv.js} +1 -1
- streamlit/static/static/js/{Particles.DsGe8psi.js → Particles.vAUDtAR8.js} +1 -1
- streamlit/static/static/js/{ProgressBar.DzoKn4D-.js → ProgressBar.Dp2CGRba.js} +2 -2
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.CFab0b_b.js → StreamlitSyntaxHighlighter.DC0000nJ.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.nZsTq1Sb.js → TableChart.esm.DDVoSKOT.js} +1 -1
- streamlit/static/static/js/{Toolbar.CFMvwQYl.js → Toolbar.CuMH-Gqe.js} +1 -1
- streamlit/static/static/js/{WidgetLabelHelpIconInline.D2EEUEQX.js → WidgetLabelHelpIconInline.WAReecol.js} +1 -1
- streamlit/static/static/js/{base-input.DKTA2QNz.js → base-input.BX9Jll5o.js} +4 -4
- streamlit/static/static/js/{checkbox.D9H9J-_W.js → checkbox.BzMHUSz1.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.DCk6EhPM.js → createDownloadLinkElement.CviG5BQx.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.DExrGdqs.js → data-grid-overlay-editor.Dzo9A4l6.js} +1 -1
- streamlit/static/static/js/{downloader.CLJ7BreF.js → downloader.DIDvj0d5.js} +1 -1
- streamlit/static/static/js/{embed.CxOHZWx2.js → embed.C8qeQ38b.js} +6 -6
- streamlit/static/static/js/{es6.C99ebre4.js → es6.Dpcc-U7U.js} +2 -2
- streamlit/static/static/js/{formatNumber.D_w4fBsk.js → formatNumber.CPvuaBa8.js} +1 -1
- streamlit/static/static/js/{iconPosition.Cfhw1RkE.js → iconPosition.y0q-Rqem.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.BcWUIYOe.js → iframeResizer.contentWindow.DblExdXF.js} +1 -1
- streamlit/static/static/js/{index.BWK_h3IL.js → index.B-g6lwYa.js} +1 -1
- streamlit/static/static/js/{index.DoLorXMA.js → index.B10MmI2m.js} +1 -1
- streamlit/static/static/js/{index.Dx8TcTHV.js → index.B6vCS66f.js} +6 -6
- streamlit/static/static/js/{index.Bp_LrAiI.js → index.B9TG5Ah8.js} +1 -1
- streamlit/static/static/js/{index.CrJ9KZpt.js → index.BDb0PRvK.js} +1 -1
- streamlit/static/static/js/{index.1AemKTSK.js → index.BGufEmCz.js} +1 -1
- streamlit/static/static/js/{index.7Q3Iaebc.js → index.BItU4jMo.js} +1 -1
- streamlit/static/static/js/{index.D18KqoUa.js → index.BPMqWDef.js} +1 -1
- streamlit/static/static/js/index.BTHi5W25.js +1 -0
- streamlit/static/static/js/{index.BHx4Qw7z.js → index.BVN9cI-k.js} +1 -1
- streamlit/static/static/js/index.BWOP7HFT.js +1 -0
- streamlit/static/static/js/{index.DDx6TP95.js → index.BXYgO5B8.js} +1 -1
- streamlit/static/static/js/{index.DkSjHoXw.js → index.BZBWLU1C.js} +8 -8
- streamlit/static/static/js/{index.f_s01aPm.js → index.BfZdZpv-.js} +2 -2
- streamlit/static/static/js/{index.C7_5JMRC.js → index.Bxe7fKbw.js} +1 -1
- streamlit/static/static/js/{index.BcbR2mbc.js → index.C1ElSZEy.js} +1 -1
- streamlit/static/static/js/index.C26ZOVFL.js +1 -0
- streamlit/static/static/js/{index.aJ3XRx8R.js → index.C7lwRBvF.js} +1 -1
- streamlit/static/static/js/{index.CGX2fllG.js → index.C93QGPyk.js} +1 -1
- streamlit/static/static/js/{index.COjurlZk.js → index.CCDejIvL.js} +2 -2
- streamlit/static/static/js/index.CcMmNHAq.js +1 -0
- streamlit/static/static/js/index.D42y-GeO.js +1 -0
- streamlit/static/static/js/{index.C0VFHmJN.js → index.D69ULFWq.js} +1 -1
- streamlit/static/static/js/{index.V4C1Oi-F.js → index.DB4MbQ40.js} +3 -3
- streamlit/static/static/js/{index.DJ4GBc1k.js → index.DRFJgBf-.js} +1 -1
- streamlit/static/static/js/{index.BXQNt1hj.js → index.DTK-btqV.js} +1 -1
- streamlit/static/static/js/{index.CFE-yHdT.js → index.DZEQ0G7H.js} +1 -1
- streamlit/static/static/js/{index.Bu3Lto_G.js → index.DaU1ayM7.js} +1 -1
- streamlit/static/static/js/{index.DSSQzzPk.js → index.Dla9XiNe.js} +2 -2
- streamlit/static/static/js/{index.DiZfOR0A.js → index.DmQqT9OM.js} +1 -1
- streamlit/static/static/js/{index.DuFqxjbN.js → index.DppScppA.js} +1 -1
- streamlit/static/static/js/{index.Dqphk1ee.js → index.Dr8b3Vn6.js} +1 -1
- streamlit/static/static/js/{index.CPo5dtx7.js → index.DvQ7-afx.js} +1 -1
- streamlit/static/static/js/{index.ATP5607r.js → index.F-NmmwfK.js} +1 -1
- streamlit/static/static/js/{index.gnFSTAhI.js → index.MKI8t7l2.js} +1 -1
- streamlit/static/static/js/{index.BXnQdCa5.js → index.RRAKXgBZ.js} +1 -1
- streamlit/static/static/js/{index.CyVBY8PG.js → index.VSsf6tsu.js} +2 -2
- streamlit/static/static/js/{index.DcudoGfL.js → index.aEeM0ekc.js} +1 -1
- streamlit/static/static/js/{index.Ds-w0zIo.js → index.eweE9HKU.js} +1 -1
- streamlit/static/static/js/{index.CBZQ_6AF.js → index.gr6yGiCL.js} +1 -1
- streamlit/static/static/js/{index.mZ1qbnKs.js → index.kKkHk9Mc.js} +1 -1
- streamlit/static/static/js/index.pMvzHC7z.js +1 -0
- streamlit/static/static/js/{index.DIIdzDwK.js → index.pgifwCIr.js} +1 -1
- streamlit/static/static/js/index.q83b8_8b.js +1 -0
- streamlit/static/static/js/{index.BzQChe4y.js → index.u2AvcQQT.js} +1 -1
- streamlit/static/static/js/{index.CrzXL2V8.js → index.w2_VrtVw.js} +1 -1
- streamlit/static/static/js/{index.DbmtfcDm.js → index.wv1DYVsn.js} +1 -1
- streamlit/static/static/js/{index.COZICZL6.js → index.x4j6nnNb.js} +1 -1
- streamlit/static/static/js/{input.CZPD7mCu.js → input.BoJqOS7a.js} +1 -1
- streamlit/static/static/js/{main.CX1jAiMw.js → main.B5XmUwmQ.js} +1 -1
- streamlit/static/static/js/{memory.m0jC5ULx.js → memory.9izgq54V.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.Dy0iTeCo.js → number-overlay-editor.PqOGQcLn.js} +1 -1
- streamlit/static/static/js/{pandasStylerUtils.D9jj-wHU.js → pandasStylerUtils.DUtF2t3R.js} +1 -1
- streamlit/static/static/js/{sandbox.CbvG1iAz.js → sandbox.DgKTHPLO.js} +1 -1
- streamlit/static/static/js/{styled-components.Cw3ioniY.js → styled-components.D4x8jmOI.js} +1 -1
- streamlit/static/static/js/{throttle.CAwhGpn0.js → throttle.DxEHIIp7.js} +1 -1
- streamlit/static/static/js/{timepicker.Bh3m6Pjp.js → timepicker.CDks5DWI.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.DM0o32JS.js → toConsumableArray.CvTQRsV-.js} +1 -1
- streamlit/static/static/js/uniqueId.RScLN3St.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.C9zOVP8a.js → useBasicWidgetState.D6_b0IqA.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.Bo42aN1U.js → useIntlLocale.Ctz17A7g.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.DmyHLDxl.js → useTextInputAutoExpand.PAFB5o1T.js} +1 -1
- streamlit/static/static/js/{useUpdateUiValue.aWXWpqmw.js → useUpdateUiValue.CcTvmGlb.js} +1 -1
- streamlit/static/static/js/{useWaveformController.DlE14M1X.js → useWaveformController.vLi36Ir4.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.B5JFJSmG.js → withCalculatedWidth.BtA2jL5-.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.dgVioHk1.js → withFullScreenWrapper.CeeoYBpc.js} +1 -1
- streamlit/web/bootstrap.py +105 -10
- streamlit/web/cli.py +21 -4
- streamlit/web/server/app_discovery.py +421 -0
- streamlit/web/server/server.py +0 -13
- streamlit/web/server/starlette/__init__.py +2 -1
- streamlit/web/server/starlette/starlette_app.py +326 -3
- streamlit/web/server/starlette/starlette_routes.py +27 -8
- {streamlit_nightly-1.52.3.dev20260108.dist-info → streamlit_nightly-1.52.3.dev20260110.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.52.3.dev20260108.dist-info → streamlit_nightly-1.52.3.dev20260110.dist-info}/RECORD +115 -113
- streamlit/static/static/js/index.BOGNGR9a.js +0 -1
- streamlit/static/static/js/index.C-lnh8pI.js +0 -1
- streamlit/static/static/js/index.C98anBCM.js +0 -1
- streamlit/static/static/js/index.CFtGP8pH.js +0 -1
- streamlit/static/static/js/index.Cg59Loqx.js +0 -1
- streamlit/static/static/js/index.CiU2Tdcl.js +0 -1
- streamlit/static/static/js/index.DpnqUQVD.js +0 -1
- streamlit/static/static/js/uniqueId.DtV_RZzG.js +0 -1
- {streamlit_nightly-1.52.3.dev20260108.data → streamlit_nightly-1.52.3.dev20260110.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.52.3.dev20260108.dist-info → streamlit_nightly-1.52.3.dev20260110.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.52.3.dev20260108.dist-info → streamlit_nightly-1.52.3.dev20260110.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.52.3.dev20260108.dist-info → streamlit_nightly-1.52.3.dev20260110.dist-info}/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=4vltvfI348h2yIOUohsc2DtG-lclcjCAdR1mewGeMck,868
|
|
|
3
3
|
streamlit/auth_util.py,sha256=rOqNOkTEJ8uj5tHPCOKwKWLKJMas_XZGhcCWCJZ0JhY,17485
|
|
4
4
|
streamlit/cli_util.py,sha256=ckW8XHbiCgepolHeBrg7GJ-gptkR_7tRMOoO9_1_dck,3466
|
|
5
5
|
streamlit/column_config.py,sha256=JAiL6KDj9bcS-quoiWK8D2rKzG1LGWnY0b5xwY4lVfs,1497
|
|
6
|
-
streamlit/config.py,sha256=
|
|
6
|
+
streamlit/config.py,sha256=AMJT96hCmFUvECkuJPNtU4ff5FguvPu0TlyvZm6V47o,89074
|
|
7
7
|
streamlit/config_option.py,sha256=d8PJubac9JS7G99w1N4_0er8sJ4DzyA_mqoy0n1XrRI,11744
|
|
8
8
|
streamlit/config_util.py,sha256=nzdJBIn1NOZcR8qi9WKwqHjSgYNb6LL9Gfik1aG8ei4,30917
|
|
9
9
|
streamlit/cursor.py,sha256=M8b92hMFV76FL0A8aa6wfe5NI5gsbldn_VvRQ6J0Is0,9425
|
|
@@ -24,6 +24,7 @@ streamlit/net_util.py,sha256=woBvAfY7FgIIngkLRw0slax1jm6L-7TzccTuH0LH73g,3307
|
|
|
24
24
|
streamlit/platform.py,sha256=DgIXk4JVoZE06h9HeaKJyAmnqSo50IsTw6rAXlBwG0Q,1119
|
|
25
25
|
streamlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
streamlit/source_util.py,sha256=dscsFkGyMt--L7fb0mTUmzZiSYA3QmjeJsVpzSxq7fw,3168
|
|
27
|
+
streamlit/starlette.py,sha256=bBIonEukZmXqlrR6FA7SRjEgMkYmvfhuQQfMEGTrzY8,1051
|
|
27
28
|
streamlit/string_util.py,sha256=NNHlJxHsOpoG-KIp_PWIr7o0AAWh8WO5EoE5ztGFxGY,7980
|
|
28
29
|
streamlit/temporary_directory.py,sha256=EWGVi2kkoIgiKK_GfU-A763c7QkpcHoAOJrKPyqWP-4,1929
|
|
29
30
|
streamlit/time_util.py,sha256=vXszmS-05FXEydBSjDjTw4WZ9Q7n8J23tC77cWbTDeA,2493
|
|
@@ -50,7 +51,7 @@ streamlit/components/v1/component_arrow.py,sha256=jGrFpj9pjbPvQSK-pE0gIJXVgQXPz0
|
|
|
50
51
|
streamlit/components/v1/component_registry.py,sha256=H3tRHaLfwer9tYUXVOjTs4DWH2Nzbz0VZZB3Tykuelk,5786
|
|
51
52
|
streamlit/components/v1/components.py,sha256=4FabujVHBIznkv8NNGJrZ5CSCCs2lhN7MHBIWCRMX90,1585
|
|
52
53
|
streamlit/components/v1/custom_component.py,sha256=KZorWG7912ZPfxtI6HbYSQoQmfMOFUXJGNRPxNz8PdE,9196
|
|
53
|
-
streamlit/components/v2/__init__.py,sha256=
|
|
54
|
+
streamlit/components/v2/__init__.py,sha256=Uf25Fn2RlZHw66joqYfXYBlujigvwiUAsMAgGYbCwaE,18428
|
|
54
55
|
streamlit/components/v2/component_definition_resolver.py,sha256=SLwm6YgqOa1GnMnJbXBxzMWhIu0sdq5N-dnA5MLly5I,5758
|
|
55
56
|
streamlit/components/v2/component_file_watcher.py,sha256=j1rhtOQsUg5LOkihdTBhZ18OSsFUZtc43DHygrYdKkQ,14653
|
|
56
57
|
streamlit/components/v2/component_manager.py,sha256=o9vp2PkyQeWEAM2WvfSsH_NKdyKZAppBRQJnzPcQl2c,15642
|
|
@@ -60,7 +61,7 @@ streamlit/components/v2/component_registry.py,sha256=t0bnA7amm7dtyittpQ4w-4WVfST
|
|
|
60
61
|
streamlit/components/v2/get_bidi_component_manager.py,sha256=3fvVy2BCve2-YPXs8pSbEPIKRUUts5R_B6usWnASiGM,1759
|
|
61
62
|
streamlit/components/v2/manifest_scanner.py,sha256=iBJEP1Wi6rEyrFMA1KL7f-NWuAa23zR_BbD1E0LVSkQ,20976
|
|
62
63
|
streamlit/components/v2/presentation.py,sha256=hFAMFASSIqDkIpLMh-rY9p3UPiclhpMOgWypLwzx2wA,8183
|
|
63
|
-
streamlit/components/v2/types.py,sha256=
|
|
64
|
+
streamlit/components/v2/types.py,sha256=cWh0NRefupRQPSdQ3ImwWN4x-cWDksGIWPjubxNfO34,12160
|
|
64
65
|
streamlit/components/v2/bidi_component/__init__.py,sha256=qHYhEQiK4a2f8PX4WxJfKOsqQ1lLFUZkPYya4sJtQ_o,862
|
|
65
66
|
streamlit/components/v2/bidi_component/constants.py,sha256=th008h0MS8uErePmBzHc0dZtZeo2o_g26NAmQ0ZPxaw,1276
|
|
66
67
|
streamlit/components/v2/bidi_component/main.py,sha256=LFezfUGZc3zbUpW-emhaYpUrwNq0DYnzrNbSG4VqbdA,21601
|
|
@@ -119,7 +120,7 @@ streamlit/elements/lib/image_utils.py,sha256=YJPTfMYfmMYY7nWFgsaUYoP6MPxBo9sZtP4
|
|
|
119
120
|
streamlit/elements/lib/js_number.py,sha256=C3tYS0cXhFsavLfnqbuae8ReTuRcZCSRQao3duZrYdY,3532
|
|
120
121
|
streamlit/elements/lib/layout_utils.py,sha256=qdiwZpPVnqKm_4dGJ5e2HEcswFyTYd8XTeftMexwfAo,10508
|
|
121
122
|
streamlit/elements/lib/mutable_status_container.py,sha256=jMme2cv808DuN_28dcyaTd1U0xyew2VoUAC1STm2kZw,7101
|
|
122
|
-
streamlit/elements/lib/options_selector_utils.py,sha256=
|
|
123
|
+
streamlit/elements/lib/options_selector_utils.py,sha256=e36sRDisBl8O6RX8iYpkDR30TfdS3lp_kYmC7a8sXiI,13103
|
|
123
124
|
streamlit/elements/lib/pandas_styler_utils.py,sha256=6dGx490ltXt_cNvvugBdYyZTyAfXmq9gbaQNbrq2wXI,9451
|
|
124
125
|
streamlit/elements/lib/policies.py,sha256=4lPgjKsKiVBLJoonOzKIqsAqavxP8hsngsDWfPmqmBo,6877
|
|
125
126
|
streamlit/elements/lib/shortcut_utils.py,sha256=hdS3N-vW2hRgKx5dl1XLMDL5-uKDyQh4ieY3urgq8Hs,4375
|
|
@@ -136,11 +137,11 @@ streamlit/elements/widgets/checkbox.py,sha256=TUVcEOki2Tj-reQPeqLNkZm6z04zZP8rIc
|
|
|
136
137
|
streamlit/elements/widgets/color_picker.py,sha256=kBMrJPbMiCamvMKRWQrlr55C8y1LGKlFgmwAPvnDlWw,10028
|
|
137
138
|
streamlit/elements/widgets/data_editor.py,sha256=RKDyecGIMyk7mNuh1DtSmbXptaERRoiRmmik6fY2TeE,45016
|
|
138
139
|
streamlit/elements/widgets/file_uploader.py,sha256=flhD2WNjHBLpezRh-qSY0IkVIFgANJZEeJWHmTZ9UFU,22837
|
|
139
|
-
streamlit/elements/widgets/multiselect.py,sha256=
|
|
140
|
+
streamlit/elements/widgets/multiselect.py,sha256=1nbPGHI7BVAVRBF6PdYvRyBGoTqm-AOhjWBIFLkg-L4,21550
|
|
140
141
|
streamlit/elements/widgets/number_input.py,sha256=dv_S5Lkkz4orExYrSVSO6ZTWUjuBFdfeSXJfvseqA0w,25443
|
|
141
142
|
streamlit/elements/widgets/radio.py,sha256=D3zI0eqsFvjbDqXamP2yrV5kLb6YHv3Z-dd1wvTylME,16250
|
|
142
143
|
streamlit/elements/widgets/select_slider.py,sha256=bswBo0MVHwAOzjLoldvNDUvKYzpUNdqNFGDkQvjmdpA,16096
|
|
143
|
-
streamlit/elements/widgets/selectbox.py,sha256=
|
|
144
|
+
streamlit/elements/widgets/selectbox.py,sha256=yQk8aa2Leu2eYl0eahQqNp1cieebhffG8iHWfrSpDG4,23084
|
|
144
145
|
streamlit/elements/widgets/slider.py,sha256=TYlSlY7aUKVdyrJT8ZRioajSM76SzRFofLiMgOPWZSw,40050
|
|
145
146
|
streamlit/elements/widgets/text_widgets.py,sha256=GNPemFOxCJSh6tSs7i55tLPkpRaOyI57c_KMAWyvcuU,26671
|
|
146
147
|
streamlit/elements/widgets/time_widgets.py,sha256=qVZF7c-aCOpexOcVwxGoZGX34Z66g8_rMPgMnlFLbjs,57773
|
|
@@ -263,8 +264,8 @@ streamlit/proto/Markdown_pb2.py,sha256=t5v_MejkjlkQO3uXGwQEw07KdTt7pYA9iKCVw2yVP
|
|
|
263
264
|
streamlit/proto/Markdown_pb2.pyi,sha256=6wC_3QQ1GExK2RlSjM3nhB4Cp0VWJU0N6LhVHWPLbXI,3297
|
|
264
265
|
streamlit/proto/Metric_pb2.py,sha256=GF1ORLH6rz4DxcgZya9R36LhcOzmrQbrGPxIXuzQkO4,2653
|
|
265
266
|
streamlit/proto/Metric_pb2.pyi,sha256=ImAYPuX45bGk674Qk1PngfhhRHKNMss9wsQha8BCg8Q,6218
|
|
266
|
-
streamlit/proto/MetricsEvent_pb2.py,sha256=
|
|
267
|
-
streamlit/proto/MetricsEvent_pb2.pyi,sha256=
|
|
267
|
+
streamlit/proto/MetricsEvent_pb2.py,sha256=k3YcrDsPuE82cQY1zxSIKp3RiMsyess4iuTgQwUb5bI,3537
|
|
268
|
+
streamlit/proto/MetricsEvent_pb2.pyi,sha256=AL71hjuxWkHGOWGS1GeFcSzV6uNN7WxvSsvmjWJy_Ik,9853
|
|
268
269
|
streamlit/proto/MultiSelect_pb2.py,sha256=HUY28rogdzYqfumBwN7kRHK_6d4xXmd6mDX1PdgCaEI,2211
|
|
269
270
|
streamlit/proto/MultiSelect_pb2.pyi,sha256=eakunnwgIXF6asc0AcOQIdtcnbesjY11gQRmFmBuecg,4842
|
|
270
271
|
streamlit/proto/NamedDataSet_pb2.py,sha256=cWRrGJRex35yZSApkPUWtfX31CHh2puULXQuRTV0Flg,1480
|
|
@@ -283,8 +284,8 @@ streamlit/proto/PageLink_pb2.py,sha256=dRxLnOjG0W_vonufqkT1xrECD-JSF2613kNpSLiYF
|
|
|
283
284
|
streamlit/proto/PageLink_pb2.pyi,sha256=nF_GU3hewilbH7ikzJ50B5at_tj-joMwCVZlm455pcg,3553
|
|
284
285
|
streamlit/proto/PageNotFound_pb2.py,sha256=qfmzJEdhDRjmqfAG2ClnPA7zEw4-4o7CmUPFz1v5NNU,1261
|
|
285
286
|
streamlit/proto/PageNotFound_pb2.pyi,sha256=EXDbyXonnoZsTgaPnsy03MjkbmNBTYumKub2JJQdko4,1550
|
|
286
|
-
streamlit/proto/PageProfile_pb2.py,sha256=
|
|
287
|
-
streamlit/proto/PageProfile_pb2.pyi,sha256=
|
|
287
|
+
streamlit/proto/PageProfile_pb2.py,sha256=P0LbOQlKnicfwZXrAF11Q3BAWTN5O4I44hiErjcdL-0,2149
|
|
288
|
+
streamlit/proto/PageProfile_pb2.pyi,sha256=cs6FHL-7PDcjb2XasEN1jlqzOF_dQqAq1blUjk7iOh8,5691
|
|
288
289
|
streamlit/proto/PagesChanged_pb2.py,sha256=xTExvEX6zEBjBAB1Itonq_gNCqtDai7uZPLAq2U0CRY,1397
|
|
289
290
|
streamlit/proto/PagesChanged_pb2.pyi,sha256=proG0DGGaZerQVBCeeOCZ9GycyPOl46WjHM7yNGvz_k,1879
|
|
290
291
|
streamlit/proto/ParentMessage_pb2.py,sha256=oalzQ6nsDxWbvPHzPzmrE0MYX722v8NYy2Y5JH6S_Xw,1266
|
|
@@ -353,9 +354,9 @@ streamlit/runtime/media_file_storage.py,sha256=DSq8O6Okdpgef5E6OVBm-cbJebDT7uZDq
|
|
|
353
354
|
streamlit/runtime/memory_media_file_storage.py,sha256=GeNx17e9vyFDDJ1fgnF7Sf8DCSRWdZ4EWL_Xt3JC4YM,6846
|
|
354
355
|
streamlit/runtime/memory_session_storage.py,sha256=uVRX5Z3opYEv-Xrl1wQqZ9hflyRXvk9fc5olVWSd8qY,3034
|
|
355
356
|
streamlit/runtime/memory_uploaded_file_manager.py,sha256=ON_lPp_ud2xLfBz5jPeQO17Z0hswa2NnXcLUAlevxT8,5020
|
|
356
|
-
streamlit/runtime/metrics_util.py,sha256=
|
|
357
|
+
streamlit/runtime/metrics_util.py,sha256=jhTmIN21Oh2RekiGjePEawROa-1eI_vHD88OEOYJtzY,18015
|
|
357
358
|
streamlit/runtime/pages_manager.py,sha256=VmFgVNe4rifiOw_7fX94KFugVbu9zOjvXX6CkVMYr3I,6190
|
|
358
|
-
streamlit/runtime/runtime.py,sha256=
|
|
359
|
+
streamlit/runtime/runtime.py,sha256=BKOs7LbRlOnqrNev_lzITh7tQsk2ZZYIe3lFOCq_ilU,29465
|
|
359
360
|
streamlit/runtime/runtime_util.py,sha256=QD6L-BiePDVMZ23tod0nGbxy8J56ICVIydHYAGwImJ0,3997
|
|
360
361
|
streamlit/runtime/script_data.py,sha256=bHTTrT4U3YWlyueKODwGTfJw6IuH4zHue5C6dLCJ3kw,1749
|
|
361
362
|
streamlit/runtime/secrets.py,sha256=QewGWqpJUiykc4EI-7Y6_gJrtHtO-qUh4XsFOR_X4M0,20009
|
|
@@ -399,116 +400,116 @@ streamlit/runtime/state/session_state.py,sha256=Ht_GRl_frv9SEBD8onC25J4Z4HAJsZfX
|
|
|
399
400
|
streamlit/runtime/state/session_state_proxy.py,sha256=RI9QquUlMgK6XyUYF3PmpN1mfP6q-_SBju5pIFTrdRU,5585
|
|
400
401
|
streamlit/runtime/state/widgets.py,sha256=CMFaIT-M-59TrskR1zt9eeoea2JJ8_YbG64fbSyd8VA,6057
|
|
401
402
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
|
402
|
-
streamlit/static/index.html,sha256=
|
|
403
|
-
streamlit/static/manifest.json,sha256=
|
|
403
|
+
streamlit/static/index.html,sha256=5dU4HUEv5a5tcnV4M2eBpCBGC3-RKAaMPVk5UHMIa0c,1522
|
|
404
|
+
streamlit/static/manifest.json,sha256=5eNU0oiELAobyuDhrTK4Fwxlpqk52gmsOstF2heh6fA,54244
|
|
404
405
|
streamlit/static/static/css/index.BUP6fTcR.css,sha256=w3J3tj919duL4vtYdmJSXTglGUogRuPuwX9pZd4N9aU,30331
|
|
405
406
|
streamlit/static/static/css/index.BuwrT-ty.css,sha256=Qw-234aemgZdlkzLcmPcc4L5g3WaneJBM0uTqd0L2So,35080
|
|
406
407
|
streamlit/static/static/css/index.DgR7E2CV.css,sha256=XaAj_mKlhpcUTyfDwggG3Sd2DgaiU4U749jeLKb9FBI,12683
|
|
407
|
-
streamlit/static/static/js/ErrorOutline.esm.
|
|
408
|
-
streamlit/static/static/js/FileDownload.esm.
|
|
409
|
-
streamlit/static/static/js/FileHelper.
|
|
410
|
-
streamlit/static/static/js/FormClearHelper.
|
|
408
|
+
streamlit/static/static/js/ErrorOutline.esm.BcqUpfNe.js,sha256=RO750gBChyjPxPoYlBl1u-aDiueGgA-PrJ2dCZulRJY,499
|
|
409
|
+
streamlit/static/static/js/FileDownload.esm.CtJWBuub.js,sha256=qxz1MK2kKlLa9gUFXmS3ZNqmt-owTEyZA9OHTSCryNQ,918
|
|
410
|
+
streamlit/static/static/js/FileHelper.D0dQPhOs.js,sha256=VCmV0MSAXtB0w6h135afrMU4F8AhZg2OZCSpIS6KgcU,61210
|
|
411
|
+
streamlit/static/static/js/FormClearHelper.Cm3GDSk6.js,sha256=ulVq5vylVoFGdH4mJb1Iwvj95fJNIlgFHqp17L24F0c,611
|
|
411
412
|
streamlit/static/static/js/IFrameUtil.DefezniK.js,sha256=vHcPNVM2AZouiO3NiM8fcBjO0JE9niGWSdld1T5AQeQ,564
|
|
412
|
-
streamlit/static/static/js/InputInstructions.
|
|
413
|
-
streamlit/static/static/js/Particles.
|
|
414
|
-
streamlit/static/static/js/ProgressBar.
|
|
415
|
-
streamlit/static/static/js/StreamlitSyntaxHighlighter.
|
|
416
|
-
streamlit/static/static/js/TableChart.esm.
|
|
417
|
-
streamlit/static/static/js/Toolbar.
|
|
413
|
+
streamlit/static/static/js/InputInstructions.D7Hxdzwv.js,sha256=LR6iatadS52J5jug1dxtViyYrWcW5oCdch4O7ctnIPw,919
|
|
414
|
+
streamlit/static/static/js/Particles.vAUDtAR8.js,sha256=vxmoxH6Pp9_vCW9TLw2cxIDuZROa-bTqnrXGAcyUE2I,615
|
|
415
|
+
streamlit/static/static/js/ProgressBar.Dp2CGRba.js,sha256=9taasSEDSvUHQotTICMxwGQ1SWjkIBy-yLxapbxFMXY,13320
|
|
416
|
+
streamlit/static/static/js/StreamlitSyntaxHighlighter.DC0000nJ.js,sha256=1xZkIuzau6VA_KBpbCc-7ckAgQTjBdCBMrzlEEC6shY,1620541
|
|
417
|
+
streamlit/static/static/js/TableChart.esm.DDVoSKOT.js,sha256=VQ2OWk2kPsFN-OEHoSWC0-THMl5VFl3reB2C30yXAgo,526
|
|
418
|
+
streamlit/static/static/js/Toolbar.CuMH-Gqe.js,sha256=P-ODM-EAyOtAkbP3PdXk4BQVCiNhwqt0YOHfcCU2B4M,2916
|
|
418
419
|
streamlit/static/static/js/UploadFileInfo.Dr-zDST7.js,sha256=5a_iq85gVIuXJJ3oRHHpEtx73pm7QA2BwIcrkQUkpiI,175
|
|
419
|
-
streamlit/static/static/js/WidgetLabelHelpIconInline.
|
|
420
|
+
streamlit/static/static/js/WidgetLabelHelpIconInline.WAReecol.js,sha256=uNUIiIxq4FDIf7vIhYJazhXw0ktVWH2Os_PrBwy_yvo,348
|
|
420
421
|
streamlit/static/static/js/_arrayIncludes.B19Iyn2B.js,sha256=JP-DCSLwDMyVDLPMC1_99tqHMMNzTx8SwAT1rVKXIAA,127
|
|
421
422
|
streamlit/static/static/js/_baseIndexOf.BTknn6Gb.js,sha256=qpBWPWZljEJmX5vLgn6Tup6ZhVl54fGKj7xVTKZ2Ep0,258
|
|
422
|
-
streamlit/static/static/js/base-input.
|
|
423
|
-
streamlit/static/static/js/checkbox.
|
|
424
|
-
streamlit/static/static/js/createDownloadLinkElement.
|
|
425
|
-
streamlit/static/static/js/data-grid-overlay-editor.
|
|
426
|
-
streamlit/static/static/js/downloader.
|
|
427
|
-
streamlit/static/static/js/embed.
|
|
428
|
-
streamlit/static/static/js/es6.
|
|
423
|
+
streamlit/static/static/js/base-input.BX9Jll5o.js,sha256=6MPxJLERNAnyBewnRBiP2we5gVUuxcLv2odIQ-jNzPk,21773
|
|
424
|
+
streamlit/static/static/js/checkbox.BzMHUSz1.js,sha256=jfNbXuoAInoveDRs_q1lWAVlK_8vLxgTNgruSF-1ZHk,11245
|
|
425
|
+
streamlit/static/static/js/createDownloadLinkElement.CviG5BQx.js,sha256=BxZJt-Vs5lIdKAU2AuLLkmXW7ZDf5yFJJqK3Eqdgyq0,388
|
|
426
|
+
streamlit/static/static/js/data-grid-overlay-editor.Dzo9A4l6.js,sha256=gcD81VIpv8HrYnVnH2fQPwyrourZr1XdR6hj6T1cKeQ,4399
|
|
427
|
+
streamlit/static/static/js/downloader.DIDvj0d5.js,sha256=r0TLBrVvwKsecF4w3U5EBky49mLpl_z3_Xvgist8SsI,2510
|
|
428
|
+
streamlit/static/static/js/embed.C8qeQ38b.js,sha256=nuDaySWWB3tAqIln2RyrtE-_QR_H12wwDlHMVMuuYSA,831630
|
|
429
|
+
streamlit/static/static/js/es6.Dpcc-U7U.js,sha256=1mk1Pb1xFz5fibboQQ6TQhih5GD1CECXV-1DKe4m9UY,14634
|
|
429
430
|
streamlit/static/static/js/formatMoment.C6Hwn6X5.js,sha256=lIQHfN3RbfShBuVFfO9t_az4TUNV678ZJJSQYqRuANY,575
|
|
430
|
-
streamlit/static/static/js/formatNumber.
|
|
431
|
-
streamlit/static/static/js/iconPosition.
|
|
432
|
-
streamlit/static/static/js/iframeResizer.contentWindow.
|
|
433
|
-
streamlit/static/static/js/index.1AemKTSK.js,sha256=3TGNgYqMUHur1vQM0PcKDuMqLFFZ98Uywhtoc9dZ658,1345
|
|
434
|
-
streamlit/static/static/js/index.7Q3Iaebc.js,sha256=iF2gBZb-vpWh63UwJ2M1KQchGJhdIqg6hXJh0eQbUaw,35980
|
|
431
|
+
streamlit/static/static/js/formatNumber.CPvuaBa8.js,sha256=zRvGcLOUdL5pLqjMJG8RPc2ut3Cb65knNNnAKbt6_kk,1818
|
|
432
|
+
streamlit/static/static/js/iconPosition.y0q-Rqem.js,sha256=xhGMJbKaUOXlQE_ObczQk7f0plbhAYLLRKbjmHkOsw0,203
|
|
433
|
+
streamlit/static/static/js/iframeResizer.contentWindow.DblExdXF.js,sha256=Y4DEQYu7HLF-fEhKPKpU2DTPgbsgNIwlYqluyOuTYzQ,14409
|
|
435
434
|
streamlit/static/static/js/index.8HslT92O.js,sha256=Ahu9KsYwa_TyEGNbQBWydVmpBAsTcDdi0zdwD-Wf8ME,27051
|
|
436
|
-
streamlit/static/static/js/index.
|
|
435
|
+
streamlit/static/static/js/index.B-g6lwYa.js,sha256=yrRSLBer5R3DjYsHntO0MoECGG3712woHNdSXA1rszA,6906
|
|
436
|
+
streamlit/static/static/js/index.B10MmI2m.js,sha256=O0X4qvYSwe9wPTACB1B8zFjX8M9DaPAVWRL9LW6TYxo,18040
|
|
437
|
+
streamlit/static/static/js/index.B6vCS66f.js,sha256=tix19nBHFel4uVBJlkVdChrY8_kBLDs6TX49p-ZKXJY,443995
|
|
438
|
+
streamlit/static/static/js/index.B9TG5Ah8.js,sha256=1na9jJaD6GeaH7rBegCyVQax8KP9ubU0GZGJQ-Liumg,679
|
|
437
439
|
streamlit/static/static/js/index.BBTKOM0z.js,sha256=-L-kKO9s5qX0eLfjdpWq_CHhzPvtPGA1A0oRn-RB8HM,36545
|
|
438
|
-
streamlit/static/static/js/index.
|
|
439
|
-
streamlit/static/static/js/index.
|
|
440
|
-
streamlit/static/static/js/index.
|
|
441
|
-
streamlit/static/static/js/index.
|
|
442
|
-
streamlit/static/static/js/index.
|
|
443
|
-
streamlit/static/static/js/index.
|
|
444
|
-
streamlit/static/static/js/index.
|
|
445
|
-
streamlit/static/static/js/index.
|
|
446
|
-
streamlit/static/static/js/index.
|
|
447
|
-
streamlit/static/static/js/index.
|
|
448
|
-
streamlit/static/static/js/index.
|
|
449
|
-
streamlit/static/static/js/index.
|
|
450
|
-
streamlit/static/static/js/index.
|
|
451
|
-
streamlit/static/static/js/index.
|
|
452
|
-
streamlit/static/static/js/index.
|
|
453
|
-
streamlit/static/static/js/index.
|
|
454
|
-
streamlit/static/static/js/index.
|
|
455
|
-
streamlit/static/static/js/index.
|
|
456
|
-
streamlit/static/static/js/index.
|
|
457
|
-
streamlit/static/static/js/index.
|
|
458
|
-
streamlit/static/static/js/index.
|
|
459
|
-
streamlit/static/static/js/index.
|
|
460
|
-
streamlit/static/static/js/index.
|
|
461
|
-
streamlit/static/static/js/index.
|
|
462
|
-
streamlit/static/static/js/index.
|
|
463
|
-
streamlit/static/static/js/index.
|
|
464
|
-
streamlit/static/static/js/index.
|
|
465
|
-
streamlit/static/static/js/index.
|
|
466
|
-
streamlit/static/static/js/index.
|
|
467
|
-
streamlit/static/static/js/index.
|
|
468
|
-
streamlit/static/static/js/index.
|
|
469
|
-
streamlit/static/static/js/index.
|
|
470
|
-
streamlit/static/static/js/index.
|
|
471
|
-
streamlit/static/static/js/index.
|
|
472
|
-
streamlit/static/static/js/index.DoLorXMA.js,sha256=EkuYIkWgyl7tUaIYsWDLH-TSe5Tc3SWJjz3YSzT7nE4,18040
|
|
473
|
-
streamlit/static/static/js/index.DpnqUQVD.js,sha256=Rvui1lQKLlJFbI3t3bTTFXFjpVtZTU8HSjUeB4a47kQ,2954
|
|
474
|
-
streamlit/static/static/js/index.Dqphk1ee.js,sha256=hadO11x05r238iJvTwfvyRb24R7LUF49hrGvjLCnGnE,19038
|
|
475
|
-
streamlit/static/static/js/index.Ds-w0zIo.js,sha256=1lEas71pvDrIgqf57NBXw-CeVqvF3SafPIV9F4HpB8k,5820
|
|
476
|
-
streamlit/static/static/js/index.DuFqxjbN.js,sha256=UBN4MZSOFLeJDvJsoz6FpCu0YI9Y1lJ9G09nvDXvgTA,1560
|
|
477
|
-
streamlit/static/static/js/index.Dx8TcTHV.js,sha256=QbJ78a7FjaTLrRDO0PvpBpN9iVIN_GRTLIAJligaQFU,443967
|
|
478
|
-
streamlit/static/static/js/index.V4C1Oi-F.js,sha256=_O2F-Qzt-kGgYo8ZvF_wbREG4LpWHGzWLBUxu1AjclM,100087
|
|
479
|
-
streamlit/static/static/js/index.aJ3XRx8R.js,sha256=hxMNLej28LiggycBO595RyW3SogylQgjgjCrn-9Mgnc,13944
|
|
440
|
+
streamlit/static/static/js/index.BDb0PRvK.js,sha256=eOZZU8ONoDOWmacNZnmREVDQS73fyxZJFMSR2r79-YM,2998
|
|
441
|
+
streamlit/static/static/js/index.BGufEmCz.js,sha256=AN4Y7mFoh5TOHjruU_UXSueMIqWtQRtBDbVQs9-8xk4,1345
|
|
442
|
+
streamlit/static/static/js/index.BItU4jMo.js,sha256=Jx4ycSpJXs4H4vZ_45S2BAlSIoMoHF4Fn53SlLLGWLA,35980
|
|
443
|
+
streamlit/static/static/js/index.BPMqWDef.js,sha256=OufxE6srC7CacY0KsV_Ra7dT3yldCXb5_ZzBNPpdfE0,750
|
|
444
|
+
streamlit/static/static/js/index.BTHi5W25.js,sha256=6dCsj2b7drd7tr2M2hAq-6F7k5wpkhybkBcGjpiryjg,3252
|
|
445
|
+
streamlit/static/static/js/index.BVN9cI-k.js,sha256=Rd5EcBrbXkGu3zQ-HcUZIdNgQDk5SAv-Oy_CeitSn4Y,878
|
|
446
|
+
streamlit/static/static/js/index.BWOP7HFT.js,sha256=8B1xhVhXzwRxszzuVLEhu9jVL5M2grKmEZIG0qlfDq4,2967
|
|
447
|
+
streamlit/static/static/js/index.BXYgO5B8.js,sha256=heRyWnnwb2SYeDuRA38JlN2jIPX0MFmWHtKOMWrLZ0E,24096
|
|
448
|
+
streamlit/static/static/js/index.BZBWLU1C.js,sha256=Hdu9iWzq8LojRIgVJvmFB0F6yOwW5EXVIP0xNMvxarU,2295369
|
|
449
|
+
streamlit/static/static/js/index.BfZdZpv-.js,sha256=db8vZPBn-F3SFY7WMqGIAYC9fA0bWF9uKyeJr0o4ZWw,13914
|
|
450
|
+
streamlit/static/static/js/index.Bxe7fKbw.js,sha256=JUjrWeDia69FsKuICNTTxRYTqM1VxlS22j5uFv6ZoGI,8305
|
|
451
|
+
streamlit/static/static/js/index.C1ElSZEy.js,sha256=U10-Uzn3NxYnSGgeKuI8Kr7xT4Q9B-wDAhkvs_KUoGQ,226891
|
|
452
|
+
streamlit/static/static/js/index.C26ZOVFL.js,sha256=BcNBBln7wWMujHHa8zTelrYF2--ocWEjFaUVZkaHjro,4863
|
|
453
|
+
streamlit/static/static/js/index.C7lwRBvF.js,sha256=tfAzkukVlv91ZXbcMJ2KmnHdptBsIWaCmiTSYUEVn8M,13944
|
|
454
|
+
streamlit/static/static/js/index.C93QGPyk.js,sha256=zu8sP93nXC8tDq63ZfJVe-MlkJ3qoO0VU24OLjS2TAM,2539
|
|
455
|
+
streamlit/static/static/js/index.CCDejIvL.js,sha256=oB3ywIUoUgRTYYg0UnGHkXloze6tiIrVVboAywQYhl4,828422
|
|
456
|
+
streamlit/static/static/js/index.CcMmNHAq.js,sha256=41QikO9kT_bK-3bfyw6emzgNKXAA6tpeXV0gcqeYmOQ,8012
|
|
457
|
+
streamlit/static/static/js/index.D42y-GeO.js,sha256=Ol7NrHMG-fDimQiqQ5yJEGaaKGBbXFjbPrL4PyHNra8,7264
|
|
458
|
+
streamlit/static/static/js/index.D69ULFWq.js,sha256=jbnCYzE2w4LGCUOf-RKsZal8jM1Q8gPrsCysswxCCNE,13388
|
|
459
|
+
streamlit/static/static/js/index.DB4MbQ40.js,sha256=QU6KbulAXTbY0wHP2EUjLRmpeRNZgQYCK9Wk6Wc6ZZA,100087
|
|
460
|
+
streamlit/static/static/js/index.DRFJgBf-.js,sha256=6fxZWsUBNYpXk7PlDaY_L1tdfL1Epz8mCJiS8_RZNPI,2219
|
|
461
|
+
streamlit/static/static/js/index.DTK-btqV.js,sha256=Z1ZuSU9FHyueXaj4Jv08fdTR0zH2j0mqoyyAZ2Fw33E,18346
|
|
462
|
+
streamlit/static/static/js/index.DZEQ0G7H.js,sha256=CSbaP1i1C6SB5GahBF8--0px8S3MtAZpK1BRvqYqy9o,442
|
|
463
|
+
streamlit/static/static/js/index.DaU1ayM7.js,sha256=TeoqR5yUO0guJP0C6rUfFhq68lc7bJY3EevRmabJlUE,3928
|
|
464
|
+
streamlit/static/static/js/index.Dla9XiNe.js,sha256=yfB8ZOu2UMn_8APAtaJ6AJ5Ovq_H1bnOb8lO3Prh_3I,4165
|
|
465
|
+
streamlit/static/static/js/index.DmQqT9OM.js,sha256=m7ikXm3g_8j1eaNRzP1KtuYe9fjW2frczZIS5yUGVzo,9184
|
|
466
|
+
streamlit/static/static/js/index.DppScppA.js,sha256=WibXXRrV8JWHTa9alM7eT-zFhsSTCF050-G43upvTpk,1560
|
|
467
|
+
streamlit/static/static/js/index.Dr8b3Vn6.js,sha256=twcBUeXogQNi3wbfqlafriLbsX5GdvpkM6veJ5OCz1Y,19038
|
|
468
|
+
streamlit/static/static/js/index.DvQ7-afx.js,sha256=8V4NuNufjxWZHrNLsxy2-_pAkQ77UCaaGl0BMt7lKT8,1605
|
|
469
|
+
streamlit/static/static/js/index.F-NmmwfK.js,sha256=4gY1WlbGkLVM92qRErMl3MGb3snVZX1Yjy4DjWu1UZM,1834
|
|
470
|
+
streamlit/static/static/js/index.MKI8t7l2.js,sha256=46TdPHEu-V_T3wmFZEdxu2E0VCawCitkGF7jipC0UoE,2958
|
|
471
|
+
streamlit/static/static/js/index.RRAKXgBZ.js,sha256=-pwQ-7BGWf7GSkTOBDYwTl2lyYYv4bI3jGahKHCNtyk,2604887
|
|
472
|
+
streamlit/static/static/js/index.VSsf6tsu.js,sha256=6m2HB-tNw7XL7nswB603_nS7SB465gMGT2YSCE6ynU8,24369
|
|
473
|
+
streamlit/static/static/js/index.aEeM0ekc.js,sha256=d5Sfp6D42p6kH-L8NXVHAU0S3gmJtsx1W2hqNAYCFjw,271288
|
|
480
474
|
streamlit/static/static/js/index.bsVAaBS1.js,sha256=iWnuL74SwTYzvoX2fcuvoTFm5zB-8g4oiMdjHAZiH0g,252
|
|
481
|
-
streamlit/static/static/js/index.
|
|
482
|
-
streamlit/static/static/js/index.
|
|
483
|
-
streamlit/static/static/js/index.
|
|
484
|
-
streamlit/static/static/js/
|
|
475
|
+
streamlit/static/static/js/index.eweE9HKU.js,sha256=QbhSByc4f773H9GIP13hPKKfskLw8pu4X0rx1V_bqwE,5820
|
|
476
|
+
streamlit/static/static/js/index.gr6yGiCL.js,sha256=pNTQ0rsjjABOhT7jrI0LrxBqWTMfPLe6YxNNxltOcXc,4874479
|
|
477
|
+
streamlit/static/static/js/index.kKkHk9Mc.js,sha256=y4bzCdzVOtfC_maKJDhFBeOgZtccJFn4xeY1vmBXCSM,1398
|
|
478
|
+
streamlit/static/static/js/index.pMvzHC7z.js,sha256=kYKnp4Lkn8sS_yQ3jTZOCV2hxxOybHR7fkeJ2SA5ZAk,13695
|
|
479
|
+
streamlit/static/static/js/index.pgifwCIr.js,sha256=4CSDpbU13MINJlEHffotBC3GpZrejmP36QQ5o92fEVc,2671
|
|
480
|
+
streamlit/static/static/js/index.q83b8_8b.js,sha256=8zJho3Gw6HJda0g_bgrYtIcNi9KZC_cOc_gNaXM_2IY,27040
|
|
481
|
+
streamlit/static/static/js/index.u2AvcQQT.js,sha256=_KJ7bbPvE34Gb3zkdgKwR2EbDePx7SPdsJJTdhts1jE,2824
|
|
482
|
+
streamlit/static/static/js/index.w2_VrtVw.js,sha256=7OU0EPWRX0ARZzgbVMVxMtTv26SA0G2sCqWyFcjmzP8,190412
|
|
483
|
+
streamlit/static/static/js/index.wv1DYVsn.js,sha256=6De4UoAp49vNh7Gh-BhjPLxwQhlvGDnVAJimORTwZ2s,1193
|
|
484
|
+
streamlit/static/static/js/index.x4j6nnNb.js,sha256=mjPL9J-k58BYN792BJbU5yzyP2-aZ42X3qyk2QtaOfM,3807
|
|
485
|
+
streamlit/static/static/js/input.BoJqOS7a.js,sha256=zyhcWOhczXXL4UB9H_pzZxx8RMBva1GcrkzoxEX4nj0,5242
|
|
485
486
|
streamlit/static/static/js/inputUtils.CptNuJwn.js,sha256=v9SUbdkM8OJ6aT_EfTucTRNZh059kZ9Mut2oyTmv_98,124
|
|
486
|
-
streamlit/static/static/js/main.
|
|
487
|
-
streamlit/static/static/js/memory.
|
|
487
|
+
streamlit/static/static/js/main.B5XmUwmQ.js,sha256=a3WLCXYimr-2egzc2uATAXUngydH1PFuk80uqYTfOAs,117541
|
|
488
|
+
streamlit/static/static/js/memory.9izgq54V.js,sha256=NSxG3KQtiSAJqPsluzMU4fKKEN8sVK9X4U45wO5hJs4,3041
|
|
488
489
|
streamlit/static/static/js/moment.C7qA8nIE.js,sha256=WGJqjUq9SPn-dCBlrSpQZOywPJ4xVg2eYZN-CP7-3X0,60773
|
|
489
|
-
streamlit/static/static/js/number-overlay-editor.
|
|
490
|
+
streamlit/static/static/js/number-overlay-editor.PqOGQcLn.js,sha256=3yYne8P3zdK_af6ODnuA3b-c4p0poXK2FFrOrnm0aUA,16652
|
|
490
491
|
streamlit/static/static/js/numbro.B9_PXfzp.js,sha256=JcWnIUWk7g3KL9hw0uuI--Tp_c_VOTPXqigpxrpjzeo,39660
|
|
491
|
-
streamlit/static/static/js/pandasStylerUtils.
|
|
492
|
+
streamlit/static/static/js/pandasStylerUtils.DUtF2t3R.js,sha256=Qdrko4DIfYW7H5ewVw2FEJxgKEs07g74Xk-mxvdW_hk,739437
|
|
492
493
|
streamlit/static/static/js/record.DytFsBUt.js,sha256=1w_An_VyZRJTSv6lYzs_Sz9SOgdyfRSOG846ygJS4MY,8028
|
|
493
|
-
streamlit/static/static/js/sandbox.
|
|
494
|
+
streamlit/static/static/js/sandbox.DgKTHPLO.js,sha256=AlxOfVc51gStGjgOg16HXQf79VoiBB_pT1AVnGvexOg,2960
|
|
494
495
|
streamlit/static/static/js/sprintf.DpPCfzXw.js,sha256=SggQTlOztni2KsY0aRfgxAjYLCwS7NSUUSCbzZtYpr8,3436
|
|
495
|
-
streamlit/static/static/js/styled-components.
|
|
496
|
+
streamlit/static/static/js/styled-components.D4x8jmOI.js,sha256=qxDIEGlb-kwmmwO29HGYlaB-V_7QHoxsFdZEgPHt2-s,468
|
|
496
497
|
streamlit/static/static/js/threshold.CUNQbqMA.js,sha256=Q3du4LR3IorexmjW-Ab8y_y_9cO_8M_ddTX6YKht2p8,5698
|
|
497
|
-
streamlit/static/static/js/throttle.
|
|
498
|
-
streamlit/static/static/js/timepicker.
|
|
498
|
+
streamlit/static/static/js/throttle.DxEHIIp7.js,sha256=rEOhR3blqMq_g_CdisJxZbTrcvW-sgnqlG-fC5B5xFg,1262
|
|
499
|
+
streamlit/static/static/js/timepicker.CDks5DWI.js,sha256=8C0h7CPN7KSwYTRQJCTThvPhTGnrw8Fl4_zYgIKN5NY,89207
|
|
499
500
|
streamlit/static/static/js/timer.BZio6gjG.js,sha256=vRTmDI39QE6fIvFrIvCwyjsG8MNme68-qu_yYiNUaqQ,7410
|
|
500
|
-
streamlit/static/static/js/toConsumableArray.
|
|
501
|
-
streamlit/static/static/js/uniqueId.
|
|
501
|
+
streamlit/static/static/js/toConsumableArray.CvTQRsV-.js,sha256=WiNfzBgkuyDaIK5w3XUfUCQEIRIOR4dOxwd8aa_U2ws,877
|
|
502
|
+
streamlit/static/static/js/uniqueId.RScLN3St.js,sha256=h3UAd3vejcafeKP-dCDc04BrCpAJWZoEXcHfwPKlyuc,97
|
|
502
503
|
streamlit/static/static/js/urls.BwSlolu9.js,sha256=oj7KbEdZXmm91zYfQyVjZY6MYvu7aKe2nX2Uzq_T5c4,275
|
|
503
|
-
streamlit/static/static/js/useBasicWidgetState.
|
|
504
|
-
streamlit/static/static/js/useIntlLocale.
|
|
505
|
-
streamlit/static/static/js/useTextInputAutoExpand.
|
|
506
|
-
streamlit/static/static/js/useUpdateUiValue.
|
|
507
|
-
streamlit/static/static/js/useWaveformController.
|
|
504
|
+
streamlit/static/static/js/useBasicWidgetState.D6_b0IqA.js,sha256=Zv8mCh5aME5v5K_pcKXNpGfNM6oDrrNxkdK98xvg_9A,953
|
|
505
|
+
streamlit/static/static/js/useIntlLocale.Ctz17A7g.js,sha256=IGciMrxfu6qfzgl3Hg661adagdi2hSVpU5uGOWQFDQk,109692
|
|
506
|
+
streamlit/static/static/js/useTextInputAutoExpand.PAFB5o1T.js,sha256=gfem0k-sOa02vKfJML2mRQkO3cHOYdd_r3kKs9dJq5U,6643
|
|
507
|
+
streamlit/static/static/js/useUpdateUiValue.CcTvmGlb.js,sha256=pTrKtSuRVP-qvAYMEoy7o41jRD5j-zdPyA3lGLMVeMI,615
|
|
508
|
+
streamlit/static/static/js/useWaveformController.vLi36Ir4.js,sha256=ZEnADQi605iuaKBTQb0R8M6Z0cm9-4Qz2PdKN-KALFs,12364
|
|
508
509
|
streamlit/static/static/js/value.DaKxGC7O.js,sha256=bicc2v81rJzY9PmrISkaY1Z9A3aJmsRRK5aMj5nGmrc,15044
|
|
509
510
|
streamlit/static/static/js/wavesurfer.esm.D1Sty35j.js,sha256=GYinzhehnkxBppDnKJLH3b87dUJ7gBJxN8F1D3_Hn6E,39578
|
|
510
|
-
streamlit/static/static/js/withCalculatedWidth.
|
|
511
|
-
streamlit/static/static/js/withFullScreenWrapper.
|
|
511
|
+
streamlit/static/static/js/withCalculatedWidth.BtA2jL5-.js,sha256=3bjTQ5deSZMSqTAIPopwlyAqQRZBJZSOd4sKmpYw7EE,260
|
|
512
|
+
streamlit/static/static/js/withFullScreenWrapper.CeeoYBpc.js,sha256=ILVkC_891ZFrT_1L6jQvBxs7L7iJEO1UXRUjg5rAqqk,1541
|
|
512
513
|
streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
|
513
514
|
streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
|
514
515
|
streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
|
@@ -603,10 +604,11 @@ streamlit/watcher/path_watcher.py,sha256=PcSGyQM5s7vbZSwSUbnUJPYJcaE2b_D43eFoWXB
|
|
|
603
604
|
streamlit/watcher/polling_path_watcher.py,sha256=LxMbQjIB17qPBR8cZZSgBO_muThOb7LCcLjjYnDvJks,4402
|
|
604
605
|
streamlit/watcher/util.py,sha256=5Te1uyM1_XqFk7vKLI-4JbnsdckfBlpo0CIsxWLnFWc,6944
|
|
605
606
|
streamlit/web/__init__.py,sha256=iZwXNLk8xCKTqIiR1dIs0i-phfx1ipLkhGasCEwkD2Q,616
|
|
606
|
-
streamlit/web/bootstrap.py,sha256=
|
|
607
|
+
streamlit/web/bootstrap.py,sha256=p9WppAM-NsxnFkyS3ZnXBDuQChmIgB0sMaaGG0GpVE8,15968
|
|
607
608
|
streamlit/web/cache_storage_manager_config.py,sha256=kVVggwMktfKGFG_utuA27bPST3QnJxZ3eoO1H0iBB50,1216
|
|
608
|
-
streamlit/web/cli.py,sha256=
|
|
609
|
+
streamlit/web/cli.py,sha256=dnjJoaQDgclFCs-PvmrRUnIE-btKcqRF116Y0EZp2-s,14896
|
|
609
610
|
streamlit/web/server/__init__.py,sha256=Nh1pW3BCaP_h7gHYAKvUpv51O32UB7T3ib5LkjRDm7k,1145
|
|
611
|
+
streamlit/web/server/app_discovery.py,sha256=gDQPfiSmnz4DANLOkjOSNJZHDpYTkhpFYW67XT_2Da4,13385
|
|
610
612
|
streamlit/web/server/app_static_file_handler.py,sha256=fp-iK3cuCSVW8U6rg1klRCR2q3yZMV4u0mnnlfY_iNY,3224
|
|
611
613
|
streamlit/web/server/authlib_tornado_integration.py,sha256=0uIRIjPA9EmRUI65OW5Am4uKFok0fbSMZ52U5YmCK7o,4432
|
|
612
614
|
streamlit/web/server/bidi_component_request_handler.py,sha256=fAfm5vTGD5gA3VRq6NmMtt9EkjalGmPTvT77pTKZUg8,6932
|
|
@@ -617,24 +619,24 @@ streamlit/web/server/media_file_handler.py,sha256=DQqTSVfn1VCormeddtDTKN3tb49z2z
|
|
|
617
619
|
streamlit/web/server/oauth_authlib_routes.py,sha256=UlEf-HLew9AipsBO4WH3knDYeVR_XceWxvbMFjIW4k0,9979
|
|
618
620
|
streamlit/web/server/oidc_mixin.py,sha256=cC9oFJv2lbIP3F--4isZ-F8s441x9lzcUPR21u9dDZA,5247
|
|
619
621
|
streamlit/web/server/routes.py,sha256=0Rthy3Q-Ac7Tkfu0z_DA5U0ADo8fu03od333xXA7uWA,9799
|
|
620
|
-
streamlit/web/server/server.py,sha256=
|
|
622
|
+
streamlit/web/server/server.py,sha256=AcUa82xq2rW2njqNlRprFi3b34sBJ9I01IRG8Thaevo,20319
|
|
621
623
|
streamlit/web/server/server_util.py,sha256=8t-Nm8NOAK7ERn0sGIEzUx75M8rzo2Nqk3gdeJr00pQ,6147
|
|
622
624
|
streamlit/web/server/stats_request_handler.py,sha256=_fcYOsIZh0ZgTKq9mGHp5NZgA7cd0zIncut303eDvDs,4884
|
|
623
625
|
streamlit/web/server/upload_file_request_handler.py,sha256=ot8byfH7kyXszc8R8-8TyLR8ZMaA6d9PirDibRttFbo,5822
|
|
624
626
|
streamlit/web/server/websocket_headers.py,sha256=dyB6bs_eGcpD6WXCHlsUUZumkZCxHcpSrKa90jCHxEY,2229
|
|
625
|
-
streamlit/web/server/starlette/__init__.py,sha256=
|
|
626
|
-
streamlit/web/server/starlette/starlette_app.py,sha256=
|
|
627
|
+
streamlit/web/server/starlette/__init__.py,sha256=mwgSE6TIsl0l_s1eiIBWEk2PBIELBe2qhtXWQpCd7WA,885
|
|
628
|
+
streamlit/web/server/starlette/starlette_app.py,sha256=b77Fmd96Q86rdBhGMrcg7u0mmvCRVTlbOLbaAdSCUy0,21120
|
|
627
629
|
streamlit/web/server/starlette/starlette_app_utils.py,sha256=6KOkSe4NiJiIjeX8dv-_9Rgu9J1UUBWE9e86iY5Mcqo,9180
|
|
628
630
|
streamlit/web/server/starlette/starlette_auth_routes.py,sha256=9-2dW0lFiztVYUsgeNyAuThorUAHJfKsCDOiNT1YT8c,18721
|
|
629
631
|
streamlit/web/server/starlette/starlette_gzip_middleware.py,sha256=N898m09ZhZKhTc_UBDuxNSB6S642SPeP4CGRiOscylQ,4522
|
|
630
|
-
streamlit/web/server/starlette/starlette_routes.py,sha256=
|
|
632
|
+
streamlit/web/server/starlette/starlette_routes.py,sha256=J0awCJic2OlqywfVp8QqEosHODZTYlkunVgFTMTby94,31222
|
|
631
633
|
streamlit/web/server/starlette/starlette_server.py,sha256=pBmwN6nFEruMonhajjd-IDsuZlJM9uTTRW4MpXK60Kc,18422
|
|
632
634
|
streamlit/web/server/starlette/starlette_server_config.py,sha256=_cgub_NiTO-52etLfEMIoe5bWgA3TVianT2mYCVQmqo,2508
|
|
633
635
|
streamlit/web/server/starlette/starlette_static_routes.py,sha256=sDLGRlIvFCBQieXOf0BmueYVP3KJTfvGy-ux3Tk4D6E,7547
|
|
634
636
|
streamlit/web/server/starlette/starlette_websocket.py,sha256=f64fojwihK7XXIfYT4HGNLd1TPZJMT7JEK43h4ScDAg,21338
|
|
635
|
-
streamlit_nightly-1.52.3.
|
|
636
|
-
streamlit_nightly-1.52.3.
|
|
637
|
-
streamlit_nightly-1.52.3.
|
|
638
|
-
streamlit_nightly-1.52.3.
|
|
639
|
-
streamlit_nightly-1.52.3.
|
|
640
|
-
streamlit_nightly-1.52.3.
|
|
637
|
+
streamlit_nightly-1.52.3.dev20260110.data/scripts/streamlit.cmd,sha256=es_jE8w9dt6l9DA40xFlQjGJeVq1Of8rDJQNibPUlEA,676
|
|
638
|
+
streamlit_nightly-1.52.3.dev20260110.dist-info/METADATA,sha256=uYvc2EgCIHF__IePUkGxpoIB9LWnZphzstbwqaLGK_4,10214
|
|
639
|
+
streamlit_nightly-1.52.3.dev20260110.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
640
|
+
streamlit_nightly-1.52.3.dev20260110.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
|
641
|
+
streamlit_nightly-1.52.3.dev20260110.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
|
642
|
+
streamlit_nightly-1.52.3.dev20260110.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aT as T,aU as W,aV as I,aW as L,F as V,r as n,l as A,aA as O,aX as B,o as E,j as m,p as H,ab as F,ac as N,aY as $,aZ as k,aw as D,a_ as P,ae as U}from"./index.DkSjHoXw.js";import{u as Y}from"./useBasicWidgetState.C9zOVP8a.js";import{a as j}from"./_arrayIncludes.B19Iyn2B.js";import"./FormClearHelper.lF7Ran5M.js";import"./_baseIndexOf.BTknn6Gb.js";var _=200;function K(o,t,d,p){var e=-1,g=j,r=!0,u=o.length,a=[],f=t.length;if(!u)return a;t.length>=_&&(g=W,r=!1,t=new T(t));e:for(;++e<u;){var i=o[e],c=i;if(i=i!==0?i:0,r&&c===c){for(var h=f;h--;)if(t[h]===c)continue e;a.push(i)}else g(t,c,p)||a.push(i)}return a}var X=I(function(o,t){return L(o)?K(o,t):[]});const Z=V("div",{target:"ekqzr6e0"})(({theme:o})=>({"span[aria-disabled='true']":{background:o.colors.fadedText05}})),q=(o,t)=>o.getStringArrayValue(t),G=o=>o.default.map(t=>o.options[t])??null,J=o=>o.rawValues??null,Q=(o,t,d,p)=>{t.setStringArrayValue(o,d.value,{fromUi:d.fromUi},p)},ee=o=>{const{element:t,widgetMgr:d,fragmentId:p}=o,e=A(),g=n.useContext(O),[r,u]=Y({getStateFromWidgetMgr:q,getDefaultStateFromProto:G,getCurrStateFromProto:J,updateWidgetMgrState:Q,element:t,widgetMgr:d,fragmentId:p}),a=t.maxSelections>0&&r.length>=t.maxSelections,f=n.useMemo(()=>{if(t.maxSelections===0)return"No results";if(r.length===t.maxSelections){const s=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${s}. Remove an option first.`}return"No results"},[t.maxSelections,r.length]),i=n.useCallback(s=>{switch(s.type){case"remove":return X(r,s.option?.value);case"clear":return[];case"select":return r.concat([s.option?.value]);default:throw new Error(`State transition is unknown: ${s.type}`)}},[r]),c=n.useCallback(s=>{t.maxSelections&&s.type==="select"&&r.length>=t.maxSelections||u({value:i(s),fromUi:!0})},[t.maxSelections,i,u,r.length]),{options:h}=t,{placeholder:y,disabled:C,selectOptions:v,inputReadOnly:w,valuesToUiMulti:S,createFilterOptions:x}=B({options:h,isMulti:!0,acceptNewOptions:t.acceptNewOptions??!1,placeholderInput:t.placeholder}),z=n.useCallback((s,l)=>a?[]:x(r)(s,l),[x,a,r]),b=o.disabled||C,R=n.useMemo(()=>S(r),[S,r]),M=n.useMemo(()=>{const s=e.fontSizes.baseFontSize*1.6+14;return`${Math.round(s*4.25)}px`},[e.fontSizes.baseFontSize]);return E("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[m(N,{label:t.label,disabled:b,labelVisibility:H(t.labelVisibility?.value),children:t.help&&m(F,{content:t.help,label:t.label})}),m(Z,{children:m($,{creatable:t.acceptNewOptions??!1,options:v,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:y,type:P.select,multi:!0,onChange:c,value:R,disabled:b,size:"compact",noResultsMsg:f,filterOptions:z,closeOnSelect:!1,ignoreCase:!1,overrides:{Popover:{props:{ignoreBoundary:g,overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:D,props:{style:{cursor:"pointer"},overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:({$isFocused:s})=>{const l=U(e.colors,s);return{maxHeight:M,minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:l,borderRightColor:l,borderBottomColor:l,borderLeftColor:l}}},Placeholder:{style:()=>({flex:"inherit",color:b?e.colors.fadedText40:e.colors.fadedText60})},ValueContainer:{style:()=>({overflowY:"auto",paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.grayTextColor,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.grayTextColor}},Tag:{props:{overrides:{Root:{style:{fontWeight:e.fontWeights.normal,borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:w}},Dropdown:{component:k}}})})]})},ne=n.memo(ee);export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as W,aB as O,F as _,r as i,k as $,l as q,aa as S,o as G,j as c,ab as M,ac as N,ae as J}from"./index.DkSjHoXw.js";import{I as Q}from"./InputInstructions.CMvqhPhy.js";import{u as X}from"./useBasicWidgetState.C9zOVP8a.js";import{u as Y,a as Z,b as tt}from"./useUpdateUiValue.aWXWpqmw.js";import{u as et,T as ot}from"./useTextInputAutoExpand.DmyHLDxl.js";import{u as at}from"./uniqueId.DtV_RZzG.js";import"./FormClearHelper.lF7Ran5M.js";import"./inputUtils.CptNuJwn.js";import"./base-input.DKTA2QNz.js";const it=(e,t)=>{let a="auto";if(e.heightConfig?.useStretch)a="100%";else if(e.heightConfig?.pixelHeight&&e.heightConfig.pixelHeight>0){const s=W(t.labelVisibility?.value)===O.Collapsed?2:30,l=e.heightConfig.pixelHeight-s;a=`${Math.max(0,l)}px`}return a},st=_("div",{target:"e1tmb1p40"})({height:"100%",display:"flex",flexDirection:"column"}),T=(e,t)=>e.getStringValue(t)??t.default??null,rt=e=>e.default??null,lt=e=>e.value??null,nt=(e,t,a,s)=>{t.setStringValue(e,a.value,{fromUi:a.fromUi},s)},ut=({disabled:e,element:t,widgetMgr:a,fragmentId:s,outerElement:l})=>{const h=i.useRef(at("text_area_")).current,{width:y,elementRef:V}=$(),[r,g]=i.useState(!1),[I,x]=i.useState(!1),n=l.heightConfig?.useContent??!1,F=l.heightConfig?.useStretch??!1,v=it(l,t),C=i.useRef(null),[u,p]=i.useState(()=>T(a,t)??null),A=i.useCallback(()=>{p(t.default??null),g(!0)},[t]),[R,f]=X({getStateFromWidgetMgr:T,getDefaultStateFromProto:rt,getCurrStateFromProto:lt,updateWidgetMgrState:nt,element:t,widgetMgr:a,fragmentId:s,onFormCleared:A});Y(R,u,p,r);const o=q(),{height:k,maxHeight:B,updateScrollHeight:H}=et({textareaRef:C,dependencies:[t.placeholder]}),m=i.useCallback(()=>{g(!1),f({value:u,fromUi:!0})},[u,f]),L=i.useCallback(()=>{r&&m(),x(!1)},[r,m]),z=i.useCallback(()=>{x(!0)},[]),D=i.useCallback(()=>{n&&H()},[n,H]),E=Z({formId:t.formId,maxChars:t.maxChars,setDirty:g,setUiValue:p,setValueWithSource:f,additionalAction:D}),U=tt(t.formId,m,r,a,s,!0),{placeholder:P,formId:b}=t,j=S({formId:b})?a.allowFormEnterToSubmit(b):r,w=I&&y>o.breakpoints.hideWidgetDetails;return G(st,{className:"stTextArea","data-testid":"stTextArea",ref:V,children:[c(N,{label:t.label,disabled:e,labelVisibility:W(t.labelVisibility?.value),htmlFor:h,children:t.help&&c(M,{content:t.help,label:t.label})}),c(ot,{inputRef:n?C:void 0,value:u??"",placeholder:P,onBlur:L,onFocus:z,onChange:E,onKeyDown:U,"aria-label":t.label,disabled:e,id:h,overrides:{Input:{style:{fontWeight:o.fontWeights.normal,lineHeight:o.lineHeights.inputWidget,height:n?k:v,maxHeight:n?B:"",minHeight:o.sizes.largestElementHeight,resize:F?"none":"vertical",paddingRight:o.spacing.md,paddingLeft:o.spacing.md,paddingBottom:o.spacing.md,paddingTop:o.spacing.md,"::placeholder":{color:o.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:({$isFocused:K})=>{const d=J(o.colors,K);return{borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth,borderTopColor:d,borderRightColor:d,borderBottomColor:d,borderLeftColor:d,flexGrow:1}}}}}),w&&c(Q,{dirty:r,value:u??"",maxLength:t.maxChars,type:"multiline",inForm:S({formId:b}),allowEnterToSubmit:j})]})},Ct=i.memo(ut);export{Ct as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,E as b,_ as E,W as te,F as h,ai as xt,m as ee,cs as x,ct as zt,o as S,j as a,P as Vt,ay as V,az as Rt,a0 as P,b as re,B as oe,Z as At,bW as ne,l as ae,k as ie,b7 as le,cu as se,e as J,bR as bt,bS as ce}from"./index.DkSjHoXw.js";import{I as de,g as Et,F as X,E as Dt,b as ue,s as pe,u as ge,a as he}from"./FileHelper.EpMV5UVe.js";import{u as fe}from"./useWaveformController.DlE14M1X.js";import{I as we}from"./InputInstructions.CMvqhPhy.js";import{u as me,T as St}from"./useTextInputAutoExpand.DmyHLDxl.js";import{i as ve}from"./inputUtils.CptNuJwn.js";import{T as Ce}from"./TableChart.esm.nZsTq1Sb.js";import{E as ye}from"./ErrorOutline.esm.j3b3OjAK.js";import{U as Mt}from"./UploadFileInfo.Dr-zDST7.js";import"./base-input.DKTA2QNz.js";var kt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),r.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});kt.displayName="Article";var Ft=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});Ft.displayName="Code";var Ut=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});Ut.displayName="Description";var Ht=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});Ht.displayName="Folder";var Tt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});Tt.displayName="Image";var Bt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});Bt.displayName="MusicNote";var Nt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});Nt.displayName="Videocam";var Lt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}))});Lt.displayName="Add";var et=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 000-1.41l-6.59-6.59a.996.996 0 00-1.41 0l-6.6 6.58a.996.996 0 101.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1z"}))});et.displayName="ArrowUpward";var Pt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});Pt.displayName="Cancel";var Wt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18 6.7l-8.48 8.48-3.54-3.54a.996.996 0 10-1.41 1.41l4.24 4.24c.39.39 1.02.39 1.41 0l9.18-9.18a.999.999 0 00-.01-1.42c-.37-.38-1-.38-1.39.01z"}))});Wt.displayName="Check";var Ot=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))});Ot.displayName="Close";var $t=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}))});$t.displayName="ErrorOutline";var Xt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),r.createElement("path",{d:"M17.91 11c-.49 0-.9.36-.98.85C16.52 14.21 14.47 16 12 16s-4.52-1.79-4.93-4.15a.998.998 0 00-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.34 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.44 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z"}))});Xt.displayName="Mic";const $=te.getLogger("ChatInput"),xe=h("div",{target:"e15qancx0"})({position:"relative",display:"flex",flexDirection:"column"}),be=h("div",{target:"e15qancx1"})(({theme:t})=>({backgroundColor:t.colors.secondaryBg,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",flex:1,padding:t.spacing.lg,borderRadius:t.radii.default,boxSizing:"border-box",":focus-within":{borderColor:t.colors.primary}})),Ee=h("div",{target:"e15qancx2"})(({theme:t})=>({position:"relative",display:"flex",flexDirection:"column",gap:t.spacing.sm})),Se=h("div",{target:"e15qancx3"})({position:"relative",display:"flex",flexDirection:"column"}),Ie=h("div",{target:"e15qancx4"})(({theme:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:t.spacing.sm})),ze=h("div",{target:"e15qancx5"})(({theme:t})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",marginTop:"auto",gap:t.spacing.lg})),Ve=h("div",{target:"e15qancx6"})(({theme:t})=>({display:"flex",flexDirection:"row",flex:"1 0 0",gap:t.spacing.sm,alignItems:"center"})),Re=h("div",{target:"e15qancx7"})(({theme:t})=>({display:"flex",flexDirection:"row",gap:t.spacing.sm,alignItems:"center",position:"relative"})),Ae=h("div",{target:"e15qancx8"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.lg,color:t.colors.fadedText60,fontSize:t.fontSizes.twoSm,textAlign:"right",whiteSpace:"nowrap",pointerEvents:"auto",cursor:"text",zIndex:t.zIndices.priority,"& .stChatInputInstructions":{position:"static"}})),U=h("button",{target:"e15qancx9"})(({theme:t,disabled:e,hasError:o,primary:s,withVerticalOffset:d})=>{if(s)return{border:"none",backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary,borderRadius:t.radii.button,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,marginBottom:d?t.sizes.chatInputButtonVerticalOffset:void 0,padding:t.spacing.xs,width:t.sizes.chatInputPrimaryButtonSize,height:t.sizes.chatInputPrimaryButtonSize,color:e?t.colors.fadedText40:t.colors.white,cursor:e?"not-allowed":"pointer",transition:"background-color 200ms ease","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:xt(t)},"&:hover":{backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary}};const f=ee(t),[c,v]=f?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40],C=()=>o?t.colors.redTextColor:e?c:v;return{border:"none",backgroundColor:t.colors.transparent,borderRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.none,color:C(),pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:f?t.colors.gray10:t.colors.gray90,boxShadow:xt(t)},"&:hover":{color:o?t.colors.red70:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray60,cursor:"not-allowed"},"& svg":{width:t.iconSizes.lg,height:t.iconSizes.lg}}}),De=h("div",{target:"e15qancx10"})(({isRecording:t})=>({display:t?"flex":"none",flex:1,alignItems:"center",minWidth:0})),Me=h("div",{target:"e15qancx11"})(({theme:t})=>({position:"relative",width:"100%",minHeight:t.sizes.minElementHeight,borderRadius:t.radii.default,overflow:"hidden","& > div":{position:"absolute",inset:0}})),jt=(t,e)=>e===x.Directory?{...t,webkitdirectory:"",multiple:!0}:t,ke=(t,e)=>{if(!e||e.length===0)return!0;const o=t.name.toLowerCase(),s=o.lastIndexOf(".");if(s===-1||s===o.length-1)return e.some(c=>c===""||c===".");const d=o.substring(s),f=o.substring(s+1);return e.some(c=>{const v=c.toLowerCase();return v.startsWith(".")?d===v:f===v})},Fe=(t,e)=>ke(t,e)?{isValid:!0}:{isValid:!1,errorMessage:`${t.type||"This type of"} files are not allowed.`},rt=t=>{switch(t){case x.None:return"a file";case x.Single:return"a file";case x.Multiple:return"files";case x.Directory:return"a directory";default:return zt(t),"a file"}},Ue=h("div",{target:"e1w5pa0h0"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"absolute",inset:0,zIndex:t.zIndices.priority,borderRadius:t.radii.chatInput})),He=h("div",{target:"e1w5pa0h1"})(({theme:t})=>({position:"absolute",inset:0,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.primary,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,color:t.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:t.fontWeights.bold,pointerEvents:"none",zIndex:t.zIndices.priority})),Te=h("div",{target:"e1w5pa0h2"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),Be=h("div",{target:"e1w5pa0h3"})(({theme:t})=>({lineHeight:t.lineHeights.tight})),Ne=h("div",{target:"e1w5pa0h4"})(({theme:t})=>({display:"flex",flexWrap:"wrap",gap:t.spacing.sm})),Le=h("div",{target:"e1w5pa0h5"})({flex:"0 0 auto",maxWidth:"100%"}),Pe=h("div",{target:"e1w5pa0h6"})(({theme:t,isError:e,isClickable:o})=>({position:"relative",display:"inline-flex",alignItems:"center",width:"fit-content",minWidth:"9rem",maxWidth:"100%",backgroundColor:e?t.colors.redBackgroundColor:t.colors.bgColor,padding:t.spacing.twoXS,paddingRight:t.spacing.twoXL,borderRadius:t.radii.default,gap:t.spacing.sm,cursor:o?"pointer":"default"})),We=h("div",{target:"e1w5pa0h7"})({display:"flex",flexDirection:"column",minWidth:0}),Oe=h("div",{target:"e1w5pa0h8"})(({theme:t,fileStatus:e})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:t.radii.default,width:t.sizes.chatInputFileIconSize,height:t.sizes.chatInputFileIconSize,flexShrink:0,...e==="uploaded"&&{backgroundColor:t.colors.bodyText,color:t.colors.bgColor},...e==="uploading"&&{backgroundColor:t.colors.fadedText10,color:t.colors.fadedText60},...e==="error"&&{backgroundColor:t.colors.redBackgroundColor,color:t.colors.redTextColor}})),$e=h("div",{target:"e1w5pa0h9"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploading"?t.colors.fadedText60:t.colors.bodyText})),Xe=h("div",{target:"e1w5pa0h10"})(({theme:t})=>({color:t.colors.fadedText60,fontSize:t.fontSizes.sm})),je=h("div",{target:"e1w5pa0h11"})(({theme:t})=>({color:t.colors.redTextColor,fontSize:t.fontSizes.sm})),qe=h("small",{target:"e1w5pa0h12"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.twoXS,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,"& button":{display:"flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",minHeight:"unset",minWidth:"unset",maxHeight:"unset",maxWidth:"unset",borderRadius:"50%",backgroundColor:"transparent",color:t.colors.fadedText20,padding:0,overflow:"hidden",boxSizing:"border-box",lineHeight:0,"&:hover":{backgroundColor:"transparent",color:t.colors.fadedText40}}})),_e=({getRootProps:t,getInputProps:e,acceptFile:o,disabled:s})=>{const d=jt(e(),o),f=t({tabIndex:-1});return S(Te,{"data-testid":"stChatInputFileUploadButton",disabled:s,...f,children:[a("input",{...d}),a(Rt,{content:`Upload or drag and drop ${rt(o)}`,placement:Vt.TOP,onMouseEnterDelay:500,children:a(U,{disabled:s,"aria-label":`Upload ${rt(o)}`,children:a(V,{content:Lt,size:"xl",color:"inherit"})})})]})},Ke=r.memo(_e),Ge=({getRootProps:t,getInputProps:e,acceptFile:o})=>{const s=jt(e(),o);return S(P,{children:[a(Ue,{...t(),children:a("input",{...s})}),a(He,{children:`Drag and drop ${rt(o)} here`})]})},Ye=r.memo(Ge),Ze=new Set(["jpg","jpeg","png","gif","webp","svg","bmp"]),Je=new Set(["pdf"]),Qe=new Set(["csv","tsv","xlsx","xls"]),tr=new Set(["txt","md","json","xml","yaml","yml"]),er=new Set(["py","js","ts","jsx","tsx","css","html","java","cpp","c","go","rs","rb","php","swift","kt","scala","sh","bash","sql"]),rr=new Set(["mp3","wav","m4a","ogg","flac","aac"]),or=new Set(["mp4","webm","mov","avi","mkv","wmv"]),nr=new Set(["zip","tar","gz","rar","7z","bz2"]);function ar(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?"":t.slice(e+1).toLowerCase()}function ir(t){const e=ar(t);return Ze.has(e)?Tt:Je.has(e)?kt:Qe.has(e)?Ce:tr.has(e)?Ut:er.has(e)?Ft:rr.has(e)?Bt:or.has(e)?Nt:nr.has(e)?Ht:de}const lr=36;function sr(t,e=lr){if(t.length<=e)return t;const o=t.lastIndexOf(".");if(!(o>0&&o<t.length-1)){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const d=t.slice(o),f=t.slice(0,o),c=e-d.length-3;if(c<=0){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const v=Math.ceil(c/2),C=Math.floor(c/2),m=C>0?f.slice(-C):"";return`${f.slice(0,v)}...${m}${d}`}const cr=({fileInfo:t})=>{const{type:e}=t.status;switch(e){case"uploading":return a(At,{iconValue:"spinner",testid:"stChatInputFileIconSpinner",size:"lg"});case"error":return a(V,{content:ye,size:"lg",testid:"stChatInputFileIconError"});case"uploaded":return a(V,{content:ir(t.name),size:"lg"});default:return zt(e),null}},dr=({fileInfo:t,onDelete:e,onRetry:o})=>{const s=t.status.type,d=s==="error",f=s==="uploading",c=d&&o!==void 0&&t.file!==void 0,v=t.status.type==="error"?t.status.errorMessage:"Upload failed",C=r.useCallback(()=>{c&&o(t)},[c,o,t]),m=r.useCallback(R=>{c&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),o(t))},[c,o,t]),p=r.useCallback(R=>{R.stopPropagation(),e(t.id)},[e,t.id]),w=f?`Cancel upload of ${t.name}`:`Remove ${t.name}`,g=Et(t.size,X.Byte),y=d?`${t.name}, ${v}`:`${t.name}, ${g}`;return S(Pe,{className:"stChatInputFile","data-testid":"stChatInputFile",isError:d,isClickable:c,onClick:c?C:void 0,onKeyDown:c?m:void 0,title:c?"Click to retry upload":void 0,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":y,children:[a(Oe,{fileStatus:s,children:a(cr,{fileInfo:t})}),S(We,{children:[a($e,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:sr(t.name)}),d?a(je,{"data-testid":"stChatInputFileError",children:v}):a(Xe,{children:Et(t.size,X.Byte)})]}),a(qe,{"data-testid":"stChatInputDeleteBtn",children:a(re,{onClick:p,kind:oe.MINIMAL,"aria-label":w,children:a(V,{content:Pt,size:"md"})})})]})},ur=r.memo(dr),pr=({items:t,onDelete:e,onRetry:o})=>a(Be,{"data-testid":"stChatUploadedFiles",children:a(Ne,{children:t.map(s=>a(Le,{children:a(ur,{fileInfo:s,onDelete:e,onRetry:o})},s.id))})}),gr=r.memo(pr),hr=(t,e)=>{const o=[],s=[];return t.forEach(d=>{const f=Fe(d,e.fileType);f.isValid?o.push(d):s.push({file:d,errors:[{code:Dt.FileInvalidType,message:f.errorMessage||"File type not allowed."}]})}),{accepted:o,rejected:s}},fr=({acceptMultipleFiles:t,acceptDirectoryFiles:e,maxFileSize:o,uploadClient:s,uploadFile:d,addFiles:f,getNextLocalFileId:c,deleteExistingFiles:v,onUploadComplete:C,element:m})=>(p,w)=>{if(e&&p.length>0){const{accepted:g,rejected:y}=hr(p,m);p=g,w=[...w,...y]}if(!t&&p.length===0&&w.length>1){const g=w.findIndex(y=>y.errors?.[0].code===Dt.TooManyFiles);g>=0&&(p.push(w[g].file),w.splice(g,1))}if(!t&&p.length>0&&v(),s.fetchFileURLs(p).then(g=>{ne(g,p).forEach(([y,R])=>{d(y,R)})}).catch(g=>{f(p.map(y=>new Mt(y.name,y.size,c(),{type:"error",errorMessage:g},y)))}),w.length>0){const g=w.map(y=>ue(y,c(),o));f(g)}C()},wr=({getNextLocalFileId:t,addFiles:e,updateFile:o,uploadClient:s,element:d,onUploadProgress:f,onUploadComplete:c})=>(v,C)=>{const m=C.webkitRelativePath||C.name,p=new AbortController,w=new Mt(m,C.size,t(),{type:"uploading",abortController:p,progress:1},C);e([w]),s.uploadFile({formId:"",...d},v.uploadUrl,C,g=>f(g,w.id),p.signal).then(()=>c(w.id,v)).catch(g=>{g instanceof DOMException&&g.name==="AbortError"||o(w.id,w.setStatus({type:"error",errorMessage:g?g.toString():"Unknown error"}))})};function It(t,e,o){return{Root:{style:{minHeight:t.sizes.chatInputTextareaMinHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",...o}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{fontWeight:t.fontWeights.normal,lineHeight:t.lineHeights.inputWidget,"::placeholder":{color:t.colors.fadedText60},height:e.height,maxHeight:e.maxHeight,overflowY:"auto",paddingLeft:t.spacing.none,paddingRight:t.spacing.none,paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,width:"100%"}}}}const Q=(t,e,o)=>o.map(s=>s.id===t?e:s),tt=(t,e)=>e.find(o=>o.id===t);function mr({disabled:t,element:e,widgetMgr:o,fragmentId:s,uploadClient:d}){const f=ae(),{placeholder:c,maxChars:v}=e,C=r.useRef(0),m=r.useRef(null),p=r.useRef(!1),w=r.useRef(null),g=r.useRef(null),{width:y,elementRef:R}=ie(),{innerWidth:ot,innerHeight:nt}=le(),[M,j]=r.useState(e.default),[D,k]=r.useState([]),[T,q]=r.useState(!1),[B,at]=r.useState(!1),[_,N]=r.useState(null),W=e.acceptAudio??!1;r.useEffect(()=>()=>{g.current&&g.current.abort()},[]);const H=me({textareaRef:m,dependencies:[c]}),L=r.useMemo(()=>D.some(n=>n.status.type==="uploading")?!1:M!==""||D.length>0,[D,M]),I=se(e.acceptFile),it=pe(e.maxUploadSizeMb,X.Megabyte,X.Byte),lt=r.useCallback(n=>k(l=>[...l,...n]),[]),st=r.useCallback(n=>{n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&d.deleteFile(n.status.fileUrls.deleteUrl).catch(l=>{$.error("Failed to delete file from server:",l)})},[d]),ct=r.useCallback(n=>{k(l=>{const u=tt(n,l);return J(u)?l:(st(u),l.filter(i=>i.id!==n))})},[st]),K=r.useRef(null),qt=r.useCallback(n=>{!n.file||n.status.type!=="error"||(k(l=>l.filter(u=>u.id!==n.id)),K.current&&K.current([n.file],[]))},[]),dt=r.useCallback(()=>{const n=D.filter(l=>l.status.type==="uploaded").map(l=>{const{name:u,size:i,status:z}=l,{fileId:Z,fileUrls:Qt}=z;return new bt({fileId:Z,fileUrls:Qt,name:u,size:i})});return new ce({uploadedFileInfo:n})},[D]),ut=()=>C.current++,pt=fr({acceptMultipleFiles:I===x.Multiple||I===x.Directory,acceptDirectoryFiles:I===x.Directory,maxFileSize:it,uploadClient:d,uploadFile:wr({getNextLocalFileId:ut,addFiles:lt,updateFile:(n,l)=>{k(u=>Q(n,l,u))},uploadClient:d,element:e,onUploadProgress:(n,l)=>{k(u=>{const i=tt(l,u);if(J(i)||i.status.type!=="uploading")return u;const z=Math.round(n.loaded*100/n.total);return i.status.progress===z?u:Q(l,i.setStatus({type:"uploading",abortController:i.status.abortController,progress:z}),u)})},onUploadComplete:(n,l)=>{k(u=>{const i=tt(n,u);return J(i)||i.status.type!=="uploading"?u:Q(i.id,i.setStatus({type:"uploaded",fileId:l.fileId,fileUrls:l}),u)})}}),addFiles:lt,getNextLocalFileId:ut,deleteExistingFiles:()=>D.forEach(n=>ct(n.id)),onUploadComplete:()=>{m.current&&m.current.focus()},element:e});K.current=pt;const{getRootProps:gt,getInputProps:ht}=ge({onDrop:pt,multiple:I===x.Multiple||I===x.Directory,accept:he(e.fileType),maxSize:it}),O=r.useCallback(n=>{if(m.current&&m.current.focus(),!L&&!n||t)return;const l=dt(),u={data:M,fileUploaderState:l,audioFileInfo:n};o.setChatInputValue(e,u,{fromUi:!0},s),k([]),j(""),H.clearScrollHeight()},[L,t,M,dt,o,e,s,H]),ft=r.useCallback(async n=>{const l=new Date().toISOString().replace(/[:.]/g,"-"),u=new File([n],`audio-${l}.wav`,{type:"audio/wav"});try{at(!0);const i=await d.fetchFileURLs([u]);if(i.length===0)throw new Error("Failed to get upload URL for audio file");const z=i[0];g.current=new AbortController,await d.uploadFile({formId:"",...e},z.uploadUrl,u,()=>{},g.current.signal);const Z=new bt({fileId:z.fileId,fileUrls:z,name:u.name,size:u.size});O(Z)}catch(i){const z="Recording failed";$.error("Audio upload failed:",i),N(z),m.current&&m.current.focus()}finally{at(!1)}},[d,e,O]),_t=r.useMemo(()=>({onApprove:ft,onPermissionDenied:()=>{const n="Microphone access denied";N(n),$.error("Permission denied:",n)},onError:n=>{N("Recording failed"),$.error("Recording error:",n)},onRecordStart:()=>{N(null)}}),[ft]),A=fe({containerRef:w,sampleRate:e.audioSampleRate??void 0,events:_t}),G=r.useCallback(()=>{O()},[O]),wt=n=>{const{metaKey:l,ctrlKey:u,shiftKey:i}=n;ve(n)&&!i&&!u&&!l&&(n.preventDefault(),G())},mt=n=>{const{value:l}=n.target;v!==0&&l.length>v||(j(l),H.updateScrollHeight(),_&&N(null))},vt=r.useCallback(async n=>{n.preventDefault(),n.stopPropagation(),!(!W||t||A.state==="recording")&&await A.start()},[W,t,A]),Kt=r.useCallback(()=>{A.cancel(),m.current&&m.current.focus()},[A]),Ct=r.useCallback(async()=>{const{blob:n}=await A.stop();await A.approve(n)},[A]),yt=r.useCallback(n=>{vt(n)},[vt]),Gt=r.useCallback(()=>{Ct()},[Ct]),Yt=r.useCallback(()=>{m.current&&m.current.focus()},[]);r.useEffect(()=>{if(e.setValue&&!p.current){p.current=!0;const n=e.value||"";j(n)}},[e.setValue,e.value]),r.useEffect(()=>{p.current=!1},[e]),r.useEffect(()=>{const n=i=>{i.preventDefault(),i.stopPropagation(),!T&&i.dataTransfer?.types.includes("Files")&&q(!0)},l=i=>{i.preventDefault(),i.stopPropagation(),T&&(i.clientX<=0&&i.clientY<=0||i.clientX>=ot&&i.clientY>=nt)&&q(!1)},u=i=>{i.preventDefault(),i.stopPropagation(),T&&q(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",u),window.addEventListener("dragleave",l),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",u),window.removeEventListener("dragleave",l)}},[T,ot,nt]);const Zt=I!==x.None&&T,F=A.state==="recording",Jt=I===x.None&&!W&&!F,Y=!F&&y>f.breakpoints.hideWidgetDetails&&v>0;return a(xe,{className:"stChatInput","data-testid":"stChatInput",ref:R,children:S(be,{extended:H.isExtended||F,children:[Y&&a(Ae,{onClick:Yt,id:"stChatInputInstructions",children:a(we,{dirty:L,value:M,maxLength:v,type:"chat",inForm:!1,className:"stChatInputInstructions"})}),Jt?S(ze,{children:[a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:It(f,H,{flex:1})}),a(U,{onClick:G,disabled:!L||t,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,withVerticalOffset:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]}):S(P,{children:[S(Ee,{children:[Zt&&a(Ye,{getRootProps:gt,getInputProps:ht,acceptFile:I}),I!==x.None&&D.length>0&&a(gr,{items:[...D],onDelete:ct,onRetry:qt}),S(Se,{children:[a(De,{isRecording:F,children:a(Me,{ref:w})}),!F&&a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:It(f,H,{width:"100%"})})]})]}),S(Ie,{children:[a(Ve,{children:I!==x.None&&!F&&a(Ke,{getRootProps:gt,getInputProps:ht,acceptFile:I,disabled:t})}),a(Re,{children:F?S(P,{children:[a(U,{onClick:Kt,disabled:t,"data-testid":"stChatInputCancelButton","aria-label":"Cancel recording",children:a(V,{content:Ot,size:"lg",color:"inherit"})}),a(U,{onClick:Gt,disabled:t||B,"data-testid":"stChatInputApproveButton","aria-label":"Submit recording",children:B?a(At,{size:"lg",iconValue:"spinner"}):a(V,{content:Wt,size:"lg",color:"inherit"})})]}):S(P,{children:[W&&a(P,{children:_?a(Rt,{content:_,placement:Vt.TOP,error:!0,children:a(U,{onClick:yt,disabled:t||B,hasError:!0,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:$t,size:"xl",color:"inherit"})})}):a(U,{onClick:yt,disabled:t||B,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Xt,size:"xl",color:"inherit"})})}),a(U,{onClick:G,disabled:!L||t||B,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]})})]})]})]})})}const Rr=r.memo(mr);export{Rr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,E as S,_ as A,a$ as o,m as D,b0 as j,F as c,b1 as H,aB as v,l as P,k as G,o as f,j as i,p as F,q as x,P as q,ay as U,b2 as X,aR as Y}from"./index.DkSjHoXw.js";import{e as J,S as K,a as Q,b as Z}from"./embed.CxOHZWx2.js";import{W as ee}from"./WidgetLabelHelpIconInline.D2EEUEQX.js";import{i as L,f as re}from"./formatNumber.D_w4fBsk.js";import"./threshold.CUNQbqMA.js";import"./value.DaKxGC7O.js";import"./timer.BZio6gjG.js";import"./numbro.B9_PXfzp.js";import"./sprintf.DpPCfzXw.js";var B=a.forwardRef(function(e,r){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(S,A({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}))});B.displayName="ArrowDownward";var b=a.forwardRef(function(e,r){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(S,A({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}))});b.displayName="ArrowUpward";function k(e,r){switch(r){case o.MetricColor.RED:return e.colors.redColor;case o.MetricColor.GREEN:return e.colors.greenColor;case o.MetricColor.ORANGE:return e.colors.orangeColor;case o.MetricColor.YELLOW:return e.colors.yellowColor;case o.MetricColor.BLUE:return e.colors.blueColor;case o.MetricColor.VIOLET:return e.colors.violetColor;case o.MetricColor.PRIMARY:return e.colors.primary;default:return e.colors.grayColor}}function V(e,r){const t=D(e);switch(r){case o.MetricColor.RED:return e.colors.redBackgroundColor;case o.MetricColor.GREEN:return e.colors.greenBackgroundColor;case o.MetricColor.ORANGE:return e.colors.orangeBackgroundColor;case o.MetricColor.YELLOW:return e.colors.yellowBackgroundColor;case o.MetricColor.BLUE:return e.colors.blueBackgroundColor;case o.MetricColor.VIOLET:return e.colors.violetBackgroundColor;case o.MetricColor.PRIMARY:return j(e.colors.primary,t?.9:.7);default:return e.colors.grayBackgroundColor}}function oe(e,r){switch(r){case o.MetricColor.RED:return e.colors.redTextColor;case o.MetricColor.GREEN:return e.colors.greenTextColor;case o.MetricColor.ORANGE:return e.colors.orangeTextColor;case o.MetricColor.YELLOW:return e.colors.yellowTextColor;case o.MetricColor.BLUE:return e.colors.blueTextColor;case o.MetricColor.VIOLET:return e.colors.violetTextColor;case o.MetricColor.PRIMARY:return e.colors.primary;default:return e.colors.grayTextColor}}const te=c("div",{target:"e132k71j0"})(({theme:e,showBorder:r})=>({height:"100%",...r&&{border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,borderRadius:e.radii.default,overflow:"hidden"}})),ie=c("div",{target:"e132k71j1"})(({theme:e,showBorder:r})=>({...r&&{padding:`calc(${e.spacing.lg} - ${e.sizes.borderWidth})`}})),ae=c("div",{target:"e132k71j2"})(({theme:e,showBorder:r})=>({marginTop:r?void 0:e.spacing.lg,marginBottom:r?e.spacing.twoXL:void 0})),h=c("div",{target:"e132k71j3"})(({theme:e})=>({overflowWrap:"normal",textOverflow:"ellipsis",width:"100%",overflow:"hidden",whiteSpace:"nowrap",fontFamily:e.genericFonts.bodyFont,lineHeight:"normal",verticalAlign:"middle","& > div":{overflow:"hidden","& > p":{textOverflow:"ellipsis",overflow:"hidden"}}})),le=c(H,{target:"e132k71j4"})(({visibility:e})=>({marginBottom:0,display:e===v.Collapsed?"none":"grid",gridTemplateColumns:e===v.Collapsed?"initial":"auto 1fr",visibility:e===v.Hidden?"hidden":"visible"})),ne=c("div",{target:"e132k71j5"})(({theme:e})=>({fontSize:e.fontSizes.threeXL,color:e.colors.bodyText,paddingBottom:e.spacing.twoXS})),se=c("div",{target:"e132k71j6"})(({theme:e,metricColor:r,showArrow:t})=>({color:oe(e,r),backgroundColor:V(e,r),fontSize:e.fontSizes.sm,display:"inline-flex",flexDirection:"row",alignItems:"center",fontWeight:e.fontWeights.normal,borderRadius:e.radii.full,maxWidth:"100%",padding:`${e.spacing.threeXS} ${e.spacing.xs} ${e.spacing.threeXS} ${e.spacing.xs}`,...t&&{paddingLeft:e.spacing.twoXS}})),ce=1e3;function R(e,r){try{return re(Number(e),r)}catch{return e}}function de(e,r,t,l,p){const n=`metric_chart_${Math.random().toString(36).slice(2,10)}`,C=e.length===1?[e[0],e[0]]:e,s={$schema:"https://vega.github.io/schema/vega-lite/v5.json",width:Math.round(t),height:Math.round(Y("3.5rem")),data:{values:C.map((M,g)=>({x:g,y:M}))},layer:[{name:`${n}_mark`,mark:{type:"line",...r===o.ChartType.LINE&&{type:"line",strokeCap:"round",strokeWidth:2},...r===o.ChartType.BAR&&{type:"bar",cornerRadius:parseFloat(l.radii.full)},...r===o.ChartType.AREA&&{type:"area",color:V(l,p),opacity:1,line:{color:k(l,p),opacity:1,strokeWidth:2,strokeCap:"round"}}},encoding:{x:{field:"x",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}},y:{field:"y",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}}}},{name:`${n}_points`,mark:{type:"point",opacity:0},encoding:{x:{field:"x",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}},y:{field:"y",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}}},params:[{name:`${n}_hover_selection`,select:{type:"point",encodings:["x"],nearest:!0,on:e.length>ce?"mousemove{16}":"mousemove",clear:"mouseleave"}}]},{name:`${n}_highlighted_points`,transform:[{filter:{param:`${n}_hover_selection`,empty:!1}}],mark:{type:"point",filled:!0,size:65,tooltip:!0},encoding:{x:{field:"x",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}},y:{field:"y",type:"quantitative",axis:null,scale:{zero:!1,nice:!1}}}}],config:{view:{stroke:null},padding:{left:-3,right:-3,top:2,bottom:2},...r===o.ChartType.BAR&&{padding:{left:0,right:0,top:2,bottom:2}},mark:{tooltip:{content:"encoding"},color:k(l,p)}}};return s.config=Q(s.config,l),s}function ue({element:e}){const r=P(),t=a.useRef(null),{width:l,elementRef:p}=G(),{MetricDirection:m}=o,{body:n,label:C,delta:s,direction:M,color:g,labelVisibility:z,help:E,showBorder:w,chartData:d,chartType:T,format:y}=e,N=y&&L(n)?R(n,y):n,$=y&&s&&L(s)?R(s,y):s;let u=null;switch(M){case m.DOWN:u=B;break;case m.UP:u=b;break;case m.NONE:break}const I="0 threeXS 0 0",O=s!=="";return a.useEffect(()=>{if(d&&d.length>0&&t.current&&l>0){const W=de(d,T,l,r,g);J(t.current,W,{actions:!1,renderer:"svg",ast:!0,expr:Z,tooltip:{theme:"custom",formatTooltip:_=>`${_.y}`}})}},[d,g,r,l,T,t]),f(te,{className:"stMetric","data-testid":"stMetric",showBorder:w,children:[f(ie,{showBorder:w,children:[f(le,{"data-testid":"stMetricLabel",visibility:F(z?.value),children:[i(h,{children:i(x,{source:C,allowHTML:!1,isLabel:!0})}),E&&i(ee,{content:E,placement:q.TOP_RIGHT,label:C})]}),i(ne,{"data-testid":"stMetricValue",children:i(h,{children:i(x,{source:N,allowHTML:!1,isLabel:!0,inheritFont:!0})})}),O&&f(se,{"data-testid":"stMetricDelta",metricColor:g,showArrow:u!==null,children:[u&&i(U,{testid:u===b?"stMetricDeltaIcon-Up":"stMetricDeltaIcon-Down",content:u,size:"md",margin:I}),i(h,{children:i(x,{source:$,allowHTML:!1,isLabel:!0,inheritFont:!0})})]})]}),d&&d.length>0&&f("div",{ref:p,children:[i(X,{styles:[K]}),i(ae,{ref:t,"data-testid":"stMetricChart",showBorder:w})]})]})}const xe=a.memo(ue);export{xe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,E as z,_ as L,L as Te,e as de,n as P,aM as ie,bW as ze,bS as Le,bR as De,F as g,j as n,Z as Be,o as F,B as Ve,ay as We,b as Me,p as Ne,ab as Oe,P as He,ac as $e}from"./index.DkSjHoXw.js";import{u as je}from"./useWaveformController.DlE14M1X.js";import{T as _e,a as ce}from"./Toolbar.CFMvwQYl.js";import{u as Xe,F as Ge}from"./FormClearHelper.lF7Ran5M.js";import{c as qe}from"./createDownloadLinkElement.DCk6EhPM.js";import{E as Ke}from"./urls.BwSlolu9.js";import{F as Ze,D as Je}from"./FileDownload.esm.DCizXv6Q.js";var ue=t.forwardRef(function(e,r){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(z,L({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("g",{fill:"none"},t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24})),t.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),t.createElement("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"}))});ue.displayName="Mic";var fe=t.forwardRef(function(e,r){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(z,L({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("rect",{width:24,height:24,fill:"none"}),t.createElement("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z"}))});fe.displayName="Pause";var pe=t.forwardRef(function(e,r){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(z,L({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("rect",{width:24,height:24,fill:"none"}),t.createElement("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18a1 1 0 000-1.69L9.54 5.98A.998.998 0 008 6.82z"}))});pe.displayName="PlayArrow";var ge=t.forwardRef(function(e,r){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(z,L({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),t.createElement("path",{d:"M17.65 6.35a7.95 7.95 0 00-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 007.21-4.56c.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53a5.994 5.994 0 01-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0112 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71l-.64.65z"}))});ge.displayName="Refresh";var me=t.forwardRef(function(e,r){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(z,L({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("g",{fill:"none"},t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24})),t.createElement("path",{fillRule:"evenodd",d:"M9 16h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"}))});me.displayName="StopCircle";const Qe=(e,r)=>{const{enforceDownloadInNewTab:o=!1}=t.useContext(Te);return t.useCallback(()=>{if(!e)return;const l=qe({enforceDownloadInNewTab:o,url:e,filename:r});l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l)},[e,o,r])},$=({widgetMgr:e,id:r,formId:o,key:c,defaultValue:l})=>{t.useEffect(()=>{const s=e.getElementState(r,c);de(s)&&P(l)&&e.setElementState(r,c,l)},[e,r,c,l]);const[w,d]=t.useState(e.getElementState(r,c)??l),h=t.useCallback(s=>{e.setElementState(r,c,s),d(s)},[e,r,c]),b=t.useMemo(()=>({formId:o||""}),[o]),y=t.useCallback(()=>h(l),[l,h]);return Xe({element:b,widgetMgr:e,onFormCleared:y}),[w,h]},Ye=async({files:e,uploadClient:r,widgetMgr:o,widgetInfo:c,fragmentId:l,signal:w})=>{let d=[];try{d=await r.fetchFileURLs(e)}catch(s){return{successfulUploads:[],failedUploads:e.map(i=>({file:i,error:ie(s)}))}}const h=ze(e,d),b=[],y=[];return await Promise.all(h.map(async([s,i])=>{if(!s||!i?.uploadUrl||!i.fileId)return{file:s,fileUrl:i,error:new Error("No upload URL found")};try{await r.uploadFile({id:i.fileId,formId:c.formId||""},i.uploadUrl,s,void 0,w),b.push({fileUrl:i,file:s})}catch(N){const u=ie(N);y.push({file:s,error:u})}})),o.setFileUploaderStateValue(c,new Le({uploadedFileInfo:b.map(({file:s,fileUrl:i})=>new De({fileId:i.fileId,fileUrls:i,name:s.webkitRelativePath||s.name,size:s.size}))}),{fromUi:!0},l),{successfulUploads:b,failedUploads:y}},et=g("div",{target:"e18uw4vz0"})(),se=g("div",{target:"e18uw4vz1"})(({theme:e,disabled:r})=>({height:e.sizes.largestElementHeight,width:"100%",background:e.colors.secondaryBg,borderRadius:e.radii.default,marginBottom:e.spacing.twoXS,display:"flex",alignItems:"center",position:"relative",paddingLeft:e.spacing.xs,paddingRight:e.spacing.sm,border:e.colors.widgetBorderColor?`${e.sizes.borderWidth} solid ${e.colors.widgetBorderColor}`:void 0,cursor:r?"not-allowed":"auto",overflow:"hidden"})),tt=g("div",{target:"e18uw4vz2"})({flex:1}),rt=g("div",{target:"e18uw4vz3"})(({show:e,theme:r})=>({display:e?"block":"none",position:"relative",height:r.sizes.largestElementHeight,"& > div":{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center"}})),ot=g("span",{target:"e18uw4vz4"})(({theme:e,isPlayingOrRecording:r,disabled:o})=>({margin:e.spacing.sm,fontFamily:e.fonts.monospace,color:o?e.colors.fadedText40:r?e.colors.bodyText:e.colors.fadedText60,backgroundColor:e.colors.secondaryBg,fontSize:e.fontSizes.sm})),he=g("div",{target:"e18uw4vz5"})({width:"100%",textAlign:"center",overflow:"hidden"}),be=g("span",{target:"e18uw4vz6"})(({theme:e})=>({color:e.colors.bodyText})),nt=g("a",{target:"e18uw4vz7"})(({theme:e})=>({color:e.colors.link,textDecoration:e.linkUnderline?"underline":"none"})),at=g("div",{target:"e18uw4vz8"})(({theme:e})=>({flex:1,height:e.sizes.largestElementHeight,display:"flex",justifyContent:"center",alignItems:"center"})),lt=g("div",{target:"e18uw4vz9"})(({theme:e})=>{const r="0.625em";return{opacity:.2,width:"100%",height:r,backgroundSize:r,backgroundImage:`radial-gradient(${e.colors.fadedText10} 40%, transparent 40%)`,backgroundRepeat:"repeat"}}),it=g("span",{target:"e18uw4vz10"})(({theme:e})=>({"& > button":{color:e.colors.primary,padding:e.spacing.threeXS},"& > button:hover, & > button:focus":{color:e.colors.redColor}})),ct=g("span",{target:"e18uw4vz11"})(({theme:e})=>({"& > button":{padding:e.spacing.threeXS,color:e.colors.fadedText60},"& > button:hover, & > button:focus":{color:e.colors.bodyText}})),ye=g("span",{target:"e18uw4vz12"})(({theme:e})=>({"& > button":{padding:e.spacing.threeXS,color:e.colors.fadedText60},"& > button:hover, & > button:focus":{color:e.colors.bodyText}})),j=g("div",{target:"e18uw4vz13"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",flexGrow:0,flexShrink:1,padding:e.spacing.xs,gap:e.spacing.twoXS,marginRight:e.spacing.twoXS})),T=({onClick:e,disabled:r,ariaLabel:o,iconContent:c})=>n(Me,{kind:Ve.BORDERLESS_ICON,onClick:e,disabled:r,"aria-label":o,containerWidth:!0,"data-testid":"stAudioInputActionButton",children:n(We,{content:c,size:"lg",color:"inherit"})}),st=({disabled:e,stopRecording:r})=>n(it,{children:n(T,{onClick:r,disabled:e,ariaLabel:"Stop recording",iconContent:me})}),dt=({disabled:e,isPlaying:r,onClickPlayPause:o})=>n(ye,{children:r?n(T,{onClick:o,disabled:e,ariaLabel:"Pause",iconContent:fe}):n(T,{onClick:o,disabled:e,ariaLabel:"Play",iconContent:pe})}),ut=({disabled:e,startRecording:r})=>n(ct,{children:n(T,{onClick:r,disabled:e,ariaLabel:"Record",iconContent:ue})}),ft=({onClick:e})=>n(ye,{children:n(T,{disabled:!1,onClick:e,ariaLabel:"Reset",iconContent:ge})}),pt=({disabled:e,isRecording:r,isPlaying:o,isUploading:c,isError:l,recordingUrlExists:w,startRecording:d,stopRecording:h,onClickPlayPause:b,onClear:y})=>l?n(j,{children:n(ft,{onClick:y})}):c?n(j,{children:n(Be,{size:"base",iconValue:"spinner"})}):F(j,{children:[r?n(st,{disabled:e,stopRecording:h}):n(ut,{disabled:e,startRecording:d}),w&&n(dt,{disabled:e,isPlaying:o,onClickPlayPause:b})]}),gt=t.memo(pt),mt=()=>n(he,{children:n(be,{children:"An error has occurred, please try again."})}),ht=t.memo(mt),R="00:00",k=e=>{const r=Math.floor(e/1e3),o=Math.floor(r/60),c=Math.floor(o/60),l=r%60,w=o%60,d=l.toString().padStart(2,"0"),h=w.toString().padStart(2,"0"),b=c.toString().padStart(2,"0");return o<60?`${h}:${d}`:`${b}:${h}:${d}`},bt=()=>F(he,{children:[n(be,{children:"This app would like to use your microphone."})," ",n(nt,{href:Ke,rel:"noopener noreferrer",target:"_blank",children:"Learn how to allow access."})]}),yt=t.memo(bt),vt=()=>n(at,{children:n(lt,{})}),wt=t.memo(vt),St=({element:e,uploadClient:r,widgetMgr:o,fragmentId:c,disabled:l})=>{const w=t.useRef(null),[d,h]=t.useState(!1),[b,y]=t.useState(!1),[s,i]=t.useState(!1),[N,u]=t.useState(R),[D,B]=$({widgetMgr:o,id:e.id,key:"deleteFileUrl",defaultValue:null}),[m,V]=$({widgetMgr:o,id:e.id,key:"recordingUrl",defaultValue:null}),[O,A]=$({widgetMgr:o,id:e.id,formId:e.formId,key:"recordingTime",defaultValue:R}),I=t.useRef(null),S=t.useRef(null),f=t.useRef(null),_=e.id,C=e.formId,ve=t.useCallback(async a=>{I.current&&I.current.abort();const v=new AbortController;I.current=v;try{if(y(!0),P(C)&&o.setFormsWithUploadsInProgress(new Set([C])),v.signal.aborted)return;let p;try{p=URL.createObjectURL(a),S.current&&S.current!==p&&URL.revokeObjectURL(S.current),S.current=p}catch{i(!0),y(!1),P(C)&&o.setFormsWithUploadsInProgress(new Set);return}if(v.signal.aborted){URL.revokeObjectURL(p),S.current=null;return}V(p);const Ue=new Date().toISOString().slice(0,16).replace(/:/g,"-"),Pe=new File([a],`${Ue}_audio.wav`,{type:a.type});try{const{successfulUploads:Fe,failedUploads:xe}=await Ye({files:[Pe],uploadClient:r,widgetMgr:o,widgetInfo:{id:_,formId:C},fragmentId:c,signal:v.signal});if(v.signal.aborted)return;if(xe.length>0){i(!0);return}i(!1);const le=Fe[0];le?.fileUrl?.deleteUrl&&B(le.fileUrl.deleteUrl)}catch{v.signal.aborted||i(!0)}finally{P(C)&&o.setFormsWithUploadsInProgress(new Set),v.signal.aborted||y(!1)}}catch{v.signal.aborted||(i(!0),y(!1)),P(C)&&o.setFormsWithUploadsInProgress(new Set)}},[r,o,_,C,c,B,V]),W=t.useRef(null),X=je({containerRef:w,sampleRate:e.sampleRate??void 0,waveformPadding:4,events:{onPermissionDenied:()=>{h(!0)},onError:()=>{i(!0)},onRecordStart:()=>{A(R),u(R)},onRecordReady:()=>{const a=k(W.current?.playback.getDurationMs()??0);A(a),u(a)},onApprove:ve,onCancel:()=>{A(R),u(R)},onProgressMs:a=>{A(k(a))},onPlaybackPause:()=>{u(k(W.current?.playback.getCurrentTimeMs()??0))},onPlaybackFinish:()=>{u(k(W.current?.playback.getDurationMs()??0))}}});W.current=X;const{state:M,isPlaybackPlaying:U,start:G,stop:q,approve:K,cancel:Z,playback:{play:J,pause:Q,load:Y,getCurrentTimeMs:x,getDurationMs:ee}}=X,E=t.useCallback(async({updateWidgetManager:a,deleteFile:v})=>{const p=m;if(p&&S.current===p&&(URL.revokeObjectURL(p),S.current=null),f.current&&(cancelAnimationFrame(f.current),f.current=null),V(null),B(null),u(R),A(R),Z(),a&&o.setFileUploaderStateValue(e,{},{fromUi:!0},c),v&&D)try{await r.deleteFile(D)}catch{}P(p)&&URL.revokeObjectURL(p)},[D,m,r,Z,e,o,c,A,B,V]);t.useEffect(()=>{const a=()=>{U&&(u(k(x())),f.current=requestAnimationFrame(a))};return U?f.current=requestAnimationFrame(a):f.current&&(cancelAnimationFrame(f.current),f.current=null),()=>{f.current&&(cancelAnimationFrame(f.current),f.current=null)}},[U,x]),t.useEffect(()=>{if(!m)return;let a=!1;return u(O),(async()=>{try{if(await Y(m),a)return;const p=ee();p>0&&u(k(p))}catch{a||i(!0)}})(),()=>{a=!0}},[m,O,Y,ee]),t.useEffect(()=>{if(de(C))return;const a=new Ge;return a.manageFormClearListener(o,C,()=>{E({updateWidgetManager:!0,deleteFile:!1})}),()=>a.disconnect()},[C,E,o]),t.useEffect(()=>()=>{I.current&&(I.current.abort(),I.current=null),f.current&&(cancelAnimationFrame(f.current),f.current=null),S.current&&(URL.revokeObjectURL(S.current),S.current=null)},[]);const we=t.useCallback(async()=>{try{if(U){const a=x();Q(),u(k(a))}else M==="idle"&&m&&(x()<=100&&u(R),await J())}catch{i(!0)}},[U,x,Q,J,m,M]),te=t.useCallback(async()=>{m&&await E({updateWidgetManager:!1,deleteFile:!0});try{u(R),await G()}catch{}},[E,m,G]),re=t.useCallback(async()=>{try{const{blob:a}=await q();await K(a)}catch{i(!0)}},[K,q]),oe=Qe(m,"recording.wav"),Se=t.useCallback(()=>{te()},[te]),Ce=t.useCallback(()=>{re()},[re]),Re=t.useCallback(()=>{E({updateWidgetManager:!1,deleteFile:!0}),i(!1)},[E]),Ee=t.useCallback(()=>{oe()},[oe]),ke=t.useCallback(()=>{E({updateWidgetManager:!0,deleteFile:!0})},[E]),H=M==="recording",ne=U,Ae=H?O:N,ae=M==="idle"&&!d&&!m,Ie=d||ae||s;return F(et,{className:"stAudioInput","data-testid":"stAudioInput",children:[n($e,{label:e.label,disabled:l,labelVisibility:Ne(e.labelVisibility?.value),children:e.help&&n(Oe,{content:e.help,placement:He.TOP,label:e.label})}),F(se,{disabled:l,children:[F(_e,{isFullScreen:!1,disableFullscreenMode:!0,target:se,children:[m&&n(ce,{label:"Download as WAV",icon:Ze,onClick:Ee}),D&&n(ce,{label:"Clear recording",icon:Je,onClick:ke})]}),n(gt,{isRecording:H,isPlaying:ne,isUploading:b,isError:s,recordingUrlExists:!!m,startRecording:Se,stopRecording:Ce,onClickPlayPause:()=>{we()},onClear:Re,disabled:l||d}),F(tt,{children:[s&&n(ht,{}),ae&&n(wt,{}),d&&n(yt,{}),n(rt,{"data-testid":"stAudioInputWaveSurfer",ref:w,show:!Ie})]}),n(ot,{isPlayingOrRecording:H||ne,disabled:l,"data-testid":"stAudioInputWaveformTimeCode",children:Ae})]})]})},Pt=t.memo(St);export{Pt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,E as q,_ as G,F as k,bd as C,e as h,n as Z,W as ut,l as dt,k as pt,aa as ft,aR as M,o as z,j as d,p as mt,ab as bt,ac as ht,ad as gt,Z as yt,ay as O}from"./index.DkSjHoXw.js";import{I as It}from"./InputInstructions.CMvqhPhy.js";import{u as Ct}from"./useBasicWidgetState.C9zOVP8a.js";import{s as Tt}from"./sprintf.DpPCfzXw.js";import{u as St}from"./uniqueId.DtV_RZzG.js";import{I as wt}from"./input.CZPD7mCu.js";import"./FormClearHelper.lF7Ran5M.js";import"./base-input.DKTA2QNz.js";var J=a.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(q,G({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),a.createElement("path",{d:"M0 3v2h8V3H0z"}))});J.displayName="Minus";var Q=a.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(q,G({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),a.createElement("path",{d:"M3 0v3H0v2h3v3h2V5h3V3H5V0H3z"}))});Q.displayName="Plus";const vt=k("div",{target:"eaeic2i0"})(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",height:t.sizes.minElementHeight,borderWidth:t.sizes.borderWidth,borderStyle:"solid",borderColor:t.colors.widgetBorderColor??t.colors.secondaryBg,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:t.radii.default,overflow:"hidden","&.focused":{borderColor:t.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:t.spacing.none}}})),xt=k("div",{target:"eaeic2i1"})({display:"flex",flexDirection:"row",alignSelf:"stretch"}),j=k("button",{target:"eaeic2i2"})(({theme:t})=>({margin:t.spacing.none,border:"none",height:t.sizes.full,display:"flex",alignItems:"center",width:t.sizes.numberInputControlsWidth,justifyContent:"center",color:t.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:t.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:t.colors.white,backgroundColor:t.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:disabled":{cursor:"not-allowed",color:t.colors.fadedText40}})),Dt=k("div",{target:"eaeic2i3"})(({theme:t,clearable:e})=>({position:"absolute",marginRight:t.spacing.twoXS,left:0,right:`calc(${t.sizes.numberInputControlsWidth} * 2 + ${e?"1em":"0em"})`})),kt=ut.getLogger("NumberInput");function Nt(t){return h(t)||t===""?void 0:t}const Y=t=>{const e=t.toString();if(e.includes("e-")){const r=e.match(/(\d+(?:\.\d+)?)e-(\d+)/);if(r){const s=(r[1]?.split(".")[1]||"").length,n=parseInt(r[2],10);return s+n}return 0}return(e.split(".")[1]||"").length},K=({value:t,format:e,step:r,dataType:s})=>{if(h(t))return null;let n=Nt(e);if(h(n)&&Z(r)&&s===C.DataType.FLOAT&&r!==0){const l=Y(r);l>0&&(n=`%0.${l}f`)}if(h(n))return t.toString();try{return Tt.sprintf(n,t)}catch(l){return kt.warn(`Error in sprintf(${n}, ${t}): ${l}`),String(t)}},Vt=(t,e,r)=>h(t)?!1:t-e>=r,Et=(t,e,r)=>h(t)?!1:t+e<=r,_=(t,e,r)=>{const s=Y(e);if(s===0)switch(r){case"add":return t+e;case"subtract":return t-e}const n=Math.pow(10,s),l=Math.round(t*n),p=Math.round(e*n);switch(r){case"add":return(l+p)/n;case"subtract":return(l-p)/n}},Rt=({step:t,dataType:e})=>t||(e===C.DataType.INT?1:.01);function X(t,e){return e.dataType===C.DataType.INT?t.getIntValue(e):t.getDoubleValue(e)}function Ft(t){return t.default??null}function Wt(t){return t.value??t.default??null}function zt(t,e,r,s){switch(t.dataType){case C.DataType.INT:e.setIntValue(t,r.value,{fromUi:r.fromUi},s);break;case C.DataType.FLOAT:e.setDoubleValue(t,r.value,{fromUi:r.fromUi},s);break;default:throw new Error("Invalid data type")}}const Bt=({disabled:t,element:e,widgetMgr:r,fragmentId:s})=>{const n=dt(),{dataType:l,formId:p,default:T,format:N,icon:V,min:g,max:y}=e,{width:B,elementRef:tt}=pt(),c=a.useMemo(()=>Rt({step:e.step,dataType:e.dataType}),[e.step,e.dataType]),I=a.useCallback(o=>K({value:o,dataType:l,format:N,step:c}),[l,N,c]),[f,w]=a.useState(!1),[b,S]=a.useState(()=>{const o=X(r,e)??T??null;return K({value:o,dataType:l,format:N,step:c})}),[L,P]=Ct({getStateFromWidgetMgr:X,getDefaultStateFromProto:Ft,getCurrStateFromProto:Wt,updateWidgetMgrState:zt,element:e,widgetMgr:r,fragmentId:s,onFormCleared:a.useCallback(()=>{const o=T??null;w(!1),S(I(o))},[T,I])}),[U,A]=a.useState(!1),E=a.useRef(null),[H]=a.useState(()=>St("number_input_")),$=ft({formId:p}),et=$?r.allowFormEnterToSubmit(p):f,nt=U&&B>n.breakpoints.hideWidgetDetails;a.useEffect(()=>{f||S(I(L))},[L,f,I]);const m=a.useCallback(({value:o,fromUi:i})=>{if(Z(o)&&(g>o||o>y)){E.current?.reportValidity();return}const D=o??T??null;P({value:D,fromUi:i}),w(!1),S(I(D))},[g,y,T,I,P]),rt=a.useCallback(()=>{A(!0)},[]);a.useEffect(()=>{const o=E.current;if(o){const i=D=>{D.preventDefault()};return o.addEventListener("wheel",i),()=>{o.removeEventListener("wheel",i)}}},[]);const R=h(e.default)&&!t,ot=a.useCallback(o=>{const{value:i}=o.target;i===""?(w(!0),S(null)):(w(!0),S(i))},[]),u=a.useMemo(()=>{if(b===null||b==="")return null;if(e.dataType===C.DataType.INT){const i=parseInt(b,10);return isNaN(i)?null:i}const o=parseFloat(b);return isNaN(o)?null:o},[b,e.dataType]),v=Vt(u,c,g),x=Et(u,c,y),at=a.useCallback(()=>{f&&m({value:u,fromUi:!0}),A(!1)},[f,u,m]),F=a.useCallback(()=>{if(x){const o=_(u??g,c,"add");m({value:o,fromUi:!0})}},[u,g,c,x,m]),W=a.useCallback(()=>{if(v){const o=_(u??y,c,"subtract");m({value:o,fromUi:!0})}},[u,y,c,v,m]),st=a.useCallback(o=>{const{key:i}=o;switch(i){case"ArrowUp":o.preventDefault(),F();break;case"ArrowDown":o.preventDefault(),W();break}},[F,W]),it=a.useCallback(o=>{o.key==="Enter"&&(f&&m({value:u,fromUi:!0}),r.allowFormEnterToSubmit(p)&&r.submitForm(p,s))},[f,u,m,r,p,s]),lt=M(n.iconSizes.lg)+2*M(n.spacing.twoXS),ct=V?n.breakpoints.hideNumberInputControls+lt:n.breakpoints.hideNumberInputControls;return z("div",{className:"stNumberInput","data-testid":"stNumberInput",ref:tt,children:[d(ht,{label:e.label,disabled:t,labelVisibility:mt(e.labelVisibility?.value),htmlFor:H,children:e.help&&d(bt,{content:e.help,label:e.label})}),z(vt,{className:U?"focused":"","data-testid":"stNumberInputContainer",children:[d(wt,{type:"number",inputRef:E,value:b??"",placeholder:e.placeholder,onBlur:at,onFocus:rt,onChange:ot,onKeyPress:it,onKeyDown:st,clearable:R,clearOnEscape:R,disabled:t,"aria-label":e.label,startEnhancer:e.icon&&d(yt,{"data-testid":"stNumberInputIcon",iconValue:e.icon,size:"lg"}),id:H,overrides:{ClearIconContainer:{style:{padding:0}},ClearIcon:{props:{overrides:{Svg:{style:{color:n.colors.grayTextColor,padding:n.spacing.threeXS,height:n.sizes.clearIconSize,width:n.sizes.clearIconSize,":hover":{fill:n.colors.bodyText}}}}}},Input:{props:{"data-testid":"stNumberInputField",step:c,min:g,max:y,type:"number",inputMode:""},style:{fontWeight:n.fontWeights.normal,lineHeight:n.lineHeights.inputWidget,paddingRight:n.spacing.sm,paddingLeft:n.spacing.md,paddingBottom:n.spacing.sm,paddingTop:n.spacing.sm,"::placeholder":{color:n.colors.fadedText60}}},InputContainer:{style:()=>({borderTopRightRadius:0,borderBottomRightRadius:0})},Root:{style:{borderTopRightRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingRight:0,paddingLeft:V?n.spacing.sm:0}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:n.iconSizes.lg,color:gt(V)?n.colors.fadedText60:"inherit"}}}}),B>ct&&z(xt,{children:[d(j,{"data-testid":"stNumberInputStepDown",onClick:W,disabled:!v||t,tabIndex:-1,children:d(O,{content:J,size:"xs",color:v?"inherit":n.colors.fadedText40})}),d(j,{"data-testid":"stNumberInputStepUp",onClick:F,disabled:!x||t,tabIndex:-1,children:d(O,{content:Q,size:"xs",color:x?"inherit":n.colors.fadedText40})})]})]}),nt&&d(Dt,{clearable:R,children:d(It,{dirty:f,value:b??"",inForm:$,allowEnterToSubmit:et})})]})},jt=a.memo(Bt);export{jt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as D,r as a,k as U,l as P,aa as S,o as j,j as l,p as H,ab as q,ac as K,ad as O,ae as _,Z as $,af as w}from"./index.DkSjHoXw.js";import{I as A}from"./InputInstructions.CMvqhPhy.js";import{u as N}from"./useBasicWidgetState.C9zOVP8a.js";import{u as Z,a as G,b as J}from"./useUpdateUiValue.aWXWpqmw.js";import{u as M}from"./uniqueId.DtV_RZzG.js";import{I as Q}from"./input.CZPD7mCu.js";import"./FormClearHelper.lF7Ran5M.js";import"./inputUtils.CptNuJwn.js";import"./base-input.DKTA2QNz.js";const X=D("div",{target:"eiqkja70"})("position:relative;");function Y({disabled:o,element:t,widgetMgr:s,fragmentId:u}){const[r,p]=a.useState(()=>W(s,t)??null),{width:T,elementRef:x}=U(),[i,m]=a.useState(!1),y=a.useCallback(()=>{p(t.default??null),m(!0)},[t.default]),[C,h]=N({getStateFromWidgetMgr:W,getDefaultStateFromProto:tt,getCurrStateFromProto:et,updateWidgetMgrState:ot,element:t,widgetMgr:s,fragmentId:u,onFormCleared:y});Z(C,r,p,i);const[V,f]=a.useState(!1),e=P(),[b]=a.useState(()=>M("text_input_")),{placeholder:F,formId:n,icon:d,maxChars:I}=t,g=a.useCallback(()=>{m(!1),h({value:r,fromUi:!0})},[r,h]),E=S({formId:n})?s.allowFormEnterToSubmit(n):i,v=V&&T>e.breakpoints.hideWidgetDetails,L=a.useCallback(()=>{i&&g(),f(!1)},[i,g]),R=a.useCallback(()=>{f(!0)},[]),k=G({formId:n,maxChars:I,setDirty:m,setUiValue:p,setValueWithSource:h}),z=J(n,g,i,s,u);return j(X,{className:"stTextInput","data-testid":"stTextInput",ref:x,children:[l(K,{label:t.label,disabled:o,labelVisibility:H(t.labelVisibility?.value),htmlFor:b,children:t.help&&l(q,{content:t.help,label:t.label})}),l(Q,{value:r??"",placeholder:F,onBlur:L,onFocus:R,onChange:k,onKeyPress:z,"aria-label":t.label,disabled:o,id:b,type:at(t),autoComplete:t.autocomplete,startEnhancer:d&&l($,{"data-testid":"stTextInputIcon",iconValue:d,size:"lg"}),overrides:{Input:{style:{fontWeight:e.fontWeights.normal,minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:({$isFocused:B})=>{const c=_(e.colors,B);return{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:c,borderRightColor:c,borderBottomColor:c,borderLeftColor:c,paddingLeft:d?e.spacing.sm:0}}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:O(d)?e.colors.fadedText60:"inherit"}}}}),v&&l(A,{dirty:i,value:r??"",maxLength:I,inForm:S({formId:n}),allowEnterToSubmit:E})]})}function W(o,t){return o.getStringValue(t)??null}function tt(o){return o.default??null}function et(o){return o.value??null}function ot(o,t,s,u){t.setStringValue(o,s.value,{fromUi:s.fromUi},u)}function at(o){return o.type===w.Type.PASSWORD?"password":"text"}const mt=a.memo(Y);export{mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as i}from"./index.DkSjHoXw.js";var n=0;function u(r){var t=++n;return i(r)+t}export{u};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|