@flozy/editor 4.8.3 → 4.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -548,7 +548,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
548
548
  index: index,
549
549
  chars: chars,
550
550
  type: type,
551
- theme: theme
551
+ theme: theme,
552
+ otherProps: otherProps
552
553
  }) : null, /*#__PURE__*/_jsx(RnDCopy, {
553
554
  readOnly: readOnly
554
555
  })]
@@ -38,10 +38,16 @@ const Divider = props => {
38
38
  setOpenSettings(true);
39
39
  };
40
40
  const DividerToolbar = ({
41
+ readOnly,
41
42
  selected,
42
43
  showTool,
43
44
  onSettings
44
45
  }) => {
46
+ const hoverStyles = readOnly ? {
47
+ '&.MuiIconButton-root:hover': {
48
+ background: theme?.palette?.type === 'dark' ? `${theme?.palette?.greyshades?.light8} !important` : `${theme?.palette?.containers?.card} !important`
49
+ }
50
+ } : {};
45
51
  return /*#__PURE__*/_jsx("div", {
46
52
  contentEditable: false,
47
53
  className: "divider-settings",
@@ -62,9 +68,7 @@ const Divider = props => {
62
68
  '& svg': {
63
69
  stroke: theme?.palette?.text?.secondary3
64
70
  },
65
- '&.MuiIconButton-root:hover': {
66
- background: theme?.palette?.type === 'dark' ? `${theme?.palette?.greyshades?.light8} !important` : `${theme?.palette?.containers?.card} !important`
67
- }
71
+ ...hoverStyles
68
72
  },
69
73
  onClick: onSettings,
70
74
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
@@ -110,7 +114,8 @@ const Divider = props => {
110
114
  children: /*#__PURE__*/_jsx(DividerToolbar, {
111
115
  selected: selected,
112
116
  showTool: showTool,
113
- onSettings: onSettings
117
+ onSettings: onSettings,
118
+ readOnly: readOnly
114
119
  })
115
120
  }), /*#__PURE__*/_jsx("hr", {
116
121
  contentEditable: false,
@@ -0,0 +1,98 @@
1
+ import React from "react";
2
+ import { Box, Card, CardMedia, CardContent, Typography } from "@mui/material";
3
+ import Icon from "../../common/Icon";
4
+ import { useEditorContext } from "../../hooks/useMouseMove";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ const SearchAttachment = props => {
8
+ const {
9
+ attributes,
10
+ element,
11
+ children,
12
+ customProps
13
+ } = props;
14
+ const {
15
+ metadata
16
+ } = customProps;
17
+ const {
18
+ title,
19
+ type
20
+ } = element;
21
+ const {
22
+ theme
23
+ } = useEditorContext();
24
+ const handleClick = () => {
25
+ if (metadata && metadata?.actionHandler) {
26
+ metadata?.actionHandler(type, element);
27
+ }
28
+ };
29
+ return /*#__PURE__*/_jsxs(Box, {
30
+ component: "div",
31
+ className: "attachment-wrpr-ev2",
32
+ ...attributes,
33
+ contentEditable: false,
34
+ style: {
35
+ display: "block"
36
+ },
37
+ children: [/*#__PURE__*/_jsxs(Card, {
38
+ style: {
39
+ display: "flex",
40
+ justifyContent: "center",
41
+ alignItems: "center",
42
+ width: "100%",
43
+ maxWidth: '200px',
44
+ padding: "2px",
45
+ boxShadow: "none",
46
+ border: `1px solid ${theme?.palette?.primary?.border2}`,
47
+ borderRadius: "7px",
48
+ background: theme?.palette?.background?.paper,
49
+ cursor: 'pointer'
50
+ },
51
+ onClick: handleClick,
52
+ children: [/*#__PURE__*/_jsx(CardMedia, {
53
+ sx: {
54
+ "& svg": {
55
+ '& path': {
56
+ stroke: '#2563EB'
57
+ }
58
+ },
59
+ marginTop: '3px'
60
+ },
61
+ children: /*#__PURE__*/_jsx(Icon, {
62
+ icon: "docsIcon"
63
+ })
64
+ }), /*#__PURE__*/_jsx(CardContent, {
65
+ sx: {
66
+ display: "flex",
67
+ justifyContent: "center",
68
+ alignItems: "start",
69
+ padding: "3px 5px",
70
+ textDecoration: "none",
71
+ flexDirection: "column",
72
+ color: "#2563EB",
73
+ '&.MuiCardContent-root:last-child': {
74
+ paddingBottom: '3px'
75
+ }
76
+ },
77
+ children: /*#__PURE__*/_jsx(Typography, {
78
+ sx: {
79
+ fontWeight: "500",
80
+ color: "#2563EB",
81
+ fontSize: "12px",
82
+ textOverflow: 'ellipsis',
83
+ whiteSpace: 'nowrap',
84
+ overflow: 'hidden',
85
+ wordBreak: "break-word",
86
+ maxWidth: '150px'
87
+ },
88
+ component: "div",
89
+ children: title
90
+ })
91
+ })]
92
+ }), /*#__PURE__*/_jsx("span", {
93
+ contentEditable: false,
94
+ children: children
95
+ })]
96
+ });
97
+ };
98
+ export default SearchAttachment;
@@ -0,0 +1,111 @@
1
+ import React, { forwardRef, useImperativeHandle, useState } from "react";
2
+ import ToolbarIcon from "../../common/ToolbarIcon";
3
+ import Icon from "../../common/Icon";
4
+ import { Paper, Popover } from "@mui/material";
5
+ import { ReactEditor, useSlateStatic } from "slate-react";
6
+ import SwipeableDrawerComponent from "../../common/SwipeableDrawer";
7
+ import SearchAndDocList from "./SearchList";
8
+ import { insertBrain } from "../../utils/brains";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { Fragment as _Fragment } from "react/jsx-runtime";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
13
+ const {
14
+ element,
15
+ icoBtnType,
16
+ selectionTarget,
17
+ theme = 'light',
18
+ otherProps
19
+ } = props;
20
+ const editor = useSlateStatic();
21
+ const [anchorEl, setAnchorEl] = useState(null);
22
+ const [target, setTarget] = useState(selectionTarget);
23
+ const open = Boolean(anchorEl);
24
+ const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
25
+ useImperativeHandle(ref, () => ({
26
+ triggerClick: target => {
27
+ setTarget(target);
28
+ onClick();
29
+ }
30
+ }));
31
+ const onClick = () => {
32
+ try {
33
+ if (editor.selection) {
34
+ const domRange = ReactEditor.toDOMRange(editor, editor.selection);
35
+ const rect = domRange.getBoundingClientRect();
36
+ setAnchorEl({
37
+ getBoundingClientRect: () => rect,
38
+ nodeType: 1
39
+ });
40
+ }
41
+ } catch (err) {
42
+ console.log(err);
43
+ }
44
+ };
45
+ const handleClose = () => {
46
+ setAnchorEl(null);
47
+ };
48
+ const handleClick = data => {
49
+ insertBrain(editor, data, target || editor.selection);
50
+ setAnchorEl(null);
51
+ };
52
+ return /*#__PURE__*/_jsxs(_Fragment, {
53
+ children: [/*#__PURE__*/_jsx(ToolbarIcon, {
54
+ title: element?.name,
55
+ onClick: () => {
56
+ onClick();
57
+ },
58
+ icon: /*#__PURE__*/_jsx(Icon, {
59
+ icon: element?.name?.toLowerCase()
60
+ }),
61
+ icoBtnType: icoBtnType
62
+ }), isMobile ? /*#__PURE__*/_jsx(SwipeableDrawerComponent, {
63
+ open: open,
64
+ onClose: handleClose,
65
+ customClass: "emojiDrawer",
66
+ swipeableDrawer: false,
67
+ children: /*#__PURE__*/_jsx(Paper, {
68
+ sx: {
69
+ width: '100%',
70
+ background: theme?.palette?.background?.paper,
71
+ borderColor: theme?.palette?.type === 'dark' ? theme?.palette?.primary?.border2 : 'transparent'
72
+ },
73
+ children: /*#__PURE__*/_jsx(SearchAndDocList, {
74
+ otherProps: otherProps,
75
+ handleClick: handleClick,
76
+ theme: theme,
77
+ handleClose: handleClose
78
+ })
79
+ })
80
+ }) : /*#__PURE__*/_jsx(Popover, {
81
+ style: {
82
+ zIndex: 10001
83
+ },
84
+ open: open,
85
+ anchorEl: anchorEl,
86
+ anchorOrigin: {
87
+ vertical: "bottom",
88
+ horizontal: "left"
89
+ },
90
+ onClose: handleClose,
91
+ children: /*#__PURE__*/_jsx(Paper, {
92
+ sx: {
93
+ padding: "8px",
94
+ maxWidth: '330px',
95
+ background: theme?.palette?.background?.paper,
96
+ border: '1px solid',
97
+ borderColor: theme?.palette?.type === 'dark' ? theme?.palette?.primary?.border2 : 'transparent',
98
+ borderRadius: '7px'
99
+ },
100
+ children: /*#__PURE__*/_jsx(SearchAndDocList, {
101
+ otherProps: otherProps,
102
+ handleClick: handleClick,
103
+ theme: theme,
104
+ handleClose: handleClose
105
+ })
106
+ })
107
+ })]
108
+ });
109
+ });
110
+ SearchButton.displayName = "SearchButton";
111
+ export default SearchButton;
@@ -0,0 +1,207 @@
1
+ import { Box, CircularProgress, Grid, IconButton, InputAdornment, TextField, Typography } from "@mui/material";
2
+ import Icon from "../../common/Icon";
3
+ import { SearchIcon } from "../../common/iconslist";
4
+ import { useCallback, useEffect, useRef, useState } from "react";
5
+ import { useDebounce } from "use-debounce";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { Fragment as _Fragment } from "react/jsx-runtime";
9
+ const SearchAndDocList = ({
10
+ handleClick,
11
+ theme,
12
+ handleClose,
13
+ otherProps
14
+ }) => {
15
+ const [mapData, setMapData] = useState([]);
16
+ const [skip, setSkip] = useState(0);
17
+ const [search, setSearch] = useState("");
18
+ const [isLoading, setIsLoading] = useState(false);
19
+ const [debouncedSearch] = useDebounce(search, 300);
20
+ const limit = 20;
21
+ const observer = useRef();
22
+ const lastDocRef = useCallback(node => {
23
+ if (observer.current) observer.current.disconnect();
24
+ observer.current = new IntersectionObserver(entries => {
25
+ if (entries[0].isIntersecting) {
26
+ setSkip(prevSkip => prevSkip + limit);
27
+ }
28
+ });
29
+ if (node) observer.current.observe(node);
30
+ }, [limit]);
31
+ useEffect(() => {
32
+ getDocs({
33
+ debouncedSearch,
34
+ skip,
35
+ limit
36
+ });
37
+ }, [skip, debouncedSearch]);
38
+ const getDocs = async () => {
39
+ setIsLoading(true);
40
+ try {
41
+ if (otherProps?.services) {
42
+ const result = await otherProps?.services("getDocs", {
43
+ skip,
44
+ limit,
45
+ search
46
+ });
47
+ setMapData(prev => skip === 0 ? result.data : [...prev, ...result.data]);
48
+ }
49
+ } catch (error) {
50
+ console.error("Error fetching documents:", error);
51
+ } finally {
52
+ setIsLoading(false);
53
+ }
54
+ };
55
+ const onSearchChange = value => {
56
+ setSearch(value);
57
+ setSkip(0);
58
+ };
59
+ return /*#__PURE__*/_jsxs(_Fragment, {
60
+ children: [/*#__PURE__*/_jsxs(Box, {
61
+ display: "flex",
62
+ justifyContent: "space-between",
63
+ alignItems: "center",
64
+ mb: 2,
65
+ sx: {
66
+ padding: '8px'
67
+ },
68
+ children: [/*#__PURE__*/_jsx(Typography, {
69
+ sx: {
70
+ fontSize: "16px",
71
+ fontWeight: 600,
72
+ color: theme?.palette?.primary?.main
73
+ },
74
+ children: "Brains"
75
+ }), /*#__PURE__*/_jsx(IconButton, {
76
+ onClick: e => {
77
+ e.stopPropagation();
78
+ handleClose();
79
+ },
80
+ sx: {
81
+ borderRadius: "6px",
82
+ backgroundColor: theme?.palette?.containers?.bg7,
83
+ border: theme?.palette?.type === 'dark' ? `1px solid ${theme?.palette?.primary?.border2}` : '',
84
+ padding: "5px",
85
+ "&:hover": {
86
+ backgroundColor: theme?.palette?.containers?.bg8,
87
+ background: theme?.palette?.containers?.bg8
88
+ }
89
+ },
90
+ children: /*#__PURE__*/_jsx(Icon, {
91
+ icon: "closeIcon"
92
+ })
93
+ })]
94
+ }), /*#__PURE__*/_jsx(Box, {
95
+ mb: 2,
96
+ sx: {
97
+ padding: '8px'
98
+ },
99
+ children: /*#__PURE__*/_jsx(TextField, {
100
+ fullWidth: true,
101
+ variant: "outlined",
102
+ placeholder: "Search documents...",
103
+ size: "small",
104
+ onChange: e => onSearchChange(e.target.value),
105
+ InputProps: {
106
+ startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
107
+ position: "start",
108
+ children: /*#__PURE__*/_jsx(SearchIcon, {})
109
+ })
110
+ },
111
+ sx: {
112
+ "& .MuiOutlinedInput-root": {
113
+ color: theme?.palette?.primary?.main,
114
+ borderRadius: "8px",
115
+ border: `1px solid ${theme?.palette?.primary?.border2}`,
116
+ borderColor: theme?.palette?.primary?.border2,
117
+ boxShadow: theme?.palette?.shadows?.shadow12,
118
+ "&:hover .MuiOutlinedInput-notchedOutline": {
119
+ border: 'transparent'
120
+ },
121
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
122
+ border: 'transparent'
123
+ }
124
+ },
125
+ "& svg": {
126
+ "& path": {
127
+ stroke: theme?.palette?.text?.text6
128
+ }
129
+ }
130
+ }
131
+ })
132
+ }), /*#__PURE__*/_jsx(Grid, {
133
+ container: true,
134
+ gap: 1,
135
+ sx: {
136
+ maxHeight: '400px',
137
+ overflowY: 'auto',
138
+ padding: '5px'
139
+ },
140
+ children: mapData?.map((doc, index) => {
141
+ const title = doc?.title?.trim() === "" ? 'Untitled' : doc?.title;
142
+ return /*#__PURE__*/_jsx(Grid, {
143
+ item: true,
144
+ xs: 12,
145
+ ref: index === mapData.length - 1 ? lastDocRef : null,
146
+ sx: {
147
+ border: `1px solid ${theme?.palette?.primary?.border2}`,
148
+ borderRadius: '7px',
149
+ padding: '8px',
150
+ marginRight: '5px',
151
+ cursor: 'pointer'
152
+ },
153
+ onClick: () => handleClick(doc),
154
+ children: /*#__PURE__*/_jsxs(Grid, {
155
+ container: true,
156
+ alignItems: "center",
157
+ justifyContent: 'space-between',
158
+ gap: 1,
159
+ children: [/*#__PURE__*/_jsx(Grid, {
160
+ item: true,
161
+ children: /*#__PURE__*/_jsxs(Grid, {
162
+ container: true,
163
+ alignItems: "center",
164
+ gap: 1,
165
+ children: [/*#__PURE__*/_jsx(Grid, {
166
+ item: true,
167
+ sx: {
168
+ marginTop: '2px'
169
+ },
170
+ children: /*#__PURE__*/_jsx(Icon, {
171
+ icon: "docsIcon"
172
+ })
173
+ }), /*#__PURE__*/_jsx(Grid, {
174
+ item: true,
175
+ children: /*#__PURE__*/_jsx(Typography, {
176
+ sx: {
177
+ fontSize: "14px",
178
+ fontWeight: 500,
179
+ color: theme?.palette?.primary?.main,
180
+ textOverflow: 'ellipsis',
181
+ whiteSpace: 'nowrap',
182
+ overflow: 'hidden',
183
+ wordBreak: "break-word",
184
+ maxWidth: '230px'
185
+ },
186
+ children: title
187
+ })
188
+ })]
189
+ })
190
+ }), doc?.shared_status === 1 ? /*#__PURE__*/_jsx(Grid, {
191
+ item: true,
192
+ children: /*#__PURE__*/_jsx(Icon, {
193
+ icon: "userIcon"
194
+ })
195
+ }) : null]
196
+ })
197
+ }, doc.id);
198
+ })
199
+ }), isLoading && /*#__PURE__*/_jsx(Box, {
200
+ display: "flex",
201
+ justifyContent: "center",
202
+ mt: 2,
203
+ children: /*#__PURE__*/_jsx(CircularProgress, {})
204
+ })]
205
+ });
206
+ };
207
+ export default SearchAndDocList;
@@ -32,6 +32,7 @@ import ColorboxButton from "../Elements/Colorbox/ColorboxButton.js";
32
32
  import DividerButton from "../Elements/Divider/DividerButton.js";
