{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-FG251",
        "name": "Pokale für 1.-3. Platz FG 251",
        "type": "cup-emblem",
        "basePrice": 8.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Emblem, Gravurschild und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/ps3fg251/",
    "layers": [
        {
            "id": "photo",
            "type": "option",
            "category": "color"
        },
        {
            "id": "motif_gold",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 252,
                "cy": 106.7,
                "scale": 1.2072
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "silber"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ]
        },
        {
            "id": "logo_gold",
            "type": "upload",
            "category": "logo",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "silber"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ],
            "clip": {
                "shape": "circle",
                "fromLayer": "motif_gold",
                "circle": {
                    "cx": 543.5,
                    "cy": 491,
                    "d": 164.7
                }
            }
        },
        {
            "id": "text_gold",
            "type": "text",
            "category": "customText",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "silber"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ],
            "box": {
                "x": 0.4751,
                "y": 0.8716,
                "maxWidthPx": 300,
                "maxHeightPx": 102
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 24
            }
        },
        {
            "id": "motif_silber",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 276.5,
                "cy": 92.3,
                "scale": 1.2357
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ]
        },
        {
            "id": "logo_silber",
            "type": "upload",
            "category": "logo",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ],
            "clip": {
                "shape": "circle",
                "fromLayer": "motif_silber",
                "circle": {
                    "cx": 543.5,
                    "cy": 491,
                    "d": 164.7
                }
            }
        },
        {
            "id": "text_silber",
            "type": "text",
            "category": "customText",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "bronze"
                }
            ],
            "box": {
                "x": 0.4772,
                "y": 0.8708,
                "maxWidthPx": 302,
                "maxHeightPx": 103
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 24
            }
        },
        {
            "id": "motif_bronze",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 291.7,
                "cy": 96.4,
                "scale": 1.209
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "silber"
                }
            ]
        },
        {
            "id": "logo_bronze",
            "type": "upload",
            "category": "logo",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "silber"
                }
            ],
            "clip": {
                "shape": "circle",
                "fromLayer": "motif_bronze",
                "circle": {
                    "cx": 543.5,
                    "cy": 491,
                    "d": 164.7
                }
            }
        },
        {
            "id": "text_bronze",
            "type": "text",
            "category": "customText",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "gold"
                },
                {
                    "category": "color",
                    "equals": "silber"
                }
            ],
            "box": {
                "x": 0.4912,
                "y": 0.8684,
                "maxWidthPx": 312,
                "maxHeightPx": 106
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 24
            }
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Platzierung",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "1. Platz Gold 10 cm · 2. Platz Silber 10 cm · 3. Platz Bronze 10 cm – Emblem und Gravurschild (40 × 15 mm) in der Farbe des Platzes",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold · 1. Platz · 8,90 €",
                    "sku": "BS-FG251",
                    "price": 8.9,
                    "image": "photos/front-gold.webp",
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)"
                },
                {
                    "id": "silber",
                    "label": "Silber · 2. Platz · 8,90 €",
                    "sku": "BS-FG252",
                    "price": 8.9,
                    "image": "photos/front-silber.webp",
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)"
                },
                {
                    "id": "bronze",
                    "label": "Bronze · 3. Platz · 8,90 €",
                    "sku": "BS-FG253",
                    "price": 8.9,
                    "image": "photos/front-bronze.webp",
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)"
                }
            ]
        },
        {
            "id": "motifGroup",
            "title": "Emblem-Motiv",
            "type": "dropdown",
            "options": [
                {
                    "id": "beliebte-motive",
                    "label": "Beliebte Motive"
                },
                {
                    "id": "zahlen-platzierungen-jubilaeen",
                    "label": "Zahlen - Platzierungen - Jubiläen"
                },
                {
                    "id": "allgemeine-motive",
                    "label": "Allgemeine Motive"
                },
                {
                    "id": "american-football-rugby",
                    "label": "American Football & Rugby"
                },
                {
                    "id": "angeln",
                    "label": "Angeln"
                },
                {
                    "id": "baseball-cricket",
                    "label": "Baseball & Cricket"
                },
                {
                    "id": "basketball",
                    "label": "Basketball"
                },
                {
                    "id": "billard",
                    "label": "Billard"
                },
                {
                    "id": "bogenschuetze",
                    "label": "Bogenschütze"
                },
                {
                    "id": "boule-petanque",
                    "label": "Boule & Petanque"
                },
                {
                    "id": "bowling-kegeln",
                    "label": "Bowling & Kegeln"
                },
                {
                    "id": "boxen",
                    "label": "Boxen"
                },
                {
                    "id": "darts",
                    "label": "Darts"
                },
                {
                    "id": "esports-gaming",
                    "label": "eSports & Gaming"
                },
                {
                    "id": "feuerwehr",
                    "label": "Feuerwehr"
                },
                {
                    "id": "fussball",
                    "label": "Fußball"
                },
                {
                    "id": "golf-co",
                    "label": "Golf & Co"
                },
                {
                    "id": "handball",
                    "label": "Handball"
                },
                {
                    "id": "hockey-co",
                    "label": "Hockey & Co"
                },
                {
                    "id": "hundesport",
                    "label": "Hundesport"
                },
                {
                    "id": "kampfsport",
                    "label": "Kampfsport"
                },
                {
                    "id": "karneval",
                    "label": "Karneval"
                },
                {
                    "id": "kicker",
                    "label": "Kicker"
                },
                {
                    "id": "kinder",
                    "label": "Kinder"
                },
                {
                    "id": "kraftsport",
                    "label": "Kraftsport"
                },
                {
                    "id": "laufsport",
                    "label": "Laufsport"
                },
                {
                    "id": "leichtathletik-gymnastik",
                    "label": "Leichtathletik & Gymnastik"
                },
                {
                    "id": "motorsport",
                    "label": "Motorsport"
                },
                {
                    "id": "musik-tanzen",
                    "label": "Musik & Tanzen"
                },
                {
                    "id": "pferdesport",
                    "label": "Pferdesport"
                },
                {
                    "id": "poker-co",
                    "label": "Poker & Co"
                },
                {
                    "id": "radsport",
                    "label": "Radsport"
                },
                {
                    "id": "schach",
                    "label": "Schach"
                },
                {
                    "id": "schuetzen",
                    "label": "Schützen"
                },
                {
                    "id": "schwimmen",
                    "label": "Schwimmen"
                },
                {
                    "id": "tauben",
                    "label": "Tauben"
                },
                {
                    "id": "tennis-co",
                    "label": "Tennis & Co"
                },
                {
                    "id": "volleyball",
                    "label": "Volleyball"
                },
                {
                    "id": "wintersport",
                    "label": "Wintersport"
                },
                {
                    "id": "sonstiges",
                    "label": "Sonstiges"
                }
            ],
            "featured": [
                "beliebte-motive",
                "zahlen-platzierungen-jubilaeen",
                "fussball",
                "handball",
                "basketball",
                "volleyball",
                "tennis-co",
                "laufsport"
            ]
        },
        {
            "id": "motif",
            "title": "Emblem",
            "type": "image-grid",
            "visibleWhen": {
                "category": "motifGroup",
                "isSet": true
            },
            "groupBy": "motifGroup",
            "exclusiveWith": "logo",
            "optionsFrom": "shared/motifs-25.json",
            "collapseOnSelect": true
        },
        {
            "id": "logo",
            "title": "Eigenes Logo als Emblem (optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "exclusiveWith": "motif"
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Gravurschild in Platzfarbe, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ]
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1554,
        "addUrl": "/checkout/cart/add/product/1554/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 6847,
            "font": 6848,
            "preview": 6850,
            "motif": 6846,
            "logo": 6849
        },
        "superAttribute": {
            "category": "color",
            "attributeId": 93,
            "byOption": {
                "gold": 5739,
                "silber": 5740,
                "bronze": 5741
            }
        }
    }
}
