streamlit-nightly 1.42.1.dev20250216__py2.py3-none-any.whl → 1.42.2.dev20250218__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 (111) hide show
  1. streamlit/elements/bokeh_chart.py +5 -4
  2. streamlit/elements/graphviz_chart.py +2 -3
  3. streamlit/elements/lib/column_types.py +97 -44
  4. streamlit/elements/lib/subtitle_utils.py +2 -2
  5. streamlit/elements/lib/utils.py +1 -2
  6. streamlit/elements/vega_charts.py +2 -5
  7. streamlit/runtime/caching/cache_utils.py +2 -3
  8. streamlit/runtime/caching/hashing.py +1 -2
  9. streamlit/runtime/forward_msg_cache.py +1 -5
  10. streamlit/runtime/fragment.py +3 -5
  11. streamlit/runtime/memory_media_file_storage.py +1 -2
  12. streamlit/static/index.html +1 -1
  13. streamlit/static/static/js/{FileDownload.esm.K0RIIaSL.js → FileDownload.esm.DU-1rCSB.js} +1 -1
  14. streamlit/static/static/js/{FileDropzone.DRcTUuNN.js → FileDropzone.BI3MGDdT.js} +1 -1
  15. streamlit/static/static/js/{FormClearHelper.Dha_cfuU.js → FormClearHelper.DzU-mNjk.js} +1 -1
  16. streamlit/static/static/js/{Hooks.BrulV197.js → Hooks.qUbVZL-A.js} +1 -1
  17. streamlit/static/static/js/{InputInstructions.C_m6JNSV.js → InputInstructions.CpNPMMpX.js} +1 -1
  18. streamlit/static/static/js/{ProgressBar.CXgDz0lS.js → ProgressBar.4yIafGOA.js} +2 -2
  19. streamlit/static/static/js/{RenderInPortalIfExists.DbjYtj_E.js → RenderInPortalIfExists.31NYBozH.js} +1 -1
  20. streamlit/static/static/js/{Toolbar.B5RomQbU.js → Toolbar.lnT7wtEH.js} +1 -1
  21. streamlit/static/static/js/{base-input.B_U9Mij-.js → base-input.DYDwDBVN.js} +4 -4
  22. streamlit/static/static/js/{createSuper.DiPn7x2M.js → createSuper.CP_bqXkl.js} +1 -1
  23. streamlit/static/static/js/{data-grid-overlay-editor.CxpMznuV.js → data-grid-overlay-editor.Bw6S-08j.js} +1 -1
  24. streamlit/static/static/js/{downloader.CMxfwi0g.js → downloader.DZpOwdni.js} +1 -1
  25. streamlit/static/static/js/{es6.CWDfc2yc.js → es6.D670kkuw.js} +2 -2
  26. streamlit/static/static/js/{iframeResizer.contentWindow.CyCMpBzy.js → iframeResizer.contentWindow.CBWvp4oS.js} +1 -1
  27. streamlit/static/static/js/{index.CLXysuIS.js → index.-wGNsvT9.js} +1 -1
  28. streamlit/static/static/js/{index.CmyE8x29.js → index.0jzSLI-x.js} +2 -2
  29. streamlit/static/static/js/index.8M0nMTyK.js +1 -0
  30. streamlit/static/static/js/index.B-Bz2NGO.js +1 -0
  31. streamlit/static/static/js/index.B6KnC7nW.js +1 -0
  32. streamlit/static/static/js/index.B9mk7o4G.js +3 -0
  33. streamlit/static/static/js/index.BCorV1AX.js +1 -0
  34. streamlit/static/static/js/index.BMlBBPxY.js +9 -0
  35. streamlit/static/static/js/index.BhTUDBBK.js +1 -0
  36. streamlit/static/static/js/index.Bif_gpeX.js +1 -0
  37. streamlit/static/static/js/index.BkURA4Nq.js +3 -0
  38. streamlit/static/static/js/index.Byj6qntv.js +2 -0
  39. streamlit/static/static/js/index.C0O8ISw8.js +1 -0
  40. streamlit/static/static/js/index.C5VAa8DZ.js +1 -0
  41. streamlit/static/static/js/{index.FVzOj77v.js → index.CA6bEd5D.js} +10 -10
  42. streamlit/static/static/js/{index.XB-MiuZp.js → index.CD53GuKN.js} +1 -1
  43. streamlit/static/static/js/index.CKT6gwZG.js +2 -0
  44. streamlit/static/static/js/{index.DeuQX1T6.js → index.CLsHMaqe.js} +17 -17
  45. streamlit/static/static/js/index.Ch1c3KR1.js +1 -0
  46. streamlit/static/static/js/{index.CnzapoES.js → index.ChIZFRw0.js} +1 -1
  47. streamlit/static/static/js/{index.68LnD3a5.js → index.CrYKK91g.js} +63 -63
  48. streamlit/static/static/js/index.Cvgj5_qB.js +1 -0
  49. streamlit/static/static/js/{index.Ctuil2Zq.js → index.D3VdaBwP.js} +1 -1
  50. streamlit/static/static/js/{index.BW9gD4O1.js → index.D6UL3iMZ.js} +82 -82
  51. streamlit/static/static/js/index.D8aCPmhr.js +1 -0
  52. streamlit/static/static/js/{index.B7-ka68B.js → index.DHBu5iL6.js} +2 -2
  53. streamlit/static/static/js/index.DJF89pFO.js +1 -0
  54. streamlit/static/static/js/{index.CxT-55oh.js → index.DNEGP5ih.js} +1 -1
  55. streamlit/static/static/js/index.DRJutLeV.js +1 -0
  56. streamlit/static/static/js/{index.CZjrVNQ3.js → index.DS38XxzV.js} +1 -1
  57. streamlit/static/static/js/index.DdeHhk74.js +1 -0
  58. streamlit/static/static/js/index.De5HitMn.js +1 -0
  59. streamlit/static/static/js/index.DsvnAu-2.js +1 -0
  60. streamlit/static/static/js/index.Du4f6P1i.js +1 -0
  61. streamlit/static/static/js/index.HCbHLWBq.js +1 -0
  62. streamlit/static/static/js/index.XAUdgEdp.js +1 -0
  63. streamlit/static/static/js/{index.vyj1usur.js → index.edlGQJ3v.js} +28 -28
  64. streamlit/static/static/js/{input.D-b9-dhW.js → input.e-37_Dj1.js} +1 -1
  65. streamlit/static/static/js/{memory.C27_0JRm.js → memory.B5p-2jga.js} +1 -1
  66. streamlit/static/static/js/{mergeWith.D8F46YVj.js → mergeWith.D8nk5iJa.js} +1 -1
  67. streamlit/static/static/js/{number-overlay-editor.CaHpEyvW.js → number-overlay-editor.DLD5-9zx.js} +1 -1
  68. streamlit/static/static/js/{possibleConstructorReturn.CnSJ4CFa.js → possibleConstructorReturn.eeV6HB6T.js} +1 -1
  69. streamlit/static/static/js/{sandbox.Cx5mAMmC.js → sandbox.ChKquq8J.js} +1 -1
  70. streamlit/static/static/js/{textarea.YeGMY3Ts.js → textarea.ZI_0MUsX.js} +1 -1
  71. streamlit/static/static/js/{timepicker.BSApuR_7.js → timepicker.C8N66VUc.js} +1 -1
  72. streamlit/static/static/js/{toConsumableArray.DFJurSxu.js → toConsumableArray.DKg00cRh.js} +1 -1
  73. streamlit/static/static/js/{uniqueId.B4ugkryR.js → uniqueId.fc9w8X88.js} +1 -1
  74. streamlit/static/static/js/{useBasicWidgetState.e9cw5rKa.js → useBasicWidgetState.CySX_BlM.js} +1 -1
  75. streamlit/static/static/js/{useOnInputChange.CHDPgswc.js → useOnInputChange.BF6Trlh5.js} +1 -1
  76. streamlit/static/static/js/withFullScreenWrapper.x2WsM7iA.js +1 -0
  77. streamlit/testing/v1/app_test.py +2 -4
  78. streamlit/util.py +6 -9
  79. streamlit/watcher/util.py +2 -7
  80. streamlit/web/server/app_static_file_handler.py +17 -1
  81. {streamlit_nightly-1.42.1.dev20250216.dist-info → streamlit_nightly-1.42.2.dev20250218.dist-info}/METADATA +1 -1
  82. {streamlit_nightly-1.42.1.dev20250216.dist-info → streamlit_nightly-1.42.2.dev20250218.dist-info}/RECORD +86 -86
  83. streamlit/static/static/js/index.11KmKkMp.js +0 -1
  84. streamlit/static/static/js/index.B5QCo4O8.js +0 -1
  85. streamlit/static/static/js/index.B9xlEQvM.js +0 -3
  86. streamlit/static/static/js/index.Bb_vborY.js +0 -1
  87. streamlit/static/static/js/index.BoLiyuG0.js +0 -1
  88. streamlit/static/static/js/index.CBswNuTs.js +0 -1
  89. streamlit/static/static/js/index.CGHmjGTj.js +0 -1
  90. streamlit/static/static/js/index.CMM3vxd_.js +0 -1
  91. streamlit/static/static/js/index.CTrIDSw5.js +0 -1
  92. streamlit/static/static/js/index.CrDkQv4h.js +0 -1
  93. streamlit/static/static/js/index.CxX3WJZV.js +0 -9
  94. streamlit/static/static/js/index.D4y-ZpWF.js +0 -3
  95. streamlit/static/static/js/index.DUqWz4q7.js +0 -1
  96. streamlit/static/static/js/index.DaR46enR.js +0 -1
  97. streamlit/static/static/js/index.DcCioSks.js +0 -2
  98. streamlit/static/static/js/index.Di8ddb5O.js +0 -1
  99. streamlit/static/static/js/index.Djk5RccG.js +0 -1
  100. streamlit/static/static/js/index.DsPUu3xS.js +0 -2
  101. streamlit/static/static/js/index.FjL8doTL.js +0 -1
  102. streamlit/static/static/js/index.OiKVkRzb.js +0 -1
  103. streamlit/static/static/js/index.YBzhCbWe.js +0 -1
  104. streamlit/static/static/js/index.ZlPieA63.js +0 -1
  105. streamlit/static/static/js/index.eP8uJaty.js +0 -1
  106. streamlit/static/static/js/index.fz6QTJde.js +0 -1
  107. streamlit/static/static/js/withFullScreenWrapper.BKBYrOn-.js +0 -1
  108. {streamlit_nightly-1.42.1.dev20250216.data → streamlit_nightly-1.42.2.dev20250218.data}/scripts/streamlit.cmd +0 -0
  109. {streamlit_nightly-1.42.1.dev20250216.dist-info → streamlit_nightly-1.42.2.dev20250218.dist-info}/WHEEL +0 -0
  110. {streamlit_nightly-1.42.1.dev20250216.dist-info → streamlit_nightly-1.42.2.dev20250218.dist-info}/entry_points.txt +0 -0
  111. {streamlit_nightly-1.42.1.dev20250216.dist-info → streamlit_nightly-1.42.2.dev20250218.dist-info}/top_level.txt +0 -0
streamlit/util.py CHANGED
@@ -19,15 +19,8 @@ from __future__ import annotations
19
19
  import dataclasses
20
20
  import functools
21
21
  import hashlib
22
- import sys
23
22
  from typing import Any, Callable
24
23
 
25
- # Due to security issue in md5 and sha1, usedforsecurity
26
- # argument is added to hashlib for python versions higher than 3.8
27
- HASHLIB_KWARGS: dict[str, Any] = (
28
- {"usedforsecurity": False} if sys.version_info >= (3, 9) else {}
29
- )
30
-
31
24
 
32
25
  def memoize(func: Callable[..., Any]) -> Callable[..., Any]:
33
26
  """Decorator to memoize the result of a no-args func."""
@@ -66,8 +59,12 @@ def repr_(self: Any) -> str:
66
59
 
67
60
 
68
61
  def calc_md5(s: bytes | str) -> str:
69
- """Return the md5 hash of the given string."""
70
- h = hashlib.new("md5", **HASHLIB_KWARGS)
62
+ """Return the md5 hash of the given string.
63
+
64
+ This should not be used for security-related purposes.
65
+ """
66
+ # Due to security issue in md5 and sha1, usedforsecurity
67
+ h = hashlib.new("md5", usedforsecurity=False)
71
68
 
72
69
  b = s.encode("utf-8") if isinstance(s, str) else s
73
70
 
streamlit/watcher/util.py CHANGED
@@ -20,14 +20,13 @@ functions that use streamlit.config can go here to avoid a dependency cycle.
20
20
 
21
21
  from __future__ import annotations
22
22
 
23
- import hashlib
24
23
  import os
25
24
  import time
26
25
  from pathlib import Path
27
26
  from typing import Callable, TypeVar
28
27
 
29
28
  from streamlit.errors import Error
30
- from streamlit.util import HASHLIB_KWARGS
29
+ from streamlit.util import calc_md5
31
30
 
32
31
  # How many times to try to grab the MD5 hash.
33
32
  _MAX_RETRIES = 5
@@ -67,11 +66,7 @@ def calc_md5_with_blocking_retries(
67
66
  path,
68
67
  )
69
68
 
70
- md5 = hashlib.md5(**HASHLIB_KWARGS)
71
- md5.update(content)
72
-
73
- # Use hexdigest() instead of digest(), so it's easier to debug.
74
- return md5.hexdigest()
69
+ return calc_md5(content)
75
70
 
76
71
 
77
72
  def path_modification_time(path: str, allow_nonexistent: bool = False) -> float:
@@ -30,7 +30,23 @@ _LOGGER: Final = get_logger(__name__)
30
30
  MAX_APP_STATIC_FILE_SIZE = 200 * 1024 * 1024 # 200 MB
31
31
  # The list of file extensions that we serve with the corresponding Content-Type header.
32
32
  # All files with other extensions will be served with Content-Type: text/plain
33
- SAFE_APP_STATIC_FILE_EXTENSIONS = (".jpg", ".jpeg", ".png", ".pdf", ".gif", ".webp")
33
+ SAFE_APP_STATIC_FILE_EXTENSIONS = (
34
+ # Common image types:
35
+ ".jpg",
36
+ ".jpeg",
37
+ ".png",
38
+ ".gif",
39
+ ".webp",
40
+ # Common font types:
41
+ ".otf",
42
+ ".ttf",
43
+ ".woff",
44
+ ".woff2",
45
+ # Other types:
46
+ ".pdf",
47
+ ".xml",
48
+ ".json",
49
+ )
34
50
 
35
51
 
36
52
  class AppStaticFileHandler(tornado.web.StaticFileHandler):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: streamlit-nightly