33
33
  import EmbedScript from "../Elements/EmbedScript/EmbedScript.js";
34
34
  import FreeGridButton from "../Elements/FreeGrid/FreeGridButton.js";
35
+ import SearchButton from "../Elements/Search/SearchButton.js";
35
36
  import { jsx as _jsx } from "react/jsx-runtime";
36
37
  import { jsxs as _jsxs } from "react/jsx-runtime";
37
38
  export const RenderToolbarIcon = props => {
@@ -223,6 +224,13 @@ export const RenderToolbarIcon = props => {
223
224
  customProps: customProps,
224
225
  icoBtnType: icoBtnType
225
226
  }, element.id);
227
+ case "search":
228
+ return /*#__PURE__*/_jsx(SearchButton, {
229
+ element: element,
230
+ editor: editor,
231
+ customProps: customProps,
232
+ icoBtnType: icoBtnType
233
+ }, element.id);
226
234
  default:
227
235
  return null;
228
236
  }
@@ -211,6 +211,11 @@ export const toolbarGroups = [[{
211
211
  format: "emoji",
212
212
  type: "emoji",
213
213
  group: "elements"
214
+ }, {
215
+ id: 51,
216
+ format: "brain",
217
+ type: "search",
218
+ group: "elements"
214
219
  }, {
215
220
  id: 29,
216
221
  format: "newLine",
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ export const BrainIcon = props => /*#__PURE__*/_jsxs("svg", {
4
+ className: "BrainIcon",
5
+ width: "19",
6
+ height: "18",
7
+ viewBox: "0 0 19 18",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsxs("g", {
11
+ clipPath: "url(#clip0_38524_18936)",
12
+ children: [/*#__PURE__*/_jsx("path", {
13
+ className: "fillPath",
14
+ d: "M8.15078 4.96816L8.13029 4.87029C8.38386 4.81721 8.52209 4.75657 8.63932 4.61874C8.76419 4.47191 8.87156 4.23078 9.0309 3.78954C9.18008 3.37931 9.477 2.83417 9.67863 2.56953L9.68049 2.56716L9.95913 2.22351L9.77098 2.15114C9.02297 1.86345 7.9649 2.1139 7.18056 2.77932C6.91016 3.01102 6.6078 3.13199 6.31202 3.13199C5.36057 3.13199 4.49148 3.7083 4.23948 4.47574C4.1991 4.5969 4.13233 4.7171 4.05705 4.81246C3.98542 4.90319 3.89342 4.98771 3.79555 5.01531C3.62366 5.07031 3.42593 5.1997 3.22586 5.38165C3.02645 5.56298 2.83073 5.79102 2.66318 6.03401C2.4955 6.27716 2.35797 6.53246 2.27298 6.76757C2.18918 6.99938 2.16076 7.19973 2.19255 7.34719C2.2265 7.34519 2.28443 7.32746 2.36807 7.29046C2.44437 7.25672 2.53178 7.21212 2.62856 7.16274L2.64553 7.15409C2.74788 7.10189 2.85903 7.04555 2.97138 6.99562L2.97543 6.99393C3.33705 6.85186 3.74456 6.81649 4.47819 6.85317C4.98982 6.87755 5.35003 6.92948 5.58432 7.03013C5.70346 7.08131 5.79666 7.14777 5.85948 7.23568C5.92305 7.32463 5.94928 7.42679 5.94928 7.53756C5.94928 7.64781 5.93113 7.74876 5.88078 7.83259C5.82887 7.91902 5.74927 7.97648 5.64775 8.01001C5.54889 8.04266 5.42788 8.05323 5.28597 8.04848C5.14322 8.0437 4.97315 8.02314 4.77318 7.9893C4.3397 7.9121 3.85733 7.90819 3.43057 7.97852C3.00053 8.04939 2.64177 8.19284 2.43825 8.39636C2.38877 8.44584 2.34382 8.48625 2.30861 8.5179C2.29334 8.53162 2.27991 8.5437 2.26873 8.55416C2.22923 8.5911 2.21196 8.61276 2.20108 8.63766C2.18969 8.66371 2.18117 8.70318 2.18013 8.78163C2.17909 8.86011 2.18545 8.96803 2.19766 9.12675C2.22614 9.50261 2.40977 9.88897 2.67829 10.237C2.94622 10.5842 3.29318 10.8861 3.63599 11.0929L3.63732 11.0937C3.86712 11.2374 4.26565 11.3774 4.64846 11.4678C4.83857 11.5128 5.02103 11.5445 5.17234 11.5584C5.32934 11.5729 5.43578 11.5662 5.48539 11.5476L5.48888 11.5464C5.50877 11.5398 5.52215 11.5341 5.53123 11.529C5.53756 11.5255 5.54155 11.522 5.54155 11.522C5.54232 11.5189 5.54311 11.5108 5.54046 11.4941C5.53501 11.4598 5.51756 11.4069 5.48057 11.3242C5.44424 11.2429 5.39219 11.1394 5.32228 11.0057C5.22585 10.819 5.15568 10.6493 5.11357 10.5004C5.07176 10.3526 5.0556 10.2187 5.0731 10.1054C5.09106 9.98913 5.14554 9.89124 5.2441 9.83112C5.33902 9.77321 5.45988 9.75962 5.59379 9.77636L5.58138 9.87558L5.59185 9.77613C5.87816 9.80627 6.05817 10.0091 6.26638 10.401C6.45393 10.7579 6.6013 10.9891 6.76986 11.1678C6.93718 11.3451 7.13025 11.4759 7.4172 11.6254C7.75872 11.7991 8.04404 11.9042 8.32298 11.9522C8.60107 12 8.87801 11.9919 9.20374 11.9327C9.59177 11.8562 9.91172 11.7189 10.2131 11.4861C10.5162 11.2517 10.8045 10.9175 11.1243 10.4409C11.4482 9.95806 11.7078 9.63684 11.9807 9.41982C12.257 9.20006 12.5414 9.09144 12.9056 9.02234L12.9067 9.02215C13.2505 8.96075 13.5251 8.96093 13.7111 9.05211C13.8081 9.09968 13.8808 9.1719 13.9234 9.26866C13.965 9.36325 13.9747 9.47368 13.9613 9.59437L13.9611 9.59626C13.9423 9.74014 13.911 9.86302 13.7949 9.94852C13.7408 9.98827 13.6743 10.0156 13.5961 10.0375C13.5179 10.0595 13.4221 10.0777 13.3058 10.096C12.9871 10.1502 12.811 10.2047 12.6478 10.3369C12.4784 10.474 12.3162 10.6999 12.0467 11.1226C11.8135 11.4908 11.4566 11.9714 11.2435 12.197L10.9959 12.4611L11.1821 12.5061C11.3684 12.5526 11.6775 12.5885 11.877 12.5885C11.9476 12.5885 12.0248 12.6149 12.094 12.6462C12.1658 12.6786 12.2407 12.7218 12.3099 12.7659C12.4466 12.8531 12.5694 12.9493 12.6165 12.9895C12.7475 13.0935 12.8618 13.2674 13.0107 13.498C13.0214 13.5145 13.0323 13.5314 13.0434 13.5487C13.1918 13.7789 13.3832 14.0758 13.6651 14.4518C13.7867 14.6139 13.8901 14.7545 13.9774 14.8734C14.1155 15.0613 14.2135 15.1947 14.2803 15.2723C14.3019 15.2974 14.3227 15.3217 14.3428 15.345C14.4676 15.4903 14.5634 15.6017 14.6375 15.6834C14.6709 15.7203 14.6991 15.7502 14.7229 15.7739C14.7237 15.7404 14.7238 15.6987 14.7238 15.6472C14.7238 15.388 14.7238 15.2227 14.7191 15.0575C14.7108 14.7647 14.6876 14.4724 14.623 13.6584C14.5997 13.3642 14.5754 13.1381 14.5563 12.9605L14.5546 12.9453C14.5355 12.7675 14.5213 12.6336 14.5204 12.531C14.5196 12.427 14.532 12.3408 14.5767 12.2641C14.6203 12.1893 14.6879 12.1358 14.7673 12.0821L14.7759 12.0763L14.7855 12.0723C15.0673 11.9571 15.4592 11.6735 15.7804 11.2707C16.1008 10.869 16.3435 10.3581 16.3435 9.79034C16.3435 9.13108 16.1414 8.61025 15.7311 8.2071C15.3177 7.80098 14.6839 7.50546 13.8046 7.31877C13.6948 7.29437 13.6035 7.27177 13.531 7.24617C13.4587 7.22059 13.396 7.18907 13.3476 7.14178C13.2466 7.04308 13.2383 6.90516 13.2383 6.74604C13.2383 6.66089 13.2386 6.58267 13.2516 6.5198C13.2659 6.4503 13.298 6.38748 13.367 6.3455C13.4274 6.30883 13.5054 6.29527 13.5925 6.28845C13.6822 6.28142 13.799 6.28072 13.9472 6.28071L13.9486 6.28073C14.8019 6.29328 15.7019 6.6562 16.3527 7.25673L16.7664 7.632L16.8364 7.44304C16.8631 7.36794 16.8926 7.22707 16.9152 7.0585C16.9376 6.89147 16.9524 6.7042 16.9524 6.53903C16.9524 5.53251 16.2956 4.68517 15.0536 4.17164L15.0508 4.17042C14.7885 4.0524 14.446 3.75928 14.2542 3.478L14.2534 3.47678C13.8245 2.82757 13.07 2.47753 12.2527 2.55912C11.6407 2.62452 11.1146 2.83209 10.7529 3.11528C10.391 3.39875 10.203 3.74917 10.2353 4.10628C10.2533 4.28647 10.2791 4.38105 10.3317 4.45193C10.3852 4.52407 10.4767 4.58545 10.6639 4.67002L10.6651 4.67053C10.8035 4.73512 10.9165 4.79374 11.0047 4.85098C11.0922 4.90781 11.1621 4.9675 11.2073 5.03683C11.2549 5.10972 11.2716 5.18788 11.2615 5.27153C11.2518 5.35093 11.2184 5.43164 11.1736 5.51484L11.1728 5.51629C11.0649 5.70885 10.8581 5.79826 10.628 5.80334C10.3981 5.80841 10.1331 5.73106 9.8772 5.57753L9.87591 5.57675C9.78599 5.52094 9.72471 5.48355 9.67419 5.46023C9.62598 5.43796 9.59603 5.43267 9.56948 5.43471C9.54096 5.4369 9.5044 5.44848 9.44456 5.48164C9.38446 5.51495 9.31019 5.56457 9.20579 5.63519M8.15078 4.96816L8.13029 4.87029C8.04094 4.88877 7.96493 4.90747 7.90203 4.93103C7.83866 4.95476 7.78274 4.98556 7.73888 5.03167C7.64936 5.12579 7.63675 5.25572 7.63675 5.40654C7.63675 5.49114 7.63877 5.56615 7.65156 5.62821C7.66507 5.69382 7.69231 5.75368 7.74821 5.79919C7.80034 5.84162 7.86689 5.86262 7.93891 5.87637C8.01179 5.89028 8.10379 5.89899 8.21576 5.90807L8.21719 5.90818C8.40695 5.92082 8.57094 5.91173 8.73098 5.86838C8.89093 5.82506 9.04121 5.74909 9.20579 5.63519M8.15078 4.96816C7.79764 5.04123 7.73675 5.10211 7.73675 5.40654C7.73675 5.74751 7.77329 5.77186 8.22384 5.80839C8.58915 5.83275 8.8327 5.77186 9.14931 5.55267M8.15078 4.96816C8.67439 4.85857 8.80835 4.70026 9.12495 3.82351C9.27108 3.42166 9.56333 2.88586 9.75817 2.63014L10.0573 2.26125L9.92865 5.49179C9.57551 5.27259 9.56333 5.27259 9.14931 5.55267M9.20579 5.63519L9.14931 5.55267ZM9.20579 5.63519L9.14931 5.55267ZM7.7465 1.08895L7.74907 1.08791C8.15549 0.929148 8.66681 0.867521 9.17941 0.897036C9.69237 0.926569 10.2146 1.04782 10.6432 1.26209C10.9113 1.39616 11.0694 1.46248 11.2245 1.48719C11.3786 1.51173 11.5377 1.49646 11.8108 1.44791C12.4159 1.34075 13.0919 1.42932 13.6888 1.65529C14.2848 1.88092 14.8135 2.24803 15.1147 2.70942C15.1732 2.79991 15.2827 2.91115 15.4177 3.01943C15.551 3.12634 15.7028 3.22549 15.8414 3.29495C16.1469 3.43543 16.6416 3.79531 16.9496 4.0787C17.521 4.60659 17.8811 5.17465 18.0266 5.81359C18.1719 6.45157 18.1009 7.14977 17.8291 7.93467C17.6487 8.48813 17.5049 9.18492 17.481 9.7338C17.4071 11.1757 16.9946 12.2107 15.9062 12.8435L15.905 12.8442C15.8839 12.8561 15.8599 12.8824 15.8381 12.9374C15.8164 12.992 15.8009 13.065 15.7906 13.1548C15.7722 13.3162 15.7724 13.5119 15.7727 13.7168C15.7727 13.7409 15.7727 13.765 15.7727 13.7892V13.7919V13.7946V13.7973V13.8V13.8026V13.8053V13.808V13.8108V13.8135V13.8162V13.8189V13.8216V13.8244V13.8271V13.8298V13.8326V13.8353V13.8381V13.8408V13.8436V13.8464V13.8491V13.8519V13.8547V13.8575V13.8603V13.8631V13.8659V13.8687V13.8715V13.8743V13.8771V13.8799V13.8828V13.8856V13.8884V13.8913V13.8941V13.8969V13.8998V13.9026V13.9055V13.9084V13.9112V13.9141V13.917V13.9198V13.9227V13.9256V13.9285V13.9314V13.9343V13.9372V13.9401V13.943V13.9459V13.9488V13.9517V13.9546V13.9575V13.9605V13.9634V13.9663V13.9693V13.9722V13.9751V13.9781V13.981V13.984V13.9869V13.9899V13.9928V13.9958V13.9988V14.0017V14.0047V14.0077V14.0106V14.0136V14.0166V14.0196V14.0226V14.0255V14.0285V14.0315V14.0345V14.0375V14.0405V14.0435V14.0465V14.0495V14.0526V14.0556V14.0586V14.0616V14.0646V14.0676V14.0707V14.0737V14.0767V14.0797V14.0828V14.0858V14.0888V14.0919V14.0949V14.0979V14.101V14.104V14.1071V14.1101V14.1132V14.1162V14.1193V14.1223V14.1254V14.1284V14.1315V14.1346V14.1376V14.1407V14.1437V14.1468V14.1499V14.1529V14.156V14.1591V14.1621V14.1652V14.1683V14.1714V14.1744V14.1775V14.1806V14.1837V14.1867V14.1898V14.1929V14.196V14.1991V14.2022V14.2052V14.2083V14.2114V14.2145V14.2176V14.2207V14.2237V14.2268V14.2299V14.233V14.2361V14.2392V14.2423V14.2454V14.2485V14.2515V14.2546V14.2577V14.2608V14.2639V14.267V14.2701V14.2732V14.2763V14.2794V14.2824V14.2855V14.2886V14.2917V14.2948V14.2979V14.301V14.3041V14.3072V14.3102V14.3133V14.3164V14.3195V14.3226V14.3257V14.3288V14.3318V14.3349V14.338V14.3411V14.3442V14.3473V14.3503V14.3534V14.3565V14.3596V14.3626V14.3657V14.3688V14.3719V14.3749V14.378V14.3811V14.3841V14.3872V14.3903V14.3933V14.3964V14.3995V14.4025V14.4056V14.4086V14.4117V14.4148V14.4178V14.4209V14.4239V14.427V14.43V14.4331V14.4361V14.4391V14.4422V14.4452V14.4483V14.4513V14.4543V14.4574V14.4604V14.4634V14.4664V14.4695V14.4725V14.4755V14.4785V14.4815V14.4845V14.4876V14.4906V14.4936V14.4966V14.4996V14.5026V14.5056V14.5086V14.5115V14.5145V14.5175V14.5205V14.5235V14.5265V14.5294V14.5324V14.5354V14.5383V14.5413V14.5443V14.5472V14.5502V14.5531V14.5561V14.559V14.562V14.5649V14.5679V14.5708V14.5737V14.5766V14.5796V14.5825V14.5854V14.5883V14.5912V14.5941V14.597V14.6V14.6028V14.6057V14.6086V14.6115V14.6144V14.6173V14.6202V14.623V14.6259V14.6288V14.6316V14.6345V14.6373V14.6402V14.643V14.6459V14.6487V14.6515V14.6544V14.6572V14.66V14.6628V14.6656V14.6684V14.6713V14.6741V14.6768V14.6796V14.6824V14.6852V14.688V14.6908V14.6935V14.6963V14.6991V14.7018V14.7046V14.7073V14.71V14.7128V14.7155V14.7182V14.721V14.7237V14.7264V14.7291V14.7318V14.7345V14.7372V14.7399V14.7426V14.7452V14.7479V14.7506V14.7532V14.7559V14.7585V14.7612V14.7638V14.7665V14.7691V14.7717V14.7743V14.7769V14.7796V14.7822V14.7848V14.7873V14.7899V14.7925V14.7951V14.7976V14.8002V14.8028V14.8053V14.8079V14.8104V14.8129V14.8155V14.818V14.8205V14.823V14.8255V14.828V14.8305V14.833V14.8355V14.8379V14.8404V14.8428V14.8453V14.8477V14.8502V14.8526V14.855V14.8575V14.8599V14.8623V14.8647V14.8671V14.8695V14.8718V14.8742V14.8766V14.8789V14.8813V14.8836V14.886V14.8883V14.8906V14.893V14.8953V14.8976V14.8999V14.9022V14.9044V14.9067V14.909V14.9113V14.9135V14.9158V14.918V14.9202V14.9224V14.9247V14.9269V14.9291V14.9313V14.9335V14.9356V14.9378V14.94V14.9421V14.9443V14.9464V14.9486V14.9507V14.9528V14.9549V14.957V14.9591V14.9612V14.9633V14.9653V14.9674V14.9694V14.9715V14.9735V14.9756V14.9776V14.9796V14.9816V14.9836V14.9856V14.9875V14.9895V14.9915V14.9934V14.9954V14.9973V14.9992V15.0012V15.0031V15.005V15.0069V15.0087V15.0106V15.0125V15.0143V15.0162V15.018V15.0199V15.0217V15.0235V15.0253V15.0271V15.0289V15.0307V15.0324V15.0342V15.0359V15.0377V15.0394V15.0411V15.0428V15.0445V15.0462V15.0479V15.0496V15.0513V15.0529V15.0546V15.0562V15.0578V15.0594V15.061V15.0626V15.0642V15.0658V15.0674V15.0689V15.0705V15.072V15.0735V15.0751V15.0766V15.0781V15.0795V15.081V15.0825V15.0839V15.0854V15.0868V15.0883V15.0897V15.0911V15.0925V15.0939V15.0952V15.0966V15.0979V15.0993V15.1006V15.1019V15.1033V15.1046V15.1058V15.1071V15.1084V15.1096V15.1109V15.1121V15.1133V15.1146V15.1158V15.117V15.1181V15.1193V15.1205V15.1216L15.7723 15.1311C15.7548 15.3139 15.7451 15.4912 15.7358 15.662C15.7346 15.6841 15.7334 15.706 15.7322 15.7278C15.7216 15.9175 15.7103 16.0996 15.6874 16.266C15.642 16.5961 15.548 16.8906 15.2946 17.0706L15.2772 17.0829L15.2564 17.0871C14.9498 17.1489 14.6072 16.9897 14.1662 16.6137C13.7207 16.2339 13.1487 15.6098 12.3758 14.6825L12.0736 14.3803L11.8153 14.1776L11.8056 14.1689L11.3424 13.6962C11.0367 13.6504 10.6083 13.493 10.351 13.3337C10.1644 13.2171 10.0176 13.1525 9.80579 13.1142C9.58858 13.0748 9.30168 13.0625 8.83204 13.0564C7.96291 13.0564 7.60385 12.9954 7.18168 12.7907L7.17863 12.7891C6.96587 12.6768 6.81351 12.6184 6.60293 12.593C6.38675 12.5668 6.10658 12.5751 5.63657 12.6057C4.76818 12.655 4.05882 12.5601 3.45333 12.2865C2.8469 12.0124 2.35287 11.5631 1.90689 10.9189C1.85911 10.8489 1.80935 10.779 1.75927 10.7086C1.55336 10.4192 1.336 10.1137 1.17329 9.69286C0.96984 9.16671 0.851706 8.46413 0.91967 7.37584L0.921262 7.36325C1.05912 6.64369 1.22225 6.21487 1.39929 5.90071C1.48763 5.74396 1.57833 5.61771 1.66814 5.50032C1.69665 5.46306 1.72465 5.4272 1.75234 5.39175C1.813 5.31407 1.87214 5.23834 1.93182 5.15396C2.14369 4.85485 2.50488 4.48 2.74851 4.3133C2.85688 4.23916 2.98236 4.12862 3.09433 4.00928C3.20704 3.88915 3.30016 3.76638 3.34875 3.66919L3.34927 3.66818C3.57953 3.22044 4.03078 2.79438 4.53955 2.48106C5.04821 2.1678 5.62966 1.95781 6.12936 1.95781C6.14751 1.95781 6.1801 1.95228 6.22743 1.93709C6.27313 1.92243 6.32676 1.90068 6.3848 1.87311C6.50052 1.81814 6.62839 1.74263 6.73848 1.66166C6.9792 1.472 7.425 1.22497 7.7465 1.08895Z",
15
+ fill: "#64748B"
16
+ }), /*#__PURE__*/_jsx("path", {
17
+ d: "M8.15078 4.96816L8.13029 4.87029M8.15078 4.96816C7.79764 5.04123 7.73675 5.10211 7.73675 5.40654C7.73675 5.74751 7.77329 5.77186 8.22384 5.80839C8.58915 5.83275 8.8327 5.77186 9.14931 5.55267M8.15078 4.96816C8.67439 4.85857 8.80835 4.70026 9.12495 3.82351C9.27108 3.42166 9.56333 2.88586 9.75817 2.63014L10.0573 2.26125L9.92865 5.49179C9.57551 5.27259 9.56333 5.27259 9.14931 5.55267M8.13029 4.87029C8.38386 4.81721 8.52209 4.75657 8.63932 4.61874C8.76419 4.47191 8.87156 4.23078 9.0309 3.78954C9.18008 3.37931 9.477 2.83417 9.67863 2.56953L9.68049 2.56716L9.95913 2.22351L9.77098 2.15114C9.02297 1.86345 7.9649 2.1139 7.18056 2.77932C6.91016 3.01102 6.6078 3.13199 6.31202 3.13199C5.36057 3.13199 4.49148 3.7083 4.23948 4.47574C4.1991 4.5969 4.13233 4.7171 4.05705 4.81246C3.98542 4.90319 3.89342 4.98771 3.79555 5.01531C3.62366 5.07031 3.42593 5.1997 3.22586 5.38165C3.02645 5.56298 2.83073 5.79102 2.66318 6.03401C2.4955 6.27716 2.35797 6.53246 2.27298 6.76757C2.18918 6.99938 2.16076 7.19973 2.19255 7.34719C2.2265 7.34519 2.28443 7.32746 2.36807 7.29046C2.44437 7.25672 2.53178 7.21212 2.62856 7.16274L2.64553 7.15409C2.74788 7.10189 2.85903 7.04555 2.97138 6.99562L2.97543 6.99393C3.33705 6.85186 3.74456 6.81649 4.47819 6.85317C4.98982 6.87755 5.35003 6.92948 5.58432 7.03013C5.70346 7.08131 5.79666 7.14777 5.85948 7.23568C5.92305 7.32463 5.94928 7.42679 5.94928 7.53756C5.94928 7.64781 5.93113 7.74876 5.88078 7.83259C5.82887 7.91902 5.74927 7.97648 5.64775 8.01001C5.54889 8.04266 5.42788 8.05323 5.28597 8.04848C5.14322 8.0437 4.97315 8.02314 4.77318 7.9893C4.3397 7.9121 3.85733 7.90819 3.43057 7.97852C3.00053 8.04939 2.64177 8.19284 2.43825 8.39636C2.38877 8.44584 2.34382 8.48625 2.30861 8.5179C2.29334 8.53162 2.27991 8.5437 2.26873 8.55416C2.22923 8.5911 2.21196 8.61276 2.20108 8.63766C2.18969 8.66371 2.18117 8.70318 2.18013 8.78163C2.17909 8.86011 2.18545 8.96803 2.19766 9.12675C2.22614 9.50261 2.40977 9.88897 2.67829 10.237C2.94622 10.5842 3.29318 10.8861 3.63599 11.0929L3.63732 11.0937C3.86712 11.2374 4.26565 11.3774 4.64846 11.4678C4.83857 11.5128 5.02103 11.5445 5.17234 11.5584C5.32934 11.5729 5.43578 11.5662 5.48539 11.5476L5.48888 11.5464C5.50877 11.5398 5.52215 11.5341 5.53123 11.529C5.53756 11.5255 5.54155 11.522 5.54155 11.522M8.13029 4.87029C8.04094 4.88877 7.96493 4.90747 7.90203 4.93103C7.83866 4.95476 7.78274 4.98556 7.73888 5.03167C7.64936 5.12579 7.63675 5.25572 7.63675 5.40654C7.63675 5.49114 7.63877 5.56615 7.65156 5.62821C7.66507 5.69382 7.69231 5.75368 7.74821 5.79919C7.80034 5.84162 7.86689 5.86262 7.93891 5.87637C8.01179 5.89028 8.10379 5.89899 8.21576 5.90807L8.21719 5.90818C8.40695 5.92082 8.57094 5.91173 8.73098 5.86838C8.89093 5.82506 9.04121 5.74909 9.20579 5.63519M5.54155 11.522C5.54232 11.5189 5.54311 11.5108 5.54046 11.4941C5.53501 11.4598 5.51756 11.4069 5.48057 11.3242C5.44424 11.2429 5.39219 11.1394 5.32228 11.0057C5.22585 10.819 5.15568 10.6493 5.11357 10.5004C5.07176 10.3526 5.0556 10.2187 5.0731 10.1054C5.09106 9.98913 5.14554 9.89124 5.2441 9.83112C5.33902 9.77321 5.45988 9.75962 5.59379 9.77636L5.58138 9.87558L5.59185 9.77613C5.87816 9.80627 6.05817 10.0091 6.26638 10.401C6.45393 10.7579 6.6013 10.9891 6.76986 11.1678C6.93718 11.3451 7.13025 11.4759 7.4172 11.6254C7.75872 11.7991 8.04404 11.9042 8.32298 11.9522C8.60107 12 8.87801 11.9919 9.20374 11.9327C9.59177 11.8562 9.91172 11.7189 10.2131 11.4861C10.5162 11.2517 10.8045 10.9175 11.1243 10.4409C11.4482 9.95806 11.7078 9.63684 11.9807 9.41982C12.257 9.20006 12.5414 9.09144 12.9056 9.02234L12.9067 9.02215C13.2505 8.96075 13.5251 8.96093 13.7111 9.05211C13.8081 9.09968 13.8808 9.1719 13.9234 9.26866C13.965 9.36325 13.9747 9.47368 13.9613 9.59437L13.9611 9.59626C13.9423 9.74014 13.911 9.86302 13.7949 9.94852C13.7408 9.98827 13.6743 10.0156 13.5961 10.0375C13.5179 10.0595 13.4221 10.0777 13.3058 10.096C12.9871 10.1502 12.811 10.2047 12.6478 10.3369C12.4784 10.474 12.3162 10.6999 12.0467 11.1226C11.8135 11.4908 11.4566 11.9714 11.2435 12.197L10.9959 12.4611L11.1821 12.5061C11.3684 12.5526 11.6775 12.5885 11.877 12.5885C11.9476 12.5885 12.0248 12.6149 12.094 12.6462C12.1658 12.6786 12.2407 12.7218 12.3099 12.7659C12.4466 12.8531 12.5694 12.9493 12.6165 12.9895C12.7475 13.0935 12.8618 13.2674 13.0107 13.498C13.0214 13.5145 13.0323 13.5314 13.0434 13.5487C13.1918 13.7789 13.3832 14.0758 13.6651 14.4518C13.7867 14.6139 13.8901 14.7545 13.9774 14.8734C14.1155 15.0613 14.2135 15.1947 14.2803 15.2723C14.3019 15.2974 14.3227 15.3217 14.3428 15.345C14.4676 15.4903 14.5634 15.6017 14.6375 15.6834C14.6709 15.7203 14.6991 15.7502 14.7229 15.7739C14.7237 15.7404 14.7238 15.6987 14.7238 15.6472C14.7238 15.388 14.7238 15.2227 14.7191 15.0575C14.7108 14.7647 14.6876 14.4724 14.623 13.6584C14.5997 13.3642 14.5754 13.1381 14.5563 12.9605L14.5546 12.9453C14.5355 12.7675 14.5213 12.6336 14.5204 12.531C14.5196 12.427 14.532 12.3408 14.5767 12.2641C14.6203 12.1893 14.6879 12.1358 14.7673 12.0821L14.7759 12.0763L14.7855 12.0723C15.0673 11.9571 15.4592 11.6735 15.7804 11.2707C16.1008 10.869 16.3435 10.3581 16.3435 9.79034C16.3435 9.13108 16.1414 8.61025 15.7311 8.2071C15.3177 7.80098 14.6839 7.50546 13.8046 7.31877C13.6948 7.29437 13.6035 7.27177 13.531 7.24617C13.4587 7.22059 13.396 7.18907 13.3476 7.14178C13.2466 7.04308 13.2383 6.90516 13.2383 6.74604C13.2383 6.66089 13.2386 6.58267 13.2516 6.5198C13.2659 6.4503 13.298 6.38748 13.367 6.3455C13.4274 6.30883 13.5054 6.29527 13.5925 6.28845C13.6822 6.28142 13.799 6.28072 13.9472 6.28071L13.9486 6.28073C14.8019 6.29328 15.7019 6.6562 16.3527 7.25673L16.7664 7.632L16.8364 7.44304C16.8631 7.36794 16.8926 7.22707 16.9152 7.0585C16.9376 6.89147 16.9524 6.7042 16.9524 6.53903C16.9524 5.53251 16.2956 4.68517 15.0536 4.17164L15.0508 4.17042C14.7885 4.0524 14.446 3.75928 14.2542 3.478L14.2534 3.47678C13.8245 2.82757 13.07 2.47753 12.2527 2.55912C11.6407 2.62452 11.1146 2.83209 10.7529 3.11528C10.391 3.39875 10.203 3.74917 10.2353 4.10628C10.2533 4.28647 10.2791 4.38105 10.3317 4.45193C10.3852 4.52407 10.4767 4.58545 10.6639 4.67002L10.6651 4.67053C10.8035 4.73512 10.9165 4.79374 11.0047 4.85098C11.0922 4.90781 11.1621 4.9675 11.2073 5.03683C11.2549 5.10972 11.2716 5.18788 11.2615 5.27153C11.2518 5.35093 11.2184 5.43164 11.1736 5.51484L11.1728 5.51629C11.0649 5.70885 10.8581 5.79826 10.628 5.80334C10.3981 5.80841 10.1331 5.73106 9.8772 5.57753L9.87591 5.57675C9.78599 5.52094 9.72471 5.48355 9.67419 5.46023C9.62598 5.43796 9.59603 5.43267 9.56948 5.43471C9.54096 5.4369 9.5044 5.44848 9.44456 5.48164C9.38446 5.51495 9.31019 5.56457 9.20579 5.63519M5.54155 11.522L5.54087 11.5237M9.20579 5.63519L9.14931 5.55267M2.74851 4.3133C2.50488 4.48 2.14369 4.85485 1.93182 5.15396C1.87214 5.23834 1.813 5.31407 1.75234 5.39175C1.72465 5.4272 1.69665 5.46306 1.66814 5.50032C1.57833 5.61771 1.48763 5.74396 1.39929 5.90071C1.22225 6.21487 1.05912 6.64369 0.921262 7.36325L0.91967 7.37584C0.851706 8.46413 0.96984 9.16671 1.17329 9.69286C1.336 10.1137 1.55336 10.4192 1.75927 10.7086C1.80935 10.779 1.85911 10.8489 1.90689 10.9189C2.35287 11.5631 2.8469 12.0124 3.45333 12.2865C4.05882 12.5601 4.76818 12.655 5.63657 12.6057C6.10658 12.5751 6.38675 12.5668 6.60293 12.593C6.81351 12.6184 6.96587 12.6768 7.17863 12.7891L7.18168 12.7907C7.60385 12.9954 7.96291 13.0564 8.83204 13.0564C9.30168 13.0625 9.58858 13.0748 9.80579 13.1142C10.0176 13.1525 10.1644 13.2171 10.351 13.3337C10.6083 13.493 11.0367 13.6504 11.3424 13.6962L11.8056 14.1689L11.8153 14.1776L12.0736 14.3803L12.3758 14.6825C13.1487 15.6098 13.7207 16.2339 14.1662 16.6137C14.6072 16.9897 14.9498 17.1489 15.2564 17.0871L15.2772 17.0829L15.2946 17.0706C15.548 16.8906 15.642 16.5961 15.6874 16.266C15.7103 16.0996 15.7216 15.9175 15.7322 15.7278C15.7334 15.706 15.7346 15.6841 15.7358 15.662C15.7451 15.4912 15.7548 15.3139 15.7723 15.1311L15.7727 15.1216V15.1205V15.1193V15.1181V15.117V15.1158V15.1146V15.1133V15.1121V15.1109V15.1096V15.1084V15.1071V15.1058V15.1046V15.1033V15.1019V15.1006V15.0993V15.0979V15.0966V15.0952V15.0939V15.0925V15.0911V15.0897V15.0883V15.0868V15.0854V15.0839V15.0825V15.081V15.0795V15.0781V15.0766V15.0751V15.0735V15.072V15.0705V15.0689V15.0674V15.0658V15.0642V15.0626V15.061V15.0594V15.0578V15.0562V15.0546V15.0529V15.0513V15.0496V15.0479V15.0462V15.0445V15.0428V15.0411V15.0394V15.0377V15.0359V15.0342V15.0324V15.0307V15.0289V15.0271V15.0253V15.0235V15.0217V15.0199V15.018V15.0162V15.0143V15.0125V15.0106V15.0087V15.0069V15.005V15.0031V15.0012V14.9992V14.9973V14.9954V14.9934V14.9915V14.9895V14.9875V14.9856V14.9836V14.9816V14.9796V14.9776V14.9756V14.9735V14.9715V14.9694V14.9674V14.9653V14.9633V14.9612V14.9591V14.957V14.9549V14.9528V14.9507V14.9486V14.9464V14.9443V14.9421V14.94V14.9378V14.9356V14.9335V14.9313V14.9291V14.9269V14.9247V14.9224V14.9202V14.918V14.9158V14.9135V14.9113V14.909V14.9067V14.9044V14.9022V14.8999V14.8976V14.8953V14.893V14.8906V14.8883V14.886V14.8836V14.8813V14.8789V14.8766V14.8742V14.8718V14.8695V14.8671V14.8647V14.8623V14.8599V14.8575V14.855V14.8526V14.8502V14.8477V14.8453V14.8428V14.8404V14.8379V14.8355V14.833V14.8305V14.828V14.8255V14.823V14.8205V14.818V14.8155V14.8129V14.8104V14.8079V14.8053V14.8028V14.8002V14.7976V14.7951V14.7925V14.7899V14.7873V14.7848V14.7822V14.7796V14.7769V14.7743V14.7717V14.7691V14.7665V14.7638V14.7612V14.7585V14.7559V14.7532V14.7506V14.7479V14.7452V14.7426V14.7399V14.7372V14.7345V14.7318V14.7291V14.7264V14.7237V14.721V14.7182V14.7155V14.7128V14.71V14.7073V14.7046V14.7018V14.6991V14.6963V14.6935V14.6908V14.688V14.6852V14.6824V14.6796V14.6768V14.6741V14.6713V14.6684V14.6656V14.6628V14.66V14.6572V14.6544V14.6515V14.6487V14.6459V14.643V14.6402V14.6373V14.6345V14.6316V14.6288V14.6259V14.623V14.6202V14.6173V14.6144V14.6115V14.6086V14.6057V14.6028V14.6V14.597V14.5941V14.5912V14.5883V14.5854V14.5825V14.5796V14.5766V14.5737V14.5708V14.5679V14.5649V14.562V14.559V14.5561V14.5531V14.5502V14.5472V14.5443V14.5413V14.5383V14.5354V14.5324V14.5294V14.5265V14.5235V14.5205V14.5175V14.5145V14.5115V14.5086V14.5056V14.5026V14.4996V14.4966V14.4936V14.4906V14.4876V14.4845V14.4815V14.4785V14.4755V14.4725V14.4695V14.4664V14.4634V14.4604V14.4574V14.4543V14.4513V14.4483V14.4452V14.4422V14.4391V14.4361V14.4331V14.43V14.427V14.4239V14.4209V14.4178V14.4148V14.4117V14.4086V14.4056V14.4025V14.3995V14.3964V14.3933V14.3903V14.3872V14.3841V14.3811V14.378V14.3749V14.3719V14.3688V14.3657V14.3626V14.3596V14.3565V14.3534V14.3503V14.3473V14.3442V14.3411V14.338V14.3349V14.3318V14.3288V14.3257V14.3226V14.3195V14.3164V14.3133V14.3102V14.3072V14.3041V14.301V14.2979V14.2948V14.2917V14.2886V14.2855V14.2824V14.2794V14.2763V14.2732V14.2701V14.267V14.2639V14.2608V14.2577V14.2546V14.2515V14.2485V14.2454V14.2423V14.2392V14.2361V14.233V14.2299V14.2268V14.2237V14.2207V14.2176V14.2145V14.2114V14.2083V14.2052V14.2022V14.1991V14.196V14.1929V14.1898V14.1867V14.1837V14.1806V14.1775V14.1744V14.1714V14.1683V14.1652V14.1621V14.1591V14.156V14.1529V14.1499V14.1468V14.1437V14.1407V14.1376V14.1346V14.1315V14.1284V14.1254V14.1223V14.1193V14.1162V14.1132V14.1101V14.1071V14.104V14.101V14.0979V14.0949V14.0919V14.0888V14.0858V14.0828V14.0797V14.0767V14.0737V14.0707V14.0676V14.0646V14.0616V14.0586V14.0556V14.0526V14.0495V14.0465V14.0435V14.0405V14.0375V14.0345V14.0315V14.0285V14.0255V14.0226V14.0196V14.0166V14.0136V14.0106V14.0077V14.0047V14.0017V13.9988V13.9958V13.9928V13.9899V13.9869V13.984V13.981V13.9781V13.9751V13.9722V13.9693V13.9663V13.9634V13.9605V13.9575V13.9546V13.9517V13.9488V13.9459V13.943V13.9401V13.9372V13.9343V13.9314V13.9285V13.9256V13.9227V13.9198V13.917V13.9141V13.9112V13.9084V13.9055V13.9026V13.8998V13.8969V13.8941V13.8913V13.8884V13.8856V13.8828V13.8799V13.8771V13.8743V13.8715V13.8687V13.8659V13.8631V13.8603V13.8575V13.8547V13.8519V13.8491V13.8464V13.8436V13.8408V13.8381V13.8353V13.8326V13.8298V13.8271V13.8244V13.8216V13.8189V13.8162V13.8135V13.8108V13.808V13.8053V13.8026V13.8V13.7973V13.7946V13.7919V13.7892C15.7727 13.765 15.7727 13.7409 15.7727 13.7168C15.7724 13.5119 15.7722 13.3162 15.7906 13.1548C15.8009 13.065 15.8164 12.992 15.8381 12.9374C15.8599 12.8824 15.8839 12.8561 15.905 12.8442L15.9062 12.8435C16.9946 12.2107 17.4071 11.1757 17.481 9.7338C17.5049 9.18492 17.6487 8.48813 17.8291 7.93467C18.1009 7.14977 18.1719 6.45157 18.0266 5.81359C17.8811 5.17465 17.521 4.60659 16.9496 4.0787C16.6416 3.79531 16.1469 3.43543 15.8414 3.29495C15.7028 3.22549 15.551 3.12634 15.4177 3.01943C15.2827 2.91115 15.1732 2.79991 15.1147 2.70942C14.8135 2.24803 14.2848 1.88092 13.6888 1.65529C13.0919 1.42932 12.4159 1.34075 11.8108 1.44791C11.5377 1.49646 11.3786 1.51173 11.2245 1.48719C11.0694 1.46248 10.9113 1.39616 10.6432 1.26209C10.2146 1.04782 9.69237 0.926569 9.17941 0.897036C8.66681 0.867521 8.15549 0.929148 7.74907 1.08791L7.7465 1.08895C7.425 1.22497 6.9792 1.472 6.73848 1.66166C6.62839 1.74263 6.50052 1.81814 6.3848 1.87311C6.32676 1.90068 6.27313 1.92243 6.22743 1.93709C6.1801 1.95228 6.14751 1.95781 6.12936 1.95781C5.62966 1.95781 5.04821 2.1678 4.53955 2.48106C4.03078 2.79438 3.57953 3.22044 3.34927 3.66818L3.34875 3.66919C3.30016 3.76638 3.20704 3.88915 3.09433 4.00928C2.98236 4.12862 2.85688 4.23916 2.74851 4.3133ZM2.74851 4.3133L2.80498 4.39583M3.58432 11.1785C2.87805 10.7523 2.15884 9.93812 2.09795 9.13442C2.05753 8.60898 2.07697 8.59152 2.24479 8.44077C2.27921 8.40984 2.31987 8.37332 2.36754 8.32565C2.81809 7.87509 3.90094 7.73239 4.78987 7.89069C5.58138 8.02464 5.84928 7.93941 5.84928 7.53756M14.7139 15.8693L14.7147 15.8672",
18
+ stroke: "",
19
+ strokeWidth: "0.2"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ className: "fillPath strokeFill",
22
+ d: "M8.65005 8.30277L8.65134 8.30009C8.71231 8.17815 8.8171 8.04195 8.93706 7.91884C9.05729 7.79545 9.19829 7.67951 9.33608 7.6007C9.70633 7.38379 10.1293 7.29924 10.4654 7.33513C10.6332 7.35306 10.787 7.40191 10.9015 7.48718C11.019 7.57471 11.0936 7.70039 11.0936 7.85773C11.0936 8.03108 10.9736 8.19102 10.8269 8.30141C10.6768 8.4144 10.4766 8.49352 10.2751 8.49352C10.0222 8.49352 9.85541 8.55675 9.75341 8.66238C9.65164 8.7678 9.59639 8.93413 9.60785 9.1804L9.60789 9.18165C9.62036 9.54954 9.53563 9.84467 9.357 9.9864C9.26327 10.0608 9.14903 10.0877 9.0282 10.062C8.91098 10.0371 8.79408 9.96427 8.68225 9.85244C8.53166 9.70185 8.47034 9.43321 8.46878 9.15974C8.46718 8.8801 8.5276 8.56701 8.65005 8.30277Z",
23
+ fill: "#64748B",
24
+ stroke: "#64748B",
25
+ strokeWidth: "0.2"
26
+ })]
27
+ }), /*#__PURE__*/_jsx("defs", {
28
+ children: /*#__PURE__*/_jsx("clipPath", {
29
+ id: "clip0_38524_18936",
30
+ children: /*#__PURE__*/_jsx("rect", {
31
+ width: "19",
32
+ height: "18",
33
+ fill: "white"
34
+ })
35
+ })
36
+ })]
37
+ });
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const DocsIcon = props => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "13",
6
+ height: "16",
7
+ viewBox: "0 0 13 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M8.32593 1.07031V4.26079C8.32593 4.47233 8.41151 4.67521 8.56385 4.82479C8.71619 4.97437 8.92281 5.05841 9.13825 5.05841H12.3875",
12
+ stroke: "#778599",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M10.7626 15.4275H2.63941C2.20853 15.4275 1.7953 15.2594 1.49062 14.9602C1.18594 14.6611 1.01477 14.2553 1.01477 13.8322V2.66555C1.01477 2.24247 1.18594 1.83671 1.49062 1.53755C1.7953 1.23838 2.20853 1.07031 2.63941 1.07031H8.32567L12.3873 5.05841V13.8322C12.3873 14.2553 12.2161 14.6611 11.9114 14.9602C11.6067 15.2594 11.1935 15.4275 10.7626 15.4275Z",
17
+ stroke: "#778599",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M4.26416 5.85547H5.07648",
22
+ stroke: "#778599",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M4.26416 9.04688H9.13809",
27
+ stroke: "#778599",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ }), /*#__PURE__*/_jsx("path", {
31
+ d: "M4.26416 12.2383H9.13809",
32
+ stroke: "#778599",
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ })]
36
+ });
37
+ };
38
+ export default DocsIcon;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const UserIcon = props => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "12",
6
+ height: "12",
7
+ viewBox: "0 0 12 12",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M6 6C7.38071 6 8.5 4.88071 8.5 3.5C8.5 2.11929 7.38071 1 6 1C4.61929 1 3.5 2.11929 3.5 3.5C3.5 4.88071 4.61929 6 6 6Z",
12
+ stroke: "#84818A",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M10.295 11C10.295 9.065 8.36995 7.5 5.99995 7.5C3.62995 7.5 1.70496 9.065 1.70496 11",
17
+ stroke: "#84818A",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ })]
21
+ });
22
+ };
23
+ export default UserIcon;
@@ -21,6 +21,9 @@ import TextIcon from "../assets/svg/TextIcon";
21
21
  import AddElementIcon from "../assets/svg/AddElementIcon";
