@apple-pie/slice 0.1.22 → 0.1.24

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 (137) hide show
  1. package/dist/cjs/chunks/AudioBubble-C8HdYBY8.js +54 -0
  2. package/dist/cjs/chunks/{Button-KGA0e9-0.js → Button-DmWbooXb.js} +1 -1
  3. package/dist/cjs/chunks/{DropDown-CJH-Y6Z5.js → DropDown-Cy2o78yw.js} +3 -3
  4. package/dist/cjs/chunks/{FileList-CIRALfrW.js → FileList-DjTXjXnK.js} +1 -1
  5. package/dist/cjs/chunks/{ProgressIndicator-DETWiASA.js → ProgressIndicator-8QZwTSyY.js} +3 -2
  6. package/dist/cjs/chunks/{PromptInput-DUxwal3V.js → PromptInput-D1wP5-uN.js} +1 -1
  7. package/dist/cjs/chunks/{TextArea-mSespe9z.js → TextArea-CtJi771p.js} +2 -2
  8. package/dist/cjs/chunks/{TextField-Cz2lh-fP.js → TextField-B2u_CZKk.js} +2 -2
  9. package/dist/cjs/chunks/{UploadArea-CtvvqLU7.js → UploadArea-BS2BPuhZ.js} +1 -1
  10. package/dist/cjs/chunks/audioVisualizer-EIfIjWH7.js +60 -0
  11. package/dist/cjs/components/AudioBubble/index.js +10 -0
  12. package/dist/cjs/components/Button/index.js +2 -2
  13. package/dist/cjs/components/DropDown/index.js +1 -1
  14. package/dist/cjs/components/FileList/index.js +2 -2
  15. package/dist/cjs/components/Progress/index.js +1 -1
  16. package/dist/cjs/components/PromptInput/index.js +4 -4
  17. package/dist/cjs/components/TextArea/index.js +3 -3
  18. package/dist/cjs/components/Textfield/index.js +3 -3
  19. package/dist/cjs/components/UploadArea/index.js +3 -3
  20. package/dist/cjs/hooks/useAudioRecorder.js +70 -0
  21. package/dist/cjs/hooks/useMicrophone.js +142 -0
  22. package/dist/cjs/hooks.js +3 -2
  23. package/dist/cjs/index.js +14 -12
  24. package/dist/cjs/utils/index.js +3 -3
  25. package/dist/cjs/utils/objects/index.js +3 -3
  26. package/dist/esm/chunks/AudioBubble-DFh3Vxl6.mjs +62 -0
  27. package/dist/esm/chunks/{Avatar-CSLVUF_y.mjs → Avatar-C8uV7ROZ.mjs} +2 -2
  28. package/dist/esm/chunks/{AvatarGroup--ELW-bO1.mjs → AvatarGroup-Bt1Lkn5S.mjs} +2 -2
  29. package/dist/esm/chunks/{Badge-DyICxZP2.mjs → Badge-D-U1jomY.mjs} +1 -1
  30. package/dist/esm/chunks/{Button-Bp51g5jC.mjs → Button-sEYjFcR2.mjs} +5 -5
  31. package/dist/esm/chunks/{ButtonBar-BK-uB7oe.mjs → ButtonBar-DSR2lhhN.mjs} +3 -3
  32. package/dist/esm/chunks/{Camera-BYi_Aqbl.mjs → Camera-DSSiOeJd.mjs} +4 -4
  33. package/dist/esm/chunks/{CheckBox-BB5olQbT.mjs → CheckBox-B6zWSySW.mjs} +3 -3
  34. package/dist/esm/chunks/{Chip-CxqFCtT6.mjs → Chip-BBKJ6wG4.mjs} +3 -3
  35. package/dist/esm/chunks/{DivInput-DeSpC8Wm.mjs → DivInput-cIMIH07H.mjs} +2 -2
  36. package/dist/esm/chunks/{Dot-CLGwQu-i.mjs → Dot-Cj6gWj4_.mjs} +1 -1
  37. package/dist/esm/chunks/{DrggablePanel-BfBCRXa8.mjs → DrggablePanel-CQcIbxpX.mjs} +2 -2
  38. package/dist/esm/chunks/{DropDown-CK-sPjsQ.mjs → DropDown-DFUc_rjP.mjs} +6 -6
  39. package/dist/esm/chunks/{ErrorSummary-BNdjCQbn.mjs → ErrorSummary-Mz9siVxm.mjs} +1 -1
  40. package/dist/esm/chunks/{FileIcon-BXKnFJBn.mjs → FileIcon-DeW-ZBiv.mjs} +2 -2
  41. package/dist/esm/chunks/{FileList-CyUhkk-m.mjs → FileList-0Dzx15hl.mjs} +5 -5
  42. package/dist/esm/chunks/{Grouper-Daz1o_Ai.mjs → Grouper-B04WxD6K.mjs} +3 -3
  43. package/dist/esm/chunks/{Icon-CbwaBi0l.mjs → Icon-KDwlMXzH.mjs} +2 -2
  44. package/dist/esm/chunks/{IconButton-BKZD9jsp.mjs → IconButton-oAB8ZFTf.mjs} +4 -4
  45. package/dist/esm/chunks/{IndexedDB-CJgzPHPB.mjs → IndexedDB-Dk7a4fPS.mjs} +1 -1
  46. package/dist/esm/chunks/{Label-QTsUvGme.mjs → Label-BD7VlTDw.mjs} +2 -2
  47. package/dist/esm/chunks/{Overlay-TOzZXnwF.mjs → Overlay-3KkyDm1f.mjs} +1 -1
  48. package/dist/esm/chunks/{Pager-BYT7_mCb.mjs → Pager-DmiwYLl5.mjs} +2 -2
  49. package/dist/esm/chunks/{ProgressIndicator-Cg7CCrAE.mjs → ProgressIndicator-CxsZm_As.mjs} +5 -4
  50. package/dist/esm/chunks/{PromptInput-DJInpjRX.mjs → PromptInput-D4Q-DWjz.mjs} +3 -3
  51. package/dist/esm/chunks/{RadioButton-CYp8RkDK.mjs → RadioButton-B0jvM5VW.mjs} +3 -3
  52. package/dist/esm/chunks/{RadioButtonList-BSzV9Zz-.mjs → RadioButtonList-DBRAv87_.mjs} +3 -3
  53. package/dist/esm/chunks/{Slider-DL2iuNlh.mjs → Slider-CONGTXUE.mjs} +2 -2
  54. package/dist/esm/chunks/{Spacer-BlgEdKEM.mjs → Spacer-C5fcJYq-.mjs} +1 -1
  55. package/dist/esm/chunks/{Switch-BhCOo5Lu.mjs → Switch-CyoaJwSX.mjs} +1 -1
  56. package/dist/esm/chunks/{TabBar-Dd5-VZcG.mjs → TabBar-DmO1ixBz.mjs} +4 -4
  57. package/dist/esm/chunks/{TextArea-C_2D7sZV.mjs → TextArea-DaB8g-fZ.mjs} +3 -3
  58. package/dist/esm/chunks/{TextField-RG1AsLTh.mjs → TextField-BGeEJXUJ.mjs} +6 -6
  59. package/dist/esm/chunks/{Tip-BnKB9qMi.mjs → Tip-DrQvxDsH.mjs} +2 -2
  60. package/dist/esm/chunks/{Toast-BfuKRAns.mjs → Toast-C5XSDgno.mjs} +3 -3
  61. package/dist/esm/chunks/{UploadArea-ByvnUxhr.mjs → UploadArea-Gpq-MhqB.mjs} +4 -4
  62. package/dist/esm/chunks/{WSConnection-D9mpsVdc.mjs → WSConnection-DV7k84B4.mjs} +1 -1
  63. package/dist/esm/chunks/{_types-CPrEyJX9.mjs → _types-DOQAaLqq.mjs} +1 -1
  64. package/dist/esm/chunks/audioVisualizer-ZgT77nUw.mjs +60 -0
  65. package/dist/esm/chunks/{localDBStore-B4jkR5Jx.mjs → localDBStore-Dnpo5nSv.mjs} +2 -2
  66. package/dist/esm/chunks/{misc-N8KLjOXc.mjs → misc-BeEWwOaJ.mjs} +1 -1
  67. package/dist/esm/chunks/{sseStore-2JIpEKfz.mjs → sseStore-DjrfpNAS.mjs} +1 -1
  68. package/dist/esm/chunks/{tslib.es6-c-7TIv71.mjs → tslib.es6-C-olHjXV.mjs} +1 -1
  69. package/dist/esm/chunks/{uploads-worker-Dv-4zGnC.mjs → uploads-worker-7X9EwX9N.mjs} +1 -1
  70. package/dist/esm/chunks/{uploadsStore-D69fEXMY.mjs → uploadsStore-B7VECR5Q.mjs} +1 -1
  71. package/dist/esm/chunks/{windowStore-BOTh1g37.mjs → windowStore-CAzx2-QV.mjs} +1 -1
  72. package/dist/esm/components/AudioBubble/index.mjs +31 -0
  73. package/dist/esm/components/Avatar/index.mjs +3 -3
  74. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  75. package/dist/esm/components/Badge/index.mjs +2 -2
  76. package/dist/esm/components/Button/index.mjs +7 -7
  77. package/dist/esm/components/ButtonBar/index.mjs +4 -4
  78. package/dist/esm/components/Camera/index.mjs +5 -5
  79. package/dist/esm/components/CheckBox/index.mjs +4 -4
  80. package/dist/esm/components/Chip/index.mjs +4 -4
  81. package/dist/esm/components/DivInput/index.mjs +3 -3
  82. package/dist/esm/components/Dot/index.mjs +2 -2
  83. package/dist/esm/components/DraggablePanel/index.mjs +3 -3
  84. package/dist/esm/components/DropDown/index.mjs +4 -4
  85. package/dist/esm/components/ErrorSummary/index.mjs +2 -2
  86. package/dist/esm/components/FileIcon/index.mjs +3 -3
  87. package/dist/esm/components/FileList/index.mjs +6 -6
  88. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  89. package/dist/esm/components/Grouper/index.mjs +5 -5
  90. package/dist/esm/components/Icon/index.mjs +3 -3
  91. package/dist/esm/components/IconButton/index.mjs +6 -6
  92. package/dist/esm/components/Label/index.mjs +3 -3
  93. package/dist/esm/components/Overlay/index.mjs +2 -2
  94. package/dist/esm/components/Pager/index.mjs +3 -3
  95. package/dist/esm/components/Progress/index.mjs +4 -4
  96. package/dist/esm/components/PromptInput/index.mjs +10 -10
  97. package/dist/esm/components/RadioButton/index.mjs +4 -4
  98. package/dist/esm/components/RadioButtonList/index.mjs +5 -5
  99. package/dist/esm/components/Slider/index.mjs +3 -3
  100. package/dist/esm/components/Spacer/index.mjs +2 -2
  101. package/dist/esm/components/Switch/index.mjs +2 -2
  102. package/dist/esm/components/TabBar/index.mjs +7 -7
  103. package/dist/esm/components/TextArea/index.mjs +8 -8
  104. package/dist/esm/components/Textfield/index.mjs +9 -9
  105. package/dist/esm/components/Tip/index.mjs +3 -3
  106. package/dist/esm/components/Toast/index.mjs +4 -4
  107. package/dist/esm/components/UploadArea/index.mjs +7 -7
  108. package/dist/esm/hooks/useAudioRecorder.mjs +74 -0
  109. package/dist/esm/hooks/useMdStreamBuffer.mjs +1 -1
  110. package/dist/esm/hooks/useMicrophone.mjs +144 -0
  111. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  112. package/dist/esm/hooks.mjs +5 -1
  113. package/dist/esm/index.mjs +47 -39
  114. package/dist/esm/stores/LocalDB.mjs +3 -3
  115. package/dist/esm/stores/SSE.mjs +2 -2
  116. package/dist/esm/stores/WS.mjs +2 -2
  117. package/dist/esm/stores/uploads.mjs +3 -3
  118. package/dist/esm/stores/window.mjs +2 -2
  119. package/dist/esm/stores.mjs +7 -7
  120. package/dist/esm/utils/index.mjs +6 -4
  121. package/dist/esm/utils/objects/index.mjs +5 -3
  122. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  123. package/dist/types/components/AudioBubble/AudioBubble.d.ts +3 -0
  124. package/dist/types/components/AudioBubble/_types.d.ts +18 -0
  125. package/dist/types/components/AudioBubble/index.d.ts +2 -0
  126. package/dist/types/components/DropDown/_types.d.ts +1 -0
  127. package/dist/types/hooks/index.d.ts +3 -0
  128. package/dist/types/hooks/useAudioRecorder/useAudioRecorder.d.ts +14 -0
  129. package/dist/types/hooks/useMicrophone/useMicrophone.d.ts +23 -0
  130. package/dist/types/index.d.ts +3 -1
  131. package/dist/types/utils/functions/files.d.ts +1 -1
  132. package/dist/types/utils/index.d.ts +2 -2
  133. package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.d.ts +86 -0
  134. package/dist/types/utils/objects/WebRTCConnection/_types.d.ts +11 -0
  135. package/dist/types/utils/objects/audioVisualizer/audioVisualizer.d.ts +40 -0
  136. package/dist/types/utils/objects/index.d.ts +2 -0
  137. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