3
- Version: 1.42.1.dev20250216
3
+ Version: 1.42.2.dev20250218
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -30,7 +30,7 @@ streamlit/time_util.py,sha256=YHmKjbW3ZwTX8K0aUNafml1aePh6HRaMinhTpxKCxyw,2503
30
30
  streamlit/type_util.py,sha256=JsrHiUGctTn9PAgfJeiHNq0H5gwbthaId49C8jVL4Sw,12794
31
31
  streamlit/url_util.py,sha256=akEWwAXTr3D8vyI1CyRcYQPUrMRJvFBWqB8bfIoteY4,3465
32
32
  streamlit/user_info.py,sha256=R_LsoM9ug4XkYQ5N09TzTcTMgq6CXnDeb2aKSyDkZlU,19824
33
- streamlit/util.py,sha256=Cmr33kgjnvYoFkMC0hiCG1VlOqtPxJhPNFEzYLf_RC4,2460
33
+ streamlit/util.py,sha256=AW1Dl076JlnO6oSbDhYnoMJ46QWatqns3jffPHY0znU,2349
34
34
  streamlit/version.py,sha256=Id-r1xqJGJ5ptTPF-_XZpuCIXLqIq5hb8yKOX4IA1Dg,763
35
35
  streamlit/commands/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
36
36
  streamlit/commands/echo.py,sha256=grikqN1C9wBvrs2MJxiaHvDUGYNqZgs0H-9AZ_iWYcc,4142
@@ -60,7 +60,7 @@ streamlit/elements/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8j
60
60
  streamlit/elements/alert.py,sha256=-CRGvaC6VFfgX9nOsctxpO7K4n9vZpGUZmpi9j7gl-8,8893
61
61
  streamlit/elements/arrow.py,sha256=mqSEImHdzYGNeGrnneUbxnVNY12Rj3gPlvASe7Ld9XY,36707
62
62
  streamlit/elements/balloons.py,sha256=788879T0Zb_sy5XNGtLPY3vgfsmFmEdol5E_yD64b-o,1482
63
- streamlit/elements/bokeh_chart.py,sha256=CUqwgtdaZfN4y3loq_U_1T_a8pvlnKrTremavCtrUUY,4288
63
+ streamlit/elements/bokeh_chart.py,sha256=GbPEeIO5CiNYFCGARabQVj3yM4Db9-fKFSHnUlOtOtQ,4410
64
64
  streamlit/elements/code.py,sha256=G6aVS9gNWJAk_smwcRx2uU_sOnlubTZf5PJ0wb50PDc,4177
65
65
  streamlit/elements/deck_gl_json_chart.py,sha256=WfpEk-7a60VYKYF5TgV7znBSHzsk4x7VGeDQLZy_1Vw,20278
66
66
  streamlit/elements/dialog_decorator.py,sha256=3Wz8rftjtJLAImpQxPbzcDNYzqMLPGDXBa8x9QFizoE,10052
@@ -68,7 +68,7 @@ streamlit/elements/doc_string.py,sha256=wQHWPo7cZmTq68SpZr-M_yfI9KCU9FH7bVNHGbPM
68
68
  streamlit/elements/empty.py,sha256=pi7Tzv_96pTAjkMR0RuNpdPSwnVE9Bt5-cR4DeG7XzU,4615
69
69
  streamlit/elements/exception.py,sha256=X3OxbUkE1x4Kyzz8SlL1FBjNV9cha6S5FCf8T92baYs,10971
70
70
  streamlit/elements/form.py,sha256=P_yS6dz5-DSy5wTY_S244tenW30C2p07-IIIKspzno4,14005
71
- streamlit/elements/graphviz_chart.py,sha256=dN7hOeMtxekrw_g6L3sYudXcY9M1MvvCk3z1ZZEvH6g,4937
71
+ streamlit/elements/graphviz_chart.py,sha256=BeB5SyFPvis6fxtRxOLxdL1A95hpgyyK_ntO4A4PB9A,4883
72
72
  streamlit/elements/heading.py,sha256=ZONBL_xMrIeW-2kjX_4XSz3RbzgDhVv0Q_N3usbRIeQ,10655
73
73
  streamlit/elements/html.py,sha256=fBU1LvdlwLwuMzZqq8JjOa5f8fRbEEXFKK6W0qBFVII,3659
74
74
  streamlit/elements/iframe.py,sha256=tQK7-2Ea4w0PfZoIotsugWjQftWNu0Hr3G706MdPBxM,5782
@@ -86,13 +86,13 @@ streamlit/elements/snow.py,sha256=iP2HHz9Oljf-3s76flzK7C_bU1QdNkOCpYym-LSdQjw,14
86
86
  streamlit/elements/spinner.py,sha256=YmcSTNWvUzw8ffVGM5Bb_s4n-FCVUNClDl4kAneHQD0,3936
87
87
  streamlit/elements/text.py,sha256=mEBpLD7YZpJjkMS-keAyYIYWMBVlI4dpSiaIzuvLEq8,2418
88
88
  streamlit/elements/toast.py,sha256=YPrdsKrPrXZ5u_q0SlgkZKneApX-DV7vBylWw04GDwU,3711
89
- streamlit/elements/vega_charts.py,sha256=pqrxdjWZti7zcyxAW1IGzyycxTXzNa9fL7EtvbJFMQQ,79241
89
+ streamlit/elements/vega_charts.py,sha256=z0Bh7LCn94h-7PZqPN2Dq7DDVYEBl-N752mYp-wsybg,79133
90
90
  streamlit/elements/write.py,sha256=qWXveB_QtKASakSgR_50oPaKlFq5YvXzTSNsvYLrsek,21922
91
91
  streamlit/elements/lib/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
92
92
  streamlit/elements/lib/built_in_chart_utils.py,sha256=lNGnN44gENXVo-70QQbN2aycyZpJGWf9oo07b9tPj3U,38729
93
93
  streamlit/elements/lib/color_util.py,sha256=k8yJc2VWiwpTZjkW45HKRGy9e4RK7MPcvzSmrtv_yPY,9008
94
94
  streamlit/elements/lib/column_config_utils.py,sha256=MSChb165dXbt3ulLcex9nVn02dq68LmS_cWFX7Nx4D8,16197
95
- streamlit/elements/lib/column_types.py,sha256=_N8fphJu-AjihSfAEzbbm8VL3-6J8zCvu7P-B2Y_y5M,68366
95
+ streamlit/elements/lib/column_types.py,sha256=nonaMxwScf1Y23hdkBrSMT16gQ35VG3RMHyqECURPHo,71612
96
96
  streamlit/elements/lib/dialog.py,sha256=l44XsD9zeMDv5iYPNJRzuIVl0j8FKm6GO1AGAvHEvE4,5355
97
97
  streamlit/elements/lib/dicttools.py,sha256=zNfHmE1Ky-LAcsXI8A__46g14Bf2w4O94XVTqZiMdyQ,3892
98
98
  streamlit/elements/lib/event_utils.py,sha256=4w60gu0XAhUazCji0cuXlBYavZ8J6EDMmCBwAU3kZJo,1490
@@ -105,8 +105,8 @@ streamlit/elements/lib/options_selector_utils.py,sha256=2G_9OmbdI6NQS0xSXxN86juL
105
105
  streamlit/elements/lib/pandas_styler_utils.py,sha256=WUhLfE_mLxtcmyM3grh9pVNfEPKwsED6OdO04W-0rUg,8148
106
106
  streamlit/elements/lib/policies.py,sha256=wI8KGovlEH1hR5UrPz4z6FeE_1hf1pSSMPpPGzoUngU,6798
107
107
  streamlit/elements/lib/streamlit_plotly_theme.py,sha256=bPqrFdm1V2d7ooEsmwZ-ywL6AKalHvY8w9w4uvReazY,8307
108
- streamlit/elements/lib/subtitle_utils.py,sha256=FYb2t1clAi5ec7Hqr-PsZqUwSxP76jA_y2AjuvMzs6w,6245
109
- streamlit/elements/lib/utils.py,sha256=VSaKFvxutEmYDsUdnhzczdEGBL9inAwYjbQuM5vbk4I,8279
108
+ streamlit/elements/lib/subtitle_utils.py,sha256=QlawhpMvlxCx4uAkcQNn3I9qXMiY1zvmukvBSIL3aMk,6251
109
+ streamlit/elements/lib/utils.py,sha256=aLfeCcGxPsQfSEnCNtVXtA8yjzS5VFYr9Qgm5hkk5ro,8242
110
110
  streamlit/elements/widgets/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
111
111
  streamlit/elements/widgets/audio_input.py,sha256=MY0bzd3eWubXma8HmEJzK7jatA5UkLweRQuhTgDKp60,10540
112
112
  streamlit/elements/widgets/button.py,sha256=BdCteN5kZ7o_YILYtpVmH0R6dLfxLot7DBLOSqYVJyo,38705
@@ -304,12 +304,12 @@ streamlit/runtime/app_session.py,sha256=F_ucOSot3PEByGTEvLRmV-kusWe3cp-Gzpa5LhFk
304
304
  streamlit/runtime/connection_factory.py,sha256=Ud22wOz3fcy0dN6M3SSStZo-cDGLH-NDL77AmS-r8CE,15488
305
305
  streamlit/runtime/context.py,sha256=_7iehrMEYBhRKTqpLmtcMXZ65Y06l2V5VJQb739PUEQ,6622
306
306
  streamlit/runtime/credentials.py,sha256=glZ5nwkQs_Y9QGGa_3yhrGUi64-t8n5OhkNmw6LXF_Y,11338
307
- streamlit/runtime/forward_msg_cache.py,sha256=Ial1bYG5id77R3_NHa0BA9nXmE6zDG9ej3Hzms4Ww4E,9820
307
+ streamlit/runtime/forward_msg_cache.py,sha256=0p3hrm148NI_1-wE9cCHbCQH7PxMUPwpYw_PC7EHJHY,9689
308
308
  streamlit/runtime/forward_msg_queue.py,sha256=eM_T63Lk-ymr99UYDvF0DBEiwU0m8BEpLEGMaYwih3I,9782
309
- streamlit/runtime/fragment.py,sha256=GHLC8cfE6hRTc7c0jTkOyy_pg2z3cApoBvcib1Lebeg,18892
309
+ streamlit/runtime/fragment.py,sha256=-QH9dI-TZ6V91j3hGhnEQopU7dcFftmOANCiyIMovpw,18851
310
310
  streamlit/runtime/media_file_manager.py,sha256=EsuoLpXuFVSfs81xgsPxAcVWOnPB1386Ilx8dI0pZQU,8550
311
311
  streamlit/runtime/media_file_storage.py,sha256=ME_4J_2UHw-CZULB7z18yg_qCzEdN7QDqdRePEB5CBc,4375
312
- streamlit/runtime/memory_media_file_storage.py,sha256=xf-y7qXf4CIf_EZKdqFDvSI3UXeHH_uLfh009OwG62w,6277
312
+ streamlit/runtime/memory_media_file_storage.py,sha256=LNHHAGXC7CogcVeWIfcKf6Ikc1ibavz_xl-gGEsaDN0,6240
313
313
  streamlit/runtime/memory_session_storage.py,sha256=snqzNRfvbStkKPsyqBRkvF0XCkww7Huvmb4nLQm1uWQ,3001
314
314
  streamlit/runtime/memory_uploaded_file_manager.py,sha256=uSXahvNjmnCVWMUpF4UckApUoP9qOHIB7Vji_eZ-YQQ,4487
315
315
  streamlit/runtime/metrics_util.py,sha256=QKgfa6KWO9jWGTri7QTipxvBpZnAlilryJp7l9GXhhI,15016
@@ -327,9 +327,9 @@ streamlit/runtime/caching/cache_data_api.py,sha256=HiFqjkkXtkGnQPtwkcL7xtIDTlCDZ
327
327
  streamlit/runtime/caching/cache_errors.py,sha256=QCT_lkkldCKf2_OLnMsZt4ZVjE7rAafJVExd8Awvgsc,4792
328
328
  streamlit/runtime/caching/cache_resource_api.py,sha256=o3_RW2XBxbeV47t_yB201kwf0HmDes0DpMxHAyHWRls,19409
329
329
  streamlit/runtime/caching/cache_type.py,sha256=PMoB0333NeGqopd48B3mEfVeEQsyKdk5NV-hk9sAxtQ,1131
330
- streamlit/runtime/caching/cache_utils.py,sha256=tCtP4RU7_hdj0WOE2dxkQcY-zhdZ9MduP6Gq1pQxP1c,20143
330
+ streamlit/runtime/caching/cache_utils.py,sha256=mQL7tXDV6nCLjetzhli5jadssddzExEMKwtRH3je4WY,20111
331
331
  streamlit/runtime/caching/cached_message_replay.py,sha256=5jnyIQNObCePO-QBpfJQHhFeEXHejw_FEcSYE4bN3ig,11158
332
- streamlit/runtime/caching/hashing.py,sha256=crULWBJi3QmyqAnb0A3iSArsnx9aaHMqmCdWltYvhfQ,19458
332
+ streamlit/runtime/caching/hashing.py,sha256=Gb5Zs6NpPq60cQEbWluXvFj3uxDbWj5b5lPEd-V9yDs,19421
333
333
  streamlit/runtime/caching/legacy_cache_api.py,sha256=htvoe8dlLwHhmLTqZeOeY8QyqFPZom_tNBcxvpX-e-M,6041
334
334
  streamlit/runtime/caching/storage/__init__.py,sha256=Lz1UND817VuT6vdBhQbNu2SQIfv2sjcpL65Xnnd9G10,965
335
335
  streamlit/runtime/caching/storage/cache_storage_protocol.py,sha256=s2FituzV1JJOeTDmp4lNU99LhpcUR2wrNmmkiH-bm_M,8921
@@ -355,82 +355,82 @@ streamlit/runtime/state/session_state.py,sha256=laltVPDkyAQ_F3SYLGj0LcusRwZBn1Y5
355
355
  streamlit/runtime/state/session_state_proxy.py,sha256=Z05Q6zmCmJUJSVovW3UzabtU-lSrdXEOXsjne438Lto,5551
356
356
  streamlit/runtime/state/widgets.py,sha256=ofGjJppIwiqFN9DpBtXQakQifNpxZOVYNPCSyvCWo8Y,5319
357
357
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
358
- streamlit/static/index.html,sha256=FE3_4-dCK_WJCz6zqH4RWcy5h6_FXRsBnusysVTINVI,1837
358
+ streamlit/static/index.html,sha256=pEzf8mNb1Mj1dBJOi3P8121slB-zEtL_I52ZlYriALo,1837
359
359
  streamlit/static/static/css/index.Bmkmz40k.css,sha256=ABplygqcSw44Q8TlJ00LcbaqtTbc_NvMMYwMblGax1M,18462
360
360
  streamlit/static/static/css/index.DpJG_94W.css,sha256=kvkgKUiZQNh7blKcqvuxZtxXo3JKM0qd8yfdoMOn3uI,31692
361
361
  streamlit/static/static/css/index.DzuxGC_t.css,sha256=1D1iN9VtJEU7H_zye_YV2guXskYkxI7PXbq1YXw5JOw,35092
