streamlit-nightly 1.39.1.dev20241105__py2.py3-none-any.whl → 1.40.1.dev20241106__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-nightly
3
- Version: 1.39.1.dev20241105
3
+ Version: 1.40.1.dev20241106
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -49,7 +49,7 @@ Requires-Dist: typing-extensions<5,>=4.3.0
49
49
  Requires-Dist: gitpython!=3.1.19,<4,>=3.0.7
50
50
  Requires-Dist: pydeck<1,>=0.8.0b4
51
51
  Requires-Dist: tornado<7,>=6.0.3
52
- Requires-Dist: watchdog<6,>=2.1.5; platform_system != "Darwin"
52
+ Requires-Dist: watchdog<7,>=2.1.5; platform_system != "Darwin"
53
53
  Provides-Extra: snowflake
54
54
  Requires-Dist: snowflake-snowpark-python[modin]>=1.17.0; python_version < "3.12" and extra == "snowflake"
55
55
  Requires-Dist: snowflake-connector-python>=2.8.0; python_version < "3.12" and extra == "snowflake"
@@ -85,10 +85,10 @@ streamlit/elements/snow.py,sha256=WHqk8zmfOr5iD0R-wLlAdlIkDDbiaayguTVmA4e7V_Q,14
85
85
  streamlit/elements/spinner.py,sha256=qhA0DZo3ZEYQswFYuNdaXltenvmJR_18mqDQA64bK_Q,2934
86
86
  streamlit/elements/text.py,sha256=W-F2LgQ-Z9T0ACQCSJKD7ugQJX1PMsgaHL7jz5xbE4c,2164
87
87
  streamlit/elements/toast.py,sha256=UFh4Is6a9-aWG43SZadknKOEC16_KIvg6AR9QR1tnxk,3711
88
- streamlit/elements/vega_charts.py,sha256=bFAFnFXy9jOW8K73-K-JLbK4zrFTHmOzIg-CqqB_Hhg,77336
88
+ streamlit/elements/vega_charts.py,sha256=GBJ7TXHEgJ7sHIvTKHFJNsaatLDEzsHKY81uBYRd8zA,77472
89
89
  streamlit/elements/write.py,sha256=sVbxT5ihOaL-u5jY1gmwNhWfdGz4Mni_CT09jUp2QyM,21703
90
90
  streamlit/elements/lib/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
91
- streamlit/elements/lib/built_in_chart_utils.py,sha256=ytQ0IdWiqdWbY4Mi3Giszx-Y9Y9n2dx8w0VYLNyfWIo,37560
91
+ streamlit/elements/lib/built_in_chart_utils.py,sha256=L6XSAlfiVk44KOgUss6AxSJpUDVeWO-hvnR6ghywnUM,38822
92
92
  streamlit/elements/lib/color_util.py,sha256=w8cD0dP43iLpdLsyv1rsb61QE0-s36MkbWOLwbFbVRs,8988
93
93
  streamlit/elements/lib/column_config_utils.py,sha256=QA_jiyqYFB9mGSVu31C5jxFfAyZRDxGgwqA-0MspVJc,16176
94
94
  streamlit/elements/lib/column_types.py,sha256=JRuXP0hsw4TRqLjrVWryMk8rSrLPhlaSZmyDKMVkGlU,51823
@@ -350,13 +350,13 @@ streamlit/runtime/state/safe_session_state.py,sha256=WLFFyMtP4F19TWWBarKtSP942Ie
350
350
  streamlit/runtime/state/session_state.py,sha256=SMBWsSZY29jAgL3QfX4xvJr9aLCNrHHUz9AmosX7FlQ,28850
351
351
  streamlit/runtime/state/session_state_proxy.py,sha256=IWF43f6UWL4KyxNWF3aTv1sbykNI2hI5UsPF2UIfpdE,5524
352
352
  streamlit/runtime/state/widgets.py,sha256=r5XOgHBh9AqS52rgKGgDXFGnkdY6ObUJBSSUBqkzTK8,5319
