{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S6-MT.136.04.A",
        "name": "Pokale mit Deckel MT.136.04.A",
        "type": "cup-emblem",
        "basePrice": 25.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/pkmt13604/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "motifSmall",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 274.2,
                "cy": 7.2,
                "scale": 0.6105
            }
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "fromLayer": "motifSmall",
                "circle": {
                    "cx": 543.5,
                    "cy": 491,
                    "d": 150
                }
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4985,
                "y": 0.8847,
                "maxWidthPx": 145,
                "maxHeightPx": 49
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 21
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "255",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 6 Höhen",
            "options": [
                {
                    "id": "255",
                    "label": "25,5 cm · 25,90 €",
                    "sku": "BS-MT.136.04.A",
                    "price": 25.9
                },
                {
                    "id": "270",
                    "label": "27 cm · 27,90 €",
                    "sku": "BS-MT.136.04.B",
                    "price": 27.9
                },
                {
                    "id": "290",
                    "label": "29 cm · 29,90 €",
                    "sku": "BS-MT.136.04.C",
                    "price": 29.9
                },
                {
                    "id": "305",
                    "label": "30,5 cm · 30,90 €",
                    "sku": "BS-MT.136.04.D",
                    "price": 30.9
                },
                {
                    "id": "320",
                    "label": "32 cm · 33,90 €",
                    "sku": "BS-MT.136.04.E",
                    "price": 33.9
                },
                {
                    "id": "340",
                    "label": "34 cm · 34,90 €",
                    "sku": "BS-MT.136.04.F",
                    "price": 34.9
                }
            ]
        },
        {
            "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": "Silbernes Gravurschild auf dem Sockel, 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": 105,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1534,
        "addUrl": "/checkout/cart/add/product/1534/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4775,
            "font": 4776,
            "preview": 4778,
            "motif": 4774,
            "logo": 4777
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "255": 6010,
                "270": 5829,
                "290": 5951,
                "305": 5907,
                "320": 5822,
                "340": 5812
            }
        }
    }
}
