{
    "schemaVersion": 2,
    "product": {
        "sku": "WIPO-3ECK-M",
        "name": "Wimpel Dreieck 29 x 20 cm selbst gestalten",
        "type": "pennant",
        "basePrice": 19.9,
        "minQty": 5,
        "tiers": [
            {
                "qty": 50,
                "pct": 10
            },
            {
                "qty": 100,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Beidseitiger Farbdruck, Logo und Wunschtext inklusive &middot; Korrekturabzug vor der Produktion",
        "delivery": {
            "status": "Lieferbar auf Bestellung",
            "timeHtml": "<strong>5-7</strong> Werktage nach Freigabe",
            "usp": "5–7 Werktage nach Freigabe"
        },
        "previewNote": "Die Vorschau zeigt den Aufbau. Vor der Produktion erhalten Sie einen Korrekturabzug Ihres Wimpels per E-Mail zur Freigabe."
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/wp3m/",
    "layers": [
        {
            "id": "pennant",
            "type": "pennant",
            "shape": "dreieck",
            "box": {
                "x": 189,
                "y": 138,
                "w": 372,
                "h": 540
            },
            "band": 27,
            "categories": {
                "variant": "size",
                "layout": "layout",
                "c1": "color1",
                "c2": "color2",
                "band": "bandColor",
                "edge": "edgeColor",
                "chain": "chainColor"
            }
        },
        {
            "id": "logo",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.4008,
                        "y": 0.3296
                    },
                    {
                        "x": 0.5992,
                        "y": 0.3296
                    },
                    {
                        "x": 0.5992,
                        "y": 0.528
                    },
                    {
                        "x": 0.4008,
                        "y": 0.528
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "textLines": "first",
            "box": {
                "x": 0.5,
                "y": 0.274,
                "maxWidthPx": 275,
                "maxHeightPx": 40
            },
            "font": {
                "sizePx": 30,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "colorFrom": "textColor",
                "glow": 3,
                "maxPx": 32
            }
        },
        {
            "id": "engravingSub",
            "type": "text",
            "category": "customText",
            "textLines": "rest",
            "box": {
                "x": 0.5,
                "y": 0.6052,
                "maxWidthPx": 134,
                "maxHeightPx": 59
            },
            "font": {
                "sizePx": 30,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "colorFrom": "textColor",
                "glow": 3,
                "maxPx": 22
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Ausführung",
            "type": "radio",
            "default": "k-k",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Wimpel 29 x 20 cm (Höhe x Breite, ohne Aufhängung)",
            "options": [
                {
                    "id": "k-k",
                    "label": "Kordel · Kordelaufhängung · 19,90 €",
                    "sku": "WIPO-40",
                    "price": 19.9,
                    "edge": "kordel",
                    "hanger": "kordel"
                },
                {
                    "id": "k-c",
                    "label": "Kordel · Kette · 21,90 €",
                    "sku": "WIPO-50",
                    "price": 21.9,
                    "edge": "kordel",
                    "hanger": "kette"
                },
                {
                    "id": "k-z",
                    "label": "Kordel · Kette mit Zierknöpfen · 24,90 €",
                    "sku": "WIPO-98",
                    "price": 24.9,
                    "edge": "kordel",
                    "hanger": "knoepfe"
                },
                {
                    "id": "f-k",
                    "label": "Fransen · Kordelaufhängung · 22,90 €",
                    "sku": "WIPO-32",
                    "price": 22.9,
                    "edge": "fransen",
                    "hanger": "kordel"
                },
                {
                    "id": "f-c",
                    "label": "Fransen · Kette · 24,90 €",
                    "sku": "WIPO-39",
                    "price": 24.9,
                    "edge": "fransen",
                    "hanger": "kette"
                },
                {
                    "id": "f-z",
                    "label": "Fransen · Kette mit Zierknöpfen · 27,90 €",
                    "sku": "WIPO-99",
                    "price": 27.9,
                    "edge": "fransen",
                    "hanger": "knoepfe"
                }
            ]
        },
        {
            "id": "layout",
            "title": "Layout",
            "type": "image-grid",
            "default": "geteilt",
            "liveThumbs": true,
            "cartOption": "design",
            "cartLabel": "Layout",
            "note": "Aufteilung in Ihren Vereinsfarben",
            "options": [
                {
                    "id": "einfarbig",
                    "label": "Einfarbig",
                    "pennantLayout": true,
                    "two": false
                },
                {
                    "id": "geteilt",
                    "label": "Geteilt",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 1"
                },
                {
                    "id": "rahmen-breit",
                    "label": "Rahmen breit",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 9"
                },
                {
                    "id": "rahmen-schmal",
                    "label": "Rahmen schmal",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 7"
                },
                {
                    "id": "laengs",
                    "label": "Längsstreifen",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 4"
                },
                {
                    "id": "quer",
                    "label": "Querstreifen",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 20"
                },
                {
                    "id": "diagonal",
                    "label": "Diagonal",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 11"
                },
                {
                    "id": "spitze",
                    "label": "Spitze farbig",
                    "pennantLayout": true,
                    "two": true,
                    "code": "Typ 10"
                }
            ]
        },
        {
            "id": "color1",
            "title": "Farbe 1",
            "type": "swatch-image",
            "default": "blau",
            "cartOption": "design",
            "cartLabel": "Farbe 1",
            "options": [
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1f4e9c"
                },
                {
                    "id": "dunkelblau",
                    "label": "Dunkelblau",
                    "swatch": "#14295e"
                },
                {
                    "id": "hellblau",
                    "label": "Hellblau",
                    "swatch": "#4a9ad8"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#c8202f"
                },
                {
                    "id": "weinrot",
                    "label": "Weinrot",
                    "swatch": "#7d1426"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1d7a3a"
                },
                {
                    "id": "dunkelgruen",
                    "label": "Dunkelgrün",
                    "swatch": "#0f4d26"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#f2c200"
                },
                {
                    "id": "orange",
                    "label": "Orange",
                    "swatch": "#e8731c"
                },
                {
                    "id": "lila",
                    "label": "Lila",
                    "swatch": "#5b2d86"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#1b1b1b"
                },
                {
                    "id": "grau",
                    "label": "Grau",
                    "swatch": "#8a8f96"
                },
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#ffffff"
                }
            ]
        },
        {
            "id": "color2",
            "title": "Farbe 2",
            "type": "swatch-image",
            "default": "weiss",
            "cartOption": "design",
            "cartLabel": "Farbe 2",
            "visibleWhen": {
                "category": "layout",
                "field": "two",
                "equals": true
            },
            "options": [
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1f4e9c"
                },
                {
                    "id": "dunkelblau",
                    "label": "Dunkelblau",
                    "swatch": "#14295e"
                },
                {
                    "id": "hellblau",
                    "label": "Hellblau",
                    "swatch": "#4a9ad8"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#c8202f"
                },
                {
                    "id": "weinrot",
                    "label": "Weinrot",
                    "swatch": "#7d1426"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1d7a3a"
                },
                {
                    "id": "dunkelgruen",
                    "label": "Dunkelgrün",
                    "swatch": "#0f4d26"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#f2c200"
                },
                {
                    "id": "orange",
                    "label": "Orange",
                    "swatch": "#e8731c"
                },
                {
                    "id": "lila",
                    "label": "Lila",
                    "swatch": "#5b2d86"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#1b1b1b"
                },
                {
                    "id": "grau",
                    "label": "Grau",
                    "swatch": "#8a8f96"
                },
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#ffffff"
                }
            ]
        },
        {
            "id": "bandColor",
            "title": "Abschlussband (oben)",
            "type": "swatch-image",
            "default": "blau",
            "cartOption": "design",
            "cartLabel": "Abschlussband",
            "note": "Querband aus Velour",
            "options": [
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1f4e9c",
                    "code": "0069bl"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#c8202f",
                    "code": "0069ro"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1d7a3a",
                    "code": "0069gn"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#f2c200",
                    "code": "0069ge"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#1b1b1b",
                    "code": "0069sz"
                },
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#ffffff",
                    "code": "0069we"
                },
                {
                    "id": "gold",
                    "label": "Gold",
                    "swatch": "#c9a227",
                    "code": "0069go"
                },
                {
                    "id": "silber",
                    "label": "Silber",
                    "swatch": "#b9bcc0",
                    "code": "0069si"
                }
            ]
        },
        {
            "id": "edgeColor",
            "title": "Farbe Kordel / Fransen",
            "type": "swatch-image",
            "default": "bw",
            "cartOption": "design",
            "cartLabel": "Kordel/Fransen",
            "codeFrom": {
                "category": "size",
                "field": "edge",
                "map": {
                    "kordel": "0086",
                    "fransen": "0087"
                }
            },
            "note": "Gilt für Umrandung und Aufhängekordel",
            "options": [
                {
                    "id": "ro",
                    "label": "Rot",
                    "swatch": "#c8202f",
                    "colors": [
                        "#c8202f"
                    ],
                    "code": "ro"
                },
                {
                    "id": "gn",
                    "label": "Grün",
                    "swatch": "#1d7a3a",
                    "colors": [
                        "#1d7a3a"
                    ],
                    "code": "gn"
                },
                {
                    "id": "bl",
                    "label": "Blau",
                    "swatch": "#1f4e9c",
                    "colors": [
                        "#1f4e9c"
                    ],
                    "code": "bl"
                },
                {
                    "id": "ge",
                    "label": "Gelb",
                    "swatch": "#f2c200",
                    "colors": [
                        "#f2c200"
                    ],
                    "code": "ge"
                },
                {
                    "id": "sz",
                    "label": "Schwarz",
                    "swatch": "#1b1b1b",
                    "colors": [
                        "#1b1b1b"
                    ],
                    "code": "sz"
                },
                {
                    "id": "we",
                    "label": "Weiß",
                    "swatch": "#ffffff",
                    "colors": [
                        "#ffffff"
                    ],
                    "code": "we"
                },
                {
                    "id": "rb",
                    "label": "Rot-Blau",
                    "swatch": "repeating-linear-gradient(45deg, #c8202f 0px 5px, #1f4e9c 5px 10px)",
                    "colors": [
                        "#c8202f",
                        "#1f4e9c"
                    ],
                    "code": "rb"
                },
                {
                    "id": "rg",
                    "label": "Rot-Gelb",
                    "swatch": "repeating-linear-gradient(45deg, #c8202f 0px 5px, #f2c200 5px 10px)",
                    "colors": [
                        "#c8202f",
                        "#f2c200"
                    ],
                    "code": "rg"
                },
                {
                    "id": "rs",
                    "label": "Rot-Schwarz",
                    "swatch": "repeating-linear-gradient(45deg, #c8202f 0px 5px, #1b1b1b 5px 10px)",
                    "colors": [
                        "#c8202f",
                        "#1b1b1b"
                    ],
                    "code": "rs"
                },
                {
                    "id": "rw",
                    "label": "Rot-Weiß",
                    "swatch": "repeating-linear-gradient(45deg, #c8202f 0px 5px, #ffffff 5px 10px)",
                    "colors": [
                        "#c8202f",
                        "#ffffff"
                    ],
                    "code": "rw"
                },
                {
                    "id": "gr",
                    "label": "Grün-Rot",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #c8202f 5px 10px)",
                    "colors": [
                        "#1d7a3a",
                        "#c8202f"
                    ],
                    "code": "gr"
                },
                {
                    "id": "gb",
                    "label": "Grün-Blau",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #1f4e9c 5px 10px)",
                    "colors": [
                        "#1d7a3a",
                        "#1f4e9c"
                    ],
                    "code": "gb"
                },
                {
                    "id": "gg",
                    "label": "Grün-Gelb",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #f2c200 5px 10px)",
                    "colors": [
                        "#1d7a3a",
                        "#f2c200"
                    ],
                    "code": "gg"
                },
                {
                    "id": "gs",
                    "label": "Grün-Schwarz",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #1b1b1b 5px 10px)",
                    "colors": [
                        "#1d7a3a",
                        "#1b1b1b"
                    ],
                    "code": "gs"
                },
                {
                    "id": "gw",
                    "label": "Grün-Weiß",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #ffffff 5px 10px)",
                    "colors": [
                        "#1d7a3a",
                        "#ffffff"
                    ],
                    "code": "gw"
                },
                {
                    "id": "bg",
                    "label": "Blau-Gelb",
                    "swatch": "repeating-linear-gradient(45deg, #1f4e9c 0px 5px, #f2c200 5px 10px)",
                    "colors": [
                        "#1f4e9c",
                        "#f2c200"
                    ],
                    "code": "bg"
                },
                {
                    "id": "bs",
                    "label": "Blau-Schwarz",
                    "swatch": "repeating-linear-gradient(45deg, #1f4e9c 0px 5px, #1b1b1b 5px 10px)",
                    "colors": [
                        "#1f4e9c",
                        "#1b1b1b"
                    ],
                    "code": "bs"
                },
                {
                    "id": "bw",
                    "label": "Blau-Weiß",
                    "swatch": "repeating-linear-gradient(45deg, #1f4e9c 0px 5px, #ffffff 5px 10px)",
                    "colors": [
                        "#1f4e9c",
                        "#ffffff"
                    ],
                    "code": "bw"
                },
                {
                    "id": "sg",
                    "label": "Schwarz-Gelb",
                    "swatch": "repeating-linear-gradient(45deg, #1b1b1b 0px 5px, #f2c200 5px 10px)",
                    "colors": [
                        "#1b1b1b",
                        "#f2c200"
                    ],
                    "code": "sg"
                },
                {
                    "id": "sw",
                    "label": "Schwarz-Weiß",
                    "swatch": "repeating-linear-gradient(45deg, #1b1b1b 0px 5px, #ffffff 5px 10px)",
                    "colors": [
                        "#1b1b1b",
                        "#ffffff"
                    ],
                    "code": "sw"
                },
                {
                    "id": "bgr",
                    "label": "Blau-Gelb-Rot",
                    "swatch": "repeating-linear-gradient(45deg, #1f4e9c 0px 5px, #f2c200 5px 10px, #c8202f 10px 15px)",
                    "colors": [
                        "#1f4e9c",
                        "#f2c200",
                        "#c8202f"
                    ],
                    "code": "bgr"
                },
                {
                    "id": "gwr",
                    "label": "Grün-Weiß-Rot",
                    "swatch": "repeating-linear-gradient(45deg, #1d7a3a 0px 5px, #ffffff 5px 10px, #c8202f 10px 15px)",
                    "colors": [
                        "#1d7a3a",
                        "#ffffff",
                        "#c8202f"
                    ],
                    "code": "gwr"
                },
                {
                    "id": "bwr",
                    "label": "Blau-Weiß-Rot",
                    "swatch": "repeating-linear-gradient(45deg, #1f4e9c 0px 5px, #ffffff 5px 10px, #c8202f 10px 15px)",
                    "colors": [
                        "#1f4e9c",
                        "#ffffff",
                        "#c8202f"
                    ],
                    "code": "bwr"
                },
                {
                    "id": "srg",
                    "label": "Schwarz-Rot-Gelb",
                    "swatch": "repeating-linear-gradient(45deg, #1b1b1b 0px 5px, #c8202f 5px 10px, #f2c200 10px 15px)",
                    "colors": [
                        "#1b1b1b",
                        "#c8202f",
                        "#f2c200"
                    ],
                    "code": "srg"
                }
            ]
        },
        {
            "id": "chainColor",
            "title": "Farbe Kette",
            "type": "swatch-image",
            "default": "gold",
            "cartOption": "design",
            "cartLabel": "Kette",
            "visibleWhen": {
                "category": "size",
                "field": "hanger",
                "in": [
                    "kette",
                    "knoepfe"
                ]
            },
            "options": [
                {
                    "id": "gold",
                    "label": "Gold",
                    "swatch": "#c9a227",
                    "code": "0060go"
                },
                {
                    "id": "silber",
                    "label": "Silber",
                    "swatch": "#b9bcc0",
                    "code": "0060si"
                }
            ]
        },
        {
            "id": "logo",
            "title": "Vereinslogo",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "hint": "Am besten als PNG oder PDF. Wir prüfen Ihr Logo und schicken Ihnen einen Korrekturabzug.",
            "options": []
        },
        {
            "id": "engravingMode",
            "title": "Text",
            "type": "radio",
            "default": "text",
            "defaultCounts": true,
            "alwaysOpen": true,
            "options": [
                {
                    "id": "text",
                    "label": "mit Text"
                },
                {
                    "id": "none",
                    "label": "ohne Text"
                }
            ]
        },
        {
            "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,
            "note": "1. Zeile groß oben (z. B. IN FREUNDSCHAFT), weitere Zeilen unter dem Logo"
        },
        {
            "id": "textColor",
            "title": "Textfarbe",
            "type": "swatch-image",
            "default": "schwarz",
            "cartOption": "design",
            "cartLabel": "Textfarbe",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "options": [
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#1b1b1b"
                },
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#ffffff"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#f2c200"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#c8202f"
                },
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1f4e9c"
                }
            ]
        }
    ],
    "cart": {
        "productId": 3043,
        "addUrl": "/checkout/cart/add/product/3043/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 1489,
            "font": 1490,
            "preview": 1492,
            "logo": 1491,
            "design": 1488
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 219,
            "byOption": {
                "k-k": 5961,
                "k-c": 5963,
                "k-z": 5964,
                "f-k": 5962,
                "f-c": 5965,
                "f-z": 5966
            }
        }
    }
}
