<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Copyright (c) 2019-2023 by David Gerber - https://zapek.com
  ~
  ~ This file is part of Xeres.
  ~
  ~ Xeres is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Xeres is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Xeres.  If not, see <http://www.gnu.org/licenses/>.
  -->

<?import io.xeres.ui.custom.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<VBox minWidth="320.0" minHeight="260.0" prefWidth="700.0" prefHeight="480.0" alignment="CENTER" styleClass="base-spacing" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.xeres.ui.controller.about.AboutWindowController">
    <HBox VBox.vgrow="NEVER">
        <ImageView fx:id="logo" fitHeight="78.0" fitWidth="71.0" pickOnBounds="true" preserveRatio="true">
            <HBox.margin>
                <Insets bottom="8.0" left="8.0" right="16.0" top="8.0"/>
            </HBox.margin>
            <Image url="@../../image/icon.png"/>
        </ImageView>
        <VBox>
            <Label text="Xeres" styleClass="title-2"/>
            <HBox>
                <Label text="%about.version"/>
                <Label text=" "/>
                <Label fx:id="version"/>
            </HBox>
            <Label fx:id="profile">
                <VBox.margin>
                    <Insets top="4.0"/>
                </VBox.margin>
            </Label>
        </VBox>
    </HBox>
    <TabPane fx:id="infoPane" prefHeight="256.0" prefWidth="560.0" tabClosingPolicy="UNAVAILABLE" VBox.vgrow="ALWAYS">
        <Tab text="%about.title">
            <ScrollPane fitToWidth="true">
                <TextFlow>
                    <padding>
                        <Insets bottom="4.0" left="4.0" right="4.0" top="4.0"/>
                    </padding>
                    <Text text="%about.slogan" styleClass="text-caption"/>
                    <Text text="&#10;&#10;© 2019-2025 "/>
                    <Text text="%about.author-by"/>
                    <Text text=" David Gerber, "/>
                    <Text text="%about.all-rights-reserved"/>
                    <Text text="&#10;&#10;"/>
                    <DisclosedHyperlink text="%about.report-bugs" uri="https://github.com/zapek/Xeres/issues/new/choose"/>
                    <Text text="&#10;&#10;"/>
                    <DisclosedHyperlink text="%about.website" uri="https://xeres.io"/>
                    <Text text="&#10;"/>
                    <DisclosedHyperlink text="%about.wiki" uri="https://github.com/zapek/Xeres/wiki"/>
                    <Text text="&#10;"/>
                    <DisclosedHyperlink text="%about.source-code" uri="https://github.com/zapek/Xeres"/>
                </TextFlow>
            </ScrollPane>
        </Tab>
        <Tab text="%about.authors">
            <ScrollPane fitToWidth="true">
                <TextFlow>
                    <padding>
                        <Insets bottom="4.0" left="4.0" right="4.0" top="4.0"/>
                    </padding>
                    <DisclosedHyperlink text="David Gerber (Zapek)" uri="https://zapek.com/"/>
                    <Text text="&#10;"/>
                    <DisclosedHyperlink text="dg@zapek.com" uri="mailto:dg@zapek.com"/>
                    <Text text="&#10;Benevolent dictator, lead developer" styleClass="text-italic"/>
                </TextFlow>
            </ScrollPane>
        </Tab>
        <Tab text="%about.thanks">
            <ScrollPane fitToWidth="true">
                <TextFlow>
                    <padding>
                        <Insets bottom="4.0" left="4.0" right="4.0" top="4.0"/>
                    </padding>
                    <DisclosedHyperlink text="Olivier Piras" uri="https://github.com/oprs"/>
                    <Text text="&#10;for coming up with the name&#10;&#10;"/>
                    <Text text="Nicolas Dirand&#10;for raising a statue in my image in his village&#10;&#10;"/>
                    <DisclosedHyperlink text="Cyril Soler" uri="https://github.com/csoler"/>
                    <Text text="&#10;for answering my silly questions&#10;&#10;"/>
                    <Text text="Adrien Gerber&#10;for testing the emojis&#10;&#10;"/>
                    <DisclosedHyperlink text="The Retroshare developers" uri="https://retroshare.cc/"/>
                    <Text text="&#10;for coming up with the most interesting P2P concepts"/>
                </TextFlow>
            </ScrollPane>
        </Tab>
        <Tab text="%about.license">
            <ScrollPane fitToWidth="true">
                <TextFlow>
                    <padding>
                        <Insets bottom="4.0" left="4.0" right="4.0" top="4.0"/>
                    </padding>
                    <Text fx:id="license" styleClass="fixed-font"/>
                </TextFlow>
            </ScrollPane>
        </Tab>
        <Tab text="%about.additional-licenses">
            <ScrollPane fitToWidth="true">
                <TextFlow>
                    <padding>
                        <Insets bottom="4.0" left="4.0" right="4.0" top="4.0"/>
                    </padding>
                    <Text text="This software contains unmodified binary redistributions of the following other software:"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Apache Commons Collections" uri="https://commons.apache.org/proper/commons-collections/"/>
                    <Text text="&#10;"/>
                    <Text text=" © The Apache Software Foundation. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Apache Commons IO" uri="https://commons.apache.org/proper/commons-lang/"/>
                    <Text text="&#10;"/>
                    <Text text=" © The Apache Software Foundation. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Apache Commons Lang" uri="https://commons.apache.org/proper/commons-lang/"/>
                    <Text text="&#10;"/>
                    <Text text=" © The Apache Software Foundation. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="AppDirs" uri="https://github.com/harawata/appdirs"/>
                    <Text text="&#10;"/>
                    <Text text=" © Iwao Ave. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="AtlantaFX" uri="https://mkpaz.github.io/atlantafx"/>
                    <Text text="&#10;"/>
                    <Text text=" © mkpaz. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license." uri="https://github.com/mkpaz/atlantafx?tab=MIT-1-ov-file#readme"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Bloomfilter" uri="https://github.com/sangupta/bloomfilter"/>
                    <Text text="&#10;"/>
                    <Text text=" © Sandeep Gupta. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Bouncy Castle" uri="https://www.bouncycastle.org/"/>
                    <Text text="&#10;"/>
                    <Text text=" © The Legion of the Bouncy Castle Inc. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license." uri="https://www.bouncycastle.org/about/license/#License"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Contact Identicons" uri="https://github.com/davidhampgonsalves/Contact-Identicons"/>
                    <Text text="&#10;"/>
                    <Text text=" © David Hamp-Gonsalves. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license." uri="https://github.com/davidhampgonsalves/Contact-Identicons?tab=MIT-1-ov-file"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Flowless" uri="https://github.com/FXMisc/Flowless"/>
                    <Text text="&#10;"/>
                    <Text text=" © Tomas Mikula. Licensed under the "/>
                    <DisclosedHyperlink text="BSD 2-Clause license." uri="https://github.com/FXMisc/Flowless/blob/master/LICENSE"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Flyway" uri="https://www.red-gate.com/products/flyway/community/"/>
                    <Text text="&#10;"/>
                    <Text text=" © RedGate. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="GeoLite2 Country" uri="https://www.maxmind.com/en/geoip-databases"/>
                    <Text text="&#10;"/>
                    <Text text=" © MaxMind. Licensed under the "/>
                    <DisclosedHyperlink text="GeoLite 2 End User License Agreement" uri="https://www.maxmind.com/en/geolite2/eula"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="H2 Database Engine" uri="https://h2database.com/"/>
                    <Text text="&#10;"/>
                    <Text text=" © H2 Group. Dual licensed under the "/>
                    <DisclosedHyperlink text="MPL 2.0 or EPL 1.0." uri="https://h2database.com/html/license.html"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Ikonli" uri="https://github.com/kordamp/ikonli"/>
                    <Text text="&#10;"/>
                    <Text text=" © Andres Almiray. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="JavaFX-Weaver" uri="https://github.com/rgielen/javafx-weaver"/>
                    <Text text="&#10;"/>
                    <Text text=" © René Gielen. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Java Native Access" uri="https://github.com/java-native-access/jna"/>
                    <Text text="&#10;"/>
                    <Text text=" © Timothy Wall and others. Dual licensed under the "/>
                    <DisclosedHyperlink text="LGPL" uri="https://www.gnu.org/licenses/lgpl-3.0.en.html"/>
                    <Text text=" or "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="JSON Patch" uri="https://github.com/java-json-tools/json-patch"/>
                    <Text text="&#10;"/>
                    <Text text=" © the original authors. Dual licensed under the "/>
                    <DisclosedHyperlink text="GPLv3" uri="https://www.gnu.org/licenses/lgpl-3.0.txt"/>
                    <Text text=" or "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="jsoup" uri="https://jsoup.org/"/>
                    <Text text="&#10;"/>
                    <Text text=" © Jonathan Hedley. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license." uri="https://github.com/jhy/jsoup?tab=MIT-1-ov-file#readme"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Material Design 2" uri="https://m2.material.io/"/>
                    <Text text="&#10;"/>
                    <Text text=" © Google. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="mldht" uri="https://github.com/the8472/mldht"/>
                    <Text text="&#10;"/>
                    <Text text=" © the8472. Licensed under the "/>
                    <DisclosedHyperlink text="MPL 2.0." uri="https://www.mozilla.org/en-US/MPL/"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Netty" uri="https://netty.io/"/>
                    <Text text="&#10;"/>
                    <Text text=" © The Netty project. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Sound Effects" uri="https://pixabay.com/sound-effects"/>
                    <Text text="&#10;"/>
                    <Text text=" © Pixabay. Licensed under the "/>
                    <DisclosedHyperlink text="Creative Commons Zero (CC0) license." uri="https://pixabay.com/service/terms/"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Spring Boot" uri="https://spring.io/"/>
                    <Text text="&#10;"/>
                    <Text text=" © Broadcom. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="springdoc-openapi" uri="https://springdoc.org/"/>
                    <Text text="&#10;"/>
                    <Text text=" © the original authors. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://github.com/springdoc/springdoc-openapi/blob/main/LICENSE"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Thumbnailator" uri="https://github.com/coobird/thumbnailator"/>
                    <Text text="&#10;"/>
                    <Text text=" © Chris Kroells. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license" uri="https://github.com/coobird/thumbnailator?tab=MIT-1-ov-file#readme"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Twemoji" uri="https://github.com/jdecked/twemoji"/>
                    <Text text="&#10;"/>
                    <Text text=" © Twitter, Inc and other contributors. Graphics licensed under "/>
                    <DisclosedHyperlink text="CC-BY 4.0." uri="https://creativecommons.org/licenses/by/4.0/"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="Webcam Capture API" uri="https://github.com/sarxos/webcam-capture/tree/master"/>
                    <Text text="&#10;"/>
                    <Text text=" © Bartosz Firyn and Contributors. Licensed under the "/>
                    <DisclosedHyperlink text="MIT license." uri="https://github.com/sarxos/webcam-capture/blob/master/LICENSE.txt"/>
                    <Text text="&#10;&#10;"/>

                    <DisclosedHyperlink text="ZXing (Zebra Crossing)" uri="https://github.com/zxing/zxing"/>
                    <Text text="&#10;"/>
                    <Text text=" © the original authors. Licensed under the "/>
                    <DisclosedHyperlink text="Apache 2.0 license." uri="https://www.apache.org/licenses/LICENSE-2.0"/>
                    <Text text="&#10;&#10;"/>

                </TextFlow>
            </ScrollPane>
        </Tab>
    </TabPane>
    <HBox alignment="TOP_RIGHT">
        <VBox.margin>
            <Insets top="8.0"/>
        </VBox.margin>
        <Button fx:id="closeWindow" minWidth="72.0" mnemonicParsing="false" text="%close"/>
    </HBox>
</VBox>
