Documents.svelte 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. <script lang="ts">
  2. import { toast } from 'svelte-sonner';
  3. import fileSaver from 'file-saver';
  4. const { saveAs } = fileSaver;
  5. import { onMount, getContext } from 'svelte';
  6. import { WEBUI_NAME, documents } from '$lib/stores';
  7. import { createNewDoc, deleteDocByName, getDocs } from '$lib/apis/documents';
  8. import { SUPPORTED_FILE_TYPE, SUPPORTED_FILE_EXTENSIONS } from '$lib/constants';
  9. import { uploadDocToVectorDB } from '$lib/apis/rag';
  10. import { transformFileName } from '$lib/utils';
  11. import Checkbox from '$lib/components/common/Checkbox.svelte';
  12. import EditDocModal from '$lib/components/documents/EditDocModal.svelte';
  13. import AddFilesPlaceholder from '$lib/components/AddFilesPlaceholder.svelte';
  14. import AddDocModal from '$lib/components/documents/AddDocModal.svelte';
  15. const i18n = getContext('i18n');
  16. let importFiles = '';
  17. let inputFiles = '';
  18. let query = '';
  19. let documentsImportInputElement: HTMLInputElement;
  20. let tags = [];
  21. let showSettingsModal = false;
  22. let showAddDocModal = false;
  23. let showEditDocModal = false;
  24. let selectedDoc;
  25. let selectedTag = '';
  26. let dragged = false;
  27. const deleteDoc = async (name) => {
  28. await deleteDocByName(localStorage.token, name);
  29. await documents.set(await getDocs(localStorage.token));
  30. };
  31. const deleteDocs = async (docs) => {
  32. const res = await Promise.all(
  33. docs.map(async (doc) => {
  34. return await deleteDocByName(localStorage.token, doc.name);
  35. })
  36. );
  37. await documents.set(await getDocs(localStorage.token));
  38. };
  39. const uploadDoc = async (file) => {
  40. const res = await uploadDocToVectorDB(localStorage.token, '', file).catch((error) => {
  41. toast.error(error);
  42. return null;
  43. });
  44. if (res) {
  45. await createNewDoc(
  46. localStorage.token,
  47. res.collection_name,
  48. res.filename,
  49. transformFileName(res.filename),
  50. res.filename
  51. ).catch((error) => {
  52. toast.error(error);
  53. return null;
  54. });
  55. await documents.set(await getDocs(localStorage.token));
  56. }
  57. };
  58. onMount(() => {
  59. documents.subscribe((docs) => {
  60. tags = docs.reduce((a, e, i, arr) => {
  61. return [...new Set([...a, ...(e?.content?.tags ?? []).map((tag) => tag.name)])];
  62. }, []);
  63. });
  64. const dropZone = document.querySelector('body');
  65. const onDragOver = (e) => {
  66. e.preventDefault();
  67. dragged = true;
  68. };
  69. const onDragLeave = () => {
  70. dragged = false;
  71. };
  72. const onDrop = async (e) => {
  73. e.preventDefault();
  74. if (e.dataTransfer?.files) {
  75. let reader = new FileReader();
  76. reader.onload = (event) => {
  77. files = [
  78. ...files,
  79. {
  80. type: 'image',
  81. url: `${event.target.result}`
  82. }
  83. ];
  84. };
  85. const inputFiles = e.dataTransfer?.files;
  86. if (inputFiles && inputFiles.length > 0) {
  87. for (const file of inputFiles) {
  88. console.log(file, file.name.split('.').at(-1));
  89. if (
  90. SUPPORTED_FILE_TYPE.includes(file['type']) ||
  91. SUPPORTED_FILE_EXTENSIONS.includes(file.name.split('.').at(-1))
  92. ) {
  93. uploadDoc(file);
  94. } else {
  95. toast.error(
  96. `Unknown File Type '${file['type']}', but accepting and treating as plain text`
  97. );
  98. uploadDoc(file);
  99. }
  100. }
  101. } else {
  102. toast.error($i18n.t(`File not found.`));
  103. }
  104. }
  105. dragged = false;
  106. };
  107. dropZone?.addEventListener('dragover', onDragOver);
  108. dropZone?.addEventListener('drop', onDrop);
  109. dropZone?.addEventListener('dragleave', onDragLeave);
  110. return () => {
  111. dropZone?.removeEventListener('dragover', onDragOver);
  112. dropZone?.removeEventListener('drop', onDrop);
  113. dropZone?.removeEventListener('dragleave', onDragLeave);
  114. };
  115. });
  116. let filteredDocs;
  117. $: filteredDocs = $documents.filter(
  118. (doc) =>
  119. (selectedTag === '' ||
  120. (doc?.content?.tags ?? []).map((tag) => tag.name).includes(selectedTag)) &&
  121. (query === '' || doc.name.includes(query))
  122. );
  123. </script>
  124. <svelte:head>
  125. <title>
  126. {$i18n.t('Documents')} | {$WEBUI_NAME}
  127. </title>
  128. </svelte:head>
  129. {#if dragged}
  130. <div
  131. class="fixed w-full h-full flex z-50 touch-none pointer-events-none"
  132. id="dropzone"
  133. role="region"
  134. aria-label="Drag and Drop Container"
  135. >
  136. <div class="absolute rounded-xl w-full h-full backdrop-blur bg-gray-800/40 flex justify-center">
  137. <div class="m-auto pt-64 flex flex-col justify-center">
  138. <div class="max-w-md">
  139. <AddFilesPlaceholder>
  140. <div class=" mt-2 text-center text-sm dark:text-gray-200 w-full">
  141. Drop any files here to add to my documents
  142. </div>
  143. </AddFilesPlaceholder>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. {/if}
  149. {#key selectedDoc}
  150. <EditDocModal bind:show={showEditDocModal} {selectedDoc} />
  151. {/key}
  152. <AddDocModal bind:show={showAddDocModal} />
  153. <div class="mb-3">
  154. <div class="flex justify-between items-center">
  155. <div class=" text-lg font-semibold self-center">{$i18n.t('Documents')}</div>
  156. </div>
  157. </div>
  158. <div class=" flex w-full space-x-2">
  159. <div class="flex flex-1">
  160. <div class=" self-center ml-1 mr-3">
  161. <svg
  162. xmlns="http://www.w3.org/2000/svg"
  163. viewBox="0 0 20 20"
  164. fill="currentColor"
  165. class="w-4 h-4"
  166. >
  167. <path
  168. fill-rule="evenodd"
  169. d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z"
  170. clip-rule="evenodd"
  171. />
  172. </svg>
  173. </div>
  174. <input
  175. class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent"
  176. bind:value={query}
  177. placeholder={$i18n.t('Search Documents')}
  178. />
  179. </div>
  180. <div>
  181. <button
  182. class=" px-2 py-2 rounded-xl border border-gray-200 dark:border-gray-600 dark:border-0 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 transition font-medium text-sm flex items-center space-x-1"
  183. on:click={() => {
  184. showAddDocModal = true;
  185. }}
  186. >
  187. <svg
  188. xmlns="http://www.w3.org/2000/svg"
  189. viewBox="0 0 16 16"
  190. fill="currentColor"
  191. class="w-4 h-4"
  192. >
  193. <path
  194. d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"
  195. />
  196. </svg>
  197. </button>
  198. </div>
  199. </div>
  200. <!-- <div>
  201. <div
  202. class="my-3 py-16 rounded-lg border-2 border-dashed dark:border-gray-600 {dragged &&
  203. ' dark:bg-gray-700'} "
  204. role="region"
  205. on:drop={onDrop}
  206. on:dragover={onDragOver}
  207. on:dragleave={onDragLeave}
  208. >
  209. <div class=" pointer-events-none">
  210. <div class="text-center dark:text-white text-2xl font-semibold z-50">{$i18n.t('Add Files')}</div>
  211. <div class=" mt-2 text-center text-sm dark:text-gray-200 w-full">
  212. Drop any files here to add to my documents
  213. </div>
  214. </div>
  215. </div>
  216. </div> -->
  217. <hr class=" dark:border-gray-850 my-2.5" />
  218. {#if tags.length > 0}
  219. <div class="px-2.5 pt-1 flex gap-1 flex-wrap">
  220. <div class="ml-0.5 pr-3 my-auto flex items-center">
  221. <Checkbox
  222. state={filteredDocs.filter((doc) => doc?.selected === 'checked').length ===
  223. filteredDocs.length
  224. ? 'checked'
  225. : 'unchecked'}
  226. indeterminate={filteredDocs.filter((doc) => doc?.selected === 'checked').length > 0 &&
  227. filteredDocs.filter((doc) => doc?.selected === 'checked').length !== filteredDocs.length}
  228. on:change={(e) => {
  229. if (e.detail === 'checked') {
  230. filteredDocs = filteredDocs.map((doc) => ({ ...doc, selected: 'checked' }));
  231. } else if (e.detail === 'unchecked') {
  232. filteredDocs = filteredDocs.map((doc) => ({ ...doc, selected: 'unchecked' }));
  233. }
  234. }}
  235. />
  236. </div>
  237. {#if filteredDocs.filter((doc) => doc?.selected === 'checked').length === 0}
  238. <button
  239. class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:text-white"
  240. on:click={async () => {
  241. selectedTag = '';
  242. // await chats.set(await getChatListByTagName(localStorage.token, tag.name));
  243. }}
  244. >
  245. <div class=" text-xs font-medium self-center line-clamp-1">{$i18n.t('all')}</div>
  246. </button>
  247. {#each tags as tag}
  248. <button
  249. class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:text-white"
  250. on:click={async () => {
  251. selectedTag = tag;
  252. // await chats.set(await getChatListByTagName(localStorage.token, tag.name));
  253. }}
  254. >
  255. <div class=" text-xs font-medium self-center line-clamp-1">
  256. #{tag}
  257. </div>
  258. </button>
  259. {/each}
  260. {:else}
  261. <div class="flex-1 flex w-full justify-between items-center">
  262. <div class="text-xs font-medium py-0.5 self-center mr-1">
  263. {filteredDocs.filter((doc) => doc?.selected === 'checked').length} Selected
  264. </div>
  265. <div class="flex gap-1">
  266. <!-- <button
  267. class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:text-white"
  268. on:click={async () => {
  269. selectedTag = '';
  270. // await chats.set(await getChatListByTagName(localStorage.token, tag.name));
  271. }}
  272. >
  273. <div class=" text-xs font-medium self-center line-clamp-1">add tags</div>
  274. </button> -->
  275. <button
  276. class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:text-white"
  277. on:click={async () => {
  278. deleteDocs(filteredDocs.filter((doc) => doc.selected === 'checked'));
  279. // await chats.set(await getChatListByTagName(localStorage.token, tag.name));
  280. }}
  281. >
  282. <div class=" text-xs font-medium self-center line-clamp-1">
  283. {$i18n.t('delete')}
  284. </div>
  285. </button>
  286. </div>
  287. </div>
  288. {/if}
  289. </div>
  290. {/if}
  291. <div class="my-3 mb-5">
  292. {#each filteredDocs as doc}
  293. <button
  294. class=" flex space-x-4 cursor-pointer text-left w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"
  295. on:click={() => {
  296. if (doc?.selected === 'checked') {
  297. doc.selected = 'unchecked';
  298. } else {
  299. doc.selected = 'checked';
  300. }
  301. }}
  302. >
  303. <div class="my-auto flex items-center">
  304. <Checkbox state={doc?.selected ?? 'unchecked'} />
  305. </div>
  306. <div class=" flex flex-1 space-x-4 cursor-pointer w-full">
  307. <div class=" flex items-center space-x-3">
  308. <div class="p-2.5 bg-red-400 text-white rounded-lg">
  309. {#if doc}
  310. <svg
  311. xmlns="http://www.w3.org/2000/svg"
  312. viewBox="0 0 24 24"
  313. fill="currentColor"
  314. class="w-6 h-6"
  315. >
  316. <path
  317. fill-rule="evenodd"
  318. d="M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625ZM7.5 15a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7.5 15Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H8.25Z"
  319. clip-rule="evenodd"
  320. />
  321. <path
  322. d="M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"
  323. />
  324. </svg>
  325. {:else}
  326. <svg
  327. class=" w-6 h-6 translate-y-[0.5px]"
  328. fill="currentColor"
  329. viewBox="0 0 24 24"
  330. xmlns="http://www.w3.org/2000/svg"
  331. ><style>
  332. .spinner_qM83 {
  333. animation: spinner_8HQG 1.05s infinite;
  334. }
  335. .spinner_oXPr {
  336. animation-delay: 0.1s;
  337. }
  338. .spinner_ZTLf {
  339. animation-delay: 0.2s;
  340. }
  341. @keyframes spinner_8HQG {
  342. 0%,
  343. 57.14% {
  344. animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  345. transform: translate(0);
  346. }
  347. 28.57% {
  348. animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  349. transform: translateY(-6px);
  350. }
  351. 100% {
  352. transform: translate(0);
  353. }
  354. }
  355. </style><circle class="spinner_qM83" cx="4" cy="12" r="2.5" /><circle
  356. class="spinner_qM83 spinner_oXPr"
  357. cx="12"
  358. cy="12"
  359. r="2.5"
  360. /><circle class="spinner_qM83 spinner_ZTLf" cx="20" cy="12" r="2.5" /></svg
  361. >
  362. {/if}
  363. </div>
  364. <div class=" self-center flex-1">
  365. <div class=" font-bold line-clamp-1">#{doc.name} ({doc.filename})</div>
  366. <div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
  367. {doc.title}
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="flex flex-row space-x-1 self-center">
  373. <button
  374. class="self-center w-fit text-sm z-20 px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
  375. type="button"
  376. on:click={async (e) => {
  377. e.stopPropagation();
  378. showEditDocModal = !showEditDocModal;
  379. selectedDoc = doc;
  380. }}
  381. >
  382. <svg
  383. xmlns="http://www.w3.org/2000/svg"
  384. fill="none"
  385. viewBox="0 0 24 24"
  386. stroke-width="1.5"
  387. stroke="currentColor"
  388. class="w-4 h-4"
  389. >
  390. <path
  391. stroke-linecap="round"
  392. stroke-linejoin="round"
  393. d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"
  394. />
  395. </svg>
  396. </button>
  397. <!-- <button
  398. class="self-center w-fit text-sm px-2 py-2 border dark:border-gray-600 rounded-xl"
  399. type="button"
  400. on:click={() => {
  401. console.log('download file');
  402. }}
  403. >
  404. <svg
  405. xmlns="http://www.w3.org/2000/svg"
  406. viewBox="0 0 16 16"
  407. fill="currentColor"
  408. class="w-4 h-4"
  409. >
  410. <path
  411. d="M8.75 2.75a.75.75 0 0 0-1.5 0v5.69L5.03 6.22a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0-1.06-1.06L8.75 8.44V2.75Z"
  412. />
  413. <path
  414. d="M3.5 9.75a.75.75 0 0 0-1.5 0v1.5A2.75 2.75 0 0 0 4.75 14h6.5A2.75 2.75 0 0 0 14 11.25v-1.5a.75.75 0 0 0-1.5 0v1.5c0 .69-.56 1.25-1.25 1.25h-6.5c-.69 0-1.25-.56-1.25-1.25v-1.5Z"
  415. />
  416. </svg>
  417. </button> -->
  418. <button
  419. class="self-center w-fit text-sm px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
  420. type="button"
  421. on:click={(e) => {
  422. e.stopPropagation();
  423. deleteDoc(doc.name);
  424. }}
  425. >
  426. <svg
  427. xmlns="http://www.w3.org/2000/svg"
  428. fill="none"
  429. viewBox="0 0 24 24"
  430. stroke-width="1.5"
  431. stroke="currentColor"
  432. class="w-4 h-4"
  433. >
  434. <path
  435. stroke-linecap="round"
  436. stroke-linejoin="round"
  437. d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
  438. />
  439. </svg>
  440. </button>
  441. </div>
  442. </button>
  443. {/each}
  444. </div>
  445. <div class=" text-gray-500 text-xs mt-1">
  446. ⓘ {$i18n.t("Use '#' in the prompt input to load and select your documents.")}
  447. </div>
  448. <div class=" flex justify-end w-full mb-2">
  449. <div class="flex space-x-2">
  450. <input
  451. id="documents-import-input"
  452. bind:this={documentsImportInputElement}
  453. bind:files={importFiles}
  454. type="file"
  455. accept=".json"
  456. hidden
  457. on:change={() => {
  458. console.log(importFiles);
  459. const reader = new FileReader();
  460. reader.onload = async (event) => {
  461. const savedDocs = JSON.parse(event.target.result);
  462. console.log(savedDocs);
  463. for (const doc of savedDocs) {
  464. await createNewDoc(
  465. localStorage.token,
  466. doc.collection_name,
  467. doc.filename,
  468. doc.name,
  469. doc.title
  470. ).catch((error) => {
  471. toast.error(error);
  472. return null;
  473. });
  474. }
  475. await documents.set(await getDocs(localStorage.token));
  476. };
  477. reader.readAsText(importFiles[0]);
  478. }}
  479. />
  480. <button
  481. class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
  482. on:click={() => {
  483. documentsImportInputElement.click();
  484. }}
  485. >
  486. <div class=" self-center mr-2 font-medium">{$i18n.t('Import Documents Mapping')}</div>
  487. <div class=" self-center">
  488. <svg
  489. xmlns="http://www.w3.org/2000/svg"
  490. viewBox="0 0 16 16"
  491. fill="currentColor"
  492. class="w-4 h-4"
  493. >
  494. <path
  495. fill-rule="evenodd"
  496. d="M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm4 9.5a.75.75 0 0 1-.75-.75V8.06l-.72.72a.75.75 0 0 1-1.06-1.06l2-2a.75.75 0 0 1 1.06 0l2 2a.75.75 0 1 1-1.06 1.06l-.72-.72v2.69a.75.75 0 0 1-.75.75Z"
  497. clip-rule="evenodd"
  498. />
  499. </svg>
  500. </div>
  501. </button>
  502. <button
  503. class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
  504. on:click={async () => {
  505. let blob = new Blob([JSON.stringify($documents)], {
  506. type: 'application/json'
  507. });
  508. saveAs(blob, `documents-mapping-export-${Date.now()}.json`);
  509. }}
  510. >
  511. <div class=" self-center mr-2 font-medium">{$i18n.t('Export Documents Mapping')}</div>
  512. <div class=" self-center">
  513. <svg
  514. xmlns="http://www.w3.org/2000/svg"
  515. viewBox="0 0 16 16"
  516. fill="currentColor"
  517. class="w-4 h-4"
  518. >
  519. <path
  520. fill-rule="evenodd"
  521. d="M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm4 3.5a.75.75 0 0 1 .75.75v2.69l.72-.72a.75.75 0 1 1 1.06 1.06l-2 2a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 0 1 1.06-1.06l.72.72V6.25A.75.75 0 0 1 8 5.5Z"
  522. clip-rule="evenodd"
  523. />
  524. </svg>
  525. </div>
  526. </button>
  527. </div>
  528. </div>