362
- streamlit/static/static/js/FileDownload.esm.K0RIIaSL.js,sha256=4MuqgH94PEUFMbQUXvovhUb-TeieeFpi1VnPRgqLeAI,918
363
- streamlit/static/static/js/FileDropzone.DRcTUuNN.js,sha256=RS6oIB_p_s9U_szc6__jy3flKukQaL5tIgHXvDZMSkY,65600
364
- streamlit/static/static/js/FormClearHelper.Dha_cfuU.js,sha256=j-jF5aaSdPUHw_9_TW__uype3Liar3-xy9HFTUo7Hbk,631
365
- streamlit/static/static/js/Hooks.BrulV197.js,sha256=S0qhh8tT3uVTtQsYyvQ8kNcRHCIh_Tr-B5ambzTg8io,140
366
- streamlit/static/static/js/InputInstructions.C_m6JNSV.js,sha256=9ucvsA8PYUXfHximADD3TNYKpdC1uscEkeZj3T18tUI,899
367
- streamlit/static/static/js/ProgressBar.CXgDz0lS.js,sha256=fWuvfrPJ7FcfEl7D1CvkXqR2a-X9jDiM82-BKpuyWZk,13354
368
- streamlit/static/static/js/RenderInPortalIfExists.DbjYtj_E.js,sha256=IDD0dLkwlCI20EcfHyMt8Xk8ac9XF4AEe_qHXe0E2gM,523
369
- streamlit/static/static/js/Toolbar.B5RomQbU.js,sha256=48dt9BvK5-Jk7MH7f8Vv479NwJEFVHhVnf0kHmX9i4w,2817
362
+ streamlit/static/static/js/FileDownload.esm.DU-1rCSB.js,sha256=kcChWbQ3Skt3axYRt-ghdD3c4SJ75rE7YC95xfCIF3o,918
363
+ streamlit/static/static/js/FileDropzone.BI3MGDdT.js,sha256=eXgk0G7WC97LWIrpkNZtxhKDWCPN5jxPH4met_IEM9A,65600
364
+ streamlit/static/static/js/FormClearHelper.DzU-mNjk.js,sha256=A8Ob1aWehdYmkQ6LF--8ElYvThtKcYlC4ldSAc5BFys,631
365
+ streamlit/static/static/js/Hooks.qUbVZL-A.js,sha256=7qJ6sLVbTQ1dT7Z1qRMiV-x5RkG4pjGp5MimYCzHRhw,140
366
+ streamlit/static/static/js/InputInstructions.CpNPMMpX.js,sha256=WxF9_J8U_fgX52RIl8jzA3PBmt3wgp_QosO1C7HOsWk,899
367
+ streamlit/static/static/js/ProgressBar.4yIafGOA.js,sha256=DAFL8M6PRSi_-5NYuoWpw9gifJKThn8l8rpEgyWv54k,13318
368
+ streamlit/static/static/js/RenderInPortalIfExists.31NYBozH.js,sha256=lFPmk6E1aT9y8VePsDijH04zvFzG1ksWkCYy-GZ9IpA,523
369
+ streamlit/static/static/js/Toolbar.lnT7wtEH.js,sha256=8xlp-GaGMDCOxj9LHVLo6TgQ4RQU7LWO6kU0d8IlLc4,2817
370
370
  streamlit/static/static/js/UploadFileInfo.C-jY39rj.js,sha256=Z_hcytEoaAX1saJgsfX1UoComwwlMcjCUZ8ldwuQJI8,151
371
- streamlit/static/static/js/base-input.B_U9Mij-.js,sha256=bRmPcqP9eeyxCAQkIplFcOyMywspZFHaJ1piat2Wk60,21774
371
+ streamlit/static/static/js/base-input.DYDwDBVN.js,sha256=J2yuj_G1taRLK9ukLACy_oM0WnzmrwcLDjKeH7oqDCU,21774
372
372
  streamlit/static/static/js/createDownloadLinkElement.DZMwyjvU.js,sha256=uB4db2cbWB2KYpRbQKK6xi-mLBiUQXQtsL5I3N6rMcU,242
373
- streamlit/static/static/js/createSuper.DiPn7x2M.js,sha256=WcCnXrKsYYY6jLyJe3YCL08dy1ez7szVZzU3WaTtEaA,394
374
- streamlit/static/static/js/data-grid-overlay-editor.CxpMznuV.js,sha256=Vusw8fMTEBNY73TGasYhXSGGojFE7Gc9HyFG8HBwoD8,4069
375
- streamlit/static/static/js/downloader.CMxfwi0g.js,sha256=5YCCcQ1Eu3FePCNw_Zp7ZjH56khZI2tHHoozDBTSzPY,2535
376
- streamlit/static/static/js/es6.CWDfc2yc.js,sha256=Gum-4WhV8Jt3WCkFNvY8kOov2VMM3OcerlBGnM5pxoc,15321
377
- streamlit/static/static/js/iframeResizer.contentWindow.CyCMpBzy.js,sha256=UHRhhnskYWxc0q0yw3W7I_QdG-kMe1L7TJ34cjrVokQ,14406
378
- streamlit/static/static/js/index.11KmKkMp.js,sha256=SzpqVxw5zYLvdrpuupP9-OAlB6Fr0-NDoezL-FNwg_U,593
379
- streamlit/static/static/js/index.68LnD3a5.js,sha256=YqsBvcFc-JLaErweECOka8ZLICbG-6Gjb-5qNjCnAV8,2312028
380
- streamlit/static/static/js/index.B5QCo4O8.js,sha256=hJQITeMRvxWZEBgLfpb4gogNg6PD9Bt4k_MXGYxH1e4,19388
381
- streamlit/static/static/js/index.B7-ka68B.js,sha256=bWDw9l18CZaNHas3wdJL62sSLRWhww1D-5Z7CylFno0,852046
382
- streamlit/static/static/js/index.B9xlEQvM.js,sha256=uZ83omUznIdJ48wVWguR_GEcCIhiEGaP8q26Sao3OrY,18935
383
- streamlit/static/static/js/index.BW9gD4O1.js,sha256=lSIrDMybiJf2ulgA5x38B0jTzf9SNor05FAkSkFFiZo,4758310
384
- streamlit/static/static/js/index.Bb_vborY.js,sha256=pHraH_3WnjUvwEfHE1hnp0JoqzGEu0PQ7XnGDuGk9KY,7100
385
- streamlit/static/static/js/index.BoLiyuG0.js,sha256=I-0pf9yVY34N5ff-c1LSXQSsXwvEbuay4SDicV2o1iM,1644
386
- streamlit/static/static/js/index.CBswNuTs.js,sha256=2xQMyLPJxANrA0CoKi0nostS_-Sw8z1E29OKcTedyNs,459
387
- streamlit/static/static/js/index.CGHmjGTj.js,sha256=cUx6rQx0FmpZlLg46r5dnmNBozifd08-vyCHTJXRJFs,873
388
- streamlit/static/static/js/index.CLXysuIS.js,sha256=EdBSJvObwKdLJz7u4CDS4qAmdQVLSp8Fiolk-PPI3QY,807275
389
- streamlit/static/static/js/index.CMM3vxd_.js,sha256=cZIAIlsxek2Nb5snD1b07QgtaZxUDpgJ33j1wpISuE0,2432
390
- streamlit/static/static/js/index.CTrIDSw5.js,sha256=rdqCk_Rek5Vn2j2-diAcKceleiss3kMzeCdPX30lHFI,8128
391
- streamlit/static/static/js/index.CZjrVNQ3.js,sha256=bPCRY3qIx2S8bIr-yCFOGZfdm1PiQ-3y-u__2r3HmAk,1359
392
- streamlit/static/static/js/index.CmyE8x29.js,sha256=y2bCd6_LSOvHeYODN78eHNr50hYYs9vqG55MKtV730I,9077
393
- streamlit/static/static/js/index.CnzapoES.js,sha256=IgJ5ckhNYsxEhI97s2edexDASg1VXCJzsIczTWHEeBs,1277
394
- streamlit/static/static/js/index.CrDkQv4h.js,sha256=nay1_Rz8I2UBsopaHoHNLjviZyqWS2HoX76Igh4yPuE,644
395
- streamlit/static/static/js/index.Ctuil2Zq.js,sha256=VjMYrUFAwhl1TUIZou2PQqi_7hCw13gOa6ydp1L7fNA,3385520
396
- streamlit/static/static/js/index.CxT-55oh.js,sha256=T5_tWmFw3j-6LzNzPKPTAONndSBCmEES5avdB3NKQ60,1333
397
- streamlit/static/static/js/index.CxX3WJZV.js,sha256=4UaX7CsiQNx-Aq1wPbkdcv1DIYXYbzwdUrC9Up-61Cs,14009
398
- streamlit/static/static/js/index.D4y-ZpWF.js,sha256=dY4YzHFjWqmNhUMGYYAWsWZQ6NGFxUvA-4Lsrkn9Vqs,24408
399
- streamlit/static/static/js/index.DUqWz4q7.js,sha256=cYOtdUYZZmNj2a2EBhRIiSwD_rOwK-XkLVKfbwaoLWA,1799
373
+ streamlit/static/static/js/createSuper.CP_bqXkl.js,sha256=UrTybtdzJgVRauKl4Kn_Ps2_RoRAlrMkwGe6ciRNgfY,394
374
+ streamlit/static/static/js/data-grid-overlay-editor.Bw6S-08j.js,sha256=iVPMm1ixxqWycXx526rFPFcFVLyndibJpw7faIRIwEQ,4069
375
+ streamlit/static/static/js/downloader.DZpOwdni.js,sha256=8ly4WGzfsia582qkgusaacdoFR-HTm2ZNKqSI3DY_Xg,2535
376
+ streamlit/static/static/js/es6.D670kkuw.js,sha256=LCIf7Z6_SnSAq_BRoVRJZZgAKiPY-0ds4FrjxgivsP8,15321
377
+ streamlit/static/static/js/iframeResizer.contentWindow.CBWvp4oS.js,sha256=aOCqn2-lfh2yXEtuqMLhRR7LJVTYCtnTtXgnsjmjES8,14406
378
+ streamlit/static/static/js/index.-wGNsvT9.js,sha256=qWaoqR7MJjFKqak6H6Lmh5XK66285shmD669udMi_OU,807278
379
+ streamlit/static/static/js/index.0jzSLI-x.js,sha256=wHdhrZVszRP5jyh45FcHK1qQNGUhCp0-mp9t20eiOkI,9077
380
+ streamlit/static/static/js/index.8M0nMTyK.js,sha256=ZA0DQv6Rpd0w8BpL-FYu0LTW67LwfYb7i6228f74D7c,443
381
+ streamlit/static/static/js/index.B-Bz2NGO.js,sha256=A4TW8H3YtAebxXKV0dXFJPcwzN7otuI4ztGxizI8D40,1795
382
+ streamlit/static/static/js/index.B6KnC7nW.js,sha256=PNdrlS-1lTwlZ0xNnLaTsK8pUuMmC0iJjNeeRtKwM7c,836
383
+ streamlit/static/static/js/index.B9mk7o4G.js,sha256=NHJFISIieawqxdp1Mh_eb5nEYeWtoTLwMXa4F4G0MAk,24380
384
+ streamlit/static/static/js/index.BCorV1AX.js,sha256=Rwk0r_Q8Ee6KQJJD4tD_IfvloDL2QzzGVEIWvPegSGY,2305
385
+ streamlit/static/static/js/index.BMlBBPxY.js,sha256=QMfYJRAQlltVK2rPEryhKZeCbjmretrxMZDaTg5-vgM,13993
386
+ streamlit/static/static/js/index.BhTUDBBK.js,sha256=C5ZGTP1ELnO2Ru-MmSjwQDofnxZHjuQKyPPi6HuXdI8,3554
387
+ streamlit/static/static/js/index.Bif_gpeX.js,sha256=u5dyLEypae5b3cgUKMKzztvARwn5MK23NQl7pSZqLvk,8141
388
+ streamlit/static/static/js/index.BkURA4Nq.js,sha256=oNk6JHtjzjAyQ9IdGfvXRZX1ncAHCAe4ktO5UHiwZvQ,18889
389
+ streamlit/static/static/js/index.Byj6qntv.js,sha256=cZz9scRZEJyJZ-_PuFP047TyyPwRErVKIq6kC3hb0lY,22727
390
+ streamlit/static/static/js/index.C0O8ISw8.js,sha256=PtpQOry0-r65FCQEWBkBP1QZ3i4B8WtX8zLLj1zlzFM,554
391
+ streamlit/static/static/js/index.C5VAa8DZ.js,sha256=5ja40NbfMERfd8PLNhfjbG6FYY6KkI_K_Z-46ckqoew,1612
392
+ streamlit/static/static/js/index.CA6bEd5D.js,sha256=xawlKxhtHFDYmP0wTmjC_TkpZWE-_iHS9RDWKzvNtRg,106043
393
+ streamlit/static/static/js/index.CD53GuKN.js,sha256=N3e_Mw4ne8tQzbEBtFrrxLGXgaMuKlwY7t5XT4u4m00,49109
394
+ streamlit/static/static/js/index.CKT6gwZG.js,sha256=A9T6IEEGaAp3eedqHn_BE5sB2gIBEGSk2y6HUR0tM2g,34828
395
+ streamlit/static/static/js/index.CLsHMaqe.js,sha256=4rh6bRrtRIIt_RaNxqBBYyZW9lzQGHhV__V4lDtBmTE,6644897
396
+ streamlit/static/static/js/index.Ch1c3KR1.js,sha256=Fv8h9wXgtn4DkmjMsKHZBNuYZX1HSTEWzgr5TAQsoU8,2148
397
+ streamlit/static/static/js/index.ChIZFRw0.js,sha256=zR4_vPGnSsIxvBmdJ-8flkySd5-_dMjtvz321I-Dfy4,1277
398
+ streamlit/static/static/js/index.CrYKK91g.js,sha256=yrzY7xFdiwjAooig4OOduvzCvtZOtUoodqLTBtlGRj8,2311947
399
+ streamlit/static/static/js/index.Cvgj5_qB.js,sha256=tr2fjNCY6mq0OyUCTI8t6_HCKLxsUfjf793grWGx5lg,13018
400
+ streamlit/static/static/js/index.D3VdaBwP.js,sha256=ddZxm1yEjpIWFLq4fI3UjhNRDWMXec_UUStYwvDfCks,3385520
401
+ streamlit/static/static/js/index.D6UL3iMZ.js,sha256=U2gEup11WhuWYqA2dAS3lGeZbsszGkcM_yRMmPBcNiI,4758391
402
+ streamlit/static/static/js/index.D8aCPmhr.js,sha256=XoNTRqDOpyShL_CcP4vEcphX0d2okpPRh2sSKFVVykg,2475
403
+ streamlit/static/static/js/index.DHBu5iL6.js,sha256=UYaLiWRMPbVQLAh9z3bEG2yhlRUbHK8o3mrT-NV_7hg,852049
404
+ streamlit/static/static/js/index.DJF89pFO.js,sha256=k-pgd8DzHpY-9o6kl1QpDaxz_fhjmGZ0U0Y8EsPrLrg,617
405
+ streamlit/static/static/js/index.DNEGP5ih.js,sha256=wvABZfC1GVjVg6Ag96BqCkdC-l2SlFngwzNbJKzW7mo,1333
406
+ streamlit/static/static/js/index.DRJutLeV.js,sha256=0GMOO3NAkoFuPPS9tHYO81XK3ppy-7GwIIuoMjvexkY,2644
407
+ streamlit/static/static/js/index.DS38XxzV.js,sha256=Xqws_JX-7vfGqz6_xQk9MhSPHmpV2GP72mb8yXt2snE,1359
400
408
  streamlit/static/static/js/index.DW_MHI2K.js,sha256=YrlwVDi7jAoXmWqJUPTZ301g_tP9kYqzj6C8XJ8I02I,35011
