streamlit-nightly 1.52.3.dev20260107__py3-none-any.whl → 1.52.3.dev20260109__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 (127) hide show
  1. streamlit/components/v2/__init__.py +3 -3
  2. streamlit/components/v2/types.py +4 -4
  3. streamlit/config.py +14 -0
  4. streamlit/connections/__init__.py +5 -1
  5. streamlit/connections/snowflake_connection.py +203 -57
  6. streamlit/elements/lib/options_selector_utils.py +98 -0
  7. streamlit/elements/widgets/multiselect.py +19 -9
  8. streamlit/elements/widgets/selectbox.py +12 -24
  9. streamlit/proto/MetricsEvent_pb2.py +4 -4
  10. streamlit/proto/MetricsEvent_pb2.pyi +4 -1
  11. streamlit/proto/PageProfile_pb2.py +6 -6
  12. streamlit/proto/PageProfile_pb2.pyi +11 -1
  13. streamlit/runtime/connection_factory.py +25 -0
  14. streamlit/runtime/metrics_util.py +4 -0
  15. streamlit/runtime/runtime.py +3 -0
  16. streamlit/starlette.py +34 -0
  17. streamlit/static/index.html +1 -1
  18. streamlit/static/manifest.json +291 -291
  19. streamlit/static/static/js/{ErrorOutline.esm.D2r71uaM.js → ErrorOutline.esm.BcqUpfNe.js} +1 -1
  20. streamlit/static/static/js/{FileDownload.esm.BWEHU45R.js → FileDownload.esm.CtJWBuub.js} +1 -1
  21. streamlit/static/static/js/{FileHelper.bM5nEcHb.js → FileHelper.D0dQPhOs.js} +1 -1
  22. streamlit/static/static/js/{FormClearHelper.DrhgNNta.js → FormClearHelper.Cm3GDSk6.js} +1 -1
  23. streamlit/static/static/js/{InputInstructions.DPiGX0Th.js → InputInstructions.D7Hxdzwv.js} +1 -1
  24. streamlit/static/static/js/{Particles.NjZlN0Ji.js → Particles.vAUDtAR8.js} +1 -1
  25. streamlit/static/static/js/{ProgressBar.BC4DXqMl.js → ProgressBar.Dp2CGRba.js} +2 -2
  26. streamlit/static/static/js/{StreamlitSyntaxHighlighter.CbRgSaN7.js → StreamlitSyntaxHighlighter.DC0000nJ.js} +1 -1
  27. streamlit/static/static/js/{TableChart.esm.gttTfh7r.js → TableChart.esm.DDVoSKOT.js} +1 -1
  28. streamlit/static/static/js/{Toolbar.DO2JfHk1.js → Toolbar.CuMH-Gqe.js} +1 -1
  29. streamlit/static/static/js/{WidgetLabelHelpIconInline.NVlzvmTZ.js → WidgetLabelHelpIconInline.WAReecol.js} +1 -1
  30. streamlit/static/static/js/{base-input.CmG3KTuv.js → base-input.BX9Jll5o.js} +4 -4
  31. streamlit/static/static/js/{checkbox.cfHeGdGI.js → checkbox.BzMHUSz1.js} +1 -1
  32. streamlit/static/static/js/{createDownloadLinkElement.B59a5_bn.js → createDownloadLinkElement.CviG5BQx.js} +1 -1
  33. streamlit/static/static/js/{data-grid-overlay-editor.DpTe47v0.js → data-grid-overlay-editor.Dzo9A4l6.js} +1 -1
  34. streamlit/static/static/js/{downloader.CYtKIJ9J.js → downloader.DIDvj0d5.js} +1 -1
  35. streamlit/static/static/js/{embed.Dfyy6eKR.js → embed.C8qeQ38b.js} +6 -6
  36. streamlit/static/static/js/{es6.x2A9auGg.js → es6.Dpcc-U7U.js} +2 -2
  37. streamlit/static/static/js/{formatNumber.D8YUVHBi.js → formatNumber.CPvuaBa8.js} +1 -1
  38. streamlit/static/static/js/{iconPosition.C6Qxuo2L.js → iconPosition.y0q-Rqem.js} +1 -1
  39. streamlit/static/static/js/{iframeResizer.contentWindow.Q0Cy4mzM.js → iframeResizer.contentWindow.DblExdXF.js} +1 -1
  40. streamlit/static/static/js/{index.BICn75_M.js → index.B-g6lwYa.js} +1 -1
  41. streamlit/static/static/js/{index.CcpuNeOs.js → index.B10MmI2m.js} +1 -1
  42. streamlit/static/static/js/{index.BTcImDDt.js → index.B6vCS66f.js} +7 -7
  43. streamlit/static/static/js/{index.mRYkGVRy.js → index.B9TG5Ah8.js} +1 -1
  44. streamlit/static/static/js/{index.CEB-gMZu.js → index.BDb0PRvK.js} +1 -1
  45. streamlit/static/static/js/{index.WMC0NWRg.js → index.BGufEmCz.js} +1 -1
  46. streamlit/static/static/js/{index.DfXZgqLi.js → index.BItU4jMo.js} +1 -1
  47. streamlit/static/static/js/{index.Dmaco99Q.js → index.BPMqWDef.js} +1 -1
  48. streamlit/static/static/js/index.BTHi5W25.js +1 -0
  49. streamlit/static/static/js/{index.Bs9bS4ZQ.js → index.BVN9cI-k.js} +1 -1
  50. streamlit/static/static/js/index.BWOP7HFT.js +1 -0
  51. streamlit/static/static/js/{index.CzMaYu3-.js → index.BXYgO5B8.js} +1 -1
  52. streamlit/static/static/js/{index.BuCGo7-5.js → index.BZBWLU1C.js} +9 -9
  53. streamlit/static/static/js/{index.i5tC1QD-.js → index.BfZdZpv-.js} +2 -2
  54. streamlit/static/static/js/{index.72U0nUaY.js → index.Bxe7fKbw.js} +1 -1
  55. streamlit/static/static/js/{index.D2pbLWvp.js → index.C1ElSZEy.js} +1 -1
  56. streamlit/static/static/js/index.C26ZOVFL.js +1 -0
  57. streamlit/static/static/js/{index.DyL5do6X.js → index.C7lwRBvF.js} +1 -1
  58. streamlit/static/static/js/{index.DDUzbOzY.js → index.C93QGPyk.js} +1 -1
  59. streamlit/static/static/js/{index.WW20lmQl.js → index.CCDejIvL.js} +2 -2
  60. streamlit/static/static/js/index.CcMmNHAq.js +1 -0
  61. streamlit/static/static/js/index.D42y-GeO.js +1 -0
  62. streamlit/static/static/js/{index.Bmo0a9c3.js → index.D69ULFWq.js} +1 -1
  63. streamlit/static/static/js/{index.DltYrNjp.js → index.DB4MbQ40.js} +3 -3
  64. streamlit/static/static/js/{index.9lrRft8u.js → index.DRFJgBf-.js} +1 -1
  65. streamlit/static/static/js/{index.DzZhu8Ry.js → index.DTK-btqV.js} +1 -1
  66. streamlit/static/static/js/{index.CCkh_YSD.js → index.DZEQ0G7H.js} +1 -1
  67. streamlit/static/static/js/{index.Zffuf6-0.js → index.DaU1ayM7.js} +1 -1
  68. streamlit/static/static/js/{index.BA25ZBoD.js → index.Dla9XiNe.js} +2 -2
  69. streamlit/static/static/js/{index.AF9wK9Wi.js → index.DmQqT9OM.js} +1 -1
  70. streamlit/static/static/js/{index.5zBrLB5N.js → index.DppScppA.js} +1 -1
  71. streamlit/static/static/js/{index.DrHoCPek.js → index.Dr8b3Vn6.js} +2 -2
  72. streamlit/static/static/js/{index.BSULROGA.js → index.DvQ7-afx.js} +1 -1
  73. streamlit/static/static/js/{index.DMtSM2QJ.js → index.F-NmmwfK.js} +1 -1
  74. streamlit/static/static/js/{index.4evoB7lO.js → index.MKI8t7l2.js} +1 -1
  75. streamlit/static/static/js/{index.BtasgGzT.js → index.RRAKXgBZ.js} +1 -1
  76. streamlit/static/static/js/{index.9i44yl-A.js → index.VSsf6tsu.js} +2 -2
  77. streamlit/static/static/js/{index.CWEfMTRP.js → index.aEeM0ekc.js} +1 -1
  78. streamlit/static/static/js/{index.Cto6hKVz.js → index.eweE9HKU.js} +1 -1
  79. streamlit/static/static/js/{index.DFrG8naT.js → index.gr6yGiCL.js} +1 -1
  80. streamlit/static/static/js/{index.Dm8qt8Me.js → index.kKkHk9Mc.js} +1 -1
  81. streamlit/static/static/js/index.pMvzHC7z.js +1 -0
  82. streamlit/static/static/js/{index.DMgiqc8r.js → index.pgifwCIr.js} +1 -1
  83. streamlit/static/static/js/index.q83b8_8b.js +1 -0
  84. streamlit/static/static/js/index.u2AvcQQT.js +1 -0
  85. streamlit/static/static/js/{index.BHzkSOU6.js → index.w2_VrtVw.js} +1 -1
  86. streamlit/static/static/js/{index.4DpGzJxM.js → index.wv1DYVsn.js} +1 -1
  87. streamlit/static/static/js/{index.DemMZEQt.js → index.x4j6nnNb.js} +1 -1
  88. streamlit/static/static/js/{input.C76A8APa.js → input.BoJqOS7a.js} +1 -1
  89. streamlit/static/static/js/{main.CFbvktEv.js → main.B5XmUwmQ.js} +1 -1
  90. streamlit/static/static/js/{memory.BkhqbxJl.js → memory.9izgq54V.js} +1 -1
  91. streamlit/static/static/js/{number-overlay-editor.Dpeh6_Ag.js → number-overlay-editor.PqOGQcLn.js} +1 -1
  92. streamlit/static/static/js/{pandasStylerUtils.D8MDzfFI.js → pandasStylerUtils.DUtF2t3R.js} +1 -1
  93. streamlit/static/static/js/{sandbox.m1TYtBuF.js → sandbox.DgKTHPLO.js} +1 -1
  94. streamlit/static/static/js/{styled-components.yin3sIMA.js → styled-components.D4x8jmOI.js} +1 -1
  95. streamlit/static/static/js/{throttle.Df6MiNTy.js → throttle.DxEHIIp7.js} +1 -1
  96. streamlit/static/static/js/{timepicker.gcx4yeRx.js → timepicker.CDks5DWI.js} +1 -1
  97. streamlit/static/static/js/{toConsumableArray.Ca7RO9Jm.js → toConsumableArray.CvTQRsV-.js} +1 -1
  98. streamlit/static/static/js/uniqueId.RScLN3St.js +1 -0
  99. streamlit/static/static/js/{useBasicWidgetState.CRkPCtR5.js → useBasicWidgetState.D6_b0IqA.js} +1 -1
  100. streamlit/static/static/js/{useIntlLocale.CFOMULNz.js → useIntlLocale.Ctz17A7g.js} +1 -1
  101. streamlit/static/static/js/{useTextInputAutoExpand.9c205rhQ.js → useTextInputAutoExpand.PAFB5o1T.js} +1 -1
  102. streamlit/static/static/js/{useUpdateUiValue.SYJJuEJM.js → useUpdateUiValue.CcTvmGlb.js} +1 -1
  103. streamlit/static/static/js/{useWaveformController.CCs9fdSv.js → useWaveformController.vLi36Ir4.js} +1 -1
  104. streamlit/static/static/js/{withCalculatedWidth.MG9RY_Y-.js → withCalculatedWidth.BtA2jL5-.js} +1 -1
  105. streamlit/static/static/js/{withFullScreenWrapper.BgGLtZrC.js → withFullScreenWrapper.CeeoYBpc.js} +1 -1
  106. streamlit/web/bootstrap.py +105 -10
  107. streamlit/web/cli.py +21 -4
  108. streamlit/web/server/app_discovery.py +421 -0
  109. streamlit/web/server/server.py +0 -13
  110. streamlit/web/server/starlette/__init__.py +2 -1
  111. streamlit/web/server/starlette/starlette_app.py +326 -3
  112. streamlit/web/server/starlette/starlette_routes.py +27 -8
  113. {streamlit_nightly-1.52.3.dev20260107.dist-info → streamlit_nightly-1.52.3.dev20260109.dist-info}/METADATA +1 -1
  114. {streamlit_nightly-1.52.3.dev20260107.dist-info → streamlit_nightly-1.52.3.dev20260109.dist-info}/RECORD +118 -116
  115. streamlit/static/static/js/index.7BBVjqsx.js +0 -1
  116. streamlit/static/static/js/index.CgFM5y1b.js +0 -1
  117. streamlit/static/static/js/index.Cszkm2ii.js +0 -1
  118. streamlit/static/static/js/index.DlXiDt-m.js +0 -1
  119. streamlit/static/static/js/index.HTZptmDX.js +0 -1
  120. streamlit/static/static/js/index.mUwcAQrC.js +0 -1
  121. streamlit/static/static/js/index.up8HPR4v.js +0 -1
  122. streamlit/static/static/js/index.xQYe72hk.js +0 -1
  123. streamlit/static/static/js/uniqueId.Bf2Hsb60.js +0 -1
  124. {streamlit_nightly-1.52.3.dev20260107.data → streamlit_nightly-1.52.3.dev20260109.data}/scripts/streamlit.cmd +0 -0
  125. {streamlit_nightly-1.52.3.dev20260107.dist-info → streamlit_nightly-1.52.3.dev20260109.dist-info}/WHEEL +0 -0
  126. {streamlit_nightly-1.52.3.dev20260107.dist-info → streamlit_nightly-1.52.3.dev20260109.dist-info}/entry_points.txt +0 -0
  127. {streamlit_nightly-1.52.3.dev20260107.dist-info → streamlit_nightly-1.52.3.dev20260109.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- import{r,E as b,_ as E,W as te,F as f,ai as xt,m as ee,cs as x,ct as It,o as S,j as a,P as Vt,ay as V,az as Rt,a0 as P,b as re,B as oe,Z as At,bW as ne,l as ae,k as ie,b7 as le,cu as se,e as J,bR as bt,bS as ce}from"./index.BuCGo7-5.js";import{I as de,g as Et,F as X,E as Dt,b as ue,s as pe,u as ge,a as fe}from"./FileHelper.bM5nEcHb.js";import{u as he}from"./useWaveformController.CCs9fdSv.js";import{I as we}from"./InputInstructions.DPiGX0Th.js";import{u as me,T as St}from"./useTextInputAutoExpand.9c205rhQ.js";import{i as ve}from"./inputUtils.CptNuJwn.js";import{T as Ce}from"./TableChart.esm.gttTfh7r.js";import{E as ye}from"./ErrorOutline.esm.D2r71uaM.js";import{U as Mt}from"./UploadFileInfo.Dr-zDST7.js";import"./base-input.CmG3KTuv.js";var kt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),r.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});kt.displayName="Article";var Ft=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});Ft.displayName="Code";var Ut=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});Ut.displayName="Description";var Ht=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});Ht.displayName="Folder";var Tt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});Tt.displayName="Image";var Bt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});Bt.displayName="MusicNote";var Nt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});Nt.displayName="Videocam";var Lt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}))});Lt.displayName="Add";var et=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 000-1.41l-6.59-6.59a.996.996 0 00-1.41 0l-6.6 6.58a.996.996 0 101.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1z"}))});et.displayName="ArrowUpward";var Pt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});Pt.displayName="Cancel";var Wt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18 6.7l-8.48 8.48-3.54-3.54a.996.996 0 10-1.41 1.41l4.24 4.24c.39.39 1.02.39 1.41 0l9.18-9.18a.999.999 0 00-.01-1.42c-.37-.38-1-.38-1.39.01z"}))});Wt.displayName="Check";var Ot=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))});Ot.displayName="Close";var $t=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}))});$t.displayName="ErrorOutline";var Xt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),r.createElement("path",{d:"M17.91 11c-.49 0-.9.36-.98.85C16.52 14.21 14.47 16 12 16s-4.52-1.79-4.93-4.15a.998.998 0 00-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.34 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.44 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z"}))});Xt.displayName="Mic";const $=te.getLogger("ChatInput"),xe=f("div",{target:"e15qancx0"})({position:"relative",display:"flex",flexDirection:"column"}),be=f("div",{target:"e15qancx1"})(({theme:t})=>({backgroundColor:t.colors.secondaryBg,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",flex:1,padding:t.spacing.lg,borderRadius:t.radii.default,boxSizing:"border-box",":focus-within":{borderColor:t.colors.primary}})),Ee=f("div",{target:"e15qancx2"})(({theme:t})=>({position:"relative",display:"flex",flexDirection:"column",gap:t.spacing.sm})),Se=f("div",{target:"e15qancx3"})({position:"relative",display:"flex",flexDirection:"column"}),ze=f("div",{target:"e15qancx4"})(({theme:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:t.spacing.sm})),Ie=f("div",{target:"e15qancx5"})(({theme:t})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",marginTop:"auto",gap:t.spacing.lg})),Ve=f("div",{target:"e15qancx6"})(({theme:t})=>({display:"flex",flexDirection:"row",flex:"1 0 0",gap:t.spacing.sm,alignItems:"center"})),Re=f("div",{target:"e15qancx7"})(({theme:t})=>({display:"flex",flexDirection:"row",gap:t.spacing.sm,alignItems:"center",position:"relative"})),Ae=f("div",{target:"e15qancx8"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.lg,color:t.colors.fadedText60,fontSize:t.fontSizes.twoSm,textAlign:"right",whiteSpace:"nowrap",pointerEvents:"auto",cursor:"text",zIndex:t.zIndices.priority,"& .stChatInputInstructions":{position:"static"}})),U=f("button",{target:"e15qancx9"})(({theme:t,disabled:e,hasError:o,primary:s,withVerticalOffset:d})=>{if(s)return{border:"none",backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary,borderRadius:t.radii.button,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,marginBottom:d?t.sizes.chatInputButtonVerticalOffset:void 0,padding:t.spacing.xs,width:t.sizes.chatInputPrimaryButtonSize,height:t.sizes.chatInputPrimaryButtonSize,color:e?t.colors.fadedText40:t.colors.white,cursor:e?"not-allowed":"pointer",transition:"background-color 200ms ease","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:xt(t)},"&:hover":{backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary}};const h=ee(t),[c,v]=h?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40],C=()=>o?t.colors.redTextColor:e?c:v;return{border:"none",backgroundColor:t.colors.transparent,borderRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.none,color:C(),pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:h?t.colors.gray10:t.colors.gray90,boxShadow:xt(t)},"&:hover":{color:o?t.colors.red70:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray60,cursor:"not-allowed"},"& svg":{width:t.iconSizes.lg,height:t.iconSizes.lg}}}),De=f("div",{target:"e15qancx10"})(({isRecording:t})=>({display:t?"flex":"none",flex:1,alignItems:"center",minWidth:0})),Me=f("div",{target:"e15qancx11"})(({theme:t})=>({position:"relative",width:"100%",minHeight:t.sizes.minElementHeight,borderRadius:t.radii.default,overflow:"hidden","& > div":{position:"absolute",inset:0}})),jt=(t,e)=>e===x.Directory?{...t,webkitdirectory:"",multiple:!0}:t,ke=(t,e)=>{if(!e||e.length===0)return!0;const o=t.name.toLowerCase(),s=o.lastIndexOf(".");if(s===-1||s===o.length-1)return e.some(c=>c===""||c===".");const d=o.substring(s),h=o.substring(s+1);return e.some(c=>{const v=c.toLowerCase();return v.startsWith(".")?d===v:h===v})},Fe=(t,e)=>ke(t,e)?{isValid:!0}:{isValid:!1,errorMessage:`${t.type||"This type of"} files are not allowed.`},rt=t=>{switch(t){case x.None:return"a file";case x.Single:return"a file";case x.Multiple:return"files";case x.Directory:return"a directory";default:return It(t),"a file"}},Ue=f("div",{target:"e1f9zrpa0"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"absolute",inset:0,zIndex:t.zIndices.priority,borderRadius:t.radii.chatInput})),He=f("div",{target:"e1f9zrpa1"})(({theme:t})=>({position:"absolute",inset:0,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.primary,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,color:t.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:t.fontWeights.bold,pointerEvents:"none",zIndex:t.zIndices.priority})),Te=f("div",{target:"e1f9zrpa2"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),Be=f("div",{target:"e1f9zrpa3"})(({theme:t})=>({lineHeight:t.lineHeights.tight})),Ne=f("div",{target:"e1f9zrpa4"})(({theme:t})=>({display:"flex",flexWrap:"wrap",gap:t.spacing.sm})),Le=f("div",{target:"e1f9zrpa5"})({flex:"0 0 auto",maxWidth:"100%"}),Pe=f("div",{target:"e1f9zrpa6"})(({theme:t,isError:e,isClickable:o})=>({position:"relative",display:"inline-flex",alignItems:"center",width:"fit-content",minWidth:"9rem",maxWidth:"100%",backgroundColor:e?t.colors.redBackgroundColor:t.colors.bgColor,padding:t.spacing.twoXS,paddingRight:t.spacing.twoXL,borderRadius:t.radii.default,gap:t.spacing.sm,cursor:o?"pointer":"default"})),We=f("div",{target:"e1f9zrpa7"})({display:"flex",flexDirection:"column",minWidth:0}),Oe=f("div",{target:"e1f9zrpa8"})(({theme:t,fileStatus:e})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:t.radii.md,width:t.sizes.chatInputFileIconSize,height:t.sizes.chatInputFileIconSize,flexShrink:0,...e==="uploaded"&&{backgroundColor:t.colors.bodyText,color:t.colors.bgColor},...e==="uploading"&&{backgroundColor:t.colors.fadedText10,color:t.colors.fadedText60},...e==="error"&&{backgroundColor:t.colors.redBackgroundColor,color:t.colors.redTextColor}})),$e=f("div",{target:"e1f9zrpa9"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploading"?t.colors.fadedText60:t.colors.bodyText})),Xe=f("div",{target:"e1f9zrpa10"})(({theme:t})=>({color:t.colors.fadedText60,fontSize:t.fontSizes.sm})),je=f("div",{target:"e1f9zrpa11"})(({theme:t})=>({color:t.colors.redTextColor,fontSize:t.fontSizes.sm})),qe=f("small",{target:"e1f9zrpa12"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.twoXS,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,"& button":{display:"flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",minHeight:"unset",minWidth:"unset",maxHeight:"unset",maxWidth:"unset",borderRadius:"50%",backgroundColor:"transparent",color:t.colors.fadedText20,padding:0,overflow:"hidden",boxSizing:"border-box",lineHeight:0,"&:hover":{backgroundColor:"transparent",color:t.colors.fadedText40}}})),_e=({getRootProps:t,getInputProps:e,acceptFile:o,disabled:s})=>{const d=jt(e(),o),h=t({tabIndex:-1});return S(Te,{"data-testid":"stChatInputFileUploadButton",disabled:s,...h,children:[a("input",{...d}),a(Rt,{content:`Upload or drag and drop ${rt(o)}`,placement:Vt.TOP,onMouseEnterDelay:500,children:a(U,{disabled:s,"aria-label":`Upload ${rt(o)}`,children:a(V,{content:Lt,size:"xl",color:"inherit"})})})]})},Ke=r.memo(_e),Ge=({getRootProps:t,getInputProps:e,acceptFile:o})=>{const s=jt(e(),o);return S(P,{children:[a(Ue,{...t(),children:a("input",{...s})}),a(He,{children:`Drag and drop ${rt(o)} here`})]})},Ye=r.memo(Ge),Ze=new Set(["jpg","jpeg","png","gif","webp","svg","bmp"]),Je=new Set(["pdf"]),Qe=new Set(["csv","tsv","xlsx","xls"]),tr=new Set(["txt","md","json","xml","yaml","yml"]),er=new Set(["py","js","ts","jsx","tsx","css","html","java","cpp","c","go","rs","rb","php","swift","kt","scala","sh","bash","sql"]),rr=new Set(["mp3","wav","m4a","ogg","flac","aac"]),or=new Set(["mp4","webm","mov","avi","mkv","wmv"]),nr=new Set(["zip","tar","gz","rar","7z","bz2"]);function ar(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?"":t.slice(e+1).toLowerCase()}function ir(t){const e=ar(t);return Ze.has(e)?Tt:Je.has(e)?kt:Qe.has(e)?Ce:tr.has(e)?Ut:er.has(e)?Ft:rr.has(e)?Bt:or.has(e)?Nt:nr.has(e)?Ht:de}const lr=36;function sr(t,e=lr){if(t.length<=e)return t;const o=t.lastIndexOf(".");if(!(o>0&&o<t.length-1)){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const d=t.slice(o),h=t.slice(0,o),c=e-d.length-3;if(c<=0){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const v=Math.ceil(c/2),C=Math.floor(c/2),m=C>0?h.slice(-C):"";return`${h.slice(0,v)}...${m}${d}`}const cr=({fileInfo:t})=>{const{type:e}=t.status;switch(e){case"uploading":return a(At,{iconValue:"spinner",testid:"stChatInputFileIconSpinner",size:"lg"});case"error":return a(V,{content:ye,size:"lg",testid:"stChatInputFileIconError"});case"uploaded":return a(V,{content:ir(t.name),size:"lg"});default:return It(e),null}},dr=({fileInfo:t,onDelete:e,onRetry:o})=>{const s=t.status.type,d=s==="error",h=s==="uploading",c=d&&o!==void 0&&t.file!==void 0,v=t.status.type==="error"?t.status.errorMessage:"Upload failed",C=r.useCallback(()=>{c&&o(t)},[c,o,t]),m=r.useCallback(R=>{c&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),o(t))},[c,o,t]),p=r.useCallback(R=>{R.stopPropagation(),e(t.id)},[e,t.id]),w=h?`Cancel upload of ${t.name}`:`Remove ${t.name}`,g=Et(t.size,X.Byte),y=d?`${t.name}, ${v}`:`${t.name}, ${g}`;return S(Pe,{className:"stChatInputFile","data-testid":"stChatInputFile",isError:d,isClickable:c,onClick:c?C:void 0,onKeyDown:c?m:void 0,title:c?"Click to retry upload":void 0,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":y,children:[a(Oe,{fileStatus:s,children:a(cr,{fileInfo:t})}),S(We,{children:[a($e,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:sr(t.name)}),d?a(je,{"data-testid":"stChatInputFileError",children:v}):a(Xe,{children:Et(t.size,X.Byte)})]}),a(qe,{"data-testid":"stChatInputDeleteBtn",children:a(re,{onClick:p,kind:oe.MINIMAL,"aria-label":w,children:a(V,{content:Pt,size:"md"})})})]})},ur=r.memo(dr),pr=({items:t,onDelete:e,onRetry:o})=>a(Be,{"data-testid":"stChatUploadedFiles",children:a(Ne,{children:t.map(s=>a(Le,{children:a(ur,{fileInfo:s,onDelete:e,onRetry:o})},s.id))})}),gr=r.memo(pr),fr=(t,e)=>{const o=[],s=[];return t.forEach(d=>{const h=Fe(d,e.fileType);h.isValid?o.push(d):s.push({file:d,errors:[{code:Dt.FileInvalidType,message:h.errorMessage||"File type not allowed."}]})}),{accepted:o,rejected:s}},hr=({acceptMultipleFiles:t,acceptDirectoryFiles:e,maxFileSize:o,uploadClient:s,uploadFile:d,addFiles:h,getNextLocalFileId:c,deleteExistingFiles:v,onUploadComplete:C,element:m})=>(p,w)=>{if(e&&p.length>0){const{accepted:g,rejected:y}=fr(p,m);p=g,w=[...w,...y]}if(!t&&p.length===0&&w.length>1){const g=w.findIndex(y=>y.errors?.[0].code===Dt.TooManyFiles);g>=0&&(p.push(w[g].file),w.splice(g,1))}if(!t&&p.length>0&&v(),s.fetchFileURLs(p).then(g=>{ne(g,p).forEach(([y,R])=>{d(y,R)})}).catch(g=>{h(p.map(y=>new Mt(y.name,y.size,c(),{type:"error",errorMessage:g},y)))}),w.length>0){const g=w.map(y=>ue(y,c(),o));h(g)}C()},wr=({getNextLocalFileId:t,addFiles:e,updateFile:o,uploadClient:s,element:d,onUploadProgress:h,onUploadComplete:c})=>(v,C)=>{const m=C.webkitRelativePath||C.name,p=new AbortController,w=new Mt(m,C.size,t(),{type:"uploading",abortController:p,progress:1},C);e([w]),s.uploadFile({formId:"",...d},v.uploadUrl,C,g=>h(g,w.id),p.signal).then(()=>c(w.id,v)).catch(g=>{g instanceof DOMException&&g.name==="AbortError"||o(w.id,w.setStatus({type:"error",errorMessage:g?g.toString():"Unknown error"}))})};function zt(t,e,o){return{Root:{style:{minHeight:t.sizes.chatInputTextareaMinHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",...o}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{fontWeight:t.fontWeights.normal,lineHeight:t.lineHeights.inputWidget,"::placeholder":{color:t.colors.fadedText60},height:e.height,maxHeight:e.maxHeight,overflowY:"auto",paddingLeft:t.spacing.none,paddingRight:t.spacing.none,paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,width:"100%"}}}}const Q=(t,e,o)=>o.map(s=>s.id===t?e:s),tt=(t,e)=>e.find(o=>o.id===t);function mr({disabled:t,element:e,widgetMgr:o,fragmentId:s,uploadClient:d}){const h=ae(),{placeholder:c,maxChars:v}=e,C=r.useRef(0),m=r.useRef(null),p=r.useRef(!1),w=r.useRef(null),g=r.useRef(null),{width:y,elementRef:R}=ie(),{innerWidth:ot,innerHeight:nt}=le(),[M,j]=r.useState(e.default),[D,k]=r.useState([]),[T,q]=r.useState(!1),[B,at]=r.useState(!1),[_,N]=r.useState(null),W=e.acceptAudio??!1;r.useEffect(()=>()=>{g.current&&g.current.abort()},[]);const H=me({textareaRef:m,dependencies:[c]}),L=r.useMemo(()=>D.some(n=>n.status.type==="uploading")?!1:M!==""||D.length>0,[D,M]),z=se(e.acceptFile),it=pe(e.maxUploadSizeMb,X.Megabyte,X.Byte),lt=r.useCallback(n=>k(l=>[...l,...n]),[]),st=r.useCallback(n=>{n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&d.deleteFile(n.status.fileUrls.deleteUrl).catch(l=>{$.error("Failed to delete file from server:",l)})},[d]),ct=r.useCallback(n=>{k(l=>{const u=tt(n,l);return J(u)?l:(st(u),l.filter(i=>i.id!==n))})},[st]),K=r.useRef(null),qt=r.useCallback(n=>{!n.file||n.status.type!=="error"||(k(l=>l.filter(u=>u.id!==n.id)),K.current&&K.current([n.file],[]))},[]),dt=r.useCallback(()=>{const n=D.filter(l=>l.status.type==="uploaded").map(l=>{const{name:u,size:i,status:I}=l,{fileId:Z,fileUrls:Qt}=I;return new bt({fileId:Z,fileUrls:Qt,name:u,size:i})});return new ce({uploadedFileInfo:n})},[D]),ut=()=>C.current++,pt=hr({acceptMultipleFiles:z===x.Multiple||z===x.Directory,acceptDirectoryFiles:z===x.Directory,maxFileSize:it,uploadClient:d,uploadFile:wr({getNextLocalFileId:ut,addFiles:lt,updateFile:(n,l)=>{k(u=>Q(n,l,u))},uploadClient:d,element:e,onUploadProgress:(n,l)=>{k(u=>{const i=tt(l,u);if(J(i)||i.status.type!=="uploading")return u;const I=Math.round(n.loaded*100/n.total);return i.status.progress===I?u:Q(l,i.setStatus({type:"uploading",abortController:i.status.abortController,progress:I}),u)})},onUploadComplete:(n,l)=>{k(u=>{const i=tt(n,u);return J(i)||i.status.type!=="uploading"?u:Q(i.id,i.setStatus({type:"uploaded",fileId:l.fileId,fileUrls:l}),u)})}}),addFiles:lt,getNextLocalFileId:ut,deleteExistingFiles:()=>D.forEach(n=>ct(n.id)),onUploadComplete:()=>{m.current&&m.current.focus()},element:e});K.current=pt;const{getRootProps:gt,getInputProps:ft}=ge({onDrop:pt,multiple:z===x.Multiple||z===x.Directory,accept:fe(e.fileType),maxSize:it}),O=r.useCallback(n=>{if(m.current&&m.current.focus(),!L&&!n||t)return;const l=dt(),u={data:M,fileUploaderState:l,audioFileInfo:n};o.setChatInputValue(e,u,{fromUi:!0},s),k([]),j(""),H.clearScrollHeight()},[L,t,M,dt,o,e,s,H]),ht=r.useCallback(async n=>{const l=new Date().toISOString().replace(/[:.]/g,"-"),u=new File([n],`audio-${l}.wav`,{type:"audio/wav"});try{at(!0);const i=await d.fetchFileURLs([u]);if(i.length===0)throw new Error("Failed to get upload URL for audio file");const I=i[0];g.current=new AbortController,await d.uploadFile({formId:"",...e},I.uploadUrl,u,()=>{},g.current.signal);const Z=new bt({fileId:I.fileId,fileUrls:I,name:u.name,size:u.size});O(Z)}catch(i){const I="Recording failed";$.error("Audio upload failed:",i),N(I),m.current&&m.current.focus()}finally{at(!1)}},[d,e,O]),_t=r.useMemo(()=>({onApprove:ht,onPermissionDenied:()=>{const n="Microphone access denied";N(n),$.error("Permission denied:",n)},onError:n=>{N("Recording failed"),$.error("Recording error:",n)},onRecordStart:()=>{N(null)}}),[ht]),A=he({containerRef:w,sampleRate:e.audioSampleRate??void 0,events:_t}),G=r.useCallback(()=>{O()},[O]),wt=n=>{const{metaKey:l,ctrlKey:u,shiftKey:i}=n;ve(n)&&!i&&!u&&!l&&(n.preventDefault(),G())},mt=n=>{const{value:l}=n.target;v!==0&&l.length>v||(j(l),H.updateScrollHeight(),_&&N(null))},vt=r.useCallback(async n=>{n.preventDefault(),n.stopPropagation(),!(!W||t||A.state==="recording")&&await A.start()},[W,t,A]),Kt=r.useCallback(()=>{A.cancel(),m.current&&m.current.focus()},[A]),Ct=r.useCallback(async()=>{const{blob:n}=await A.stop();await A.approve(n)},[A]),yt=r.useCallback(n=>{vt(n)},[vt]),Gt=r.useCallback(()=>{Ct()},[Ct]),Yt=r.useCallback(()=>{m.current&&m.current.focus()},[]);r.useEffect(()=>{if(e.setValue&&!p.current){p.current=!0;const n=e.value||"";j(n)}},[e.setValue,e.value]),r.useEffect(()=>{p.current=!1},[e]),r.useEffect(()=>{const n=i=>{i.preventDefault(),i.stopPropagation(),!T&&i.dataTransfer?.types.includes("Files")&&q(!0)},l=i=>{i.preventDefault(),i.stopPropagation(),T&&(i.clientX<=0&&i.clientY<=0||i.clientX>=ot&&i.clientY>=nt)&&q(!1)},u=i=>{i.preventDefault(),i.stopPropagation(),T&&q(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",u),window.addEventListener("dragleave",l),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",u),window.removeEventListener("dragleave",l)}},[T,ot,nt]);const Zt=z!==x.None&&T,F=A.state==="recording",Jt=z===x.None&&!W&&!F,Y=!F&&y>h.breakpoints.hideWidgetDetails&&v>0;return a(xe,{className:"stChatInput","data-testid":"stChatInput",ref:R,children:S(be,{extended:H.isExtended||F,children:[Y&&a(Ae,{onClick:Yt,id:"stChatInputInstructions",children:a(we,{dirty:L,value:M,maxLength:v,type:"chat",inForm:!1,className:"stChatInputInstructions"})}),Jt?S(Ie,{children:[a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:zt(h,H,{flex:1})}),a(U,{onClick:G,disabled:!L||t,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,withVerticalOffset:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]}):S(P,{children:[S(Ee,{children:[Zt&&a(Ye,{getRootProps:gt,getInputProps:ft,acceptFile:z}),z!==x.None&&D.length>0&&a(gr,{items:[...D],onDelete:ct,onRetry:qt}),S(Se,{children:[a(De,{isRecording:F,children:a(Me,{ref:w})}),!F&&a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:zt(h,H,{width:"100%"})})]})]}),S(ze,{children:[a(Ve,{children:z!==x.None&&!F&&a(Ke,{getRootProps:gt,getInputProps:ft,acceptFile:z,disabled:t})}),a(Re,{children:F?S(P,{children:[a(U,{onClick:Kt,disabled:t,"data-testid":"stChatInputCancelButton","aria-label":"Cancel recording",children:a(V,{content:Ot,size:"lg",color:"inherit"})}),a(U,{onClick:Gt,disabled:t||B,"data-testid":"stChatInputApproveButton","aria-label":"Submit recording",children:B?a(At,{size:"lg",iconValue:"spinner"}):a(V,{content:Wt,size:"lg",color:"inherit"})})]}):S(P,{children:[W&&a(P,{children:_?a(Rt,{content:_,placement:Vt.TOP,error:!0,children:a(U,{onClick:yt,disabled:t||B,hasError:!0,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:$t,size:"xl",color:"inherit"})})}):a(U,{onClick:yt,disabled:t||B,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Xt,size:"xl",color:"inherit"})})}),a(U,{onClick:G,disabled:!L||t||B,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]})})]})]})]})})}const Rr=r.memo(mr);export{Rr as default};
@@ -1 +0,0 @@
1
- import{K as i}from"./index.BuCGo7-5.js";var n=0;function u(r){var t=++n;return i(r)+t}export{u};