@inherits MSGComponentBase @if (this.isInstallationInProgress) { @T("Please wait for the installation to complete...") } else if (this.ShowInstallationPage) {
@T("AI Studio uses the free and open-source third-party app Pandoc to process and retrieve data from local Office files (such as Word files) or to generate Office documents.") @T("Unfortunately, Pandoc's GPL license isn't compatible with the AI Studios licenses. However, software under the GPL is free to use and free of charge. You'll need to accept the GPL license before we can download and install Pandoc for you automatically (recommended). Alternatively, you might download it yourself using the instructions below or install it otherwise, e.g., by using a package manager of your operating system.")
@if (this.isLoadingLicence) { } else if (!string.IsNullOrWhiteSpace(this.licenseText)) { } @T("""Pandoc is distributed under the GNU General Public License v2 (GPL). 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 free of charge and free to use.""") @T("Accept the GPL and start the installation") @T("If you want to install Pandoc yourself, follow one of these two guides. The first guide uses an installer and is available for Windows and macOS. Alternatively, you might use a package manager of your operating system to install Pandoc.") @T("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.") pandoc-@(LATEST_PANDOC_VERSION)-windows-x86_64.msi pandoc-@(LATEST_PANDOC_VERSION)-arm64-macOS.pkg pandoc-@(LATEST_PANDOC_VERSION)-x86_64-macOS.pkg @T("Execute the installer and follow the instructions.") @T("""Pandoc is distributed under the GNU General Public License v2 (GPL). By clicking "Accept GPL and download installer," you agree to the terms of the GPL license. Software under GPL is free of charge and free to use.""") @T("Accept the GPL and download the installer") @T("Accept the terms of the GPL license and download the latest archive with the download button below.") @T("Extract the archive to a folder of your choice, e.g.:") C:\Users\%USERNAME%\pandoc ~/pandoc /usr/local/bin/pandoc @T("Open the folder and copy the full path to the folder where your Pandoc executable file is into your clipboard:") C:\Users\%USERNAME%\pandoc\pandoc-@(LATEST_PANDOC_VERSION) ~/pandoc/pandoc-@(LATEST_PANDOC_VERSION) /usr/local/bin/pandoc/pandoc-@(LATEST_PANDOC_VERSION) @T("Add the copied path to your system's or user's PATH environment variable, restart your terminal, and check the installation:") > pandoc.exe --version
> pandoc @(LATEST_PANDOC_VERSION)
> pandoc --version
> pandoc @(LATEST_PANDOC_VERSION)
> pandoc --version
> pandoc @(LATEST_PANDOC_VERSION)
@T("""Pandoc is distributed under the GNU General Public License v2 (GPL). By clicking "Accept GPL and archive," you agree to the terms of the GPL license. Software under GPL is free of charge and free to use.""") @T("Accept the GPL and download the archive")
} else { @if (this.pandocInstallation == default) { } else { switch (this.pandocInstallation) { case { CheckWasSuccessful: true, IsAvailable: true }: @T("Pandoc is installed and the version meets the requirements of MindWork AI Studio.") break; case { CheckWasSuccessful: true, IsAvailable: false }: @T("Pandoc is installed, but the version is too old and does not meet the requirements of MindWork AI Studio. AI Studio can help you install a newer version.") break; case { CheckWasSuccessful: false }: @T("Pandoc doesn't seem to be installed on this system. AI Studio can help you install the correct version.") break; } } }
@if (this.isInstallationInProgress) { @T("Close") } else if (this.ShowInstallationPage) { @T("Close") @T("Reject the GPL licence") } else { @T("Close") @if (this.pandocInstallation != default) { switch (this.pandocInstallation) { case { CheckWasSuccessful: true, IsAvailable: false }: case { CheckWasSuccessful: false, IsAvailable: false }: @T("Proceed to the installation") break; case { CheckWasSuccessful: true, IsAvailable: true }: @T("Re-install Pandoc") break; } } }