353
- streamlit/static/asset-manifest.json,sha256=tGicVBjC0EmynpUj5NcW_uylRtyNYCElJBj4t4rKktM,14869
353
+ streamlit/static/asset-manifest.json,sha256=U5N7zCAhr6VqekHifgeX-VqKUDKa4yybMF3jKruyUPw,14869
354
354
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
355
- streamlit/static/index.html,sha256=hnwUj_p4_fj9uo70yimlRZq2u6tz3mWG4phZ3MEczNk,891
355
+ streamlit/static/index.html,sha256=N3Be-lyP7aGOx9ZjWwKsiCqn2CnBWicAIqYxxuD7P6A,891
356
356
  streamlit/static/static/css/1504.8b8f33d6.chunk.css,sha256=4m2lbj1eVFXSaGCRBHZNhqyRz-4Ce9KogjJPxIq6On8,33275
357
357
  streamlit/static/static/css/9943.d452238e.chunk.css,sha256=B69nSRvppH7uO-_kso_XSGce7SJOCm8ZD1GB9g6fttA,12038
358
358
  streamlit/static/static/css/main.a1bc16b2.css,sha256=mPtYM1NFajTb7mdT5xey2DzapUSnS_yMsUZN5TmJ4Lo,28563
359
- streamlit/static/static/js/1086.93ecee4c.chunk.js,sha256=zaPpGC_iUSZOCaJvaN_eQjjV8qEb70tqqpsRV15YaVY,11646
359
+ streamlit/static/static/js/1086.f6ccb4bb.chunk.js,sha256=9oGk4cg7ql5PfNj36IxQiXXZtVXdq0lnZ9uhzFeSw30,11602
360
360
  streamlit/static/static/js/1101.13462bff.chunk.js,sha256=Iu-ECFDUDJJ14X1UQR4KIqtBHDhW60i15dbuEzx9HT4,3259
361
361
  streamlit/static/static/js/1260.f4b7cd39.chunk.js,sha256=ExhFr4CY3x-oUPIC50CYyyB-V80iYoorBWNgIHoWrPs,10986
362
362
  streamlit/static/static/js/1504.51c32670.chunk.js,sha256=dAYv4nz-iRCpbFOvNQ3TpAh603A8SkZquXxJUQCYoS0,2269609
@@ -364,10 +364,10 @@ streamlit/static/static/js/1504.51c32670.chunk.js.LICENSE.txt,sha256=PeHoWwanyVM
364
364
  streamlit/static/static/js/1674.86aea8e0.chunk.js,sha256=g2RyDOrwFlJImiNgHT8Yo_LVDjfqRV5DHDhXK_IYdQE,9236
365
365
  streamlit/static/static/js/1674.86aea8e0.chunk.js.LICENSE.txt,sha256=426lVBKMW2FKu5BqnSDpZnhms1QqJZ-nDvqwC62w-Z8,479
366
366
  streamlit/static/static/js/223.7f54d4fe.chunk.js,sha256=boKU5fm1iBRvWkFaGa1yooFVAnTe8YGhZitelahvMv4,13498
367
- streamlit/static/static/js/245.f99a075b.chunk.js,sha256=Uh-JbxYM-u3OWNz4ic9QpO1-ctFk64sER5Y61FUIYwQ,16029
367
+ streamlit/static/static/js/245.fb265e78.chunk.js,sha256=-vx_TxhpTWAIHddjtewXseO-dLOgUy1E34ukn1E7O8A,16085
368
368
  streamlit/static/static/js/2601.677fbaac.chunk.js,sha256=0jMPo-qxYA0x8OGZN3Q6MFJfh8LrWdz9LyuMSxwnvTw,23767
369
369
  streamlit/static/static/js/2627.2462a014.chunk.js,sha256=PdOFzDOJSqybqqZpNdX3C-QzWLq7SuVcMjhY--a7mJA,21253
