{
    "schemaVersion": 2,
    "product": {
        "sku": "06-W575.01-LG",
        "name": "Glaspokal W575.01 mit Lasergravur",
        "type": "glass-laser",
        "basePrice": 79,
        "inclLine": "Lasergravur und Geschenkbox inklusive",
        "previewNote": "Die Vorschau dient der ungefähren Gestaltung. Unsere Fachprofis sichten jeden Auftrag vor der Fertigung und richten Motiv, Logo und Text sauber auf dem Glas aus."
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/w57501/",
    "layers": [
        {
            "id": "glass",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "motif",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 375,
                "cy": 386.7,
                "scale": 1.111
            }
        },
        {
            "id": "logo",
            "type": "upload",
            "category": "logo",
            "laser": true,
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.3973,
                        "y": 0.2707
                    },
                    {
                        "x": 0.6027,
                        "y": 0.2707
                    },
                    {
                        "x": 0.6027,
                        "y": 0.476
                    },
                    {
                        "x": 0.3973,
                        "y": 0.476
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5,
                "y": 0.576,
                "maxWidthPx": 270,
                "maxHeightPx": 100
            },
            "font": {
                "sizePx": 24,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "color": "#ffffff",
                "glow": 8
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "a",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "15 mm Glas, goldfarbener Ring mit Klarglas-Einlage, in Geschenkbox",
            "options": [
                {
                    "id": "a",
                    "label": "175 mm · 79,00 €",
                    "sku": "06-W575.01",
                    "price": 79
                }
            ]
        },
        {
            "id": "motifGroup",
            "title": "Motiv Auswahl",
            "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": "Motiv",
            "type": "image-grid",
            "visibleWhen": {
                "category": "motifGroup",
                "isSet": true
            },
            "groupBy": "motifGroup",
            "exclusiveWith": "logo",
            "optionsFrom": "shared/motifs-laser.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "logo",
            "title": "Eigenes Logo hochladen",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "exclusiveWith": "motif"
        },
        {
            "id": "engravingMode",
            "title": "Wunschgravur",
            "type": "radio",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ],
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Wird weiß in das Glas gelasert"
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 120,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 2263,
        "addUrl": "/checkout/cart/add/product/2263/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 1071,
            "font": 1072,
            "preview": 1074,
            "motif": 1070,
            "logo": 1073
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "a": 5765
            }
        }
    }
}
