

var json = {
    "locale": "pl",
    "pages": [
        {
            "name": "Dane personalne",
            "elements": [
                {
                    "type": "checkbox",
                    "name": "RegisterData",
                    "startWithNewLine": false,
                    "title": {
                        "pl": " Czy zgadzasz się by winiki badania wykorzystać anonimowo w celach naukowych?"
                    },
                    "choices": [
                        {
                            "value": "1",
                            "text": {
                                "pl": "Tak"
                            }
                        }
                    ]
                },
                {
                    "type": "checkbox",
                    "name": "sendEmail",
                    "startWithNewLine": false,
                    "title": {
                        "pl": "Czy wysłać wynik badań na Twoją skrzynkę e/mail?"
                    },
                    "choices": [
                        {
                            "value": "1",
                            "text": {
                                "pl": "Tak"
                            }
                        }
                    ]
                },
                {
                    "type": "text",
                    "name": "Nickname",
                    "visible": false,
                    "visibleIf": "{sendEmail} notempty",
                    "title": {
                        "pl": "Podaj pseudonim"
                    },
                    "isRequired": true
                },
                {
                    "type": "text",
                    "name": "Email",
                    "visible": false,
                    "visibleIf": "{sendEmail} notempty",
                    "title": {
                        "pl": "Podaj adres email"
                    },
                    "isRequired": true,
                    "inputType": "datetime-local"
                }
            ],
            "title": {
                "default": "ttt",
                "pl": "Badanie"
            }
        },
        {
            "name": "Część pierwsza",
            "elements": [
                {
                    "type": "checkbox",
                    "name": "Pytanie 1",
                    "isRequired": true,
                    "choices": [
                        {
                            "value": "0",
                            "text": {
                                "pl": "Zadecydowanie Tak"
                            }
                        },
                        {
                            "value": "1",
                            "text": {
                                "pl": "odp 2"
                            }
                        },
                        {
                            "value": "2",
                            "text": {
                                "pl": "odp 3"
                            }
                        }
                    ]
                },
                {
                    "type": "radiogroup",
                    "name": "Pytanie 3",
                    "choices": [
                        {
                            "value": "0",
                            "text": {
                                "pl": "odp 1"
                            }
                        },
                        {
                            "value": "1",
                            "text": {
                                "pl": "odp 2"
                            }
                        },
                        {
                            "value": "2",
                            "text": {
                                "pl": "odp 3"
                            }
                        }
                    ]
                },
                {
                    "type": "boolean",
                    "name": "areusure",
                    "title": {
                        "pl": "Czy jesteś pewien"
                    },
                    "commentText": {
                        "pl": "Czy jesteś pewien"
                    },
                    "label": {
                        "pl": "Tak"
                    },
                    "showTitle": true
                },
                {
                    "type": "dropdown",
                    "name": "Pytanie 2",
                    "isRequired": true,
                    "choices": [
                        {
                            "value": "0",
                            "text": {
                                "pl": "aaa"
                            }
                        },
                        {
                            "value": "1",
                            "text": {
                                "pl": "bbb"
                            }
                        },
                        {
                            "value": "2",
                            "text": {
                                "pl": "ccc"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "name": "Koniec",
            "elements": [
                {
                    "type": "rating",
                    "name": "question1"
                },
                {
                    "type": "multipletext",
                    "name": "multi sprawa",
                    "items": [
                        {
                            "name": "multi1",
                            "title": {
                                "pl": "test1"
                            }
                        },
                        {
                            "name": "multi2",
                            "title": {
                                "pl": "test2"
                            }
                        }
                    ]
                }
                
            ]
        }
    ],
    "sendResultOnPageNext": true,
    "showPageNumbers": true,
    "showProgressBar": "top",
    "startSurveyText": {
        "pl": "start"
    },
    "pagePrevText": {
        "pl": "poprzedni"
    },
    "pageNextText": {
        "pl": "dalej"
    },
    "completeText": {
        "pl": "koniec"
    }
} 
export default class FormMock {
    static get(query) {
        if (query.length > 0) {
            // console.log(query)
        }
        return FormMock.getForm()
    }
    static getForm() {
        return {'data': {
                'form': json
            }
        }

    }
}

/*
 * {
                    "type": "imagepicker",
                    "name": "img_choice",
                    "title": {
                        "pl": "Wybierz zdjęcie"
                    },
                    "choices": [
                        {
                            "value": "1",
                            "imageLink": "/static/img/img1.jpg"
                        },
                        {
                            "value": "2",
                            "imageLink": "/static/img/img2.jpg"
                        },
                        {
                            "value": "3",
                            "imageLink": "/static/img/img3.jpg"
                        }
                    ]
                },
                {
                    "type": "imagepicker",
                    "name": "question3",
                    "choices": [
                        {
                            "value": "lion",
                            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
                        },
                        {
                            "value": "giraffe",
                            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
                        },
                        {
                            "value": "panda",
                            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
                        },
                        {
                            "value": "camel",
                            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
                        }
                    ]
                }
 */