\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{#if $config?.features.enable_community_sharing}\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tshareChat();\n\t\t\t\t\t\t\t\t\t\tshow = false;\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{$i18n.t('Share to OpenWebUI Community')}\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t{/if}\n\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tconst isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n\n\t\t\t\t\t\t\t\t\tif (isSafari) {\n\t\t\t\t\t\t\t\t\t\t// Oh, Safari, you're so special, let's give you some extra love and attention\n\t\t\t\t\t\t\t\t\t\tconsole.log('isSafari');\n\n\t\t\t\t\t\t\t\t\t\tconst getUrlPromise = async () => {\n\t\t\t\t\t\t\t\t\t\t\tconst url = await shareLocalChat();\n\t\t\t\t\t\t\t\t\t\t\treturn new Blob([url], { type: 'text/plain' });\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tnavigator.clipboard\n\t\t\t\t\t\t\t\t\t\t\t.write([\n\t\t\t\t\t\t\t\t\t\t\t\tnew ClipboardItem({\n\t\t\t\t\t\t\t\t\t\t\t\t\t'text/plain': getUrlPromise()\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('Async: Copying to clipboard was successful!');\n\t\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.error('Async: Could not copy text: ', error);\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcopyToClipboard(await shareLocalChat());\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\ttoast.success($i18n.t('Copied shared chat URL to clipboard!'));\n\t\t\t\t\t\t\t\t\tshow = false;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\t{#if chat.share_id}\n\t\t\t\t\t\t\t\t\t{$i18n.t('Update and Copy Link')}\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t{$i18n.t('Copy Link')}\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t
\n\t\t\t\t\t