+
5
+ require("../theme/colors.js");
6
+
7
+ var colors = require("./colors-njquvHkx.js"), audioVisualizer = require("./audioVisualizer-EIfIjWH7.js");
8
+
9
+ require("../hooks/useWindow.js");
10
+
11
+ var styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "AudioBubble-module_wrapper__f2yKg flexBox-module_row__z24tF", css_bubble = "AudioBubble-module_bubble__bpPT3 flexBox-module_row__z24tF";
12
+
13
+ styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.AudioBubble-module_wrapper__f2yKg {\n\tmin-height: var(--ab-size);\n\tmin-width: var(--ab-size);\n\theight: var(--ab-size);\n\twidth: var(--ab-size);\n\toverflow: visible;\n\tz-index: var(--elevation-status);\n}\n\n.AudioBubble-module_bubble__bpPT3 {\n\tmin-height: var(--ab-size);\n\tmin-width: var(--ab-size);\n\theight: var(--ab-size);\n\twidth: var(--ab-size);\n\tborder-radius: 100%;\n\tbackground: var(--ab-bg-color);\n\tbox-shadow: var(--ab-box-shadow);\n\ttransition: transform 40ms linear 0s;\n}\n");
14
+
15
+ const AudioBubble = React.memo(props => {
16
+ const lightColor = hooks_useTheme.useTheme().current.colors["core-text-light"], {audioStream: audioStream, playing: playing = !1, size: size = 64, backgroundColor: backgroundColor = lightColor, glow: glow = !0, glowColor: glowColor = colors.addOpacity(lightColor, .1), glowSize: glowSize = 48, glowOffset: glowOffset = 18, minScale: minScale = 1, maxScale: maxScale = 3, intensity: intensity = 2.2, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, ReleasePerSeconds: ReleasePerSeconds = 1.5} = props, divAttributes = tslib_es6.__rest(props, [ "audioStream", "playing", "size", "backgroundColor", "glow", "glowColor", "glowSize", "glowOffset", "minScale", "maxScale", "intensity", "peakIntensity", "risePerSeconds", "ReleasePerSeconds" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = React.useRef(null), [scale, setScale] = React.useState(minScale), visualizerSettings = React.useMemo(() => ({
17
+ minScale: minScale,
18
+ maxScale: maxScale,
19
+ intensityMultiplier: intensity,
20
+ peakIntensity: peakIntensity,
21
+ risePerSecond: risePerSeconds,
22
+ releasePerSecond: ReleasePerSeconds,
23
+ onUpdate: ({scale: nextScale}) => setScale(nextScale)
24
+ }), [ minScale, maxScale, intensity, peakIntensity, risePerSeconds, ReleasePerSeconds ]), setGlow = React.useMemo(() => glow ? `0 ${glowOffset}px ${glowSize}px ${glowColor}` : "unset", [ glow, glowColor, glowSize, glowOffset ]), cssVars = React.useMemo(() => ({
25
+ "--ab-size": `${size}px`,
26
+ "--ab-bg-color": backgroundColor,
27
+ "--ab-box-shadow": setGlow
28
+ }), [ size, backgroundColor, setGlow ]);
29
+ return React.useEffect(() => {
30
+ var _a;
31
+ if (null === (_a = visualizerRef.current) || void 0 === _a || _a.dispose(), visualizerRef.current = null,
32
+ !audioStream) return void setScale(minScale);
33
+ const visualizer = new audioVisualizer.AudioVisualizer(audioStream, visualizerSettings);
34
+ return visualizerRef.current = visualizer, playing && visualizer.start(), () => {
35
+ visualizer.dispose(), visualizerRef.current === visualizer && (visualizerRef.current = null);
36
+ };
37
+ }, [ audioStream, minScale, playing, visualizerSettings ]), React.useEffect(() => {
38
+ visualizerRef.current && (playing ? visualizerRef.current.start() : (visualizerRef.current.stop(),
39
+ setScale(minScale)));
40
+ }, [ minScale, playing ]), jsxRuntime.jsx("div", Object.assign({
41
+ id: divId,
42
+ className: `${css_wrapper}${divClass}`,
43
+ style: divStyle
44
+ }, rest, {
45
+ children: jsxRuntime.jsx("div", {
46
+ className: css_bubble,
47
+ style: Object.assign(Object.assign({}, cssVars), {
48
+ transform: `scale(${scale})`
49
+ })
50
+ })
51
+ }));
52
+ });
53
+
54
+ exports.AudioBubble = AudioBubble;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-CY_DG6cD.js"), Dot = require("./Dot-_HCJ3qxd.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-DETWiASA.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-CY_DG6cD.js"), Dot = require("./Dot-_HCJ3qxd.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-8QZwTSyY.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
4
4
  button: "Button-module_button__2ZuB7 flexBox-module_row__z24tF",
5
5
  label: "Button-module_label__UJ3Zt",
6
6
  count: "Button-module_count__DFxVB flexBox-module_row__z24tF",
@@ -17,7 +17,7 @@ function resolveValueKey(value, valueKey) {
17
17
  }
18
18
 
19
19
  function DropDownComponent(props) {
20
- const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", size: size = "m", width: width = "100%", height: height = "auto", selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius = 4, backgroundColor: backgroundColor, bgColor: bgColor = "transparent", iconColor: iconColor = "var(--core-text-primary)", textColor: textColor = "var(--core-text-primary)", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", paddingLeft: paddingLeft = "8px", paddingRight: paddingRight = "12px", paddingTop: paddingTop = "8px", paddingBottom: paddingBottom = "8px", borderStyle: borderStyle = "box", iconSize: iconSize = 20, disabled: disabled = !1, error: error = !1, gap: gap = 8, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "name", "label", "labelColor", "size", "width", "height", "selectedIndex", "selectedValue", "valueKey", "options", "placeholder", "borderRadius", "backgroundColor", "bgColor", "iconColor", "textColor", "borderWidth", "borderSize", "borderColor", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "borderStyle", "iconSize", "disabled", "error", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, [index, setIndex] = React.useState(null != selectedIndex ? selectedIndex : 0), [selectedText, setSelectedText] = React.useState("Select an option"), ref = React.useRef(null);
20
+ const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", size: size = "m", width: width = "100%", height: height = "auto", selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius = 4, backgroundColor: backgroundColor = "var(--core-surface-secondary)", bgColor: bgColor = "var(--core-surface-secondary)", iconColor: iconColor = "var(--core-text-primary)", textColor: textColor = "var(--core-text-primary)", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", paddingLeft: paddingLeft = "8px", paddingRight: paddingRight = "12px", paddingTop: paddingTop = "8px", paddingBottom: paddingBottom = "8px", borderStyle: borderStyle = "box", iconSize: iconSize = 20, disabled: disabled = !1, error: error = !1, gap: gap = 8, onChange: onChange = () => null, onOption: onOption = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "name", "label", "labelColor", "size", "width", "height", "selectedIndex", "selectedValue", "valueKey", "options", "placeholder", "borderRadius", "backgroundColor", "bgColor", "iconColor", "textColor", "borderWidth", "borderSize", "borderColor", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "borderStyle", "iconSize", "disabled", "error", "gap", "onChange", "onOption" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, [index, setIndex] = React.useState(null != selectedIndex ? selectedIndex : 0), [selectedText, setSelectedText] = React.useState("Select an option"), ref = React.useRef(null);
21
21
  React.useEffect(() => {
22
22
  if (null == selectedValue && void 0 !== selectedIndex && (null == ref ? void 0 : ref.current)) {
23
23
  if (!(null == options ? void 0 : options[selectedIndex])) return;
@@ -38,8 +38,8 @@ function DropDownComponent(props) {
38
38
  const handleChange = React.useCallback(i => {
39
39
  if (!options) return;
40
40
  const label = options[i].label || "Select an option";
41
- setIndex(i), setSelectedText(label), index !== i && onChange(i, options[i]);
42
- }, [ options, index, onChange ]), renderedOptions = React.useMemo(() => options ? options.map((option, i) => jsxRuntime.jsx("option", {
41
+ setIndex(i), setSelectedText(label), index !== i && (onChange(i, options[i]), onOption(options[i]));
42
+ }, [ options, index, onChange, onOption ]), renderedOptions = React.useMemo(() => options ? options.map((option, i) => jsxRuntime.jsx("option", {
43
43
  value: i,
44
44
  onMouseUp: () => handleChange(i),
45
45
  children: null == option ? void 0 : option.label
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-xoD-xIme.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-DETWiASA.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-xoD-xIme.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-8QZwTSyY.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
4
4
 
5
5
  var css = {
6
6
  wrapper: "FileList-module_wrapper__9-rrl flexBox-module_rowStart__4tcxS",
@@ -51,7 +51,7 @@ const DoneCheck = React.memo(props => {
51
51
 
52
52
  var css_container = "ProgressIndicator-module_container__pW2gW flexBox-module_column__ezvMq";
53
53
 
54
- styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.ProgressIndicator-module_container__pW2gW {\n\tposition: var(--pi-position);\n\ttop: var(--pi-inset);\n\tbottom: var(--pi-inset);\n\tleft: var(--pi-inset);\n\tright: var(--pi-inset);\n\tcolor: var(--core-text-disabled);\n\tz-index: var(--elevation-status);\n}\n\n.ProgressIndicator-module_iconWrapper__puIt4 {\n\tmin-width: var(--pi-icon-size);\n\tmax-width: var(--pi-icon-size);\n\tmax-height: var(--pi-icon-size);\n\tmin-height: var(--pi-icon-size);\n\theight: var(--pi-icon-size);\n\twidth: var(--pi-icon-size);\n\tpadding: 0;\n\tbackground: none;\n\tborder-radius: 100%;\n}\n");
54
+ styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.ProgressIndicator-module_container__pW2gW {\n\tdisplay: var(--pi-display) !important;\n\tposition: var(--pi-position);\n\ttop: var(--pi-inset);\n\tbottom: var(--pi-inset);\n\tleft: var(--pi-inset);\n\tright: var(--pi-inset);\n\tcolor: var(--core-text-disabled);\n\tz-index: var(--elevation-status);\n}\n\n.ProgressIndicator-module_iconWrapper__puIt4 {\n\tmin-width: var(--pi-icon-size);\n\tmax-width: var(--pi-icon-size);\n\tmax-height: var(--pi-icon-size);\n\tmin-height: var(--pi-icon-size);\n\theight: var(--pi-icon-size);\n\twidth: var(--pi-icon-size);\n\tpadding: 0;\n\tbackground: none;\n\tborder-radius: 100%;\n}\n");
55
55
 
56
56
  const OpenCircle = (size, secondsPerSpin, color, stroke = 1.5, playing = !1) => jsxRuntime.jsxs(react.motion.svg, {
57
57
  xmlns: "http://www.w3.org/2000/svg",
@@ -112,7 +112,8 @@ exports.DoneCheck = DoneCheck, exports.ProgressIndicator = function(props) {
112
112
  const cssVars = React.useMemo(() => ({
113
113
  "--pi-position": inline ? "relative" : "absolute",
114
114
  "--pi-inset": inline ? "unset" : "0",
115
- "--pi-icon-size": `${null != size ? size : 0}px`
115
+ "--pi-icon-size": `${null != size ? size : 0}px`,
116
+ "--pi-display": inline ? "inline-flex" : "flex"
116
117
  }), [ inline, size ]), openCircle = React.useMemo(() => OpenCircle(size, secondsPerSpin, color, stroke, playing), [ size, secondsPerSpin, color, stroke, playing ]);
117
118
  return jsxRuntime.jsx(react.AnimatePresence, {
118
119
  initial: !0,
@@ -4,7 +4,7 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
4
4
 
5
5
  require("../theme/colors.js"), require("./tslib.es6-C8dZW5nY.js"), require("../hooks/useWindow.js");
6
6
 
7
- var Button = require("./Button-KGA0e9-0.js"), FileList = require("./FileList-CIRALfrW.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
7
+ var Button = require("./Button-DmWbooXb.js"), FileList = require("./FileList-DjTXjXnK.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
8
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
9
9
  bgRotate: "PromptInput-module_bgRotate__Um720",
10
10
  textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-KGA0e9-0.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-DmWbooXb.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
4
4
 
5
5
  styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TextArea-module_wrapper__O0sWP {\n\tposition: relative;\n\tpadding: var(--ta-padding) !important;\n\twidth: var(--ta-width);\n\theight: auto;\n\tborder-radius: var(--ta-border-radius);\n\tbackground-color: var(--ta-bg-color);\n\tbox-shadow: 0 0 0 1px var(--ta-border-color);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextArea-module_textarea__-R2n0 {\n\tborder: 0;\n\toutline: 0;\n\tpadding: 0 16px 0 0;\n\twidth: 100%;\n\theight: 100%;\n\tcolor: var(--core-text-primary);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\tresize: var(--ta-resize);\n\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\t&::placeholder {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\toverflow-y: auto;\n\n\t&::-webkit-scrollbar {\n\t\tbackground-color: transparent;\n\t\twidth: 14px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: transparent;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t\tcursor: default;\n\t}\n}\n\n.TextArea-module_actions__yunQx {\n\twidth: 100%;\n\tmin-height: 30px;\n\tcolor: var(--core-text-disabled);\n\tgap: 16px;\n}\n\n.TextArea-module_option__2SFx5 {\n\tgap: 4px;\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tcursor: default;\n}\n\n.TextArea-module_send__Cub13 {\n\tposition: absolute;\n\tbottom: var(--ta-send-icon-offset-bottom);\n\tright: var(--ta-send-icon-offset-right);\n}\n\n.TextArea-module_xs__5e748 {\n}\n\n.TextArea-module_s__Ac-fq {\n}\n\n.TextArea-module_m__dod4R {\n}\n\n.TextArea-module_l__-uLCG {\n}\n");
6
6
 
7
7
  const TextArea = React.memo(props => {
8
- const {value: value = "", name: name = "text_area", width: width = "100%", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !1, borderRadius: borderRadius = 4, padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
8
+ const {value: value = "", name: name = "text_area", width: width = "100%", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius = 4, padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
9
9
  bottom: 10,
10
10
  right: 10
11
11
  }, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor, bgColor: bgColor, minWidth: minWidth, textSize: textSize = "m", disabled: disabled = !1, submitClears: submitClears = !0, onChange: onChange = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onSubmit: onSubmit = () => null, onKeyDown: onKeyDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "value", "name", "width", "focused", "placeholder", "rows", "border", "borderRadius", "padding", "error", "resizable", "hasSend", "sendOffset", "sendSize", "returnSubmits", "backgroundColor", "bgColor", "minWidth", "textSize", "disabled", "submitClears", "onChange", "onFocus", "onBlur", "onSubmit", "onKeyDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, [isFocused, setIsFocused] = React.useState(focused), [text, setText] = React.useState(value), ref = React.useRef(null), handleResize = React.useCallback(() => {
@@ -8,7 +8,7 @@ var misc = require("./misc-BTF7BCZW.js");
8
8
 
9
9
  require("../hooks/useWindow.js");
10
10
 
11
- var Button = require("./Button-KGA0e9-0.js"), Icon = require("./Icon-BB-t50Yt.js"), IconButton = require("./IconButton-BUw3YUsI.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
11
+ var Button = require("./Button-DmWbooXb.js"), Icon = require("./Icon-BB-t50Yt.js"), IconButton = require("./IconButton-BUw3YUsI.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
12
12
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
13
13
  container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
14
14
  label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
@@ -21,7 +21,7 @@ var Button = require("./Button-KGA0e9-0.js"), Icon = require("./Icon-BB-t50Yt.js
21
21
  l: "TextField-module_l__gbNRz type-module_body-l-regular__lOYbg"
22
22
  };
23
23
 
24
- styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TextField-module_wrapper__qZ-p- {\n\tposition: relative;\n\tpadding: var(--tf-padding) !important;\n\tpadding-right: var(--tf-padding-right) !important;\n\tgap: 8px;\n\toverflow: visible;\n\twidth: var(--tf-width);\n\theight: var(--tf-height);\n\tborder-radius: var(--tf-border-radius);\n\tbackground: var(--tf-bg);\n\tbox-shadow: var(--tf-box-shadow);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextField-module_container__5U9yK {\n\tflex: 1;\n\theight: 100%;\n\tgap: 8px;\n}\n\n.TextField-module_label__jD8MR {\n\tcolor: var(--tf-label-color);\n\theight: auto;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.TextField-module_input__AkWBQ {\n\tcolor: var(--tf-text-color);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\toutline: none;\n\tborder: 0;\n\theight: 100%;\n\twidth: var(--tf-input-width);\n\tfield-sizing: var(--tf-field-size);\n\ttext-align: var(--tf-text-align);\n\t&::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:focus::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\t&:-webkit-autofill,\n\t&:-webkit-autofill:hover,\n\t&:-webkit-autofill:focus,\n\t&:-webkit-autofill:active {\n\t\tbox-shadow: 0 0 0 50px var(--core-button-disabled) inset !important;\n\t\t-webkit-text-fill-color: var(--core-text-primary);\n\t}\n}\n\n.TextField-module_showPassword__4Ecfo {\n\tmin-height: 18px;\n\tmin-width: 18px;\n\tmax-height: 18px;\n\tmax-width: 18px;\n\topacity: var(--tf-show-opacity);\n\t&:hover {\n\t\topacity: var(--tf-show-opacity-hover);\n\t}\n}\n\n.TextField-module_clearButton__O9ed3 {\n\tborder: 0;\n\tbackground: transparent;\n\tappearance: none;\n\t-webkit-appearance: none;\n\toutline: none;\n\tcursor: pointer;\n}\n\n.TextField-module_xs__vyt2t {\n}\n\n.TextField-module_s__0qm83 {\n}\n\n.TextField-module_m__M-tLl {\n}\n\n.TextField-module_l__gbNRz {\n}\n");
24
+ styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TextField-module_wrapper__qZ-p- {\n\tposition: relative;\n\tpadding: var(--tf-padding) !important;\n\tpadding-right: var(--tf-padding-right) !important;\n\tgap: 8px;\n\toverflow: visible;\n\twidth: var(--tf-width);\n\theight: var(--tf-height);\n\tborder-radius: var(--tf-border-radius);\n\tbackground: var(--tf-bg-color);\n\tbox-shadow: var(--tf-box-shadow);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextField-module_container__5U9yK {\n\tflex: 1;\n\theight: 100%;\n\tgap: 8px;\n}\n\n.TextField-module_label__jD8MR {\n\tcolor: var(--tf-label-color);\n\theight: auto;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.TextField-module_input__AkWBQ {\n\tcolor: var(--tf-text-color);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\toutline: none;\n\tborder: 0;\n\theight: 100%;\n\twidth: var(--tf-input-width);\n\tfield-sizing: var(--tf-field-size);\n\ttext-align: var(--tf-text-align);\n\t&::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:focus::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\t&:-webkit-autofill,\n\t&:-webkit-autofill:hover,\n\t&:-webkit-autofill:focus,\n\t&:-webkit-autofill:active {\n\t\tbox-shadow: 0 0 0 50px var(--core-button-disabled) inset !important;\n\t\t-webkit-text-fill-color: var(--core-text-primary);\n\t}\n}\n\n.TextField-module_showPassword__4Ecfo {\n\tmin-height: 18px;\n\tmin-width: 18px;\n\tmax-height: 18px;\n\tmax-width: 18px;\n\topacity: var(--tf-show-opacity);\n\t&:hover {\n\t\topacity: var(--tf-show-opacity-hover);\n\t}\n}\n\n.TextField-module_clearButton__O9ed3 {\n\tborder: 0;\n\tbackground: transparent;\n\tappearance: none;\n\t-webkit-appearance: none;\n\toutline: none;\n\tcursor: pointer;\n}\n\n.TextField-module_xs__vyt2t {\n}\n\n.TextField-module_s__0qm83 {\n}\n\n.TextField-module_m__M-tLl {\n}\n\n.TextField-module_l__gbNRz {\n}\n");
25
25
 
26
26
  const MOTION_CONFIG = {
27
27
  variants: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileList = require("./FileList-CIRALfrW.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-DETWiASA.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileList = require("./FileList-DjTXjXnK.js"), Icon = require("./Icon-BB-t50Yt.js"), ProgressIndicator = require("./ProgressIndicator-8QZwTSyY.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
4
4
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
5
5
  icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",
6
6
  title: "UploadArea-module_title__VbNGq type-module_body-l-bold__Fh2dt",
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ exports.AudioVisualizer = class {
4
+ constructor(source, options = {}) {
5
+ var _a, _b, _c, _d, _e, _f, _g;
6
+ this.analyser = null, this.animationFrameId = null, this.audioContext = null, this.currentIntensity = 0,
7
+ this.lastFrameTime = 0, this.sourceNode = null, this.timeDomainData = null, this.onFrame = now => {
8
+ var _a;
9
+ if (!this.analyser || !this.timeDomainData) return;
10
+ this.analyser.getByteTimeDomainData(this.timeDomainData);
11
+ let sum = 0;
12
+ for (const sample of this.timeDomainData) {
13
+ const normalized = (sample - 128) / 128;
14
+ sum += normalized * normalized;
15
+ }
16
+ const rms = Math.sqrt(sum / this.timeDomainData.length), targetIntensity = (value = rms * this.intensityMultiplier / this.peakIntensity,
17
+ min = 0, max = 1, Math.min(Math.max(value, min), max));
18
+ var value, min, max;
19
+ const deltaSeconds = Math.max((now - this.lastFrameTime) / 1e3, 0), stepPerSecond = targetIntensity > this.currentIntensity ? this.risePerSecond : this.releasePerSecond;
20
+ var current, target, maxDelta;
21
+ this.currentIntensity = (current = this.currentIntensity, maxDelta = stepPerSecond * deltaSeconds,
22
+ (target = targetIntensity) > current ? Math.min(current + maxDelta, target) : Math.max(current - maxDelta, target)),
23
+ this.lastFrameTime = now, null === (_a = this.onUpdate) || void 0 === _a || _a.call(this, {
24
+ intensity: this.currentIntensity,
25
+ scale: this.getScale()
26
+ }), this.animationFrameId = requestAnimationFrame(this.onFrame);
27
+ }, this.source = source, this.fftSize = null !== (_a = options.fftSize) && void 0 !== _a ? _a : 512,
28
+ this.intensityMultiplier = null !== (_b = options.intensityMultiplier) && void 0 !== _b ? _b : 2.2,
29
+ this.maxScale = null !== (_c = options.maxScale) && void 0 !== _c ? _c : 2, this.minScale = null !== (_d = options.minScale) && void 0 !== _d ? _d : 1,
30
+ this.onUpdate = options.onUpdate, this.peakIntensity = null !== (_e = options.peakIntensity) && void 0 !== _e ? _e : .2,
31
+ this.releasePerSecond = null !== (_f = options.releasePerSecond) && void 0 !== _f ? _f : 1.5,
32
+ this.risePerSecond = null !== (_g = options.risePerSecond) && void 0 !== _g ? _g : 4;
33
+ }
34
+ start() {
35
+ if ("undefined" == typeof window || "undefined" == typeof AudioContext) throw new Error("AudioVisualizer requires a browser AudioContext");
36
+ var source;
37
+ null === this.animationFrameId && (this.audioContext || (this.audioContext = new AudioContext,
38
+ this.analyser = this.audioContext.createAnalyser(), this.analyser.fftSize = this.fftSize,
39
+ this.sourceNode = this.audioContext.createMediaStreamSource((source = this.source) instanceof MediaStream ? source : new MediaStream([ source ])),
40
+ this.sourceNode.connect(this.analyser), this.timeDomainData = new Uint8Array(new ArrayBuffer(this.analyser.fftSize))),
41
+ this.audioContext.resume(), this.lastFrameTime = performance.now(), this.animationFrameId = requestAnimationFrame(this.onFrame));
42
+ }
43
+ stop() {
44
+ null !== this.animationFrameId && (cancelAnimationFrame(this.animationFrameId),
45
+ this.animationFrameId = null);
46
+ }
47
+ dispose() {
48
+ var _a, _b, _c;
49
+ this.stop(), null === (_a = this.sourceNode) || void 0 === _a || _a.disconnect(),
50
+ null === (_b = this.analyser) || void 0 === _b || _b.disconnect(), null === (_c = this.audioContext) || void 0 === _c || _c.close(),
51
+ this.sourceNode = null, this.analyser = null, this.audioContext = null, this.timeDomainData = null,
52
+ this.currentIntensity = 0, this.lastFrameTime = 0;
53
+ }
54
+ getIntensity() {
55
+ return this.currentIntensity;
56
+ }
57
+ getScale() {
58
+ return this.minScale + this.currentIntensity * (this.maxScale - this.minScale);
59
+ }
60
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ var AudioBubble = require("../../chunks/AudioBubble-C8HdYBY8.js");
4
+
5
+ require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
+ require("../../hooks/useTheme.js"), require("../../theme/themes.js"), require("../../theme/colors.js"),
7
+ require("../../theme/corners.js"), require("../../theme/elevations.js"), require("../../theme/motion.js"),
8
+ require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"), require("../../chunks/colors-njquvHkx.js"),
9
+ require("../../chunks/audioVisualizer-EIfIjWH7.js"), require("../../hooks/useWindow.js"),
10
+ require("../../chunks/style-inject.es-CMuL-BfJ.js"), exports.AudioBubble = AudioBubble.AudioBubble;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var Button = require("../../chunks/Button-KGA0e9-0.js");
3
+ var Button = require("../../chunks/Button-DmWbooXb.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("motion/react"),
6
6
  require("react"), require("../../chunks/Badge-CY_DG6cD.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
@@ -8,5 +8,5 @@ require("../../chunks/Dot-_HCJ3qxd.js"), require("../../chunks/Icon-BB-t50Yt.js"
8
8
  require("../../hooks/useTheme.js"), require("../../theme/themes.js"), require("../../theme/colors.js"),
9
9
  require("../../theme/corners.js"), require("../../theme/elevations.js"), require("../../theme/motion.js"),
10
10
  require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"), require("../../chunks/misc-BTF7BCZW.js"),
11
- require("../../hooks/useWindow.js"), require("../../chunks/ProgressIndicator-DETWiASA.js"),
11
+ require("../../hooks/useWindow.js"), require("../../chunks/ProgressIndicator-8QZwTSyY.js"),
12
12
  require("../../chunks/sharedTypes-gCECyn2N.js"), exports.Button = Button.Button;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var DropDown = require("../../chunks/DropDown-CJH-Y6Z5.js");
3
+ var DropDown = require("../../chunks/DropDown-Cy2o78yw.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
6
  require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/Icon-BB-t50Yt.js"),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var FileList = require("../../chunks/FileList-CIRALfrW.js");
3
+ var FileList = require("../../chunks/FileList-DjTXjXnK.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
6
  require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/FileIcon-xoD-xIme.js"),
@@ -8,5 +8,5 @@ require("../../hooks/useTheme.js"), require("../../theme/themes.js"), require(".
8
8
  require("../../theme/corners.js"), require("../../theme/elevations.js"), require("../../theme/motion.js"),
9
9
  require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"), require("../../hooks/useWindow.js"),
10
10
  require("../../chunks/Icon-BB-t50Yt.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
11
- require("../../chunks/ProgressIndicator-DETWiASA.js"), require("motion/react"),
11
+ require("../../chunks/ProgressIndicator-8QZwTSyY.js"), require("motion/react"),
12
12
  exports.FileList = FileList.FileList;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var ProgressIndicator = require("../../chunks/ProgressIndicator-DETWiASA.js");
3
+ var ProgressIndicator = require("../../chunks/ProgressIndicator-8QZwTSyY.js");
4
4
 
5
5
  require("react/jsx-runtime"), require("react"), require("../../hooks/useTheme.js"),
6
6
  require("../../theme/themes.js"), require("../../theme/colors.js"), require("../../theme/corners.js"),
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var PromptInput = require("../../chunks/PromptInput-DUxwal3V.js");
3
+ var PromptInput = require("../../chunks/PromptInput-D1wP5-uN.js");
4
4
 
5
5
  require("react/jsx-runtime"), require("react"), require("../../hooks/useTheme.js"),
6
6
  require("../../theme/themes.js"), require("../../theme/colors.js"), require("../../theme/corners.js"),
7
7
  require("../../theme/elevations.js"), require("../../theme/motion.js"), require("../../theme/type.js"),
8
8
  require("../../hooks/useObserveTheme.js"), require("../../chunks/tslib.es6-C8dZW5nY.js"),
9
- require("../../hooks/useWindow.js"), require("../../chunks/Button-KGA0e9-0.js"),
9
+ require("../../hooks/useWindow.js"), require("../../chunks/Button-DmWbooXb.js"),
10
10
  require("motion/react"), require("../../chunks/Badge-CY_DG6cD.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
11
11
  require("../../chunks/Dot-_HCJ3qxd.js"), require("../../chunks/Icon-BB-t50Yt.js"),
12
- require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/ProgressIndicator-DETWiASA.js"),
13
- require("../../chunks/sharedTypes-gCECyn2N.js"), require("../../chunks/FileList-CIRALfrW.js"),
12
+ require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/ProgressIndicator-8QZwTSyY.js"),
13
+ require("../../chunks/sharedTypes-gCECyn2N.js"), require("../../chunks/FileList-DjTXjXnK.js"),
14
14
  require("../../chunks/FileIcon-xoD-xIme.js"), exports.PromptInput = PromptInput.PromptInput;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var TextArea = require("../../chunks/TextArea-mSespe9z.js");
3
+ var TextArea = require("../../chunks/TextArea-CtJi771p.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
- require("../../chunks/Button-KGA0e9-0.js"), require("motion/react"), require("../../chunks/Badge-CY_DG6cD.js"),
6
+ require("../../chunks/Button-DmWbooXb.js"), require("motion/react"), require("../../chunks/Badge-CY_DG6cD.js"),
7
7
  require("../../chunks/style-inject.es-CMuL-BfJ.js"), require("../../chunks/Dot-_HCJ3qxd.js"),
8
8
  require("../../chunks/Icon-BB-t50Yt.js"), require("../../hooks/useTheme.js"), require("../../theme/themes.js"),
9
9
  require("../../theme/colors.js"), require("../../theme/corners.js"), require("../../theme/elevations.js"),
10
10
  require("../../theme/motion.js"), require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"),
11
- require("../../chunks/misc-BTF7BCZW.js"), require("../../hooks/useWindow.js"), require("../../chunks/ProgressIndicator-DETWiASA.js"),
11
+ require("../../chunks/misc-BTF7BCZW.js"), require("../../hooks/useWindow.js"), require("../../chunks/ProgressIndicator-8QZwTSyY.js"),
12
12
  require("../../chunks/sharedTypes-gCECyn2N.js"), exports.TextArea = TextArea.TextArea;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var TextField = require("../../chunks/TextField-Cz2lh-fP.js");
3
+ var TextField = require("../../chunks/TextField-B2u_CZKk.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("motion/react"),
6
6
  require("react"), require("../../hooks/useTheme.js"), require("../../theme/themes.js"),
7
7
  require("../../theme/colors.js"), require("../../theme/corners.js"), require("../../theme/elevations.js"),
8
8
  require("../../theme/motion.js"), require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"),
9
- require("../../chunks/misc-BTF7BCZW.js"), require("../../hooks/useWindow.js"), require("../../chunks/Button-KGA0e9-0.js"),
9
+ require("../../chunks/misc-BTF7BCZW.js"), require("../../hooks/useWindow.js"), require("../../chunks/Button-DmWbooXb.js"),
10
10
  require("../../chunks/Badge-CY_DG6cD.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
11
11
  require("../../chunks/Dot-_HCJ3qxd.js"), require("../../chunks/Icon-BB-t50Yt.js"),
12
- require("../../chunks/ProgressIndicator-DETWiASA.js"), require("../../chunks/sharedTypes-gCECyn2N.js"),
12
+ require("../../chunks/ProgressIndicator-8QZwTSyY.js"), require("../../chunks/sharedTypes-gCECyn2N.js"),
13
13
  require("../../chunks/IconButton-BUw3YUsI.js"), exports.TextField = TextField.TextField;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
- var UploadArea = require("../../chunks/UploadArea-CtvvqLU7.js");
3
+ var UploadArea = require("../../chunks/UploadArea-BS2BPuhZ.js");
4
4
 
5
5
  require("react/jsx-runtime"), require("react"), require("../../chunks/misc-BTF7BCZW.js"),
6
- require("../../chunks/tslib.es6-C8dZW5nY.js"), require("../../chunks/FileList-CIRALfrW.js"),
6
+ require("../../chunks/tslib.es6-C8dZW5nY.js"), require("../../chunks/FileList-DjTXjXnK.js"),
7
7
  require("../../chunks/FileIcon-xoD-xIme.js"), require("../../hooks/useTheme.js"),
8
8
  require("../../theme/themes.js"), require("../../theme/colors.js"), require("../../theme/corners.js"),
9
9
  require("../../theme/elevations.js"), require("../../theme/motion.js"), require("../../theme/type.js"),
10
10
  require("../../hooks/useObserveTheme.js"), require("../../hooks/useWindow.js"),
11
11
  require("../../chunks/Icon-BB-t50Yt.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
12
- require("../../chunks/ProgressIndicator-DETWiASA.js"), require("motion/react"),
12
+ require("../../chunks/ProgressIndicator-8QZwTSyY.js"), require("motion/react"),
13
13
  exports.UploadArea = UploadArea.UploadArea, exports.allTypes = UploadArea.allTypes,
14
14
  exports.audioTypes = UploadArea.audioTypes, exports.documentTypes = UploadArea.documentTypes,
15
15
  exports.imageTypes = UploadArea.imageTypes, exports.textTypes = UploadArea.textTypes,
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("../chunks/tslib.es6-C8dZW5nY.js"), React = require("react");
4
+
5
+ exports.useAudioRecorder = function(audioStream) {
6
+ const audioBlob = React.useRef(null), mediaRecorderRef = React.useRef(null), recordedChunksRef = React.useRef([]), stopResolveRef = React.useRef(null), [error, setError] = React.useState(null), [isRecording, setIsRecording] = React.useState(!1), [recordingSizeMb, setRecordingSizeMb] = React.useState(0), [mimeType, setMimeType] = React.useState(null), resetRecording = React.useCallback(() => {
7
+ audioBlob.current = null, recordedChunksRef.current = [], setRecordingSizeMb(0),
8
+ setError(null);
9
+ }, []), startRecording = React.useCallback(() => {
10
+ var _a;
11
+ try {
12
+ if ("undefined" == typeof MediaRecorder) throw new TypeError("MediaRecorder is not supported in this browser");
13
+ if ("recording" === (null === (_a = mediaRecorderRef.current) || void 0 === _a ? void 0 : _a.state)) return;
14
+ const stream = (audioStream => {
15
+ const source = (audioStream => audioStream ? "object" == typeof audioStream && "current" in audioStream ? audioStream.current : audioStream : null)(audioStream);
16
+ return source ? "undefined" == typeof MediaStream ? null : source instanceof MediaStream ? source : new MediaStream([ source ]) : null;
17
+ })(audioStream);
18
+ if (!stream) throw new Error("No audio stream or track provided");
19
+ resetRecording();
20
+ const nextMimeType = (() => {
21
+ if ("undefined" == typeof MediaRecorder) return null;
22
+ const mimeTypes = [ "audio/mpeg", "audio/mp4", "audio/webm;codecs=opus", "audio/webm", "audio/ogg;codecs=opus", "audio/ogg" ];
23
+ for (const mimeType of mimeTypes) if (MediaRecorder.isTypeSupported(mimeType)) return mimeType;
24
+ return null;
25
+ })();
26
+ setMimeType(nextMimeType);
27
+ const mediaRecorder = nextMimeType ? new MediaRecorder(stream, {
28
+ mimeType: nextMimeType
29
+ }) : new MediaRecorder(stream);
30
+ mediaRecorder.ondataavailable = event => {
31
+ event.data.size > 0 && (recordedChunksRef.current.push(event.data), setRecordingSizeMb(size => size + event.data.size / 1024 / 1024));
32
+ }, mediaRecorder.onerror = () => {
33
+ setError(new Error("Audio recording failed")), setIsRecording(!1);
34
+ }, mediaRecorder.onstop = () => {
35
+ var _a;
36
+ const nextBlob = new Blob(recordedChunksRef.current, {
37
+ type: mediaRecorder.mimeType || nextMimeType || "audio/webm"
38
+ });
39
+ audioBlob.current = nextBlob, setIsRecording(!1), null === (_a = stopResolveRef.current) || void 0 === _a || _a.call(stopResolveRef, nextBlob),
40
+ stopResolveRef.current = null;
41
+ }, mediaRecorderRef.current = mediaRecorder, mediaRecorder.start(250), setIsRecording(!0);
42
+ } catch (error) {
43
+ console.error("Error recording audio:", error), setError(error instanceof Error ? error : new Error("Unknown error")),
44
+ setIsRecording(!1);
45
+ }
46
+ }, [ audioStream, resetRecording ]), stopRecording = React.useCallback(() => tslib_es6.__awaiter(this, void 0, void 0, function*() {
47
+ try {
48
+ const mediaRecorder = mediaRecorderRef.current;
49
+ return mediaRecorder && "inactive" !== mediaRecorder.state ? new Promise(resolve => {
50
+ stopResolveRef.current = resolve, mediaRecorder.stop();
51
+ }) : (setIsRecording(!1), audioBlob.current);
52
+ } catch (error) {
53
+ return console.error("Error stopping recording:", error), setError(error instanceof Error ? error : new Error("Unknown error")),
54
+ setIsRecording(!1), null;
55
+ }
56
+ }), []);
57
+ return React.useEffect(() => () => {
58
+ mediaRecorderRef.current && "inactive" !== mediaRecorderRef.current.state && mediaRecorderRef.current.stop(),
59
+ mediaRecorderRef.current = null, stopResolveRef.current = null;
60
+ }, []), {
61
+ audioBlob: audioBlob,
62
+ error: error,
63
+ isRecording: isRecording,
64
+ recordingSizeMb: recordingSizeMb,
65
+ mimeType: mimeType,
66
+ resetRecording: resetRecording,
67
+ startRecording: startRecording,
68
+ stopRecording: stopRecording
69
+ };
70
+ };