401
- streamlit/static/static/js/index.DaR46enR.js,sha256=Z3YvvI6gvTXzxddXSpWrD6B3n-Wf_lYGZ0n8BBku0UA,734
402
- streamlit/static/static/js/index.DcCioSks.js,sha256=PAyQSNYCz2a6wSH-D3r89nBeV_b40iUpnrFMDTIXr9M,34843
403
- streamlit/static/static/js/index.DeuQX1T6.js,sha256=hD8N83vo50Lgx9vBdnTcQlE0yIrk9NqF-6XDtf_LcF4,6643093
404
- streamlit/static/static/js/index.Di8ddb5O.js,sha256=B1NzwoBiuMG8zTESqCYgJHmNFdU-J5b2UKpCaLUUNIk,2613
405
- streamlit/static/static/js/index.Djk5RccG.js,sha256=F_nckosN-4s1AGx02L_nj1EUs5q49r9JRyr2ZQISFN8,2877
406
- streamlit/static/static/js/index.DsPUu3xS.js,sha256=eH7GuULGdlGch-IFGD1cgQB6baqvlTnK6j1IRU1jNlA,22752
407
- streamlit/static/static/js/index.FVzOj77v.js,sha256=z47UbaqV97qzKzlwor8pgB1spiajlhQw4Y0P3YpdOKs,106071
408
- streamlit/static/static/js/index.FjL8doTL.js,sha256=uJncV3nHH__S3xLZAvwkXTKzdXwJvW0gYn5UDCicvMs,2137
409
- streamlit/static/static/js/index.OiKVkRzb.js,sha256=2v9K-FTASkVrKfWtbRQ9bRssdzuGDlEq7toO2vQvDrM,2353
410
- streamlit/static/static/js/index.XB-MiuZp.js,sha256=wopC57NpEQPA_WZnnT52k1jGN3Ve_W5wHnRgACf2OTQ,49109
411
- streamlit/static/static/js/index.YBzhCbWe.js,sha256=kvarGPZ-wSbvdFPT1wUP5CRlcBA7p1XPUxAF2gwQG1A,3627
412
- streamlit/static/static/js/index.ZlPieA63.js,sha256=kEcLLquD4ZwEEGkIWNanxtG-mwFMPpBLfeL2miZuCMY,3926
413
- streamlit/static/static/js/index.eP8uJaty.js,sha256=5JIqoWZdyfIYaaSZB2iOgVWH44TDhb2_vhcQUBLBRmk,814
414
- streamlit/static/static/js/index.fz6QTJde.js,sha256=1j7P5_MuQQwFT64RjLlFPhbqRaczILAcCfGfPqRD_EQ,12408
415
- streamlit/static/static/js/index.vyj1usur.js,sha256=NQR2e0QQt-miYaTgRpXyNvSIZbLbWFLl2KWCPXXN-3k,422512
416
- streamlit/static/static/js/input.D-b9-dhW.js,sha256=dHIj-POM7--5KRZ9uPXF3rQM_P_DH5VRbxRH4SNDv7k,5244
409
+ streamlit/static/static/js/index.DdeHhk74.js,sha256=g5Pzcs9t4c2Wt5xmiBUkBTMUoRlc0EYYxbrkuH_3sgw,3893
410
+ streamlit/static/static/js/index.De5HitMn.js,sha256=RM0czroxLNQpq3GdVN8VVHaxlIdmhBN3ZklhK2h7k9g,7151
411
+ streamlit/static/static/js/index.DsvnAu-2.js,sha256=fvq-E7Zy2SeEV-7E3PbjtfqL241Wte_5_kVsChdCdcg,798
412
+ streamlit/static/static/js/index.Du4f6P1i.js,sha256=CQFMc_Riivrg3KJVv32cfPDbQ58XpWVX1TYEdMKA6vg,2861
413
+ streamlit/static/static/js/index.HCbHLWBq.js,sha256=mgeSNAowNNn5_sCY1iAZfWBy0-aLe_bNKFTEsMeiMOw,718
414
+ streamlit/static/static/js/index.XAUdgEdp.js,sha256=sXmzUOXhwObggJMO8LTijYZJyhYKJEyis84Bm-HAhWY,19413
415
+ streamlit/static/static/js/index.edlGQJ3v.js,sha256=qu0qWPMblj60q6pBLfE_wXrkN6VjqhE0sAyzAcuHg3s,423159
416
+ streamlit/static/static/js/input.e-37_Dj1.js,sha256=X4MWDeruu1nx3nvYoW2sOqtDG9X5lKoV8jyIXxxvnBg,5244
417
417
  streamlit/static/static/js/inputUtils.CQWz5UKz.js,sha256=-kt6oYYgvhFS0t0EV2qJE6f43GUao6rNeipUmv3RuV8,150
418
- streamlit/static/static/js/memory.C27_0JRm.js,sha256=piKmYZFUuvGR4iUCyOTaRfPV4qH2kJpsyNJj4MqPx4s,3041
419
- streamlit/static/static/js/mergeWith.D8F46YVj.js,sha256=PmjWPgRPIaacMX8Stx1ydT8YVFVgM1IsFzgrp2i1dkk,198
420
- streamlit/static/static/js/number-overlay-editor.CaHpEyvW.js,sha256=zlR01A9pVqeLaQIXGthCng9-XCnXuPgSS6Yisk8Cvus,16519
421
- streamlit/static/static/js/possibleConstructorReturn.CnSJ4CFa.js,sha256=uUZ0iDlU2lrL9ebD4I5Fnx7UKDFOPSW5MzXxawK3mhI,1451
422
- streamlit/static/static/js/sandbox.Cx5mAMmC.js,sha256=HmO5EkZlWuY8kRtG8CUe9EZ5vb88oP3y30uVOHPAxNA,2960
418
+ streamlit/static/static/js/memory.B5p-2jga.js,sha256=QUBnOoeqcAf6IElpXbU175hna-_4dJq5qbT3eECGlL8,3041
419
+ streamlit/static/static/js/mergeWith.D8nk5iJa.js,sha256=6c_FEeK4JGomxesJnHsoqOONup_bZ1i-WACYjIPz_FM,198
420
+ streamlit/static/static/js/number-overlay-editor.DLD5-9zx.js,sha256=PrgODOoT8wHJa2kmQTeyz-uXdpJJ-NbvEHeg2jQyClA,16519
421
+ streamlit/static/static/js/possibleConstructorReturn.eeV6HB6T.js,sha256=19ATVKQsUlY8BOyytF1OoQGPMZ4kIH949dIsiY1o4XE,1451
422
+ streamlit/static/static/js/sandbox.ChKquq8J.js,sha256=BEV2HevxHszcJLZOvCwXpYhK8k94MjNUoDghpzC2zGE,2960
423
423
  streamlit/static/static/js/sprintf.D7DtBTRn.js,sha256=dLZEkTCGwWgkxMOITY-fqjbGVuUO9nFw7MwCANBdisk,3434
424
- streamlit/static/static/js/textarea.YeGMY3Ts.js,sha256=CQJ_CuW-XtO6KvnG6-pRbJAVwxNe10TEvoLbrntlio8,5761
424
+ streamlit/static/static/js/textarea.ZI_0MUsX.js,sha256=M00ckWdPV0GKjRoEo0g6m-CCvqsYKj4UP7pmIKHxbNI,5761
425
425
  streamlit/static/static/js/threshold.DjX0wlsa.js,sha256=ToJ7upF_PGcC41-Cfe0gGTVgWb0yjhBbHTQrd4GD4gg,5693
426
- streamlit/static/static/js/timepicker.BSApuR_7.js,sha256=l1TkOKQgBi-JPPVo2YVMTJPbUJJRHZ5l46l5ixP_Y6c,89424
426
+ streamlit/static/static/js/timepicker.C8N66VUc.js,sha256=iohvygQXxxAcbYxEMpMOsNVV-AOH9noJ3r8C9oJXknQ,89424
427
427
  streamlit/static/static/js/timer.CAwTRJ_g.js,sha256=aNjItH3iW2RuvnLaZ54iUi50rhEiW93-1Rel2EyaRlQ,7408
428
- streamlit/static/static/js/toConsumableArray.DFJurSxu.js,sha256=sJG8nFzmyfZMkQGD9pZHh3upCnlN7hIvRfRPDXZem58,1587
429
- streamlit/static/static/js/uniqueId.B4ugkryR.js,sha256=TIvoZVdAweN6XSyoOGKuW29uHPcB_V0TdIXjxCY8FpM,190
430
- streamlit/static/static/js/useBasicWidgetState.e9cw5rKa.js,sha256=wF5Hyxfo2gmHPFdQwTTbTnfANy3lolRqiScuyuBqccE,960
431
- streamlit/static/static/js/useOnInputChange.CHDPgswc.js,sha256=ceU65NHTPLQZH08yOyyiqOyB-1SpYzq3yfKl_sucG8M,587
428
+ streamlit/static/static/js/toConsumableArray.DKg00cRh.js,sha256=VLZoMiKEysdB7s-oKVPq8R6tRpqlPHpLdJNLqOfr3EM,1587
429
+ streamlit/static/static/js/uniqueId.fc9w8X88.js,sha256=ea_8UGLzOiQPmPuwzPfiD4aOquXcSYq0rHqz9ZsUpwA,190
430
+ streamlit/static/static/js/useBasicWidgetState.CySX_BlM.js,sha256=eLArB5BcUbuISfah-fb-xp36gbAGXKD5FoqVQwGUB94,960
431
+ streamlit/static/static/js/useOnInputChange.BF6Trlh5.js,sha256=sMKnuFYprgw1mZwKZuuu80g1DM4Maj6WLwv1YKIjzcE,587
432
432
  streamlit/static/static/js/value.CgPGBV_l.js,sha256=7g4Owjf_hP16pkcLYPvARUlzIjBgl9APVNw2hnHYtWY,15042
433
- streamlit/static/static/js/withFullScreenWrapper.BKBYrOn-.js,sha256=7WIGtgJ8KN9cdMOy9A-CdqwTudDsTvohdUu5JJMdHsY,1647
433
+ streamlit/static/static/js/withFullScreenWrapper.x2WsM7iA.js,sha256=fY_ZChDfSXgbKCHyF-AEmigJA-TUbgXyrpBrLyKVDlo,1713
434
434
  streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
435
435
  streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
436
436
  streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
@@ -522,7 +522,7 @@ streamlit/static/static/media/flake-2.BnWSExPC.png,sha256=Ni-cIPie1Z-0GJoBoRavyH
522
522
  streamlit/static/static/media/snowflake.JU2jBHL8.svg,sha256=Soe8chkasaXhxMYOakMAXRR1BEu2Xp02hosZrSXF6lc,7471
523
523
  streamlit/testing/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
524
524
  streamlit/testing/v1/__init__.py,sha256=-730f0uFg7i1_5CkycZNz1PuurzO2Sx34Kew5WX7Wa0,690
525
- streamlit/testing/v1/app_test.py,sha256=rO9PcmWclJasFoimp38_YD1VZLEsWKYOGJyj5ZQLc6w,37565
525
+ streamlit/testing/v1/app_test.py,sha256=zLKDw3cx3yaLb4bCFPTM0vZtFwmwU8FMzngmejCYChA,37477
526
526
  streamlit/testing/v1/element_tree.py,sha256=wFepHTOKSWHFvHa_uOPNC8T8SC6VzkVBz3csrUhVkpw,63134
527
527
  streamlit/testing/v1/local_script_runner.py,sha256=MTRhx4l-RjwO-qcUZrfsQdXy0UfubkO6hQspc4QkyIY,6604
528
528
  streamlit/testing/v1/util.py,sha256=WPfJYaw-QS3jSgHPYDWOYVFhACxVIHKZkQ16_PGE3-c,1791
@@ -535,13 +535,13 @@ streamlit/watcher/folder_black_list.py,sha256=gxX6Duiy1GrZU1_3rOKgc9A1sbLEesH6Gd
535
535
  streamlit/watcher/local_sources_watcher.py,sha256=TcG_mO3ctUswRc8DEyJ4xL0JYLH5KoI271HrMX6Uf1g,8686
536
536
  streamlit/watcher/path_watcher.py,sha256=C1KzPZgy2EpdwE-FKVtlmXwKsKYThqIsDcooDaTbVvI,5718
537
537
  streamlit/watcher/polling_path_watcher.py,sha256=SzuQHdKGp6I5fxYqZ5QYN6NZEFVin4O7bqPYgOzrKtk,3822
538
- streamlit/watcher/util.py,sha256=jbLNZ-_wjVqkAOZQR5EKKhdkoC3fPtmbyrFTXRNkiAY,6815
538
+ streamlit/watcher/util.py,sha256=wnhOxgbfkRRZU7URw5IxFoEVcJ4WVHYdRm8ZUjehSkg,6663
539
539
  streamlit/web/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
540
540
  streamlit/web/bootstrap.py,sha256=nSSno2BWRO933lg_DAVQYG393EZighsd7LZRHwpZvP8,12833
541
541
  streamlit/web/cache_storage_manager_config.py,sha256=-OsFG3ffX8WenFaikvFCuv0v7nFvoERdPH6Ec35q4RU,1215
542
542
  streamlit/web/cli.py,sha256=1cfp2WPOBRlJfJXcF0Y1qa-Nx7oXcmHLQncg_Tj0Sdk,11268
543
543
  streamlit/web/server/__init__.py,sha256=h60IjYD2ZDDzoiRZ1j2SsU3FGT_To6d3cInuqccMgeA,1080
544
- streamlit/web/server/app_static_file_handler.py,sha256=L98L7PryqGpQg2cV1iA9nB_6TW0AxNz29mml0OO7Q4I,3043
544
+ streamlit/web/server/app_static_file_handler.py,sha256=SGy41DOlsJbDFKWprIPl76VStA3PJNbpVYuySCe1qDM,3216
545
545
  streamlit/web/server/authlib_tornado_integration.py,sha256=KszT7r4dewoQt3lFMy86l2c_TUoAgh7mbiQpErstrjo,2232
