{
	"maxPage": "5",
	"components": [
		{
			"id": "seq",
			"componentType": "Sequence",
			"label": {
				"value": "\"Description des individus de votre logement\"",
				"type": "VTL|MD"
			},
			"conditionFilter": { "value": "true", "type": "VTL" },
			"page": "1"
		},
		{
			"id": "loop-prenom",
			"componentType": "RosterForLoop",
			"label": { "value": "\"Ajouter un individu\"", "type": "VTL|MD" },
			"conditionFilter": { "value": "true", "type": "VTL" },
			"bindingDependencies": ["PRENOM"],

			"lines": {
				"min": { "value": "1", "type": "VTL" },
				"max": { "value": "10", "type": "VTL" }
			},
			"page": "1",
			"components": [
				{
					"componentType": "Input",
					"label": { "value": "\"Prénom\"", "type": "VTL|MD" },
					"conditionFilter": { "value": "true", "type": "VTL" },
					"maxLength": 30,
					"bindingDependencies": ["PRENOM"],
					"id": "prenom",
					"response": {
						"name": "PRENOM"
					}
				}
			]
		},
		{
			"id": "age-loop",
			"componentType": "Loop",
			"paginatedLoop": true,
			"iterations": { "value": "count(PRENOM)", "type": "VTL" },
			"page": "2",
			"maxPage": "1",
			"conditionFilter": { "value": "true", "type": "VTL" },
			"loopDependencies": ["PRENOM"],
			"components": [
				{
					"id": "age-quest",
					"label": { "value": "\"Âge de \" || PRENOM", "type": "VTL|MD" },
					"conditionFilter": { "type": "VTL", "value": "true" },
					"componentType": "InputNumber",
					"page": "2.1",
					"response": { "name": "AGE" }
				}
			]
		},
		{
			"id": "pairwise-links",
			"componentType": "PairwiseLinks",
			"conditionFilter": { "value": "true", "type": "VTL" },
			"xAxisIterations": { "value": "count(PRENOM)", "type": "VTL" },
			"yAxisIterations": { "value": "count(PRENOM)", "type": "VTL" },
			"page": "3",
			"symLinks": {
				"LINKS": {
					"1": "1",
					"2": "3",
					"3": "2",
					"4": "4",
					"5": "6",
					"6": "5",
					"7": "8",
					"8": "7",
					"9": "10",
					"10": "9",
					"11": "13",
					"12": "12",
					"13": "11",
					"14": null,
					"15": "15",
					"16": "16",
					"17": "17",
					"18": "18"
				}
			},
			"components": [
				{
					"componentType": "Dropdown",
					"id": "dropdown-1",
					"conditionFilter": {
						"value": "(nvl(xAxis, \"\") <> \"\") and (nvl(yAxis, \"\") <> \"\")",
						"type": "VTL"
					},
					"label": {
						"value": "\"Qui est \" || yAxis || \" pour \" || xAxis || \" ?\"",
						"type": "VTL|MD"
					},
					"response": {
						"name": "LINKS"
					},
					"options": [
						{
							"value": "1",
							"label": {
								"value": "\"Son conjoint, sa conjointe\"",
								"type": "VTL"
							}
						},
						{
							"value": "2",
							"label": { "value": "\"Sa mère, son père\"", "type": "VTL" }
						},
						{
							"value": "3",
							"label": { "value": "\"Sa fille, son fils\"", "type": "VTL" }
						},
						{
							"value": "4",
							"label": {
								"value": "\"Sa soeur, son frère (y compris demi et quasi)\"",
								"type": "VTL"
							}
						},
						{
							"value": "5",
							"label": {
								"value": "\"Sa belle-mère, son beau-père (conjoint.e d'un des parents)\"",
								"type": "VTL"
							}
						},
						{
							"value": "6",
							"label": {
								"value": "\"L'enfant du conjoint (belle-fille, beau-fils)\"",
								"type": "VTL"
							}
						},
						{
							"value": "7",
							"label": {
								"value": "\"Sa belle-mère, son beau-père (parent du conjoint)\"",
								"type": "VTL"
							}
						},
						{
							"value": "8",
							"label": {
								"value": "\"Sa belle-fille, son beau-fils (conjoint.e d'un enfant)\"",
								"type": "VTL"
							}
						},
						{
							"value": "9",
							"label": {
								"value": "\"Sa grand-mère, son grand-père\"",
								"type": "VTL"
							}
						},
						{
							"value": "10",
							"label": {
								"value": "\"Sa petite-fille, petit-fils\"",
								"type": "VTL"
							}
						},
						{
							"value": "11",
							"label": { "value": "\"Sa tante, son oncle\"", "type": "VTL" }
						},
						{
							"value": "12",
							"label": { "value": "\"Sa cousine, son cousin\"", "type": "VTL" }
						},
						{
							"value": "13",
							"label": { "value": "\"Sa nièce, son neveu\"", "type": "VTL" }
						},
						{
							"value": "14",
							"label": {
								"value": "\"Un enfant placé en famille d'accueil\"",
								"type": "VTL"
							}
						},
						{
							"value": "15",
							"label": {
								"value": "\"Sa belle-soeur, son beau-frère\"",
								"type": "VTL"
							}
						},
						{
							"value": "16",
							"label": { "value": "\"Un autre lien familial\"", "type": "VTL" }
						},
						{
							"value": "17",
							"label": {
								"value": "\"Un colocataire, sous-locataire\"",
								"type": "VTL"
							}
						},
						{
							"value": "18",
							"label": {
								"value": "\"Autre lien (employé de maison, salarié logé, jeune au pair …)\"",
								"type": "VTL"
							}
						}
					]
				},
				{
					"componentType": "Textarea",

					"label": {
						"value": "\"Pouvez-vous décrire le lien entre \" || xAxis || \" et \" || yAxis || \" ?\"",
						"type": "VTL|MD"
					},
					"conditionFilter": {
						"value": "LINKS = \"17\"",
						"type": "VTL"
					},
					"id": "other",
					"response": {
						"name": "OTHER"
					}
				}
			]
		},
		{
			"id": "pariwise-block",
			"componentType": "Loop",
			"paginatedLoop": true,
			"iterations": { "value": "count(PRENOM)", "type": "VTL" },
			"page": "4",
			"maxPage": "1",
			"conditionFilter": { "value": "true", "type": "VTL" },
			"loopDependencies": ["PRENOM"],
			"components": [
				{
					"componentType": "Textarea",
					"page": "4.1",
					"label": {
						"value": "PRENOM || \", why do you live without your parents?\"",
						"type": "VTL|MD"
					},
					"conditionFilter": {
						"value": "\"3\" not_in LINKS and AGE < 18",
						"type": "VTL"
					},
					"id": "why",
					"response": {
						"name": "WHY"
					}
				}
			]
		},
		{
			"componentType": "Sequence",
			"label": {
				"type": "VTL",
				"value": "\"END\""
			},
			"page": "5",
			"id": "end"
		}
	],
	"variables": [
		{
			"variableType": "COLLECTED",
			"name": "PRENOM",
			"values": {
				"COLLECTED": [null]
			}
		},
		{
			"variableType": "COLLECTED",
			"name": "AGE",
			"values": {
				"COLLECTED": [null]
			}
		},
		{
			"variableType": "COLLECTED",
			"name": "LINKS",
			"values": {
				"COLLECTED": [[null]]
			}
		},
		{
			"variableType": "COLLECTED",
			"name": "OTHER",
			"values": {
				"COLLECTED": [[null]]
			}
		},
		{
			"variableType": "COLLECTED",
			"name": "WHY",
			"values": {
				"COLLECTED": [null]
			}
		},
		{
			"variableType": "CALCULATED",
			"name": "xAxis",
			"expression": { "value": "PRENOM", "type": "VTL" },
			"bindingDependencies": ["PRENOM"],
			"shapeFrom": "PRENOM",
			"inFilter": "false"
		},
		{
			"variableType": "CALCULATED",
			"name": "yAxis",
			"expression": { "value": "PRENOM", "type": "VTL" },
			"bindingDependencies": ["PRENOM"],
			"shapeFrom": "PRENOM",
			"inFilter": "false"
		}
	],
	"resizing": {
		"PRENOM": {
			"sizeForLinksVariables": ["count(PRENOM)", "count(PRENOM)"],
			"linksVariables": ["LINKS"]
		}
	}
}
