streamlit-nightly 1.26.1.dev20230912__py2.py3-none-any.whl → 1.26.1.dev20230915__py2.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.
Files changed (36) hide show
  1. streamlit/elements/dataframe_selector.py +139 -158
  2. streamlit/elements/pyplot.py +1 -1
  3. streamlit/elements/widgets/button.py +14 -1
  4. streamlit/elements/widgets/number_input.py +25 -18
  5. streamlit/elements/widgets/selectbox.py +4 -3
  6. streamlit/elements/widgets/text_widgets.py +172 -73
  7. streamlit/proto/NumberInput_pb2.py +4 -4
  8. streamlit/proto/TextArea_pb2.py +2 -2
  9. streamlit/proto/TextInput_pb2.py +4 -4
  10. streamlit/runtime/metrics_util.py +9 -0
  11. streamlit/runtime/state/__init__.py +0 -1
  12. streamlit/runtime/state/session_state.py +2 -2
  13. streamlit/runtime/state/widgets.py +0 -4
  14. streamlit/static/asset-manifest.json +8 -8
  15. streamlit/static/index.html +1 -1
  16. streamlit/static/static/js/1451.76174eea.chunk.js +1 -0
  17. streamlit/static/static/js/{4436.0d12b4f4.chunk.js → 4436.9b8d7cb9.chunk.js} +1 -1
  18. streamlit/static/static/js/4666.29813cd1.chunk.js +1 -0
  19. streamlit/static/static/js/5379.acbf1a74.chunk.js +1 -0
  20. streamlit/static/static/js/7175.1af60fa9.chunk.js +1 -0
  21. streamlit/static/static/js/8691.9d96e187.chunk.js +1 -0
  22. streamlit/static/static/js/main.2ba402e0.js +2 -0
  23. streamlit/testing/element_tree.py +14 -12
  24. {streamlit_nightly-1.26.1.dev20230912.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/METADATA +1 -1
  25. {streamlit_nightly-1.26.1.dev20230912.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/RECORD +30 -30
  26. streamlit/static/static/js/1451.20b10c89.chunk.js +0 -1
  27. streamlit/static/static/js/4666.fe4ef587.chunk.js +0 -1
  28. streamlit/static/static/js/5379.ed613f3a.chunk.js +0 -1
  29. streamlit/static/static/js/7175.2ddee0f1.chunk.js +0 -1
  30. streamlit/static/static/js/8691.593dd822.chunk.js +0 -1
  31. streamlit/static/static/js/main.f88db55d.js +0 -2
  32. /streamlit/static/static/js/{main.f88db55d.js.LICENSE.txt → main.2ba402e0.js.LICENSE.txt} +0 -0
  33. {streamlit_nightly-1.26.1.dev20230912.data → streamlit_nightly-1.26.1.dev20230915.data}/scripts/streamlit.cmd +0 -0
  34. {streamlit_nightly-1.26.1.dev20230912.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/WHEEL +0 -0
  35. {streamlit_nightly-1.26.1.dev20230912.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/entry_points.txt +0 -0
  36. {streamlit_nightly-1.26.1.dev20230912.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/top_level.txt +0 -0
@@ -847,7 +847,7 @@ class Text(Element):
847
847
 
848
848
  @dataclass(repr=False)
849
849
  class TextArea(Widget):
850
- _value: str | None
850
+ _value: str | None | InitialValue
851
851
 
852
852
  proto: TextAreaProto
853
853
  max_chars: int
@@ -856,7 +856,7 @@ class TextArea(Widget):
856
856
  def __init__(self, proto: TextAreaProto, root: ElementTree):
857
857
  self.proto = proto
858
858
  self.root = root
859
- self._value = None
859
+ self._value = InitialValue()
860
860
 
861
861
  self.type = "text_area"
862
862
  self.id = proto.id
@@ -868,19 +868,20 @@ class TextArea(Widget):
868
868
  self.disabled = proto.disabled
869
869
  self.key = user_key_from_widget_id(self.id)
870
870
 
871
- def set_value(self, v: str) -> TextArea:
871
+ def set_value(self, v: str | None) -> TextArea:
872
872
  self._value = v
873
873
  return self
874
874
 
875
875
  def widget_state(self) -> WidgetState:
876
876
  ws = WidgetState()
877
877
  ws.id = self.id
878
- ws.string_value = self.value
878
+ if self.value is not None:
879
+ ws.string_value = self.value
879
880
  return ws
880
881
 
881
882
  @property
882
- def value(self) -> str:
883
- if self._value is not None:
883
+ def value(self) -> str | None:
884
+ if not isinstance(self._value, InitialValue):
884
885
  return self._value
885
886
  else:
886
887
  state = self.root.session_state
@@ -897,7 +898,7 @@ class TextArea(Widget):
897
898
 
898
899
  @dataclass(repr=False)
899
900
  class TextInput(Widget):
900
- _value: str | None
901
+ _value: str | None | InitialValue
901
902
  proto: TextInputProto
902
903
  max_chars: int
903
904
  autocomplete: str
@@ -906,7 +907,7 @@ class TextInput(Widget):
906
907
  def __init__(self, proto: TextInputProto, root: ElementTree):
907
908
  self.proto = proto
908
909
  self.root = root
909
- self._value = None
910
+ self._value = InitialValue()
910
911
 
911
912
  self.type = "text_input"
912
913
  self.id = proto.id
@@ -919,19 +920,20 @@ class TextInput(Widget):
919
920
  self.disabled = proto.disabled
920
921
  self.key = user_key_from_widget_id(self.id)
921
922
 
922
- def set_value(self, v: str) -> TextInput:
923
+ def set_value(self, v: str | None) -> TextInput:
923
924
  self._value = v
924
925
  return self
925
926
 
926
927
  def widget_state(self) -> WidgetState:
927
928
  ws = WidgetState()
928
929
  ws.id = self.id
929
- ws.string_value = self.value
930
+ if self.value is not None:
931
+ ws.string_value = self.value
930
932
  return ws
931
933
 
932
934
  @property
933
- def value(self) -> str:
934
- if self._value is not None:
935
+ def value(self) -> str | None:
936
+ if not isinstance(self._value, InitialValue):
935
937
  return self._value
936
938
  else:
937
939
  state = self.root.session_state
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-nightly
3
- Version: 1.26.1.dev20230912
3
+ Version: 1.26.1.dev20230915
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -53,7 +53,7 @@ streamlit/elements/arrow_vega_lite.py,sha256=-mFJd6neq6okPDvX7Mj6JvH_pVatk2IIHZD
53
53
  streamlit/elements/balloons.py,sha256=ivpqNv0PLw6wJDz9Fl1T0zC3r-QLpL0BYMPvs0S2gFg,1445
54
54
  streamlit/elements/bokeh_chart.py,sha256=q0oDLsMwdHjkTAyGMaSXH6BvoeglwfofT8q5fRQ2DKY,3853
55
55
  streamlit/elements/code.py,sha256=MWmsSNPtYtVuaqD-GJFIeoc8GETXyz6Xgu5AiBFlqYo,2452
56
- streamlit/elements/dataframe_selector.py,sha256=QsNTwDjhdQ6lhqk45k-sN1Vs7FS1OT8XiwjKOSn10UA,44285
56
+ streamlit/elements/dataframe_selector.py,sha256=qvDkE52aakUxsvqEpVg-7X5nJFssfoAD8DOS_HS4pjs,44403
57
57
  streamlit/elements/deck_gl_json_chart.py,sha256=BiigenZVcOvLYxUPAHDPCiM5BzLrgWdrjT_bp_6jgjo,6091
58
58
  streamlit/elements/doc_string.py,sha256=0cyfzrAAq6Jj4suq-1ROMVNSmNhOT02C7RWfMeczth0,15922
59
59
  streamlit/elements/empty.py,sha256=Uq8i2Lr_PPa2As97dQFaHvmsp4sFQnkxl940rHY9pDo,2598
@@ -74,7 +74,7 @@ streamlit/elements/media.py,sha256=O66DMCzdoOTfEACPjUlxy5CNZ_BqFVQGlzcsbxCKp8I,1
74
74
  streamlit/elements/metric.py,sha256=qUM_FTHT2hqeQeaab_I0di5sjKfL_Mh6nMmbAmov0rA,9924
75
75
  streamlit/elements/plotly_chart.py,sha256=OxzKdlLpM5URPDy7RMpRvLobwPX9VWhUEyfKF3JpQi4,8820
76
76
  streamlit/elements/progress.py,sha256=xTfe-a-Z-FOVCWyFbGDflxgj_HcTLOcJgbldrbjZzwc,4753
77
- streamlit/elements/pyplot.py,sha256=H76JVouhFI1jxzssftKS0s9W1f3MLoF_glf535b18K4,6557
77
+ streamlit/elements/pyplot.py,sha256=MemqmlKfuzASt7BV7RuvX9rD9Xftosmde42w9M6hjGo,6573
78
78
  streamlit/elements/snow.py,sha256=HM26jOst6tTMVkVhHD_KiED34o_mT6yyj8hBW923hwI,1402
79
79
  streamlit/elements/spinner.py,sha256=Ybhx_KXvImj3EXwgRoeZtE5yil_G_iN6hq-Xn1qUhbg,3789
80
80
  streamlit/elements/text.py,sha256=2lKwoOX07RoCxxf6tytLgyowCmyiSy-R1Y1N7aAlqd4,1834
@@ -89,7 +89,7 @@ streamlit/elements/lib/mutable_status_container.py,sha256=fDUy2pVmE6Q0FLMEmAdZ0l
89
89
  streamlit/elements/lib/pandas_styler_utils.py,sha256=50xFrj1ekuyy3v2otyzPXVWagwMKSYFzPdxlyUws45g,8010
90
90
  streamlit/elements/lib/streamlit_plotly_theme.py,sha256=41om2HXfsORlLqHjBDamr8dkKyrBm2ZixnR1NRcck3Q,6407
91
91
  streamlit/elements/widgets/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
92
- streamlit/elements/widgets/button.py,sha256=saHVDoeJtVCdgcw-5JbGshX-dWM-HE_w7QAPVqU091A,23428
92
+ streamlit/elements/widgets/button.py,sha256=fL-zWqoi63uBqCyqh10Dnx9SIhtzZTyWJAYrFrtfHa8,23803
93
93
  streamlit/elements/widgets/camera_input.py,sha256=Qf7RS5lNnwP_ljEbhw4Uc2thphdLqca8f0ExHXLFg6A,8929
94
94
  streamlit/elements/widgets/chat.py,sha256=IMT092F6MTFzNnipoqNePF-iQ8Bah_I375ypcYirqEA,12381
95
95
  streamlit/elements/widgets/checkbox.py,sha256=oLGbiOdYA4x4rK-qIaCfxvSQVIujZeY_zfjmWRGd39k,12284
@@ -97,12 +97,12 @@ streamlit/elements/widgets/color_picker.py,sha256=OlGgngEU_MbYzRvVOArGiLPlqiJvFq
97
97
  streamlit/elements/widgets/data_editor.py,sha256=sgsFliLfPoEwz7HehQu58V5yoXzCVhMxwRRoNOFcelM,33607
98
98
  streamlit/elements/widgets/file_uploader.py,sha256=xO2LfOPjrOTtuDwAvoNvV4b31TW6h4BaOP-8vll6phI,17577
99
99
  streamlit/elements/widgets/multiselect.py,sha256=prFJ_bobgJ5ucOLDZyCqKIv74CHMSh4SjdyZLB3_jW0,13145
100
- streamlit/elements/widgets/number_input.py,sha256=kg4MUY_bNwgd9bz5roqYcTV7tiY8wINGP861lU_vayM,17103
100
+ streamlit/elements/widgets/number_input.py,sha256=CunxIjd1Xu0zoGgxDyu05Oy3nHLdiAGP9J_VULvBIvk,17589
101
101
  streamlit/elements/widgets/radio.py,sha256=DcMJJ3A0u4pikUdwaEswTGTcquvbPemXJmdTu9KpiaQ,12202
102
102
  streamlit/elements/widgets/select_slider.py,sha256=KoyuFsHfbnx1REQdpenXnTXBbEtDF4fKF1VXP-Xqr0w,12729
103
- streamlit/elements/widgets/selectbox.py,sha256=xmDEq0mlE-4WGYeblVOZQFilb5zm2-YLOl6ppj5Ye-c,10924
103
+ streamlit/elements/widgets/selectbox.py,sha256=AuYPtfnG32gsc4FJL_Ty2etwsaVODQh0h_hMY3HL1X0,10957
104
104
  streamlit/elements/widgets/slider.py,sha256=9nLeG-k7Vau94vA7UXMjMx_8sRv2GcVQrDgNgFOkK4w,26167
105
- streamlit/elements/widgets/text_widgets.py,sha256=TVMql6qpDZJPy6NxeAUtwpBecG192JwG5zylTd9Bz6c,18442
105
+ streamlit/elements/widgets/text_widgets.py,sha256=JfQAsi5AB3hYFNEGGWqsXKFgArjchjIa_NbmsKr4Jmg,21726
106
106
  streamlit/elements/widgets/time_widgets.py,sha256=JWXsoYppiGHxq-YlNaV5YyuEvLmMfFSbZ4Qz5l2y5pU,28241
107
107
  streamlit/external/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
108
108
  streamlit/external/langchain/__init__.py,sha256=84uoV5cbX0jLFm4Vx92WDagQXiu4T-oacm_UtrYz0Mc,858
@@ -158,7 +158,7 @@ streamlit/proto/Metric_pb2.py,sha256=lS7-_4FqGTxDhbm0kU5lSnPHeIAAm93J5zPsnZW3Dc8
158
158
  streamlit/proto/MultiSelect_pb2.py,sha256=StjxTS_Kh-rdtluIssPFaAUoP7oGNXZEq-ZhnseYfWg,1630
159
159
  streamlit/proto/NamedDataSet_pb2.py,sha256=02QgUCBz2r2TQFj_PAfUFA3whvsqpRKZNsv-39rtFEw,1222
160
160
  streamlit/proto/NewSession_pb2.py,sha256=gktOQ2QRo_vvpxFgukFJ6I5IbmCvIC-PokVTQoxwRDE,4898
161
- streamlit/proto/NumberInput_pb2.py,sha256=9VsTe-4566VyOkjI_d6G0P1l0d3kDwypuAyTB7ihn80,2161
161
+ streamlit/proto/NumberInput_pb2.py,sha256=NrRdssr5YA-knF_qkMlqOiVHCThiIu90AZgtR73XMck,2202
162
162
  streamlit/proto/PageConfig_pb2.py,sha256=G46vl11tW6x2ZDGWV0NF6EVww3w0j_szkyLht1lhqfM,1965
163
163
  streamlit/proto/PageInfo_pb2.py,sha256=k4GnocF0oXl1glEGoWregbOCnLAYL6rnx9CKykcYTFc,986
164
164
  streamlit/proto/PageNotFound_pb2.py,sha256=6y3XZizydwqKEqHp6GHWAIbyd6qiccSMif4w_XjgqME,1003
@@ -174,8 +174,8 @@ streamlit/proto/SessionStatus_pb2.py,sha256=LPFwivw6Q03qqqOry0r2KlJAVOFtPKIYc_Sk
174
174
  streamlit/proto/Slider_pb2.py,sha256=BWOU4U2_5UzfsDKI2EfgqRM9tnPMcuM6zgEmuY2IJM0,2205
175
175
  streamlit/proto/Snow_pb2.py,sha256=RQVd3O-x0uzoyBtdxH_m8RJG-NEXTZodEcsIA02X6VI,962
176
176
  streamlit/proto/Spinner_pb2.py,sha256=ML_8ucMo0XjZvIjQkyezG3_oggXkRiVF-DDd_hkXA7E,975
177
- streamlit/proto/TextArea_pb2.py,sha256=iJmXzTFuXYPCkW3rJLxvC7FjK8mRIeO7aCRFt5TPImI,1601
178
- streamlit/proto/TextInput_pb2.py,sha256=fOrUL61cBsuIkvOx83e0do_CxBdQG4fi9yZJPK2hvwg,1836
177
+ streamlit/proto/TextArea_pb2.py,sha256=hJKnI7tgOH8xKLpbSh0AG9zpx16FRGld5dsv7oZ_rB8,1671
178
+ streamlit/proto/TextInput_pb2.py,sha256=nvlL2pa83PNPkNPYUZQqThVhGah7gzxJw58CZmdAKL8,1906
179
179
  streamlit/proto/Text_pb2.py,sha256=fHuN6QxgiDD3nRC8_Za0icnz_ISf03jl9ltkpXvRHq8,992
180
180
  streamlit/proto/TimeInput_pb2.py,sha256=Q6mKHWK5vD7XHa7xXWe1ycpDDExMxNVKZXJ38kuijHQ,1600
181
181
  streamlit/proto/Toast_pb2.py,sha256=bx2jeUgRNYapRRyWQfZ55UVyZm7N35kwCLQiNFAvuT0,997
@@ -195,7 +195,7 @@ streamlit/runtime/media_file_storage.py,sha256=EWftWdVbpdmRycYNBz0eCiPXJZNnRRiyn
195
195
  streamlit/runtime/memory_media_file_storage.py,sha256=J0JNbhyIU60Vgdclow88qJsN1-EG8nhNIAN7LRZaLZU,6251
196
196
  streamlit/runtime/memory_session_storage.py,sha256=E0Ax-RnE5Siyc8k8qOYrJ4TgREUsofpabq93AvpSWyc,2918
197
197
  streamlit/runtime/memory_uploaded_file_manager.py,sha256=XvFJTzJ4kzF5MqLW2_8o7UpXZrb30RgoY5cW424ggJM,4399
198
- streamlit/runtime/metrics_util.py,sha256=c0luyCtKw6I7G8S9Eejuk5RCLR21CamroC5dCo7eJLY,13534
198
+ streamlit/runtime/metrics_util.py,sha256=T7X_r4zaPoqDKhqIdB6FCj3kEMldwpYjCxgXCOZH8SU,13664
199
199
  streamlit/runtime/runtime.py,sha256=KQn650r7WtXGbc8RHADZeyU2ySgg8BPU71UmaHwk1Rs,26771
200
200
  streamlit/runtime/runtime_util.py,sha256=OG-IwAOhL2yHvx8cVJ24CI6npmtvi1M0YtU0lasIqls,3790
201
201
  streamlit/runtime/script_data.py,sha256=kZn1dlYYG7KmvIaxunbYIgZPgUCpUYuAswKVVSVp6ic,1703
@@ -227,15 +227,15 @@ streamlit/runtime/scriptrunner/script_cache.py,sha256=FfwraO1GXJGPsJ734Gka0ZEQlf
227
227
  streamlit/runtime/scriptrunner/script_requests.py,sha256=8X-UIAxFsKCPv-tEHIcFiJsd74uSbIjEYZ5wbaYENzM,7120
228
228
  streamlit/runtime/scriptrunner/script_run_context.py,sha256=HpTY8MDLF7HdNlfqnIPT9suKKqtAhctjDMqBk8V8GRE,6586
229
229
  streamlit/runtime/scriptrunner/script_runner.py,sha256=a67whxLeq6IaU9o6sXp2vHkupJbvi21pcI77ILAfQ7o,25874
230
- streamlit/runtime/state/__init__.py,sha256=TEUGX04N5Rv7pFM3uD6YWcyFu6JNaUDmpoMIiO_9C0c,1806
230
+ streamlit/runtime/state/__init__.py,sha256=l0f6Pepna6AzX1nKdqHhASilMF2pTLNKechjJVtSlGg,1733
231
231
  streamlit/runtime/state/common.py,sha256=fgzKWoFKpcUgZ2MiBjRXVHfHUWO0Cj9QsxDuSw-GYu8,7514
232
232
  streamlit/runtime/state/safe_session_state.py,sha256=YhQ-9fXjx-geJ6d-1OlPyjuFIuRnguptWEriWJJcZJE,4808
233
- streamlit/runtime/state/session_state.py,sha256=lNJwk-6oDeu36EJjsT96aLJyAHPa3Vof9hOM-BlKz4o,25916
233
+ streamlit/runtime/state/session_state.py,sha256=nNScvKmBvWpLmxrPx5ciF-xUenWi9KIdaf8ozHiCMes,25873
234
234
  streamlit/runtime/state/session_state_proxy.py,sha256=1Yvldnacr_ZEF4wl8Y8y685pCE8_DKRN02W52tzLBFc,5098
235
- streamlit/runtime/state/widgets.py,sha256=kL8VEGwyYoC9FDAmBZffEzRXz_z9zHwHHSPe1A7a15k,11163
236
- streamlit/static/asset-manifest.json,sha256=efFjCquCGRGf5_5HldQ45sEXSsVWHYHuhkC7KBl67UA,14009
235
+ streamlit/runtime/state/widgets.py,sha256=TY39mbObWI-mlNPc2Z-7AVcz1rtL5oVRfpPYGuhe6HQ,10993
236
+ streamlit/static/asset-manifest.json,sha256=1ybidhBc3gS9r0OHUUoz4it3X44j5FIpHntrfMEkXGY,14009
237
237
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
238
- streamlit/static/index.html,sha256=3Qaj-r99vbU59RjBByv-xXWeSLgFIp8v0bw74clcblI,892
238
+ streamlit/static/index.html,sha256=BETz-zPOhLZgMBmsxrl8SBgI7G9rRivQeKQTJw-I80k,892
239
239
  streamlit/static/static/css/1480.b42f5471.chunk.css,sha256=GPeJpbK2IZNaAlFMHBoOt6JkDymmCg0LqZa6j39bS5c,2995
240
240
  streamlit/static/static/css/4436.46c3674e.chunk.css,sha256=YlVhmRqh3Z6a7GDxZAX94apjncEa2AmUMxJF12XCNwc,11503
241
241
  streamlit/static/static/css/6385.b42f5471.chunk.css,sha256=GPeJpbK2IZNaAlFMHBoOt6JkDymmCg0LqZa6j39bS5c,2995
@@ -245,7 +245,7 @@ streamlit/static/static/js/1011.d9ed7f0d.chunk.js,sha256=vIA7J_LyOvLS7pELeaJQ8p-
245
245
  streamlit/static/static/js/1074.36c00f7e.chunk.js,sha256=jwLaud2Upe1a1Fo5HxHM-61ZTIMeAvncOgNt91Yb0vU,7262
246
246
  streamlit/static/static/js/1168.39ebb497.chunk.js,sha256=KeyjogyC_q_-qi4CSuj39iEz9axGIqtsGo0kT2R97lc,6564
247
247
  streamlit/static/static/js/1307.7f807042.chunk.js,sha256=NCDrgB3omZuSIoh5sAIjk7iCy4rvt3fnoY2_T9POQys,1546
248
- streamlit/static/static/js/1451.20b10c89.chunk.js,sha256=w1inbJtnhXyAvFzVx2S04zJs5-SqDQsps8rZxqCZQpQ,5532
248
+ streamlit/static/static/js/1451.76174eea.chunk.js,sha256=p0xOizYDDNlD4mexaoi1K4x22acL1ITg4lBliAyHGkE,5562
249
249
  streamlit/static/static/js/1480.280554b1.chunk.js,sha256=Qi9M76-OwU0lNLMWOWK_jQOtTOfyDQQzOxhL7g4dDPQ,9654
250
250
  streamlit/static/static/js/178.949bb3e5.chunk.js,sha256=Elh7ZWw3eddiPU98t2H67IvmafoyzbpLKH6UBhaQgk0,972
251
251
  streamlit/static/static/js/1792.402ab29b.chunk.js,sha256=jIjJBQ117w17kjmrgkFay8cZrQdOgh-lD9S0VHURgQQ,762
@@ -260,14 +260,14 @@ streamlit/static/static/js/4132.8fb3b851.chunk.js,sha256=4iG4JbOq8HhNTzzVWPC9K6H
260
260
  streamlit/static/static/js/4132.8fb3b851.chunk.js.LICENSE.txt,sha256=igkibNn8txupcmLBAXVBW26Sb88LgmTdgCd4fgTQu-E,487
261
261
  streamlit/static/static/js/4177.4a240aed.chunk.js,sha256=qkOxdaeEoDMIV4h8u2tF4xJo2suOhf0Z3uUuRoHOC3I,2699
262
262
  streamlit/static/static/js/4319.fb3e0b77.chunk.js,sha256=5LR8McVLeIx4P20ZTJGJ7DcLPCGHDNUw-wQIGwZ6qfw,2937
263
- streamlit/static/static/js/4436.0d12b4f4.chunk.js,sha256=szCYVvgzUPchHPgND-HqwZXjo4JkM7NdRCFpuNJO6rs,40084
263
+ streamlit/static/static/js/4436.9b8d7cb9.chunk.js,sha256=DVqzekOwPf_YYLKx5I_vF38cMLuq60RyO1x6nepvaBw,40112
264
264
  streamlit/static/static/js/4477.51e44822.chunk.js,sha256=ajJiceGP2q3hhmAkP3oWp3A597TXcDBQb0TR0OVxsDk,21450
265
265
  streamlit/static/static/js/4483.ba79abcc.chunk.js,sha256=-OK6G1PhmWJfq03H4M7yNkGnnqksXORfgyFrL4NtqUA,8068
266
266
  streamlit/static/static/js/4500.69d3e003.chunk.js,sha256=ROR-371uM8SAjECxfnn2TTZyjWvx_UgcLsbY5acUHJ4,549
267
- streamlit/static/static/js/4666.fe4ef587.chunk.js,sha256=Q235wIQ2RFJBvROdCXG5PIHeebWhiox1-mTNNWQYh30,15654
267
+ streamlit/static/static/js/4666.29813cd1.chunk.js,sha256=WLJDbE2xkowKoSLpvOxu1y3zLu01bGJGA3yiA3Xeocw,15685
268
268
  streamlit/static/static/js/5106.51601bd4.chunk.js,sha256=7JOBOF5wNfPo6-JLfqjlM4YS-W4LfZJAbeyGINreJ-4,7700
269
269
  streamlit/static/static/js/5117.a242f22e.chunk.js,sha256=q8GxJAIHOP1eQrOU7PKaioI0YkDeZC_5uvemafAi4sg,21807
270
- streamlit/static/static/js/5379.ed613f3a.chunk.js,sha256=kByL6sbknz4X98VA71d5lwETQ8GHS7PURlL9O6hU3Ww,11095
270
+ streamlit/static/static/js/5379.acbf1a74.chunk.js,sha256=1kPYBTQ0gt102fbHiPmXSnM-LRSRTuB184k29f_HGPM,11211
271
271
  streamlit/static/static/js/5733.b3b2020b.chunk.js,sha256=lZP9kr96-6kzq4VHHLlmdMR_l-jhco4oOkiNSbzCe9g,718936
272
272
  streamlit/static/static/js/5733.b3b2020b.chunk.js.LICENSE.txt,sha256=WIu1r_3TeX1RoxehimYxaMpI2o7uKOcAnMnDZ1hXEA8,2200
273
273
  streamlit/static/static/js/5791.ef1d0f71.chunk.js,sha256=Ohf2moF51YZKlKvGQxK_BLD7Dtx3MvtftNgA6aCwT5M,107687
@@ -282,7 +282,7 @@ streamlit/static/static/js/6988.5f0eaf34.chunk.js,sha256=NpofgTFB1wjgJ8LDin14iNh
282
282
  streamlit/static/static/js/6988.5f0eaf34.chunk.js.LICENSE.txt,sha256=1QHhzkSjNF6H69M5pw5HrN7wcZQ3zGXwvfwB7fuBNoc,105
283
283
  streamlit/static/static/js/7062.864c905c.chunk.js,sha256=E8TKDfM4Vqk9bXO79Ty_gJgCj38CY4a4TAPMItDAlhE,8356
284
284
  streamlit/static/static/js/7142.ad6129d4.chunk.js,sha256=ZwShEgBpIELD1kzc9G9ItnH2F55kO7OCQsUpBU6TmMk,70659
285
- streamlit/static/static/js/7175.2ddee0f1.chunk.js,sha256=_u8qD7Zzkw7V_myXQxZ0hx4vNusk3AzUJF6h_dvvxuw,9781
285
+ streamlit/static/static/js/7175.1af60fa9.chunk.js,sha256=y2PQU8i9UmwgoNOfWmF1UFaa6doT7P15E3pTm0B9RaY,9866
286
286
  streamlit/static/static/js/7386.c965002c.chunk.js,sha256=YX9_Z0-FmPEas7JNzV10nJjAt3KXCxVo7Z32nxi9AEQ,3591019
287
287
  streamlit/static/static/js/7386.c965002c.chunk.js.LICENSE.txt,sha256=tDhUc1uKAxm9xI1Hmk3VIMtA2vpN16iFFomXeLMKUQc,2087
288
288
  streamlit/static/static/js/7602.1205744e.chunk.js,sha256=xfKxzI7jOcoEpEy5BhPOx2iTJmJMmviSO8_O2pDML4Q,13937
@@ -294,12 +294,12 @@ streamlit/static/static/js/8427.75498f10.chunk.js,sha256=Kfu6g4mpuyimIm5yMwSgCeU
294
294
  streamlit/static/static/js/8477.d8369fad.chunk.js,sha256=R6bq-v058m6dLLYZHoh7uQgJJk0GDgeH1ZmhhXuY9Co,1914
295
295
  streamlit/static/static/js/8492.decfd71a.chunk.js,sha256=BYSLD7i-NH9QBFZwm8CL_6qTCk6QGWS4vD2VhkUsjjQ,16044
296
296
  streamlit/static/static/js/8570.2972819f.chunk.js,sha256=T06GZqYwfR8IxNOoSVxT-WjTRF0tfi_P3bqzFKWihI0,12233
297
- streamlit/static/static/js/8691.593dd822.chunk.js,sha256=teaLwSFc0pMYXHyIywo37Q7jIx-tGfbu5PsGmbSjrnA,10636
297
+ streamlit/static/static/js/8691.9d96e187.chunk.js,sha256=PSCpwM2YKCNMQ_oQKDJbbTj6zf34e4KPGkBp_Slg6hk,10788
298
298
  streamlit/static/static/js/9330.7033aa48.chunk.js,sha256=krFTMyRt09Dxm8fJTeLylRgkoatUcxrAUxOVCjQg2mM,489
299
299
  streamlit/static/static/js/9336.7efa8bb1.chunk.js,sha256=NrsKX5JU7Q3tMmWOSctyUioscrhaxXUftrHT38VRTgg,13490
300
300
  streamlit/static/static/js/9656.acfed299.chunk.js,sha256=2OQGjtNeB6k3ROf17z5TfHpt1Sl3oYpAwb3Pptr_zTA,22301
301
- streamlit/static/static/js/main.f88db55d.js,sha256=0-b16vMrbXnI5w5lj4J33x79NnRPCyQhDy3jA08rSTs,4759304
302
- streamlit/static/static/js/main.f88db55d.js.LICENSE.txt,sha256=bfRVUUXN2XyPr112Wh_Z95x3KIJUoFD2rLA3tAQ5kAk,4025
301
+ streamlit/static/static/js/main.2ba402e0.js,sha256=N2hDmy6kTAHHCOI3d7KOP6b8ElwOS5R4BUdEFn-cKQA,4760580
302
+ streamlit/static/static/js/main.2ba402e0.js.LICENSE.txt,sha256=bfRVUUXN2XyPr112Wh_Z95x3KIJUoFD2rLA3tAQ5kAk,4025
303
303
  streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
304
304
  streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
305
305
  streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
@@ -391,7 +391,7 @@ streamlit/static/static/media/index.b599194a631d76b49328.cjs,sha256=bB_tgXllq8v6
391
391
  streamlit/static/static/media/logo.83ae4f2fb87e38be7cbb8a5d2beb64d2.svg,sha256=_ny9rpEr-fxCV2w83KwX1abcYB6WMKRUdrAv1RnzOUE,1697
392
392
  streamlit/static/static/media/rocket.b75b17d2b0a063c6cea230d1a9d77f1e.svg,sha256=6ZIRbOQuBNsdJnpfrNMq-6mYpYDN8qJGVsxkZIn8bP8,39315
393
393
  streamlit/testing/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
394
- streamlit/testing/element_tree.py,sha256=jWs48KLZ3ojlcGYNfQrqZrn7oPD14qMhdSNI92QmNwM,43188
394
+ streamlit/testing/element_tree.py,sha256=hK9AWv_xY4uqxY417qo8208QV7fdTxstTLfSBomD4Qc,43380
395
395
  streamlit/testing/local_script_runner.py,sha256=IRzhbirDgtn44yoHY16UpWJip_OLqg_ROk7wHX0J-4o,5401
396
396
  streamlit/testing/script_interactions.py,sha256=3es1KlZJQ-9ZVmuiXAKAmcUNAs6xTDkk13FMhRomPVs,3739
397
397
  streamlit/vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -420,9 +420,9 @@ streamlit/web/server/server_util.py,sha256=XJ9ngvipySXQqncV30nAn_QVnjYXvvl9j5aMq
420
420
  streamlit/web/server/stats_request_handler.py,sha256=rJelIrHJAz4EGctKLnixEbEVetrXcsDVYp7la033tGE,3405
421
421
  streamlit/web/server/upload_file_request_handler.py,sha256=VJObJ8L2rHbHnAov0VhRc2_gKThmE82BJkRsTZdXyiA,5029
422
422
  streamlit/web/server/websocket_headers.py,sha256=oTieGEZ16m1cmZMuus_fwgTIWF9LUFvCtmls2_GivgA,1867
423
- streamlit_nightly-1.26.1.dev20230912.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
424
- streamlit_nightly-1.26.1.dev20230912.dist-info/METADATA,sha256=Cmf_HUL09fkg4j8BSDvxefDzG_YW1g3MbQ036_Hx4CA,8018
425
- streamlit_nightly-1.26.1.dev20230912.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
426
- streamlit_nightly-1.26.1.dev20230912.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
427
- streamlit_nightly-1.26.1.dev20230912.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
428
- streamlit_nightly-1.26.1.dev20230912.dist-info/RECORD,,
423
+ streamlit_nightly-1.26.1.dev20230915.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
424
+ streamlit_nightly-1.26.1.dev20230915.dist-info/METADATA,sha256=omi36cNzuGaxv7KezVFaarn-Jak69a5POFRwlwDDOG8,8018
425
+ streamlit_nightly-1.26.1.dev20230915.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
426
+ streamlit_nightly-1.26.1.dev20230915.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
427
+ streamlit_nightly-1.26.1.dev20230915.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
428
+ streamlit_nightly-1.26.1.dev20230915.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1451],{61451:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var r=n(22951),a=n(91976),i=n(67591),o=n(94337),s=n(66845),l=n(53608),d=n.n(l),u=n(25621),p=n(15791),c=n(28278),m=n(13553),f=n(87814),h=n(98478),g=n(86659),v=n(8879),y=n(68411),b=n(50641),C=n(40864),k="YYYY/MM/DD";function x(e){return e.map((function(e){return new Date(e)}))}var D=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).formClearHelper=new f.K,e.state={values:e.initialValue,isRange:e.props.element.isRange,isEmpty:!1},e.commitWidgetValue=function(t){var n;e.props.widgetMgr.setStringArrayValue(e.props.element,(n=e.state.values)?n.map((function(e){return d()(e).format(k)})):[],t)},e.onFormCleared=function(){var t=x(e.props.element.default);e.setState({values:t},(function(){return e.commitWidgetValue({fromUi:!0})}))},e.handleChange=function(t){var n=t.date;if(null!==n&&void 0!==n){var r=[];Array.isArray(n)?n.forEach((function(e){e&&r.push(e)})):r.push(n),e.setState({values:r,isEmpty:!r},(function(){e.state.isEmpty||e.commitWidgetValue({fromUi:!0})}))}else e.setState({values:[],isEmpty:!0})},e.handleClose=function(){e.state.isEmpty&&e.setState((function(e,t){return{values:x(t.element.default),isEmpty:!x(t.element.default)}}),(function(){e.commitWidgetValue({fromUi:!0})}))},e.getMaxDate=function(){var t=e.props.element.max;return t&&t.length>0?d()(t,k).toDate():void 0},e}return(0,a.Z)(n,[{key:"initialValue",get:function(){var e=this.props.widgetMgr.getStringArrayValue(this.props.element);return x(void 0!==e?e:this.props.element.default||[])}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var e=this,t=this.props.element.value;this.props.element.setValue=!1,this.setState({values:t.map((function(e){return new Date(e)}))},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"render",value:function(){var e,t=this.props,n=t.width,r=t.element,a=t.disabled,i=t.theme,o=t.widgetMgr,s=this.state,l=s.values,u=s.isRange,f=i.colors,x=i.fontSizes,D=i.lineHeights,W={width:n},F=d()(r.min,k).toDate(),V=this.getMaxDate(),w=0===r.default.length&&!a,I=r.format.replaceAll(/[a-zA-Z]/g,"9"),S=r.format.replaceAll("Y","y").replaceAll("D","d");return this.formClearHelper.manageFormClearListener(o,r.formId,this.onFormCleared),(0,C.jsxs)("div",{className:"stDateInput",style:W,"data-testid":"stDateInput",children:[(0,C.jsx)(h.O,{label:r.label,disabled:a,labelVisibility:(0,b.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:r.help&&(0,C.jsx)(g.dT,{children:(0,C.jsx)(v.Z,{content:r.help,placement:y.u.TOP_RIGHT})})}),(0,C.jsx)(p.Z,{"data-testid":"stDateInputPicker",density:c.pw.high,formatString:S,mask:u?"".concat(I," \u2013 ").concat(I):I,placeholder:u?"".concat(r.format," \u2013 ").concat(r.format):r.format,disabled:a,onChange:this.handleChange,onClose:this.handleClose,overrides:{Popover:{props:{placement:m.r4.bottomLeft,overrides:{Body:{style:{border:"1px solid ".concat(f.fadedText10)}}}}},CalendarContainer:{style:{fontSize:x.sm,paddingRight:i.spacing.sm,paddingLeft:i.spacing.sm,paddingBottom:i.spacing.sm,paddingTop:i.spacing.sm}},Week:{style:{fontSize:x.sm}},Day:{style:function(e){var t=e.$pseudoHighlighted,n=e.$pseudoSelected,r=e.$selected,a=e.$isHovered;return{fontSize:x.sm,lineHeight:D.base,"::before":{backgroundColor:r||n||t||a?"".concat(f.secondaryBg," !important"):f.transparent},"::after":{borderColor:f.transparent}}}},PrevButton:{style:function(){return{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}}}},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},ClearIcon:{props:{overrides:{Svg:{style:{color:i.colors.darkGray,transform:"scale(1.41)",width:i.spacing.twoXL,marginRight:"-8px",":hover":{fill:i.colors.bodyText}}}}}},Input:{style:{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}}}}},value:l,minDate:F,maxDate:V,range:u,clearable:w})]})}}]),n}(s.PureComponent),W=(0,u.b)(D)},87814:function(e,t,n){n.d(t,{K:function(){return o}});var r=n(22951),a=n(91976),i=n(50641),o=function(){function e(){(0,r.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,a.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4666],{90186:function(e,t,n){n.d(t,{$:function(){return i}});var i,r=n(66845),a=n(25621),s=n(66694),o=n(95118),l=n(38570),d=n(80318),c=n(40864);!function(e){e.EXTRASMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(i||(i={})),t.Z=function(e){var t=e.value,n=e.width,u=e.size,p=void 0===u?i.SMALL:u,g=e.overrides,f=(0,a.u)(),m={xs:f.spacing.twoXS,sm:f.spacing.sm,md:f.spacing.lg,lg:f.spacing.xl,xl:f.spacing.twoXL},h=r.useContext(s.E).activeTheme,x=!(0,o.MJ)(h),v={BarContainer:{style:{marginTop:f.spacing.none,marginBottom:f.spacing.none,marginRight:f.spacing.none,marginLeft:f.spacing.none}},Bar:{style:function(e){var t=e.$theme;return{width:n?n.toString():void 0,marginTop:f.spacing.none,marginBottom:f.spacing.none,marginRight:f.spacing.none,marginLeft:f.spacing.none,height:m[p],backgroundColor:t.colors.progressbarTrackFill,borderTopLeftRadius:f.spacing.twoXS,borderTopRightRadius:f.spacing.twoXS,borderBottomLeftRadius:f.spacing.twoXS,borderBottomRightRadius:f.spacing.twoXS}}},BarProgress:{style:function(){return{backgroundColor:x?f.colors.primary:f.colors.blue70,borderTopLeftRadius:f.spacing.twoXS,borderTopRightRadius:f.spacing.twoXS,borderBottomLeftRadius:f.spacing.twoXS,borderBottomRightRadius:f.spacing.twoXS}}}};return(0,c.jsx)(l.Z,{value:t,overrides:(0,d.aO)(v,g)})}},77367:function(e,t,n){n.d(t,{R:function(){return a}});var i=n(22951),r=n(91976),a=function(){function e(t,n,r,a){(0,i.Z)(this,e),this.name=void 0,this.size=void 0,this.status=void 0,this.id=void 0,this.name=t,this.size=n,this.id=r,this.status=a}return(0,r.Z)(e,[{key:"setStatus",value:function(t){return new e(this.name,this.size,this.id,t)}}]),e}()},14666:function(e,t,n){n.r(t),n.d(t,{default:function(){return be}});var i,r=n(649),a=n(11026),s=n(22951),o=n(91976),l=n(67591),d=n(94337),c=n(45960),u=n.n(c),p=n(72706),g=n.n(p),f=n(66845),m=n(16295),h=n(87814),x=n(50641);!function(e){e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b"}(i||(i={}));var v=(0,x.rA)()?1024:1e3,w=[i.Gigabyte,i.Megabyte,i.Kilobyte,i.Byte],y=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(n||(n=i.Byte),r<0&&(r=0),t<0)throw new Error("Size must be greater than or equal to 0");var a=w.indexOf(n);return a&&t>v/2?e(t/v,w[a-1],r):"".concat(t.toFixed(r)).concat(n.toUpperCase())},b=n(98478),S=n(86659),Z=n(8879),F=n(68411),j=n(50189),I=n(51622),M=n(9003),z=n(81354),L=n(64649),k=n(1515);var C=(0,k.Z)("section",{target:"e1b2p2ww15"})((function(e){var t=e.isDisabled,n=e.theme;return{display:"flex",alignItems:"center",padding:n.spacing.lg,backgroundColor:n.colors.secondaryBg,borderRadius:n.radii.lg,":focus":{outline:"none"},":focus-visible":{boxShadow:"0 0 0 1px ".concat(n.colors.primary)},color:t?n.colors.gray:n.colors.bodyText}}),""),B=(0,k.Z)("div",{target:"e1b2p2ww14"})((function(){return{marginRight:"auto",alignItems:"center",display:"flex"}}),""),U=(0,k.Z)("span",{target:"e1b2p2ww13"})((function(e){var t=e.theme;return{color:t.colors.darkenedBgMix100,marginRight:t.spacing.lg}}),""),R=(0,k.Z)("span",{target:"e1b2p2ww12"})((function(e){return{marginBottom:e.theme.spacing.twoXS}}),""),T=(0,k.Z)("div",{target:"e1b2p2ww11"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),X=(0,k.Z)("div",{target:"e1b2p2ww10"})((function(e){var t=e.theme;return{left:0,right:0,lineHeight:t.lineHeights.tight,paddingTop:t.spacing.md,paddingLeft:t.spacing.lg,paddingRight:t.spacing.lg}}),""),E=(0,k.Z)("ul",{target:"e1b2p2ww9"})((function(){return{listStyleType:"none",marginBottom:0}}),""),A=(0,k.Z)("li",{target:"e1b2p2ww8"})((function(e){var t=e.theme;return{margin:t.spacing.none,padding:t.spacing.none}}),""),D=(0,k.Z)("div",{target:"e1b2p2ww7"})((function(e){return{display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.theme.spacing.lg,overflow:"hidden"}}),""),P=(0,k.Z)("div",{target:"e1b2p2ww6"})((function(e){var t=e.theme;return{marginRight:t.spacing.sm,marginBottom:t.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),""),N=(0,k.Z)("div",{target:"e1b2p2ww5"})((function(e){return{display:"flex",alignItems:"center",marginBottom:e.theme.spacing.twoXS}}),""),W=(0,k.Z)("span",{target:"e1b2p2ww4"})((function(e){return{marginRight:e.theme.spacing.twoXS}}),""),V=(0,k.Z)("div",{target:"e1b2p2ww3"})((function(e){var t=e.theme;return{display:"flex",padding:t.spacing.twoXS,color:t.colors.darkenedBgMix100}}),""),O=(0,k.Z)("small",{target:"e1b2p2ww2"})((function(e){var t=e.theme;return{color:t.colors.danger,fontSize:t.fontSizes.sm,height:t.fontSizes.sm,lineHeight:t.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),""),H=(0,k.Z)("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),_=function(e){var t;return t={},(0,L.Z)(t,C,{display:"flex",flexDirection:"column",alignItems:"flex-start"}),(0,L.Z)(t,B,{marginBottom:e.spacing.lg}),(0,L.Z)(t,U,{display:"none"}),(0,L.Z)(t,X,{paddingRight:e.spacing.lg}),(0,L.Z)(t,N,{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm}),(0,L.Z)(t,P,{width:e.sizes.full}),(0,L.Z)(t,D,{flexDirection:"column"}),(0,L.Z)(t,O,{height:"auto",whiteSpace:"initial"}),(0,L.Z)(t,H,{display:"none"}),(0,L.Z)(t,A,{margin:e.spacing.none,padding:e.spacing.none}),t},G=(0,k.Z)("div",{target:"e1b2p2ww0"})((function(e){var t=e.theme;return t.inSidebar?_(t):(0,L.Z)({},"@media (max-width: ".concat(t.breakpoints.sm,")"),_(t))}),""),K=n(74529),$=n(46927),q=n(33746),J=n(40864),Y=function(e){var t=e.multiple,n=e.acceptedExtensions,r=e.maxSizeBytes;return(0,J.jsxs)(B,{children:[(0,J.jsx)(U,{children:(0,J.jsx)($.Z,{content:K.n,size:"threeXL"})}),(0,J.jsxs)(T,{children:[(0,J.jsxs)(R,{children:["Drag and drop file",t?"s":""," here"]}),(0,J.jsxs)(q.x,{children:["Limit ".concat(y(r,i.Byte,0)," per file"),n.length?" \u2022 ".concat(n.join(", ").replace(/\./g,"").toUpperCase()):null]})]})]})},Q=function(e){var t=e.onDrop,n=e.multiple,i=e.acceptedExtensions,r=e.maxSizeBytes,a=e.disabled,s=e.label;return(0,J.jsx)(I.ZP,{onDrop:t,multiple:n,accept:i.length?i:void 0,maxSize:r,disabled:a,useFsAccessApi:!1,children:function(e){var t=e.getRootProps,o=e.getInputProps;return(0,J.jsxs)(C,(0,j.Z)((0,j.Z)({},t()),{},{"data-testid":"stFileUploadDropzone",isDisabled:a,"aria-label":s,children:[(0,J.jsx)("input",(0,j.Z)({},o())),(0,J.jsx)(Y,{multiple:n,acceptedExtensions:i,maxSizeBytes:r}),(0,J.jsx)(M.ZP,{kind:z.nW.SECONDARY,disabled:a,size:z.V5.SMALL,children:"Browse files"})]}))}})},ee=n(53782),te=n(13005),ne=n.n(te),ie=n(30351),re=n(14609),ae=(0,k.Z)("div",{target:"e16k0npc1"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:t.spacing.twoXS,marginBottom:t.spacing.twoXS}}),""),se=(0,k.Z)("div",{target:"e16k0npc0"})((function(e){return{display:"flex",alignItems:"center",justifyContent:"center",color:e.theme.colors.fadedText40}}),""),oe=function(e){var t=e.className,n=e.currentPage,i=e.totalPages,r=e.onNext,a=e.onPrevious;return(0,J.jsxs)(ae,{className:t,children:[(0,J.jsx)(q.x,{children:"Showing page ".concat(n," of ").concat(i)}),(0,J.jsxs)(se,{children:[(0,J.jsx)(M.ZP,{onClick:a,kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:ie.s,size:"xl"})}),(0,J.jsx)(M.ZP,{onClick:r,kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:re._,size:"xl"})})]})]})},le=n(88235),de=["pageSize","items","resetOnAdd"],ce=function(e,t){return Math.ceil(e.length/t)},ue=function(e){return ne()((function(t){var n=t.pageSize,i=t.items,r=t.resetOnAdd,s=(0,ee.Z)(t,de),o=(0,f.useState)(0),l=(0,a.Z)(o,2),d=l[0],c=l[1],u=(0,f.useState)(ce(i,n)),p=(0,a.Z)(u,2),g=p[0],m=p[1],h=(0,le.D)(i);(0,f.useEffect)((function(){h&&h.length!==i.length&&m(ce(i,n)),h&&h.length<i.length?r&&c(0):d+1>=g&&c(g-1)}),[i,d,n,h,r,g]);var x=i.slice(d*n,d*n+n);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(e,(0,j.Z)({items:x},s)),i.length>n?(0,J.jsx)(oe,{className:"streamlit-paginator",pageSize:n,totalPages:g,currentPage:d+1,onNext:function(){c(Math.min(d+1,g-1))},onPrevious:function(){c(Math.max(0,d-1))}}):null]})}),e)},pe=n(62288),ge=n(87847),fe=n(31197),me=n(90186),he=function(e){var t=e.fileInfo;return"uploading"===t.status.type?(0,J.jsx)(me.Z,{value:t.status.progress,size:me.$.SMALL,overrides:{Bar:{style:{marginLeft:0,marginTop:"4px"}}}}):"error"===t.status.type?(0,J.jsxs)(O,{children:[(0,J.jsx)(W,{"data-testid":"stUploadedFileErrorMessage",children:t.status.errorMessage}),(0,J.jsx)(H,{children:(0,J.jsx)($.Z,{content:pe.j,size:"lg"})})]}):"uploaded"===t.status.type?(0,J.jsx)(q.x,{children:y(t.size,i.Byte)}):null},xe=function(e){var t=e.fileInfo,n=e.onDelete;return(0,J.jsxs)(N,{className:"uploadedFile",children:[(0,J.jsx)(V,{children:(0,J.jsx)($.Z,{content:ge.h,size:"twoXL"})}),(0,J.jsxs)(D,{className:"uploadedFileData",children:[(0,J.jsx)(P,{className:"uploadedFileName",title:t.name,children:t.name}),(0,J.jsx)(he,{fileInfo:t})]}),(0,J.jsx)("div",{"data-testid":"fileDeleteBtn",children:(0,J.jsx)(M.ZP,{onClick:function(){return n(t.id)},kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:fe.U,size:"lg"})})})]})},ve=ue((function(e){var t=e.items,n=e.onDelete;return(0,J.jsx)(E,{children:t.map((function(e){return(0,J.jsx)(A,{children:(0,J.jsx)(xe,{fileInfo:e,onDelete:n})},e.id)}))})})),we=function(e){return(0,J.jsx)(X,{children:(0,J.jsx)(ve,(0,j.Z)({},e))})},ye=n(77367),be=function(e){(0,l.Z)(n,e);var t=(0,d.Z)(n);function n(e){var o;return(0,s.Z)(this,n),(o=t.call(this,e)).formClearHelper=new h.K,o.localFileIdCounter=1,o.componentDidUpdate=function(){if("ready"===o.status){var e=o.createWidgetValue();if(void 0!==e){var t=o.props,n=t.element,i=t.widgetMgr,r=i.getFileUploaderStateValue(n);g().isEqual(e,r)||i.setFileUploaderStateValue(n,e,{fromUi:!0})}}},o.reset=function(){o.setState({files:[]})},o.dropHandler=function(e,t){var n=o.props.element.multipleFiles;if(!n&&0===e.length&&t.length>1){var i=t.findIndex((function(e){return 1===e.errors.length&&"too-many-files"===e.errors[0].code}));i>=0&&(e.push(t[i].file),t.splice(i,1))}if(o.props.uploadClient.fetchFileURLs(e).then((function(t){if(!n&&e.length>0){var i=o.state.files.find((function(e){return"error"!==e.status.type}));i&&o.deleteFile(i.id)}g().zip(t,e).forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],i=t[1];o.uploadFile(n,i)}))})).catch((function(t){o.addFiles(e.map((function(e){return new ye.R(e.name,e.size,o.nextLocalFileId(),{type:"error",errorMessage:t})})))})),t.length>0){var r=t.map((function(e){var t=e.file;return new ye.R(t.name,t.size,o.nextLocalFileId(),{type:"error",errorMessage:o.getErrorMessage(e.errors[0].code,e.file)})}));o.addFiles(r)}},o.uploadFile=function(e,t){var n=u().CancelToken.source(),i=new ye.R(t.name,t.size,o.nextLocalFileId(),{type:"uploading",cancelToken:n,progress:1});o.addFile(i),o.props.uploadClient.uploadFile(o.props.element,e.uploadUrl,t,(function(e){return o.onUploadProgress(e,i.id)}),n.token).then((function(){return o.onUploadComplete(i.id,e)})).catch((function(e){u().isCancel(e)||o.updateFile(i.id,i.setStatus({type:"error",errorMessage:e?e.toString():"Unknown error"}))}))},o.onUploadComplete=function(e,t){var n=o.getFile(e);null!=n&&"uploading"===n.status.type&&o.updateFile(n.id,n.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},o.getErrorMessage=function(e,t){switch(e){case"file-too-large":return"File must be ".concat(y(o.maxUploadSizeInBytes,i.Byte)," or smaller.");case"file-invalid-type":return"".concat(t.type," files are not allowed.");case"file-too-small":return"File size is too small.";case"too-many-files":return"Only one file is allowed.";default:return"Unexpected error. Please try again."}},o.deleteFile=function(e){var t=o.getFile(e);null!=t&&("uploading"===t.status.type&&t.status.cancelToken.cancel(),"uploaded"===t.status.type&&t.status.fileUrls.deleteUrl&&o.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),o.removeFile(e))},o.addFile=function(e){o.setState((function(t){return{files:[].concat((0,r.Z)(t.files),[e])}}))},o.addFiles=function(e){o.setState((function(t){return{files:[].concat((0,r.Z)(t.files),(0,r.Z)(e))}}))},o.removeFile=function(e){o.setState((function(t){return{files:t.files.filter((function(t){return t.id!==e}))}}))},o.getFile=function(e){return o.state.files.find((function(t){return t.id===e}))},o.updateFile=function(e,t){o.setState((function(n){return{files:n.files.map((function(n){return n.id===e?t:n}))}}))},o.onUploadProgress=function(e,t){var n=o.getFile(t);if(null!=n&&"uploading"===n.status.type){var i=Math.round(100*e.loaded/e.total);n.status.progress!==i&&o.updateFile(t,n.setStatus({type:"uploading",cancelToken:n.status.cancelToken,progress:i}))}},o.onFormCleared=function(){o.setState({files:[]},(function(){var e=o.createWidgetValue();null!=e&&o.props.widgetMgr.setFileUploaderStateValue(o.props.element,e,{fromUi:!0})}))},o.state=o.initialValue,o}return(0,o.Z)(n,[{key:"initialValue",get:function(){var e=this,t={files:[],newestServerFileId:0},n=this.props,i=n.widgetMgr,r=n.element,a=i.getFileUploaderStateValue(r);if(null==a)return t;var s=a.uploadedFileInfo;return null==s||0===s.length?t:{files:s.map((function(t){var n=t.name,i=t.size,r=t.fileId,a=t.fileUrls;return new ye.R(n,i,e.nextLocalFileId(),{type:"uploaded",fileId:r,fileUrls:a})}))}}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maxUploadSizeInBytes",get:function(){return function(e,t,n){if(e<0)throw Error("Size must be 0 or greater");var i=w.findIndex((function(e){return e===t})),r=w.findIndex((function(e){return e===n}));if(-1===i||-1===r)throw Error("Unexpected byte unit provided");if(i===r)return e;var a=Math.abs(i-r),s=Math.pow(v,a);return i>r?e/s:e*s}(this.props.element.maxUploadSizeMb,i.Megabyte,i.Byte)}},{key:"status",get:function(){return this.state.files.some((function(e){return"uploading"===e.status.type}))?"updating":"ready"}},{key:"createWidgetValue",value:function(){var e=this.state.files.filter((function(e){return"uploaded"===e.status.type})).map((function(e){var t=e.name,n=e.size,i=e.status,r=i.fileId,a=i.fileUrls;return new m.jM({fileId:r,fileUrls:a,name:t,size:n})}));return new m.xO({uploadedFileInfo:e})}},{key:"render",value:function(){var e,t=this.state.files,n=this.props,i=n.element,r=n.disabled,a=n.widgetMgr,s=i.type;this.formClearHelper.manageFormClearListener(a,i.formId,this.onFormCleared);var o=t.slice().reverse();return(0,J.jsxs)(G,{"data-testid":"stFileUploader",children:[(0,J.jsx)(b.O,{label:i.label,disabled:r,labelVisibility:(0,x.iF)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&(0,J.jsx)(S.dT,{children:(0,J.jsx)(Z.Z,{content:i.help,placement:F.u.TOP_RIGHT})})}),(0,J.jsx)(Q,{onDrop:this.dropHandler,multiple:i.multipleFiles,acceptedExtensions:s,maxSizeBytes:this.maxUploadSizeInBytes,label:i.label,disabled:r}),o.length>0&&(0,J.jsx)(we,{items:o,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}},{key:"nextLocalFileId",value:function(){return this.localFileIdCounter++}}]),n}(f.PureComponent)},87814:function(e,t,n){n.d(t,{K:function(){return s}});var i=n(22951),r=n(91976),a=n(50641),s=function(){function e(){(0,i.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,r.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,a.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5379],{79986:function(e,t,r){r.d(t,{Z:function(){return p}});r(66845);var n,o=r(50641),i=r(86659),a=r(50189),s=r(50669),l=r(1515),u=(0,r(7865).F4)(n||(n=(0,s.Z)(["\n 50% {\n color: rgba(0, 0, 0, 0);\n }\n"]))),c=(0,l.Z)("span",{target:"edlqvik0"})((function(e){var t=e.includeDot,r=e.shouldBlink,n=e.theme;return(0,a.Z)((0,a.Z)({},t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:"0 5px"}}:{}),r?{color:n.colors.red,animationName:"".concat(u),animationDuration:"0.5s",animationIterationCount:5}:{})}),""),f=r(40864),p=function(e){var t=e.dirty,r=e.value,n=e.maxLength,a=e.className,s=e.type,l=void 0===s?"single":s,u=e.inForm,p=[],d=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p.push((0,f.jsx)(c,{includeDot:p.length>0,shouldBlink:t,children:e},p.length))};if(t){var m=u?"submit form":"apply";if("multiline"===l){var y=(0,o.Ge)()?"\u2318":"Ctrl";d("Press ".concat(y,"+Enter to ").concat(m))}else"single"===l&&d("Press Enter to ".concat(m))}return n&&("chat"!==l||t)&&d("".concat(r.length,"/").concat(n),t&&r.length>=n),(0,f.jsx)(i.X7,{"data-testid":"InputInstructions",className:a,children:p})}},87814:function(e,t,r){r.d(t,{K:function(){return a}});var n=r(22951),o=r(91976),i=r(50641),a=function(){function e(){(0,n.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,o.Z)(e,[{key:"manageFormClearListener",value:function(e,t,r){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()},35379:function(e,t,r){r.r(t),r.d(t,{default:function(){return O}});var n=r(22951),o=r(91976),i=r(67591),a=r(94337),s=r(66845),l=r(87814),u=r(118),c=r(79986),f=r(98478),p=r(86659),d=r(8879),m=r(68411),y=r(50641),h=r(48266);var v=(0,r(1515).Z)("div",{target:"ezh4s2r0"})({name:"1om1ktf",styles:"div{border-width:1px;}"}),b=r(40864),g=function(e){(0,i.Z)(r,e);var t=(0,a.Z)(r);function r(){var e;(0,n.Z)(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).formClearHelper=new l.K,e.state={dirty:!1,value:e.initialValue},e.commitWidgetValue=function(t){e.props.widgetMgr.setStringValue(e.props.element,e.state.value,t),e.setState({dirty:!1})},e.onFormCleared=function(){e.setState((function(e,t){return{value:t.element.default}}),(function(){return e.commitWidgetValue({fromUi:!0})}))},e.onBlur=function(){e.state.dirty&&e.commitWidgetValue({fromUi:!0})},e.onChange=function(t){var r=t.target.value,n=e.props.element.maxChars;0!==n&&r.length>n||e.setState({dirty:!0,value:r})},e.isEnterKeyPressed=function(e){var t,r=e.keyCode;return("Enter"===e.key||13===r||10===r)&&!(!0===(null===(t=e.nativeEvent)||void 0===t?void 0:t.isComposing))},e.onKeyDown=function(t){var r=t.metaKey,n=t.ctrlKey,o=e.state.dirty;if(e.isEnterKeyPressed(t)&&(n||r)&&o){t.preventDefault(),e.commitWidgetValue({fromUi:!0});var i=e.props.element.formId;(0,y.$b)({formId:i})&&e.props.widgetMgr.submitForm(e.props.element.formId)}},e}return(0,o.Z)(r,[{key:"initialValue",get:function(){var e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var e=this,t=this.props.element.value;this.props.element.setValue=!1,this.setState({value:t},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"render",value:function(){var e,t=this.props,r=t.element,n=t.disabled,o=t.width,i=t.widgetMgr,a=this.state,s=a.value,l=a.dirty,g={width:o},O=r.height,w=r.placeholder;return this.formClearHelper.manageFormClearListener(i,r.formId,this.onFormCleared),(0,b.jsxs)("div",{className:"stTextArea","data-testid":"stTextAreaContainer",style:g,children:[(0,b.jsx)(f.O,{label:r.label,disabled:n,labelVisibility:(0,y.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:r.help&&(0,b.jsx)(p.dT,{children:(0,b.jsx)(d.Z,{content:r.help,placement:m.u.TOP_RIGHT})})}),(0,b.jsx)(v,{children:(0,b.jsx)(u.Z,{"data-testid":"stTextArea",value:s,placeholder:w,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,"aria-label":r.label,disabled:n,overrides:{Input:{style:{lineHeight:"1.4",height:O?"".concat(O,"px"):"",minHeight:"95px",resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:"1rem",paddingLeft:"1rem",paddingBottom:"1rem",paddingTop:"1rem"}}}})}),o>h.A.hideWidgetDetails&&(0,b.jsx)(c.Z,{dirty:l,value:s,maxLength:r.maxChars,type:"multiline",inForm:(0,y.$b)({formId:r.formId})})]})}}]),r}(s.PureComponent),O=g},118:function(e,t,r){r.d(t,{Z:function(){return F}});var n=r(66845),o=r(80318),i=r(9656),a=r(38254),s=r(80745),l=r(98479);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(0,s.zo)("div",(function(e){return c(c({},(0,l.d5)(c(c({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));p.displayName="StyledTextAreaRoot",p.displayName="StyledTextAreaRoot";var d=(0,s.zo)("div",(function(e){return(0,l.hB)(c({$positive:!1},e))}));d.displayName="StyledTextareaContainer",d.displayName="StyledTextareaContainer";var m=(0,s.zo)("textarea",(function(e){return c(c({},(0,l.Hx)(e)),{},{resize:e.$resize||"none"})}));function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}(this,r)}}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}m.displayName="StyledTextarea",m.displayName="StyledTextarea";var P=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(u,e);var t,r,s,l=w(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return C(j(e=l.call.apply(l,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),C(j(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),C(j(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=u,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=v((0,o.jb)(t.Root,p),2),s=r[0],l=r[1],u=(0,o.aO)({Input:{component:m},InputContainer:{component:d}},t);return n.createElement(s,h({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},l),n.createElement(i.Z,h({},this.props,{type:a.iB.textarea,overrides:u,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&g(t.prototype,r),s&&g(t,s),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Component);C(P,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:a.NO.default});var F=P}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[7175],{79986:function(e,t,n){n.d(t,{Z:function(){return m}});n(66845);var i,r=n(50641),o=n(86659),a=n(50189),l=n(50669),s=n(1515),u=(0,n(7865).F4)(i||(i=(0,l.Z)(["\n 50% {\n color: rgba(0, 0, 0, 0);\n }\n"]))),d=(0,s.Z)("span",{target:"edlqvik0"})((function(e){var t=e.includeDot,n=e.shouldBlink,i=e.theme;return(0,a.Z)((0,a.Z)({},t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:i.colors.gray,margin:"0 5px"}}:{}),n?{color:i.colors.red,animationName:"".concat(u),animationDuration:"0.5s",animationIterationCount:5}:{})}),""),c=n(40864),m=function(e){var t=e.dirty,n=e.value,i=e.maxLength,a=e.className,l=e.type,s=void 0===l?"single":l,u=e.inForm,m=[],p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.push((0,c.jsx)(d,{includeDot:m.length>0,shouldBlink:t,children:e},m.length))};if(t){var f=u?"submit form":"apply";if("multiline"===s){var h=(0,r.Ge)()?"\u2318":"Ctrl";p("Press ".concat(h,"+Enter to ").concat(f))}else"single"===s&&p("Press Enter to ".concat(f))}return i&&("chat"!==s||t)&&p("".concat(n.length,"/").concat(i),t&&n.length>=i),(0,c.jsx)(o.X7,{"data-testid":"InputInstructions",className:a,children:m})}},87814:function(e,t,n){n.d(t,{K:function(){return a}});var i=n(22951),r=n(91976),o=n(50641),a=function(){function e(){(0,i.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,r.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()},67175:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var i=n(22951),r=n(91976),o=n(67591),a=n(94337),l=n(66845),s=n(20607),u=n(89997),d=n(25621),c=n(52347),m=n(87814),p=n(23849),f=n(16295),h=n(48266),g=n(8879),v=n(68411),b=n(46927),y=n(82534),x=n(79986),k=n(98478),V=n(86659),C=n(50641),w=n(1515);var I=(0,w.Z)("div",{target:"e116k4er3"})((function(e){var t=e.theme;return{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",borderWidth:"1px",borderStyle:"solid",borderColor:t.colors.widgetBorderColor||t.colors.widgetBackgroundColor||t.colors.bgColor,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:t.radii.lg,overflow:"hidden","&.focused":{borderColor:t.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:t.spacing.none}}}}),""),F=(0,w.Z)("div",{target:"e116k4er2"})({name:"76z9jo",styles:"display:flex;flex-direction:row;align-self:stretch"}),D=(0,w.Z)("button",{target:"e116k4er1"})((function(e){var t=e.theme;return{margin:t.spacing.none,border:"none",height:t.sizes.full,display:"flex",alignItems:"center",width:"".concat(32,"px"),justifyContent:"center",color:t.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:t.colors.widgetBackgroundColor||t.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:t.colors.white,backgroundColor:t.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:last-of-type":{borderTopRightRadius:t.radii.lg,borderBottomRightRadius:t.radii.lg},"&:disabled":{cursor:"not-allowed",color:t.colors.fadedText40}}}),""),M=(0,w.Z)("div",{target:"e116k4er0"})((function(e){return{position:"absolute",marginRight:e.theme.spacing.twoXS,left:0,right:"".concat(64,"px")}}),""),R=n(40864),S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e)).formClearHelper=new m.K,r.inputRef=l.createRef(),r.formatValue=function(e){if((0,C.le)(e))return null;var t=function(e){return null==e||""===e?void 0:e}(r.props.element.format);if(null==t)return e.toString();try{return(0,c.sprintf)(t,e)}catch(n){return(0,p.KE)("Error in sprintf(".concat(t,", ").concat(e,"): ").concat(n)),String(e)}},r.isIntData=function(){return r.props.element.dataType===f.Y2.DataType.INT},r.getMin=function(){return r.props.element.hasMin?r.props.element.min:-1/0},r.getMax=function(){return r.props.element.hasMax?r.props.element.max:1/0},r.getStep=function(){var e=r.props.element.step;return e||(r.isIntData()?1:.01)},r.commitWidgetValue=function(e){var t=r.state.value,n=r.props,i=n.element,o=n.widgetMgr,a=r.props.element,l=r.getMin(),s=r.getMax();if((0,C.bb)(t)&&(l>t||t>s)){var u=r.inputRef.current;u&&u.reportValidity()}else{var d,c=null!==(d=null!==t&&void 0!==t?t:a.default)&&void 0!==d?d:null;r.isIntData()?o.setIntValue(i,c,e):o.setDoubleValue(i,c,e),r.setState({dirty:!1,value:c,formattedValue:r.formatValue(c)})}},r.onFormCleared=function(){r.setState((function(e,t){var n;return{value:null!==(n=t.element.default)&&void 0!==n?n:null}}),(function(){return r.commitWidgetValue({fromUi:!0})}))},r.onBlur=function(){r.state.dirty&&r.commitWidgetValue({fromUi:!0}),r.setState({isFocused:!1})},r.onFocus=function(){r.setState({isFocused:!0})},r.onChange=function(e){var t,n=e.target.value;""===n?r.setState({dirty:!0,value:null,formattedValue:null}):(t=r.isIntData()?parseInt(n,10):parseFloat(n),r.setState({dirty:!0,value:t,formattedValue:n}))},r.onKeyDown=function(e){switch(e.key){case"ArrowUp":e.preventDefault(),r.modifyValueUsingStep("increment")();break;case"ArrowDown":e.preventDefault(),r.modifyValueUsingStep("decrement")()}},r.onKeyPress=function(e){"Enter"===e.key&&(r.state.dirty&&r.commitWidgetValue({fromUi:!0}),(0,C.$b)(r.props.element)&&r.props.widgetMgr.submitForm(r.props.element.formId))},r.modifyValueUsingStep=function(e){return function(){var t=r.state.value,n=r.getStep();switch(e){case"increment":r.canIncrement&&r.setState({dirty:!0,value:(null!==t&&void 0!==t?t:r.getMin())+n},(function(){r.commitWidgetValue({fromUi:!0})}));break;case"decrement":r.canDecrement&&r.setState({dirty:!0,value:(null!==t&&void 0!==t?t:r.getMax())-n},(function(){r.commitWidgetValue({fromUi:!0})}))}}},r.state={dirty:!1,value:r.initialValue,formattedValue:r.formatValue(r.initialValue),isFocused:!1},r}return(0,r.Z)(n,[{key:"initialValue",get:function(){var e,t=this.isIntData()?this.props.widgetMgr.getIntValue(this.props.element):this.props.widgetMgr.getDoubleValue(this.props.element);return null!==(e=null!==t&&void 0!==t?t:this.props.element.default)&&void 0!==e?e:null}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var e=this,t=this.props.element.value;this.props.element.setValue=!1,this.setState({value:null!==t&&void 0!==t?t:null,formattedValue:this.formatValue(null!==t&&void 0!==t?t:null)},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"canDecrement",get:function(){return!(0,C.le)(this.state.value)&&this.state.value-this.getStep()>=this.getMin()}},{key:"canIncrement",get:function(){return!(0,C.le)(this.state.value)&&this.state.value+this.getStep()<=this.getMax()}},{key:"render",value:function(){var e,t=this.props,n=t.element,i=t.width,r=t.disabled,o=t.widgetMgr,a=t.theme,l=this.state,d=l.formattedValue,c=l.dirty,m=l.isFocused,p={width:i},f=!this.canDecrement||r,w=!this.canIncrement||r,S=(0,C.le)(n.default)&&!r;return this.formClearHelper.manageFormClearListener(o,n.formId,this.onFormCleared),(0,R.jsxs)("div",{className:"stNumberInput",style:p,"data-testid":"stNumberInput",children:[(0,R.jsx)(k.O,{label:n.label,disabled:r,labelVisibility:(0,C.iF)(null===(e=n.labelVisibility)||void 0===e?void 0:e.value),children:n.help&&(0,R.jsx)(V.dT,{children:(0,R.jsx)(g.Z,{content:n.help,placement:v.u.TOP_RIGHT})})}),(0,R.jsxs)(I,{className:m?"focused":"",children:[(0,R.jsx)(y.Z,{type:"number",inputRef:this.inputRef,value:d||void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:this.onChange,onKeyPress:this.onKeyPress,onKeyDown:this.onKeyDown,clearable:S,clearOnEscape:S,disabled:r,"aria-label":n.label,overrides:{ClearIcon:{props:{overrides:{Svg:{style:{color:a.colors.darkGray,transform:"scale(1.4)",width:a.spacing.twoXL,marginRight:"-1.25em",":hover":{fill:a.colors.bodyText}}}}}},Input:{props:{step:this.getStep(),min:this.getMin(),max:this.getMax()},style:{lineHeight:"1.4",paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}},InputContainer:{style:function(){return{borderTopRightRadius:0,borderBottomRightRadius:0}}},Root:{style:function(){return{borderTopRightRadius:0,borderBottomRightRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0}}}}}),i>h.A.hideWidgetDetails&&(0,R.jsxs)(F,{children:[(0,R.jsx)(D,{className:"step-down",onClick:this.modifyValueUsingStep("decrement"),disabled:f,tabIndex:-1,children:(0,R.jsx)(b.Z,{content:s.W,size:"xs",color:this.canDecrement?"inherit":"disabled"})}),(0,R.jsx)(D,{className:"step-up",onClick:this.modifyValueUsingStep("increment"),disabled:w,tabIndex:-1,children:(0,R.jsx)(b.Z,{content:u.v,size:"xs",color:this.canIncrement?"inherit":"disabled"})})]})]}),i>h.A.hideWidgetDetails&&(0,R.jsx)(M,{children:(0,R.jsx)(x.Z,{dirty:c,value:null!==d&&void 0!==d?d:"",className:"input-instructions",inForm:(0,C.$b)({formId:n.formId})})})]})}}]),n}(l.PureComponent);var W=(0,d.b)(S)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8691],{79986:function(t,e,n){n.d(e,{Z:function(){return p}});n(66845);var r,o=n(50641),i=n(86659),a=n(50189),l=n(50669),u=n(1515),s=(0,n(7865).F4)(r||(r=(0,l.Z)(["\n 50% {\n color: rgba(0, 0, 0, 0);\n }\n"]))),c=(0,u.Z)("span",{target:"edlqvik0"})((function(t){var e=t.includeDot,n=t.shouldBlink,r=t.theme;return(0,a.Z)((0,a.Z)({},e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:r.colors.gray,margin:"0 5px"}}:{}),n?{color:r.colors.red,animationName:"".concat(s),animationDuration:"0.5s",animationIterationCount:5}:{})}),""),f=n(40864),p=function(t){var e=t.dirty,n=t.value,r=t.maxLength,a=t.className,l=t.type,u=void 0===l?"single":l,s=t.inForm,p=[],d=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p.push((0,f.jsx)(c,{includeDot:p.length>0,shouldBlink:e,children:t},p.length))};if(e){var h=s?"submit form":"apply";if("multiline"===u){var m=(0,o.Ge)()?"\u2318":"Ctrl";d("Press ".concat(m,"+Enter to ").concat(h))}else"single"===u&&d("Press Enter to ".concat(h))}return r&&("chat"!==u||e)&&d("".concat(n.length,"/").concat(r),e&&n.length>=r),(0,f.jsx)(i.X7,{"data-testid":"InputInstructions",className:a,children:p})}},87814:function(t,e,n){n.d(e,{K:function(){return a}});var r=n(22951),o=n(91976),i=n(50641),a=function(){function t(){(0,r.Z)(this,t),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,o.Z)(t,[{key:"manageFormClearListener",value:function(t,e,n){null!=this.formClearListener&&this.lastWidgetMgr===t&&this.lastFormId===e||(this.disconnect(),(0,i.bM)(e)&&(this.formClearListener=t.addFormClearedListener(e,n),this.lastWidgetMgr=t,this.lastFormId=e))}},{key:"disconnect",value:function(){var t;null===(t=this.formClearListener)||void 0===t||t.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),t}()},58691:function(t,e,n){n.r(e),n.d(e,{default:function(){return j}});var r=n(22951),o=n(91976),i=n(67591),a=n(94337),l=n(66845),u=n(82534),s=n(16295),c=n(87814),f=n(79986),p=n(98478),d=n(86659),h=n(8879),m=n(68411),y=n(50641),b=n(48266),v=(0,n(1515).Z)("div",{target:"e11y4ecf0"})((function(t){return{position:"relative",width:t.width}}),""),g=n(40864),w=function(t){(0,i.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;(0,r.Z)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))).formClearHelper=new c.K,t.state={dirty:!1,value:t.initialValue},t.commitWidgetValue=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.props.widgetMgr.setStringValue(t.props.element,t.state.value,e),n&&t.setState({dirty:!1})},t.onFormCleared=function(){t.setState((function(t,e){return{value:e.element.default}}),(function(){return t.commitWidgetValue({fromUi:!0})}))},t.onBlur=function(){t.state.dirty&&t.commitWidgetValue({fromUi:!0})},t.onChange=function(e){var n=e.target.value,r=t.props.element.maxChars;0!==r&&n.length>r||((0,y.$b)(t.props.element)?t.setState({dirty:!0,value:n},(function(){t.commitWidgetValue({fromUi:!0},!1)})):t.setState({dirty:!0,value:n}))},t.onKeyPress=function(e){"Enter"===e.key&&(t.state.dirty&&t.commitWidgetValue({fromUi:!0}),(0,y.$b)(t.props.element)&&t.props.widgetMgr.submitForm(t.props.element.formId))},t}return(0,o.Z)(n,[{key:"initialValue",get:function(){var t=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==t?t:this.props.element.default}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var t=this,e=this.props.element.value;this.props.element.setValue=!1,this.setState({value:e},(function(){t.commitWidgetValue({fromUi:!1})}))}},{key:"getTypeString",value:function(){return this.props.element.type===s.oi.Type.PASSWORD?"password":"text"}},{key:"render",value:function(){var t,e=this.state,n=e.dirty,r=e.value,o=this.props,i=o.element,a=o.width,l=o.disabled,s=o.widgetMgr,c=i.placeholder;return this.formClearHelper.manageFormClearListener(s,i.formId,this.onFormCleared),(0,g.jsxs)(v,{className:"row-widget stTextInput","data-testid":"stTextInput",width:a,children:[(0,g.jsx)(p.O,{label:i.label,disabled:l,labelVisibility:(0,y.iF)(null===(t=i.labelVisibility)||void 0===t?void 0:t.value),children:i.help&&(0,g.jsx)(d.dT,{children:(0,g.jsx)(h.Z,{content:i.help,placement:m.u.TOP_RIGHT})})}),(0,g.jsx)(u.Z,{value:r,placeholder:c,onBlur:this.onBlur,onChange:this.onChange,onKeyPress:this.onKeyPress,"aria-label":i.label,disabled:l,type:this.getTypeString(),autoComplete:i.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:"1.4",paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}},Root:{props:{"data-testid":"textInputRootElement"},style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}}}}),a>b.A.hideWidgetDetails&&(0,g.jsx)(f.Z,{dirty:n,value:r,maxLength:i.maxChars,inForm:(0,y.$b)({formId:i.formId})})]})}}]),n}(l.PureComponent),j=w},82534:function(t,e,n){var r=n(66845),o=n(80318),i=n(32510),a=n(9656),l=n(98479),u=n(38254);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var c=["Root","StartEnhancer","EndEnhancer"],f=["startEnhancer","endEnhancer","overrides"];function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,n)}}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(w,t);var e,n,s,h=v(w);function w(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return j(g(t=h.call.apply(h,[this].concat(n))),"state",{isFocused:t.props.autoFocus||!1}),j(g(t),"onFocus",(function(e){t.setState({isFocused:!0}),t.props.onFocus(e)})),j(g(t),"onBlur",(function(e){t.setState({isFocused:!1}),t.props.onBlur(e)})),t}return e=w,(n=[{key:"render",value:function(){var t=this.props,e=t.startEnhancer,n=t.endEnhancer,s=t.overrides,h=s.Root,y=s.StartEnhancer,b=s.EndEnhancer,v=m(s,c),g=m(t,f),w=d((0,o.jb)(h,l.fC),2),j=w[0],O=w[1],S=d((0,o.jb)(y,l.Fp),2),x=S[0],P=S[1],E=d((0,o.jb)(b,l.Fp),2),k=E[0],I=E[1],W=(0,i.t)(this.props,this.state);return r.createElement(j,p({"data-baseweb":"input"},W,O,{$adjoined:F(e,n),$hasIconTrailing:this.props.clearable||"password"==this.props.type}),C(e)&&r.createElement(x,p({},W,P,{$position:u.Xf.start}),"function"===typeof e?e(W):e),r.createElement(a.Z,p({},g,{overrides:v,adjoined:F(e,n),onFocus:this.onFocus,onBlur:this.onBlur})),C(n)&&r.createElement(k,p({},W,I,{$position:u.Xf.end}),"function"===typeof n?n(W):n))}}])&&y(e.prototype,n),s&&y(e,s),Object.defineProperty(e,"prototype",{writable:!1}),w}(r.Component);function F(t,e){return C(t)&&C(e)?u.y4.both:C(t)?u.y4.left:C(e)?u.y4.right:u.y4.none}function C(t){return Boolean(t||0===t)}j(O,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:u.NO.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1}),e.Z=O}}]);