2025-05-29 12:01:56 +00:00
<MudDialog>
<DialogContent>
@if (this.showInstallPage)
{
<div class="mb-4">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1" Class="mb-2">
2025-05-29 12:01:56 +00:00
AI Studio relies on the <strong>free and open-sourced</strong> third-party app <strong>Pandoc</strong> to process and retrieve data from local
Office files (ex. <strong>Word</strong>) and later other text formats like LaTeX.
2025-05-29 19:29:57 +00:00
</MudJustifiedText>
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
2025-05-29 12:01:56 +00:00
Unfortunately Pandoc's GPL license is not compatible with AI Studios licences, nonetheless software under GPL is generally free to use and
2025-05-29 19:29:57 +00:00
free of charge as well. Therefore you have to accept Pandoc's GPL license before we can download and install Pandoc for free
automatically for you <strong>(recommended)</strong>. However you can download it yourself manually with the instructions below.
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
</div>
2025-05-29 19:32:25 +00:00
2025-05-29 12:01:56 +00:00
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
2025-05-30 09:50:43 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Verified" HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.WhenExpandingLicence">
2025-05-29 19:31:41 +00:00
@if (this.isLoading)
{
<MudSkeleton />
<MudSkeleton Animation="Animation.Wave" />
<MudSkeleton />
}
else if (!string.IsNullOrWhiteSpace(this.licenseText))
{
<MudMarkdown Value="@this.licenseText" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo"/>
}
</ExpansionPanel>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AutoFixHigh" HeaderText="Automatic installation" IsExpanded="true">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and Install", you agree to the terms of the GPL license and Pandoc will be installed automatically for you. Software under GPL is <strong>free of charge</strong> and free to use.
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
<MudButton OnClick="InstallPandocAsync" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.InstallDesktop">
Accept GPL and install for free
</MudButton>
</ExpansionPanel>
2025-05-29 19:39:01 +00:00
2025-05-30 09:50:43 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="Manual installation" ExpandedChanged="this.WhenExpandingManualInstallation">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1" Class="mb-2">
2025-05-29 19:54:04 +00:00
If you prefer to install Pandoc yourself, please follow one of these two guides. Installers are only available for Windows and macOS.
2025-05-30 10:36:38 +00:00
</MudJustifiedText>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<MudExpansionPanels Outlined="false" Elevation="0">
2025-05-29 21:04:53 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AppRegistration" HeaderText="Download installer" IsExpanded="true">
2025-05-29 12:01:56 +00:00
<MudList T="string">
<MudListItem T="string" Class="mb-2">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Accept the terms of the GPL license and download the latest installer with the download button below.
Eventually you need to allow the download of the installer in the download window.
</MudJustifiedText>
2025-05-30 09:53:24 +00:00
<CodeTabs @bind-SelectedIndex="this.selectedInstallerIndex">
2025-05-29 12:01:56 +00:00
<CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock>
2025-05-29 19:54:04 +00:00
<CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock>
2025-05-29 21:00:21 +00:00
<CodeBlock Title="macOS x86">pandoc-@(PANDOC_VERSION)-x86_64-macOS.pkg</CodeBlock>
2025-05-29 12:01:56 +00:00
</CodeTabs>
</MudListItem>
<MudListItem T="string">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Execute the installer and follow the instructions.
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
</MudListItem>
</MudList>
2025-05-29 19:39:01 +00:00
2025-05-30 10:36:38 +00:00
<MudJustifiedText Class="mb-3" Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and download installer", you agree to the terms of the GPL license. Software under GPL is <strong>free of charge</strong> and free to use.
</MudJustifiedText>
2025-05-29 19:39:01 +00:00
2025-05-30 09:50:43 +00:00
<MudButton Href="@this.downloadUrlInstaller" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading">
2025-05-29 12:01:56 +00:00
Accept GPL and download installer
</MudButton>
</ExpansionPanel>
2025-05-29 19:39:01 +00:00
2025-05-29 21:04:53 +00:00
<ExpansionPanel HeaderIcon="@Icons.Material.Outlined.Archive" HeaderText="Download archive">
2025-05-29 12:01:56 +00:00
<MudList T="string">
<MudListItem T="string" Class="mb-2">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Accept the terms of the GPL license and download the latest archive with the download button below.
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
</MudListItem>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<MudListItem T="string" Class="mb-2">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Extract the archive to a folder of your choice, e.g.:
</MudJustifiedText>
2025-05-30 09:16:53 +00:00
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
2025-05-29 12:01:56 +00:00
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc</CodeBlock>
2025-05-30 09:23:17 +00:00
<CodeBlock Title="macOS">~/pandoc</CodeBlock>
2025-05-29 12:01:56 +00:00
<CodeBlock Title="Linux">/usr/local/bin/pandoc</CodeBlock>
</CodeTabs>
</MudListItem>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<MudListItem T="string" Class="mb-2">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Open the folder and copy the full path to the <CodeBlock IsInline="true">@PandocProcessBuilder.PandocExecutableName</CodeBlock> file into your clipboard:
</MudJustifiedText>
2025-05-30 09:16:53 +00:00
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
2025-05-29 12:01:56 +00:00
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc\pandoc-@(PANDOC_VERSION)</CodeBlock>
2025-05-30 09:23:17 +00:00
<CodeBlock Title="macOS">~/pandoc/pandoc-@(PANDOC_VERSION)</CodeBlock>
2025-05-29 12:01:56 +00:00
<CodeBlock Title="Linux">/usr/local/bin/pandoc/pandoc-@(PANDOC_VERSION)</CodeBlock>
</CodeTabs>
</MudListItem>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<MudListItem T="string">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Add the copied path to your system's or user's <CodeBlock IsInline="true">PATH</CodeBlock> environment variable, restart your terminal, and check the installation by typing <CodeBlock IsInline="@true">pandoc --version</CodeBlock> into your terminal:
</MudJustifiedText>
2025-05-30 09:16:53 +00:00
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
2025-05-29 19:40:06 +00:00
<CodeBlock Title="Windows">> pandoc.exe --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
2025-05-29 19:54:04 +00:00
<CodeBlock Title="macOS">> pandoc --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
2025-05-29 19:40:06 +00:00
<CodeBlock Title="Linux">> pandoc --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
2025-05-29 12:01:56 +00:00
</CodeTabs>
</MudListItem>
</MudList>
2025-05-29 19:39:01 +00:00
2025-05-29 12:01:56 +00:00
<MudText Class="mb-3" Typo="Typo.caption">
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and archive", you agree to the terms of the GPL license. Software under GPL is <strong>free of charge</strong> and free to use.
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
</MudText>
2025-05-29 19:39:01 +00:00
2025-05-30 09:50:43 +00:00
<MudButton Href="@this.downloadUrlArchive" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading">
2025-05-29 12:01:56 +00:00
Accept GPL and download archive
</MudButton>
</ExpansionPanel>
</MudExpansionPanels>
</ExpansionPanel>
</MudExpansionPanels>
}
else
{
<MudItem Class="px-8 py-2" Style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;">
2025-05-29 19:39:01 +00:00
@if (this.showSkeleton)
2025-05-29 12:01:56 +00:00
{
<MudSkeleton SkeletonType="SkeletonType.Circle" Animation="Animation.Pulse" Class="mb-4"
Style="width: 4em; height: 4em;"/>
<MudSkeleton SkeletonType="SkeletonType.Rectangle" Animation="Animation.Pulse" Width="230px"
Height="35px"/>
}
2025-05-29 19:39:01 +00:00
else if (this.isPandocAvailable)
2025-05-29 12:01:56 +00:00
{
<MudIcon Class="mb-2" Style="width: 2.5em; height: 2.5em;" Icon="@Icons.Material.Filled.Check"
Color="Color.Success"/>
2025-05-30 10:36:38 +00:00
<MudJustifiedText Typo="Typo.body1" Align="Align.Center">
2025-05-29 12:01:56 +00:00
Pandoc ist auf Ihrem System verfügbar
2025-05-30 10:36:38 +00:00
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
}
else
{
<MudIcon Class="mb-2" Style="width: 3.5em; height: 3.5em;" Icon="@Icons.Material.Filled.Error" Color="Color.Error"/>
2025-05-30 10:36:38 +00:00
<MudJustifiedText Class="mb-6" Typo="Typo.body1" Align="Align.Center">
2025-05-29 12:01:56 +00:00
Pandoc ist auf Ihrem System nicht verfügbar
2025-05-30 10:36:38 +00:00
</MudJustifiedText>
2025-05-29 12:01:56 +00:00
}
</MudItem>
}
</DialogContent>
2025-05-29 19:32:11 +00:00
<DialogActions>
@if (this.showInstallPage)
{
<MudButton Color="Color.Warning" OnClick="@this.RejectLicense" Variant="Variant.Filled">
Reject GPL licence
</MudButton>
}
else
{
<MudButton Color="Color.Primary" OnClick="@this.ProceedToInstallation" Variant="Variant.Filled">
Proceed to installation
</MudButton>
}
</DialogActions>
2025-05-29 12:01:56 +00:00
</MudDialog>