546
546
  streamlit/web/server/browser_websocket_handler.py,sha256=idnsyvEcXTnH0oyssdwRqetK4l-KT-Hm3IvRiHHW2_w,9952
547
547
  streamlit/web/server/component_request_handler.py,sha256=mnq7ZycaF3s6kgt1k6xqdcXiNjHprp39--LHRTPqsdA,4158
@@ -554,9 +554,9 @@ streamlit/web/server/server_util.py,sha256=qL-z1JI1sTWvahhfzckWiKlsJhYqLiKCGsZEz
554
554
  streamlit/web/server/stats_request_handler.py,sha256=vMRWGfqItfI6OaqVyo3LIX3HjQ-OB6Y-LHOXPiihlGY,3641
555
555
  streamlit/web/server/upload_file_request_handler.py,sha256=NvjQpUt7HWi5DE08tLig_UWevKcC7nA7PFOJ-aSkxwk,5033
556
556
  streamlit/web/server/websocket_headers.py,sha256=FCzUc-829kNY5hgy2wGNZT0k4XgCw_nlLCdnb7pnNO4,2232
557
- streamlit_nightly-1.42.1.dev20250216.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
558
- streamlit_nightly-1.42.1.dev20250216.dist-info/METADATA,sha256=subx58nIQt74pUKmbYYWK78-TZAruUd8Ekp_9FCkcUo,8933
559
- streamlit_nightly-1.42.1.dev20250216.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
560
- streamlit_nightly-1.42.1.dev20250216.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
561
- streamlit_nightly-1.42.1.dev20250216.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
562
- streamlit_nightly-1.42.1.dev20250216.dist-info/RECORD,,
557
+ streamlit_nightly-1.42.2.dev20250218.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
558
+ streamlit_nightly-1.42.2.dev20250218.dist-info/METADATA,sha256=_Qjunhxc4LnDQICMLxt4yjOkr9hv1fmKAB7C-CLsDRo,8933
559
+ streamlit_nightly-1.42.2.dev20250218.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
560
+ streamlit_nightly-1.42.2.dev20250218.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
561
+ streamlit_nightly-1.42.2.dev20250218.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
562
+ streamlit_nightly-1.42.2.dev20250218.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- import{r as c,b2 as s,j as e,b3 as B,bk as f,b1 as h,b4 as m}from"./index.DeuQX1T6.js";function p(n){const{disabled:o,element:t,widgetMgr:l,width:a,fragmentId:r}=n,d={width:a};let i=s.SECONDARY;t.type==="primary"?i=s.PRIMARY:t.type==="tertiary"&&(i=s.TERTIARY);const u=t.help?a:!0;return e("div",{className:"stButton","data-testid":"stButton",style:d,children:e(B,{help:t.help,children:e(f,{kind:i,size:h.SMALL,disabled:o,fluidWidth:t.useContainerWidth?u:!1,onClick:()=>l.setTriggerValue(t,{fromUi:!0},r),children:e(m,{icon:t.icon,label:t.label})})})})}const y=c.memo(p);export{y as default};
@@ -1 +0,0 @@
1
- import{r as M,E as T,_ as j,n as E,at as J,C as R,j as h,bp as K,b6 as z,bk as Y,b2 as Z,bj as O,bw as $,d as ee,g as te,aH as re,y as ie,bx as ae,by as oe,R as ne,an as se,aw as le,K as P,bg as de,bf as ce,bm as ue,bz as fe,bn as pe,bo as he,F as ge}from"./index.DeuQX1T6.js";import{a as W}from"./index.DW_MHI2K.js";import{F as me}from"./FormClearHelper.Dha_cfuU.js";import{U as L}from"./UploadFileInfo.C-jY39rj.js";import{P as ve,S as Se}from"./ProgressBar.CXgDz0lS.js";var N=M.forwardRef(function(t,l){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return M.createElement(T,j({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:l}),M.createElement("path",{d:"M.5 1c-.28 0-.5.23-.5.5v4c0 .28.23.5.5.5h5c.28 0 .5-.22.5-.5V4l1 1h1V2H7L6 3V1.5c0-.28-.22-.5-.5-.5h-5z"}))});N.displayName="Video";var H=M.forwardRef(function(t,l){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return M.createElement(T,j({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:l}),M.createElement("path",{d:"M1.41 0L0 1.41l.72.72L2.5 3.94.72 5.72 0 6.41l1.41 1.44.72-.72 1.81-1.81 1.78 1.81.69.72 1.44-1.44-.72-.69-1.81-1.78 1.81-1.81.72-.72L6.41 0l-.69.72L3.94 2.5 2.13.72 1.41 0z"}))});H.displayName="X";var D=M.forwardRef(function(t,l){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return M.createElement(T,j({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:l}),M.createElement("rect",{width:24,height:24,fill:"none"}),M.createElement("path",{d:"M20 5h-3.17l-1.24-1.35A1.99 1.99 0 0014.12 3H9.88c-.56 0-1.1.24-1.48.65L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-1.35 8.35l-2.79 2.79c-.32.32-.86.1-.86-.35v-1.75H9v1.75c0 .45-.54.67-.85.35l-2.79-2.79c-.2-.2-.2-.51 0-.71l2.79-2.79a.5.5 0 01.85.36v1.83h6v-1.83c0-.45.54-.67.85-.35l2.79 2.79c.2.19.2.51.01.7z"}))});D.displayName="SwitchCamera";var k;(function(t){t.XSMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large"})(k||(k={}));function ye(t,l){switch(t){case"xsmall":return{padding:`${l.spacing.twoXS} ${l.spacing.sm}`,fontSize:l.fontSizes.sm};case"small":return{padding:`${l.spacing.twoXS} ${l.spacing.md}`};case"large":return{padding:`${l.spacing.md} ${l.spacing.md}`};default:return{padding:`${l.spacing.xs} ${l.spacing.md}`}}}const G=E("div",{target:"e47j7ja0"})({position:"relative",overflow:"hidden",width:"100%",objectFit:"contain"}),V=E("div",{target:"e47j7ja1"})(({theme:t,width:l})=>({backgroundColor:t.colors.secondaryBg,borderRadius:`${t.radii.default} ${t.radii.default} 0 0`,width:"100%",height:l*9/16,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"})),be=E("p",{target:"e47j7ja2"})(({theme:t})=>({marginTop:t.spacing.sm,textAlign:"center"})),Me=E("img",{target:"e47j7ja3"})(({theme:t,opacity:l})=>({borderRadius:`${t.radii.default} ${t.radii.default} 0 0`,objectFit:"contain",opacity:l})),we=E("a",{target:"e47j7ja4"})(({theme:t})=>({color:t.colors.primary,display:"block",textDecoration:"none"})),Ue=E("span",{target:"e47j7ja5"})({display:"flex",alignItems:"center"}),Ce=E("div",{target:"e47j7ja6"})(({theme:t})=>({position:"absolute",top:t.spacing.lg,right:t.spacing.lg,zIndex:t.zIndices.priority,color:t.colors.fadedText40,mixBlendMode:"difference",opacity:.6})),Ee=E("div",{target:"e47j7ja8"})({height:"fit-content",width:"100%",position:"absolute",bottom:0}),Ie=E("button",{target:"e47j7ja9"})(({theme:t})=>({position:"relative",display:"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.colors.lightenedBg05,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,borderRadius:`0 0 ${t.radii.default} ${t.radii.default}`,"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{color:t.colors.white,borderColor:t.colors.primary,backgroundColor:t.colors.primary},"&:focus:not(:active)":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText40},fontWeight:t.fontWeights.normal,padding:`${t.spacing.xs} ${t.spacing.md}`,margin:t.spacing.none,lineHeight:t.lineHeights.base,color:"inherit",width:"100%",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${J(t.colors.primary,.5)}`},...ye("medium",t)}));function q({disabled:t,onClick:l,children:r,progress:o}){return R(Ie,{disabled:t||!1,onClick:l||(()=>{}),progress:o||null,"data-testid":"stCameraInputButton",children:[r,o&&h(Ee,{children:h(ve,{value:o,size:Se.EXTRASMALL,overrides:{Bar:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}},BarProgress:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}},BarContainer:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}}}})})]})}var F;(function(t){t.USER="user",t.ENVIRONMENT="environment"})(F||(F={}));const Fe=({switchFacingMode:t})=>h(Ce,{"data-testid":"stCameraInputSwitchButton",children:h(K,{content:"Switch camera",placement:z.TOP_RIGHT,children:h(Y,{kind:Z.MINIMAL,onClick:t,children:h(O,{content:D,size:"twoXL",color:$.white})})})});var _={exports:{}},Re=_.exports,B;function xe(){return B||(B=1,function(t,l){(function(o,a){t.exports=a(ee())})(Re,function(r){return function(o){var a={};function n(s){if(a[s])return a[s].exports;var f=a[s]={i:s,l:!1,exports:{}};return o[s].call(f.exports,f,f.exports,n),f.l=!0,f.exports}return n.m=o,n.c=a,n.d=function(s,f,g){n.o(s,f)||Object.defineProperty(s,f,{enumerable:!0,get:g})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,f){if(f&1&&(s=n(s)),f&8||f&4&&typeof s=="object"&&s&&s.__esModule)return s;var g=Object.create(null);if(n.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:s}),f&2&&typeof s!="string")for(var C in s)n.d(g,C,(function(U){return s[U]}).bind(null,C));return g},n.n=function(s){var f=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(f,"a",f),f},n.o=function(s,f){return Object.prototype.hasOwnProperty.call(s,f)},n.p="",n(n.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(o,a,n){n.r(a);var s=n("react"),f=function(){var m=function(u,e){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,d){i.__proto__=d}||function(i,d){for(var c in d)d.hasOwnProperty(c)&&(i[c]=d[c])},m(u,e)};return function(u,e){m(u,e);function i(){this.constructor=u}u.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),g=function(){return g=Object.assign||function(m){for(var u,e=1,i=arguments.length;e<i;e++){u=arguments[e];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(m[d]=u[d])}return m},g.apply(this,arguments)},C=function(m,u){var e={};for(var i in m)Object.prototype.hasOwnProperty.call(m,i)&&u.indexOf(i)<0&&(e[i]=m[i]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,i=Object.getOwnPropertySymbols(m);d<i.length;d++)u.indexOf(i[d])<0&&Object.prototype.propertyIsEnumerable.call(m,i[d])&&(e[i[d]]=m[i[d]]);return e};(function(){typeof window>"u"||(navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(u){var e=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return e?new Promise(function(i,d){e.call(navigator,u,i,d)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}))})();function U(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}var I=function(m){f(u,m);function u(e){var i=m.call(this,e)||this;return i.canvas=null,i.ctx=null,i.requestUserMediaId=0,i.unmounted=!1,i.state={hasUserMedia:!1},i}return u.prototype.componentDidMount=function(){var e=this,i=e.state,d=e.props;if(this.unmounted=!1,!U()){d.onUserMediaError("getUserMedia not supported");return}i.hasUserMedia||this.requestUserMedia(),d.children&&typeof d.children!="function"&&console.warn("children must be a function")},u.prototype.componentDidUpdate=function(e){var i=this.props;if(!U()){i.onUserMediaError("getUserMedia not supported");return}var d=JSON.stringify(e.audioConstraints)!==JSON.stringify(i.audioConstraints),c=JSON.stringify(e.videoConstraints)!==JSON.stringify(i.videoConstraints),y=e.minScreenshotWidth!==i.minScreenshotWidth,S=e.minScreenshotHeight!==i.minScreenshotHeight;(c||y||S)&&(this.canvas=null,this.ctx=null),(d||c)&&(this.stopAndCleanup(),this.requestUserMedia())},u.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},u.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map(function(i){e.removeTrack(i),i.stop()}),e.getAudioTracks().map(function(i){e.removeTrack(i),i.stop()})):e.stop())},u.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(u.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},u.prototype.getScreenshot=function(e){var i=this,d=i.state,c=i.props;if(!d.hasUserMedia)return null;var y=this.getCanvas(e);return y&&y.toDataURL(c.screenshotFormat,c.screenshotQuality)},u.prototype.getCanvas=function(e){var i=this,d=i.state,c=i.props;if(!this.video||!d.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var y=this.video.videoWidth,S=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var p=y/S;y=c.minScreenshotWidth||this.video.clientWidth,S=y/p,c.minScreenshotHeight&&S<c.minScreenshotHeight&&(S=c.minScreenshotHeight,y=S*p)}this.canvas=document.createElement("canvas"),this.canvas.width=(e==null?void 0:e.width)||y,this.canvas.height=(e==null?void 0:e.height)||S,this.ctx=this.canvas.getContext("2d")}var w=this,b=w.ctx,v=w.canvas;return b&&v&&(v.width=(e==null?void 0:e.width)||v.width,v.height=(e==null?void 0:e.height)||v.height,c.mirrored&&(b.translate(v.width,0),b.scale(-1,1)),b.imageSmoothingEnabled=c.imageSmoothing,b.drawImage(this.video,0,0,(e==null?void 0:e.width)||v.width,(e==null?void 0:e.height)||v.height),c.mirrored&&(b.scale(-1,1),b.translate(-v.width,0))),v},u.prototype.requestUserMedia=function(){var e=this,i=this.props,d=function(S,p){var w={video:typeof p<"u"?p:!0};i.audio&&(w.audio=typeof S<"u"?S:!0),e.requestUserMediaId++;var b=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(w).then(function(v){e.unmounted||b!==e.requestUserMediaId?u.stopMediaStream(v):e.handleUserMedia(null,v)}).catch(function(v){e.handleUserMedia(v)})};if("mediaDevices"in navigator)d(i.audioConstraints,i.videoConstraints);else{var c=function(S){return{optional:[{sourceId:S}]}},y=function(S){var p=S.deviceId;return typeof p=="string"?p:Array.isArray(p)&&p.length>0?p[0]:typeof p=="object"&&p.ideal?p.ideal:null};MediaStreamTrack.getSources(function(S){var p=null,w=null;S.forEach(function(x){x.kind==="audio"?p=x.id:x.kind==="video"&&(w=x.id)});var b=y(i.audioConstraints);b&&(p=b);var v=y(i.videoConstraints);v&&(w=v),d(c(p),c(w))})}},u.prototype.handleUserMedia=function(e,i){var d=this.props;if(e||!i){this.setState({hasUserMedia:!1}),d.onUserMediaError(e);return}this.stream=i;try{this.video&&(this.video.srcObject=i),this.setState({hasUserMedia:!0})}catch{this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(i)})}d.onUserMedia(i)},u.prototype.render=function(){var e=this,i=this,d=i.state,c=i.props,y=c.audio;c.forceScreenshotSourceSize,c.onUserMedia,c.onUserMediaError,c.screenshotFormat,c.screenshotQuality,c.minScreenshotWidth,c.minScreenshotHeight,c.audioConstraints,c.videoConstraints,c.imageSmoothing;var S=c.mirrored,p=c.style,w=p===void 0?{}:p,b=c.children,v=C(c,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),x=S?g(g({},w),{transform:(w.transform||"")+" scaleX(-1)"}):w,X={getScreenshot:this.getScreenshot.bind(this)};return s.createElement(s.Fragment,null,s.createElement("video",g({autoPlay:!0,src:d.src,muted:!y,playsInline:!0,ref:function(Q){e.video=Q},style:x},v)),b&&b(X))},u.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},u}(s.Component);a.default=I},react:function(o,a){o.exports=r}}).default})}(_)),_.exports}var Pe=xe();const _e=te(Pe);var A;(function(t){t.PENDING="pending",t.SUCCESS="success",t.ERROR="error"})(A||(A={}));const Te=({width:t})=>R(V,{width:t,children:[h(O,{size:"threeXL",color:$.gray60,content:N}),R(be,{children:["This app would like to use your camera.",h(we,{href:oe,rel:"noopener noreferrer",target:"_blank",children:"Learn how to allow access."})]})]}),je=({handleCapture:t,width:l,disabled:r,clearPhotoInProgress:o,setClearPhotoInProgress:a,facingMode:n,setFacingMode:s,testOverride:f})=>{const[g,C]=M.useState(f||"pending"),U=M.useRef(null),[I,m]=M.useState(l),u=M.useCallback(re(1e3,m),[]);M.useEffect(()=>{u(l)},[l,u]);function e(){if(U.current!==null){const d=U.current.getScreenshot();t(d)}}const i=ie();return R(G,{"data-testid":"stCameraInputWebcamComponent",children:[g!=="success"&&!r&&!o?h(Te,{width:I}):ae.isMobile&&h(Fe,{switchFacingMode:s}),h(V,{"data-testid":"stCameraInputWebcamStyledBox",hidden:g!=="success"&&!r&&!o,width:I,children:!r&&h(_e,{audio:!1,ref:U,screenshotFormat:"image/jpeg",screenshotQuality:1,width:I,height:I*9/16,style:{borderRadius:`${i.radii.default} ${i.radii.default} 0 0`},onUserMediaError:()=>{C("error")},onUserMedia:()=>{C("success"),a(!1)},videoConstraints:{width:{ideal:I},facingMode:n}})}),h(q,{onClick:e,disabled:g!=="success"||r||o,children:"Take Photo"})]})},Oe=150,Ve=se.getLogger("CameraInput");class $e extends ne.PureComponent{constructor(l){super(l),this.localFileIdCounter=1,this.RESTORED_FROM_WIDGET_STRING="RESTORED_FROM_WIDGET",this.formClearHelper=new me,this.getProgress=()=>{if(this.state.files.length>0&&this.state.files[this.state.files.length-1].status.type==="uploading")return this.state.files[this.state.files.length-1].status.progress},this.setClearPhotoInProgress=r=>{this.setState({clearPhotoInProgress:r})},this.setFacingMode=()=>{this.setState(r=>({facingMode:r.facingMode===F.USER?F.ENVIRONMENT:F.USER}))},this.handleCapture=r=>{if(r===null)return Promise.resolve();this.setState({imgSrc:r,shutter:!0,minShutterEffectPassed:!1});const o=a=>new Promise(n=>setTimeout(n,a));return We(r,`camera-input-${new Date().toISOString().replace(/:/g,"_")}.jpg`).then(a=>this.props.uploadClient.fetchFileURLs([a]).then(n=>({file:a,fileUrls:n[0]}))).then(({file:a,fileUrls:n})=>this.uploadFile(n,a)).then(()=>o(Oe)).then(()=>{this.setState((a,n)=>({imgSrc:r,shutter:a.shutter,minShutterEffectPassed:!0}))}).catch(a=>{Ve.error(a)})},this.removeCapture=()=>{this.state.files.length!==0&&(this.state.files.forEach(r=>this.deleteFile(r.id)),this.setState({imgSrc:null,clearPhotoInProgress:!0}))},this.componentDidUpdate=()=>{if(this.status!=="ready")return;const r=this.createWidgetValue(),{element:o,widgetMgr:a,fragmentId:n}=this.props,s=a.getFileUploaderStateValue(o);le(r,s)||a.setFileUploaderStateValue(o,r,{fromUi:!0},n)},this.onFormCleared=()=>{this.setState({files:[]},()=>{const r=this.createWidgetValue();if(P(r))return;this.setState({imgSrc:null});const{widgetMgr:o,element:a,fragmentId:n}=this.props;o.setFileUploaderStateValue(a,r,{fromUi:!0},n)})},this.deleteFile=r=>{const o=this.getFile(r);P(o)||(o.status.type==="uploading"&&o.status.cancelToken.cancel(),o.status.type==="uploaded"&&o.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(o.status.fileUrls.deleteUrl),this.removeFile(r))},this.addFile=r=>{this.setState(o=>({files:[...o.files,r]}))},this.removeFile=r=>{this.setState(o=>({files:o.files.filter(a=>a.id!==r)}))},this.getFile=r=>this.state.files.find(o=>o.id===r),this.updateFile=(r,o)=>{this.setState(a=>({files:a.files.map(n=>n.id===r?o:n)}))},this.onUploadComplete=(r,o)=>{this.setState(()=>({shutter:!1}));const a=this.getFile(r);P(a)||a.status.type!=="uploading"||this.updateFile(a.id,a.setStatus({type:"uploaded",fileId:o.fileId,fileUrls:o}))},this.onUploadProgress=(r,o)=>{const a=this.getFile(o);if(P(a)||a.status.type!=="uploading")return;const n=Math.round(r.loaded*100/r.total);a.status.progress!==n&&this.updateFile(o,a.setStatus({type:"uploading",cancelToken:a.status.cancelToken,progress:n}))},this.reset=()=>{this.setState({files:[],imgSrc:null})},this.uploadFile=(r,o)=>{const a=W.CancelToken.source(),n=new L(o.name,o.size,this.nextLocalFileId(),{type:"uploading",cancelToken:a,progress:1});this.addFile(n),this.props.uploadClient.uploadFile(this.props.element,r.uploadUrl,o,s=>this.onUploadProgress(s,n.id),a.token).then(()=>this.onUploadComplete(n.id,r)).catch(s=>{W.isCancel(s)||this.updateFile(n.id,n.setStatus({type:"error",errorMessage:s?s.toString():"Unknown error"}))})},this.state=this.initialValue}get initialValue(){const l={files:[],imgSrc:null,shutter:!1,minShutterEffectPassed:!0,clearPhotoInProgress:!1,facingMode:F.USER},{widgetMgr:r,element:o}=this.props,a=r.getFileUploaderStateValue(o);if(P(a))return l;const{uploadedFileInfo:n}=a;return P(n)||n.length===0?l:{files:n.map(s=>{const f=s.name,g=s.size,C=s.fileId,U=s.fileUrls;return new L(f,g,this.nextLocalFileId(),{type:"uploaded",fileId:C,fileUrls:U})}),imgSrc:n.length===0?"":this.RESTORED_FROM_WIDGET_STRING,shutter:!1,minShutterEffectPassed:!1,clearPhotoInProgress:!1,facingMode:F.USER}}componentWillUnmount(){this.formClearHelper.disconnect()}get status(){const l=r=>r.status.type==="uploading";return this.state.files.some(l)?"updating":"ready"}componentDidMount(){const l=this.createWidgetValue(),{element:r,widgetMgr:o,fragmentId:a}=this.props;o.getFileUploaderStateValue(r)===void 0&&o.setFileUploaderStateValue(r,l,{fromUi:!1},a)}createWidgetValue(){const l=this.state.files.filter(r=>r.status.type==="uploaded").map(r=>{const{name:o,size:a,status:n}=r;return new de({fileId:n.fileId,fileUrls:n.fileUrls,name:o,size:a})});return new ce({uploadedFileInfo:l})}render(){var n;const{element:l,widgetMgr:r,disabled:o,width:a}=this.props;return this.formClearHelper.manageFormClearListener(r,l.formId,this.onFormCleared),R(G,{className:"stCameraInput","data-testid":"stCameraInput",children:[h(he,{label:l.label,disabled:o,labelVisibility:ue((n=l.labelVisibility)==null?void 0:n.value),children:l.help&&h(fe,{children:h(pe,{content:l.help,placement:z.TOP_RIGHT})})}),this.state.imgSrc?R(ge,{children:[h(V,{width:a,children:this.state.imgSrc!==this.RESTORED_FROM_WIDGET_STRING&&h(Me,{src:this.state.imgSrc,alt:"Snapshot",opacity:this.state.shutter||!this.state.minShutterEffectPassed?"50%":"100%",width:a,height:a*9/16})}),h(q,{onClick:this.removeCapture,progress:this.getProgress(),disabled:!!this.getProgress()||o,children:this.getProgress()?"Uploading...":R(Ue,{children:[h(O,{content:H,margin:"0 xs 0 0",size:"sm"})," Clear photo"]})})]}):h(je,{handleCapture:this.handleCapture,width:a,disabled:o,clearPhotoInProgress:this.state.clearPhotoInProgress,setClearPhotoInProgress:this.setClearPhotoInProgress,facingMode:this.state.facingMode,setFacingMode:this.setFacingMode,testOverride:this.props.testOverride})]})}nextLocalFileId(){return this.localFileIdCounter++}}function We(t,l){return fetch(t).then(r=>r.arrayBuffer()).then(r=>new File([r],l,{type:"image/jpeg"}))}export{$e as default};
@@ -1,3 +0,0 @@
1
- import{bq as P,bD as ve,br as O,r as u,y as me,C as ne,j as R,bu as ye,bn as $e,b6 as Oe,bo as Re,ay as oe,bm as _e}from"./index.DeuQX1T6.js";import{a as Pe}from"./useBasicWidgetState.e9cw5rKa.js";import"./FormClearHelper.Dha_cfuU.js";var ie={vertical:"vertical",horizontal:"horizontal"};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(r){_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=0,I=1,L=2;function B(e){return e.$isActive?L:e.$isHovered?I:E}function we(e){var t=e.$theme.colors,n=e.$disabled,r=e.$checked,o=e.$isFocusVisible,i=e.$error;if(n)return t.tickFillDisabled;if(r)if(i)switch(B(e)){case E:return t.tickFillErrorSelected;case I:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(B(e)){case E:return t.tickFillSelected;case I:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return o?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function Se(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(B(e)){case E:return t.tickFillError;case I:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(B(e)){case E:return t.tickFill;case I:return t.tickFillHover;case L:return t.tickFillActive}}function Me(e){var t=e.$labelPlacement,n=t===void 0?"":t,r=e.$theme,o;switch(n){case"top":o="Bottom";break;case"bottom":o="Top";break;case"left":o=r.direction==="rtl"?"Left":"Right";break;default:case"right":o=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,s=i.scale300;return _({},"padding".concat(o),s)}function ke(e){var t=e.$disabled,n=e.$theme,r=n.colors;return t?r.contentSecondary:r.contentPrimary}var q=P("div",function(e){var t=e.$disabled,n=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:n==="horizontal"?"row":"column",alignItems:n==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});q.displayName="RadioGroupRoot";q.displayName="RadioGroupRoot";var X=P("label",function(e){var t,n=e.$disabled,r=e.$hasDescription,o=e.$labelPlacement,i=e.$theme,s=e.$align,a=i.sizing,c=s==="horizontal",h=i.direction==="rtl"?"Left":"Right";return t={flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:n?"not-allowed":"pointer",marginTop:a.scale200},_(t,"margin".concat(h),c?a.scale200:null),_(t,"marginBottom",r&&!c?null:a.scale200),t});X.displayName="Root";X.displayName="Root";var K=P("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{backgroundColor:Se(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});K.displayName="RadioMarkInner";K.displayName="RadioMarkInner";var J=P("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:we(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve}});J.displayName="RadioMarkOuter";J.displayName="RadioMarkOuter";var Q=P("div",function(e){var t=e.$theme.typography;return D(D({verticalAlign:"middle"},Me(e)),{},{color:ke(e)},t.LabelMedium)});Q.displayName="Label";Q.displayName="Label";var Y=P("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});Y.displayName="Input";Y.displayName="Input";var Z=P("div",function(e){var t,n=e.$theme,r=e.$align,o=r==="horizontal",i=n.direction==="rtl"?"Right":"Left",s=n.direction==="rtl"?"Left":"Right";return D(D({},n.typography.ParagraphSmall),{},(t={color:n.colors.contentSecondary,cursor:"auto"},_(t,"margin".concat(i),r==="horizontal"?null:n.sizing.scale900),_(t,"margin".concat(s),o?n.sizing.scale200:null),_(t,"maxWidth","240px"),t))});Z.displayName="Description";Z.displayName="Description";function N(e){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(e)}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function Fe(e,t){return Te(e)||Le(e,t)||Ie(e,t)||Ee()}function Ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(e,t){if(e){if(typeof e=="string")return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}}function se(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Le(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,a=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Te(e){if(Array.isArray(e))return e}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t,n){return t&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t){if(typeof t!="function"&&t!==null)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&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},U(e,t)}function Be(e){var t=ze();return function(){var r=C(e),o;if(t){var i=C(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ce(this,o)}}function Ce(e,t){if(t&&(N(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=function(e){De(n,e);var t=Be(n);function n(){var r;Ae(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),x(j(r),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),x(j(r),"handleFocus",function(a,c){ve(a)&&r.setState({isFocusVisible:!0}),r.setState({focusedRadioIndex:c}),r.props.onFocus&&r.props.onFocus(a)}),x(j(r),"handleBlur",function(a,c){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1}),r.setState({focusedRadioIndex:-1}),r.props.onBlur&&r.props.onBlur(a)}),r}return xe(n,[{key:"render",value:function(){var o=this,i=this.props.overrides,s=i===void 0?{}:i,a=O(s.RadioGroupRoot,q),c=Fe(a,2),h=c[0],b=c[1];return u.createElement(h,V({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},b),u.Children.map(this.props.children,function(p,f){if(!u.isValidElement(p))return null;var l=o.props.value===p.props.value;return u.cloneElement(p,{align:o.props.align,autoFocus:o.props.autoFocus,checked:l,disabled:o.props.disabled||p.props.disabled,error:o.props.error,isFocused:o.state.focusedRadioIndex===f,isFocusVisible:o.state.isFocusVisible,tabIndex:f===0&&!o.props.value||l?"0":"-1",labelPlacement:o.props.labelPlacement,name:o.props.name,onBlur:function(d){return o.handleBlur(d,f)},onFocus:function(d){return o.handleFocus(d,f)},onChange:o.props.onChange,onMouseEnter:o.props.onMouseEnter,onMouseLeave:o.props.onMouseLeave})}))}}]),n}(u.Component);x(ue,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function G(e){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function M(e,t){return Ue(e)||Ve(e,t)||Ne(e,t)||He()}function He(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e,t){if(e){if(typeof e=="string")return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(e,t)}}function le(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,a=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Ue(e){if(Array.isArray(e))return e}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t,n){return t&&We(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xe(e,t){if(typeof t!="function"&&t!==null)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&&W(e,t)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},W(e,t)}function Ke(e){var t=Qe();return function(){var r=z(e),o;if(t){var i=z(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Je(this,o)}}function Je(e,t){if(t&&(G(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},z(e)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){return e==="top"||e==="left"}function Ze(e){return e==="bottom"||e==="right"}var et=function(t){return t.stopPropagation()},ce=function(e){Xe(n,e);var t=Ke(n);function n(){var r;Ge(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),F(k(r),"state",{isActive:!1,isHovered:!1}),F(k(r),"onMouseEnter",function(a){r.setState({isHovered:!0}),r.props.onMouseEnter&&r.props.onMouseEnter(a)}),F(k(r),"onMouseLeave",function(a){r.setState({isHovered:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(a)}),F(k(r),"onMouseDown",function(a){r.setState({isActive:!0}),r.props.onMouseDown&&r.props.onMouseDown(a)}),F(k(r),"onMouseUp",function(a){r.setState({isActive:!1}),r.props.onMouseUp&&r.props.onMouseUp(a)}),r}return qe(n,[{key:"componentDidMount",value:function(){var o;this.props.autoFocus&&(o=this.props.inputRef)!==null&&o!==void 0&&o.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,s=O(i.Root,X),a=M(s,2),c=a[0],h=a[1],b=O(i.Label,Q),p=M(b,2),f=p[0],l=p[1],$=O(i.Input,Y),d=M($,2),T=d[0],H=d[1],w=O(i.Description,Z),A=M(w,2),v=A[0],g=A[1],m=O(i.RadioMarkInner,K),ee=M(m,2),pe=ee[0],fe=ee[1],de=O(i.RadioMarkOuter,J),te=M(de,2),he=te[0],be=te[1],S={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},re=u.createElement(f,y({},S,l),this.props.containsInteractiveElement?u.createElement("div",{onClick:function(ge){return ge.preventDefault()}},this.props.children):this.props.children);return u.createElement(u.Fragment,null,u.createElement(c,y({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},S,h),Ye(this.props.labelPlacement)&&re,u.createElement(he,y({},S,be),u.createElement(pe,y({},S,fe))),u.createElement(T,y({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:et,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},S,H)),Ze(this.props.labelPlacement)&&re),!!this.props.description&&u.createElement(v,y({},S,g),this.props.description))}}]),n}(u.Component);F(ce,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:u.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function tt({disabled:e,horizontal:t,width:n,value:r,onChange:o,options:i,captions:s,label:a,labelVisibility:c,help:h}){const[b,p]=u.useState(r??null);u.useEffect(()=>{r!==b&&p(r??null)},[r]);const f=u.useCallback(v=>{const g=parseInt(v.target.value,10);p(g),o(g)},[o]),l=me(),$={width:n},d=s.length>0,T=i.length>0,H=T?i:["No options to select."],w=e||!T,A=v=>v==""&&t&&d?"&nbsp;":v;return ne("div",{className:"stRadio","data-testid":"stRadio",style:$,children:[R(Re,{label:a,disabled:w,labelVisibility:c,children:h&&R(ye,{children:R($e,{content:h,placement:Oe.TOP_RIGHT})})}),R(ue,{onChange:f,value:b!==null?b.toString():void 0,disabled:w,align:t?ie.horizontal:ie.vertical,"aria-label":a,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:d?l.spacing.sm:l.spacing.none,minHeight:l.sizes.minElementHeight}}},children:H.map((v,g)=>ne(ce,{value:g.toString(),overrides:{Root:{style:({$isFocusVisible:m})=>({marginBottom:l.spacing.none,marginTop:l.spacing.none,marginRight:d?l.spacing.sm:l.spacing.lg,paddingLeft:l.spacing.none,alignItems:"start",paddingRight:l.spacing.threeXS,backgroundColor:m?l.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:m})=>({width:l.sizes.checkbox,height:l.sizes.checkbox,marginTop:"0.35rem",marginRight:l.spacing.none,marginLeft:l.spacing.none,backgroundColor:m&&!w?l.colors.primary:l.colors.fadedText40})},RadioMarkInner:{style:({$checked:m})=>({height:m?"37.5%":`calc(${l.sizes.checkbox} - ${l.spacing.threeXS})`,width:m?"37.5%":`calc(${l.sizes.checkbox} - ${l.spacing.threeXS})`})},Label:{style:{color:w?l.colors.fadedText40:l.colors.bodyText,position:"relative",top:l.spacing.px}}},children:[R(oe,{source:v,allowHTML:!1,isLabel:!0,largerLabel:!0}),d&&R(oe,{source:A(s[g]),allowHTML:!1,isCaption:!0,isLabel:!0})]},g))})]})}const rt=u.memo(tt);function nt({disabled:e,element:t,widgetMgr:n,width:r,fragmentId:o}){const[i,s]=Pe({getStateFromWidgetMgr:ot,getDefaultStateFromProto:it,getCurrStateFromProto:at,updateWidgetMgrState:st,element:t,widgetMgr:n,fragmentId:o}),a=u.useCallback($=>{s({value:$,fromUi:!0})},[s]),{horizontal:c,options:h,captions:b,label:p,labelVisibility:f,help:l}=t;return R(rt,{label:p,onChange:a,options:h,captions:b,width:r,disabled:e,horizontal:c,labelVisibility:_e(f==null?void 0:f.value),value:i??null,help:l})}function ot(e,t){return e.getIntValue(t)}function it(e){return e.default??null}function at(e){return e.value??null}function st(e,t,n,r){t.setIntValue(e,n.value??null,{fromUi:n.fromUi},r)}const ft=u.memo(nt);export{ft as default};
@@ -1 +0,0 @@
1
- import{r as o,E as X,_ as q,n as x,y as lt,cl as ut,M as J,cv as I,K as f,C as z,j as c,bm as ct,bz as dt,bn as pt,b6 as ft,bo as bt,bj as K,an as mt}from"./index.DeuQX1T6.js";import{s as gt}from"./sprintf.D7DtBTRn.js";import{u as yt}from"./uniqueId.B4ugkryR.js";import{u as It}from"./FormClearHelper.Dha_cfuU.js";import{I as ht}from"./InputInstructions.C_m6JNSV.js";import{I as Tt}from"./input.D-b9-dhW.js";import"./base-input.B_U9Mij-.js";var Q=o.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return o.createElement(X,q({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),o.createElement("path",{d:"M0 3v2h8V3H0z"}))});Q.displayName="Minus";var Y=o.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return o.createElement(X,q({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),o.createElement("path",{d:"M3 0v3H0v2h3v3h2V5h3V3H5V0H3z"}))});Y.displayName="Plus";const Ct=x("div",{target:"e5tuigk0"})(({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}}})),wt=x("div",{target:"e5tuigk1"})({display:"flex",flexDirection:"row",alignSelf:"stretch"}),M=x("button",{target:"e5tuigk2"})(({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"},"&:last-of-type":{borderTopRightRadius:t.radii.default,borderBottomRightRadius:t.radii.default},"&:disabled":{cursor:"not-allowed",color:t.colors.fadedText40}})),vt=x("div",{target:"e5tuigk3"})(({theme:t,clearable:e})=>({position:"absolute",marginRight:t.spacing.twoXS,left:0,right:`calc(${t.sizes.numberInputControlsWidth} * 2 + ${e?"1em":"0em"})`})),St=mt.getLogger("NumberInput");function Vt(t){return f(t)||t===""?void 0:t}const kt=t=>(t.element.dataType===I.DataType.INT?t.widgetMgr.getIntValue(t.element):t.widgetMgr.getDoubleValue(t.element))??t.element.default??null,G=({step:t,dataType:e})=>t||(e===I.DataType.INT?1:.01),W=({value:t,format:e,step:r,dataType:h})=>{if(f(t))return null;let i=Vt(e);if(f(i)&&J(r)){const n=r.toString();h===I.DataType.FLOAT&&r!==0&&n.includes(".")&&(i=`%0.${n.split(".")[1].length}f`)}if(f(i))return t.toString();try{return gt.sprintf(i,t)}catch(n){return St.warn(`Error in sprintf(${i}, ${t}): ${n}`),String(t)}},xt=(t,e,r)=>f(t)?!1:t-e>=r,Rt=(t,e,r)=>f(t)?!1:t+e<=r,Dt=({disabled:t,element:e,widgetMgr:r,width:h,fragmentId:i})=>{var O;const n=lt(),{dataType:w,id:R,formId:p,default:B,format:A}=e,b=e.hasMin?e.min:-1/0,m=e.hasMax?e.max:1/0,[s,Z]=o.useState(G(e)),H=kt({element:e,widgetMgr:r}),[g,T]=o.useState(!1),[l,C]=o.useState(H),[P,v]=o.useState(W({value:H,...e,step:s})),[L,U]=o.useState(!1),D=o.useRef(null),$=o.useRef(yt("number_input_")),S=xt(l,s,b),V=Rt(l,s,m),j=ut({formId:p}),tt=j?r.allowFormEnterToSubmit(p):g,et=L&&h>n.breakpoints.hideWidgetDetails;o.useEffect(()=>{Z(G({step:e.step,dataType:e.dataType}))},[e.dataType,e.step]);const u=o.useCallback(({value:a,source:d})=>{var y;if(J(a)&&(b>a||a>m))(y=D.current)==null||y.reportValidity();else{const k=a??B??null;switch(w){case I.DataType.INT:r.setIntValue({id:R,formId:p},k,d,i);break;case I.DataType.FLOAT:r.setDoubleValue({id:R,formId:p},k,d,i);break;default:throw new Error("Invalid data type")}T(!1),C(k),v(W({value:k,dataType:w,format:A,step:s}))}},[b,m,D,r,i,s,w,R,p,B,A]),ot=o.useCallback(()=>{g&&u({value:l,source:{fromUi:!0}}),U(!1)},[g,l,u]),rt=o.useCallback(()=>{U(!0)},[]),_=o.useCallback(()=>{const{value:a}=e;e.setValue=!1,C(a??null),v(W({value:a??null,...e,step:s})),u({value:a??null,source:{fromUi:!1}})},[e,s,u]);o.useEffect(()=>{e.setValue?_():u({value:l,source:{fromUi:!1}})},[]),e.setValue&&_();const E=f(e.default)&&!t,nt=o.useCallback(()=>{const a=e.default??null;C(a),u({value:a,source:{fromUi:!0}})},[e]);It({element:e,widgetMgr:r,onFormCleared:nt});const at=a=>{const{value:d}=a.target;if(d==="")T(!0),C(null),v(null);else{let y;e.dataType===I.DataType.INT?y=parseInt(d,10):y=parseFloat(d),T(!0),C(y),v(d)}},F=o.useCallback(()=>{V&&(T(!0),u({value:(l??b)+s,source:{fromUi:!0}}))},[l,b,s,V]),N=o.useCallback(()=>{S&&(T(!0),u({value:(l??m)-s,source:{fromUi:!0}}))},[l,m,s,S]),st=o.useCallback(a=>{const{key:d}=a;switch(d){case"ArrowUp":a.preventDefault(),F();break;case"ArrowDown":a.preventDefault(),N();break}},[F,N]),it=o.useCallback(a=>{a.key==="Enter"&&(g&&u({value:l,source:{fromUi:!0}}),r.allowFormEnterToSubmit(p)&&r.submitForm(p,i))},[g,l,u,r,p,i]);return z("div",{className:"stNumberInput","data-testid":"stNumberInput",style:{width:h},children:[c(bt,{label:e.label,disabled:t,labelVisibility:ct((O=e.labelVisibility)==null?void 0:O.value),htmlFor:$.current,children:e.help&&c(dt,{children:c(pt,{content:e.help,placement:ft.TOP_RIGHT})})}),z(Ct,{className:L?"focused":"","data-testid":"stNumberInputContainer",children:[c(Tt,{type:"number",inputRef:D,value:P??"",placeholder:e.placeholder,onBlur:ot,onFocus:rt,onChange:at,onKeyPress:it,onKeyDown:st,clearable:E,clearOnEscape:E,disabled:t,"aria-label":e.label,id:$.current,overrides:{ClearIconContainer:{style:{padding:0}},ClearIcon:{props:{overrides:{Svg:{style:{color:n.colors.darkGray,padding:n.spacing.threeXS,height:n.sizes.clearIconSize,width:n.sizes.clearIconSize,":hover":{fill:n.colors.bodyText}}}}}},Input:{props:{"data-testid":"stNumberInputField",step:s,min:b,max:m,type:"number",inputMode:""},style:{lineHeight:n.lineHeights.inputWidget,paddingRight:n.spacing.sm,paddingLeft:n.spacing.sm,paddingBottom:n.spacing.sm,paddingTop:n.spacing.sm}},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}}}}),h>n.breakpoints.hideNumberInputControls&&z(wt,{children:[c(M,{"data-testid":"stNumberInputStepDown",onClick:N,disabled:!S||t,tabIndex:-1,children:c(K,{content:Q,size:"xs",color:S?"inherit":n.colors.disabled})}),c(M,{"data-testid":"stNumberInputStepUp",onClick:F,disabled:!V||t,tabIndex:-1,children:c(K,{content:Y,size:"xs",color:V?"inherit":n.colors.disabled})})]})]}),et&&c(vt,{clearable:E,children:c(ht,{dirty:g,value:P??"",inForm:j,allowEnterToSubmit:tt})})]})},Ht=o.memo(Dt);export{Ht as default};
@@ -1 +0,0 @@
1
- import{n as o,bh as S,i as x,r as u,R as d,j as r,C as f,b$ as g,ay as $}from"./index.DeuQX1T6.js";const m=o(S,{shouldForwardProp:x,target:"e1xotax90"})(({theme:e})=>({fontSize:e.fontSizes.sm,width:e.sizes.spinnerSize,height:e.sizes.spinnerSize,borderWidth:e.sizes.spinnerThickness,justifyContents:"center",padding:e.spacing.none,margin:e.spacing.none,borderColor:e.colors.borderColor,borderTopColor:e.colors.secondary,flexGrow:0,flexShrink:0})),T=o("div",{target:"e1xotax91"})(({theme:e,width:t,cache:n})=>({width:t,...n?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),h=o("div",{target:"e1xotax92"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),y=o("div",{target:"e1xotax93"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),b=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60;if(t===0&&n===0)return`(${s.toFixed(1)} seconds)`;if(t===0){const l=`${n} minute${n===1?"":"s"}`,p=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${l}${p})`}const i=`${t} hour${t===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${i}${a}${c})`};function z({width:e,element:t}){const{cache:n,showTime:s}=t,[i,a]=d.useState(0);return d.useEffect(()=>{if(!s)return;const c=setInterval(()=>{a(l=>l+.1)},100);return()=>clearInterval(c)},[s]),r(T,{className:g({stSpinner:!0,stCacheSpinner:n}),"data-testid":"stSpinner",width:e,cache:n,children:f(y,{children:[r(m,{}),r($,{source:t.text,allowHTML:!1}),s&&r(h,{children:b(i)})]})})}const w=u.memo(z);export{w as default};
@@ -1 +0,0 @@
1
- import{n as a,r as t,C as o,j as r,ay as i}from"./index.DeuQX1T6.js";import{P as l}from"./ProgressBar.CXgDz0lS.js";const n=a("div",{target:"e1675qd10"})(({theme:s})=>({paddingBottom:s.spacing.sm,lineHeight:"normal"}));function d({element:s,width:e}){return o("div",{className:"stProgress","data-testid":"stProgress",children:[r(n,{children:r(i,{source:s.text,allowHTML:!1,isLabel:!0})}),r(l,{value:s.value,width:e})]})}const c=t.memo(d);export{c as default};
@@ -1 +0,0 @@
1
- import{r as b,R as B,az as p,b2 as i,j as e,b3 as h,bk as w,b1 as D,b4 as k}from"./index.DeuQX1T6.js";import{c as R}from"./createDownloadLinkElement.DZMwyjvU.js";function C(n,o,t){return R({enforceDownloadInNewTab:t,url:n.buildMediaURL(o),filename:""})}function L(n){const{disabled:o,element:t,widgetMgr:s,width:l,endpoints:r,fragmentId:d}=n,c={width:l},{libConfig:{enforceDownloadInNewTab:u=!1}}=B.useContext(p);let a=i.SECONDARY;t.type==="primary"?a=i.PRIMARY:t.type==="tertiary"&&(a=i.TERTIARY);const f=()=>{s.setTriggerValue(t,{fromUi:!0},d),C(r,t.url,u).click()},m=t.help?l:!0;return e("div",{className:"stDownloadButton","data-testid":"stDownloadButton",style:c,children:e(h,{help:t.help,children:e(w,{kind:a,size:D.SMALL,disabled:o,onClick:f,fluidWidth:t.useContainerWidth?m:!1,children:e(k,{icon:t.icon,label:t.label})})})})}const T=b.memo(L);export{T as default};
@@ -1 +0,0 @@
1
- import{r as s,y as U,cl as T,C as k,j as l,bm as A,bz as L,bn as P,b6 as B,bo as D}from"./index.DeuQX1T6.js";import{u as j}from"./uniqueId.B4ugkryR.js";import{u as _,a as K,b as O}from"./useOnInputChange.CHDPgswc.js";import{I as $}from"./InputInstructions.C_m6JNSV.js";import{a as q}from"./useBasicWidgetState.e9cw5rKa.js";import{T as G}from"./textarea.YeGMY3Ts.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.Dha_cfuU.js";import"./base-input.B_U9Mij-.js";const W=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,w=a=>a.value??null,J=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},Q=({disabled:a,element:t,widgetMgr:o,fragmentId:u,width:h})=>{var x;const b=s.useRef(j("text_area_")).current,[r,n]=s.useState(!1),[S,g]=s.useState(!1),[i,d]=s.useState(W(o,t)??null),y=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[I,c]=q({getStateFromWidgetMgr:W,getDefaultStateFromProto:N,getCurrStateFromProto:w,updateWidgetMgrState:J,element:t,widgetMgr:o,fragmentId:u,onFormCleared:y});_(I,i,d,r);const e=U(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),C=s.useCallback(()=>{r&&m(),g(!1)},[r,m]),V=s.useCallback(()=>{g(!0)},[]),F=K({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),v=O(t.formId,m,r,o,u,!0),z={width:h},{height:f,placeholder:E,formId:p}=t,H=T({formId:p})?o.allowFormEnterToSubmit(p):r,R=S&&h>e.breakpoints.hideWidgetDetails;return k("div",{className:"stTextArea","data-testid":"stTextArea",style:z,children:[l(D,{label:t.label,disabled:a,labelVisibility:A((x=t.labelVisibility)==null?void 0:x.value),htmlFor:b,children:t.help&&l(L,{children:l(P,{content:t.help,placement:B.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:E,onBlur:C,onFocus:V,onChange:F,onKeyDown:v,"aria-label":t.label,disabled:a,id:b,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),R&&l($,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:T({formId:p}),allowEnterToSubmit:H})]})},rt=s.memo(Q);export{rt as default};
@@ -1 +0,0 @@
1
- import{r as p,E as P,_ as z,n as I,C as u,j as r,b2 as U,bj as g,cj as E,bk as y,ck as L,aV as B,F as k,R as N,aw as W,be as T,K as h,bg as D,bf as H,bm as A,bz as R,bn as $,b6 as O,bo as X}from"./index.DeuQX1T6.js";import{a as S}from"./index.DW_MHI2K.js";import{F as _}from"./FormClearHelper.Dha_cfuU.js";import{S as x,I as j,b as K,c as q,d as G,C as J,e as Q,f as Y,h as Z,i as ee,g as b,F as f,j as te,k as se,l as ie,s as le,m as ae,n as re}from"./FileDropzone.DRcTUuNN.js";import{S as ne,P as oe}from"./ProgressBar.CXgDz0lS.js";import{u as de}from"./Hooks.BrulV197.js";import{U as m}from"./UploadFileInfo.C-jY39rj.js";var C=p.forwardRef(function(l,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(P,z({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},l,{ref:o}),p.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))});C.displayName="Error";const ce=I("div",{target:"egc9vxm0"})(({theme:l})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:l.spacing.twoXS,marginBottom:l.spacing.twoXS})),pe=I("div",{target:"egc9vxm1"})(({theme:l})=>({display:"flex",alignItems:"center",justifyContent:"center",color:l.colors.fadedText40})),ue=({currentPage:l,totalPages:o,onNext:e,onPrevious:t})=>u(ce,{"data-testid":"stFileUploaderPagination",children:[r(x,{children:`Showing page ${l} of ${o}`}),u(pe,{children:[r(y,{onClick:t,kind:U.MINIMAL,children:r(g,{content:E,size:"xl"})}),r(y,{onClick:e,kind:U.MINIMAL,children:r(g,{content:L,size:"xl"})})]})]}),w=(l,o)=>Math.ceil(l.length/o),he=l=>B(({pageSize:e,items:t,resetOnAdd:s,...a})=>{const[i,n]=p.useState(0),[d,F]=p.useState(w(t,e)),c=de(t);p.useEffect(()=>{c&&c.length!==t.length&&F(w(t,e)),c&&c.length<t.length?s&&n(0):i+1>=d&&n(d-1)},[t,i,e,c,s,d]);const v=()=>{n(Math.min(i+1,d-1))},M=()=>{n(Math.max(0,i-1))},V=t.slice(i*e,i*e+e);return u(k,{children:[r(l,{items:V,...a}),t.length>e?r(ue,{pageSize:e,totalPages:d,currentPage:i+1,onNext:v,onPrevious:M}):null]})},l),ge=({fileInfo:l})=>l.status.type==="uploading"?r(oe,{value:l.status.progress,size:ne.SMALL}):l.status.type==="error"?u(ee,{children:[r(Y,{"data-testid":"stFileUploaderFileErrorMessage",children:l.status.errorMessage}),r(Z,{children:r(g,{content:C,size:"lg"})})]}):l.status.type==="uploaded"?r(x,{children:b(l.size,f.Byte)}):null,me=({fileInfo:l,onDelete:o})=>u(Q,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[r(K,{children:r(g,{content:j,size:"twoXL"})}),u(q,{className:"stFileUploaderFileData",children:[r(G,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:l.name,children:l.name}),r(ge,{fileInfo:l})]}),r("div",{"data-testid":"stFileUploaderDeleteBtn",children:r(y,{onClick:()=>o(l.id),kind:U.MINIMAL,children:r(g,{content:J,size:"lg"})})})]}),fe=({items:l,onDelete:o})=>r(ie,{children:l.map(e=>r(se,{children:r(me,{fileInfo:e,onDelete:o})},e.id))}),Fe=he(fe),Ue=l=>r(te,{children:r(Fe,{...l})});class ye extends N.PureComponent{constructor(o){super(o),this.formClearHelper=new _,this.localFileIdCounter=1,this.forceUpdatingStatus=!1,this.componentDidUpdate=()=>{if(this.status!=="ready")return;const e=this.createWidgetValue(),{element:t,widgetMgr:s,fragmentId:a}=this.props,i=s.getFileUploaderStateValue(t);W(e,i)||s.setFileUploaderStateValue(t,e,{fromUi:!0},a)},this.reset=()=>{this.setState({files:[]})},this.dropHandler=(e,t)=>{const{element:s}=this.props,{multipleFiles:a}=s;if(!a&&e.length===0&&t.length>1){const i=t.findIndex(n=>n.errors.length===1&&n.errors[0].code==="too-many-files");i>=0&&(e.push(t[i].file),t.splice(i,1))}if(this.props.uploadClient.fetchFileURLs(e).then(i=>{if(!a&&e.length>0){const n=this.state.files.find(d=>d.status.type!=="error");n&&(this.forceUpdatingStatus=!0,this.deleteFile(n.id),this.forceUpdatingStatus=!1)}T(i,e).forEach(([n,d])=>{this.uploadFile(n,d)})}).catch(i=>{this.addFiles(e.map(n=>new m(n.name,n.size,this.nextLocalFileId(),{type:"error",errorMessage:i})))}),t.length>0){const i=t.map(n=>{const{file:d}=n;return new m(d.name,d.size,this.nextLocalFileId(),{type:"error",errorMessage:this.getErrorMessage(n.errors[0].code,n.file)})});this.addFiles(i)}},this.uploadFile=(e,t)=>{const s=S.CancelToken.source(),a=new m(t.name,t.size,this.nextLocalFileId(),{type:"uploading",cancelToken:s,progress:1});this.addFile(a),this.props.uploadClient.uploadFile(this.props.element,e.uploadUrl,t,i=>this.onUploadProgress(i,a.id),s.token).then(()=>this.onUploadComplete(a.id,e)).catch(i=>{S.isCancel(i)||this.updateFile(a.id,a.setStatus({type:"error",errorMessage:i?i.toString():"Unknown error"}))})},this.onUploadComplete=(e,t)=>{const s=this.getFile(e);h(s)||s.status.type!=="uploading"||this.updateFile(s.id,s.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},this.getErrorMessage=(e,t)=>{switch(e){case"file-too-large":return`File must be ${b(this.maxUploadSizeInBytes,f.Byte)} or smaller.`;case"file-invalid-type":return`${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."}},this.deleteFile=e=>{const t=this.getFile(e);h(t)||(t.status.type==="uploading"&&t.status.cancelToken.cancel(),t.status.type==="uploaded"&&t.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),this.removeFile(e))},this.addFile=e=>{this.setState(t=>({files:[...t.files,e]}))},this.addFiles=e=>{this.setState(t=>({files:[...t.files,...e]}))},this.removeFile=e=>{this.setState(t=>({files:t.files.filter(s=>s.id!==e)}))},this.getFile=e=>this.state.files.find(t=>t.id===e),this.updateFile=(e,t)=>{this.setState(s=>({files:s.files.map(a=>a.id===e?t:a)}))},this.onUploadProgress=(e,t)=>{const s=this.getFile(t);if(h(s)||s.status.type!=="uploading")return;const a=Math.round(e.loaded*100/e.total);s.status.progress!==a&&this.updateFile(t,s.setStatus({type:"uploading",cancelToken:s.status.cancelToken,progress:a}))},this.onFormCleared=()=>{this.setState({files:[]},()=>{const e=this.createWidgetValue();if(h(e))return;const{widgetMgr:t,element:s,fragmentId:a}=this.props;t.setFileUploaderStateValue(s,e,{fromUi:!0},a)})},this.state=this.initialValue}get initialValue(){const o={files:[],newestServerFileId:0},{widgetMgr:e,element:t}=this.props,s=e.getFileUploaderStateValue(t);if(h(s))return o;const{uploadedFileInfo:a}=s;return h(a)||a.length===0?o:{files:a.map(i=>{const n=i.name,d=i.size,F=i.fileId,c=i.fileUrls;return new m(n,d,this.nextLocalFileId(),{type:"uploaded",fileId:F,fileUrls:c})})}}componentWillUnmount(){this.formClearHelper.disconnect()}get maxUploadSizeInBytes(){const o=this.props.element.maxUploadSizeMb;return le(o,f.Megabyte,f.Byte)}get status(){const o=e=>e.status.type==="uploading";return this.state.files.some(o)||this.forceUpdatingStatus?"updating":"ready"}componentDidMount(){const o=this.createWidgetValue(),{element:e,widgetMgr:t,fragmentId:s}=this.props;t.getFileUploaderStateValue(e)===void 0&&t.setFileUploaderStateValue(e,o,{fromUi:!1},s)}createWidgetValue(){const o=this.state.files.filter(e=>e.status.type==="uploaded").map(e=>{const{name:t,size:s,status:a}=e,{fileId:i,fileUrls:n}=a;return new D({fileId:i,fileUrls:n,name:t,size:s})});return new H({uploadedFileInfo:o})}render(){var d;const{files:o}=this.state,{element:e,disabled:t,widgetMgr:s,width:a}=this.props,i=e.type;this.formClearHelper.manageFormClearListener(s,e.formId,this.onFormCleared);const n=o.slice().reverse();return u(re,{className:"stFileUploader","data-testid":"stFileUploader",width:a,children:[r(X,{label:e.label,disabled:t,labelVisibility:A((d=e.labelVisibility)==null?void 0:d.value),children:e.help&&r(R,{children:r($,{content:e.help,placement:O.TOP_RIGHT})})}),r(ae,{onDrop:this.dropHandler,multiple:e.multipleFiles,acceptedExtensions:i,maxSizeBytes:this.maxUploadSizeInBytes,label:e.label,disabled:t}),n.length>0&&r(Ue,{items:n,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}nextLocalFileId(){return this.localFileIdCounter++}}const Me=p.memo(ye);export{Me as default};
@@ -1 +0,0 @@
1
- import{n,r as c,M as d,j as g,a_ as e,a$ as l,K as h}from"./index.DeuQX1T6.js";const m=n("iframe",{target:"e1q9bkxk0"})(({theme:o,disableScrolling:r})=>({colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:r?"hidden":void 0}));function a(o){return h(o)||o===""?void 0:o}function F({element:o,width:r}){const t=o.hasWidth?o.width:r,s=a(o.src),i=d(s)?void 0:a(o.srcdoc);return g(m,{className:"stIFrame","data-testid":"stIFrame",allow:l,disableScrolling:!o.scrolling,src:s,srcDoc:i,width:t,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:e,title:"st.iframe"})}const f=c.memo(F);export{f as default};