{"project":"drf_form","branch":"main","commit":"227aaf7cd79f66a9aff86518f903f0eeacc3c127","component":{"name":"BMI-calc-new","nodes":{"root":{"tag":"div","type":"element","children":["xpdYbLmSQe5qJarn_h39f"],"classes":{"eLHMgp":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xpdYbLmSQe5qJarn_h39f":{"name":"bmi-calc","type":"component","customProperties":{}}},"route":{"path":[{"name":"bmi-calc-new","type":"static"}],"query":{}}},"components":[{"name":"bmi-calc","nodes":{"root":{"tag":"div","type":"element","children":["K2bDiZ-DdSqlcyyIRGIlZ","2GWgaGurMVrWnW5Su0ESx","y_ExOWl_JQ1nr5VQ-dMRg"],"classes":{"fkyZRW":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-E6YNPJ5lwfBf3H2tqxjk":{"tag":"div","type":"element","children":["A4InOEl3Zt-b6NPeXpxo9","H4SXAqPV53bPOIbDHKidz"],"classes":{"bsjUcy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-WRd1NRBzuRVAKLTI-Jtn":{"tag":"h1","type":"element","children":["nXg9Gxl3lbRQ2ajt-NQ-_"],"classes":{"cLwQUv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-uzzW54CmlWrPo621YwZ_":{"tag":"div","type":"element","classes":{"OW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"dlMejt":{"formula":{"type":"value","value":true}}},"children":["QOKDGuNXztWtZ5E5hLJnh","ooqi8jQX1iX8fOza7orGv"],"customProperties":{}},"1RMEsC2SsxtgUK1tPCSX4":{"name":"button-big","type":"component","attrs":{"arrow":{"type":"value","value":false},"color":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}},"active":{"path":["Variables","active"],"type":"path"},"disabled":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":true}}}},"button-text":{"type":"switch","cases":[{"formula":{"type":"value","value":"Not Eligible"},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"You’re Eligible — Get Started"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"You’re Eligible — Get Started"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":"Not Eligible"}}}}},"events":{"onClick":{"actions":[{"type":"Switch","cases":[{"actions":[{"name":"@toddle/gotToURL","arguments":[{"name":"URL","formula":{"type":"value","value":"https://shop.drfranks.co.uk/pages/assessment"}}]}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}}}],"default":{"actions":[]}}],"trigger":"onClick"}},"customProperties":{}},"1RnBJS6cXxMWOa4E7he6B":{"tag":"div","type":"element","children":["dzLaZcUIpH5CGznkoW9oC","F5kyUVVeKkAGKz_-DOwmp"],"classes":{"ejajzr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1Z-saeGBcEjB-G_B80mn6":{"tag":"div","type":"element","children":["R1RhP-CdaSUf5nFEKTWBu"],"classes":{"fErRTZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1wQNvGiRM6utnNaHIdWYF":{"type":"text","value":{"type":"value","value":"(lbs)*"}},"2F0i02DWEjQ5Q5jdypCDQ":{"tag":"div","type":"element","children":["1wQNvGiRM6utnNaHIdWYF"],"classes":{"bgxrKe":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2GWgaGurMVrWnW5Su0ESx":{"tag":"div","type":"element","children":["9D_aqALj-qw0lfe2t9YE7"],"condition":{"path":["Variables","popup-bmi"],"type":"path"},"classes":{"bPEVNJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2K27Nbp3E3Poocqq3wnUU":{"tag":"p","type":"element","children":["s-1egniinHZEKkgcwS-Tt"],"classes":{"cmyCQW":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2jATB9j__OaGN75y241og":{"type":"text","value":{"type":"value","value":"Imperial"}},"30RugXIgkBu5SAvyJ-n06":{"type":"text","value":{"type":"value","value":"Healthy Weight"}},"37n8M0CqFNOOncGAZa2a8":{"type":"text","value":{"type":"value","value":"Obesity"}},"4FsdsO3iAnDSgtM99vLLu":{"tag":"div","type":"element","children":["XqIlW64Cr7FODWy9lDZTP"],"classes":{"KYfaQ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4f1yeqPMR9-Q8esgx8wb-":{"tag":"div","type":"element","children":["Sn7QlklogJXF9UH6N5uEW","1Z-saeGBcEjB-G_B80mn6"],"condition":{"path":["Variables","Imperial"],"type":"path"},"classes":{"eHklyj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4xX0Rky6oJDsL3ZB9Qh16":{"tag":"div","type":"element","children":["k1zqlcUZUmaV9MqJEPJEd"],"classes":{"bsjUcy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4yzbCJPY4ecO5x2TxCW_P":{"tag":"div","type":"element","children":["4xX0Rky6oJDsL3ZB9Qh16"],"classes":{"bAGgmU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"51jTYQFZoIWjTNp31o586":{"tag":"div","type":"element","children":["dJUBELNAwtywH9qjldZLS"],"classes":{"bQTcbP":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5W6_I3laKx0zFSQSUhoXz":{"tag":"h1","type":"element","children":["6f6kIdHyGlrUdnMeHlMf9"],"classes":{"bHWXPv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6f6kIdHyGlrUdnMeHlMf9":{"type":"text","value":{"type":"switch","cases":[{"formula":{"path":["Variables","BMI-imperial"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":null}}],"display_name":"Equals"}}],"default":{"path":["Variables","BMI-metric"],"type":"path"}}},"9D_aqALj-qw0lfe2t9YE7":{"tag":"div","type":"element","children":["DIFkE5IQeZuP5jeCOPYbC","WuQTB3lAWtEQ7YyUdDxVR","1RnBJS6cXxMWOa4E7he6B","ySi4T2ZJhyYwiZ9jgppbY"],"classes":{"ehrqgY":{"formula":{"type":"value","value":true}}},"customProperties":{}},"A4InOEl3Zt-b6NPeXpxo9":{"tag":"div","type":"element","children":["EsQJJZwxcnb3-MeYUU4cR","cDoXZC6K1D4fO8cQ6CKBq"],"classes":{"cOqbmg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AXF51gqG2uL6p44_7krB3":{"tag":"div","type":"element","children":["P7OtKhSlL64LTeV5no3UU","HKP5gmI8bxE9wEkklscgK","H91mXwlQga_KAbRppu0pA","1RMEsC2SsxtgUK1tPCSX4"],"classes":{"BCSmz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BU6wvWpPh7JPUcu0AWm6c":{"type":"text","value":{"type":"value","value":"18.5 > 24.9"}},"BUy6p2wCOh4TCpgEiZcCW":{"tag":"div","type":"element","children":["_HsnPoujs39bE8rj4lzVG","2K27Nbp3E3Poocqq3wnUU","k9dJPFs311sqcvQQcw4Ga","GKTfTHAXR5KNlSvTVMfrx","4f1yeqPMR9-Q8esgx8wb-","J17uAwECTYb8y7dR4ONTV","eGkxiRSbNYI0IKA-o32Kk"],"classes":{"eVPJux":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BVQ0LxlYFOpQJPSHb-8Xf":{"type":"text","value":{"type":"value","value":"Your BMI"}},"CtWAAu99oIHpBUuXFNE-u":{"tag":"div","type":"element","classes":{"OverWeight":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"bIdHwZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DIFkE5IQeZuP5jeCOPYbC":{"tag":"div","type":"element","children":["GT686RYj-LvOCLj1xLL0i"],"classes":{"drbspq":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EsQJJZwxcnb3-MeYUU4cR":{"tag":"div","type":"element","children":["OnLJmR45eK4EhrpMZ4oTM"],"classes":{"bgxrKe":{"formula":{"type":"value","value":true}}},"customProperties":{}},"F5kyUVVeKkAGKz_-DOwmp":{"tag":"h1","type":"element","children":["gsUx7OJdkpYWc36tBO21z"],"classes":{"frTOhL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"FXz_WpOEWF1tO92Kab2K4":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Weight-lbs"],"type":"path"},"maxlenght":{"type":"value","value":""},"placeholders":{"type":"value","value":0}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Weight-lbs"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"GEi8Ognfij_o-_wgvp4jc":{"tag":"div","type":"element","classes":{"UW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Underweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"dTbMPC":{"formula":{"type":"value","value":true}}},"children":["zwxlsfxMSjV7_A6RxSKpd","eBWJCZ4qo0B68xDH-6tzP"],"customProperties":{}},"GKTfTHAXR5KNlSvTVMfrx":{"tag":"div","type":"element","children":["4yzbCJPY4ecO5x2TxCW_P","QsO2eZ_DgvVZJfUnmpTMg"],"condition":{"path":["Variables","Metric"],"type":"path"},"classes":{"fzIIYg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GT686RYj-LvOCLj1xLL0i":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"popup-bmi"}],"trigger":"click"}},"children":["vg05cg-LO6aaeOFf--Y-5","51jTYQFZoIWjTNp31o586"],"classes":{"eALrHG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GnxozJ-_5VuznQ2jBTXIi":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Height-cm"],"type":"path"},"maxlenght":{"type":"value","value":3},"placeholders":{"type":"value","value":"170 "}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Height-cm"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"H4SXAqPV53bPOIbDHKidz":{"tag":"div","type":"element","children":["ex03DuAXdNpIGLSZQa7zB","XgS9SkqqUD7PLRspnkJ1s"],"classes":{"cOqbmg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H91mXwlQga_KAbRppu0pA":{"tag":"div","type":"element","children":["JesfmtdYjeHbuHB1dzSFH","eRvPPOG-MqJfW_F6nIBHC"],"classes":{"fguNeT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HKP5gmI8bxE9wEkklscgK":{"tag":"div","type":"element","children":["GEi8Ognfij_o-_wgvp4jc","Ndp6XATZRA-e9IISyfy5B","Kh3TcJXLsxOwKUvw-uMOh","iTEeTOLYBXrGS9MtLgUTG"],"classes":{"bXsrqI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"I_uNN73jNQ0gMt0WpFaF0":{"type":"text","value":{"type":"value","value":"Obesity"}},"IznnEEUmKgaQdF9aqrb9t":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Weight-kg"],"type":"path"},"maxlenght":{"type":"value","value":3},"placeholders":{"type":"value","value":70}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Weight-kg"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"J17uAwECTYb8y7dR4ONTV":{"tag":"div","type":"element","children":["JvgD22XtWoFH2zjfAYFoh"],"condition":{"type":"and","arguments":[{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"},"formula":{"path":["Variables","Weight-stone"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}},{"formula":{"path":["Variables","error-msg"],"type":"path"}}]},"classes":{"eXCUuO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JesfmtdYjeHbuHB1dzSFH":{"tag":"div","type":"element","children":["dew1PEyeDErfklSHYtHUW","5W6_I3laKx0zFSQSUhoXz"],"classes":{"dWkUYK":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JvgD22XtWoFH2zjfAYFoh":{"tag":"div","type":"element","children":["z4Ajwsml4AfPLVt_0PNW_"],"classes":{"ffptKm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"K2bDiZ-DdSqlcyyIRGIlZ":{"tag":"div","type":"element","children":["BUy6p2wCOh4TCpgEiZcCW","AXF51gqG2uL6p44_7krB3"],"classes":{"fvvLTx":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Kh3TcJXLsxOwKUvw-uMOh":{"tag":"div","type":"element","classes":{"OW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"deJPcU":{"formula":{"type":"value","value":true}}},"children":["ya7u_hPyomtPwqB2jbY_I","TivstNpLmgR859G499Kz7"],"customProperties":{}},"Kukb5GBjn_CSsFTmUbZ8U":{"type":"text","value":{"type":"value","value":"(in)*"}},"L2_LSP8PiUKcn1_eq6G0z":{"tag":"div","type":"element","children":["VFBW6O-rEMfOcGlqxzMAc","IznnEEUmKgaQdF9aqrb9t"],"classes":{"bjDrag":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LSh8DgNRc1utUw-PEVewA":{"tag":"svg","type":"element","attrs":{"fill":{"type":"value","value":"none"},"width":{"type":"value","value":7},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":15},"viewBox":{"type":"value","value":"0 0 6 10"}},"children":["_QH0SYIhP1_YbtF0rFQ6c"],"customProperties":{}},"LjBn9MSxub8G8ZidZ5HRa":{"type":"text","value":{"type":"value","value":"Healthy Weight"}},"M7uyOhyP0oV5lpaBSVK6-":{"name":"button-big","type":"component","attrs":{"arrow":{"type":"value","value":false},"color":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}},"active":{"path":["Variables","active"],"type":"path"},"disabled":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":false},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":true}}}},"button-text":{"type":"switch","cases":[{"formula":{"type":"value","value":"Not Eligible"},"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"You’re Eligible — Get Started"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"You’re Eligible — Get Started"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":"Not Eligible"}}}}},"events":{"onClick":{"actions":[{"type":"Switch","cases":[{"actions":[{"name":"@toddle/gotToURL","arguments":[{"name":"URL","formula":{"type":"value","value":"https://shop.drfranks.co.uk/pages/assessment"}}]}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Overweight"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}}}],"default":{"actions":[]}}],"trigger":"onClick"}},"customProperties":{}},"NYZIauRNgDWkoLGaY_mte":{"type":"text","value":{"type":"value","value":"<18.5"}},"Ndp6XATZRA-e9IISyfy5B":{"tag":"div","type":"element","classes":{"HW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Healthy Weight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"cfBIbO":{"formula":{"type":"value","value":true}}},"children":["LjBn9MSxub8G8ZidZ5HRa","BU6wvWpPh7JPUcu0AWm6c"],"customProperties":{}},"OEabEkpQZYypMrBAYRdrr":{"type":"text","value":{"type":"value","value":"Metric"}},"OMxmpwhHnzjZurTDm3WQv":{"type":"text","value":{"type":"value","value":"Weight (kg)*"}},"OnLJmR45eK4EhrpMZ4oTM":{"type":"text","value":{"type":"value","value":"Height (ft)*"}},"P7OtKhSlL64LTeV5no3UU":{"tag":"div","type":"element","children":["inOcivjrnrV4BodNkQTJI","b2gKp00uDKiwRmWkGyp4O","CtWAAu99oIHpBUuXFNE-u","znODdr5kYoPhOq0EgliVy"],"classes":{"cNvTUM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PopvN9cFTVOeINR6LlBFn":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"Imperial"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Metric"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Height-cm"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Weight-kg"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"click"}},"classes":{"outline":{"formula":{"path":["Variables","Imperial"],"type":"path"}},"disabled":{"formula":{"path":["Variables","Metric"],"type":"path"}},"transparent":{"formula":{"path":["Variables","Imperial"],"type":"path"}},"dmWHBU":{"formula":{"type":"value","value":true}}},"children":["oe-h3uXFd5S_6T8THIA1V"],"customProperties":{}},"QOKDGuNXztWtZ5E5hLJnh":{"type":"text","value":{"type":"value","value":"Overweight"}},"QsO2eZ_DgvVZJfUnmpTMg":{"tag":"div","type":"element","children":["uEvQWIVG7awyK5eb_Ny5W"],"classes":{"fErRTZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"R1RhP-CdaSUf5nFEKTWBu":{"tag":"div","type":"element","children":["lhqmhvYx1_Z5RxE7J8iM5","qmrFXDfXuCJVvMOfYw8q3"],"classes":{"bsjUcy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Sn7QlklogJXF9UH6N5uEW":{"tag":"div","type":"element","children":["-E6YNPJ5lwfBf3H2tqxjk"],"classes":{"cVUpYP":{"formula":{"type":"value","value":true}}},"customProperties":{}},"T2kq7P7aYeh2m0Thir1_3":{"tag":"h1","type":"element","children":["y_FiNRcyfrTT3upHmuGvv"],"classes":{"mmiDL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TDPjg4R2S-2oKCMkZUSvx":{"tag":"div","type":"element","children":["jY9PPBIu0uLkkcMiRG0hX"],"classes":{"bgxrKe":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TivstNpLmgR859G499Kz7":{"type":"text","value":{"type":"value","value":"25 > 29.9"}},"VFBW6O-rEMfOcGlqxzMAc":{"tag":"div","type":"element","children":["OMxmpwhHnzjZurTDm3WQv"],"classes":{"KYfaQ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Vu8gA-U5ECAX7rJu6-kuF":{"type":"text","value":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},"WuQTB3lAWtEQ7YyUdDxVR":{"tag":"div","type":"element","children":["qA8ULGr81nDdvDS_7mzT9","qNGiCjcXSieqGWsTAwS_G","-uzzW54CmlWrPo621YwZ_","jkId0T-EP39CwdWUwVEil"],"classes":{"bXsrqI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XgS9SkqqUD7PLRspnkJ1s":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Height-inch"],"type":"path"},"maxlenght":{"type":"value","value":""},"placeholders":{"type":"value","value":7}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Height-inch"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"XqIlW64Cr7FODWy9lDZTP":{"type":"text","value":{"type":"value","value":"Height (cm)*"}},"_HsnPoujs39bE8rj4lzVG":{"tag":"h1","type":"element","children":["grLRLu7yQiF67FXvrTgKq"],"classes":{"dSjtRA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_QH0SYIhP1_YbtF0rFQ6c":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M0.300488 5.49997L5.30049 0.499969L6.00049 1.19997L1.70049 5.49997L6.00049 9.79997L5.30049 10.5L0.300488 5.49997Z"},"fill":{"type":"value","value":"#206D7C"},"fill-opacity":{"type":"value","value":"0.5"}},"customProperties":{}},"_owWFuT5MtONk1if1aUK9":{"tag":"div","type":"element","children":["OEabEkpQZYypMrBAYRdrr"],"classes":{"dHlbU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"b2gKp00uDKiwRmWkGyp4O":{"tag":"div","type":"element","classes":{"HealthyWeight":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Healthy Weight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"epcGEr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"cDoXZC6K1D4fO8cQ6CKBq":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Height-ft"],"type":"path"},"maxlenght":{"type":"value","value":""},"placeholders":{"type":"value","value":5}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Height-ft"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"dJUBELNAwtywH9qjldZLS":{"type":"text","value":{"type":"value","value":"Back"}},"dew1PEyeDErfklSHYtHUW":{"tag":"h1","type":"element","children":["BVQ0LxlYFOpQJPSHb-8Xf"],"classes":{"cLwQUv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dzLaZcUIpH5CGznkoW9oC":{"tag":"div","type":"element","children":["-WRd1NRBzuRVAKLTI-Jtn","T2kq7P7aYeh2m0Thir1_3"],"classes":{"dWkUYK":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eB7vuFoMa-76r56dQAvWM":{"type":"text","value":{"type":"value","value":">30"}},"eBWJCZ4qo0B68xDH-6tzP":{"type":"text","value":{"type":"value","value":"<18.5"}},"eGkxiRSbNYI0IKA-o32Kk":{"name":"button-big","type":"component","attrs":{"disabled":{"type":"and","arguments":[{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_metric","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}],"display_name":"Not"}},{"formula":{"type":"or","arguments":[{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}],"display_name":"Not"}},{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}],"display_name":"Not"}},{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","Weight-stone"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}],"display_name":"Not"}},{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Not equal"}}],"display_name":"Not"}}]}}]},"button-text":{"type":"value","value":"Calculate"}},"events":{"onClick":{"actions":[{"data":{"name":"BMI_metric","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}}]},"type":"SetVariable","variable":"BMI-metric"},{"data":{"name":"BMI_imperial","type":"function","arguments":[{"name":"heightFeet","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightInches","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightStones","type":{"type":"Number"},"formula":{"path":["Variables","Weight-stone"],"type":"path"}},{"name":"weightLbs","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}}]},"type":"SetVariable","variable":"BMI-imperial"},{"data":{"type":"value","value":true},"type":"SetVariable","variable":"error-msg"},{"type":"Switch","cases":[{"actions":[],"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"},"formula":{"path":["Variables","Weight-stone"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Equals"}}],"display_name":"Not"}}],"default":{"actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"popup-bmi"}]}}],"trigger":"onClick"}},"customProperties":{}},"eRvPPOG-MqJfW_F6nIBHC":{"tag":"h1","type":"element","children":["Vu8gA-U5ECAX7rJu6-kuF"],"classes":{"bQChyk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ex03DuAXdNpIGLSZQa7zB":{"tag":"div","type":"element","children":["Kukb5GBjn_CSsFTmUbZ8U"],"classes":{"eNHTsy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fAtOH0GM4puQUeVwLt85o":{"type":"text","value":{"type":"value","value":"18.5 > 24.9"}},"g7DyVPzWDslRij-zJJk3y":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"number"},"value":{"path":["Variables","Weight-stone"],"type":"path"},"maxlenght":{"type":"value","value":""},"placeholders":{"type":"value","value":11}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Weight-stone"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"onInput"}},"customProperties":{}},"grLRLu7yQiF67FXvrTgKq":{"type":"text","value":{"type":"value","value":"Check Your BMI"}},"gsUx7OJdkpYWc36tBO21z":{"type":"text","value":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},"iTEeTOLYBXrGS9MtLgUTG":{"tag":"div","type":"element","classes":{"Obese":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"bEoIPn":{"formula":{"type":"value","value":true}}},"children":["I_uNN73jNQ0gMt0WpFaF0","eB7vuFoMa-76r56dQAvWM"],"customProperties":{}},"inOcivjrnrV4BodNkQTJI":{"tag":"div","type":"element","classes":{"UnderWeight":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Underweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"fwYSbN":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jY9PPBIu0uLkkcMiRG0hX":{"type":"text","value":{"type":"value","value":"Weight (Stones)*"}},"jkId0T-EP39CwdWUwVEil":{"tag":"div","type":"element","classes":{"Obese":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"chXjLZ":{"formula":{"type":"value","value":true}}},"children":["yzjAlJmAMMCDIC7TlRE1_","v_nBWBG-B6oinKYqm77wi"],"customProperties":{}},"k1zqlcUZUmaV9MqJEPJEd":{"tag":"div","type":"element","children":["4FsdsO3iAnDSgtM99vLLu","GnxozJ-_5VuznQ2jBTXIi"],"classes":{"bjDrag":{"formula":{"type":"value","value":true}}},"customProperties":{}},"k9dJPFs311sqcvQQcw4Ga":{"tag":"div","type":"element","children":["q1M1KZOXyHS87PjiOVCoO","PopvN9cFTVOeINR6LlBFn"],"classes":{"eZJCvf":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lhqmhvYx1_Z5RxE7J8iM5":{"tag":"div","type":"element","children":["TDPjg4R2S-2oKCMkZUSvx","g7DyVPzWDslRij-zJJk3y"],"classes":{"cOqbmg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nXg9Gxl3lbRQ2ajt-NQ-_":{"type":"text","value":{"type":"value","value":"Your BMI"}},"oe-h3uXFd5S_6T8THIA1V":{"tag":"div","type":"element","children":["2jATB9j__OaGN75y241og"],"classes":{"dHlbU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ooqi8jQX1iX8fOza7orGv":{"type":"text","value":{"type":"value","value":"25 > 29.9"}},"q1M1KZOXyHS87PjiOVCoO":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"Metric"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Imperial"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Height-ft"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Height-inch"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Weight-lbs"},{"data":{"type":"value","value":""},"type":"SetVariable","variable":"Weight-stone"},{"data":{"type":"value","value":false},"type":"SetVariable","variable":"error-msg"}],"trigger":"click"}},"classes":{"outline":{"formula":{"path":["Variables","Metric"],"type":"path"}},"disabled":{"formula":{"path":["Variables","Imperial"],"type":"path"}},"bynjmB":{"formula":{"type":"value","value":true}}},"children":["_owWFuT5MtONk1if1aUK9"],"customProperties":{}},"qA8ULGr81nDdvDS_7mzT9":{"tag":"div","type":"element","classes":{"UW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Underweight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"dFnjGB":{"formula":{"type":"value","value":true}}},"children":["qsJSKyu7TcSl_cqeb-_EG","NYZIauRNgDWkoLGaY_mte"],"customProperties":{}},"qNGiCjcXSieqGWsTAwS_G":{"tag":"div","type":"element","classes":{"HW":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Healthy Weight"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"mSCCx":{"formula":{"type":"value","value":true}}},"children":["30RugXIgkBu5SAvyJ-n06","fAtOH0GM4puQUeVwLt85o"],"customProperties":{}},"qmrFXDfXuCJVvMOfYw8q3":{"tag":"div","type":"element","children":["2F0i02DWEjQ5Q5jdypCDQ","FXz_WpOEWF1tO92Kab2K4"],"classes":{"cOqbmg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qsJSKyu7TcSl_cqeb-_EG":{"type":"text","value":{"type":"value","value":"Underweight"}},"s-1egniinHZEKkgcwS-Tt":{"type":"text","value":{"type":"value","value":"BMI, short for Body Mass Index, is an easy way to see if your weight matches up well with your height, giving you a quick snapshot of your overall health."}},"uEvQWIVG7awyK5eb_Ny5W":{"tag":"div","type":"element","children":["L2_LSP8PiUKcn1_eq6G0z"],"classes":{"bsjUcy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"v_nBWBG-B6oinKYqm77wi":{"type":"text","value":{"type":"value","value":">30"}},"vg05cg-LO6aaeOFf--Y-5":{"tag":"div","type":"element","children":["LSh8DgNRc1utUw-PEVewA"],"classes":{"dSlzXR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wn2IDkEpbVn3KEks3DCUf":{"type":"text","value":{"type":"value","value":"@font-face {\n  font-family: 'PlusJakartaSans';\n  src: url('https://raw.githubusercontent.com/tokotype/PlusJakartaSans/master/fonts/ttf/PlusJakartaSans-Regular.ttf') format('truetype');\n}"}},"ySi4T2ZJhyYwiZ9jgppbY":{"tag":"div","type":"element","children":["M7uyOhyP0oV5lpaBSVK6-"],"classes":{"cpjaPZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"y_ExOWl_JQ1nr5VQ-dMRg":{"tag":"style","type":"element","children":["wn2IDkEpbVn3KEks3DCUf"],"customProperties":{}},"y_FiNRcyfrTT3upHmuGvv":{"type":"text","value":{"type":"switch","cases":[{"formula":{"path":["Variables","BMI-imperial"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":null}}],"display_name":"Equals"}}],"default":{"path":["Variables","BMI-metric"],"type":"path"}}},"ya7u_hPyomtPwqB2jbY_I":{"type":"text","value":{"type":"value","value":"Overweight"}},"yzjAlJmAMMCDIC7TlRE1_":{"type":"text","value":{"type":"value","value":"Obesity"}},"z4Ajwsml4AfPLVt_0PNW_":{"type":"text","value":{"name":"BMI_validation","type":"function","arguments":[{"name":"heightCm","type":{"type":"Number"},"formula":{"path":["Variables","Height-cm"],"type":"path"}},{"name":"weightKg","type":{"type":"Number"},"formula":{"path":["Variables","Weight-kg"],"type":"path"}},{"name":"heightFt","type":{"type":"Number"},"formula":{"path":["Variables","Height-ft"],"type":"path"}},{"name":"heightIn","type":{"type":"Number"},"formula":{"path":["Variables","Height-inch"],"type":"path"}},{"name":"weightLb","type":{"type":"Number"},"formula":{"path":["Variables","Weight-lbs"],"type":"path"}},{"name":"weightSt","type":{"type":"Number"},"formula":{"path":["Variables","Weight-stone"],"type":"path"}}]}},"znODdr5kYoPhOq0EgliVy":{"tag":"div","type":"element","classes":{"obese":{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"BMI_category","type":"function","arguments":[{"name":"bmiMetric","type":{"type":"Number"},"formula":{"path":["Variables","BMI-metric"],"type":"path"}},{"name":"bmiImperial","type":{"type":"Number"},"formula":{"path":["Variables","BMI-imperial"],"type":"path"}}]}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"Obese"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},"erusVl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zwxlsfxMSjV7_A6RxSKpd":{"type":"text","value":{"type":"value","value":"Underweight"}}},"variables":{"Metric":{"initialValue":{"type":"value","value":true}},"active":{"initialValue":{"type":"value","value":false}},"Imperial":{"initialValue":{"type":"value","value":false}},"Height-cm":{"initialValue":{"type":"value","value":""}},"Height-ft":{"initialValue":{"type":"value","value":""}},"Weight-kg":{"initialValue":{"type":"value","value":""}},"error-msg":{"initialValue":{"type":"value","value":false}},"popup-bmi":{"initialValue":{"type":"value","value":false}},"BMI-metric":{"initialValue":{"type":"value","value":""}},"Weight-lbs":{"initialValue":{"type":"value","value":""}},"Height-inch":{"initialValue":{"type":"value","value":""}},"BMI-imperial":{"initialValue":{"type":"value","value":""}},"Weight-stone":{"initialValue":{"type":"value","value":""}}}},{"name":"button-big","nodes":{"root":{"tag":"div","type":"element","events":{"click":{"actions":[{"type":"Switch","cases":[{"actions":[],"condition":{"path":["Attributes","disabled"],"type":"path"}}],"default":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"onClick"}]}}],"trigger":"click"}},"classes":{"color":{"formula":{"path":["Attributes","color"],"type":"path"}},"outline":{"formula":{"path":["Attributes","button-outline"],"type":"path"}},"disabled":{"formula":{"path":["Attributes","disabled"],"type":"path"}},"fmCnLL":{"formula":{"type":"value","value":true}}},"children":["TN8Hr_pxL6VtK12qon3ws","NC9Y0iMexq8Mk5Nt9O3ET"],"customProperties":{}},"HTa3UfBl1u5LrPEDsiC5E":{"type":"text","value":{"type":"value","value":".loader {\n    width: 25px;\n    height: 25px;\n    border: 3px solid #FFF;\n    border-bottom-color: transparent;\n    border-radius: 50%;\n    display: inline-block;\n    box-sizing: border-box;\n    animation: rotation 1s linear infinite;\n    }\n\n    @keyframes rotation {\n    0% {\n        transform: rotate(0deg);\n    }\n    100% {\n        transform: rotate(360deg);\n    }\n    } "}},"LMuXU4e-A89ttF9L3NudB":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697"},"stroke":{"type":"value","value":"white"},"stroke-width":{"type":"value","value":"1.5"},"stroke-linecap":{"type":"value","value":"round"},"stroke-linejoin":{"type":"value","value":"round"},"stroke-miterlimit":{"type":"value","value":"10"}},"customProperties":{}},"NC9Y0iMexq8Mk5Nt9O3ET":{"tag":"span","type":"element","classes":{"loader":{"formula":{"type":"value","value":true}}},"children":["fJ_hJ3OojJhZXodytMsSf"],"condition":{"path":["Attributes","loader"],"type":"path"},"customProperties":{}},"O3CB6xR72XHyNMdw76RSa":{"type":"text","value":{"path":["Attributes","button-text"],"type":"path"}},"THrigB9amY68TrAntHKmA":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M3.5 12H20.33"},"stroke":{"type":"value","value":"white"},"stroke-width":{"type":"value","value":"1.5"},"stroke-linecap":{"type":"value","value":"round"},"stroke-linejoin":{"type":"value","value":"round"},"stroke-miterlimit":{"type":"value","value":"10"}},"customProperties":{}},"TN8Hr_pxL6VtK12qon3ws":{"tag":"div","type":"element","children":["O3CB6xR72XHyNMdw76RSa","fk7-J6_KV_j6eCl2-UaAo"],"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Attributes","loader"],"type":"path"}}],"display_name":"Not"},"classes":{"JoBpk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fJ_hJ3OojJhZXodytMsSf":{"tag":"style","type":"element","children":["HTa3UfBl1u5LrPEDsiC5E"],"customProperties":{}},"fk7-J6_KV_j6eCl2-UaAo":{"tag":"svg","type":"element","attrs":{"fill":{"type":"value","value":"none"},"width":{"type":"value","value":"24"},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":"24"},"viewBox":{"type":"value","value":"0 0 24 24"}},"children":["LMuXU4e-A89ttF9L3NudB","THrigB9amY68TrAntHKmA"],"condition":{"path":["Attributes","arrow"],"type":"path"},"customProperties":{}}},"events":[{"name":"onClick"}],"attributes":{"arrow":{"name":"arrow"},"color":{"name":"color"},"active":{"name":"active"},"loader":{"name":"loader"},"disabled":{"name":"disabled"},"button-text":{"name":"button-text"},"button-outline":{"name":"button-outline"}}},{"name":"input","nodes":{"root":{"tag":"div","type":"element","children":["tmXG91uQ60FdbwxoIa2IX"],"classes":{"blomHA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mtIIr9EFWlbJ-Kz-5QxPd":{"type":"text","value":{"type":"value","value":"DD"}},"tmXG91uQ60FdbwxoIa2IX":{"tag":"input","type":"element","attrs":{"type":{"path":["Attributes","type"],"type":"path"},"value":{"path":["Attributes","value"],"type":"path"},"onkeyup":{"path":["Attributes","onkeyup"],"type":"path"},"inputmode":{"path":["Attributes","inputmode"],"type":"path"},"maxlength":{"path":["Attributes","maxlenght"],"type":"path"},"placeholder":{"path":["Attributes","placeholders"],"type":"path"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"TriggerEvent","event":"onInput"}],"trigger":"input"}},"children":["mtIIr9EFWlbJ-Kz-5QxPd"],"classes":{"fFACsq":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"onInput"}],"attributes":{"type":{"name":"type"},"value":{"name":"value"},"onkeyup":{"name":"onkeyup"},"inputmode":{"name":"inputmode"},"maxlenght":{"name":"maxlenght"},"placeholders":{"name":"placeholders"}}}]}