ModelEditor.svelte 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <script lang="ts">
  2. import { v4 as uuidv4 } from 'uuid';
  3. import { toast } from 'svelte-sonner';
  4. import { goto } from '$app/navigation';
  5. import { onMount, getContext, tick } from 'svelte';
  6. import { models, tools, functions, knowledge as knowledgeCollections } from '$lib/stores';
  7. import AdvancedParams from '$lib/components/chat/Settings/Advanced/AdvancedParams.svelte';
  8. import Tags from '$lib/components/common/Tags.svelte';
  9. import Knowledge from '$lib/components/workspace/Models/Knowledge.svelte';
  10. import ToolsSelector from '$lib/components/workspace/Models/ToolsSelector.svelte';
  11. import FiltersSelector from '$lib/components/workspace/Models/FiltersSelector.svelte';
  12. import ActionsSelector from '$lib/components/workspace/Models/ActionsSelector.svelte';
  13. import Capabilities from '$lib/components/workspace/Models/Capabilities.svelte';
  14. import Textarea from '$lib/components/common/Textarea.svelte';
  15. const i18n = getContext('i18n');
  16. export let onSubmit: Function;
  17. export let model = null;
  18. export let edit = false;
  19. let loading = false;
  20. let success = false;
  21. let filesInputElement;
  22. let inputFiles;
  23. let showAdvanced = false;
  24. let showPreview = false;
  25. // ///////////
  26. // model
  27. // ///////////
  28. let id = '';
  29. let name = '';
  30. $: if (!edit) {
  31. if (name) {
  32. id = name
  33. .replace(/\s+/g, '-')
  34. .replace(/[^a-zA-Z0-9-]/g, '')
  35. .toLowerCase();
  36. }
  37. }
  38. let info = {
  39. id: '',
  40. base_model_id: null,
  41. name: '',
  42. meta: {
  43. profile_image_url: '/static/favicon.png',
  44. description: '',
  45. suggestion_prompts: null,
  46. tags: []
  47. },
  48. params: {
  49. system: ''
  50. }
  51. };
  52. let params = {};
  53. let capabilities = {
  54. vision: true,
  55. usage: undefined
  56. };
  57. let knowledge = [];
  58. let toolIds = [];
  59. let filterIds = [];
  60. let actionIds = [];
  61. const addUsage = (base_model_id) => {
  62. const baseModel = $models.find((m) => m.id === base_model_id);
  63. if (baseModel) {
  64. if (baseModel.owned_by === 'openai') {
  65. capabilities.usage = baseModel.info?.meta?.capabilities?.usage ?? false;
  66. } else {
  67. delete capabilities.usage;
  68. }
  69. capabilities = capabilities;
  70. }
  71. };
  72. const submitHandler = async () => {
  73. loading = true;
  74. info.id = id;
  75. info.name = name;
  76. info.meta.capabilities = capabilities;
  77. if (knowledge.length > 0) {
  78. info.meta.knowledge = knowledge;
  79. } else {
  80. if (info.meta.knowledge) {
  81. delete info.meta.knowledge;
  82. }
  83. }
  84. if (toolIds.length > 0) {
  85. info.meta.toolIds = toolIds;
  86. } else {
  87. if (info.meta.toolIds) {
  88. delete info.meta.toolIds;
  89. }
  90. }
  91. if (filterIds.length > 0) {
  92. info.meta.filterIds = filterIds;
  93. } else {
  94. if (info.meta.filterIds) {
  95. delete info.meta.filterIds;
  96. }
  97. }
  98. if (actionIds.length > 0) {
  99. info.meta.actionIds = actionIds;
  100. } else {
  101. if (info.meta.actionIds) {
  102. delete info.meta.actionIds;
  103. }
  104. }
  105. info.params.stop = params.stop ? params.stop.split(',').filter((s) => s.trim()) : null;
  106. Object.keys(info.params).forEach((key) => {
  107. if (info.params[key] === '' || info.params[key] === null) {
  108. delete info.params[key];
  109. }
  110. });
  111. await onSubmit(info);
  112. loading = false;
  113. success = false;
  114. };
  115. onMount(async () => {
  116. // Scroll to top 'workspace-container' element
  117. const workspaceContainer = document.getElementById('workspace-container');
  118. if (workspaceContainer) {
  119. workspaceContainer.scrollTop = 0;
  120. }
  121. if (model) {
  122. name = model.name;
  123. await tick();
  124. id = model.id;
  125. if (model.info.base_model_id) {
  126. const base_model = $models
  127. .filter((m) => !m?.preset && m?.owned_by !== 'arena')
  128. .find((m) =>
  129. [model.info.base_model_id, `${model.info.base_model_id}:latest`].includes(m.id)
  130. );
  131. console.log('base_model', base_model);
  132. if (base_model) {
  133. model.info.base_model_id = base_model.id;
  134. } else {
  135. model.info.base_model_id = null;
  136. }
  137. }
  138. params = { ...params, ...model?.info?.params };
  139. params.stop = params?.stop
  140. ? (typeof params.stop === 'string' ? params.stop.split(',') : (params?.stop ?? [])).join(
  141. ','
  142. )
  143. : null;
  144. toolIds = model?.info?.meta?.toolIds ?? [];
  145. filterIds = model?.info?.meta?.filterIds ?? [];
  146. actionIds = model?.info?.meta?.actionIds ?? [];
  147. knowledge = (model?.info?.meta?.knowledge ?? []).map((item) => {
  148. if (item?.collection_name) {
  149. return {
  150. id: item.collection_name,
  151. name: item.name,
  152. legacy: true
  153. };
  154. } else if (item?.collection_names) {
  155. return {
  156. name: item.name,
  157. type: 'collection',
  158. collection_names: item.collection_names,
  159. legacy: true
  160. };
  161. } else {
  162. return item;
  163. }
  164. });
  165. capabilities = { ...capabilities, ...(model?.info?.meta?.capabilities ?? {}) };
  166. if (model?.owned_by === 'openai') {
  167. capabilities.usage = false;
  168. }
  169. info = {
  170. ...info,
  171. ...JSON.parse(
  172. JSON.stringify(
  173. model?.info
  174. ? model?.info
  175. : {
  176. id: model.id,
  177. name: model.name
  178. }
  179. )
  180. )
  181. };
  182. console.log(model);
  183. }
  184. });
  185. </script>
  186. <div class="w-full max-h-full flex justify-center">
  187. <input
  188. bind:this={filesInputElement}
  189. bind:files={inputFiles}
  190. type="file"
  191. hidden
  192. accept="image/*"
  193. on:change={() => {
  194. let reader = new FileReader();
  195. reader.onload = (event) => {
  196. let originalImageUrl = `${event.target.result}`;
  197. const img = new Image();
  198. img.src = originalImageUrl;
  199. img.onload = function () {
  200. const canvas = document.createElement('canvas');
  201. const ctx = canvas.getContext('2d');
  202. // Calculate the aspect ratio of the image
  203. const aspectRatio = img.width / img.height;
  204. // Calculate the new width and height to fit within 100x100
  205. let newWidth, newHeight;
  206. if (aspectRatio > 1) {
  207. newWidth = 250 * aspectRatio;
  208. newHeight = 250;
  209. } else {
  210. newWidth = 250;
  211. newHeight = 250 / aspectRatio;
  212. }
  213. // Set the canvas size
  214. canvas.width = 250;
  215. canvas.height = 250;
  216. // Calculate the position to center the image
  217. const offsetX = (250 - newWidth) / 2;
  218. const offsetY = (250 - newHeight) / 2;
  219. // Draw the image on the canvas
  220. ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight);
  221. // Get the base64 representation of the compressed image
  222. const compressedSrc = canvas.toDataURL();
  223. // Display the compressed image
  224. info.meta.profile_image_url = compressedSrc;
  225. inputFiles = null;
  226. };
  227. };
  228. if (
  229. inputFiles &&
  230. inputFiles.length > 0 &&
  231. ['image/gif', 'image/webp', 'image/jpeg', 'image/png', 'image/svg+xml'].includes(
  232. inputFiles[0]['type']
  233. )
  234. ) {
  235. reader.readAsDataURL(inputFiles[0]);
  236. } else {
  237. console.log(`Unsupported File Type '${inputFiles[0]['type']}'.`);
  238. inputFiles = null;
  239. }
  240. }}
  241. />
  242. {#if !edit || model}
  243. <form
  244. class="flex flex-col md:flex-row mx-auto gap-3 md:gap-6"
  245. on:submit|preventDefault={() => {
  246. submitHandler();
  247. }}
  248. >
  249. <div class="self-center md:self-start flex justify-center my-2 flex-shrink-0">
  250. <div class="self-center">
  251. <button
  252. class="rounded-2xl flex flex-shrink-0 items-center bg-white shadow-2xl group relative"
  253. type="button"
  254. on:click={() => {
  255. filesInputElement.click();
  256. }}
  257. >
  258. {#if info.meta.profile_image_url}
  259. <img
  260. src={info.meta.profile_image_url}
  261. alt="model profile"
  262. class="rounded-lg size-72 md:size-64 object-cover shrink-0"
  263. />
  264. {:else}
  265. <img
  266. src="/static/favicon.png"
  267. alt="model profile"
  268. class=" rounded-lg size-72 md:size-64 object-cover shrink-0"
  269. />
  270. {/if}
  271. <div class="absolute bottom-0 right-0 z-10">
  272. <div class="m-1.5">
  273. <div
  274. class="shadow-xl p-1 rounded-full border-2 border-white bg-gray-800 text-white group-hover:bg-gray-600 transition dark:border-black dark:bg-white dark:group-hover:bg-gray-200 dark:text-black"
  275. >
  276. <svg
  277. xmlns="http://www.w3.org/2000/svg"
  278. viewBox="0 0 16 16"
  279. fill="currentColor"
  280. class="size-5"
  281. >
  282. <path
  283. fill-rule="evenodd"
  284. d="M2 4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm10.5 5.707a.5.5 0 0 0-.146-.353l-1-1a.5.5 0 0 0-.708 0L9.354 9.646a.5.5 0 0 1-.708 0L6.354 7.354a.5.5 0 0 0-.708 0l-2 2a.5.5 0 0 0-.146.353V12a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V9.707ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"
  285. clip-rule="evenodd"
  286. />
  287. </svg>
  288. </div>
  289. </div>
  290. </div>
  291. <div
  292. class="absolute top-0 bottom-0 left-0 right-0 bg-white dark:bg-black rounded-lg opacity-0 group-hover:opacity-20 transition"
  293. ></div>
  294. </button>
  295. </div>
  296. </div>
  297. <div>
  298. <div class="mt-2 my-2 flex flex-col">
  299. <div class="flex-1">
  300. <div>
  301. <input
  302. class="text-3xl font-semibold w-full bg-transparent outline-none"
  303. placeholder={$i18n.t('Model Name')}
  304. bind:value={name}
  305. required
  306. />
  307. </div>
  308. </div>
  309. <div class="flex-1">
  310. <!-- <div class=" text-sm font-semibold">{$i18n.t('Model ID')}*</div> -->
  311. <div>
  312. <input
  313. class="text-xs w-full bg-transparent text-gray-500 outline-none"
  314. placeholder={$i18n.t('Model ID')}
  315. value={id}
  316. disabled={edit}
  317. required
  318. />
  319. </div>
  320. </div>
  321. </div>
  322. {#if !edit || model.preset}
  323. <div class="my-1">
  324. <div class=" text-sm font-semibold mb-1">{$i18n.t('Base Model (From)')}</div>
  325. <div>
  326. <select
  327. class="text-sm w-full bg-transparent outline-none"
  328. placeholder="Select a base model (e.g. llama3, gpt-4o)"
  329. bind:value={info.base_model_id}
  330. on:change={(e) => {
  331. addUsage(e.target.value);
  332. }}
  333. required
  334. >
  335. <option value={null} class=" text-gray-900">{$i18n.t('Select a base model')}</option
  336. >
  337. {#each $models.filter((m) => (model ? m.id !== model.id : true) && !m?.preset && m?.owned_by !== 'arena') as model}
  338. <option value={model.id} class=" text-gray-900">{model.name}</option>
  339. {/each}
  340. </select>
  341. </div>
  342. </div>
  343. {/if}
  344. <div class="my-1">
  345. <div class="mb-1 flex w-full justify-between items-center">
  346. <div class=" self-center text-sm font-semibold">{$i18n.t('Description')}</div>
  347. <button
  348. class="p-1 text-xs flex rounded transition"
  349. type="button"
  350. on:click={() => {
  351. if (info.meta.description === null) {
  352. info.meta.description = '';
  353. } else {
  354. info.meta.description = null;
  355. }
  356. }}
  357. >
  358. {#if info.meta.description === null}
  359. <span class="ml-2 self-center">{$i18n.t('Default')}</span>
  360. {:else}
  361. <span class="ml-2 self-center">{$i18n.t('Custom')}</span>
  362. {/if}
  363. </button>
  364. </div>
  365. {#if info.meta.description !== null}
  366. <Textarea
  367. className=" text-sm w-full bg-transparent outline-none resize-none overflow-y-hidden "
  368. placeholder={$i18n.t('Add a short description about what this model does')}
  369. rows={3}
  370. bind:value={info.meta.description}
  371. />
  372. {/if}
  373. </div>
  374. <hr class=" dark:border-gray-850 my-1.5" />
  375. <div class="my-2">
  376. <div class="flex w-full justify-between">
  377. <div class=" self-center text-sm font-semibold">{$i18n.t('Model Params')}</div>
  378. </div>
  379. <div class="mt-2">
  380. <div class="my-1">
  381. <div class=" text-xs font-semibold mb-2">{$i18n.t('System Prompt')}</div>
  382. <div>
  383. <Textarea
  384. className=" text-sm w-full bg-transparent outline-none resize-none overflow-y-hidden "
  385. placeholder={`Write your model system prompt content here\ne.g.) You are Mario from Super Mario Bros, acting as an assistant.`}
  386. rows={4}
  387. bind:value={info.params.system}
  388. />
  389. </div>
  390. </div>
  391. <div class="flex w-full justify-between">
  392. <div class=" self-center text-xs font-semibold">
  393. {$i18n.t('Advanced Params')}
  394. </div>
  395. <button
  396. class="p-1 px-3 text-xs flex rounded transition"
  397. type="button"
  398. on:click={() => {
  399. showAdvanced = !showAdvanced;
  400. }}
  401. >
  402. {#if showAdvanced}
  403. <span class="ml-2 self-center">{$i18n.t('Hide')}</span>
  404. {:else}
  405. <span class="ml-2 self-center">{$i18n.t('Show')}</span>
  406. {/if}
  407. </button>
  408. </div>
  409. {#if showAdvanced}
  410. <div class="my-2">
  411. <AdvancedParams
  412. admin={true}
  413. bind:params
  414. on:change={(e) => {
  415. info.params = { ...info.params, ...params };
  416. }}
  417. />
  418. </div>
  419. {/if}
  420. </div>
  421. </div>
  422. <hr class=" dark:border-gray-850 my-1" />
  423. <div class="my-2">
  424. <div class="flex w-full justify-between items-center">
  425. <div class="flex w-full justify-between items-center">
  426. <div class=" self-center text-sm font-semibold">{$i18n.t('Prompt suggestions')}</div>
  427. <button
  428. class="p-1 text-xs flex rounded transition"
  429. type="button"
  430. on:click={() => {
  431. if ((info?.meta?.suggestion_prompts ?? null) === null) {
  432. info.meta.suggestion_prompts = [{ content: '' }];
  433. } else {
  434. info.meta.suggestion_prompts = null;
  435. }
  436. }}
  437. >
  438. {#if (info?.meta?.suggestion_prompts ?? null) === null}
  439. <span class="ml-2 self-center">{$i18n.t('Default')}</span>
  440. {:else}
  441. <span class="ml-2 self-center">{$i18n.t('Custom')}</span>
  442. {/if}
  443. </button>
  444. </div>
  445. {#if (info?.meta?.suggestion_prompts ?? null) !== null}
  446. <button
  447. class="p-1 px-2 text-xs flex rounded transition"
  448. type="button"
  449. on:click={() => {
  450. if (
  451. info.meta.suggestion_prompts.length === 0 ||
  452. info.meta.suggestion_prompts.at(-1).content !== ''
  453. ) {
  454. info.meta.suggestion_prompts = [
  455. ...info.meta.suggestion_prompts,
  456. { content: '' }
  457. ];
  458. }
  459. }}
  460. >
  461. <svg
  462. xmlns="http://www.w3.org/2000/svg"
  463. viewBox="0 0 20 20"
  464. fill="currentColor"
  465. class="w-4 h-4"
  466. >
  467. <path
  468. d="M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z"
  469. />
  470. </svg>
  471. </button>
  472. {/if}
  473. </div>
  474. {#if info?.meta?.suggestion_prompts}
  475. <div class="flex flex-col space-y-1 mt-1 mb-3">
  476. {#if info.meta.suggestion_prompts.length > 0}
  477. {#each info.meta.suggestion_prompts as prompt, promptIdx}
  478. <div class=" flex rounded-lg">
  479. <input
  480. class=" text-sm w-full bg-transparent outline-none border-r border-gray-50 dark:border-gray-850"
  481. placeholder={$i18n.t('Write a prompt suggestion (e.g. Who are you?)')}
  482. bind:value={prompt.content}
  483. />
  484. <button
  485. class="px-2"
  486. type="button"
  487. on:click={() => {
  488. info.meta.suggestion_prompts.splice(promptIdx, 1);
  489. info.meta.suggestion_prompts = info.meta.suggestion_prompts;
  490. }}
  491. >
  492. <svg
  493. xmlns="http://www.w3.org/2000/svg"
  494. viewBox="0 0 20 20"
  495. fill="currentColor"
  496. class="w-4 h-4"
  497. >
  498. <path
  499. d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
  500. />
  501. </svg>
  502. </button>
  503. </div>
  504. {/each}
  505. {:else}
  506. <div class="text-xs text-center">No suggestion prompts</div>
  507. {/if}
  508. </div>
  509. {/if}
  510. </div>
  511. <hr class=" dark:border-gray-850 my-1.5" />
  512. <div class="my-2">
  513. <Knowledge bind:selectedKnowledge={knowledge} collections={$knowledgeCollections} />
  514. </div>
  515. <div class="my-2">
  516. <ToolsSelector bind:selectedToolIds={toolIds} tools={$tools} />
  517. </div>
  518. <div class="my-2">
  519. <FiltersSelector
  520. bind:selectedFilterIds={filterIds}
  521. filters={$functions.filter((func) => func.type === 'filter')}
  522. />
  523. </div>
  524. <div class="my-2">
  525. <ActionsSelector
  526. bind:selectedActionIds={actionIds}
  527. actions={$functions.filter((func) => func.type === 'action')}
  528. />
  529. </div>
  530. <div class="my-2">
  531. <Capabilities bind:capabilities />
  532. </div>
  533. <div class="my-1">
  534. <div class="flex w-full justify-between items-center">
  535. <div class=" self-center text-sm font-semibold">{$i18n.t('Tags')}</div>
  536. </div>
  537. <div class="mt-2">
  538. <Tags
  539. tags={info?.meta?.tags ?? []}
  540. on:delete={(e) => {
  541. const tagName = e.detail;
  542. info.meta.tags = info.meta.tags.filter((tag) => tag.name !== tagName);
  543. }}
  544. on:add={(e) => {
  545. const tagName = e.detail;
  546. if (!(info?.meta?.tags ?? null)) {
  547. info.meta.tags = [{ name: tagName }];
  548. } else {
  549. info.meta.tags = [...info.meta.tags, { name: tagName }];
  550. }
  551. }}
  552. />
  553. </div>
  554. </div>
  555. <div class="my-2 text-gray-300 dark:text-gray-700">
  556. <div class="flex w-full justify-between mb-2">
  557. <div class=" self-center text-sm font-semibold">{$i18n.t('JSON Preview')}</div>
  558. <button
  559. class="p-1 px-3 text-xs flex rounded transition"
  560. type="button"
  561. on:click={() => {
  562. showPreview = !showPreview;
  563. }}
  564. >
  565. {#if showPreview}
  566. <span class="ml-2 self-center">{$i18n.t('Hide')}</span>
  567. {:else}
  568. <span class="ml-2 self-center">{$i18n.t('Show')}</span>
  569. {/if}
  570. </button>
  571. </div>
  572. {#if showPreview}
  573. <div>
  574. <textarea
  575. class="text-sm w-full bg-transparent outline-none resize-none"
  576. rows="10"
  577. value={JSON.stringify(info, null, 2)}
  578. disabled
  579. readonly
  580. />
  581. </div>
  582. {/if}
  583. </div>
  584. <div class="my-2 flex justify-end pb-20">
  585. <button
  586. class=" text-sm px-3 py-2 transition rounded-lg {loading
  587. ? ' cursor-not-allowed bg-white hover:bg-gray-100 text-black'
  588. : ' bg-white hover:bg-gray-100 text-black'} flex w-full justify-center"
  589. type="submit"
  590. disabled={loading}
  591. >
  592. <div class=" self-center font-medium">
  593. {#if edit}
  594. {$i18n.t('Save & Update')}
  595. {:else}
  596. {$i18n.t('Save & Create')}
  597. {/if}
  598. </div>
  599. {#if loading}
  600. <div class="ml-1.5 self-center">
  601. <svg
  602. class=" w-4 h-4"
  603. viewBox="0 0 24 24"
  604. fill="currentColor"
  605. xmlns="http://www.w3.org/2000/svg"
  606. ><style>
  607. .spinner_ajPY {
  608. transform-origin: center;
  609. animation: spinner_AtaB 0.75s infinite linear;
  610. }
  611. @keyframes spinner_AtaB {
  612. 100% {
  613. transform: rotate(360deg);
  614. }
  615. }
  616. </style><path
  617. d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
  618. opacity=".25"
  619. /><path
  620. d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
  621. class="spinner_ajPY"
  622. /></svg
  623. >
  624. </div>
  625. {/if}
  626. </button>
  627. </div>
  628. </div>
  629. </form>
  630. {/if}
  631. </div>