370
- streamlit/static/static/js/3224.925d380f.chunk.js,sha256=XeU513iL8so3GxRiK4WWl4VKWSSeHfcv9BeLEPjd3P4,12451
370
+ streamlit/static/static/js/3224.e7dfcbee.chunk.js,sha256=m1KQViPt3zFRY5gqNyvB-rfgusuq0Z4UuuGRZaPn-c0,12512
371
371
  streamlit/static/static/js/3391.7aba08a0.chunk.js,sha256=UwAjzqpjIayXO5WqVNvDCtg4KTmFpaOtpPSVLJYSTWA,2177
372
372
  streamlit/static/static/js/3471.de4b25a2.chunk.js,sha256=v46A9eVjvhxYsBZ6SFG6wRg94XAccGQn6xA3q7sIluE,2698
373
373
  streamlit/static/static/js/3560.22d06cb7.chunk.js,sha256=9SGdXpZY8uaHJgtkErT65hGLHYKMdd1l8t75FW2mr0c,25096
@@ -424,8 +424,8 @@ streamlit/static/static/js/954.07ce4880.chunk.js,sha256=E4zF-KsTfWSqRim6MOetITJg
424
424
  streamlit/static/static/js/9923.14294b15.chunk.js,sha256=1iN64n84y6KkRToToSlxEDwjEVD7S5x3XYXbHvPsb90,7141
425
425
  streamlit/static/static/js/9943.ac0530dc.chunk.js,sha256=PuCXnCd2Py7MutGBlt2KNhE19rjihfB8OVQx8_qGF8Q,47369
426
426
  streamlit/static/static/js/9993.5b55b4c2.chunk.js,sha256=uJI1SGarpF5Lc12L6nzoWCAPNtWOYmW6m6pf4tt_RkI,40386
427
- streamlit/static/static/js/main.61a89bda.js,sha256=nwzj5r65gUB8fM-Q4uBxJMTxD3kOK2XFnzDA5ZZGvmI,4507246
428
- streamlit/static/static/js/main.61a89bda.js.LICENSE.txt,sha256=vcwWCW5VNoALG8YyhU5k8oDUNAwYisMZfiZ8X1cvtWk,4730
427
+ streamlit/static/static/js/main.971cb93d.js,sha256=i2eilK-PQkmqzcFPyuIv_2uL-qgDEjcMj9Dw-UW7JRQ,4507406
428
+ streamlit/static/static/js/main.971cb93d.js.LICENSE.txt,sha256=vcwWCW5VNoALG8YyhU5k8oDUNAwYisMZfiZ8X1cvtWk,4730
429
429
  streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
430
430
  streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
431
431
  streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
@@ -547,9 +547,9 @@ streamlit/web/server/server_util.py,sha256=ioIHkXNlA_ujj2Q3isziM8r5glKxgK2JZRoCD
547
547
  streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
548
548
  streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
549
549
  streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
