@app-studio/web 0.9.3 → 0.9.4
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.
- package/dist/components/ChatInput/AttachmentGroup.d.ts +2 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.props.d.ts +28 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.state.d.ts +3 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +2 -0
- package/dist/components/ChatInput/ChatInput.d.ts +1 -11
- package/dist/components/ChatInput/{FileUploadHandler.d.ts → ChatUploader.d.ts} +3 -2
- package/dist/components/ChatInput/ReferenceImageButton.d.ts +1 -0
- package/dist/components/ChatInput/ReferenceImageModal.d.ts +7 -0
- package/dist/components/ChatInput/index.d.ts +1 -2
- package/dist/components/Icon/Icon.d.ts +1 -3
- package/dist/components/Uploader/Uploader/Uploader.props.d.ts +5 -0
- package/dist/components/Uploader/Uploader/Uploader.state.d.ts +2 -1
- package/dist/web.cjs.development.js +456 -685
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +458 -685
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +456 -685
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,31 +8,6 @@
|
|
|
8
8
|
contrast = contrast && Object.prototype.hasOwnProperty.call(contrast, 'default') ? contrast['default'] : contrast;
|
|
9
9
|
format = format && Object.prototype.hasOwnProperty.call(format, 'default') ? format['default'] : format;
|
|
10
10
|
|
|
11
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
12
|
-
try {
|
|
13
|
-
var i = n[a](c),
|
|
14
|
-
u = i.value;
|
|
15
|
-
} catch (n) {
|
|
16
|
-
return void e(n);
|
|
17
|
-
}
|
|
18
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
19
|
-
}
|
|
20
|
-
function _asyncToGenerator(n) {
|
|
21
|
-
return function () {
|
|
22
|
-
var t = this,
|
|
23
|
-
e = arguments;
|
|
24
|
-
return new Promise(function (r, o) {
|
|
25
|
-
var a = n.apply(t, e);
|
|
26
|
-
function _next(n) {
|
|
27
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
28
|
-
}
|
|
29
|
-
function _throw(n) {
|
|
30
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
31
|
-
}
|
|
32
|
-
_next(void 0);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
11
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
37
12
|
if (null == r) return {};
|
|
38
13
|
var t = {};
|
|
@@ -691,7 +666,7 @@
|
|
|
691
666
|
_excluded38 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
692
667
|
_excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
693
668
|
_excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
694
|
-
_excluded41 = ["widthHeight", "color", "
|
|
669
|
+
_excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
695
670
|
_excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
696
671
|
_excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
697
672
|
_excluded44 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -703,9 +678,9 @@
|
|
|
703
678
|
_excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
704
679
|
_excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
705
680
|
_excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
706
|
-
_excluded53 = ["widthHeight", "color", "
|
|
681
|
+
_excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
707
682
|
_excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
708
|
-
_excluded55 = ["widthHeight", "color", "
|
|
683
|
+
_excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
709
684
|
_excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
710
685
|
_excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
711
686
|
_excluded58 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -723,8 +698,8 @@
|
|
|
723
698
|
_excluded70 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
724
699
|
_excluded71 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
725
700
|
_excluded72 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
726
|
-
_excluded73 = ["widthHeight", "color", "
|
|
727
|
-
_excluded74 = ["widthHeight", "color", "
|
|
701
|
+
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
702
|
+
_excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
728
703
|
_excluded75 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
729
704
|
_excluded76 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
730
705
|
_excluded77 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
@@ -736,9 +711,7 @@
|
|
|
736
711
|
_excluded83 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
737
712
|
_excluded84 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
738
713
|
_excluded85 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
739
|
-
_excluded86 = ["widthHeight", "color", "strokeWidth", "filled"]
|
|
740
|
-
_excluded87 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
741
|
-
_excluded88 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
714
|
+
_excluded86 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
742
715
|
// Default wrapper component for consistent sizing and styling
|
|
743
716
|
var IconWrapper = _ref => {
|
|
744
717
|
var {
|
|
@@ -781,12 +754,21 @@
|
|
|
781
754
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
782
755
|
widthHeight: widthHeight,
|
|
783
756
|
color: color
|
|
784
|
-
}, props), /*#__PURE__*/React__default.createElement("svg",
|
|
757
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
785
758
|
viewBox: "0 0 24 24",
|
|
786
759
|
"aria-hidden": "true",
|
|
787
|
-
focusable: "false"
|
|
788
|
-
|
|
789
|
-
|
|
760
|
+
focusable: "false",
|
|
761
|
+
fill: filled ? color : 'none',
|
|
762
|
+
stroke: filled ? 'none' : color,
|
|
763
|
+
strokeWidth: strokeWidth,
|
|
764
|
+
strokeLinecap: "round",
|
|
765
|
+
strokeLinejoin: "round"
|
|
766
|
+
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
767
|
+
cx: "12",
|
|
768
|
+
cy: "8",
|
|
769
|
+
r: "4"
|
|
770
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
771
|
+
d: "M4 20c0-4 4-7 8-7s8 3 8 7"
|
|
790
772
|
})));
|
|
791
773
|
};
|
|
792
774
|
var HelpIcon = _ref3 => {
|
|
@@ -933,7 +915,8 @@
|
|
|
933
915
|
"aria-hidden": "true",
|
|
934
916
|
focusable: "false"
|
|
935
917
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
936
|
-
d: "
|
|
918
|
+
d: "M7.41 15.41L12 10.83L16.59 15.41L18 14L12 8L6 14L7.41 15.41Z",
|
|
919
|
+
fill: "currentColor"
|
|
937
920
|
})));
|
|
938
921
|
};
|
|
939
922
|
var DragHandleIcon = _ref6 => {
|
|
@@ -977,32 +960,28 @@
|
|
|
977
960
|
r: "2"
|
|
978
961
|
}))));
|
|
979
962
|
};
|
|
980
|
-
// File Icon Component
|
|
981
963
|
var FileIcon = _ref7 => {
|
|
982
964
|
var {
|
|
983
965
|
widthHeight = 24,
|
|
984
966
|
color = 'currentColor',
|
|
985
|
-
filled =
|
|
967
|
+
filled = false,
|
|
986
968
|
strokeWidth = 1
|
|
987
969
|
} = _ref7,
|
|
988
970
|
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
989
971
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
990
972
|
widthHeight: widthHeight,
|
|
991
973
|
color: color
|
|
992
|
-
}, props), /*#__PURE__*/React__default.createElement("svg",
|
|
974
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
993
975
|
viewBox: "0 0 24 24",
|
|
994
976
|
"aria-hidden": "true",
|
|
995
|
-
focusable: "false"
|
|
996
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
997
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
977
|
+
focusable: "false",
|
|
998
978
|
fill: filled ? color : 'none',
|
|
999
979
|
stroke: filled ? 'none' : color,
|
|
1000
|
-
strokeWidth: filled ? 0 : strokeWidth
|
|
1001
|
-
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
1002
|
-
points: "14 2 14 8 20 8",
|
|
1003
|
-
fill: "none",
|
|
1004
|
-
stroke: color,
|
|
1005
980
|
strokeWidth: strokeWidth
|
|
981
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
982
|
+
d: "M6 2H14L20 8V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2Z"
|
|
983
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
984
|
+
d: "M14 2V8H20"
|
|
1006
985
|
})));
|
|
1007
986
|
};
|
|
1008
987
|
// Video Icon Component
|
|
@@ -1156,7 +1135,7 @@
|
|
|
1156
1135
|
widthHeight = 24,
|
|
1157
1136
|
color = 'currentColor',
|
|
1158
1137
|
filled = false,
|
|
1159
|
-
strokeWidth =
|
|
1138
|
+
strokeWidth = 2
|
|
1160
1139
|
} = _ref13,
|
|
1161
1140
|
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
1162
1141
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
@@ -1806,7 +1785,7 @@
|
|
|
1806
1785
|
d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
|
|
1807
1786
|
})));
|
|
1808
1787
|
};
|
|
1809
|
-
var
|
|
1788
|
+
var PanelIcon = _ref40 => {
|
|
1810
1789
|
var {
|
|
1811
1790
|
widthHeight = 24,
|
|
1812
1791
|
color = 'currentColor',
|
|
@@ -1821,77 +1800,6 @@
|
|
|
1821
1800
|
viewBox: "0 0 24 24",
|
|
1822
1801
|
"aria-hidden": "false",
|
|
1823
1802
|
focusable: "false"
|
|
1824
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("line", {
|
|
1825
|
-
stroke: color,
|
|
1826
|
-
x1: "4",
|
|
1827
|
-
y1: "21",
|
|
1828
|
-
x2: "4",
|
|
1829
|
-
y2: "14"
|
|
1830
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1831
|
-
stroke: color,
|
|
1832
|
-
x1: "4",
|
|
1833
|
-
y1: "10",
|
|
1834
|
-
x2: "4",
|
|
1835
|
-
y2: "3"
|
|
1836
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1837
|
-
stroke: color,
|
|
1838
|
-
x1: "12",
|
|
1839
|
-
y1: "21",
|
|
1840
|
-
x2: "12",
|
|
1841
|
-
y2: "12"
|
|
1842
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1843
|
-
stroke: color,
|
|
1844
|
-
x1: "12",
|
|
1845
|
-
y1: "8",
|
|
1846
|
-
x2: "12",
|
|
1847
|
-
y2: "3"
|
|
1848
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1849
|
-
stroke: color,
|
|
1850
|
-
x1: "20",
|
|
1851
|
-
y1: "21",
|
|
1852
|
-
x2: "20",
|
|
1853
|
-
y2: "16"
|
|
1854
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1855
|
-
stroke: color,
|
|
1856
|
-
x1: "20",
|
|
1857
|
-
y1: "12",
|
|
1858
|
-
x2: "20",
|
|
1859
|
-
y2: "3"
|
|
1860
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1861
|
-
stroke: color,
|
|
1862
|
-
x1: "1",
|
|
1863
|
-
y1: "14",
|
|
1864
|
-
x2: "7",
|
|
1865
|
-
y2: "14"
|
|
1866
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1867
|
-
stroke: color,
|
|
1868
|
-
x1: "9",
|
|
1869
|
-
y1: "8",
|
|
1870
|
-
x2: "15",
|
|
1871
|
-
y2: "8"
|
|
1872
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
1873
|
-
stroke: color,
|
|
1874
|
-
x1: "17",
|
|
1875
|
-
y1: "16",
|
|
1876
|
-
x2: "23",
|
|
1877
|
-
y2: "16"
|
|
1878
|
-
})));
|
|
1879
|
-
};
|
|
1880
|
-
var PanelIcon = _ref41 => {
|
|
1881
|
-
var {
|
|
1882
|
-
widthHeight = 24,
|
|
1883
|
-
color = 'currentColor',
|
|
1884
|
-
strokeWidth = 1,
|
|
1885
|
-
filled = false
|
|
1886
|
-
} = _ref41,
|
|
1887
|
-
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1888
|
-
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1889
|
-
widthHeight: widthHeight,
|
|
1890
|
-
color: color
|
|
1891
|
-
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1892
|
-
viewBox: "0 0 24 24",
|
|
1893
|
-
"aria-hidden": "false",
|
|
1894
|
-
focusable: "false"
|
|
1895
1803
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("rect", {
|
|
1896
1804
|
width: "18",
|
|
1897
1805
|
height: "18",
|
|
@@ -1902,14 +1810,14 @@
|
|
|
1902
1810
|
d: "M9 3v18"
|
|
1903
1811
|
})));
|
|
1904
1812
|
};
|
|
1905
|
-
var FilterIcon =
|
|
1813
|
+
var FilterIcon = _ref41 => {
|
|
1906
1814
|
var {
|
|
1907
1815
|
widthHeight = 24,
|
|
1908
1816
|
color = 'currentColor',
|
|
1909
1817
|
filled = false,
|
|
1910
1818
|
strokeWidth = 1
|
|
1911
|
-
} =
|
|
1912
|
-
props = _objectWithoutPropertiesLoose(
|
|
1819
|
+
} = _ref41,
|
|
1820
|
+
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1913
1821
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1914
1822
|
widthHeight: widthHeight,
|
|
1915
1823
|
color: color
|
|
@@ -1921,14 +1829,14 @@
|
|
|
1921
1829
|
d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
|
|
1922
1830
|
})));
|
|
1923
1831
|
};
|
|
1924
|
-
var HomeIcon =
|
|
1832
|
+
var HomeIcon = _ref42 => {
|
|
1925
1833
|
var {
|
|
1926
1834
|
widthHeight = 24,
|
|
1927
1835
|
color = 'currentColor',
|
|
1928
1836
|
filled = true,
|
|
1929
1837
|
strokeWidth = 1
|
|
1930
|
-
} =
|
|
1931
|
-
props = _objectWithoutPropertiesLoose(
|
|
1838
|
+
} = _ref42,
|
|
1839
|
+
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1932
1840
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1933
1841
|
widthHeight: widthHeight,
|
|
1934
1842
|
color: color
|
|
@@ -1940,14 +1848,14 @@
|
|
|
1940
1848
|
d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
|
|
1941
1849
|
})));
|
|
1942
1850
|
};
|
|
1943
|
-
var LocationIcon =
|
|
1851
|
+
var LocationIcon = _ref43 => {
|
|
1944
1852
|
var {
|
|
1945
1853
|
widthHeight = 24,
|
|
1946
1854
|
color = 'currentColor',
|
|
1947
1855
|
filled = true,
|
|
1948
1856
|
strokeWidth = 1
|
|
1949
|
-
} =
|
|
1950
|
-
props = _objectWithoutPropertiesLoose(
|
|
1857
|
+
} = _ref43,
|
|
1858
|
+
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1951
1859
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1952
1860
|
widthHeight: widthHeight,
|
|
1953
1861
|
color: color
|
|
@@ -1959,14 +1867,14 @@
|
|
|
1959
1867
|
d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
|
|
1960
1868
|
})));
|
|
1961
1869
|
};
|
|
1962
|
-
var LockIcon =
|
|
1870
|
+
var LockIcon = _ref44 => {
|
|
1963
1871
|
var {
|
|
1964
1872
|
widthHeight = 24,
|
|
1965
1873
|
color = 'currentColor',
|
|
1966
1874
|
filled = false,
|
|
1967
1875
|
strokeWidth = 1
|
|
1968
|
-
} =
|
|
1969
|
-
props = _objectWithoutPropertiesLoose(
|
|
1876
|
+
} = _ref44,
|
|
1877
|
+
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1970
1878
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1971
1879
|
widthHeight: widthHeight,
|
|
1972
1880
|
color: color
|
|
@@ -1991,14 +1899,14 @@
|
|
|
1991
1899
|
r: "1.5"
|
|
1992
1900
|
})))));
|
|
1993
1901
|
};
|
|
1994
|
-
var MicrophoneIcon =
|
|
1902
|
+
var MicrophoneIcon = _ref45 => {
|
|
1995
1903
|
var {
|
|
1996
1904
|
widthHeight = 24,
|
|
1997
1905
|
color = 'currentColor',
|
|
1998
1906
|
filled = false,
|
|
1999
1907
|
strokeWidth = 1
|
|
2000
|
-
} =
|
|
2001
|
-
props = _objectWithoutPropertiesLoose(
|
|
1908
|
+
} = _ref45,
|
|
1909
|
+
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
2002
1910
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2003
1911
|
widthHeight: widthHeight,
|
|
2004
1912
|
color: color
|
|
@@ -2024,14 +1932,14 @@
|
|
|
2024
1932
|
y2: "23"
|
|
2025
1933
|
})));
|
|
2026
1934
|
};
|
|
2027
|
-
var MoonIcon =
|
|
1935
|
+
var MoonIcon = _ref46 => {
|
|
2028
1936
|
var {
|
|
2029
1937
|
widthHeight = 24,
|
|
2030
1938
|
color = 'currentColor',
|
|
2031
1939
|
filled = true,
|
|
2032
1940
|
strokeWidth = 1
|
|
2033
|
-
} =
|
|
2034
|
-
props = _objectWithoutPropertiesLoose(
|
|
1941
|
+
} = _ref46,
|
|
1942
|
+
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
2035
1943
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2036
1944
|
widthHeight: widthHeight,
|
|
2037
1945
|
color: color
|
|
@@ -2043,14 +1951,14 @@
|
|
|
2043
1951
|
d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
|
|
2044
1952
|
})));
|
|
2045
1953
|
};
|
|
2046
|
-
var NotificationIcon =
|
|
1954
|
+
var NotificationIcon = _ref47 => {
|
|
2047
1955
|
var {
|
|
2048
1956
|
widthHeight = 24,
|
|
2049
1957
|
color = 'currentColor',
|
|
2050
1958
|
filled = false,
|
|
2051
1959
|
strokeWidth = 1
|
|
2052
|
-
} =
|
|
2053
|
-
props = _objectWithoutPropertiesLoose(
|
|
1960
|
+
} = _ref47,
|
|
1961
|
+
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
2054
1962
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2055
1963
|
widthHeight: widthHeight,
|
|
2056
1964
|
color: color
|
|
@@ -2064,14 +1972,14 @@
|
|
|
2064
1972
|
d: "M13.73 21a2 2 0 0 1-3.46 0"
|
|
2065
1973
|
})));
|
|
2066
1974
|
};
|
|
2067
|
-
var OpenEyeIcon =
|
|
1975
|
+
var OpenEyeIcon = _ref48 => {
|
|
2068
1976
|
var {
|
|
2069
1977
|
widthHeight = 24,
|
|
2070
1978
|
color = 'currentColor',
|
|
2071
1979
|
filled = true,
|
|
2072
1980
|
strokeWidth = 1
|
|
2073
|
-
} =
|
|
2074
|
-
props = _objectWithoutPropertiesLoose(
|
|
1981
|
+
} = _ref48,
|
|
1982
|
+
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
2075
1983
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2076
1984
|
widthHeight: widthHeight,
|
|
2077
1985
|
color: color
|
|
@@ -2083,14 +1991,14 @@
|
|
|
2083
1991
|
d: "M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
2084
1992
|
})));
|
|
2085
1993
|
};
|
|
2086
|
-
var ProfileIcon =
|
|
1994
|
+
var ProfileIcon = _ref49 => {
|
|
2087
1995
|
var {
|
|
2088
1996
|
widthHeight = 24,
|
|
2089
1997
|
color = 'currentColor',
|
|
2090
1998
|
filled = true,
|
|
2091
1999
|
strokeWidth = 1
|
|
2092
|
-
} =
|
|
2093
|
-
props = _objectWithoutPropertiesLoose(
|
|
2000
|
+
} = _ref49,
|
|
2001
|
+
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
2094
2002
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2095
2003
|
widthHeight: widthHeight,
|
|
2096
2004
|
color: color
|
|
@@ -2103,14 +2011,14 @@
|
|
|
2103
2011
|
d: "M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
|
|
2104
2012
|
}), ' '));
|
|
2105
2013
|
};
|
|
2106
|
-
var SettingsIcon =
|
|
2014
|
+
var SettingsIcon = _ref50 => {
|
|
2107
2015
|
var {
|
|
2108
2016
|
widthHeight = 24,
|
|
2109
2017
|
color = 'currentColor',
|
|
2110
2018
|
filled = false,
|
|
2111
2019
|
strokeWidth = 1
|
|
2112
|
-
} =
|
|
2113
|
-
props = _objectWithoutPropertiesLoose(
|
|
2020
|
+
} = _ref50,
|
|
2021
|
+
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
2114
2022
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2115
2023
|
widthHeight: widthHeight,
|
|
2116
2024
|
color: color
|
|
@@ -2122,14 +2030,14 @@
|
|
|
2122
2030
|
d: "M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"
|
|
2123
2031
|
})));
|
|
2124
2032
|
};
|
|
2125
|
-
var SuccessIcon =
|
|
2033
|
+
var SuccessIcon = _ref51 => {
|
|
2126
2034
|
var {
|
|
2127
2035
|
widthHeight = 24,
|
|
2128
2036
|
color = 'currentColor',
|
|
2129
2037
|
filled = true,
|
|
2130
2038
|
strokeWidth = 1
|
|
2131
|
-
} =
|
|
2132
|
-
props = _objectWithoutPropertiesLoose(
|
|
2039
|
+
} = _ref51,
|
|
2040
|
+
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
2133
2041
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2134
2042
|
widthHeight: widthHeight,
|
|
2135
2043
|
color: color
|
|
@@ -2141,14 +2049,14 @@
|
|
|
2141
2049
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
2142
2050
|
})));
|
|
2143
2051
|
};
|
|
2144
|
-
var UnLikeIcon =
|
|
2052
|
+
var UnLikeIcon = _ref52 => {
|
|
2145
2053
|
var {
|
|
2146
2054
|
widthHeight = 24,
|
|
2147
2055
|
color = 'currentColor',
|
|
2148
2056
|
filled = true,
|
|
2149
2057
|
strokeWidth = 1
|
|
2150
|
-
} =
|
|
2151
|
-
props = _objectWithoutPropertiesLoose(
|
|
2058
|
+
} = _ref52,
|
|
2059
|
+
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
2152
2060
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2153
2061
|
widthHeight: widthHeight,
|
|
2154
2062
|
color: color
|
|
@@ -2160,14 +2068,14 @@
|
|
|
2160
2068
|
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"
|
|
2161
2069
|
})));
|
|
2162
2070
|
};
|
|
2163
|
-
var ClockIcon =
|
|
2071
|
+
var ClockIcon = _ref53 => {
|
|
2164
2072
|
var {
|
|
2165
2073
|
widthHeight = 24,
|
|
2166
2074
|
color = 'currentColor',
|
|
2167
2075
|
strokeWidth = 1,
|
|
2168
2076
|
filled = false
|
|
2169
|
-
} =
|
|
2170
|
-
props = _objectWithoutPropertiesLoose(
|
|
2077
|
+
} = _ref53,
|
|
2078
|
+
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
2171
2079
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2172
2080
|
widthHeight: widthHeight,
|
|
2173
2081
|
color: color
|
|
@@ -2183,14 +2091,14 @@
|
|
|
2183
2091
|
points: "12 6 12 12 16 14"
|
|
2184
2092
|
})));
|
|
2185
2093
|
};
|
|
2186
|
-
var CameraIcon =
|
|
2094
|
+
var CameraIcon = _ref54 => {
|
|
2187
2095
|
var {
|
|
2188
2096
|
widthHeight = 24,
|
|
2189
2097
|
color = 'currentColor',
|
|
2190
2098
|
strokeWidth = 1,
|
|
2191
2099
|
filled = false
|
|
2192
|
-
} =
|
|
2193
|
-
props = _objectWithoutPropertiesLoose(
|
|
2100
|
+
} = _ref54,
|
|
2101
|
+
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
2194
2102
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2195
2103
|
widthHeight: widthHeight,
|
|
2196
2104
|
color: color
|
|
@@ -2206,14 +2114,14 @@
|
|
|
2206
2114
|
r: "4"
|
|
2207
2115
|
})));
|
|
2208
2116
|
};
|
|
2209
|
-
var BluetoothIcon =
|
|
2117
|
+
var BluetoothIcon = _ref55 => {
|
|
2210
2118
|
var {
|
|
2211
2119
|
widthHeight = 24,
|
|
2212
2120
|
color = 'currentColor',
|
|
2213
2121
|
filled = true,
|
|
2214
2122
|
strokeWidth = 1
|
|
2215
|
-
} =
|
|
2216
|
-
props = _objectWithoutPropertiesLoose(
|
|
2123
|
+
} = _ref55,
|
|
2124
|
+
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
2217
2125
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2218
2126
|
widthHeight: widthHeight,
|
|
2219
2127
|
color: color
|
|
@@ -2225,14 +2133,14 @@
|
|
|
2225
2133
|
d: "M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"
|
|
2226
2134
|
})));
|
|
2227
2135
|
};
|
|
2228
|
-
var LikeIcon =
|
|
2136
|
+
var LikeIcon = _ref56 => {
|
|
2229
2137
|
var {
|
|
2230
2138
|
widthHeight = 24,
|
|
2231
2139
|
color = 'currentColor',
|
|
2232
2140
|
filled = true,
|
|
2233
2141
|
strokeWidth = 1
|
|
2234
|
-
} =
|
|
2235
|
-
props = _objectWithoutPropertiesLoose(
|
|
2142
|
+
} = _ref56,
|
|
2143
|
+
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
2236
2144
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2237
2145
|
widthHeight: widthHeight,
|
|
2238
2146
|
color: color
|
|
@@ -2244,14 +2152,14 @@
|
|
|
2244
2152
|
d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"
|
|
2245
2153
|
})));
|
|
2246
2154
|
};
|
|
2247
|
-
var UnlockIcon =
|
|
2155
|
+
var UnlockIcon = _ref57 => {
|
|
2248
2156
|
var {
|
|
2249
2157
|
widthHeight = 24,
|
|
2250
2158
|
color = 'currentColor',
|
|
2251
2159
|
filled = false,
|
|
2252
2160
|
strokeWidth = 1
|
|
2253
|
-
} =
|
|
2254
|
-
props = _objectWithoutPropertiesLoose(
|
|
2161
|
+
} = _ref57,
|
|
2162
|
+
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
2255
2163
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2256
2164
|
widthHeight: widthHeight,
|
|
2257
2165
|
color: color
|
|
@@ -2276,14 +2184,14 @@
|
|
|
2276
2184
|
r: "1.5"
|
|
2277
2185
|
})))));
|
|
2278
2186
|
};
|
|
2279
|
-
var WifiIcon =
|
|
2187
|
+
var WifiIcon = _ref58 => {
|
|
2280
2188
|
var {
|
|
2281
2189
|
widthHeight = 24,
|
|
2282
2190
|
color = 'currentColor',
|
|
2283
2191
|
filled = false,
|
|
2284
2192
|
strokeWidth = 1
|
|
2285
|
-
} =
|
|
2286
|
-
props = _objectWithoutPropertiesLoose(
|
|
2193
|
+
} = _ref58,
|
|
2194
|
+
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
2287
2195
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2288
2196
|
widthHeight: widthHeight,
|
|
2289
2197
|
color: color
|
|
@@ -2295,14 +2203,14 @@
|
|
|
2295
2203
|
d: "M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"
|
|
2296
2204
|
})));
|
|
2297
2205
|
};
|
|
2298
|
-
var UploadIcon =
|
|
2206
|
+
var UploadIcon = _ref59 => {
|
|
2299
2207
|
var {
|
|
2300
2208
|
widthHeight = 24,
|
|
2301
2209
|
color = 'currentColor',
|
|
2302
2210
|
filled = false,
|
|
2303
2211
|
strokeWidth = 1
|
|
2304
|
-
} =
|
|
2305
|
-
props = _objectWithoutPropertiesLoose(
|
|
2212
|
+
} = _ref59,
|
|
2213
|
+
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
2306
2214
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2307
2215
|
widthHeight: widthHeight,
|
|
2308
2216
|
color: color
|
|
@@ -2318,14 +2226,14 @@
|
|
|
2318
2226
|
d: "M12 12l0 9"
|
|
2319
2227
|
})));
|
|
2320
2228
|
};
|
|
2321
|
-
var SearchIcon =
|
|
2229
|
+
var SearchIcon = _ref60 => {
|
|
2322
2230
|
var {
|
|
2323
2231
|
widthHeight = 24,
|
|
2324
2232
|
color = 'currentColor',
|
|
2325
2233
|
filled = true,
|
|
2326
2234
|
strokeWidth = 1
|
|
2327
|
-
} =
|
|
2328
|
-
props = _objectWithoutPropertiesLoose(
|
|
2235
|
+
} = _ref60,
|
|
2236
|
+
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
2329
2237
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2330
2238
|
widthHeight: widthHeight,
|
|
2331
2239
|
color: color
|
|
@@ -2338,14 +2246,14 @@
|
|
|
2338
2246
|
})));
|
|
2339
2247
|
};
|
|
2340
2248
|
// Stop Icon (rectangle) for stopping agent
|
|
2341
|
-
var StopIcon =
|
|
2249
|
+
var StopIcon = _ref61 => {
|
|
2342
2250
|
var {
|
|
2343
2251
|
widthHeight = 24,
|
|
2344
2252
|
color = 'currentColor',
|
|
2345
2253
|
filled = true,
|
|
2346
2254
|
strokeWidth = 2
|
|
2347
|
-
} =
|
|
2348
|
-
props = _objectWithoutPropertiesLoose(
|
|
2255
|
+
} = _ref61,
|
|
2256
|
+
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
2349
2257
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2350
2258
|
widthHeight: widthHeight,
|
|
2351
2259
|
color: color
|
|
@@ -2363,14 +2271,14 @@
|
|
|
2363
2271
|
})));
|
|
2364
2272
|
};
|
|
2365
2273
|
// Send Icon (paper airplane) for chat submit
|
|
2366
|
-
var SendIcon =
|
|
2274
|
+
var SendIcon = _ref62 => {
|
|
2367
2275
|
var {
|
|
2368
2276
|
widthHeight = 24,
|
|
2369
2277
|
color = 'currentColor',
|
|
2370
2278
|
filled = false,
|
|
2371
2279
|
strokeWidth = 2
|
|
2372
|
-
} =
|
|
2373
|
-
props = _objectWithoutPropertiesLoose(
|
|
2280
|
+
} = _ref62,
|
|
2281
|
+
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
2374
2282
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2375
2283
|
widthHeight: widthHeight,
|
|
2376
2284
|
color: color
|
|
@@ -2388,14 +2296,14 @@
|
|
|
2388
2296
|
})));
|
|
2389
2297
|
};
|
|
2390
2298
|
// Loading Spinner Icon for agent running indicator
|
|
2391
|
-
var LoadingSpinnerIcon =
|
|
2299
|
+
var LoadingSpinnerIcon = _ref63 => {
|
|
2392
2300
|
var {
|
|
2393
2301
|
widthHeight = 24,
|
|
2394
2302
|
color = 'currentColor',
|
|
2395
2303
|
filled = false,
|
|
2396
2304
|
strokeWidth = 2
|
|
2397
|
-
} =
|
|
2398
|
-
props = _objectWithoutPropertiesLoose(
|
|
2305
|
+
} = _ref63,
|
|
2306
|
+
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
2399
2307
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2400
2308
|
widthHeight: widthHeight,
|
|
2401
2309
|
color: color
|
|
@@ -2446,14 +2354,14 @@
|
|
|
2446
2354
|
})));
|
|
2447
2355
|
};
|
|
2448
2356
|
// Horizontal lines drag handle icon for Tree component
|
|
2449
|
-
var DragHandleLinesIcon =
|
|
2357
|
+
var DragHandleLinesIcon = _ref64 => {
|
|
2450
2358
|
var {
|
|
2451
2359
|
widthHeight = 16,
|
|
2452
2360
|
color = 'currentColor',
|
|
2453
2361
|
filled = false,
|
|
2454
2362
|
strokeWidth = 1.5
|
|
2455
|
-
} =
|
|
2456
|
-
props = _objectWithoutPropertiesLoose(
|
|
2363
|
+
} = _ref64,
|
|
2364
|
+
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
2457
2365
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2458
2366
|
widthHeight: widthHeight,
|
|
2459
2367
|
color: color
|
|
@@ -2473,36 +2381,14 @@
|
|
|
2473
2381
|
strokeLinecap: "round"
|
|
2474
2382
|
})));
|
|
2475
2383
|
};
|
|
2476
|
-
|
|
2477
|
-
var ChevronDownIcon = _ref66 => {
|
|
2478
|
-
var {
|
|
2479
|
-
widthHeight = 24,
|
|
2480
|
-
color = 'currentColor',
|
|
2481
|
-
filled = true,
|
|
2482
|
-
strokeWidth = 1
|
|
2483
|
-
} = _ref66,
|
|
2484
|
-
props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
|
|
2485
|
-
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2486
|
-
widthHeight: widthHeight,
|
|
2487
|
-
color: color
|
|
2488
|
-
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
2489
|
-
viewBox: "0 0 24 24",
|
|
2490
|
-
"aria-hidden": "false",
|
|
2491
|
-
focusable: "false"
|
|
2492
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
2493
|
-
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
2494
|
-
fill: "currentColor"
|
|
2495
|
-
})));
|
|
2496
|
-
};
|
|
2497
|
-
// ChevronRight Icon for submenu indicators
|
|
2498
|
-
var ChevronRightIcon = _ref67 => {
|
|
2384
|
+
var CloseEyeIcon = _ref65 => {
|
|
2499
2385
|
var {
|
|
2500
2386
|
widthHeight = 24,
|
|
2501
2387
|
color = 'currentColor',
|
|
2502
2388
|
filled = true,
|
|
2503
2389
|
strokeWidth = 1
|
|
2504
|
-
} =
|
|
2505
|
-
props = _objectWithoutPropertiesLoose(
|
|
2390
|
+
} = _ref65,
|
|
2391
|
+
props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
|
|
2506
2392
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2507
2393
|
widthHeight: widthHeight,
|
|
2508
2394
|
color: color
|
|
@@ -2511,39 +2397,40 @@
|
|
|
2511
2397
|
"aria-hidden": "false",
|
|
2512
2398
|
focusable: "false"
|
|
2513
2399
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
2514
|
-
d: "
|
|
2400
|
+
d: "M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",
|
|
2515
2401
|
fill: "currentColor"
|
|
2516
2402
|
})));
|
|
2517
2403
|
};
|
|
2518
|
-
var
|
|
2404
|
+
var TrashIcon = DeleteIcon;
|
|
2405
|
+
var AttachmentIcon = _ref66 => {
|
|
2519
2406
|
var {
|
|
2520
2407
|
widthHeight = 24,
|
|
2521
2408
|
color = 'currentColor',
|
|
2522
2409
|
filled = true,
|
|
2523
2410
|
strokeWidth = 1
|
|
2524
|
-
} =
|
|
2525
|
-
props = _objectWithoutPropertiesLoose(
|
|
2411
|
+
} = _ref66,
|
|
2412
|
+
props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
|
|
2526
2413
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2527
2414
|
widthHeight: widthHeight,
|
|
2528
2415
|
color: color
|
|
2529
2416
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2417
|
+
width: widthHeight,
|
|
2418
|
+
height: widthHeight,
|
|
2419
|
+
viewBox: "0 0 24 24"
|
|
2533
2420
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2421
|
+
// fillRule="evenodd"
|
|
2422
|
+
// clipRule="evenodd"
|
|
2423
|
+
d: "M3.70104 5.15932C3.0938 3.61775 3.85122 1.8758 5.39278 1.26856L5.56558 1.2005C7.10714 0.593259 8.84909 1.35068 9.45633 2.89225L13.071 12.0685C13.4252 12.9677 12.9833 13.9839 12.0841 14.3381L11.9977 14.3721C11.0985 14.7264 10.0823 14.2845 9.72809 13.3853L7.81051 8.5172C7.7093 8.26027 7.83554 7.96995 8.09247 7.86874C8.34939 7.76753 8.63972 7.89377 8.74092 8.1507L10.6585 13.0188C10.8103 13.4042 11.2458 13.5935 11.6312 13.4417L11.7176 13.4077C12.103 13.2559 12.2923 12.8204 12.1405 12.435L8.52592 3.25875C8.12109 2.23104 6.95979 1.72609 5.93208 2.13092L5.75929 2.19898C4.73158 2.60381 4.22663 3.76511 4.63145 4.79282L8.99282 15.8648C9.65066 17.5348 11.5378 18.3554 13.2078 17.6975L13.467 17.5954C15.137 16.9376 15.9576 15.0505 15.2997 13.3804L12.6354 6.61663C12.5342 6.3597 12.6604 6.06938 12.9173 5.96817C13.1743 5.86696 13.4646 5.9932 13.5658 6.25013L16.2301 13.0139C17.0904 15.1978 16.0174 17.6656 13.8335 18.5258L13.5743 18.6279C11.3904 19.4882 8.92266 18.4152 8.0624 16.2313L3.70104 5.15932Z"
|
|
2424
|
+
}), ' '));
|
|
2537
2425
|
};
|
|
2538
|
-
var
|
|
2539
|
-
var ExternalLinkIcon = _ref69 => {
|
|
2426
|
+
var ExternalLinkIcon = _ref67 => {
|
|
2540
2427
|
var {
|
|
2541
2428
|
widthHeight = 24,
|
|
2542
2429
|
color = 'currentColor',
|
|
2543
2430
|
filled = true,
|
|
2544
2431
|
strokeWidth = 1
|
|
2545
|
-
} =
|
|
2546
|
-
props = _objectWithoutPropertiesLoose(
|
|
2432
|
+
} = _ref67,
|
|
2433
|
+
props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
|
|
2547
2434
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2548
2435
|
widthHeight: widthHeight,
|
|
2549
2436
|
color: color
|
|
@@ -2555,14 +2442,14 @@
|
|
|
2555
2442
|
d: "M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"
|
|
2556
2443
|
})));
|
|
2557
2444
|
};
|
|
2558
|
-
var PlusIcon =
|
|
2445
|
+
var PlusIcon = _ref68 => {
|
|
2559
2446
|
var {
|
|
2560
2447
|
widthHeight = 24,
|
|
2561
2448
|
color = 'currentColor',
|
|
2562
2449
|
filled = false,
|
|
2563
2450
|
strokeWidth = 1
|
|
2564
|
-
} =
|
|
2565
|
-
props = _objectWithoutPropertiesLoose(
|
|
2451
|
+
} = _ref68,
|
|
2452
|
+
props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
|
|
2566
2453
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2567
2454
|
widthHeight: widthHeight,
|
|
2568
2455
|
color: color
|
|
@@ -2584,14 +2471,14 @@
|
|
|
2584
2471
|
y2: "12"
|
|
2585
2472
|
})));
|
|
2586
2473
|
};
|
|
2587
|
-
var TickIcon =
|
|
2474
|
+
var TickIcon = _ref69 => {
|
|
2588
2475
|
var {
|
|
2589
2476
|
widthHeight = 24,
|
|
2590
2477
|
color = 'currentColor',
|
|
2591
2478
|
filled = false,
|
|
2592
2479
|
strokeWidth = 1
|
|
2593
|
-
} =
|
|
2594
|
-
props = _objectWithoutPropertiesLoose(
|
|
2480
|
+
} = _ref69,
|
|
2481
|
+
props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
|
|
2595
2482
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2596
2483
|
widthHeight: widthHeight,
|
|
2597
2484
|
color: color
|
|
@@ -2605,14 +2492,14 @@
|
|
|
2605
2492
|
strokeLinejoin: "round"
|
|
2606
2493
|
})));
|
|
2607
2494
|
};
|
|
2608
|
-
var BoldArrowIcon =
|
|
2495
|
+
var BoldArrowIcon = _ref70 => {
|
|
2609
2496
|
var {
|
|
2610
2497
|
widthHeight = 24,
|
|
2611
2498
|
color = 'currentColor',
|
|
2612
2499
|
filled = true,
|
|
2613
2500
|
strokeWidth = 1
|
|
2614
|
-
} =
|
|
2615
|
-
props = _objectWithoutPropertiesLoose(
|
|
2501
|
+
} = _ref70,
|
|
2502
|
+
props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
|
|
2616
2503
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2617
2504
|
widthHeight: widthHeight,
|
|
2618
2505
|
color: color
|
|
@@ -2624,14 +2511,14 @@
|
|
|
2624
2511
|
d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
|
|
2625
2512
|
})));
|
|
2626
2513
|
};
|
|
2627
|
-
var ArrowIcon =
|
|
2514
|
+
var ArrowIcon = _ref71 => {
|
|
2628
2515
|
var {
|
|
2629
2516
|
widthHeight = 24,
|
|
2630
2517
|
color = 'currentColor',
|
|
2631
2518
|
filled = false,
|
|
2632
2519
|
strokeWidth = 1
|
|
2633
|
-
} =
|
|
2634
|
-
props = _objectWithoutPropertiesLoose(
|
|
2520
|
+
} = _ref71,
|
|
2521
|
+
props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
|
|
2635
2522
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2636
2523
|
widthHeight: widthHeight,
|
|
2637
2524
|
color: color
|
|
@@ -2649,14 +2536,14 @@
|
|
|
2649
2536
|
points: "6 12 12 6 18 12"
|
|
2650
2537
|
})));
|
|
2651
2538
|
};
|
|
2652
|
-
var SpinnerIcon =
|
|
2539
|
+
var SpinnerIcon = _ref72 => {
|
|
2653
2540
|
var {
|
|
2654
2541
|
widthHeight = 24,
|
|
2655
2542
|
color = 'currentColor',
|
|
2656
2543
|
filled = false,
|
|
2657
2544
|
strokeWidth = 1
|
|
2658
|
-
} =
|
|
2659
|
-
props = _objectWithoutPropertiesLoose(
|
|
2545
|
+
} = _ref72,
|
|
2546
|
+
props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
|
|
2660
2547
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2661
2548
|
widthHeight: widthHeight,
|
|
2662
2549
|
color: color
|
|
@@ -2674,14 +2561,14 @@
|
|
|
2674
2561
|
strokeOpacity: "1"
|
|
2675
2562
|
})));
|
|
2676
2563
|
};
|
|
2677
|
-
var CalendarIcon =
|
|
2564
|
+
var CalendarIcon = _ref73 => {
|
|
2678
2565
|
var {
|
|
2679
2566
|
widthHeight = 24,
|
|
2680
2567
|
color = 'currentColor',
|
|
2681
2568
|
strokeWidth = 1,
|
|
2682
2569
|
filled = false
|
|
2683
|
-
} =
|
|
2684
|
-
props = _objectWithoutPropertiesLoose(
|
|
2570
|
+
} = _ref73,
|
|
2571
|
+
props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
|
|
2685
2572
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2686
2573
|
widthHeight: widthHeight,
|
|
2687
2574
|
color: color
|
|
@@ -2716,14 +2603,14 @@
|
|
|
2716
2603
|
y2: "10"
|
|
2717
2604
|
})));
|
|
2718
2605
|
};
|
|
2719
|
-
var SliderIcon =
|
|
2606
|
+
var SliderIcon = _ref74 => {
|
|
2720
2607
|
var {
|
|
2721
2608
|
widthHeight = 24,
|
|
2722
2609
|
color = 'currentColor',
|
|
2723
2610
|
strokeWidth = 1,
|
|
2724
2611
|
filled = false
|
|
2725
|
-
} =
|
|
2726
|
-
props = _objectWithoutPropertiesLoose(
|
|
2612
|
+
} = _ref74,
|
|
2613
|
+
props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
|
|
2727
2614
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2728
2615
|
widthHeight: widthHeight,
|
|
2729
2616
|
color: color
|
|
@@ -2751,16 +2638,6 @@
|
|
|
2751
2638
|
y1: "12",
|
|
2752
2639
|
x2: "21",
|
|
2753
2640
|
y2: "12"
|
|
2754
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
2755
|
-
x1: "3",
|
|
2756
|
-
y1: "20",
|
|
2757
|
-
x2: "8",
|
|
2758
|
-
y2: "20"
|
|
2759
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
2760
|
-
x1: "12",
|
|
2761
|
-
y1: "20",
|
|
2762
|
-
x2: "21",
|
|
2763
|
-
y2: "20"
|
|
2764
2641
|
}), /*#__PURE__*/React__default.createElement("line", {
|
|
2765
2642
|
x1: "10",
|
|
2766
2643
|
y1: "1",
|
|
@@ -2771,21 +2648,16 @@
|
|
|
2771
2648
|
y1: "9",
|
|
2772
2649
|
x2: "16",
|
|
2773
2650
|
y2: "15"
|
|
2774
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
2775
|
-
x1: "8",
|
|
2776
|
-
y1: "17",
|
|
2777
|
-
x2: "8",
|
|
2778
|
-
y2: "23"
|
|
2779
2651
|
})));
|
|
2780
2652
|
};
|
|
2781
|
-
var CropIcon =
|
|
2653
|
+
var CropIcon = _ref75 => {
|
|
2782
2654
|
var {
|
|
2783
2655
|
widthHeight = 24,
|
|
2784
2656
|
color = 'currentColor',
|
|
2785
2657
|
strokeWidth = 1,
|
|
2786
2658
|
filled = false
|
|
2787
|
-
} =
|
|
2788
|
-
props = _objectWithoutPropertiesLoose(
|
|
2659
|
+
} = _ref75,
|
|
2660
|
+
props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
|
|
2789
2661
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2790
2662
|
widthHeight: widthHeight,
|
|
2791
2663
|
color: color
|
|
@@ -2799,14 +2671,14 @@
|
|
|
2799
2671
|
d: "M18 22V8a2 2 0 0 0-2-2H2"
|
|
2800
2672
|
})));
|
|
2801
2673
|
};
|
|
2802
|
-
var ZoomInIcon =
|
|
2674
|
+
var ZoomInIcon = _ref76 => {
|
|
2803
2675
|
var {
|
|
2804
2676
|
widthHeight = 24,
|
|
2805
2677
|
color = 'currentColor',
|
|
2806
2678
|
strokeWidth = 1,
|
|
2807
2679
|
filled = false
|
|
2808
|
-
} =
|
|
2809
|
-
props = _objectWithoutPropertiesLoose(
|
|
2680
|
+
} = _ref76,
|
|
2681
|
+
props = _objectWithoutPropertiesLoose(_ref76, _excluded76);
|
|
2810
2682
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2811
2683
|
widthHeight: widthHeight,
|
|
2812
2684
|
color: color
|
|
@@ -2835,14 +2707,14 @@
|
|
|
2835
2707
|
y2: "11"
|
|
2836
2708
|
})));
|
|
2837
2709
|
};
|
|
2838
|
-
var ZoomOutIcon =
|
|
2710
|
+
var ZoomOutIcon = _ref77 => {
|
|
2839
2711
|
var {
|
|
2840
2712
|
widthHeight = 24,
|
|
2841
2713
|
color = 'currentColor',
|
|
2842
2714
|
strokeWidth = 1,
|
|
2843
2715
|
filled = false
|
|
2844
|
-
} =
|
|
2845
|
-
props = _objectWithoutPropertiesLoose(
|
|
2716
|
+
} = _ref77,
|
|
2717
|
+
props = _objectWithoutPropertiesLoose(_ref77, _excluded77);
|
|
2846
2718
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2847
2719
|
widthHeight: widthHeight,
|
|
2848
2720
|
color: color
|
|
@@ -2866,14 +2738,14 @@
|
|
|
2866
2738
|
y2: "11"
|
|
2867
2739
|
})));
|
|
2868
2740
|
};
|
|
2869
|
-
var TextIcon =
|
|
2741
|
+
var TextIcon = _ref78 => {
|
|
2870
2742
|
var {
|
|
2871
2743
|
widthHeight = 24,
|
|
2872
2744
|
color = 'currentColor',
|
|
2873
2745
|
strokeWidth = 1,
|
|
2874
2746
|
filled = false
|
|
2875
|
-
} =
|
|
2876
|
-
props = _objectWithoutPropertiesLoose(
|
|
2747
|
+
} = _ref78,
|
|
2748
|
+
props = _objectWithoutPropertiesLoose(_ref78, _excluded78);
|
|
2877
2749
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2878
2750
|
widthHeight: widthHeight,
|
|
2879
2751
|
color: color
|
|
@@ -2898,14 +2770,14 @@
|
|
|
2898
2770
|
y2: "18"
|
|
2899
2771
|
})));
|
|
2900
2772
|
};
|
|
2901
|
-
var ShapeIcon =
|
|
2773
|
+
var ShapeIcon = _ref79 => {
|
|
2902
2774
|
var {
|
|
2903
2775
|
widthHeight = 24,
|
|
2904
2776
|
color = 'currentColor',
|
|
2905
2777
|
strokeWidth = 1,
|
|
2906
2778
|
filled = false
|
|
2907
|
-
} =
|
|
2908
|
-
props = _objectWithoutPropertiesLoose(
|
|
2779
|
+
} = _ref79,
|
|
2780
|
+
props = _objectWithoutPropertiesLoose(_ref79, _excluded79);
|
|
2909
2781
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2910
2782
|
widthHeight: widthHeight,
|
|
2911
2783
|
color: color
|
|
@@ -2926,14 +2798,14 @@
|
|
|
2926
2798
|
points: "16,4 19,8 13,8"
|
|
2927
2799
|
})));
|
|
2928
2800
|
};
|
|
2929
|
-
var RotateIcon =
|
|
2801
|
+
var RotateIcon = _ref80 => {
|
|
2930
2802
|
var {
|
|
2931
2803
|
widthHeight = 24,
|
|
2932
2804
|
color = 'currentColor',
|
|
2933
2805
|
strokeWidth = 1,
|
|
2934
2806
|
filled = false
|
|
2935
|
-
} =
|
|
2936
|
-
props = _objectWithoutPropertiesLoose(
|
|
2807
|
+
} = _ref80,
|
|
2808
|
+
props = _objectWithoutPropertiesLoose(_ref80, _excluded80);
|
|
2937
2809
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2938
2810
|
widthHeight: widthHeight,
|
|
2939
2811
|
color: color
|
|
@@ -2947,14 +2819,14 @@
|
|
|
2947
2819
|
d: "M3.51 15a9 9 0 1 0 2.13-9.36L1 10"
|
|
2948
2820
|
})));
|
|
2949
2821
|
};
|
|
2950
|
-
var DocumentIcon =
|
|
2822
|
+
var DocumentIcon = _ref81 => {
|
|
2951
2823
|
var {
|
|
2952
2824
|
widthHeight = 24,
|
|
2953
2825
|
color = 'currentColor',
|
|
2954
2826
|
strokeWidth = 1,
|
|
2955
2827
|
filled = false
|
|
2956
|
-
} =
|
|
2957
|
-
props = _objectWithoutPropertiesLoose(
|
|
2828
|
+
} = _ref81,
|
|
2829
|
+
props = _objectWithoutPropertiesLoose(_ref81, _excluded81);
|
|
2958
2830
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2959
2831
|
widthHeight: widthHeight,
|
|
2960
2832
|
color: color
|
|
@@ -2980,14 +2852,14 @@
|
|
|
2980
2852
|
points: "10 9 9 9 8 9"
|
|
2981
2853
|
})));
|
|
2982
2854
|
};
|
|
2983
|
-
var ChartIcon =
|
|
2855
|
+
var ChartIcon = _ref82 => {
|
|
2984
2856
|
var {
|
|
2985
2857
|
widthHeight = 24,
|
|
2986
2858
|
color = 'currentColor',
|
|
2987
2859
|
strokeWidth = 1,
|
|
2988
2860
|
filled = false
|
|
2989
|
-
} =
|
|
2990
|
-
props = _objectWithoutPropertiesLoose(
|
|
2861
|
+
} = _ref82,
|
|
2862
|
+
props = _objectWithoutPropertiesLoose(_ref82, _excluded82);
|
|
2991
2863
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2992
2864
|
widthHeight: widthHeight,
|
|
2993
2865
|
color: color
|
|
@@ -3031,14 +2903,14 @@
|
|
|
3031
2903
|
y2: "17"
|
|
3032
2904
|
})));
|
|
3033
2905
|
};
|
|
3034
|
-
var GiftIcon =
|
|
2906
|
+
var GiftIcon = _ref83 => {
|
|
3035
2907
|
var {
|
|
3036
2908
|
widthHeight = 24,
|
|
3037
2909
|
color = 'currentColor',
|
|
3038
2910
|
strokeWidth = 1,
|
|
3039
2911
|
filled = false
|
|
3040
|
-
} =
|
|
3041
|
-
props = _objectWithoutPropertiesLoose(
|
|
2912
|
+
} = _ref83,
|
|
2913
|
+
props = _objectWithoutPropertiesLoose(_ref83, _excluded83);
|
|
3042
2914
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
3043
2915
|
widthHeight: widthHeight,
|
|
3044
2916
|
color: color
|
|
@@ -3064,14 +2936,14 @@
|
|
|
3064
2936
|
d: "M12 8c.5-2.5 4-3 5-1.5S15 10 12 8z"
|
|
3065
2937
|
})));
|
|
3066
2938
|
};
|
|
3067
|
-
var ShieldIcon =
|
|
2939
|
+
var ShieldIcon = _ref84 => {
|
|
3068
2940
|
var {
|
|
3069
2941
|
widthHeight = 24,
|
|
3070
2942
|
color = 'currentColor',
|
|
3071
2943
|
strokeWidth = 1,
|
|
3072
2944
|
filled = true
|
|
3073
|
-
} =
|
|
3074
|
-
props = _objectWithoutPropertiesLoose(
|
|
2945
|
+
} = _ref84,
|
|
2946
|
+
props = _objectWithoutPropertiesLoose(_ref84, _excluded84);
|
|
3075
2947
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
3076
2948
|
widthHeight: widthHeight,
|
|
3077
2949
|
color: color
|
|
@@ -3084,14 +2956,14 @@
|
|
|
3084
2956
|
})));
|
|
3085
2957
|
};
|
|
3086
2958
|
var CheckIcon = TickIcon;
|
|
3087
|
-
var LogoutIcon =
|
|
2959
|
+
var LogoutIcon = _ref85 => {
|
|
3088
2960
|
var {
|
|
3089
2961
|
widthHeight = 24,
|
|
3090
2962
|
color = 'currentColor',
|
|
3091
2963
|
strokeWidth = 1,
|
|
3092
2964
|
filled = false
|
|
3093
|
-
} =
|
|
3094
|
-
props = _objectWithoutPropertiesLoose(
|
|
2965
|
+
} = _ref85,
|
|
2966
|
+
props = _objectWithoutPropertiesLoose(_ref85, _excluded85);
|
|
3095
2967
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
3096
2968
|
widthHeight: widthHeight,
|
|
3097
2969
|
color: color
|
|
@@ -3107,14 +2979,14 @@
|
|
|
3107
2979
|
d: "M13 5v-2a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7a1 1 0 0 0 1-1v-2"
|
|
3108
2980
|
})));
|
|
3109
2981
|
};
|
|
3110
|
-
var PowerOffIcon =
|
|
2982
|
+
var PowerOffIcon = _ref86 => {
|
|
3111
2983
|
var {
|
|
3112
2984
|
widthHeight = 24,
|
|
3113
2985
|
color = 'currentColor',
|
|
3114
2986
|
strokeWidth = 1.5,
|
|
3115
2987
|
filled = false
|
|
3116
|
-
} =
|
|
3117
|
-
props = _objectWithoutPropertiesLoose(
|
|
2988
|
+
} = _ref86,
|
|
2989
|
+
props = _objectWithoutPropertiesLoose(_ref86, _excluded86);
|
|
3118
2990
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
3119
2991
|
widthHeight: widthHeight,
|
|
3120
2992
|
color: color
|
|
@@ -3173,7 +3045,6 @@
|
|
|
3173
3045
|
RefreshIcon: RefreshIcon,
|
|
3174
3046
|
PrintIcon: PrintIcon,
|
|
3175
3047
|
MagicWandIcon: MagicWandIcon,
|
|
3176
|
-
SliderVerticalIcon: SliderVerticalIcon,
|
|
3177
3048
|
PanelIcon: PanelIcon,
|
|
3178
3049
|
FilterIcon: FilterIcon,
|
|
3179
3050
|
HomeIcon: HomeIcon,
|
|
@@ -3199,10 +3070,9 @@
|
|
|
3199
3070
|
SendIcon: SendIcon,
|
|
3200
3071
|
LoadingSpinnerIcon: LoadingSpinnerIcon,
|
|
3201
3072
|
DragHandleLinesIcon: DragHandleLinesIcon,
|
|
3202
|
-
ChevronDownIcon: ChevronDownIcon,
|
|
3203
|
-
ChevronRightIcon: ChevronRightIcon,
|
|
3204
3073
|
CloseEyeIcon: CloseEyeIcon,
|
|
3205
3074
|
TrashIcon: TrashIcon,
|
|
3075
|
+
AttachmentIcon: AttachmentIcon,
|
|
3206
3076
|
ExternalLinkIcon: ExternalLinkIcon,
|
|
3207
3077
|
PlusIcon: PlusIcon,
|
|
3208
3078
|
TickIcon: TickIcon,
|
|
@@ -6630,7 +6500,8 @@
|
|
|
6630
6500
|
flexGrow: 1
|
|
6631
6501
|
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
6632
6502
|
marginLeft: 8
|
|
6633
|
-
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement(
|
|
6503
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
6504
|
+
orientation: "right",
|
|
6634
6505
|
widthHeight: 16,
|
|
6635
6506
|
color: "currentColor",
|
|
6636
6507
|
filled: true
|
|
@@ -12499,8 +12370,10 @@
|
|
|
12499
12370
|
maxSize = 100 * 1024 * 1024,
|
|
12500
12371
|
// 100MB default
|
|
12501
12372
|
onFileSelect,
|
|
12373
|
+
onMultipleFileSelect,
|
|
12502
12374
|
validateFile,
|
|
12503
12375
|
thumbnail,
|
|
12376
|
+
multiple = false,
|
|
12504
12377
|
onError = error => {
|
|
12505
12378
|
showMessage('error', 'Error', error);
|
|
12506
12379
|
}
|
|
@@ -12508,40 +12381,70 @@
|
|
|
12508
12381
|
var fileInputRef = React.useRef(null);
|
|
12509
12382
|
var videoRef = React.useRef(null);
|
|
12510
12383
|
var [selectedFile, setSelectedFile] = React.useState(null);
|
|
12384
|
+
var [selectedFiles, setSelectedFiles] = React.useState([]);
|
|
12511
12385
|
var [errorMessage, setErrorMessage] = React.useState(null);
|
|
12512
12386
|
var [previewUrl, setPreviewUrl] = React.useState(null);
|
|
12513
12387
|
var [thumbnailUrl, setThumbnailUrl] = React.useState(thumbnail || null);
|
|
12514
12388
|
var handleFileChange = React.useCallback(event => {
|
|
12515
|
-
var
|
|
12516
|
-
var file = (_event$target$files = event.target.files) == null ? void 0 : _event$target$files[0];
|
|
12389
|
+
var files = event.target.files;
|
|
12517
12390
|
setErrorMessage(null);
|
|
12518
|
-
if (!
|
|
12391
|
+
if (!files || files.length === 0) {
|
|
12519
12392
|
onError('No file selected');
|
|
12520
12393
|
setErrorMessage('No file selected');
|
|
12521
12394
|
return;
|
|
12522
12395
|
}
|
|
12523
|
-
if (
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12396
|
+
if (multiple) {
|
|
12397
|
+
// Handle multiple files
|
|
12398
|
+
var fileArray = Array.from(files);
|
|
12399
|
+
var validFiles = [];
|
|
12400
|
+
for (var file of fileArray) {
|
|
12401
|
+
if (file.size > maxSize) {
|
|
12402
|
+
onError("File " + file.name + " exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
12403
|
+
setErrorMessage("File " + file.name + " exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
12404
|
+
continue;
|
|
12405
|
+
}
|
|
12406
|
+
if (validateFile) {
|
|
12407
|
+
var validationError = validateFile(file);
|
|
12408
|
+
if (validationError) {
|
|
12409
|
+
onError(file.name + ": " + validationError);
|
|
12410
|
+
setErrorMessage(file.name + ": " + validationError);
|
|
12411
|
+
continue;
|
|
12412
|
+
}
|
|
12413
|
+
}
|
|
12414
|
+
validFiles.push(file);
|
|
12415
|
+
}
|
|
12416
|
+
if (validFiles.length > 0) {
|
|
12417
|
+
setSelectedFiles(validFiles);
|
|
12418
|
+
if (onMultipleFileSelect) {
|
|
12419
|
+
onMultipleFileSelect(validFiles);
|
|
12420
|
+
}
|
|
12421
|
+
}
|
|
12422
|
+
} else {
|
|
12423
|
+
// Handle single file (existing logic)
|
|
12424
|
+
var _file = files[0];
|
|
12425
|
+
if (_file.size > maxSize) {
|
|
12426
|
+
onError("File exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
12427
|
+
setErrorMessage("File exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
12533
12428
|
return;
|
|
12534
12429
|
}
|
|
12430
|
+
if (validateFile) {
|
|
12431
|
+
var _validationError = validateFile(_file);
|
|
12432
|
+
if (_validationError) {
|
|
12433
|
+
onError(_validationError);
|
|
12434
|
+
setErrorMessage(_validationError);
|
|
12435
|
+
return;
|
|
12436
|
+
}
|
|
12437
|
+
}
|
|
12438
|
+
setPreviewUrl(URL.createObjectURL(_file));
|
|
12439
|
+
if (_file.type.startsWith('video/')) {
|
|
12440
|
+
generateThumbnail(_file, setThumbnailUrl);
|
|
12441
|
+
}
|
|
12442
|
+
if (onFileSelect) {
|
|
12443
|
+
setSelectedFile(_file);
|
|
12444
|
+
onFileSelect(_file);
|
|
12445
|
+
}
|
|
12535
12446
|
}
|
|
12536
|
-
|
|
12537
|
-
if (file.type.startsWith('video/')) {
|
|
12538
|
-
generateThumbnail(file, setThumbnailUrl);
|
|
12539
|
-
}
|
|
12540
|
-
if (onFileSelect) {
|
|
12541
|
-
setSelectedFile(file);
|
|
12542
|
-
onFileSelect(file);
|
|
12543
|
-
}
|
|
12544
|
-
}, [maxSize, onFileSelect, validateFile]);
|
|
12447
|
+
}, [maxSize, onFileSelect, onMultipleFileSelect, validateFile, multiple]);
|
|
12545
12448
|
var handleClick = () => {
|
|
12546
12449
|
var _fileInputRef$current;
|
|
12547
12450
|
return (_fileInputRef$current = fileInputRef.current) == null ? void 0 : _fileInputRef$current.click();
|
|
@@ -12559,6 +12462,7 @@
|
|
|
12559
12462
|
fileInputRef,
|
|
12560
12463
|
videoRef,
|
|
12561
12464
|
selectedFile,
|
|
12465
|
+
selectedFiles,
|
|
12562
12466
|
handleFileChange,
|
|
12563
12467
|
handleClick
|
|
12564
12468
|
};
|
|
@@ -12577,8 +12481,10 @@
|
|
|
12577
12481
|
fileInputRef,
|
|
12578
12482
|
videoRef,
|
|
12579
12483
|
selectedFile,
|
|
12484
|
+
selectedFiles,
|
|
12580
12485
|
handleFileChange,
|
|
12581
12486
|
handleClick,
|
|
12487
|
+
multiple = false,
|
|
12582
12488
|
containerProps,
|
|
12583
12489
|
errorMessageProps,
|
|
12584
12490
|
progressProps,
|
|
@@ -12737,13 +12643,14 @@
|
|
|
12737
12643
|
ref: fileInputRef,
|
|
12738
12644
|
onChange: handleFileChange,
|
|
12739
12645
|
accept: accept,
|
|
12646
|
+
multiple: multiple,
|
|
12740
12647
|
style: {
|
|
12741
12648
|
display: 'none'
|
|
12742
12649
|
}
|
|
12743
12650
|
}, views == null ? void 0 : views.view)));
|
|
12744
12651
|
};
|
|
12745
12652
|
|
|
12746
|
-
var _excluded$H = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
|
|
12653
|
+
var _excluded$H = ["accept", "icon", "text", "maxSize", "onFileSelect", "onMultipleFileSelect", "validateFile", "isLoading", "progress", "fileType", "multiple"];
|
|
12747
12654
|
var Uploader = _ref => {
|
|
12748
12655
|
var {
|
|
12749
12656
|
accept = '*/*',
|
|
@@ -12751,10 +12658,12 @@
|
|
|
12751
12658
|
text,
|
|
12752
12659
|
maxSize,
|
|
12753
12660
|
onFileSelect,
|
|
12661
|
+
onMultipleFileSelect,
|
|
12754
12662
|
validateFile,
|
|
12755
12663
|
isLoading = false,
|
|
12756
12664
|
progress = 0,
|
|
12757
|
-
fileType
|
|
12665
|
+
fileType,
|
|
12666
|
+
multiple = false
|
|
12758
12667
|
} = _ref,
|
|
12759
12668
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
12760
12669
|
var {
|
|
@@ -12764,13 +12673,16 @@
|
|
|
12764
12673
|
videoRef,
|
|
12765
12674
|
fileInputRef,
|
|
12766
12675
|
selectedFile,
|
|
12676
|
+
selectedFiles,
|
|
12767
12677
|
handleFileChange,
|
|
12768
12678
|
handleClick
|
|
12769
12679
|
} = useUpload({
|
|
12770
12680
|
accept,
|
|
12771
12681
|
maxSize,
|
|
12772
12682
|
onFileSelect,
|
|
12773
|
-
|
|
12683
|
+
onMultipleFileSelect,
|
|
12684
|
+
validateFile,
|
|
12685
|
+
multiple
|
|
12774
12686
|
});
|
|
12775
12687
|
// Determine file type based on the selected file's MIME type if not explicitly provided
|
|
12776
12688
|
var determineFileType = () => {
|
|
@@ -12798,11 +12710,13 @@
|
|
|
12798
12710
|
errorMessage: errorMessage,
|
|
12799
12711
|
handleFileChange: handleFileChange,
|
|
12800
12712
|
selectedFile: selectedFile,
|
|
12713
|
+
selectedFiles: selectedFiles,
|
|
12801
12714
|
videoRef: videoRef,
|
|
12802
12715
|
fileInputRef: fileInputRef,
|
|
12803
12716
|
previewUrl: previewUrl,
|
|
12804
12717
|
thumbnailUrl: thumbnailUrl,
|
|
12805
|
-
fileType: detectedFileType
|
|
12718
|
+
fileType: detectedFileType,
|
|
12719
|
+
multiple: multiple
|
|
12806
12720
|
}, props));
|
|
12807
12721
|
};
|
|
12808
12722
|
|
|
@@ -13449,7 +13363,8 @@
|
|
|
13449
13363
|
}, children), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
13450
13364
|
transition: "transform 0.2s ease",
|
|
13451
13365
|
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
13452
|
-
}, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement(
|
|
13366
|
+
}, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
13367
|
+
orientation: "down",
|
|
13453
13368
|
widthHeight: 16,
|
|
13454
13369
|
color: "currentColor",
|
|
13455
13370
|
filled: true
|
|
@@ -15036,7 +14951,8 @@
|
|
|
15036
14951
|
flexGrow: 1
|
|
15037
14952
|
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
15038
14953
|
marginLeft: 8
|
|
15039
|
-
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement(
|
|
14954
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
14955
|
+
orientation: "right",
|
|
15040
14956
|
widthHeight: 16,
|
|
15041
14957
|
color: "currentColor",
|
|
15042
14958
|
filled: true
|
|
@@ -21096,6 +21012,7 @@
|
|
|
21096
21012
|
var [pendingFiles, setPendingFiles] = React.useState([]);
|
|
21097
21013
|
var [isUploading, setIsUploading] = React.useState(false);
|
|
21098
21014
|
var [isDraggingOver, setIsDraggingOver] = React.useState(false);
|
|
21015
|
+
// Reference images are now tracked within uploadedFiles using isReferenceImage flag
|
|
21099
21016
|
// State for model selection
|
|
21100
21017
|
var [selectedModel, setSelectedModel] = React.useState('gpt-4');
|
|
21101
21018
|
var [modelOptions] = React.useState([{
|
|
@@ -21153,9 +21070,17 @@
|
|
|
21153
21070
|
return;
|
|
21154
21071
|
}
|
|
21155
21072
|
var message = value;
|
|
21073
|
+
// Separate reference images from regular files
|
|
21074
|
+
var referenceFiles = uploadedFiles.filter(file => file.isReferenceImage);
|
|
21075
|
+
var regularFiles = uploadedFiles.filter(file => !file.isReferenceImage);
|
|
21076
|
+
// Add reference image information to the message if reference images are uploaded
|
|
21077
|
+
if (referenceFiles.length > 0) {
|
|
21078
|
+
var referenceImageInfo = referenceFiles.map(image => "[Reference Image: " + image.path + "]").join('\n');
|
|
21079
|
+
message = message ? referenceImageInfo + "\n\n" + message : referenceImageInfo;
|
|
21080
|
+
}
|
|
21156
21081
|
// Add file information to the message if files are uploaded
|
|
21157
|
-
if (
|
|
21158
|
-
var fileInfo =
|
|
21082
|
+
if (regularFiles.length > 0) {
|
|
21083
|
+
var fileInfo = regularFiles.map(file => "[Uploaded File: " + file.path + "]").join('\n');
|
|
21159
21084
|
message = message ? message + "\n\n" + fileInfo : fileInfo;
|
|
21160
21085
|
}
|
|
21161
21086
|
// Determine model and thinking mode
|
|
@@ -21174,7 +21099,7 @@
|
|
|
21174
21099
|
if (!isControlled) {
|
|
21175
21100
|
setUncontrolledValue('');
|
|
21176
21101
|
}
|
|
21177
|
-
// Clear uploaded files
|
|
21102
|
+
// Clear uploaded files (including reference images)
|
|
21178
21103
|
setUploadedFiles([]);
|
|
21179
21104
|
};
|
|
21180
21105
|
// Handle removing an uploaded file
|
|
@@ -21232,6 +21157,52 @@
|
|
|
21232
21157
|
editableRef.current.focus();
|
|
21233
21158
|
}
|
|
21234
21159
|
};
|
|
21160
|
+
// Handle reference image upload
|
|
21161
|
+
var handleReferenceImageUpload = files => {
|
|
21162
|
+
var imageFiles = files.filter(file => file.type.startsWith('image/'));
|
|
21163
|
+
if (imageFiles.length === 0) {
|
|
21164
|
+
console.error('Only image files are allowed as reference images');
|
|
21165
|
+
return;
|
|
21166
|
+
}
|
|
21167
|
+
// Clear existing reference images first
|
|
21168
|
+
var updatedFiles = uploadedFiles.map(file => Object.assign({}, file, {
|
|
21169
|
+
isReferenceImage: false
|
|
21170
|
+
}));
|
|
21171
|
+
// Create reference image objects (only take the first one)
|
|
21172
|
+
var newReferenceImage = {
|
|
21173
|
+
name: imageFiles[0].name,
|
|
21174
|
+
path: "/workspace/" + imageFiles[0].name,
|
|
21175
|
+
size: imageFiles[0].size,
|
|
21176
|
+
type: imageFiles[0].type,
|
|
21177
|
+
localUrl: URL.createObjectURL(imageFiles[0]),
|
|
21178
|
+
isReferenceImage: true
|
|
21179
|
+
};
|
|
21180
|
+
// Add to pending files
|
|
21181
|
+
setPendingFiles(prevFiles => [...prevFiles, imageFiles[0]]);
|
|
21182
|
+
// Add the reference image to uploaded files
|
|
21183
|
+
setUploadedFiles([...updatedFiles, newReferenceImage]);
|
|
21184
|
+
};
|
|
21185
|
+
// Remove reference image
|
|
21186
|
+
var removeReferenceImage = () => {
|
|
21187
|
+
// Clear reference image flag from all uploaded files
|
|
21188
|
+
var updatedFiles = uploadedFiles.map(file => Object.assign({}, file, {
|
|
21189
|
+
isReferenceImage: false
|
|
21190
|
+
}));
|
|
21191
|
+
setUploadedFiles(updatedFiles);
|
|
21192
|
+
};
|
|
21193
|
+
// Set an uploaded file as reference image
|
|
21194
|
+
var setFileAsReference = fileIndex => {
|
|
21195
|
+
var file = uploadedFiles[fileIndex];
|
|
21196
|
+
if (!file || !file.type.startsWith('image/')) {
|
|
21197
|
+
console.error('Only image files can be set as reference images');
|
|
21198
|
+
return;
|
|
21199
|
+
}
|
|
21200
|
+
// Update the files to mark only the selected one as reference image
|
|
21201
|
+
var updatedFiles = uploadedFiles.map((f, index) => Object.assign({}, f, {
|
|
21202
|
+
isReferenceImage: index === fileIndex
|
|
21203
|
+
}));
|
|
21204
|
+
setUploadedFiles(updatedFiles);
|
|
21205
|
+
};
|
|
21235
21206
|
return {
|
|
21236
21207
|
value,
|
|
21237
21208
|
handleChange,
|
|
@@ -21257,7 +21228,10 @@
|
|
|
21257
21228
|
hideGuideTip,
|
|
21258
21229
|
isReferenceImageModalShown,
|
|
21259
21230
|
toggleReferenceImageModal,
|
|
21260
|
-
handlePromptExampleSelect
|
|
21231
|
+
handlePromptExampleSelect,
|
|
21232
|
+
handleReferenceImageUpload,
|
|
21233
|
+
removeReferenceImage,
|
|
21234
|
+
setFileAsReference
|
|
21261
21235
|
};
|
|
21262
21236
|
};
|
|
21263
21237
|
|
|
@@ -21428,6 +21402,7 @@
|
|
|
21428
21402
|
files,
|
|
21429
21403
|
sandboxId,
|
|
21430
21404
|
onRemove,
|
|
21405
|
+
onSetAsReference,
|
|
21431
21406
|
layout = 'inline',
|
|
21432
21407
|
maxHeight = '120px',
|
|
21433
21408
|
showPreviews = false,
|
|
@@ -21485,7 +21460,7 @@
|
|
|
21485
21460
|
as: "span",
|
|
21486
21461
|
marginLeft: "4px",
|
|
21487
21462
|
color: "theme.primary"
|
|
21488
|
-
}, "(pending)"))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21463
|
+
}, "(pending)"))), onSetAsReference && file.type.startsWith('image/') && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21489
21464
|
as: "button",
|
|
21490
21465
|
type: "button",
|
|
21491
21466
|
width: "16px",
|
|
@@ -21494,35 +21469,28 @@
|
|
|
21494
21469
|
alignItems: "center",
|
|
21495
21470
|
justifyContent: "center",
|
|
21496
21471
|
borderRadius: "50%",
|
|
21497
|
-
backgroundColor:
|
|
21498
|
-
color:
|
|
21472
|
+
backgroundColor: file.isReferenceImage ? 'theme.primary' : 'transparent',
|
|
21473
|
+
color: file.isReferenceImage ? 'color.white' : 'color.gray.500',
|
|
21499
21474
|
cursor: "pointer",
|
|
21500
21475
|
transition: "all 0.2s ease",
|
|
21501
|
-
onClick: () =>
|
|
21476
|
+
onClick: () => onSetAsReference(index),
|
|
21477
|
+
title: file.isReferenceImage ? 'Reference image' : 'Set as reference image',
|
|
21502
21478
|
_hover: {
|
|
21503
|
-
backgroundColor: 'color.
|
|
21504
|
-
color: 'color.
|
|
21479
|
+
backgroundColor: file.isReferenceImage ? 'color.blue.600' : 'color.blue.100',
|
|
21480
|
+
color: file.isReferenceImage ? 'color.white' : 'theme.primary'
|
|
21505
21481
|
}
|
|
21506
|
-
}, views == null ? void 0 : views.
|
|
21507
|
-
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
|
|
21513
|
-
|
|
21514
|
-
|
|
21515
|
-
|
|
21516
|
-
|
|
21517
|
-
|
|
21518
|
-
x2: "6",
|
|
21519
|
-
y2: "18"
|
|
21520
|
-
}), /*#__PURE__*/React__default.createElement("line", {
|
|
21521
|
-
x1: "6",
|
|
21522
|
-
y1: "6",
|
|
21523
|
-
x2: "18",
|
|
21524
|
-
y2: "18"
|
|
21525
|
-
})))))));
|
|
21482
|
+
}, views == null ? void 0 : views.referenceButton), /*#__PURE__*/React__default.createElement(ImageIcon, {
|
|
21483
|
+
widthHeight: 20,
|
|
21484
|
+
color: "currentColor",
|
|
21485
|
+
filled: file.isReferenceImage
|
|
21486
|
+
}))), /*#__PURE__*/React__default.createElement(Button, {
|
|
21487
|
+
variant: "ghost",
|
|
21488
|
+
size: "sm",
|
|
21489
|
+
icon: /*#__PURE__*/React__default.createElement(TrashIcon, {
|
|
21490
|
+
widthHeight: 12
|
|
21491
|
+
}),
|
|
21492
|
+
onClick: () => onRemove(index)
|
|
21493
|
+
})))));
|
|
21526
21494
|
};
|
|
21527
21495
|
|
|
21528
21496
|
var EditableInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -21594,132 +21562,6 @@
|
|
|
21594
21562
|
});
|
|
21595
21563
|
EditableInput.displayName = 'EditableInput';
|
|
21596
21564
|
|
|
21597
|
-
/**
|
|
21598
|
-
* Handle local files without uploading to server
|
|
21599
|
-
*/
|
|
21600
|
-
var handleLocalFiles = (files, setPendingFiles, setUploadedFiles) => {
|
|
21601
|
-
// Filter files that exceed size limit
|
|
21602
|
-
var filteredFiles = files.filter(file => {
|
|
21603
|
-
if (file.size > 50 * 1024 * 1024) {
|
|
21604
|
-
console.error("File size exceeds 50MB limit: " + file.name);
|
|
21605
|
-
return false;
|
|
21606
|
-
}
|
|
21607
|
-
return true;
|
|
21608
|
-
});
|
|
21609
|
-
// Add files to pending files
|
|
21610
|
-
setPendingFiles(prevFiles => [...prevFiles, ...filteredFiles]);
|
|
21611
|
-
// Create uploaded file objects
|
|
21612
|
-
var newUploadedFiles = filteredFiles.map(file => ({
|
|
21613
|
-
name: file.name,
|
|
21614
|
-
path: "/workspace/" + file.name,
|
|
21615
|
-
size: file.size,
|
|
21616
|
-
type: file.type || 'application/octet-stream',
|
|
21617
|
-
localUrl: URL.createObjectURL(file)
|
|
21618
|
-
}));
|
|
21619
|
-
// Add files to uploaded files
|
|
21620
|
-
setUploadedFiles(prev => [...prev, ...newUploadedFiles]);
|
|
21621
|
-
};
|
|
21622
|
-
/**
|
|
21623
|
-
* Handle files based on whether a sandboxId is available
|
|
21624
|
-
*/
|
|
21625
|
-
var handleFiles = /*#__PURE__*/function () {
|
|
21626
|
-
var _ref = /*#__PURE__*/_asyncToGenerator(function* (files, sandboxId, setPendingFiles, setUploadedFiles, setIsUploading) {
|
|
21627
|
-
// If no sandboxId, just handle files locally
|
|
21628
|
-
handleLocalFiles(files, setPendingFiles, setUploadedFiles);
|
|
21629
|
-
});
|
|
21630
|
-
return function handleFiles(_x, _x2, _x3, _x4, _x5) {
|
|
21631
|
-
return _ref.apply(this, arguments);
|
|
21632
|
-
};
|
|
21633
|
-
}();
|
|
21634
|
-
var FileUploadHandler = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
21635
|
-
var {
|
|
21636
|
-
loading,
|
|
21637
|
-
disabled,
|
|
21638
|
-
isAgentRunning,
|
|
21639
|
-
isUploading,
|
|
21640
|
-
sandboxId,
|
|
21641
|
-
setPendingFiles,
|
|
21642
|
-
setUploadedFiles,
|
|
21643
|
-
setIsUploading,
|
|
21644
|
-
views = {}
|
|
21645
|
-
} = _ref2;
|
|
21646
|
-
var {
|
|
21647
|
-
getColor
|
|
21648
|
-
} = appStudio.useTheme();
|
|
21649
|
-
// Clean up object URLs when component unmounts
|
|
21650
|
-
React.useEffect(() => {
|
|
21651
|
-
return () => {
|
|
21652
|
-
setUploadedFiles(prev => {
|
|
21653
|
-
prev.forEach(file => {
|
|
21654
|
-
if (file.localUrl) {
|
|
21655
|
-
URL.revokeObjectURL(file.localUrl);
|
|
21656
|
-
}
|
|
21657
|
-
});
|
|
21658
|
-
return prev;
|
|
21659
|
-
});
|
|
21660
|
-
};
|
|
21661
|
-
}, [setUploadedFiles]);
|
|
21662
|
-
// Handle file upload button click
|
|
21663
|
-
var handleFileUpload = () => {
|
|
21664
|
-
if (ref && 'current' in ref && ref.current) {
|
|
21665
|
-
ref.current.click();
|
|
21666
|
-
}
|
|
21667
|
-
};
|
|
21668
|
-
// Process file upload
|
|
21669
|
-
var processFileUpload = /*#__PURE__*/function () {
|
|
21670
|
-
var _ref3 = _asyncToGenerator(function* (event) {
|
|
21671
|
-
if (!event.target.files || event.target.files.length === 0) return;
|
|
21672
|
-
var files = Array.from(event.target.files);
|
|
21673
|
-
// Handle files
|
|
21674
|
-
handleFiles(files, sandboxId, setPendingFiles, setUploadedFiles, setIsUploading);
|
|
21675
|
-
// Reset the input value
|
|
21676
|
-
event.target.value = '';
|
|
21677
|
-
});
|
|
21678
|
-
return function processFileUpload(_x6) {
|
|
21679
|
-
return _ref3.apply(this, arguments);
|
|
21680
|
-
};
|
|
21681
|
-
}();
|
|
21682
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(appStudio.Button, Object.assign({
|
|
21683
|
-
type: "button",
|
|
21684
|
-
onClick: handleFileUpload,
|
|
21685
|
-
variant: "ghost",
|
|
21686
|
-
height: "36px",
|
|
21687
|
-
padding: "0 12px",
|
|
21688
|
-
borderRadius: "8px",
|
|
21689
|
-
backgroundColor: "transparent",
|
|
21690
|
-
color: "color.gray.500",
|
|
21691
|
-
disabled: loading || disabled && !isAgentRunning || isUploading,
|
|
21692
|
-
_hover: {
|
|
21693
|
-
backgroundColor: 'color.gray.100'
|
|
21694
|
-
}
|
|
21695
|
-
}, views == null ? void 0 : views.button), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
21696
|
-
gap: 4,
|
|
21697
|
-
alignItems: "center"
|
|
21698
|
-
}, isUploading ? (/*#__PURE__*/React__default.createElement(LoadingSpinnerIcon, Object.assign({
|
|
21699
|
-
widthHeight: 16,
|
|
21700
|
-
color: "currentColor",
|
|
21701
|
-
filled: false,
|
|
21702
|
-
style: {
|
|
21703
|
-
animation: 'spin 1s linear infinite'
|
|
21704
|
-
}
|
|
21705
|
-
}, views == null ? void 0 : views.icon))) : (/*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
|
|
21706
|
-
widthHeight: 16,
|
|
21707
|
-
color: "currentColor",
|
|
21708
|
-
filled: false
|
|
21709
|
-
}, views == null ? void 0 : views.icon))), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
21710
|
-
fontSize: "14px"
|
|
21711
|
-
}, views == null ? void 0 : views.text), "Attachments"))), /*#__PURE__*/React__default.createElement("input", {
|
|
21712
|
-
type: "file",
|
|
21713
|
-
ref: ref,
|
|
21714
|
-
style: {
|
|
21715
|
-
display: 'none'
|
|
21716
|
-
},
|
|
21717
|
-
onChange: processFileUpload,
|
|
21718
|
-
multiple: true
|
|
21719
|
-
}));
|
|
21720
|
-
});
|
|
21721
|
-
FileUploadHandler.displayName = 'FileUploadHandler';
|
|
21722
|
-
|
|
21723
21565
|
var PromptExamples = _ref => {
|
|
21724
21566
|
var {
|
|
21725
21567
|
examples,
|
|
@@ -21757,109 +21599,7 @@
|
|
|
21757
21599
|
}, views == null ? void 0 : views.text), example.text)))));
|
|
21758
21600
|
};
|
|
21759
21601
|
|
|
21760
|
-
var
|
|
21761
|
-
var {
|
|
21762
|
-
onClick,
|
|
21763
|
-
views = {}
|
|
21764
|
-
} = _ref;
|
|
21765
|
-
// Using theme context for potential future styling
|
|
21766
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21767
|
-
as: "button",
|
|
21768
|
-
type: "button",
|
|
21769
|
-
display: "flex",
|
|
21770
|
-
alignItems: "center",
|
|
21771
|
-
gap: 4,
|
|
21772
|
-
padding: "6px 10px",
|
|
21773
|
-
border: "1px solid",
|
|
21774
|
-
borderColor: "color.gray.300",
|
|
21775
|
-
borderRadius: "4px",
|
|
21776
|
-
backgroundColor: "transparent",
|
|
21777
|
-
cursor: "pointer",
|
|
21778
|
-
transition: "all 0.2s ease",
|
|
21779
|
-
onClick: onClick,
|
|
21780
|
-
_hover: {
|
|
21781
|
-
backgroundColor: 'color.gray.100'
|
|
21782
|
-
}
|
|
21783
|
-
}, views == null ? void 0 : views.button), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
21784
|
-
fontSize: "14px",
|
|
21785
|
-
color: "color.gray.700"
|
|
21786
|
-
}, views == null ? void 0 : views.text), "Reference image"), /*#__PURE__*/React__default.createElement(ImageIcon, Object.assign({
|
|
21787
|
-
widthHeight: 20,
|
|
21788
|
-
color: "currentColor",
|
|
21789
|
-
filled: false,
|
|
21790
|
-
strokeWidth: 2
|
|
21791
|
-
}, views == null ? void 0 : views.icon)));
|
|
21792
|
-
};
|
|
21793
|
-
|
|
21794
|
-
var ReferenceImageModal = _ref => {
|
|
21795
|
-
var {
|
|
21796
|
-
isOpen,
|
|
21797
|
-
onClose,
|
|
21798
|
-
views = {}
|
|
21799
|
-
} = _ref;
|
|
21800
|
-
// Using theme context for potential future styling
|
|
21801
|
-
if (!isOpen) {
|
|
21802
|
-
return null;
|
|
21803
|
-
}
|
|
21804
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21805
|
-
position: "absolute",
|
|
21806
|
-
top: "0",
|
|
21807
|
-
left: "0",
|
|
21808
|
-
width: "100%",
|
|
21809
|
-
height: isOpen ? '300px' : '0',
|
|
21810
|
-
backgroundColor: "color.white",
|
|
21811
|
-
borderRadius: "8px",
|
|
21812
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
21813
|
-
overflow: "hidden",
|
|
21814
|
-
transition: "height 0.3s ease",
|
|
21815
|
-
zIndex: "10"
|
|
21816
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21817
|
-
padding: "16px",
|
|
21818
|
-
width: "100%",
|
|
21819
|
-
height: "100%"
|
|
21820
|
-
}, views == null ? void 0 : views.content), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
21821
|
-
fontSize: "16px",
|
|
21822
|
-
fontWeight: "600",
|
|
21823
|
-
marginBottom: "16px"
|
|
21824
|
-
}, "Reference Image"), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21825
|
-
as: "button",
|
|
21826
|
-
type: "button",
|
|
21827
|
-
position: "absolute",
|
|
21828
|
-
top: "8px",
|
|
21829
|
-
right: "8px",
|
|
21830
|
-
width: "24px",
|
|
21831
|
-
height: "24px",
|
|
21832
|
-
display: "flex",
|
|
21833
|
-
alignItems: "center",
|
|
21834
|
-
justifyContent: "center",
|
|
21835
|
-
borderRadius: "50%",
|
|
21836
|
-
backgroundColor: "transparent",
|
|
21837
|
-
border: "none",
|
|
21838
|
-
cursor: "pointer",
|
|
21839
|
-
transition: "all 0.2s ease",
|
|
21840
|
-
onClick: onClose,
|
|
21841
|
-
_hover: {
|
|
21842
|
-
backgroundColor: 'color.gray.100'
|
|
21843
|
-
}
|
|
21844
|
-
}, views == null ? void 0 : views.closeButton), /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
21845
|
-
widthHeight: 16,
|
|
21846
|
-
color: "currentColor",
|
|
21847
|
-
filled: false,
|
|
21848
|
-
strokeWidth: 2
|
|
21849
|
-
})), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
21850
|
-
width: "100%",
|
|
21851
|
-
height: "calc(100% - 40px)",
|
|
21852
|
-
backgroundColor: "color.gray.100",
|
|
21853
|
-
borderRadius: "4px",
|
|
21854
|
-
display: "flex",
|
|
21855
|
-
alignItems: "center",
|
|
21856
|
-
justifyContent: "center"
|
|
21857
|
-
}, /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
21858
|
-
color: "color.gray.500"
|
|
21859
|
-
}, "Drop an image here or click to upload"))));
|
|
21860
|
-
};
|
|
21861
|
-
|
|
21862
|
-
var _excluded$18 = ["onSubmit", "placeholder", "loading", "disabled", "isAgentRunning", "onStopAgent", "autoFocus", "sandboxId", "hideAttachments", "promptExamples", "showReferenceImageButton", "errorMessage", "size", "shape", "variant", "views", "value", "handleChange", "handleSubmit", "editableRef", "fileInputRef", "isUploading", "isDraggingOver", "uploadedFiles", "removeUploadedFile", "setPendingFiles", "setUploadedFiles", "setIsUploading", "selectedModel", "handleModelChange", "modelOptions", "subscriptionStatus", "canAccessModel", "isGuideTipShown", "hideGuideTip", "isReferenceImageModalShown", "toggleReferenceImageModal", "handlePromptExampleSelect"];
|
|
21602
|
+
var _excluded$18 = ["onSubmit", "placeholder", "loading", "disabled", "isAgentRunning", "onStopAgent", "loadingText", "autoFocus", "sandboxId", "hideAttachments", "attachmentText", "promptExamples", "showReferenceImageButton", "errorMessage", "size", "shape", "variant", "views", "value", "handleChange", "handleSubmit", "editableRef", "fileInputRef", "isUploading", "isDraggingOver", "uploadedFiles", "removeUploadedFile", "setPendingFiles", "setUploadedFiles", "setIsUploading", "selectedModel", "handleModelChange", "modelOptions", "subscriptionStatus", "canAccessModel", "isGuideTipShown", "hideGuideTip", "isReferenceImageModalShown", "toggleReferenceImageModal", "handlePromptExampleSelect", "handleDragOver", "handleDragLeave", "handleReferenceImageUpload", "removeReferenceImage", "setFileAsReference"];
|
|
21863
21603
|
var ChatInputView = _ref => {
|
|
21864
21604
|
var _value$trim$length;
|
|
21865
21605
|
var {
|
|
@@ -21868,9 +21608,11 @@
|
|
|
21868
21608
|
loading = false,
|
|
21869
21609
|
disabled = false,
|
|
21870
21610
|
isAgentRunning = false,
|
|
21611
|
+
loadingText = 'Agent is working...',
|
|
21871
21612
|
autoFocus = true,
|
|
21872
21613
|
sandboxId,
|
|
21873
21614
|
hideAttachments = false,
|
|
21615
|
+
attachmentText = '',
|
|
21874
21616
|
promptExamples = [],
|
|
21875
21617
|
showReferenceImageButton = false,
|
|
21876
21618
|
errorMessage,
|
|
@@ -21883,17 +21625,18 @@
|
|
|
21883
21625
|
handleChange,
|
|
21884
21626
|
handleSubmit,
|
|
21885
21627
|
editableRef,
|
|
21886
|
-
fileInputRef,
|
|
21887
21628
|
isUploading,
|
|
21888
21629
|
isDraggingOver,
|
|
21889
21630
|
uploadedFiles,
|
|
21890
21631
|
removeUploadedFile,
|
|
21891
21632
|
setPendingFiles,
|
|
21892
21633
|
setUploadedFiles,
|
|
21893
|
-
setIsUploading,
|
|
21894
21634
|
isReferenceImageModalShown,
|
|
21895
|
-
|
|
21896
|
-
|
|
21635
|
+
handlePromptExampleSelect,
|
|
21636
|
+
handleDragOver,
|
|
21637
|
+
handleDragLeave,
|
|
21638
|
+
handleReferenceImageUpload,
|
|
21639
|
+
setFileAsReference
|
|
21897
21640
|
// Other props
|
|
21898
21641
|
} = _ref,
|
|
21899
21642
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
@@ -21903,39 +21646,55 @@
|
|
|
21903
21646
|
var contentStyles = Object.assign({}, DefaultChatInputStyles.content, Sizes$1[size], Variants[variant], views == null ? void 0 : views.content);
|
|
21904
21647
|
// Determine if the submit button should be enabled
|
|
21905
21648
|
var hasText = ((_value$trim$length = value == null ? void 0 : value.trim().length) != null ? _value$trim$length : 0) > 0 || uploadedFiles.length > 0;
|
|
21649
|
+
// Handle multiple file uploads for the Uploader component
|
|
21650
|
+
var handleMultipleFileUpload = files => {
|
|
21651
|
+
// Filter files that exceed size limit (50MB)
|
|
21652
|
+
var filteredFiles = files.filter(file => {
|
|
21653
|
+
if (file.size > 50 * 1024 * 1024) {
|
|
21654
|
+
console.error("File size exceeds 50MB limit: " + file.name);
|
|
21655
|
+
return false;
|
|
21656
|
+
}
|
|
21657
|
+
return true;
|
|
21658
|
+
});
|
|
21659
|
+
if (filteredFiles.length > 0) {
|
|
21660
|
+
// Add files to pending files
|
|
21661
|
+
setPendingFiles(prevFiles => [...prevFiles, ...filteredFiles]);
|
|
21662
|
+
// Create uploaded file objects
|
|
21663
|
+
var newUploadedFiles = filteredFiles.map(file => ({
|
|
21664
|
+
name: file.name,
|
|
21665
|
+
path: "/workspace/" + file.name,
|
|
21666
|
+
size: file.size,
|
|
21667
|
+
type: file.type || 'application/octet-stream',
|
|
21668
|
+
localUrl: URL.createObjectURL(file),
|
|
21669
|
+
isReferenceImage: false
|
|
21670
|
+
}));
|
|
21671
|
+
// Add files to uploaded files
|
|
21672
|
+
setUploadedFiles(prev => [...prev, ...newUploadedFiles]);
|
|
21673
|
+
}
|
|
21674
|
+
};
|
|
21906
21675
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21907
21676
|
display: "flex",
|
|
21908
21677
|
flexDirection: "column",
|
|
21909
21678
|
// Width and maxWidth will come from containerStyles
|
|
21910
21679
|
boxSizing: "border-box"
|
|
21911
21680
|
}, containerStyles, props, {
|
|
21912
|
-
onDragOver:
|
|
21913
|
-
|
|
21914
|
-
e.stopPropagation();
|
|
21915
|
-
if (fileInputRef.current) {
|
|
21916
|
-
props.handleDragOver == null || props.handleDragOver(e);
|
|
21917
|
-
}
|
|
21918
|
-
},
|
|
21919
|
-
onDragLeave: e => {
|
|
21920
|
-
e.preventDefault();
|
|
21921
|
-
e.stopPropagation();
|
|
21922
|
-
props.handleDragLeave == null || props.handleDragLeave(e);
|
|
21923
|
-
},
|
|
21681
|
+
onDragOver: handleDragOver,
|
|
21682
|
+
onDragLeave: handleDragLeave,
|
|
21924
21683
|
onDrop: e => {
|
|
21925
21684
|
e.preventDefault();
|
|
21926
21685
|
e.stopPropagation();
|
|
21927
|
-
|
|
21928
|
-
if (
|
|
21686
|
+
handleDragLeave(e);
|
|
21687
|
+
if (e.dataTransfer.files.length > 0) {
|
|
21929
21688
|
var files = Array.from(e.dataTransfer.files);
|
|
21930
|
-
|
|
21931
|
-
var
|
|
21932
|
-
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21689
|
+
// Separate image files from other files
|
|
21690
|
+
var imageFiles = files.filter(file => file.type.startsWith('image/'));
|
|
21691
|
+
// Handle image files as reference images if reference image modal is open
|
|
21692
|
+
if (isReferenceImageModalShown && imageFiles.length > 0) {
|
|
21693
|
+
handleReferenceImageUpload(imageFiles);
|
|
21694
|
+
} else {
|
|
21695
|
+
// Use the same file handling logic as the Uploader component
|
|
21696
|
+
handleMultipleFileUpload(files);
|
|
21697
|
+
}
|
|
21939
21698
|
}
|
|
21940
21699
|
}
|
|
21941
21700
|
}), promptExamples.length > 0 && (/*#__PURE__*/React__default.createElement(PromptExamples, {
|
|
@@ -21945,24 +21704,36 @@
|
|
|
21945
21704
|
container: views == null ? void 0 : views.promptExamples,
|
|
21946
21705
|
item: views == null ? void 0 : views.promptExampleItem
|
|
21947
21706
|
}
|
|
21948
|
-
})), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
21949
|
-
justifyContent: "
|
|
21950
|
-
alignItems: "center"
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21707
|
+
})), isAgentRunning && (/*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
21708
|
+
justifyContent: "center",
|
|
21709
|
+
alignItems: "center",
|
|
21710
|
+
gap: 8,
|
|
21711
|
+
padding: "8px 0",
|
|
21712
|
+
animate: {
|
|
21713
|
+
from: {
|
|
21714
|
+
opacity: 0,
|
|
21715
|
+
y: -10
|
|
21716
|
+
},
|
|
21717
|
+
to: {
|
|
21718
|
+
opacity: 1,
|
|
21719
|
+
y: 0
|
|
21720
|
+
},
|
|
21721
|
+
duration: '0.3s'
|
|
21955
21722
|
}
|
|
21956
|
-
})
|
|
21723
|
+
}, views == null ? void 0 : views.loadingIndicator), /*#__PURE__*/React__default.createElement(LoadingSpinnerIcon, {
|
|
21724
|
+
widthHeight: 12,
|
|
21725
|
+
color: "currentColor",
|
|
21726
|
+
filled: false,
|
|
21727
|
+
style: {
|
|
21728
|
+
animation: 'spin 1s linear infinite'
|
|
21729
|
+
}
|
|
21730
|
+
}), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
21731
|
+
fontSize: "12px",
|
|
21732
|
+
color: "color.gray.500"
|
|
21733
|
+
}, loadingText))), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
21957
21734
|
position: "relative",
|
|
21958
21735
|
width: "100%"
|
|
21959
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21960
|
-
isOpen: isReferenceImageModalShown,
|
|
21961
|
-
onClose: toggleReferenceImageModal,
|
|
21962
|
-
views: {
|
|
21963
|
-
container: views == null ? void 0 : views.referenceImageModal
|
|
21964
|
-
}
|
|
21965
|
-
}), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21736
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
21966
21737
|
as: "form",
|
|
21967
21738
|
onSubmit: handleSubmit,
|
|
21968
21739
|
overflowY: "auto",
|
|
@@ -21976,12 +21747,14 @@
|
|
|
21976
21747
|
files: uploadedFiles,
|
|
21977
21748
|
sandboxId: sandboxId,
|
|
21978
21749
|
onRemove: removeUploadedFile,
|
|
21750
|
+
onSetAsReference: setFileAsReference,
|
|
21979
21751
|
views: {
|
|
21980
21752
|
container: views == null ? void 0 : views.attachments,
|
|
21981
21753
|
item: views == null ? void 0 : views.attachmentItem,
|
|
21982
21754
|
name: views == null ? void 0 : views.attachmentName,
|
|
21983
21755
|
size: views == null ? void 0 : views.attachmentSize,
|
|
21984
|
-
removeButton: views == null ? void 0 : views.attachmentRemove
|
|
21756
|
+
removeButton: views == null ? void 0 : views.attachmentRemove,
|
|
21757
|
+
referenceButton: views == null ? void 0 : views.referenceButton
|
|
21985
21758
|
}
|
|
21986
21759
|
}), /*#__PURE__*/React__default.createElement(EditableInput, {
|
|
21987
21760
|
ref: editableRef,
|
|
@@ -22002,18 +21775,46 @@
|
|
|
22002
21775
|
}, /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
22003
21776
|
gap: 8,
|
|
22004
21777
|
alignItems: "center"
|
|
22005
|
-
}, !hideAttachments && (/*#__PURE__*/React__default.createElement(
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
|
|
22014
|
-
|
|
21778
|
+
}, !hideAttachments && (/*#__PURE__*/React__default.createElement(Uploader, {
|
|
21779
|
+
accept: "*/*",
|
|
21780
|
+
icon: /*#__PURE__*/React__default.createElement(AttachmentIcon, {
|
|
21781
|
+
widthHeight: 16
|
|
21782
|
+
}),
|
|
21783
|
+
maxSize: 50 * 1024 * 1024,
|
|
21784
|
+
multiple: true,
|
|
21785
|
+
onMultipleFileSelect: handleMultipleFileUpload,
|
|
21786
|
+
isLoading: isUploading,
|
|
21787
|
+
text: attachmentText,
|
|
21788
|
+
fileType: "file",
|
|
22015
21789
|
views: {
|
|
22016
|
-
|
|
21790
|
+
container: Object.assign({
|
|
21791
|
+
height: '36px',
|
|
21792
|
+
margin: '0 12px',
|
|
21793
|
+
// borderRadius: '8px',
|
|
21794
|
+
// backgroundColor: 'transparent',
|
|
21795
|
+
// border: '1px solid',
|
|
21796
|
+
// borderColor: 'color.gray.300',
|
|
21797
|
+
cursor: 'pointer',
|
|
21798
|
+
_hover: {
|
|
21799
|
+
backgroundColor: 'color.gray.100'
|
|
21800
|
+
}
|
|
21801
|
+
}, views == null ? void 0 : views.fileButton, containerStyles)
|
|
21802
|
+
},
|
|
21803
|
+
containerProps: {
|
|
21804
|
+
display: 'flex',
|
|
21805
|
+
alignItems: 'center',
|
|
21806
|
+
justifyContent: 'center',
|
|
21807
|
+
gap: 4
|
|
21808
|
+
},
|
|
21809
|
+
textProps: {
|
|
21810
|
+
fontSize: '14px',
|
|
21811
|
+
color: 'color.gray.600'
|
|
21812
|
+
},
|
|
21813
|
+
validateFile: file => {
|
|
21814
|
+
if (file.size > 50 * 1024 * 1024) {
|
|
21815
|
+
return 'File size exceeds 50MB limit';
|
|
21816
|
+
}
|
|
21817
|
+
return null;
|
|
22017
21818
|
}
|
|
22018
21819
|
}))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
22019
21820
|
as: "button",
|
|
@@ -22049,35 +21850,12 @@
|
|
|
22049
21850
|
fontSize: "12px",
|
|
22050
21851
|
color: "theme.error",
|
|
22051
21852
|
marginTop: "4px"
|
|
22052
|
-
}, views == null ? void 0 : views.bottomTip), errorMessage))
|
|
22053
|
-
justifyContent: "center",
|
|
22054
|
-
alignItems: "center",
|
|
22055
|
-
gap: 8,
|
|
22056
|
-
padding: "8px 0",
|
|
22057
|
-
animate: {
|
|
22058
|
-
from: {
|
|
22059
|
-
opacity: 0,
|
|
22060
|
-
y: -10
|
|
22061
|
-
},
|
|
22062
|
-
to: {
|
|
22063
|
-
opacity: 1,
|
|
22064
|
-
y: 0
|
|
22065
|
-
},
|
|
22066
|
-
duration: '0.3s'
|
|
22067
|
-
}
|
|
22068
|
-
}, views == null ? void 0 : views.loadingIndicator), /*#__PURE__*/React__default.createElement(LoadingSpinnerIcon, {
|
|
22069
|
-
widthHeight: 12,
|
|
22070
|
-
color: "currentColor",
|
|
22071
|
-
filled: false,
|
|
22072
|
-
style: {
|
|
22073
|
-
animation: 'spin 1s linear infinite'
|
|
22074
|
-
}
|
|
22075
|
-
}), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
22076
|
-
fontSize: "12px",
|
|
22077
|
-
color: "color.gray.500"
|
|
22078
|
-
}, "Agent is working..."))));
|
|
21853
|
+
}, views == null ? void 0 : views.bottomTip), errorMessage)));
|
|
22079
21854
|
};
|
|
22080
21855
|
|
|
21856
|
+
/**
|
|
21857
|
+
* Interface for the ChatInput component's imperative handle
|
|
21858
|
+
*/
|
|
22081
21859
|
/**
|
|
22082
21860
|
* ChatInput component
|
|
22083
21861
|
*
|
|
@@ -22086,11 +21864,6 @@
|
|
|
22086
21864
|
var ChatInput = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
22087
21865
|
// Get state from custom hook
|
|
22088
21866
|
var state = useChatInputState(props);
|
|
22089
|
-
// Expose methods via ref
|
|
22090
|
-
React.useImperativeHandle(ref, () => ({
|
|
22091
|
-
getPendingFiles: () => state.pendingFiles || [],
|
|
22092
|
-
clearPendingFiles: () => state.setPendingFiles([])
|
|
22093
|
-
}));
|
|
22094
21867
|
// Render the view component with props and state
|
|
22095
21868
|
return /*#__PURE__*/React__default.createElement(ChatInputView, Object.assign({}, props, state));
|
|
22096
21869
|
});
|
|
@@ -22100,6 +21873,7 @@
|
|
|
22100
21873
|
exports.Alert = Alert;
|
|
22101
21874
|
exports.ArrowIcon = ArrowIcon;
|
|
22102
21875
|
exports.AspectRatio = AspectRatio;
|
|
21876
|
+
exports.AttachmentIcon = AttachmentIcon;
|
|
22103
21877
|
exports.Avatar = Avatar;
|
|
22104
21878
|
exports.Badge = Badge;
|
|
22105
21879
|
exports.BatteryIcon = BatteryIcon;
|
|
@@ -22116,9 +21890,7 @@
|
|
|
22116
21890
|
exports.ChatInput = ChatInput;
|
|
22117
21891
|
exports.CheckIcon = CheckIcon;
|
|
22118
21892
|
exports.Checkbox = Checkbox;
|
|
22119
|
-
exports.ChevronDownIcon = ChevronDownIcon;
|
|
22120
21893
|
exports.ChevronIcon = ChevronIcon;
|
|
22121
|
-
exports.ChevronRightIcon = ChevronRightIcon;
|
|
22122
21894
|
exports.ClockIcon = ClockIcon;
|
|
22123
21895
|
exports.CloseEyeIcon = CloseEyeIcon;
|
|
22124
21896
|
exports.CloseIcon = CloseIcon;
|
|
@@ -22217,7 +21989,6 @@
|
|
|
22217
21989
|
exports.Sidebar = Sidebar;
|
|
22218
21990
|
exports.Slider = Slider;
|
|
22219
21991
|
exports.SliderIcon = SliderIcon;
|
|
22220
|
-
exports.SliderVerticalIcon = SliderVerticalIcon;
|
|
22221
21992
|
exports.SpinnerIcon = SpinnerIcon;
|
|
22222
21993
|
exports.StarIcon = StarIcon;
|
|
22223
21994
|
exports.StopIcon = StopIcon;
|