streamlit-nightly 1.46.2.dev20250707__py3-none-any.whl → 1.46.2.dev20250708__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 (84) hide show
  1. streamlit/config.py +37 -0
  2. streamlit/proto/NewSession_pb2.py +16 -16
  3. streamlit/proto/NewSession_pb2.pyi +5 -1
  4. streamlit/runtime/app_session.py +34 -0
  5. streamlit/runtime/websocket_session_manager.py +8 -0
  6. streamlit/static/index.html +1 -1
  7. streamlit/static/manifest.json +218 -218
  8. streamlit/static/static/js/{ErrorOutline.esm.Cwi9617t.js → ErrorOutline.esm.CO5UETnI.js} +1 -1
  9. streamlit/static/static/js/{FileDownload.esm.51ynStRd.js → FileDownload.esm.BodlLZ2E.js} +1 -1
  10. streamlit/static/static/js/{FileHelper.D56tzO8c.js → FileHelper.BJWG5mWZ.js} +1 -1
  11. streamlit/static/static/js/{FormClearHelper.D3Hp66Ed.js → FormClearHelper.Bfl6Fb0k.js} +1 -1
  12. streamlit/static/static/js/{Hooks.BY6BNTRM.js → Hooks.BZNasbgB.js} +1 -1
  13. streamlit/static/static/js/{InputInstructions.BwiNLSMY.js → InputInstructions.D9_advjq.js} +1 -1
  14. streamlit/static/static/js/{ProgressBar.BEUzLotK.js → ProgressBar.BOxvIdHT.js} +2 -2
  15. streamlit/static/static/js/{RenderInPortalIfExists.DM17zpkP.js → RenderInPortalIfExists.B-maQ3lr.js} +1 -1
  16. streamlit/static/static/js/{Toolbar.CkeeikHg.js → Toolbar.BulWrSVh.js} +1 -1
  17. streamlit/static/static/js/{base-input.yvVgWMq1.js → base-input.oeeD4NYL.js} +4 -4
  18. streamlit/static/static/js/{checkbox.B0zzRnN3.js → checkbox.BqkhIzEX.js} +2 -2
  19. streamlit/static/static/js/{createSuper.DUNTCGyw.js → createSuper.bxk9uEsc.js} +1 -1
  20. streamlit/static/static/js/{data-grid-overlay-editor.CkmHJFS4.js → data-grid-overlay-editor.BFUaa7qj.js} +1 -1
  21. streamlit/static/static/js/{downloader.SYvlWNHe.js → downloader.CkJ9l-mW.js} +1 -1
  22. streamlit/static/static/js/{es6.Dn_Sg6yN.js → es6.CwBeRZxt.js} +2 -2
  23. streamlit/static/static/js/{iframeResizer.contentWindow.CfNH32kg.js → iframeResizer.contentWindow.B4xDykub.js} +1 -1
  24. streamlit/static/static/js/{index.BRiZ2gjM.js → index.B0vAXwMf.js} +1 -1
  25. streamlit/static/static/js/{index.D4Y-sPIG.js → index.B6ClyDWN.js} +1 -1
  26. streamlit/static/static/js/{index.kOzLZcEm.js → index.BAyahmk4.js} +1 -1
  27. streamlit/static/static/js/index.BGGyfLIH.js +1 -0
  28. streamlit/static/static/js/{index.D_4zzgnM.js → index.BHzjJ3JF.js} +5 -5
  29. streamlit/static/static/js/{index.CQiUN-qB.js → index.BNmqvLux.js} +2 -2
  30. streamlit/static/static/js/{index.D5BdLSQe.js → index.BP1DQKkm.js} +1 -1
  31. streamlit/static/static/js/{index.BruyfZhe.js → index.BPKHA8Id.js} +1 -1
  32. streamlit/static/static/js/{index.PovmrFJI.js → index.BTHnpf1I.js} +11 -11
  33. streamlit/static/static/js/{index.Jh8NGUS3.js → index.Ba65H8D9.js} +1 -1
  34. streamlit/static/static/js/{index.vgdzRlb1.js → index.BdnKKSPg.js} +1 -1
  35. streamlit/static/static/js/{index.BzFIXYgy.js → index.Bejef4Pk.js} +17 -17
  36. streamlit/static/static/js/{index.vvD6DJW9.js → index.BffMV8Pv.js} +2 -2
  37. streamlit/static/static/js/{index.DaG51Kxa.js → index.BxVKLNUY.js} +1 -1
  38. streamlit/static/static/js/index.BypmpIBL.js +1 -0
  39. streamlit/static/static/js/{index.BntKz97_.js → index.C795t44A.js} +1 -1
  40. streamlit/static/static/js/{index.D0OXHmxl.js → index.CFoM9W4u.js} +1 -1
  41. streamlit/static/static/js/{index.nghT_Lxa.js → index.CGqm8hCs.js} +1 -1
  42. streamlit/static/static/js/{index.HuK1SvDk.js → index.CIEFJvy6.js} +1 -1
  43. streamlit/static/static/js/{index.iaPLfTT0.js → index.CIeZ4fAx.js} +1 -1
  44. streamlit/static/static/js/{index.BWpac6Co.js → index.CL4vTLmN.js} +1 -1
  45. streamlit/static/static/js/{index.BxbiLBoz.js → index.CfqX1ZBe.js} +1 -1
  46. streamlit/static/static/js/{index.Ce22m0pL.js → index.D-8V3tc4.js} +1 -1
  47. streamlit/static/static/js/{index.B1hWgsYC.js → index.D-sXGL7m.js} +1 -1
  48. streamlit/static/static/js/{index.BUNdJdwv.js → index.D3TXItBH.js} +1 -1
  49. streamlit/static/static/js/index.D4WIU5V6.js +1 -0
  50. streamlit/static/static/js/{index.GGLK4gvh.js → index.DFRMOZ8C.js} +1 -1
  51. streamlit/static/static/js/{index.B8GCXUc4.js → index.DQXLgrs8.js} +1 -1
  52. streamlit/static/static/js/{index.Dw7bwHQ9.js → index.DgSLJq20.js} +1 -1
  53. streamlit/static/static/js/index.Dl-ChXDk.js +1 -0
  54. streamlit/static/static/js/{index.BcKUsmmW.js → index.FerMd1cU.js} +3 -3
  55. streamlit/static/static/js/{index.D6T2dYXA.js → index.JlbLrYBv.js} +60 -60
  56. streamlit/static/static/js/{index.BpDsy6P7.js → index.VY0EoknV.js} +2 -2
  57. streamlit/static/static/js/{index.FkXunjOd.js → index.aAeBp5Oj.js} +2 -2
  58. streamlit/static/static/js/{index.q3-Tm2pt.js → index.oJk4Ge1s.js} +1 -1
  59. streamlit/static/static/js/{index.BfBckj-h.js → index.um9CUbiU.js} +1 -1
  60. streamlit/static/static/js/{index.C1ab5uBd.js → index.zT8XLZtx.js} +1 -1
  61. streamlit/static/static/js/{input.BPpQxxzu.js → input.C3tznRn_.js} +2 -2
  62. streamlit/static/static/js/{memory.CR9Ajd2U.js → memory.OHbOX5Ru.js} +1 -1
  63. streamlit/static/static/js/{mergeWith.DjeH399x.js → mergeWith._KN0v5Xp.js} +1 -1
  64. streamlit/static/static/js/{number-overlay-editor.D8gzaWdQ.js → number-overlay-editor.BKok-OUE.js} +1 -1
  65. streamlit/static/static/js/{possibleConstructorReturn.ChodIDx3.js → possibleConstructorReturn.BfCdE8Gx.js} +1 -1
  66. streamlit/static/static/js/{sandbox.Deilbzun.js → sandbox.BeWP76j9.js} +1 -1
  67. streamlit/static/static/js/{timepicker.CQyXj151.js → timepicker.C8LfA2ZU.js} +1 -1
  68. streamlit/static/static/js/{toConsumableArray.Ddyzgz2E.js → toConsumableArray.BHlwNsw4.js} +1 -1
  69. streamlit/static/static/js/{uniqueId.Cr5-pyqr.js → uniqueId.Ds4mfmXu.js} +1 -1
  70. streamlit/static/static/js/{useBasicWidgetState.DX8Dvi5d.js → useBasicWidgetState.Ds5amAnj.js} +1 -1
  71. streamlit/static/static/js/useOnInputChange.CnPrmPV-.js +1 -0
  72. streamlit/static/static/js/{useTextInputAutoExpand.BPsrdzpb.js → useTextInputAutoExpand.DRi3Jfhk.js} +2 -2
  73. streamlit/static/static/js/{withFullScreenWrapper.DpxbNIyf.js → withFullScreenWrapper.DtwYvNjS.js} +1 -1
  74. {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250708.dist-info}/METADATA +1 -1
  75. {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250708.dist-info}/RECORD +79 -79
  76. streamlit/static/static/js/index.B6IBhXXL.js +0 -1
  77. streamlit/static/static/js/index.CJJTafCM.js +0 -1
  78. streamlit/static/static/js/index.CP_ebS8J.js +0 -1
  79. streamlit/static/static/js/index.i0djEkgf.js +0 -1
  80. streamlit/static/static/js/useOnInputChange.CGiEpYpi.js +0 -1
  81. {streamlit_nightly-1.46.2.dev20250707.data → streamlit_nightly-1.46.2.dev20250708.data}/scripts/streamlit.cmd +0 -0
  82. {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250708.dist-info}/WHEEL +0 -0
  83. {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250708.dist-info}/entry_points.txt +0 -0
  84. {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250708.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- import{bw as v,bx as j,b_ as H,r as s,cm as $,cn as A,z as F}from"./index.D6T2dYXA.js";import{g as N,a as z,b as B,B as R}from"./base-input.yvVgWMq1.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(n){C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=v("div",function(e){return l(l({},N(l(l({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});O.displayName="StyledTextAreaRoot";O.displayName="StyledTextAreaRoot";var _=v("div",function(e){return z(l({$positive:!1},e))});_.displayName="StyledTextareaContainer";_.displayName="StyledTextareaContainer";var S=v("textarea",function(e){return l(l({},B(e)),{},{resize:e.$resize||"none"})});S.displayName="StyledTextarea";S.displayName="StyledTextarea";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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function D(e,t){return L(e)||U(e,t)||M(e,t)||K()}function K(){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 M(e,t){if(e){if(typeof e=="string")return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,u;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw u}}return n}}function L(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G(e,t,r){return t&&V(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},m(e,t)}function X(e){var t=Z();return function(){var n=d(e),o;if(t){var i=d(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Y(this,o)}}function Y(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 f(e)}function f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(){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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=function(e){W(r,e);var t=X(r);function r(){var n;q(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),p(f(n),"state",{isFocused:n.props.autoFocus||!1}),p(f(n),"onFocus",function(u){n.setState({isFocused:!0}),n.props.onFocus(u)}),p(f(n),"onBlur",function(u){n.setState({isFocused:!1}),n.props.onBlur(u)}),n}return G(r,[{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,a=j(i.Root,O),u=D(a,2),c=u[0],h=u[1],b=H({Input:{component:S},InputContainer:{component:_}},i);return s.createElement(c,y({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},h),s.createElement(R,y({},this.props,{type:A.textarea,overrides:b,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}]),r}(s.Component);p(J,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:$.default});const Q=6.5,T=1,k=e=>{let t=0;const{current:r}=e;return r&&(r.style.height="auto",t=r.scrollHeight,r.style.height=""),t},ee=(e,t,r)=>e>0&&r.current?Math.abs(e-t)>T:!1,te=(e,t)=>{if(e.current&&t.current){const{offsetHeight:r}=e.current;t.current.minHeight=r,t.current.maxHeight=r*Q}},re=(e,t,r)=>e?`${t+T}px`:r?String(r):"",ne=e=>e?`${e}px`:"",ae=({textareaRef:e,dependencies:t=[]})=>{const r=F(),n=s.useRef({minHeight:0,maxHeight:0}),[o,i]=s.useState(0),[a,u]=s.useState(!1),c=s.useCallback(()=>{i(k(e))},[e,i]);s.useLayoutEffect(()=>{e.current&&te(e,n)},[e]),s.useLayoutEffect(()=>{const{minHeight:I}=n.current;u(ee(o,I,e))},[o,e]),s.useLayoutEffect(()=>{c()},[e,c,...t]);const{maxHeight:h}=n.current,b=r.sizes.minElementHeight,x=re(a,o,b),E=ne(h);return{isExtended:a,height:x,maxHeight:E,updateScrollHeight:c}};export{J as T,ae as u};
1
+ import{bv as v,bw as j,bZ as H,r as s,cl as $,cm as A,z as F}from"./index.JlbLrYBv.js";import{g as N,a as z,b as B,B as R}from"./base-input.oeeD4NYL.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(n){C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=v("div",function(e){return l(l({},N(l(l({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});O.displayName="StyledTextAreaRoot";O.displayName="StyledTextAreaRoot";var _=v("div",function(e){return z(l({$positive:!1},e))});_.displayName="StyledTextareaContainer";_.displayName="StyledTextareaContainer";var S=v("textarea",function(e){return l(l({},B(e)),{},{resize:e.$resize||"none"})});S.displayName="StyledTextarea";S.displayName="StyledTextarea";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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function D(e,t){return L(e)||U(e,t)||M(e,t)||K()}function K(){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 M(e,t){if(e){if(typeof e=="string")return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,u;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw u}}return n}}function L(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z(e,t,r){return t&&V(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},m(e,t)}function W(e){var t=Y();return function(){var n=d(e),o;if(t){var i=d(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return X(this,o)}}function X(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 f(e)}function f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(){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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=function(e){G(r,e);var t=W(r);function r(){var n;q(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),p(f(n),"state",{isFocused:n.props.autoFocus||!1}),p(f(n),"onFocus",function(u){n.setState({isFocused:!0}),n.props.onFocus(u)}),p(f(n),"onBlur",function(u){n.setState({isFocused:!1}),n.props.onBlur(u)}),n}return Z(r,[{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,a=j(i.Root,O),u=D(a,2),c=u[0],h=u[1],b=H({Input:{component:S},InputContainer:{component:_}},i);return s.createElement(c,y({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},h),s.createElement(R,y({},this.props,{type:A.textarea,overrides:b,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}]),r}(s.Component);p(J,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:$.default});const Q=6.5,T=1,k=e=>{let t=0;const{current:r}=e;return r&&(r.style.height="auto",t=r.scrollHeight,r.style.height=""),t},ee=(e,t,r)=>e>0&&r.current?Math.abs(e-t)>T:!1,te=(e,t)=>{if(e.current&&t.current){const{offsetHeight:r}=e.current;t.current.minHeight=r,t.current.maxHeight=r*Q}},re=(e,t,r)=>e?`${t+T}px`:r?String(r):"",ne=e=>e?`${e}px`:"",ae=({textareaRef:e,dependencies:t=[]})=>{const r=F(),n=s.useRef({minHeight:0,maxHeight:0}),[o,i]=s.useState(0),[a,u]=s.useState(!1),c=s.useCallback(()=>{i(k(e))},[e,i]);s.useLayoutEffect(()=>{e.current&&te(e,n)},[e]),s.useLayoutEffect(()=>{const{minHeight:I}=n.current;u(ee(o,I,e))},[o,e]),s.useLayoutEffect(()=>{c()},[e,c,...t]);const{maxHeight:h}=n.current,b=r.sizes.minElementHeight,x=re(a,o,b),E=ne(h);return{isExtended:a,height:x,maxHeight:E,updateScrollHeight:c}};export{J as T,ae as u};
@@ -1 +1 @@
1
- import{s as p,r as n,aI as h,bh as x,z as y,aQ as C,j as i,bi as b}from"./index.D6T2dYXA.js";const w=p("div",{target:"e1q5ojhd0"})(({theme:e,isExpanded:t})=>({width:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}})),f=n.createContext(null);f.displayName="ElementFullscreenContext";const F=()=>{const{setFullScreen:e}=n.useContext(h),[t,c]=n.useState(!1),{fullHeight:s,fullWidth:u}=x(),l=n.useCallback(a=>{c(a),e(a)},[e]),d=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),r=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}),[r]),n.useMemo(()=>({expanded:t,zoomIn:d,zoomOut:o,fullHeight:s,fullWidth:u}),[t,d,o,s,u])},g=({children:e,height:t})=>{const c=y(),{expanded:s,fullHeight:u,fullWidth:l,zoomIn:d,zoomOut:o}=F(),[r,a]=C(),m=n.useMemo(()=>({width:s?l:r,height:s?u:t,expanded:s,expand:d,collapse:o}),[s,u,l,t,r,d,o]);return i(f.Provider,{value:m,children:i(w,{ref:a,isExpanded:s,"data-testid":"stFullScreenFrame",theme:c,children:e})})};function S(e){const t=c=>i(g,{children:i(e,{...c})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,b(t,e)}export{f as E,S as w};
1
+ import{s as p,r as n,aI as h,bg as x,z as y,aP as C,j as i,bh as b}from"./index.JlbLrYBv.js";const g=p("div",{target:"e1q5ojhd0"})(({theme:e,isExpanded:t})=>({width:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}})),f=n.createContext(null);f.displayName="ElementFullscreenContext";const w=()=>{const{setFullScreen:e}=n.useContext(h),[t,c]=n.useState(!1),{fullHeight:s,fullWidth:u}=x(),l=n.useCallback(a=>{c(a),e(a)},[e]),d=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),r=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}),[r]),n.useMemo(()=>({expanded:t,zoomIn:d,zoomOut:o,fullHeight:s,fullWidth:u}),[t,d,o,s,u])},F=({children:e,height:t})=>{const c=y(),{expanded:s,fullHeight:u,fullWidth:l,zoomIn:d,zoomOut:o}=w(),[r,a]=C(),m=n.useMemo(()=>({width:s?l:r,height:s?u:t,expanded:s,expand:d,collapse:o}),[s,u,l,t,r,d,o]);return i(f.Provider,{value:m,children:i(g,{ref:a,isExpanded:s,"data-testid":"stFullScreenFrame",theme:c,children:e})})};function S(e){const t=c=>i(F,{children:i(e,{...c})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,b(t,e)}export{f as E,S as w};
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-nightly
3
- Version: 1.46.2.dev20250707
3
+ Version: 1.46.2.dev20250708
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=G3Ka6wgeICpC1gI872L7jGQhY4ukAFo3lgnYIqtoBIo,868
3
3
  streamlit/auth_util.py,sha256=C3kylKgnVgAveIcnfKo_yQ842zuh8OaqZ2WDWAZkwPc,8594
4
4
  streamlit/cli_util.py,sha256=SHOTfCD27ib4R09nkq9l31hOdPlhoEguX2c0SMuhczs,3430
5
5
  streamlit/column_config.py,sha256=qRgJoO0k-iRWTCNDjnzNjd2krIiCJVSEEDTVRy83RRU,1449
6
- streamlit/config.py,sha256=XdtMgwCyfRA05eNSlOcL8WeQf5Dzg119iFhV5b4uHus,58740
6
+ streamlit/config.py,sha256=HMXZa3n6VUgeSHeu60J_1HXC9A7OVlOx57WtFBSEpHQ,59799
7
7
  streamlit/config_option.py,sha256=J9gY4SWlyPkeeMHT0XXNEuhPcP23Fv78EFBwpBXMi9Q,11679
8
8
  streamlit/config_util.py,sha256=yXkELy2CyzBguADHw5zpY3PYmKrvxRaW94y38deuSsg,6251
9
9
  streamlit/cursor.py,sha256=ej36w8lrhmHcuSDe-BKJ40TathM7xz1TGiomv9Ov-7M,6062
@@ -244,8 +244,8 @@ streamlit/proto/NamedDataSet_pb2.py,sha256=cWRrGJRex35yZSApkPUWtfX31CHh2puULXQuR
244
244
  streamlit/proto/NamedDataSet_pb2.pyi,sha256=X4Lisad_KlxObyuAZSIOsLfnkA5rQODGKtpPf7du_2s,2013
245
245
  streamlit/proto/Navigation_pb2.py,sha256=GJXtZwkMQEzXRckm5-S_J6-66VlPEZxzulnBAtY_-GA,1752
246
246
  streamlit/proto/Navigation_pb2.pyi,sha256=BEtYMRGniK0CenGZOs_7Rv1rHB0RdjvfW5ATWv3FDX8,3519
247
- streamlit/proto/NewSession_pb2.py,sha256=73ZRIynrRiJuJQXKI2mdt_7UtlL4GsmIcY8jOyDqYq4,7593
248
- streamlit/proto/NewSession_pb2.pyi,sha256=63Ci4AOvMIqWw2hpUVdzDS5exYa3b28A8ceSVvHwgtM,29058
247
+ streamlit/proto/NewSession_pb2.py,sha256=2h2-0LQVsOD5rskma6HZ0ilnmU7VSV-F0HtFl_eX88I,7646
248
+ streamlit/proto/NewSession_pb2.pyi,sha256=8GlI4nHGO_DyS9z1JwunScVA9MeVsEUyOoldbnFrCIw,29393
249
249
  streamlit/proto/NumberInput_pb2.py,sha256=C-A4tvfVkkpV140QyyOaDFc21aJ91HYJVJR5eFI3FQk,2519
250
250
  streamlit/proto/NumberInput_pb2.pyi,sha256=DL29tmWEyD5eGmngfyd5Ecw8G7-qJiE7tpFpx1QPx8k,5227
251
251
  streamlit/proto/PageConfig_pb2.py,sha256=WIyNMZAj034JUg0emlhOX_QtVDfM5jyrg0-BEnKfZPc,2407
@@ -306,7 +306,7 @@ streamlit/proto/__init__.py,sha256=WJu86eq4nAb-pIORVP6xRkKHJwAJQcekPW2dRflPl-c,6
306
306
  streamlit/proto/openmetrics_data_model_pb2.py,sha256=dWlhXENjgvIGCMnAumDVQkLA4TQQzP77G5pncI6oP9I,6424
307
307
  streamlit/proto/openmetrics_data_model_pb2.pyi,sha256=dmABrepaNR5S9kA1UPfQGXqY_ARAUuLmQBqG1Xn_HUY,20319
308
308
  streamlit/runtime/__init__.py,sha256=DmWO_2apg01B7DZ2toddxjdVXnAjtn28819TpJlgkbQ,1523
309
- streamlit/runtime/app_session.py,sha256=1LeG0dvsNsBw4bRwzVQd0HFwQ5uwhR8BOkTohvbAn5U,45776
309
+ streamlit/runtime/app_session.py,sha256=tot9PKzpu6adbtt0fk8Px_Qij5sXJo2uxLYh95_u5UA,47283
310
310
  streamlit/runtime/connection_factory.py,sha256=VGLPo8dlfa5fJT74XXfl4G0GFz3qjZ9uxTVH_mB-gwo,15670
311
311
  streamlit/runtime/context.py,sha256=avvWUDl7i20kgWJJBwyulZZFk1u4Hc1lVoe2Z7oUGwQ,14976
312
312
  streamlit/runtime/context_util.py,sha256=14e8xt_0eevyd41CD6y3UVcX4kQk0BFIU5SvBsHrFD8,1702
@@ -328,7 +328,7 @@ streamlit/runtime/secrets.py,sha256=PDUpRJMyg_gJgs_8bIr2UbzI9B7pajUFD8HKdi6pllQ,
328
328
  streamlit/runtime/session_manager.py,sha256=YPQklhNmXnXYJyJqzVWIo5kwCW6mkCx7dqCo83daWi0,13240
329
329
  streamlit/runtime/stats.py,sha256=Sbxb8cnYy3PIxTdMFwN4_4GiOmtkcEQLVLgJnXqKT1M,3839
330
330
  streamlit/runtime/uploaded_file_manager.py,sha256=aB6fVKeMz_UYEAKRuQIBBcTAc60wnCUjCcOyM5AOiJs,4935
331
- streamlit/runtime/websocket_session_manager.py,sha256=5rfLRnKgb9nw3IiIgs6-EnhT4dRwOI84NxEotNBiZJ4,6510
331
+ streamlit/runtime/websocket_session_manager.py,sha256=1JwlznPL6GhekHafxvIl_37yR5VyoplHl3h6zfgMLFA,6886
332
332
  streamlit/runtime/caching/__init__.py,sha256=sJopYlelFxAL0QOhuG2WZzuC3SdypVA36qaY7EErSA4,3247
333
333
  streamlit/runtime/caching/cache_data_api.py,sha256=OvWboKX9mV6Yc-cYkbBaOS8a94_lRFcEkJnwNGQ6Rys,24585
334
334
  streamlit/runtime/caching/cache_errors.py,sha256=cuAXU2p2csdCWletjixtEFi0cTbSCL1irrMbFutZcAY,4812
@@ -362,84 +362,84 @@ streamlit/runtime/state/session_state.py,sha256=87Ffe5As1B8dQG50qSZSTT5bTT0vu4LG
362
362
  streamlit/runtime/state/session_state_proxy.py,sha256=Z_Hw4214J1l7SjrnrFnCwul7p32yaKK2wpFtrghKEAQ,5585
363
363
  streamlit/runtime/state/widgets.py,sha256=ofGjJppIwiqFN9DpBtXQakQifNpxZOVYNPCSyvCWo8Y,5319
364
364
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
365
- streamlit/static/index.html,sha256=vGgPM-JBespAxrMk6_WBxXhiQePtoROPy3RmTzQ0s4o,1522
366
- streamlit/static/manifest.json,sha256=Ufi_q0Y1G2iN43HmLFTEXypbwfE2dmvxmj-wehCzqEE,44250
365
+ streamlit/static/index.html,sha256=UF3kV94i5jYpY9nE6yi97lMj4t5Ux9xULYgApy_Z6iI,1522
366
+ streamlit/static/manifest.json,sha256=Q53WclNAqiG6sCGke2S4hEAENmJpwirn-0Sml4YGvPM,44250
367
367
  streamlit/static/static/css/index.CJVRHjQZ.css,sha256=X_6xy8S-iXhyEIDSnjwLki_Fz6iYAMb-QfuobyoMyLg,29951
368
368
  streamlit/static/static/css/index.CsLB_Bnz.css,sha256=-5ztn18y6fyrtTss59T7nmGLFIFajXPxypSdw72BaDg,12682
369
369
  streamlit/static/static/css/index.DzuxGC_t.css,sha256=1D1iN9VtJEU7H_zye_YV2guXskYkxI7PXbq1YXw5JOw,35092
370
- streamlit/static/static/js/ErrorOutline.esm.Cwi9617t.js,sha256=C81llTeyyAPH_0S1WkOYfYTY8ML55xJHlPvpHbRhEbk,499
371
- streamlit/static/static/js/FileDownload.esm.51ynStRd.js,sha256=7W3AakvZWqz3_x3Xh4tik954modBzTtDUk9zAfAW_XE,918
372
- streamlit/static/static/js/FileHelper.D56tzO8c.js,sha256=TCmUoXzeqg2V3T3RVvAskFlayA1k9JT2du0Gom7cHug,61593
373
- streamlit/static/static/js/FormClearHelper.D3Hp66Ed.js,sha256=lTnW6Bc86zFFlGafS8SLOQVVZaElkq7ygFs753_ePLQ,613
374
- streamlit/static/static/js/Hooks.BY6BNTRM.js,sha256=1gLIq7jVaaQauiIRn9po-ZDNUI_ENg8Da3kyZbVhoRQ,140
375
- streamlit/static/static/js/InputInstructions.BwiNLSMY.js,sha256=cI_WQqOYlCGeDyHKnjo-sPr6SACo-SL4EhXdJCKtIso,899
376
- streamlit/static/static/js/ProgressBar.BEUzLotK.js,sha256=TvcbrDtvZcO4RHMEisAmsBjwnslSmAT8cSgVjsbL6xI,13316
377
- streamlit/static/static/js/RenderInPortalIfExists.DM17zpkP.js,sha256=SobS0k0TYse7wQ9WWYtvfpAknxA1ioflslUy5dLfL44,500
378
- streamlit/static/static/js/Toolbar.CkeeikHg.js,sha256=T8Kt_AKABbO6S6FzUc_J_7xUNW7E9VKQC9dOkIwdlCw,2887
370
+ streamlit/static/static/js/ErrorOutline.esm.CO5UETnI.js,sha256=aG6Rg25q5csogwBZfHD1MwUt1L1vGJo7aKJg-d2uW5U,499
371
+ streamlit/static/static/js/FileDownload.esm.BodlLZ2E.js,sha256=YOTut9X74UG2ezY-MhFgWCcBtET1mPs4Qc1Cqw_CHfg,918
372
+ streamlit/static/static/js/FileHelper.BJWG5mWZ.js,sha256=cm7zeg0tFCuzeWW6n2hKHU7np3MxSiJoHKeYiWJvmwk,61593
373
+ streamlit/static/static/js/FormClearHelper.Bfl6Fb0k.js,sha256=INhYUPmXUjLB5xPPRBvoht0YHQ4bV84lJEBo4wQnx2k,613
374
+ streamlit/static/static/js/Hooks.BZNasbgB.js,sha256=MpDvsiFuhBJ4u7sTRz96KVhaiJoKHzZkQpAoJmWRWjo,140
375
+ streamlit/static/static/js/InputInstructions.D9_advjq.js,sha256=zS0ta_jiKoRP9QxOOqdThUaPSzcyX_rv3CSjx9ffu1k,899
376
+ streamlit/static/static/js/ProgressBar.BOxvIdHT.js,sha256=5EN7fkJLjy3KsGN4Tmw4PG5GoZvq4GC53Q7jahXZe84,13316
377
+ streamlit/static/static/js/RenderInPortalIfExists.B-maQ3lr.js,sha256=dTwnBGFNb6Tj2pGYz9EH3zDatR61LxP92m59-S8oGE4,500
378
+ streamlit/static/static/js/Toolbar.BulWrSVh.js,sha256=STceKXHwCmynB0BHx2GiP19PfiryGg8fXxHrZbUQpx4,2887
379
379
  streamlit/static/static/js/UploadFileInfo.C-jY39rj.js,sha256=Z_hcytEoaAX1saJgsfX1UoComwwlMcjCUZ8ldwuQJI8,151
380
- streamlit/static/static/js/base-input.yvVgWMq1.js,sha256=BmSeJV0-vc__2jgw4mwUb7N77W3ku_8xf0sjJB2LkyE,21774
381
- streamlit/static/static/js/checkbox.B0zzRnN3.js,sha256=XDE_vnwzd8fPFyOHR8W0hGEvwZ-__owyG_Cgw1dc2xw,11243
380
+ streamlit/static/static/js/base-input.oeeD4NYL.js,sha256=wvzDHErkbOmcFIHx3qALIIxNDjrvjNo9nQxfKB6Qz5s,21774
381
+ streamlit/static/static/js/checkbox.BqkhIzEX.js,sha256=yD37Hoj82DrKnHmJY0CpShNzqjiqjJMP4I8sNPUgSP0,11243
382
382
  streamlit/static/static/js/createDownloadLinkElement.DZMwyjvU.js,sha256=uB4db2cbWB2KYpRbQKK6xi-mLBiUQXQtsL5I3N6rMcU,242
383
- streamlit/static/static/js/createSuper.DUNTCGyw.js,sha256=jPdj_wGnZwZsEYl_NUW_9uDd7xjGTugK8gYSJz2YQK4,394
384
- streamlit/static/static/js/data-grid-overlay-editor.CkmHJFS4.js,sha256=YPYg6K6RxuaO8w927WbZjkpdDUDxRhyK8V0lWa_1Y3w,4054
385
- streamlit/static/static/js/downloader.SYvlWNHe.js,sha256=hk4yCE82T04YSwGEGJRBxum00pXZNDdCvqVyjZYrWx8,2510
386
- streamlit/static/static/js/es6.Dn_Sg6yN.js,sha256=l-WEnWgKfjja2hrqSQoy5xD5zIU3lVvlJQlktctK15U,14633
387
- streamlit/static/static/js/iframeResizer.contentWindow.CfNH32kg.js,sha256=fPrHFB-sRa3Y9AKFyhpO8lnRhR0SEsDgSroPVn00xQA,14406
388
- streamlit/static/static/js/index.B1hWgsYC.js,sha256=8it8kVleAAHUU54uk5k6-UIRiMERBrZr8I15hNv3Fac,50052
389
- streamlit/static/static/js/index.B6IBhXXL.js,sha256=oSS9UA4zgCzRgurTITXrApVKT_6EevmeTIog3FWBnSU,2808
390
- streamlit/static/static/js/index.B8GCXUc4.js,sha256=zdWKY0Wa-MyP4MSJa4HJTAQ9wOjmNukYL8hEriC2vYM,3385201
391
- streamlit/static/static/js/index.BRiZ2gjM.js,sha256=3O8jtPqPn5Cy8MaS8Pqk_0d500Fj-gtNK_qE_SjTQ_s,19323
392
- streamlit/static/static/js/index.BUNdJdwv.js,sha256=5-Yte6kU2tJRvFp9eBngrtVbw7Y4w9vtgcqx73Ex5oI,22623
393
- streamlit/static/static/js/index.BWpac6Co.js,sha256=HQWq22rFcKSN7mCUVvvyNEuleNFd_FFG6uIFY2JAjKo,880
394
- streamlit/static/static/js/index.BcKUsmmW.js,sha256=vzFkTFk4Qc3RlLtQvUNaghaZt69HWeWlrWRMQsLA5r8,24456
395
- streamlit/static/static/js/index.BfBckj-h.js,sha256=ayevYAFiKgD6hFo-JkBzzWHo8P_RIOly5zWt3ghbAN4,947
396
- streamlit/static/static/js/index.BntKz97_.js,sha256=-LzCZAnL27Ou4DG1GaRlEdKTJ0dQ5L1htNd8QQiSrNI,583
397
- streamlit/static/static/js/index.BpDsy6P7.js,sha256=iu4hLGi5qH72fgcAXCCZNvOEIy1zwG9Tp3beHiMcbk4,9203
398
- streamlit/static/static/js/index.BruyfZhe.js,sha256=Ljzc4H-JUf-kvS-Lih_M1wPTqJ_8MMZbwE6VJLxo6ro,12647
399
- streamlit/static/static/js/index.BxbiLBoz.js,sha256=VrfPA-hvVUq5fUM9AXfrfNDqO8VWKGVKlOBLG5k0Nd8,2852
400
- streamlit/static/static/js/index.BzFIXYgy.js,sha256=gQX71EKPw6FsAH0jS_Q2nHufYhDkd_oW8q0Tz3y9-gs,851677
401
- streamlit/static/static/js/index.C1ab5uBd.js,sha256=ZnfGISo2lF23tmJYWLjfx5ze70etQ6qReYj3hVECwSM,1276
402
- streamlit/static/static/js/index.CJJTafCM.js,sha256=KxtxqRwbp3Yp-mWXd38bNtKZVB0txR0rV66eLmwKCZs,2849
403
- streamlit/static/static/js/index.CP_ebS8J.js,sha256=L6SsQpQqoYnMIEceZD4LekAyNB9T-tRiZTJHIKQyVuk,12308
404
- streamlit/static/static/js/index.CQiUN-qB.js,sha256=5pzKd3BbMP2uhYmriLzYfiamIBGxGqPmp8cZ6AGcgRI,19003
405
- streamlit/static/static/js/index.Ce22m0pL.js,sha256=7HJ2nQwyzX7ZGEUEvxTAFzdUDymaDV2p1re807fLxuc,694
406
- streamlit/static/static/js/index.D0OXHmxl.js,sha256=iwGg5Oy5KfnoDr7wNg__ZDELQLGvcAZcCojRRWB-KKk,3618
407
- streamlit/static/static/js/index.D4Y-sPIG.js,sha256=Mfju8Mhc0ta1dOSUjCFVVmAbFdFPa0-w0n7c68ey1Pg,4105
408
- streamlit/static/static/js/index.D5BdLSQe.js,sha256=WHLLiEA8ch2OePuLzs9c05t0liy1bjU-3e3XpH7ddVQ,2388
409
- streamlit/static/static/js/index.D6T2dYXA.js,sha256=AYTHFQTiti8g2aOhSltmSehDmtg4FYzvlFu0_eGB16M,6148435
410
- streamlit/static/static/js/index.D_4zzgnM.js,sha256=48fZKSvw3bbqWFte5x98ycooett5KYwltBDKXGeOqlU,429482
411
- streamlit/static/static/js/index.DaG51Kxa.js,sha256=UiIWkFf5Y6tZPulEFacxjVMBUzWIbJMDZila6aTxTiw,1571
412
- streamlit/static/static/js/index.Dw7bwHQ9.js,sha256=QEYmfTxH4JI-qAOcj4jhHMn7aqJcNNqIdBBhK3qMxh8,7510
413
- streamlit/static/static/js/index.FkXunjOd.js,sha256=pBwh2V1wrE1wCEqMamDomisroDM-15gENW_1nHxSOUk,34743
414
- streamlit/static/static/js/index.GGLK4gvh.js,sha256=85p8d3YSH_Oh4k0J3UyRE8dxg_3Erybd8lSR1a_vNpA,2570146
415
- streamlit/static/static/js/index.HuK1SvDk.js,sha256=BA54s-YpIlklJDXTOH7t5XLtxV8hrqavINNLsPDbIYE,1708
416
- streamlit/static/static/js/index.Jh8NGUS3.js,sha256=eUvCdaLeGeAdhZKQ3nC_5Ihek-eXM4X4dbs5Uge5DCM,650
417
- streamlit/static/static/js/index.PovmrFJI.js,sha256=EuKNFWrsHSQe68QXlFmp9M7FtzoLBLK16ix0xE-Lg70,4692045
418
- streamlit/static/static/js/index.i0djEkgf.js,sha256=BR6GkJpc6gzn0DvjZ9s4VqZGk2p3rlpTKi7tThISDBo,3084
419
- streamlit/static/static/js/index.iaPLfTT0.js,sha256=ZCBRiQfLyoQmDNjOzFavFkihz2wkhMTTiRXsaSElM-k,1810
420
- streamlit/static/static/js/index.kOzLZcEm.js,sha256=OOF8vFUhYm0vemuaAEVz8AAW1UJf282Kj0oscVzaeg0,1332
421
- streamlit/static/static/js/index.nghT_Lxa.js,sha256=UGoqwoUNTGyq1LORnbrVhnbJtLIXyk5JOQfonxKdpyk,2522
422
- streamlit/static/static/js/index.q3-Tm2pt.js,sha256=2j84t8MLCTlagAO302ehe4gf4kSqY1W70HZKXZMEtC8,851493
423
- streamlit/static/static/js/index.vgdzRlb1.js,sha256=j_myaGg4BqAkVdpEKVOcQ9mDvvHFSaEmhT8BlBxzqSk,443
424
- streamlit/static/static/js/index.vvD6DJW9.js,sha256=-hGtBJ-MTli3UEcs__Nr3UOLOvI2OSZQqL-fj0nFPy8,127601
425
- streamlit/static/static/js/input.BPpQxxzu.js,sha256=x9F2GQOBiEfi2JyjeZa83q__1NSmCvkIcR_uMrJJqqY,5244
383
+ streamlit/static/static/js/createSuper.bxk9uEsc.js,sha256=8LVod_7oT8sidROsuQj6AMlq8ntR39RQ3L5_qK6rvy8,394
384
+ streamlit/static/static/js/data-grid-overlay-editor.BFUaa7qj.js,sha256=KPo50x3R1rkSfIG4NkRlp4ZPCFhTVPhopzGuskG8EQw,4054
385
+ streamlit/static/static/js/downloader.CkJ9l-mW.js,sha256=i69j2s6J1fc1QlD2uBWZirGr1_kLOMrefYhHhW8QxSA,2510
386
+ streamlit/static/static/js/es6.CwBeRZxt.js,sha256=742qGuZ78orYA9jD04fX3_XxopA1IkEYcp-48SMOJdU,14633
387
+ streamlit/static/static/js/iframeResizer.contentWindow.B4xDykub.js,sha256=v09R8ia5DzmtV0UTF_8eideoS-51rRmlDzWrQaqNrBQ,14406
388
+ streamlit/static/static/js/index.B0vAXwMf.js,sha256=MtMuwxAEZXeSp_yvE1MiI232HOyQmrlr5G9KhQavJio,19323
389
+ streamlit/static/static/js/index.B6ClyDWN.js,sha256=lONCSyDQKt0J19VWqd4U44e9hKG-KqRIwEh9Jpk_2Es,4137
390
+ streamlit/static/static/js/index.BAyahmk4.js,sha256=fotMMcT8rtCQu8zDE1-NAV4d_r3cIanY2FmU-5hlQFw,1332
391
+ streamlit/static/static/js/index.BGGyfLIH.js,sha256=O0_y5MwnrHvfi7Rhb6P_Jr36FbnMm7mghFYT6ClqCRI,12345
392
+ streamlit/static/static/js/index.BHzjJ3JF.js,sha256=hzY9yYY3MOAFH7UxOBu0XVkR4CeEwMeJHkCvHYTLq8o,429482
393
+ streamlit/static/static/js/index.BNmqvLux.js,sha256=yU-T820igOkVGCHuW-fqIWQRWRwDLeHEmWPpJj-IF4A,19003
394
+ streamlit/static/static/js/index.BP1DQKkm.js,sha256=UPuqlaKHxgNXHddN4UxTi85vkKJH33-QEwrb92hnlDs,2388
395
+ streamlit/static/static/js/index.BPKHA8Id.js,sha256=nViV3YGvbMqYFnqgkl2hMllEx1CjhvdtNVLkI2zHeRA,12647
396
+ streamlit/static/static/js/index.BTHnpf1I.js,sha256=17JsrDIugLmBNyNQ1KWcSegCJKRV1pj-Xt4Cr9JJsCM,4692090
397
+ streamlit/static/static/js/index.Ba65H8D9.js,sha256=kXQBaIR89Rn_XUI99xfEriy2jvk6tq-0eSpmknIv0sg,650
398
+ streamlit/static/static/js/index.BdnKKSPg.js,sha256=MCqQ6cqnTRtvxHyuH3dYhHeDRQqulEPk_B_fWnbQx40,443
399
+ streamlit/static/static/js/index.Bejef4Pk.js,sha256=m5paBBMJj9U1xGBjiY26nxYa5pRbgzFm1LQiEAFBhrg,851716
400
+ streamlit/static/static/js/index.BffMV8Pv.js,sha256=K3PfZ03_ROJ35W85jLYRT0ysWr4zJ7ge96Sh_qajZyE,127633
401
+ streamlit/static/static/js/index.BxVKLNUY.js,sha256=LdnDjdE_6m9FZnlkJdQbI20paJVU2JRPCaPJyrmj2HY,1571
402
+ streamlit/static/static/js/index.BypmpIBL.js,sha256=OX1hXmIMxfUUfl6HL99vzScujrS2m5vlyBOTLIUC6OA,3116
403
+ streamlit/static/static/js/index.C795t44A.js,sha256=jh2x9vv9dpHp3oCzHLxktCfTlKZfFA-ay5J0c_sofiU,583
404
+ streamlit/static/static/js/index.CFoM9W4u.js,sha256=MGkaiejaGznXgL0C2aHjAXJs1GHL5k2f2-RLuLq55kE,3618
405
+ streamlit/static/static/js/index.CGqm8hCs.js,sha256=VBFL717G6LlTmUBXMEvn-vShsIHfFO-Hd6AeY0fEPAw,2522
406
+ streamlit/static/static/js/index.CIEFJvy6.js,sha256=VmnYwXqXKhHpxYmvWYKdgcoL4w4CNVxLTpICY5XXhDw,1708
407
+ streamlit/static/static/js/index.CIeZ4fAx.js,sha256=CyZOrzytysduuAilBXGulpLvhj1vvI1iwwdhGv3bRP4,1810
408
+ streamlit/static/static/js/index.CL4vTLmN.js,sha256=FdPgJ5F3tiP96IB4dftokP_bBtu-dkwgUapHLvN3ozM,880
409
+ streamlit/static/static/js/index.CfqX1ZBe.js,sha256=dcSdUs6eoa5hb6WASP6_5sD8rUAdjM13roTXXqj3mPw,2852
410
+ streamlit/static/static/js/index.D-8V3tc4.js,sha256=8ZTFDaissY4aZnnqxoqTPzS250eEksIrLQlqyEeSEvQ,694
411
+ streamlit/static/static/js/index.D-sXGL7m.js,sha256=ozcY0QQTce-9o7DT07QG4erp4TFhaHZo1HeFJPuc5ko,50052
412
+ streamlit/static/static/js/index.D3TXItBH.js,sha256=JfDv0Vj91YVXpxzUVQv40P24wot5N3GE0jsdXRLUZ08,22623
413
+ streamlit/static/static/js/index.D4WIU5V6.js,sha256=Fw-MC3bvHAB9uDAmN1U5L_s1CdxJnvJ7yjGe5GNrn64,2881
414
+ streamlit/static/static/js/index.DFRMOZ8C.js,sha256=ugxIRfoLyjCoqvFQYkxBdG-zrZrTnBo8nXWSLUNPBj0,2570146
415
+ streamlit/static/static/js/index.DQXLgrs8.js,sha256=jq263h0ho-FfXIgMLPzfIEch0-Qm6orXrVGrDxBVJtI,3385201
416
+ streamlit/static/static/js/index.DgSLJq20.js,sha256=Zf76p_rRAj8PG3iC6T8Gr-oxDYnf3VT09Bxdi_bnVFE,7542
417
+ streamlit/static/static/js/index.Dl-ChXDk.js,sha256=iWhCp2u_eXJh-uoOohPtUKBmnOGylpclRx5FGU81n9M,2808
418
+ streamlit/static/static/js/index.FerMd1cU.js,sha256=4qO-wBTPjFtg3lCXoS8WdJ8nnjBFAEd9U57ZrNDhzlI,24496
419
+ streamlit/static/static/js/index.JlbLrYBv.js,sha256=cQBu0zKb35H3B3aTdmo7wjHSWCT_hkSHZbUfMRo1RXQ,6149786
420
+ streamlit/static/static/js/index.VY0EoknV.js,sha256=lflsphIDz2dkQujl0bq-ck7ep9RNG77p7QU4OiqtN5I,9203
421
+ streamlit/static/static/js/index.aAeBp5Oj.js,sha256=6JTvJr5uoAAmQni_NASqwSONaVZykVNd2_lmb3ILtwA,34743
422
+ streamlit/static/static/js/index.oJk4Ge1s.js,sha256=5VloS1m8E5_daZBi8LN4Pcfh6g4nqHuX7XXVZQdls6E,851493
423
+ streamlit/static/static/js/index.um9CUbiU.js,sha256=raiuGSSkpzFhjMjIQSf1_l5I5-Z7N9p6T0hE6hvNQqM,947
424
+ streamlit/static/static/js/index.zT8XLZtx.js,sha256=xn5QIy4SUJeJesyfQ24Qyv51y4Qw6V8D4fDAH_tuq5A,1276
425
+ streamlit/static/static/js/input.C3tznRn_.js,sha256=M_ehL22X_WnWfOtRPrR9iZW3XhnuyIq0RK-ANK-nbc8,5244
426
426
  streamlit/static/static/js/inputUtils.CptNuJwn.js,sha256=v9SUbdkM8OJ6aT_EfTucTRNZh059kZ9Mut2oyTmv_98,124
427
- streamlit/static/static/js/memory.CR9Ajd2U.js,sha256=RjzQZxTc1HY9gGk_Zn_yqsTw7ZmMokbZbzKYU-miqZI,3041
428
- streamlit/static/static/js/mergeWith.DjeH399x.js,sha256=-XGfD02LAcNj2KumFFdw7HyyKJ9gomk4PwjzgE7Vt30,198
429
- streamlit/static/static/js/number-overlay-editor.D8gzaWdQ.js,sha256=-42ZK3S0MwMxI1FWsIcSW9wpFb_GVYM3ncAAHxVC4mA,16439
430
- streamlit/static/static/js/possibleConstructorReturn.ChodIDx3.js,sha256=ONf-MInmUF_I3eao9okSribGt0fkDalpbim_XW-IG6A,1451
431
- streamlit/static/static/js/sandbox.Deilbzun.js,sha256=4G9HguJwkkNfMv1bx9pn2Eo9CeLRr64ojWxv_g6VHZ4,2960
427
+ streamlit/static/static/js/memory.OHbOX5Ru.js,sha256=8AFiUHPRHoV62VwCNSBHrxpcz4luYGGsfCEOA2w_Xa0,3041
428
+ streamlit/static/static/js/mergeWith._KN0v5Xp.js,sha256=YW9M7rGhccxABK5NPM9Ao6_j77wVmBH9s6yTymWBxAI,198
429
+ streamlit/static/static/js/number-overlay-editor.BKok-OUE.js,sha256=GmME2pozWbrBW80jkWWZmbF2R1HNUwTd1haD6WiCn-8,16439
430
+ streamlit/static/static/js/possibleConstructorReturn.BfCdE8Gx.js,sha256=jFFPnYNZEHZx5MrY56hf47YZDS4UsVGtpjQGDO_dsEs,1451
431
+ streamlit/static/static/js/sandbox.BeWP76j9.js,sha256=SGRbdp1vXWLOGPzcWdtSontjr2_Y95M_NnYNYdyOrTQ,2960
432
432
  streamlit/static/static/js/sprintf.D7DtBTRn.js,sha256=dLZEkTCGwWgkxMOITY-fqjbGVuUO9nFw7MwCANBdisk,3434
433
433
  streamlit/static/static/js/threshold.DjX0wlsa.js,sha256=ToJ7upF_PGcC41-Cfe0gGTVgWb0yjhBbHTQrd4GD4gg,5693
434
- streamlit/static/static/js/timepicker.CQyXj151.js,sha256=K1_d5dcBEhJ3Qihsnga9mK0T2XOjxr0pgvy1r46v0Ss,89220
434
+ streamlit/static/static/js/timepicker.C8LfA2ZU.js,sha256=9SmTrX2pO5-bwtMICdwzWbT7CuMfL-iLbT1OzcEiYE8,89220
435
435
  streamlit/static/static/js/timer.CAwTRJ_g.js,sha256=aNjItH3iW2RuvnLaZ54iUi50rhEiW93-1Rel2EyaRlQ,7408
436
- streamlit/static/static/js/toConsumableArray.Ddyzgz2E.js,sha256=T2DZLZIEnPRnyGCfC0mQPWKNOqxs9F-c8GKA5UCi_6g,1587
437
- streamlit/static/static/js/uniqueId.Cr5-pyqr.js,sha256=vZufMn4v5stc26Y8U50sz4dboo6VZatv_qYP76L8LWA,190
438
- streamlit/static/static/js/useBasicWidgetState.DX8Dvi5d.js,sha256=q6f-cRDJwCQW2DMoygDLzR58SMhxD7MhojMAzAaIY28,953
439
- streamlit/static/static/js/useOnInputChange.CGiEpYpi.js,sha256=XvvTFmJTP5pjQN4EZiMRT7-v2lIeLQiB0C2jvvNBdlQ,615
440
- streamlit/static/static/js/useTextInputAutoExpand.BPsrdzpb.js,sha256=1lcqoLo8-WG33rzdOJ2suyNPBcp8KdkUmr7N-ZMZobg,6589
436
+ streamlit/static/static/js/toConsumableArray.BHlwNsw4.js,sha256=Ym0yb4OfHVQkYvbFa5ZeD0ZoXdtxwtnI94JN7oop3Ls,1587
437
+ streamlit/static/static/js/uniqueId.Ds4mfmXu.js,sha256=AH7KsFFA8fgpd_5ZO2yoWvo4kXuDz_MmcuotrdUM4Tk,190
438
+ streamlit/static/static/js/useBasicWidgetState.Ds5amAnj.js,sha256=yYwAVtCamrwuStoXyTb85ZLWwPbpqCoeslJ8pncsLEQ,953
439
+ streamlit/static/static/js/useOnInputChange.CnPrmPV-.js,sha256=_8qX4h7l6wghMwjCi68nwvWHRvLwL417nxSgqA9oYV4,615
440
+ streamlit/static/static/js/useTextInputAutoExpand.DRi3Jfhk.js,sha256=AUiv9Vn1wF_hzQncG8g1vFit4wa7YnNAQqpTy68pJoc,6589
441
441
  streamlit/static/static/js/value.CgPGBV_l.js,sha256=7g4Owjf_hP16pkcLYPvARUlzIjBgl9APVNw2hnHYtWY,15042
442
- streamlit/static/static/js/withFullScreenWrapper.DpxbNIyf.js,sha256=-p6uFzURDO76X78E4Z9ND8zQFnS19j-lp0E4-x2ANws,1519
442
+ streamlit/static/static/js/withFullScreenWrapper.DtwYvNjS.js,sha256=seYgdt0j2IEJBvj4C1O9kTC4rKJWsEfO_QsuE_kDnnM,1519
443
443
  streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
444
444
  streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
445
445
  streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
@@ -551,9 +551,9 @@ streamlit/web/server/server_util.py,sha256=NCOxLbtvLVPqDqqwq14aFIdZclBTG3q-el-TP
551
551
  streamlit/web/server/stats_request_handler.py,sha256=M1g40mgy78f316gP7_W8I__Q4e9x0NoNjiNLQdH58ds,3848
552
552
  streamlit/web/server/upload_file_request_handler.py,sha256=A-wgVOk6TCxf_KU-lQhawygSBKk5fwrD3Zkrz375Yj4,5269
553
553
  streamlit/web/server/websocket_headers.py,sha256=2OHv6G9hLJ0UX8oHDG3UJ86_KK4SJJD8FXOCsZjCKek,2229
554
- streamlit_nightly-1.46.2.dev20250707.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
555
- streamlit_nightly-1.46.2.dev20250707.dist-info/METADATA,sha256=-vhoIDdyndNH3glP3OhzwmnK7-msES75ieKoS9wTYiQ,8973
556
- streamlit_nightly-1.46.2.dev20250707.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
557
- streamlit_nightly-1.46.2.dev20250707.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
558
- streamlit_nightly-1.46.2.dev20250707.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
559
- streamlit_nightly-1.46.2.dev20250707.dist-info/RECORD,,
554
+ streamlit_nightly-1.46.2.dev20250708.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
555
+ streamlit_nightly-1.46.2.dev20250708.dist-info/METADATA,sha256=rL2_12vAgfL8y_7JJPndZlWkTvnVEJ_z5F-GKc_KMUQ,8973
556
+ streamlit_nightly-1.46.2.dev20250708.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
557
+ streamlit_nightly-1.46.2.dev20250708.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
558
+ streamlit_nightly-1.46.2.dev20250708.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
559
+ streamlit_nightly-1.46.2.dev20250708.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- import{r as p,z as k,B as T,j as n,C,bs as y,aG as S,bA as L,bt as W,ba as B,bM as w,J as R,bN as E,bO as $}from"./index.D6T2dYXA.js";import{a as P}from"./useBasicWidgetState.DX8Dvi5d.js";import{a as v,L as M,S as m}from"./checkbox.B0zzRnN3.js";import"./FormClearHelper.D3Hp66Ed.js";function X({element:t,disabled:a,widgetMgr:s,fragmentId:d}){const[f,g]=P({getStateFromWidgetMgr:H,getDefaultStateFromProto:V,getCurrStateFromProto:G,updateWidgetMgrState:I,element:t,widgetMgr:s,fragmentId:d}),x=p.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),e=k(),{colors:o,spacing:h,sizes:r}=e,b=T(e),u=a?o.fadedText40:o.bodyText;return n($,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(v,{checked:f,disabled:a,onChange:x,"aria-label":t.label,checkmarkType:t.type===E.StyleType.TOGGLE?m.toggle:m.default,labelPlacement:M.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${e.spacing.twoXS})`,height:`calc(${r.checkbox} - ${e.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:e.spacing.twoXS,paddingLeft:e.spacing.threeXS,paddingRight:e.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:e.radii.full,borderTopLeftRadius:e.radii.full,borderBottomRightRadius:e.radii.full,borderTopRightRadius:e.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:e.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${R(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:e.lineHeights.small,paddingLeft:e.spacing.sm,position:"relative",color:u}}},children:C(w,{visibility:y(t.labelVisibility?.value),"data-testid":"stWidgetLabel",children:[n(S,{source:t.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),t.help&&n(L,{color:u,children:n(W,{content:t.help,placement:B.TOP_RIGHT})})]})})})}function H(t,a){return t.getBoolValue(a)}function V(t){return t.default??null}function G(t){return t.value??null}function I(t,a,s,d){a.setBoolValue(t,s.value,{fromUi:s.fromUi},d)}const N=p.memo(X);export{N as default};
@@ -1 +0,0 @@
1
- import{s as U,r as o,aQ as k,z as H,cv as S,C as B,j as n,bs as j,bI as O,bt as _,ba as w,bu as K,D as $,cw as q}from"./index.D6T2dYXA.js";import{u as A}from"./uniqueId.Cr5-pyqr.js";import{u as G,a as N,b as Q}from"./useOnInputChange.CGiEpYpi.js";import{a as J}from"./useBasicWidgetState.DX8Dvi5d.js";import{I as M}from"./InputInstructions.BwiNLSMY.js";import{I as X}from"./input.BPpQxxzu.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.D3Hp66Ed.js";import"./base-input.yvVgWMq1.js";const Y=U("div",{target:"e1o1zy6o0"})("position:relative;");function Z({disabled:a,element:t,widgetMgr:s,fragmentId:u}){const[r,c]=o.useState(()=>W(s,t)??null),[T,y]=k(),[i,p]=o.useState(!1),x=o.useCallback(()=>{c(t.default??null),p(!0)},[t.default]),[V,m]=J({getStateFromWidgetMgr:W,getDefaultStateFromProto:tt,getCurrStateFromProto:et,updateWidgetMgrState:at,element:t,widgetMgr:s,fragmentId:u,onFormCleared:x});G(V,r,c,i);const[C,g]=o.useState(!1),e=H(),[b]=o.useState(()=>A("text_input_")),{placeholder:F,formId:l,icon:d,maxChars:f}=t,h=o.useCallback(()=>{p(!1),m({value:r,fromUi:!0})},[r,m]),v=S({formId:l})?s.allowFormEnterToSubmit(l):i,z=C&&T>e.breakpoints.hideWidgetDetails,E=o.useCallback(()=>{i&&h(),g(!1)},[i,h]),R=o.useCallback(()=>{g(!0)},[]),L=N({formId:l,maxChars:f,setDirty:p,setUiValue:c,setValueWithSource:m}),P=Q(l,h,i,s,u),I=d?.startsWith(":material"),D=I?"lg":"base";return B(Y,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[n(K,{label:t.label,disabled:a,labelVisibility:j(t.labelVisibility?.value),htmlFor:b,children:t.help&&n(O,{children:n(_,{content:t.help,placement:w.TOP_RIGHT})})}),n(X,{value:r??"",placeholder:F,onBlur:E,onFocus:R,onChange:L,onKeyPress:P,"aria-label":t.label,disabled:a,id:b,type:ot(t),autoComplete:t.autocomplete,startEnhancer:d&&n($,{"data-testid":"stTextInputIcon",iconValue:d,size:D}),overrides:{Input:{style:{minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,paddingLeft:d?e.spacing.sm:0}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:I?e.colors.fadedText60:"inherit"}}}}),z&&n(M,{dirty:i,value:r??"",maxLength:f,inForm:S({formId:l}),allowEnterToSubmit:v})]})}function W(a,t){return a.getStringValue(t)??null}function tt(a){return a.default??null}function et(a){return a.value??null}function at(a,t,s,u){t.setStringValue(a,s.value,{fromUi:s.fromUi},u)}function ot(a){return a.type===q.Type.PASSWORD?"password":"text"}const mt=o.memo(Z);export{mt as default};
@@ -1 +0,0 @@
1
- import{r as l,E as Y,_,s as p,B as dt,z as M,j as o,ba as q,bv as ct,C as S,bq as G,b5 as J,bp as E,a$ as pt,bJ as ut,bH as j,bk as gt,bK as v,bt as ht,F as Q,aQ as ft,bh as mt,bL as yt,M as H,bm as Ct,bl as bt}from"./index.D6T2dYXA.js";import{g as vt,C as It,I as xt,F as $,E as wt,a as St,s as Ft,u as Ut,b as zt}from"./FileHelper.D56tzO8c.js";import{I as Et}from"./InputInstructions.BwiNLSMY.js";import{i as Tt}from"./inputUtils.CptNuJwn.js";import{u as Bt,T as Dt}from"./useTextInputAutoExpand.BPsrdzpb.js";import{E as Rt}from"./ErrorOutline.esm.Cwi9617t.js";import{U as Z}from"./UploadFileInfo.C-jY39rj.js";import"./base-input.yvVgWMq1.js";var tt=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement(Y,_({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),l.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))});tt.displayName="AttachFile";var et=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement(Y,_({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("rect",{width:24,height:24,fill:"none"}),l.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))});et.displayName="Send";const Ht=p("div",{target:"e1togvvn0"})("border:none;position:relative;display:flex;"),Lt=p("div",{target:"e1togvvn1"})(({theme:t,extended:e})=>({border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,position:"relative",flexGrow:1,display:"flex",alignItems:"center",paddingLeft:t.spacing.lg,maxHeight:e?"none":t.sizes.minElementHeight,gap:t.spacing.sm,overflow:"hidden",":focus-within":{borderColor:t.colors.primary}})),kt=p("button",{target:"e1togvvn2"})(({theme:t,disabled:e,extended:r})=>{const d=dt(t),[f,c]=d?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:r?"0":t.radii.chatInput,borderTopLeftRadius:r?t.radii.default:"0",borderBottomRightRadius:t.radii.chatInput,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:e?f:c,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:d?t.colors.gray10:t.colors.gray90},"&:hover":{color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray,cursor:"not-allowed"}}}),$t=p("div",{target:"e1togvvn3"})(({theme:t})=>({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,marginBottom:`-${t.sizes.borderWidth}`,pointerEvents:"none"})),Mt=p("div",{target:"e1togvvn4"})(({theme:t})=>({position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`})),Vt=p("div",{target:"e15560op0"})(({theme:t,height:e})=>({backgroundColor:t.colors.transparent,position:"absolute",left:0,bottom:0,minHeight:`max(${t.sizes.emptyDropdownHeight}, ${e})`,width:"100%",zIndex:t.zIndices.priority})),Wt=p("div",{target:"e15560op1"})(({theme:t,height:e})=>({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",height:e,width:"100%",fontWeight:t.fontWeights.bold})),Nt=p("div",{target:"e15560op2"})(({theme:t,disabled:e})=>({display:"flex",alignItems:"top",height:"100%",marginTop:`-${t.sizes.borderWidth}`,cursor:e?"not-allowed":"auto"})),At=p("div",{target:"e15560op3"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),Pt=p("div",{target:"e15560op4"})(({theme:t})=>({marginTop:"0.625em",marginLeft:t.spacing.sm,height:t.spacing.xl,width:t.sizes.borderWidth,backgroundColor:t.colors.fadedText20})),Kt=p("div",{target:"e15560op5"})(({theme:t})=>({left:0,right:0,lineHeight:t.lineHeights.tight,paddingLeft:t.spacing.sm,paddingRight:t.spacing.sm,overflowX:"auto"})),Ot=p("div",{target:"e15560op6"})({display:"flex"}),Xt=p("div",{target:"e15560op7"})({flex:"0 0 auto"}),jt=p("div",{target:"e15560op8"})(({theme:t})=>({display:"flex",alignItems:"center",padding:t.spacing.sm,gap:t.spacing.twoXS})),Yt=p("div",{target:"e15560op9"})(({theme:t})=>({color:t.colors.fadedText60})),_t=p("div",{target:"e15560op10"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploaded"?t.colors.bodyText:t.colors.fadedText60})),qt=p("div",{target:"e15560op11"})(({theme:t})=>({marginRight:t.spacing.md,color:t.colors.fadedText60})),Gt=p("small",{target:"e15560op12"})(({theme:t})=>({display:"flex",alignItems:"center",maxHeight:t.sizes.smallElementHeight,color:t.colors.fadedText60,"& :hover":{color:t.colors.bodyText}}));function Jt({children:t,content:e}){const r=M();return o(ct,{content:e,placement:q.TOP,overrides:{Body:{style:{top:`-${r.sizes.minElementHeight}`}}},children:t})}const Qt=({fileInfo:t})=>{const e=M(),{type:r}=t.status;switch(r){case"uploading":return o(ut,{usingCustomTheme:!1,"data-testid":"stChatInputFileIconSpinner",size:"lg",margin:"0",padding:"0"});case"error":return o(Jt,{content:t.status.errorMessage,children:o(E,{color:e.colors.red,content:Rt,size:"lg"})});case"uploaded":return o(E,{content:xt,size:"lg"});default:return pt(r),null}},Zt=({fileInfo:t,onDelete:e})=>S(jt,{className:"stChatInputFile","data-testid":"stChatInputFile",children:[o(Yt,{children:o(Qt,{fileInfo:t})}),o(_t,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:t.name}),o(qt,{children:vt(t.size,$.Byte)}),o(Gt,{"data-testid":"stChatInputDeleteBtn",children:o(G,{onClick:()=>e(t.id),kind:J.MINIMAL,children:o(E,{content:It,size:"lg"})})})]}),te=l.memo(Zt),ee=({items:t,onDelete:e})=>o(Kt,{"data-testid":"stChatUploadedFiles",children:o(Ot,{children:t.map(r=>o(Xt,{children:o(te,{fileInfo:r,onDelete:e})},r.id))})}),oe=l.memo(ee),ne=({getNextLocalFileId:t,addFiles:e,updateFile:r,uploadClient:d,element:f,onUploadProgress:c,onUploadComplete:C})=>(y,m)=>{const g=j.CancelToken.source(),u=new Z(m.name,m.size,t(),{type:"uploading",cancelToken:g,progress:1});e([u]),d.uploadFile({formId:"",...f},y.uploadUrl,m,h=>c(h,u.id),g.token).then(()=>C(u.id,y)).catch(h=>{j.isCancel(h)||r(u.id,u.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})},ae=({acceptMultipleFiles:t,maxFileSize:e,uploadClient:r,uploadFile:d,addFiles:f,getNextLocalFileId:c,deleteExistingFiles:C,onUploadComplete:y})=>(m,g)=>{if(!t&&m.length===0&&g.length>1){const u=g.findIndex(h=>h.errors?.[0].code===wt.TooManyFiles);u>=0&&(m.push(g[u].file),g.splice(u,1))}if(!t&&m.length>0&&C(),r.fetchFileURLs(m).then(u=>{gt(u,m).forEach(([h,T])=>{d(h,T)})}).catch(u=>{f(m.map(h=>new Z(h.name,h.size,c(),{type:"error",errorMessage:u})))}),g.length>0){const u=g.map(h=>St(h,c(),e));f(u)}y()},re=({getRootProps:t,getInputProps:e,acceptFile:r,disabled:d,theme:f})=>S(Nt,{disabled:d,children:[S(At,{"data-testid":"stChatInputFileUploadButton",disabled:d,...t(),children:[o("input",{...e()}),o(ht,{content:`Upload or drag and drop ${r===v.Multiple?"files":"a file"}`,placement:q.TOP,onMouseEnterDelay:500,children:o(G,{kind:J.MINIMAL,disabled:d,children:o(E,{content:tt,size:"lg",color:d?f.colors.fadedText40:f.colors.fadedText60})})})]}),o(Pt,{})]}),ie=l.memo(re),se=({getRootProps:t,getInputProps:e,acceptFile:r,inputHeight:d})=>S(Q,{children:[o(Vt,{height:d,...t(),children:o("input",{...e()})}),o(Wt,{height:d,children:`Drag and drop ${r===v.Multiple?"files":"a file"} here`})]}),le=l.memo(se),L=(t,e,r)=>r.map(d=>d.id===t?e:d),k=(t,e)=>e.find(r=>r.id===t);function de({disabled:t,element:e,widgetMgr:r,fragmentId:d,uploadClient:f}){const c=M(),{placeholder:C,maxChars:y}=e,m=l.useRef(0),g=l.useRef(null),[u,h]=ft(),{innerWidth:T,innerHeight:V}=mt(),[F,B]=l.useState(e.default),[I,x]=l.useState([]),[U,D]=l.useState(!1),w=Bt({textareaRef:g,dependencies:[C]}),R=l.useMemo(()=>I.some(n=>n.status.type==="uploading")?!1:F!==""||I.length>0,[I,F]),b=yt(e.acceptFile),W=Ft(e.maxUploadSizeMb,$.Megabyte,$.Byte),N=l.useCallback(n=>x(i=>[...i,...n]),[]),A=l.useCallback(n=>{x(i=>{const s=k(n,i);return H(s)?i:(s.status.type==="uploading"&&s.status.cancelToken.cancel(),s.status.type==="uploaded"&&s.status.fileUrls.deleteUrl&&f.deleteFile(s.status.fileUrls.deleteUrl),i.filter(a=>a.id!==n))})},[f]),ot=()=>{const n=I.filter(i=>i.status.type==="uploaded").map(i=>{const{name:s,size:a,status:z}=i,{fileId:st,fileUrls:lt}=z;return new Ct({fileId:st,fileUrls:lt,name:s,size:a})});return new bt({uploadedFileInfo:n})},P=()=>m.current++,nt=ae({acceptMultipleFiles:b===v.Multiple,maxFileSize:W,uploadClient:f,uploadFile:ne({getNextLocalFileId:P,addFiles:N,updateFile:(n,i)=>{x(s=>L(n,i,s))},uploadClient:f,element:e,onUploadProgress:(n,i)=>{x(s=>{const a=k(i,s);if(H(a)||a.status.type!=="uploading")return s;const z=Math.round(n.loaded*100/n.total);return a.status.progress===z?s:L(i,a.setStatus({type:"uploading",cancelToken:a.status.cancelToken,progress:z}),s)})},onUploadComplete:(n,i)=>{x(s=>{const a=k(n,s);return H(a)||a.status.type!=="uploading"?s:L(a.id,a.setStatus({type:"uploaded",fileId:i.fileId,fileUrls:i}),s)})}}),addFiles:N,getNextLocalFileId:P,deleteExistingFiles:()=>I.forEach(n=>A(n.id)),onUploadComplete:()=>{g.current&&g.current.focus()}}),{getRootProps:K,getInputProps:O}=Ut({onDrop:nt,multiple:b===v.Multiple,accept:zt(e.fileType),maxSize:W}),X=()=>{if(g.current&&g.current.focus(),!R||t)return;const n={data:F,fileUploaderState:ot()};r.setChatInputValue(e,n,{fromUi:!0},d),x([]),B("")},at=n=>{const{metaKey:i,ctrlKey:s,shiftKey:a}=n;Tt(n)&&!a&&!s&&!i&&(n.preventDefault(),X())},rt=n=>{const{value:i}=n.target;y!==0&&i.length>y||(B(i),w.updateScrollHeight())};l.useEffect(()=>{if(e.setValue){e.setValue=!1;const n=e.value||"";B(n)}},[e]),l.useEffect(()=>{const n=a=>{a.preventDefault(),a.stopPropagation(),!U&&a.dataTransfer?.types.includes("Files")&&D(!0)},i=a=>{a.preventDefault(),a.stopPropagation(),U&&(a.clientX<=0&&a.clientY<=0||a.clientX>=T&&a.clientY>=V)&&D(!1)},s=a=>{a.preventDefault(),a.stopPropagation(),U&&D(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",s),window.addEventListener("dragleave",i),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",s),window.removeEventListener("dragleave",i)}},[U,T,V]);const it=b!==v.None&&U;return S(Q,{children:[b===v.None?null:o(oe,{items:[...I],onDelete:A}),o(Ht,{className:"stChatInput","data-testid":"stChatInput",ref:h,children:it?o(le,{getRootProps:K,getInputProps:O,acceptFile:b,inputHeight:w.height}):S(Lt,{extended:w.isExtended,children:[b===v.None?null:o(ie,{getRootProps:K,getInputProps:O,acceptFile:b,disabled:t,theme:c}),o(Dt,{inputRef:g,value:F,placeholder:C,onChange:rt,onKeyDown:at,"aria-label":C,disabled:t,rows:1,overrides:{Root:{style:{minHeight:c.sizes.minElementHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0"}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:c.lineHeights.inputWidget,"::placeholder":{color:c.colors.fadedText60},height:w.height,maxHeight:w.maxHeight,paddingLeft:c.spacing.none,paddingBottom:c.spacing.sm,paddingTop:c.spacing.sm,paddingRight:`calc(${c.iconSizes.xl} + 2 * ${c.spacing.sm} + ${c.spacing.sm})`}}}}),u>c.breakpoints.hideWidgetDetails&&o(Mt,{children:o(Et,{dirty:R,value:F,maxLength:y,type:"chat",inForm:!1})}),o($t,{children:o(kt,{onClick:X,disabled:!R||t,extended:w.isExtended,"data-testid":"stChatInputSubmitButton",children:o(E,{content:et,size:"xl",color:"inherit"})})})]})})]})}const Ce=l.memo(de);export{Ce as default};
@@ -1 +0,0 @@
1
- import{s as w,bs as T,cu as O,r as s,aQ as _,z as q,cv as H,C as G,j as u,bI as K,bt as $,ba as N,bu as Q}from"./index.D6T2dYXA.js";import{u as J}from"./uniqueId.Cr5-pyqr.js";import{u as M,a as X,b as Y}from"./useOnInputChange.CGiEpYpi.js";import{I as Z}from"./InputInstructions.BwiNLSMY.js";import{a as tt}from"./useBasicWidgetState.DX8Dvi5d.js";import{u as et,T as it}from"./useTextInputAutoExpand.BPsrdzpb.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.D3Hp66Ed.js";import"./base-input.yvVgWMq1.js";const at=w("div",{target:"e1r0q00f0"})({height:"100%",display:"flex",flexDirection:"column"}),st=(e,t)=>{let a="auto";if(e.heightConfig?.useStretch)a="100%";else if(e.heightConfig?.pixelHeight&&e.heightConfig.pixelHeight>0){const o=T(t.labelVisibility?.value)===O.Collapsed?2:30;a=`${e.heightConfig.pixelHeight-o}px`}return a},S=(e,t)=>e.getStringValue(t)??t.default??null,ot=e=>e.default??null,rt=e=>e.value??null,lt=(e,t,a,o)=>{t.setStringValue(e,a.value,{fromUi:a.fromUi},o)},nt=({disabled:e,element:t,widgetMgr:a,fragmentId:o,outerElement:d})=>{const m=s.useRef(J("text_area_")).current,[W,y]=_(),[r,c]=s.useState(!1),[I,b]=s.useState(!1),l=d.heightConfig?.useContent??!1,V=d.heightConfig?.useStretch??!1,v=st(d,t),x=s.useRef(null),[n,h]=s.useState(()=>S(a,t)??null),A=s.useCallback(()=>{h(t.default??null),c(!0)},[t]),[F,g]=tt({getStateFromWidgetMgr:S,getDefaultStateFromProto:ot,getCurrStateFromProto:rt,updateWidgetMgrState:lt,element:t,widgetMgr:a,fragmentId:o,onFormCleared:A});M(F,n,h,r);const i=q(),{height:R,maxHeight:z,updateScrollHeight:C}=et({textareaRef:x,dependencies:[t.placeholder]}),p=s.useCallback(()=>{c(!1),g({value:n,fromUi:!0})},[n,g]),k=s.useCallback(()=>{r&&p(),b(!1)},[r,p]),E=s.useCallback(()=>{b(!0)},[]),L=s.useCallback(()=>{l&&C()},[l,C]),P=X({formId:t.formId,maxChars:t.maxChars,setDirty:c,setUiValue:h,setValueWithSource:g,additionalAction:L}),U=Y(t.formId,p,r,a,o,!0),{placeholder:D,formId:f}=t,B=H({formId:f})?a.allowFormEnterToSubmit(f):r,j=I&&W>i.breakpoints.hideWidgetDetails;return G(at,{className:"stTextArea","data-testid":"stTextArea",ref:y,children:[u(Q,{label:t.label,disabled:e,labelVisibility:T(t.labelVisibility?.value),htmlFor:m,children:t.help&&u(K,{children:u($,{content:t.help,placement:N.TOP_RIGHT})})}),u(it,{inputRef:l?x:void 0,value:n??"",placeholder:D,onBlur:k,onFocus:E,onChange:P,onKeyDown:U,"aria-label":t.label,disabled:e,id:m,overrides:{Input:{style:{lineHeight:i.lineHeights.inputWidget,height:l?R:v,maxHeight:l?z:"",minHeight:i.sizes.largestElementHeight,resize:V?"none":"vertical",paddingRight:i.spacing.md,paddingLeft:i.spacing.md,paddingBottom:i.spacing.md,paddingTop:i.spacing.md,"::placeholder":{color:i.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:i.sizes.borderWidth,borderRightWidth:i.sizes.borderWidth,borderTopWidth:i.sizes.borderWidth,borderBottomWidth:i.sizes.borderWidth,flexGrow:1}}}}),j&&u(Z,{dirty:r,value:n??"",maxLength:t.maxChars,type:"multiline",inForm:H({formId:f}),allowEnterToSubmit:B})]})},xt=s.memo(nt);export{xt as default};
@@ -1 +0,0 @@
1
- import{r as p,cv as a}from"./index.D6T2dYXA.js";import{i as b}from"./inputUtils.CptNuJwn.js";function i(r,s,n,e){p.useEffect(()=>{e||r!==s&&n(r)},[r,s,e,n])}function v(r,s,n,e,f,t=!1){return p.useCallback(u=>{const o=t?u.metaKey||u.ctrlKey:!0;!b(u)||!o||(u.preventDefault(),n&&s(),e.allowFormEnterToSubmit(r)&&e.submitForm(r,f))},[r,f,n,s,e,t])}function F({formId:r,maxChars:s,setDirty:n,setUiValue:e,setValueWithSource:f,additionalAction:t}){return p.useCallback(u=>{const{value:o}=u.target;s!==0&&o.length>s||(n(!0),e(o),a({formId:r})&&f({value:o,fromUi:!0}),t&&t())},[r,s,n,e,f,t])}export{F as a,v as b,i as u};