<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/shopware/trunk/src/Core/System/SystemConfig/Schema/config.xsd">

    <!-- ═══════════════════════════════════════════════════════════════════
         Per-Sales-Channel configuration.

         Deliberately using Shopware's OWN built-in per-sales-channel config
         override (the "Sales Channel" dropdown shown above every plugin
         config screen in Settings > Extensions > My extensions) rather than
         a custom Administration page/table. Every field below can already
         be set to a different value per sales channel out of the box, which
         covers the "each sales channel has its own enabled / display page /
         animation effect" requirement without a bespoke UI to build and
         maintain.
    ═══════════════════════════════════════════════════════════════════ -->
    <card>
        <title>General</title>
        <title lang="de-DE">Allgemein</title>

        <input-field type="bool">
            <name>enabled</name>
            <label>Enable celebration effect</label>
            <label lang="de-DE">Feier-Animation aktivieren</label>
            <helpText>Turns the animation on or off for this sales channel. All other settings below are ignored while this is off.</helpText>
            <helpText lang="de-DE">Schaltet die Animation für diesen Verkaufskanal ein oder aus. Alle weiteren Einstellungen unten werden ignoriert, solange dies deaktiviert ist.</helpText>
            <defaultValue>true</defaultValue>
        </input-field>

        <!-- Only one page is wired up today (see helpText) — kept as a
             select rather than hardcoded so a future page (e.g. My Account
             > Order History detail) can be added as a new <option> without
             a config-schema/migration change; existing sales-channel
             overrides simply keep working. -->
        <input-field type="single-select">
            <name>displayPage</name>
            <label>Display page</label>
            <label lang="de-DE">Anzeigeseite</label>
            <helpText>Currently only the checkout thank-you page is supported. More pages will be added in a future update.</helpText>
            <helpText lang="de-DE">Aktuell wird nur die Bestellbestätigungsseite (Danke-Seite) unterstützt. Weitere Seiten folgen in einem späteren Update.</helpText>
            <defaultValue>checkout_finish</defaultValue>
            <options>
                <option>
                    <id>checkout_finish</id>
                    <name>Checkout thank-you page</name>
                    <name lang="de-DE">Bestellbestätigungsseite (Danke-Seite)</name>
                </option>
            </options>
        </input-field>

        <input-field type="single-select">
            <name>animationEffect</name>
            <label>Animation effect</label>
            <label lang="de-DE">Animationseffekt</label>
            <helpText>More effects (snow, ...) can be added in a future update without changing this setting's structure.</helpText>
            <helpText lang="de-DE">Weitere Effekte (Schnee, ...) können in einem späteren Update ergänzt werden, ohne dass sich der Aufbau dieser Einstellung ändert.</helpText>
            <defaultValue>confetti</defaultValue>
            <options>
                <option>
                    <id>confetti</id>
                    <name>Confetti</name>
                    <name lang="de-DE">Konfetti</name>
                </option>
                <option>
                    <id>fireworks</id>
                    <name>Fireworks</name>
                    <name lang="de-DE">Feuerwerk</name>
                </option>
            </options>
        </input-field>

        <!-- Only applies when animationEffect (above) is 'confetti' — a
             multi-select rather than a fixed set so a merchant can mix and
             match, or narrow it down to just one shape. square/circle/star
             are canvas-confetti's own built-in shapes; 'wave' is a custom
             SVG-path shape built in confetti.js via confetti.shapeFromPath()
             — canvas-confetti has no native wavy-ribbon shape. Kept out of
             the default selection (existing sales-channel overrides don't
             silently change look) — merchants opt in explicitly. -->
        <input-field type="multi-select">
            <name>confettiParticleShapes</name>
            <label>Confetti particle shapes</label>
            <label lang="de-DE">Konfetti-Partikelformen</label>
            <helpText>Only applies when Animation effect above is set to Confetti. Pick one or more shapes — leave at least one selected.</helpText>
            <helpText lang="de-DE">Gilt nur, wenn oben als Animationseffekt "Konfetti" ausgewählt ist. Wählen Sie eine oder mehrere Formen aus — mindestens eine muss ausgewählt bleiben.</helpText>
            <defaultValue>square,circle,star</defaultValue>
            <options>
                <option>
                    <id>square</id>
                    <name>Squares</name>
                    <name lang="de-DE">Quadrate</name>
                </option>
                <option>
                    <id>circle</id>
                    <name>Circles</name>
                    <name lang="de-DE">Kreise</name>
                </option>
                <option>
                    <id>star</id>
                    <name>Stars</name>
                    <name lang="de-DE">Sterne</name>
                </option>
                <option>
                    <id>wave</id>
                    <name>Waves</name>
                    <name lang="de-DE">Wellen</name>
                </option>
            </options>
        </input-field>
    </card>

</config>