22
22
  import AddTemplateIcon from "../assets/svg/AddTemplateIcon";
23
23
  import OpenLinkIcon from "../assets/svg/OpenLinkIcon";
24
+ import { BrainIcon } from "../assets/svg/BrainIcon";
25
+ import DocsIcon from "../assets/svg/DocsIcon";
26
+ import UserIcon from "../assets/svg/UserIcon";
24
27
  import { jsx as _jsx } from "react/jsx-runtime";
25
28
  import { jsxs as _jsxs } from "react/jsx-runtime";
26
29
  const iconList = {
@@ -269,7 +272,10 @@ const iconList = {
269
272
  textIcon: /*#__PURE__*/_jsx(TextIcon, {}),
270
273
  addElement: /*#__PURE__*/_jsx(AddElementIcon, {}),
271
274
  addTemplate: /*#__PURE__*/_jsx(AddTemplateIcon, {}),
272
- openLinkIcon: /*#__PURE__*/_jsx(OpenLinkIcon, {})
275
+ openLinkIcon: /*#__PURE__*/_jsx(OpenLinkIcon, {}),
276
+ brain: /*#__PURE__*/_jsx(BrainIcon, {}),
277
+ docsIcon: /*#__PURE__*/_jsx(DocsIcon, {}),
278
+ userIcon: /*#__PURE__*/_jsx(UserIcon, {})
273
279
  };
274
280
  export const icons = {
275
281
  ...iconList
@@ -22,7 +22,8 @@ const MentionsPopup = /*#__PURE__*/forwardRef((props, ref) => {
22
22
  chars,
23
23
  mentions,
24
24
  setMentions,
25
- type
25
+ type,
26
+ otherProps
26
27
  } = props;
27
28
  const classes = usePopupStyle(theme);
28
29
  const papperRef = useRef(null);
@@ -102,7 +103,8 @@ const MentionsPopup = /*#__PURE__*/forwardRef((props, ref) => {
102
103
  children: char.renderComponent ? char.renderComponent({
103
104
  ref: index === i ? buttonRef : null,
104
105
  selectionTarget: target,
105
- theme: theme
106
+ theme: theme,
107
+ otherProps
106
108
  }) : ListElement ? /*#__PURE__*/_jsx(ListElement, {
107
109
  classes: classes,
108
110
  data: char,
@@ -13,6 +13,7 @@ import { insertDivider } from "../../utils/divider";
13
13
  import { insertFreeGrid } from "../../utils/freegrid";
14
14
  import { Transforms } from "slate";
15
15
  import { insertInfinityAI } from "../../utils/infinityAI";
16
+ import SearchButton from "../../Elements/Search/SearchButton";
16
17
  import { jsx as _jsx } from "react/jsx-runtime";
17
18
  const ELEMENTS_LIST = [{
18
19
  name: "Heading 1",
@@ -149,6 +150,18 @@ const ELEMENTS_LIST = [{
149
150
  ...rest,
150
151
  icoBtnType: "cmd"
151
152
  })
153
+ }, {
154
+ name: "Brain",
155
+ group: "Elements",
156
+ desc: "",
157
+ type: "search",
158
+ renderComponent: rest => /*#__PURE__*/_jsx(SearchButton, {
159
+ ...rest,
160
+ element: {
161
+ name: 'Brain'
162
+ },
163
+ icoBtnType: "cmd"
164
+ })
152
165
  }, {
153
166
  name: "Divider",
154
167
  group: "Elements",
@@ -43,6 +43,7 @@ import Code from "../Elements/EmbedScript/Code";
43
43
  import FreeGrid from "../Elements/FreeGrid/FreeGrid";
44
44
  import FreeGridItem from "../Elements/FreeGrid/FreeGridItem";
45
45
  import FreeGridBox from "../Elements/FreeGrid/FreeGridBox";
46
+ import SearchAttachment from "../Elements/Search/SearchAttachment";
46
47
  // import { wrapThemeBreakpoints } from "../Elements/FreeGrid/breakpointConstants";
47
48
  import { jsx as _jsx } from "react/jsx-runtime";
48
49
  const alignment = ["alignLeft", "alignRight", "alignCenter", "alignJustify"];
@@ -528,6 +529,10 @@ export const getBlock = props => {
528
529
  return /*#__PURE__*/_jsx(Attachments, {
529
530
  ...props
530
531
  });
532
+ case "brains":
533
+ return /*#__PURE__*/_jsx(SearchAttachment, {
534
+ ...props
535
+ });
531
536
  case "variables":
532
537
  return /*#__PURE__*/_jsx(Variables, {
533
538
  ...props
@@ -0,0 +1,16 @@
1
+ import { Transforms } from "slate";
2
+ import insertNewLine from "./insertNewLine";
3
+ export const insertBrain = (editor, data, position) => {
4
+ const brains = {
5
+ type: "brains",
6
+ ...data,
7
+ children: [{
8
+ text: ""
9
+ }]
10
+ };
11
+ Transforms.insertNodes(editor, brains, {
12
+ at: position,
13
+ select: true
14
+ });
15
+ insertNewLine(editor);
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "4.8.3",
3
+ "version": "4.8.4",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"