550
- streamlit_nightly-1.39.1.dev20241105.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
551
- streamlit_nightly-1.39.1.dev20241105.dist-info/METADATA,sha256=YskTOe7-IFqx3QgHylrIYfs9SdC6T1Vge7YQXvxbRAw,8512
552
- streamlit_nightly-1.39.1.dev20241105.dist-info/WHEEL,sha256=OpXWERl2xLPRHTvd2ZXo_iluPEQd8uSbYkJ53NAER_Y,109
553
- streamlit_nightly-1.39.1.dev20241105.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
554
- streamlit_nightly-1.39.1.dev20241105.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
555
- streamlit_nightly-1.39.1.dev20241105.dist-info/RECORD,,
550
+ streamlit_nightly-1.40.1.dev20241106.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
551
+ streamlit_nightly-1.40.1.dev20241106.dist-info/METADATA,sha256=UlSzFPDD4_Kv8KH4pC2ZTPY2wsPml-HICVaH5hyMrWM,8512
552
+ streamlit_nightly-1.40.1.dev20241106.dist-info/WHEEL,sha256=OpXWERl2xLPRHTvd2ZXo_iluPEQd8uSbYkJ53NAER_Y,109
553
+ streamlit_nightly-1.40.1.dev20241106.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
554
+ streamlit_nightly-1.40.1.dev20241106.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
555
+ streamlit_nightly-1.40.1.dev20241106.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1086],{68035:(e,t,r)=>{r.d(t,{A:()=>c});r(58878);var n=r(25571),o=r(78286),i=r(89653);const a=r(60667).i7`
2
- 50% {
3
- color: rgba(0, 0, 0, 0);
4
- }
5
- `,s=(0,i.A)("span",{target:"edlqvik0"})((e=>{let{includeDot:t,shouldBlink:r,theme:n}=e;return{...t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:`0 ${n.spacing.twoXS}`}}:{},...r?{color:n.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var l=r(90782);const c=e=>{let{dirty:t,value:r,inForm:i,maxLength:a,className:c,type:u="single",allowEnterToSubmit:d=!0}=e;const p=[],f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p.push((0,l.jsx)(s,{includeDot:p.length>0,shouldBlink:t,children:e},p.length))};if(d){const e=i?"submit form":"apply";if("multiline"===u){f(`Press ${(0,n.u_)()?"\u2318":"Ctrl"}+Enter to ${e}`)}else"single"===u&&f(`Press Enter to ${e}`)}return a&&("chat"!==u||t)&&f(`${r.length}/${a}`,t&&r.length>=a),(0,l.jsx)(o.tp,{"data-testid":"InputInstructions",className:c,children:p})}},1086:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var n=r(58878),o=r(8151),i=r(68102),a=r(68622),s=n.forwardRef((function(e,t){return n.createElement(a.I,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),n.createElement("rect",{width:24,height:24,fill:"none"}),n.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"}))}));s.displayName="Send";var l=r(94928),c=r(64611),u=r(68035),d=r(16795),p=r(89653);const f=(0,p.A)("div",{target:"e1d2x3se4"})((e=>{var t;let{theme:r,width:n}=e;return{borderRadius:r.radii.default,display:"flex",backgroundColor:null!==(t=r.colors.widgetBackgroundColor)&&void 0!==t?t:r.colors.secondaryBg,width:`${n}px`}}),""),h=(0,p.A)("div",{target:"e1d2x3se3"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,position:"relative",flexGrow:1,borderRadius:t.radii.default,display:"flex",alignItems:"center"}}),""),y=(0,p.A)("button",{target:"e1d2x3se2"})((e=>{let{theme:t,disabled:r,extended:n}=e;const o=(0,d.iq)(t),[i,a]=o?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:n?"0":t.radii.default,borderTopLeftRadius:n?t.radii.default:"0",borderBottomRightRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:r?i:a,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:o?t.colors.gray10:t.colors.gray90},"&:hover":{backgroundColor:t.colors.primary,color:t.colors.white},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),g=(0,p.A)("div",{target:"e1d2x3se1"})({name:"1v03qtz",styles:"display:flex;align-items:flex-end;height:100%;position:absolute;right:0;pointer-events:none"}),b=(0,p.A)("div",{target:"e1d2x3se0"})((e=>{let{theme:t}=e;return{position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`}}),"");var m=r(90782);const v=function(e){let{width:t,element:r,widgetMgr:i,fragmentId:a}=e;const p=(0,o.u)(),[v,x]=(0,n.useState)(!1),[w,O]=(0,n.useState)(r.default),[j,C]=(0,n.useState)(0),S=(0,n.useRef)(null),$=(0,n.useRef)({minHeight:0,maxHeight:0}),A=()=>{S.current&&S.current.focus(),w&&(i.setStringTriggerValue(r,w,{fromUi:!0},a),x(!1),O(""),C(0))};(0,n.useEffect)((()=>{if(r.setValue){r.setValue=!1;const e=r.value||"";O(e),x(""!==e)}}),[r]),(0,n.useEffect)((()=>{if(S.current){const{offsetHeight:e}=S.current;$.current.minHeight=e,$.current.maxHeight=6.5*e}}),[S]);const{disabled:k,placeholder:P,maxChars:R}=r,E=(0,d.iq)(p),{minHeight:I,maxHeight:T}=$.current,z=E?p.colors.gray70:p.colors.gray80,B=!!(j>0&&S.current)&&Math.abs(j-I)>1;return(0,m.jsx)(f,{className:"stChatInput","data-testid":"stChatInput",width:t,children:(0,m.jsxs)(h,{children:[(0,m.jsx)(l.A,{inputRef:S,value:w,placeholder:P,onChange:e=>{const{value:t}=e.target,{maxChars:n}=r;0!==n&&t.length>n||(x(""!==t),O(t),C((()=>{let e=0;const{current:t}=S;if(t){const r=t.placeholder;t.placeholder="",t.style.height="auto",e=t.scrollHeight,t.placeholder=r,t.style.height=""}return e})()))},onKeyDown:e=>{const{metaKey:t,ctrlKey:r,shiftKey:n}=e;(e=>{var t;const{keyCode:r,key:n}=e;return("Enter"===n||13===r||10===r)&&!(!0===(null===(t=e.nativeEvent)||void 0===t?void 0:t.isComposing))})(e)&&!n&&!r&&!t&&(e.preventDefault(),A())},"aria-label":P,disabled:k,rows:1,overrides:{Root:{style:{minHeight:p.sizes.minElementHeight,outline:"none",backgroundColor:p.colors.transparent,borderLeftWidth:p.sizes.borderWidth,borderRightWidth:p.sizes.borderWidth,borderTopWidth:p.sizes.borderWidth,borderBottomWidth:p.sizes.borderWidth,width:`${t}px`}},InputContainer:{style:{backgroundColor:p.colors.transparent}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:p.lineHeights.inputWidget,backgroundColor:p.colors.transparent,"::placeholder":{color:z},height:B?`${j+1}px`:"auto",maxHeight:T?`${T}px`:"none",paddingLeft:p.spacing.sm,paddingBottom:p.spacing.sm,paddingTop:p.spacing.sm,paddingRight:`calc(${p.iconSizes.xl} + 2 * ${p.spacing.sm} + ${p.spacing.sm})`}}}}),t>p.breakpoints.hideWidgetDetails&&(0,m.jsx)(b,{children:(0,m.jsx)(u.A,{dirty:v,value:w,maxLength:R,type:"chat",inForm:!1})}),(0,m.jsx)(g,{children:(0,m.jsx)(y,{onClick:A,disabled:!v||k,extended:B,"data-testid":"stChatInputSubmitButton",children:(0,m.jsx)(c.A,{content:s,size:"xl",color:"inherit"})})})]})})}},94928:(e,t,r)=>{r.d(t,{A:()=>$});var n=r(58878),o=r(35331),i=r(18648),a=r(92850),s=r(57224),l=r(81301);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(0,s.I4)("div",(function(e){return u(u({},(0,l.vt)(u(u({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));p.displayName="StyledTextAreaRoot",p.displayName="StyledTextAreaRoot";var f=(0,s.I4)("div",(function(e){return(0,l.EO)(u({$positive:!1},e))}));f.displayName="StyledTextareaContainer",f.displayName="StyledTextareaContainer";var h=(0,s.I4)("textarea",(function(e){return u(u({},(0,l.n)(e)),{},{resize:e.$resize||"none"})}));function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(){return g=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},g.apply(this,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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 x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,r)}}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(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}h.displayName="StyledTextarea",h.displayName="StyledTextarea";var S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(c,e);var t,r,s,l=w(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return C(O(e=l.call.apply(l,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),C(O(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),C(O(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=c,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=b((0,o._O)(t.Root,p),2),s=r[0],l=r[1],c=(0,o.Qp)({Input:{component:h},InputContainer:{component:f}},t);return n.createElement(s,g({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},l),n.createElement(i.A,g({},this.props,{type:a.GT.textarea,overrides:c,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&v(t.prototype,r),s&&v(t,s),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Component);C(S,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:a.SK.default});const $=S}}]);