{"project":"looprx","branch":"main","commit":"fb23c846bde4e523f0a63a894fd4cecb7346a515","component":{"key":"Login","name":"Sign Up","nodes":{"root":{"tag":"div","type":"element","classes":{"page-wrapper":{"formula":{"type":"value","value":true}},"cdhbhR":{"formula":{"type":"value","value":true}}},"children":["EzUIAQ0iP10ZBfphAkU3m","S5OsqJJMunnKBc4T7NVYP","D5Ez4Eqb2KTt5ITZ02P3G","ugbBhHHidZ-l5mpyZ0TUT"],"customProperties":{}},"D5Ez4Eqb2KTt5ITZ02P3G":{"name":"Notification","type":"component","attrs":{"message":{"path":["Variables","message"],"type":"path","label":null},"notification_error":{"path":["Variables","notificationError"],"type":"path","label":null},"notification_success":{"path":["Variables","notificationSuccess"],"type":"path","label":null}},"customProperties":{}},"EzUIAQ0iP10ZBfphAkU3m":{"name":"Header","type":"component","customProperties":{}},"Pvb2VBUsuF0CXUlJ2QJdX":{"name":"Login-OTP-Popup","type":"component","attrs":{"type":{"type":"value","value":"signup"},"email":{"path":["URL parameters","email"],"type":"path"},"phone":{"path":["Variables","phone"],"type":"path"},"token":{"path":["URL parameters","token"],"type":"path"},"fullname":{"path":["Variables","fullName"],"type":"path"},"password":{"path":["Variables","password"],"type":"path"},"show_hide_otp":{"path":["Variables","showHideOTP"],"type":"path"}},"events":{"hide_popup":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"showHideOTP"}],"trigger":"hide_popup"},"notification_eror":{"actions":[{"type":"TriggerWorkflow","workflow":"tgkPgl","parameters":{"message":{"formula":{"path":["Event"],"type":"path"}}}}],"trigger":"notification_eror"},"notification_success":{"actions":[{"type":"TriggerWorkflow","workflow":"1uVl_5","parameters":{"message":{"formula":{"path":["Event"],"type":"path"}}}}],"trigger":"notification_success"}},"condition":{"path":["Variables","showHideOTP"],"type":"path"},"customProperties":{}},"S5OsqJJMunnKBc4T7NVYP":{"tag":"div","type":"element","children":["xRfU_ZFSOUUHcHpjwB0hL","Pvb2VBUsuF0CXUlJ2QJdX"],"classes":{"eEMZnJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ugbBhHHidZ-l5mpyZ0TUT":{"name":"Dashboard Unavailable","type":"component","customProperties":{}},"xRfU_ZFSOUUHcHpjwB0hL":{"name":"Sign Up - Request OTP","type":"component","attrs":{"role":{"path":["URL parameters","role"],"type":"path"},"email":{"path":["URL parameters","email"],"type":"path"},"token":{"path":["URL parameters","token"],"type":"path"}},"events":{"DOB":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"DOB"}],"trigger":"DOB"},"city":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"City"}],"trigger":"city"},"Address":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Address"}],"trigger":"Address"},"country":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Country"}],"trigger":"country"},"password":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"password"}],"trigger":"password"},"full_name":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"fullName"}],"trigger":"full_name"},"Postalcode":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"postal_code"}],"trigger":"Postalcode"},"request_otp":{"actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"showHideOTP"}],"trigger":"request_otp"},"phone_number":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"phone"}],"trigger":"phone_number"},"notification_error":{"actions":[{"type":"TriggerWorkflow","workflow":"tgkPgl","parameters":{"message":{"formula":{"path":["Event"],"type":"path"}}}}],"trigger":"notification_error"},"notification_success":{"actions":[{"type":"TriggerWorkflow","workflow":"1uVl_5","parameters":{"message":{"formula":{"path":["Event"],"type":"path"}}}}],"trigger":"notification_success"}},"customProperties":{}}},"route":{"path":[{"name":"sign-up","type":"static"}],"query":{"role":{"name":"role"},"email":{"name":"email"},"token":{"name":"token"}}},"__type":"components","onLoad":{"actions":[],"trigger":"Load"},"variables":{"DOB":{"initialValue":{"type":"value","value":""}},"City":{"initialValue":{"type":"value","value":""}},"role":{"initialValue":{"type":"value","value":"prescriber"}},"step":{"initialValue":{"type":"value","value":1}},"phone":{"initialValue":{"type":"value","value":""}},"Address":{"initialValue":{"type":"value","value":""}},"Country":{"initialValue":{"type":"value","value":""}},"message":{"initialValue":{"type":"value","value":""}},"fullName":{"initialValue":{"type":"value","value":""}},"password":{"initialValue":{"type":"value","value":""}},"postal_code":{"initialValue":{"type":"value","value":""}},"showHideOTP":{"initialValue":{"type":"value","value":false}},"notificationError":{"initialValue":{"type":"value","value":false}},"notificationSuccess":{"initialValue":{"type":"value","value":false}}},"workflows":{"1uVl_5":{"name":"Notification Success","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"notificationSuccess"},{"data":{"path":["Parameters","message"],"type":"path"},"type":"SetVariable","variable":"message"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"notificationSuccess"}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"parameters":[{"name":"message"}],"exposeInContext":true},"tgkPgl":{"name":"Notification Error","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"notificationError"},{"data":{"path":["Parameters","message"],"type":"path"},"type":"SetVariable","variable":"message"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"notificationError"}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"parameters":[{"name":"message"}],"exposeInContext":true}}},"components":[{"name":"Notification","nodes":{"root":{"tag":"div","type":"element","children":["E8rK8PTFmpWPx7ylrxofL","PUe2ZKToYjGkr_McSuXEH"],"style-variables":[{"name":"Untitled","unit":"px","formula":{"type":"value","value":100},"category":"spacing"}],"classes":{"dTobk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"E8rK8PTFmpWPx7ylrxofL":{"tag":"div","type":"element","classes":{"notificationError":{"formula":{"path":["Attributes","notification_error"],"type":"path"}},"cErgSA":{"formula":{"type":"value","value":true}}},"children":["aAE7pItPQJziYtsBKommE"],"customProperties":{}},"PUe2ZKToYjGkr_McSuXEH":{"tag":"div","type":"element","classes":{"notificationSuccess":{"formula":{"path":["Attributes","notification_success"],"type":"path"}},"dfGEHs":{"formula":{"type":"value","value":true}}},"children":["RFhRBnjfTPwykDeFGKfDF"],"customProperties":{}},"Qp9V_qg1LcEdY6MGN2xXU":{"type":"text","value":{"path":["Attributes","message"],"type":"path"}},"RFhRBnjfTPwykDeFGKfDF":{"tag":"div","type":"element","children":["Qp9V_qg1LcEdY6MGN2xXU"],"classes":{"AVjae":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aAE7pItPQJziYtsBKommE":{"tag":"div","type":"element","children":["bKWX_-UtQQwjLkPmIkLkD"],"classes":{"AVjae":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bKWX_-UtQQwjLkPmIkLkD":{"type":"text","value":{"path":["Attributes","message"],"type":"path"}}},"workflows":{"HJ0zAQ":{"name":"Untitled","actions":[],"exposeInContext":false,"parameters":[]}},"attributes":{"message":{"name":"message"},"notification_error":{"name":"notification_error"},"notification_success":{"name":"notification_success"}}},{"name":"Header","nodes":{"root":{"tag":"header","type":"element","children":["-Tzi7tliJgAlgssXYph03"],"classes":{"ea-dena":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-Tzi7tliJgAlgssXYph03":{"tag":"svg","type":"element","attrs":{"fill":{"type":"value","value":"none"},"width":{"type":"value","value":120},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":60},"viewBox":{"type":"value","value":"0 0 83 25"}},"children":["NfEgBgd5mxhDQkqNswmzs","hCApS0-BEY8K1_0-Majru","S2OpJEeK4iv21cdm3F80m"],"customProperties":{}},"NfEgBgd5mxhDQkqNswmzs":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M10.928 20H1.996V4.6H3.91V18.24H10.928V20ZM25.6805 12.3C25.6805 16.832 22.6665 20.132 18.3325 20.132C13.9985 20.132 10.9845 16.832 10.9845 12.3C10.9845 7.768 13.9985 4.468 18.3325 4.468C22.6665 4.468 25.6805 7.768 25.6805 12.3ZM12.9425 12.3C12.9425 15.842 15.1205 18.372 18.3325 18.372C21.5445 18.372 23.7225 15.842 23.7225 12.3C23.7225 8.758 21.5445 6.228 18.3325 6.228C15.1205 6.228 12.9425 8.758 12.9425 12.3ZM42.2235 12.3C42.2235 16.832 39.2095 20.132 34.8755 20.132C30.5415 20.132 27.5275 16.832 27.5275 12.3C27.5275 7.768 30.5415 4.468 34.8755 4.468C39.2095 4.468 42.2235 7.768 42.2235 12.3ZM29.4855 12.3C29.4855 15.842 31.6635 18.372 34.8755 18.372C38.0875 18.372 40.2655 15.842 40.2655 12.3C40.2655 8.758 38.0875 6.228 34.8755 6.228C31.6635 6.228 29.4855 8.758 29.4855 12.3ZM44.6425 20V4.6H50.5605C53.6405 4.6 55.6645 6.448 55.6645 9.33C55.6645 12.212 53.6405 14.082 50.5605 14.082H46.5565V20H44.6425ZM50.4065 6.36H46.5565V12.322H50.3845C52.4085 12.322 53.7065 11.156 53.7065 9.33C53.7065 7.504 52.4305 6.36 50.4065 6.36Z"},"fill":{"type":"value","value":"#304A4B"}},"customProperties":{}},"S2OpJEeK4iv21cdm3F80m":{"tag":"defs","type":"element","children":["c6YbufJTwNnNtH_kIeG3l"],"customProperties":{}},"XneyEDqjeAxCgiC_mx959":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M82.2061 22.7264C81.9307 22.6463 81.7033 22.5523 81.529 22.4474C81.3454 22.3378 81.172 22.2058 81.0128 22.0565C80.8443 21.8988 80.6574 21.6991 80.4586 21.4636C80.2564 21.2258 79.9221 20.8046 79.4362 20.1775L76.2317 16.0472L75.8693 15.5839L79.5145 10.9986C79.9841 10.4078 80.7306 10.0588 81.5245 10.0588H82.1395V8.97091H76.3539V10.0588H77.8429C78.24 10.0588 78.4685 10.4751 78.2337 10.7705L75.1441 14.6569L74.8876 14.329L73.2926 12.2347C73.0837 11.9635 72.9069 11.7164 72.7662 11.5003L69.982 7.79359C70.4941 7.51851 70.9286 7.20373 71.279 6.85487C72.0361 6.10028 72.4201 5.17559 72.4201 4.10779C72.4201 2.69971 71.8221 1.64123 70.6414 0.963645C69.5264 0.324021 67.8497 0 65.6567 0H58.5V1.21619L58.8234 1.28767C59.2993 1.39339 59.5241 1.46874 59.6286 1.5138C59.7381 1.56118 59.8256 1.62258 59.8872 1.69562C59.9318 1.74844 59.9924 1.85334 60.0321 2.0562C60.0599 2.19065 60.0935 2.47192 60.0935 3.05245V12.2719C60.0935 12.767 60.0666 13.1337 60.0143 13.3622C59.9756 13.5278 59.9032 13.6474 59.792 13.7282C59.7271 13.7756 59.504 13.8991 58.8328 14.0321L58.5002 14.0981V15.3244H65.0859V14.1059L64.7634 14.0344C64.2816 13.9279 64.0577 13.8533 63.9591 13.8114C63.8471 13.7625 63.7612 13.7034 63.6997 13.6303C63.6745 13.6016 63.6096 13.5084 63.5607 13.2759C63.5296 13.1337 63.4925 12.8384 63.4925 12.2393V8.99567C64.6429 8.96926 65.8194 8.91792 66.8586 8.77498L72.8936 16.5763L73.2535 17.0354L69.1982 22.1366C68.8106 22.624 68.1947 22.912 67.5396 22.912H66.7088V23.9999H72.4945V22.912H71.0003C70.6033 22.912 70.3748 22.4957 70.6096 22.2003L73.9794 17.9613L74.2259 18.2758L76.2967 20.9832C76.5494 21.3127 76.7381 21.5909 76.8576 21.8093C76.9562 21.9911 77.0067 22.1496 77.0067 22.2825C77.0067 22.4294 76.9512 22.476 76.899 22.5086C76.8021 22.5692 76.5957 22.654 76.1662 22.7123L75.8067 22.762V23.9969H82.5002V22.8125L82.2063 22.7263L82.2061 22.7264ZM68.515 5.84146C68.2995 6.22457 68.0123 6.52449 67.6602 6.7328C67.5726 6.78488 67.4867 6.83151 67.4042 6.87187C67.1052 7.01795 66.7836 7.12285 66.4476 7.18351L66.3734 7.19671C65.9287 7.27289 65.3359 7.31094 64.6091 7.31094H63.4924V1.73912C63.9345 1.72277 64.4592 1.71502 65.058 1.71502C66.013 1.71502 66.7726 1.82305 67.3159 2.03516C67.8371 2.24033 68.2119 2.52391 68.4612 2.90397C68.7138 3.28635 68.8426 3.78517 68.8426 4.38509C68.8426 4.98502 68.7324 5.45521 68.515 5.84137V5.84146Z"},"fill":{"type":"value","value":"#304A4B"}},"customProperties":{}},"c6YbufJTwNnNtH_kIeG3l":{"tag":"clipPath","type":"element","attrs":{"id":{"type":"value","value":"clip0_86_209"}},"children":["jTeLLuVZqVPpRGHgK0va5"],"customProperties":{}},"hCApS0-BEY8K1_0-Majru":{"tag":"g","type":"element","attrs":{"clip-path":{"type":"value","value":"url(#clip0_86_209)"}},"children":["XneyEDqjeAxCgiC_mx959"],"customProperties":{}},"jTeLLuVZqVPpRGHgK0va5":{"tag":"rect","type":"element","attrs":{"fill":{"type":"value","value":"white"},"width":{"type":"value","value":"24"},"height":{"type":"value","value":"24"},"transform":{"type":"value","value":"translate(58.5)"}},"customProperties":{}}},"variables":{"Untitled":{"initialValue":{"type":"value","value":null}}}},{"apis":{"OTP":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}},{"Name":0,"name":"otp","formula":{"path":["Variables","OTP"],"type":"path"}}]},"name":"OTP","path":{"067daea7-cada-45fb-9525-829984b686a5":{"index":2,"formula":{"type":"value","value":"verify-otp"}},"a6fa2b17-ac89-4f66-be74-99a0af199630":{"index":0,"formula":{"type":"value","value":"api"}},"de699b28-f579-487b-9e89-2f73035e354e":{"index":1,"formula":{"type":"value","value":"login"}}},"type":"http","client":{"onCompleted":{"actions":[],"trigger":"Completed"}},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Login":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Attributes","password"],"type":"path"}}]},"name":"Login","path":{"6eac3571-87a0-468d-a7eb-744a67bf75b4":{"index":2,"formula":{"type":"value","value":"send-otp"}},"c936c7fa-1962-4265-ac7f-ee1cbecd64c4":{"index":1,"formula":{"type":"value","value":"login"}},"c9eb32ef-02d8-42af-a7a8-bb50869880c7":{"index":0,"formula":{"type":"value","value":"api"}}},"type":"http","client":{"debounce":null,"parserMode":"auto","onCompleted":{"actions":[],"trigger":"Success"}},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":null},"headers":{"Content-type":{"formula":{"type":"value","value":"application/json"}},"Authorization":{"name":"Authorization","enabled":{"type":"value","value":true},"formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"formula":{"type":"value","value":"Bearer "}},{"formula":{"name":"@toddle/getHttpOnlyCookie","type":"function","arguments":[{"formula":{"type":"value","value":"access_token"}}],"display_name":"Get Http-Only Cookie"}}],"display_name":"Concatenate"}}},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"userSignup":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}},{"Name":0,"name":"otp","formula":{"path":["Variables","OTP"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Attributes","password"],"type":"path"}}]},"name":"userSignup","path":{"59169ec1-f24a-4636-acb0-8ebf131f3b8f":{"index":2,"formula":{"type":"value","value":"verify-otp"}},"7ade47a3-cb02-4775-b8eb-0442c0ecf907":{"index":1,"formula":{"type":"value","value":"sign-up"}},"faf996f9-1a95-4c2f-95b4-0d5e0d1f3ba2":{"index":0,"formula":{"type":"value","value":"api"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Request OTP":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"name":"@toddle/decodeURIComponent","type":"function","arguments":[{"name":"EncodedURI","type":{"type":"String"},"formula":{"path":["Attributes","email"],"type":"path"}}],"display_name":"Decode URI Component"}}]},"name":"Request OTP","path":{"5020289e-8180-4b34-aa3f-4a4cf2f8791b":{"index":1,"formula":{"type":"value","value":"forgot-password"}},"7210df2c-3ce7-44f4-99eb-c9cb0cb6ec2a":{"index":2,"formula":{"type":"value","value":"send-otp"}},"fe2a3eec-9b3b-44c2-bacb-0f86cc13399d":{"index":0,"formula":{"type":"value","value":"api"}}},"type":"http","client":{"onFailed":{"actions":[],"trigger":"Error"},"onCompleted":{"actions":[],"trigger":"Completed"}},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Request Sign Up OTP":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"name","formula":{"path":["Attributes","fullname"],"type":"path"}},{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}},{"Name":0,"name":"invitation_token","formula":{"path":["Attributes","token"],"type":"path"}},{"Name":0,"name":"mobile","formula":{"path":["Attributes","phone"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Attributes","password"],"type":"path"}},{"Name":0,"name":"date_of_birth","formula":{"type":"switch","cases":[{"formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Attributes","dd"],"type":"path"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"-"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Attributes","dm"],"type":"path"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"-"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Attributes","dy"],"type":"path"}}],"display_name":"Concatenate","variableArguments":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"Name":0,"name":"address1","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","address"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"Name":0,"name":"city","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","city"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"Name":0,"name":"postcode","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","postal-code"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"Name":0,"name":"country","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","country"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}},{"Name":0,"name":"role","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"prescriber"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":""}}}]},"name":"Request Sign Up OTP","path":{"5f8d1d3a-09c0-4ce1-adbc-443274f9efe5":{"index":2,"formula":{"type":"value","value":"send-otp"}},"e7d1f9e7-f6d5-45f3-99c6-a4af28c3b431":{"index":0,"formula":{"type":"value","value":"api"}},"ffd1e3cd-e7d2-4aec-8a14-fbdffb40e718":{"index":1,"formula":{"type":"value","value":"sign-up"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Request Login OTP Via SMS":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}}]},"name":"Request Login OTP Via SMS","path":{"e7d1f9e7-f6d5-45f3-99c6-a4af28c3b431":{"index":0,"formula":{"type":"value","value":"api"}},"ffd1e3cd-e7d2-4aec-8a14-fbdffb40e718":{"index":1,"formula":{"type":"value","value":"send-otp-phone"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Verify & Confirm Password":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"otp","formula":{"path":["Variables","OTP"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Attributes","password"],"type":"path"}},{"Name":0,"name":"email","formula":{"path":["Attributes","email"],"type":"path"}}]},"name":"Verify & Confirm Password","path":{"1e70ad0a-c284-4604-957c-05ade6da3eaa":{"index":1,"formula":{"type":"value","value":"forgot-password"}},"834afc8c-1d31-4112-9e12-ef0607fb9459":{"index":2,"formula":{"type":"value","value":"confirm-password"}},"ecbd52fb-73f8-454d-a747-2a9bb39fe60f":{"index":0,"formula":{"type":"value","value":"api"}}},"type":"http","client":{"onFailed":{"actions":[],"trigger":"Error"},"onCompleted":{"actions":[],"trigger":"Completed"}},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Request Sign Up OTP Via SMS":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"mobile","formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Array \\| String"},"formula":{"type":"value","value":44}},{"name":"0","type":{"type":"Array \\| String"},"formula":{"path":["Attributes","phone"],"type":"path"}}],"display_name":"Concatenate","variableArguments":true}}]},"name":"Request Sign Up OTP Via SMS","path":{"e7d1f9e7-f6d5-45f3-99c6-a4af28c3b431":{"index":0,"formula":{"type":"value","value":"api"}},"ffd1e3cd-e7d2-4aec-8a14-fbdffb40e718":{"index":1,"formula":{"type":"value","value":"send-otp-phone"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]}},"name":"Login-OTP-Popup","nodes":{"root":{"tag":"div","type":"element","children":["X25y7aoh2Faz6fNoaVqA4","LSoNs2rTgg6WY_y9bXiE2","WJZ-RNrrQW0DdbjITfiCB"],"condition":{"path":["Attributes","show_hide_otp"],"type":"path"},"classes":{"WVtvR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1EaeIolCQ7dsJ3GT6523y":{"tag":"form","type":"element","events":{"submit":{"actions":[{"name":"@toddle/preventDefault"},{"type":"Switch","cases":[{"actions":[{"api":"OTP","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","OTP","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"name":"@toddle/setSessionCookies","events":{"Error":{"actions":[],"description":"This event is triggered if toddle is unable to set the session cookies"},"Success":{"actions":[{"name":"@toddle/gotToURL","arguments":[{"name":"URL","formula":{"type":"value","value":"/dashboard"}}]}],"trigger":"Success","description":"This event is triggered once the tokens have been saved."}},"arguments":[{"name":"Access token","formula":{"path":["Apis","OTP","data","token"],"type":"path"}},{"name":"Expires in","formula":{"type":"value","value":86000}}]},{"data":{"path":["Apis","OTP","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"}],"trigger":"onSuccess"}}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"login"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"api":"userSignup","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","userSignup","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","userSignup","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"name":"@toddle/gotToURL","arguments":[{"name":"URL","formula":{"type":"value","value":"/"}}]}],"trigger":"onSuccess"}}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"signup"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}],"default":{"actions":[{"api":"Verify & Confirm Password","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Verify & Confirm Password","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Verify & Confirm Password","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"name":"@toddle/sleep","events":{"tick":{"actions":[{"name":"@toddle/gotToURL","arguments":[{"name":"URL","formula":{"type":"value","value":"/"}}]}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":200}}]}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onSuccess"}}]}}]}}],"trigger":"submit"}},"children":["5UHH8GjRY2eInHCub5-0n","NHZYcXRtJXXOmQ5KN2mgw"],"classes":{"MqBcO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5UHH8GjRY2eInHCub5-0n":{"tag":"div","type":"element","children":["YSS59SKzNofjv14UJgEKf","MeANCSq13cdly092Hqc43"],"customProperties":{}},"LSoNs2rTgg6WY_y9bXiE2":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"hide_popup"},{"data":{"type":"value","value":-1},"type":"SetVariable","variable":"timer"},{"data":{"type":"value","value":0},"type":"SetVariable","variable":"otp_sent_count"}],"trigger":"click"}},"classes":{"fMVA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MeANCSq13cdly092Hqc43":{"tag":"div","type":"element","children":["QGI4D4-Py6hYM9R4Ph---"],"classes":{"dcKcrc":{"formula":{"type":"value","value":true}}},"customProperties":{}},"NHZYcXRtJXXOmQ5KN2mgw":{"name":"Buttton-Big","type":"component","attrs":{"title":{"type":"switch","cases":[{"formula":{"type":"value","value":"Log In"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"login"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"Complete Sign Up"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"signup"}}],"display_name":"Equals"}}],"default":{"type":"value","value":"Reset Password"}}},"is_loading":{"type":"switch","cases":[{"formula":{"path":["Apis","OTP","isLoading"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"login"}}],"display_name":"Equals"}}],"default":{"type":"switch","cases":[{"formula":{"path":["Apis","Request Sign Up OTP","isLoading"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"signup"}}],"display_name":"Equals"}}],"default":{"path":["Apis","Verify & Confirm Password","isLoading"],"type":"path"}}}},"customProperties":{}},"QGI4D4-Py6hYM9R4Ph---":{"tag":"div","type":"element","events":{"click":{"actions":[{"type":"Switch","cases":[{"actions":[{"type":"Switch","cases":[{"actions":[],"condition":{"path":["Variables","isCounting"],"type":"path"}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"api":"Request Login OTP Via SMS","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Login OTP Via SMS","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Request Login OTP Via SMS","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}}],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":2}}],"display_name":"Equals"}}],"default":{"actions":[{"api":"Login","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Login","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Login","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}},{"data":{"name":"@toddle/add","type":"function","arguments":[{"name":"0","type":{"type":"Number"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"1","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Add","variableArguments":true},"type":"SetVariable","variable":"otp_sent_count"}]}}]}}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"login"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"type":"Switch","cases":[{"actions":[],"condition":{"path":["Variables","isCounting"],"type":"path"}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"api":"Request Sign Up OTP Via SMS","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP Via SMS","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"type":"value","value":"OTP Sent Successfully"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}}],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":2}}],"display_name":"Equals"}}],"default":{"actions":[{"api":"Request Sign Up OTP","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"type":"value","value":"OTP Sent Successfully"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}},{"data":{"name":"@toddle/add","type":"function","arguments":[{"name":"0","type":{"type":"Number"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"1","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Add","variableArguments":true},"type":"SetVariable","variable":"otp_sent_count"}]}}]}}],"condition":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","type"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"signup"}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[],"condition":{"path":["Variables","isCounting"],"type":"path"}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"api":"Request Login OTP Via SMS","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Login OTP Via SMS","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Request Login OTP Via SMS","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}}],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":2}}],"display_name":"Equals"}}],"default":{"actions":[{"api":"Request OTP","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request OTP","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_eror"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Request OTP","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"type":"TriggerWorkflow","workflow":"au-OF5"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onSuccess"}},{"data":{"name":"@toddle/add","type":"function","arguments":[{"name":"0","type":{"type":"Number"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"1","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Add","variableArguments":true},"type":"SetVariable","variable":"otp_sent_count"}]}}]}}]}}]}}],"trigger":"click"}},"classes":{"disabled":{"formula":{"path":["Variables","isCounting"],"type":"path"}},"bKGTa":{"formula":{"type":"value","value":true}}},"children":["kgkiENIggsEI5THJsgy5L"],"customProperties":{}},"VWV8DDlDthsr0iicDIsrs":{"tag":"div","type":"element","children":["1EaeIolCQ7dsJ3GT6523y"],"classes":{"bsoBDd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WJZ-RNrrQW0DdbjITfiCB":{"tag":"div","type":"element","children":["agFRvXQzE7yYizTN2Psfj","vqnX9pCYB_YDRv4r6vPh-","VWV8DDlDthsr0iicDIsrs"],"classes":{"dXMFGU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"X25y7aoh2Faz6fNoaVqA4":{"name":"Background","type":"component","customProperties":{}},"YSS59SKzNofjv14UJgEKf":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","OTP"],"type":"path"},"maxlenght":{"type":"value","value":5},"onkeypress":{"type":"value","value":"return event.charCode >= 48 && event.charCode <= 57"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"OTP"}],"trigger":"onInput"}},"customProperties":{}},"_9lSOmnlikBqtu-eN-c2w":{"type":"text","value":{"type":"value","value":"One Time Password"},"events":null},"agFRvXQzE7yYizTN2Psfj":{"tag":"h2","type":"element","children":["_9lSOmnlikBqtu-eN-c2w"],"classes":{"cdwNlr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kgkiENIggsEI5THJsgy5L":{"type":"text","value":{"type":"switch","cases":[{"formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"Resend OTP via SMS"},"condition":{"name":"@toddle/lessOrEqual","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Less or equal"}}],"default":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"  seconds"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":" to "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"Resend OTP via SMS"}}],"display_name":"String"}}],"display_name":"Concatenate","variableArguments":true}},"condition":{"type":"and","arguments":[{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","otp_sent_count"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":2}}],"display_name":"Equals"}}]}}],"default":{"type":"switch","cases":[{"formula":{"type":"value","value":"Resend OTP"},"condition":{"name":"@toddle/lessOrEqual","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Less or equal"}}],"default":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"  seconds"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":" to "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"Resend OTP "}}],"display_name":"Concatenate","variableArguments":true}}},"events":null},"rO2LxgigQxUu1sw1hfBd6":{"type":"text","value":{"type":"value","value":"We have sent you an email with an access code to your email address."},"events":null},"vqnX9pCYB_YDRv4r6vPh-":{"tag":"label","type":"element","children":["rO2LxgigQxUu1sw1hfBd6"],"classes":{"ebEONN":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"notification_success"},{"name":"notification_eror"},{"name":"hide_popup"}],"onLoad":{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"trigger":"Load"},"variables":{"OTP":{"initialValue":{"type":"value","value":""}},"timer":{"initialValue":{"type":"value","value":30}},"isCounting":{"initialValue":{"type":"value","value":false}},"otp_sent_count":{"initialValue":{"type":"value","value":0}}},"workflows":{"OdJdLI":{"name":"countDown","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"isCounting"},{"type":"Switch","cases":[{"actions":[{"data":{"name":"@toddle/minus","type":"function","arguments":[{"name":"Minuend","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Substrahend","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Minus"},"type":"SetVariable","variable":"timer"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"OdJdLI"}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":1000}}]}],"condition":{"name":"@toddle/greaterThan","type":"function","label":"Should keep on counting","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}],"default":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"isCounting"},{"data":{"type":"value","value":-1},"type":"SetVariable","variable":"timer"}]}}],"exposeInContext":false,"parameters":[]},"au-OF5":{"name":"reset","actions":[{"data":{"type":"value","value":30},"type":"SetVariable","variable":"timer"}],"exposeInContext":false,"parameters":[]}},"attributes":{"dd":{"name":"dd"},"dm":{"name":"dm"},"dy":{"name":"dy"},"city":{"name":"city"},"role":{"name":"role"},"type":{"name":"type"},"email":{"name":"email"},"phone":{"name":"phone"},"token":{"name":"token"},"address":{"name":"address"},"country":{"name":"country"},"fullname":{"name":"fullname"},"password":{"name":"password"},"postal-code":{"name":"postal-code"},"show_hide_otp":{"name":"show_hide_otp"}}},{"name":"Buttton-Big","nodes":{"root":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"click"}],"trigger":"click"}},"children":["dLL6UiheVkieeKYYBqGer"],"classes":{"bfhuXQ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"VpQaAxoswPAohBykgrh6p":{"tag":"div","type":"element","children":["ZYTKYGTUcY1qMKiAmyjcL"],"condition":{"name":"@toddle/not","type":"function","label":null,"arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Attributes","is_loading"],"type":"path"}}],"display_name":"Not"},"customProperties":{}},"WxuHfbtAXI2nJSfC99h9R":{"tag":"style","type":"element","children":["qmWrBmhEbpA0OQQhqBkp-"],"classes":{"dkNCxK":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZYTKYGTUcY1qMKiAmyjcL":{"type":"text","value":{"path":["Attributes","title"],"type":"path"},"events":null},"dLL6UiheVkieeKYYBqGer":{"tag":"button","type":"element","classes":{"is_filter":{"formula":{"path":["Attributes","is_filter"],"type":"path"}},"eSyClx":{"formula":{"type":"value","value":true}}},"children":["VpQaAxoswPAohBykgrh6p","mMaFanPA1aawicouPOopl"],"customProperties":{}},"mMaFanPA1aawicouPOopl":{"tag":"span","type":"element","classes":{"loader":{},"zPCpS":{"formula":{"type":"value","value":true}}},"children":["WxuHfbtAXI2nJSfC99h9R"],"condition":{"path":["Attributes","is_loading"],"type":"path"},"customProperties":{}},"qmWrBmhEbpA0OQQhqBkp-":{"type":"text","value":{"type":"value","value":".loader {\n    border: 3px solid #FFFFFF;\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    } "}}},"events":[{"name":"click"}],"attributes":{"title":{"name":"title"},"is_filter":{"name":"is_filter"},"is_loading":{"name":"is_loading"}}},{"name":"Background","nodes":{"root":{"tag":"div","type":"element","classes":{"cGENZk":{"formula":{"type":"value","value":true}}},"customProperties":{}}}},{"key":"input","name":"input","nodes":{"root":{"tag":"div","type":"element","children":["tmXG91uQ60FdbwxoIa2IX"],"classes":{"eNNskM":{"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"},"readonly":{"path":["Attributes","readonly"],"type":"path"},"inputmode":{"path":["Attributes","inputmode"],"type":"path"},"maxlength":{"path":["Attributes","maxlenght"],"type":"path"},"minilength":{"path":["Attributes","minilength"],"type":"path"},"onkeypress":{"path":["Attributes","onkeypress"],"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":{"dfNmbd":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"onInput"}],"attributes":{"type":{"name":"type"},"value":{"name":"value"},"onkeyup":{"name":"onkeyup"},"readonly":{"name":"readonly"},"inputmode":{"name":"inputmode"},"maxlenght":{"name":"maxlenght"},"minilength":{"name":"minilength"},"onkeypress":{"name":"onkeypress"},"placeholders":{"name":"placeholders"}}},{"name":"Dashboard Unavailable","nodes":{"root":{"tag":"div","type":"element","children":["vcxIxlO4aDtFH4jrq3yWQ"],"classes":{"eCoIBG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EADauy0FrtJT0cp--KBQ3":{"tag":"svg","type":"element","attrs":{"fill":{"type":"value","value":"none"},"width":{"type":"value","value":120},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":60},"viewBox":{"type":"value","value":"0 0 83 25"}},"children":["tJ2zEHx5s8xbWt7fE_N6G","XS8KSvNaPNZ_a5i3bvKyd","mOTsvnFvvTf9XEHlWPU9X"],"customProperties":{}},"GyXB9PgY6yJRKSJSW3e-m":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M82.2061 22.7264C81.9307 22.6463 81.7033 22.5523 81.529 22.4474C81.3454 22.3378 81.172 22.2058 81.0128 22.0565C80.8443 21.8988 80.6574 21.6991 80.4586 21.4636C80.2564 21.2258 79.9221 20.8046 79.4362 20.1775L76.2317 16.0472L75.8693 15.5839L79.5145 10.9986C79.9841 10.4078 80.7306 10.0588 81.5245 10.0588H82.1395V8.97091H76.3539V10.0588H77.8429C78.24 10.0588 78.4685 10.4751 78.2337 10.7705L75.1441 14.6569L74.8876 14.329L73.2926 12.2347C73.0837 11.9635 72.9069 11.7164 72.7662 11.5003L69.982 7.79359C70.4941 7.51851 70.9286 7.20373 71.279 6.85487C72.0361 6.10028 72.4201 5.17559 72.4201 4.10779C72.4201 2.69971 71.8221 1.64123 70.6414 0.963645C69.5264 0.324021 67.8497 0 65.6567 0H58.5V1.21619L58.8234 1.28767C59.2993 1.39339 59.5241 1.46874 59.6286 1.5138C59.7381 1.56118 59.8256 1.62258 59.8872 1.69562C59.9318 1.74844 59.9924 1.85334 60.0321 2.0562C60.0599 2.19065 60.0935 2.47192 60.0935 3.05245V12.2719C60.0935 12.767 60.0666 13.1337 60.0143 13.3622C59.9756 13.5278 59.9032 13.6474 59.792 13.7282C59.7271 13.7756 59.504 13.8991 58.8328 14.0321L58.5002 14.0981V15.3244H65.0859V14.1059L64.7634 14.0344C64.2816 13.9279 64.0577 13.8533 63.9591 13.8114C63.8471 13.7625 63.7612 13.7034 63.6997 13.6303C63.6745 13.6016 63.6096 13.5084 63.5607 13.2759C63.5296 13.1337 63.4925 12.8384 63.4925 12.2393V8.99567C64.6429 8.96926 65.8194 8.91792 66.8586 8.77498L72.8936 16.5763L73.2535 17.0354L69.1982 22.1366C68.8106 22.624 68.1947 22.912 67.5396 22.912H66.7088V23.9999H72.4945V22.912H71.0003C70.6033 22.912 70.3748 22.4957 70.6096 22.2003L73.9794 17.9613L74.2259 18.2758L76.2967 20.9832C76.5494 21.3127 76.7381 21.5909 76.8576 21.8093C76.9562 21.9911 77.0067 22.1496 77.0067 22.2825C77.0067 22.4294 76.9512 22.476 76.899 22.5086C76.8021 22.5692 76.5957 22.654 76.1662 22.7123L75.8067 22.762V23.9969H82.5002V22.8125L82.2063 22.7263L82.2061 22.7264ZM68.515 5.84146C68.2995 6.22457 68.0123 6.52449 67.6602 6.7328C67.5726 6.78488 67.4867 6.83151 67.4042 6.87187C67.1052 7.01795 66.7836 7.12285 66.4476 7.18351L66.3734 7.19671C65.9287 7.27289 65.3359 7.31094 64.6091 7.31094H63.4924V1.73912C63.9345 1.72277 64.4592 1.71502 65.058 1.71502C66.013 1.71502 66.7726 1.82305 67.3159 2.03516C67.8371 2.24033 68.2119 2.52391 68.4612 2.90397C68.7138 3.28635 68.8426 3.78517 68.8426 4.38509C68.8426 4.98502 68.7324 5.45521 68.515 5.84137V5.84146Z"},"fill":{"type":"value","value":"#304A4B"}},"customProperties":{}},"IIQnbtO9dOOsAcHbVLbZG":{"tag":"div","type":"element","children":["JNOvUIL28b8Ch-4M2ugRF"],"classes":{"bIgpTa":{"formula":{"type":"value","value":true}}},"customProperties":{}},"IiAJR6L7sZJ9SZMQseGxP":{"type":"text","value":{"type":"value","value":"The admin dashboard isn’t available on mobile. Try again on a desktop."}},"JNOvUIL28b8Ch-4M2ugRF":{"type":"text","value":{"type":"value","value":"Dashboard Unavailable"}},"Us2__DUCEj0v4NlUMLaIY":{"tag":"clipPath","type":"element","attrs":{"id":{"type":"value","value":"clip0_86_209"}},"children":["rOBgcGP1klMZSpVHA333W"],"customProperties":{}},"XS8KSvNaPNZ_a5i3bvKyd":{"tag":"g","type":"element","attrs":{"clip-path":{"type":"value","value":"url(#clip0_86_209)"}},"children":["GyXB9PgY6yJRKSJSW3e-m"],"customProperties":{}},"ayYg5VBE4mqKxfkiTznsw":{"tag":"div","type":"element","children":["EADauy0FrtJT0cp--KBQ3"],"classes":{"xUeDI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mOTsvnFvvTf9XEHlWPU9X":{"tag":"defs","type":"element","children":["Us2__DUCEj0v4NlUMLaIY"],"customProperties":{}},"rOBgcGP1klMZSpVHA333W":{"tag":"rect","type":"element","attrs":{"fill":{"type":"value","value":"white"},"width":{"type":"value","value":"24"},"height":{"type":"value","value":"24"},"transform":{"type":"value","value":"translate(58.5)"}},"customProperties":{}},"roCNrj6FzTKMVPHHEvpZE":{"tag":"div","type":"element","children":["IiAJR6L7sZJ9SZMQseGxP"],"classes":{"oQPCa":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tJ2zEHx5s8xbWt7fE_N6G":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M10.928 20H1.996V4.6H3.91V18.24H10.928V20ZM25.6805 12.3C25.6805 16.832 22.6665 20.132 18.3325 20.132C13.9985 20.132 10.9845 16.832 10.9845 12.3C10.9845 7.768 13.9985 4.468 18.3325 4.468C22.6665 4.468 25.6805 7.768 25.6805 12.3ZM12.9425 12.3C12.9425 15.842 15.1205 18.372 18.3325 18.372C21.5445 18.372 23.7225 15.842 23.7225 12.3C23.7225 8.758 21.5445 6.228 18.3325 6.228C15.1205 6.228 12.9425 8.758 12.9425 12.3ZM42.2235 12.3C42.2235 16.832 39.2095 20.132 34.8755 20.132C30.5415 20.132 27.5275 16.832 27.5275 12.3C27.5275 7.768 30.5415 4.468 34.8755 4.468C39.2095 4.468 42.2235 7.768 42.2235 12.3ZM29.4855 12.3C29.4855 15.842 31.6635 18.372 34.8755 18.372C38.0875 18.372 40.2655 15.842 40.2655 12.3C40.2655 8.758 38.0875 6.228 34.8755 6.228C31.6635 6.228 29.4855 8.758 29.4855 12.3ZM44.6425 20V4.6H50.5605C53.6405 4.6 55.6645 6.448 55.6645 9.33C55.6645 12.212 53.6405 14.082 50.5605 14.082H46.5565V20H44.6425ZM50.4065 6.36H46.5565V12.322H50.3845C52.4085 12.322 53.7065 11.156 53.7065 9.33C53.7065 7.504 52.4305 6.36 50.4065 6.36Z"},"fill":{"type":"value","value":"#304A4B"}},"customProperties":{}},"vcxIxlO4aDtFH4jrq3yWQ":{"tag":"div","type":"element","classes":{"page-wrapper":{"formula":{"type":"value","value":true}},"dfUJty":{"formula":{"type":"value","value":true}}},"children":["ayYg5VBE4mqKxfkiTznsw","IIQnbtO9dOOsAcHbVLbZG","roCNrj6FzTKMVPHHEvpZE"],"customProperties":{}}}},{"apis":{"All User Sign Up":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"name","formula":{"path":["Variables","fullName"],"type":"path"}},{"Name":0,"name":"email","formula":{"path":["Variables","email"],"type":"path"}},{"Name":0,"name":"invitation_token","formula":{"path":["Attributes","token"],"type":"path"}},{"Name":0,"name":"mobile","formula":{"path":["Variables","phone"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Variables","password"],"type":"path"}}]},"name":"All User Sign Up","path":{"5f8d1d3a-09c0-4ce1-adbc-443274f9efe5":{"index":2,"formula":{"type":"value","value":"send-otp"}},"e7d1f9e7-f6d5-45f3-99c6-a4af28c3b431":{"index":0,"formula":{"type":"value","value":"api"}},"ffd1e3cd-e7d2-4aec-8a14-fbdffb40e718":{"index":1,"formula":{"type":"value","value":"sign-up"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"Request Sign Up OTP":{"url":{"type":"value","value":"https://demo-app-config.looprx.io"},"body":{"type":"object","arguments":[{"Name":0,"name":"name","formula":{"path":["Variables","fullName"],"type":"path"}},{"Name":0,"name":"email","formula":{"path":["Variables","email"],"type":"path"}},{"Name":0,"name":"invitation_token","formula":{"path":["Attributes","token"],"type":"path"}},{"Name":0,"name":"mobile","formula":{"path":["Variables","phone"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Variables","password"],"type":"path"}},{"Name":0,"name":"position","formula":{"type":"switch","cases":[{"formula":{"path":["Variables","governing_body"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":null}}},{"Name":0,"name":"governing_body","formula":{"type":"switch","cases":[{"formula":{"path":["Variables","governing_body"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":null}}},{"Name":0,"name":"qualification","formula":{"type":"switch","cases":[{"formula":{"path":["Variables","qualification"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":null}}},{"Name":0,"name":"reg_num","formula":{"type":"switch","cases":[{"formula":{"path":["Variables","reg_num"],"type":"path"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":null}}},{"Name":0,"name":"role","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"prescriber"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"type":"value","value":null}}}]},"name":"Request Sign Up OTP","path":{"5f8d1d3a-09c0-4ce1-adbc-443274f9efe5":{"index":2,"formula":{"type":"value","value":"send-otp"}},"e7d1f9e7-f6d5-45f3-99c6-a4af28c3b431":{"index":0,"formula":{"type":"value","value":"api"}},"ffd1e3cd-e7d2-4aec-8a14-fbdffb40e718":{"index":1,"formula":{"type":"value","value":"sign-up"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Content-Type":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"application/json"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]}},"name":"Sign Up - Request OTP","nodes":{"root":{"tag":"div","type":"element","children":["4SUS17p9xkqiPKzlqTKjb","NrwyC5_Og_OiSp42AqAyc","vbHWgGvHvY7zYPs20P2iJ"],"classes":{"fbFpPT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"01vnSTezI0td_1PEB0NNZ":{"tag":"div","type":"element","children":["e-5xYSuhjyTROWYNZdhbg"],"classes":{"cqTREM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2_oChwAaaKN1P-zf15Lpc":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Password"},"value":{"path":["Variables","confirmPassword"],"type":"path"},"minilength":{"type":"value","value":8}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"confirmPassword"}],"trigger":"onInput"}},"customProperties":{}},"2fKTQmuKgXfUXWzDT2CrZ":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Password"},"value":{"path":["Variables","password"],"type":"path"},"minilength":{"type":"value","value":8}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"password"}],"trigger":"onInput"}},"customProperties":{}},"34ONOcpjv9YCPyHotp5Xq":{"tag":"label","type":"element","children":["cBSKDRrpLDJ22cy_-G4nt"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"49HCH09sw3TugkSBhOLZD":{"name":"back-component","type":"component","events":{"onClick":{"actions":[{"data":{"type":"value","value":1},"type":"SetVariable","variable":"step"}],"trigger":"onClick"}},"customProperties":{}},"4SUS17p9xkqiPKzlqTKjb":{"name":"SPA-Step","type":"component","attrs":{"step":{"type":"value","value":1},"current-step":{"path":["Variables","step"],"type":"path"}},"children":["RKy5Q-oIKwyf17BXNbeBn"],"customProperties":{}},"4owekgBte5owXbUMqX1F5":{"type":"text","value":{"type":"value","value":"+44"}},"5AJean24C3vYr9QyGds8l":{"tag":"label","type":"element","children":["bAzXWRRd2h1Hqr-wiiGRS"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7FEJIAq3nZl9IJuNe510F":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","governing_body"],"type":"path"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"governing_body"}],"trigger":"onInput"}},"customProperties":{}},"7HDPTif1_fOgIA7KC4AUo":{"tag":"div","type":"element","children":["KyuadF0Xk970bi5_TL8Gi","inlM-3YRF8q8sD_HfTNXW","01vnSTezI0td_1PEB0NNZ"],"classes":{"efEcYD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7z2AB__4XFs6Z1EfNq3M_":{"tag":"label","type":"element","children":["gl0kOe6r3sxWK6b_hOVFG"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8HX9SGccrwSC4zCRESddY":{"tag":"label","type":"element","children":["fRs3SKYl3VCIWflQ67pwD"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"B-E2ReKvzxRsADfVFWngF":{"tag":"div","type":"element","children":["8HX9SGccrwSC4zCRESddY","Q2cs2xOpFj1-7_HVf_j2F"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BNfQvseGsopNBdNtYiMI9":{"tag":"div","type":"element","children":["49HCH09sw3TugkSBhOLZD","bEBJDAP4luiGhYR9VuRYr"],"classes":{"cqTREM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CPS9eYEgj-CD0DqyatVs-":{"tag":"label","type":"element","children":["Qrp4yt6Wuf4l1hpbjclSj"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CRcMGQJlwV0eAt1IW_Qse":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","reg_num"],"type":"path"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"reg_num"}],"trigger":"onInput"}},"customProperties":{}},"DR-o6XB1TB12dUL1s-0uT":{"tag":"label","type":"element","children":["WfEc8GJ3ipCoO7JhBrW8F"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DvTbYLOtv3RjGPUXyasJF":{"tag":"label","type":"element","children":["G0Sg2a_oSdceqiGthEhOz"],"classes":{"eaLCHx":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DxgfKN61OdCr1Ol7ElIPd":{"tag":"form","type":"element","children":["zes5fdwQ3Z58Mmw9jeWn4","r1OJQ2fxJUW0fPd7LmHmW","sYVEnCGVxfBp6PwYEgPUG"],"classes":{"MqBcO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ETW412OEG9WaeXsjXfmZN":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","staff_id"],"type":"path"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"position"}],"trigger":"onInput"}},"customProperties":{}},"EjAHU3PxfJW3WZ0z-9N54":{"tag":"div","type":"element","children":["UtxQl8_S5GxJT2e7orRV5","Tq6wIAXn7p4RnHkbBQmDd","BNfQvseGsopNBdNtYiMI9"],"classes":{"dNeYLP":{"formula":{"type":"value","value":true}}},"customProperties":{}},"G0Sg2a_oSdceqiGthEhOz":{"type":"text","value":{"type":"value","value":"Mobile Number"},"events":null},"G1S09vM1Xojqm4Tq0hEOt":{"tag":"div","type":"element","children":["rBkdIHpvXpy7EC98_49d5"],"classes":{"eNuqbc":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Gl89zIg6B2r8toBekjyTP":{"tag":"label","type":"element","children":["y4khgQyZ1Wx0K9-jCiqUX"],"classes":{"eaLCHx":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KyuadF0Xk970bi5_TL8Gi":{"tag":"h2","type":"element","children":["oIwSg6Jnferjo1gPsoTgF"],"classes":{"cdwNlr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"NrwyC5_Og_OiSp42AqAyc":{"name":"SPA-Step","type":"component","attrs":{"step":{"type":"value","value":2},"current-step":{"path":["Variables","step"],"type":"path"}},"children":["EjAHU3PxfJW3WZ0z-9N54"],"customProperties":{}},"Pr6zY6VdqUmAADh94oj2F":{"name":"Buttton-Big","type":"component","attrs":{"title":{"type":"value","value":"Request OTP"},"is_loading":{"path":["Apis","Request Sign Up OTP","isLoading"],"type":"path"}},"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":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"display_name":"Not"},"customProperties":{}},"Q2cs2xOpFj1-7_HVf_j2F":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Password"},"value":{"path":["Variables","password"],"type":"path"},"minilength":{"type":"value","value":8}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"password"}],"trigger":"onInput"}},"customProperties":{}},"Qrp4yt6Wuf4l1hpbjclSj":{"type":"text","value":{"type":"value","value":"Password\n"},"events":null},"RKy5Q-oIKwyf17BXNbeBn":{"tag":"div","type":"element","children":["j6xG6CmwsroYWm7LqWEJg","bVn0b_PjUvlfwph6SaPhq"],"classes":{"cYKngR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Tq6wIAXn7p4RnHkbBQmDd":{"tag":"div","type":"element","children":["DxgfKN61OdCr1Ol7ElIPd"],"classes":{"bsoBDd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TtW1b0O2nk7xTwPEVTl9D":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","fullName"],"type":"path"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"fullName"}],"trigger":"onInput"}},"customProperties":{}},"UTHhaAZBIeeEtyPdPw0V7":{"tag":"label","type":"element","children":["ZHcUbzxEc6OKC0pw7y_9z"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UtxQl8_S5GxJT2e7orRV5":{"tag":"h2","type":"element","children":["_-dj4oE2c6lOTLltmvsM3"],"classes":{"cdwNlr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"VFhp3fqRDjv7nAxwgX5eD":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Text"},"value":{"path":["Variables","qualification"],"type":"path"}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"qualification"}],"trigger":"onInput"}},"customProperties":{}},"WWGHBCkiAG68_CsjRHtHp":{"type":"text","value":{"type":"value","value":"Sign Up"},"events":null},"WfEc8GJ3ipCoO7JhBrW8F":{"type":"text","value":{"type":"value","value":"Full Name\n"},"events":null},"WyXrQsrb1CcRqw9_CJMxg":{"tag":"div","type":"element","children":["7z2AB__4XFs6Z1EfNq3M_","CRcMGQJlwV0eAt1IW_Qse"],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"},"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZHcUbzxEc6OKC0pw7y_9z":{"type":"text","value":{"type":"value","value":"Position"},"events":null},"_-dj4oE2c6lOTLltmvsM3":{"type":"text","value":{"type":"value","value":"Sign Up"},"events":null},"a4dvqhbquvYLRIf5929VL":{"tag":"div","type":"element","children":["h6cUR02DUQQsPu2kmuCMd","wO8B1ltb22ovB847ypOn0"],"classes":{"briWXU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bAzXWRRd2h1Hqr-wiiGRS":{"type":"text","value":{"type":"value","value":"Confirm Password\n"},"events":null},"bEBJDAP4luiGhYR9VuRYr":{"name":"next-component","type":"component","events":{"onClick":{"actions":[{"data":{"type":"value","value":3},"type":"SetVariable","variable":"step"}],"trigger":"onClick"}},"customProperties":{}},"bVn0b_PjUvlfwph6SaPhq":{"tag":"div","type":"element","children":["gBxV8Egdnt_zSLPMaqEiW","G1S09vM1Xojqm4Tq0hEOt"],"classes":{"mMTif":{"formula":{"type":"value","value":true}}},"customProperties":{}},"cBSKDRrpLDJ22cy_-G4nt":{"type":"text","value":{"type":"value","value":"Governing Body"},"events":null},"cvb9xlcNtLOZkuU_hy8kW":{"tag":"div","type":"element","children":["DvTbYLOtv3RjGPUXyasJF"],"classes":{"CMAMP":{"formula":{"type":"value","value":true}}},"customProperties":{}},"e-5xYSuhjyTROWYNZdhbg":{"name":"back-component","type":"component","events":{"onClick":{"actions":[{"data":{"type":"value","value":2},"type":"SetVariable","variable":"step"}],"trigger":"onClick"}},"customProperties":{}},"fRs3SKYl3VCIWflQ67pwD":{"type":"text","value":{"type":"value","value":"Password\n"},"events":null},"fnqCne3VdfF_EQ6aMeXM2":{"tag":"label","type":"element","children":["gSgd5CitlTEE-6w9mxTVD"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"g1EiHwumPCUJiJaPkbeC7":{"tag":"div","type":"element","children":["DR-o6XB1TB12dUL1s-0uT","TtW1b0O2nk7xTwPEVTl9D"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gBxV8Egdnt_zSLPMaqEiW":{"tag":"form","type":"element","events":{"submit":{"actions":[{"name":"@toddle/preventDefault"},{"type":"Switch","cases":[{"actions":[],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"default":{"actions":[{"type":"Switch","cases":[{"actions":[{"api":"All User Sign Up","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_error"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onError"},"arguments":null,"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"data":{"path":["Variables","fullName"],"type":"path"},"type":"TriggerEvent","event":"full_name"},{"data":{"path":["Variables","phone"],"type":"path"},"type":"TriggerEvent","event":"phone_number"},{"data":{"path":["Variables","password"],"type":"path"},"type":"TriggerEvent","event":"password"},{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"request_otp"},{"data":{"type":"value","value":true},"type":"SetVariable","variable":"position"},{"data":{"type":"value","value":30},"type":"SetVariable","variable":"timer"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"xyZ7y2"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}}],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","password"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Variables","confirmPassword"],"type":"path"}}],"display_name":"Equals"}}],"default":{"actions":[{"data":{"type":"value","value":"Password Mismatch"},"type":"TriggerEvent","event":"notification_error"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}]}}]}}],"trigger":"submit"}},"children":["g1EiHwumPCUJiJaPkbeC7","nbyLOrljYQHJcaP_vQu32","gjQOQTJZv_QIO82N3OmB_","WyXrQsrb1CcRqw9_CJMxg","tlehowfAXRJQmFqMV3big","sSl9XIMKN4VTYb_ubktqm","Pr6zY6VdqUmAADh94oj2F"],"classes":{"MqBcO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gSgd5CitlTEE-6w9mxTVD":{"type":"text","value":{"type":"value","value":"Qualification"},"events":null},"gjQOQTJZv_QIO82N3OmB_":{"tag":"div","type":"element","children":["cvb9xlcNtLOZkuU_hy8kW","a4dvqhbquvYLRIf5929VL"],"classes":{"dFQqSB":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gl0kOe6r3sxWK6b_hOVFG":{"type":"text","value":{"type":"value","value":"Registration Number\n"},"events":null},"h6cUR02DUQQsPu2kmuCMd":{"tag":"div","type":"element","children":["4owekgBte5owXbUMqX1F5"],"classes":{"cTPtde":{"formula":{"type":"value","value":true}}},"customProperties":{}},"inlM-3YRF8q8sD_HfTNXW":{"tag":"div","type":"element","children":["jj9q1wWrVoMLgn3Tuu4e8"],"classes":{"bsoBDd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"j6xG6CmwsroYWm7LqWEJg":{"tag":"h2","type":"element","children":["WWGHBCkiAG68_CsjRHtHp"],"classes":{"cdwNlr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jj9q1wWrVoMLgn3Tuu4e8":{"tag":"form","type":"element","events":{"submit":{"actions":[{"name":"@toddle/preventDefault"},{"type":"Switch","cases":[{"actions":[{"api":"Request Sign Up OTP","type":"Fetch","inputs":{},"onError":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP","error","message"],"type":"path"},"type":"TriggerEvent","event":"notification_error"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}],"trigger":"onError"},"onMessage":{"actions":[]},"onSuccess":{"actions":[{"data":{"path":["Apis","Request Sign Up OTP","data","message"],"type":"path"},"type":"TriggerEvent","event":"notification_success"},{"data":{"path":["Variables","fullName"],"type":"path"},"type":"TriggerEvent","event":"full_name"},{"data":{"path":["Variables","phone"],"type":"path"},"type":"TriggerEvent","event":"phone_number"},{"data":{"path":["Variables","password"],"type":"path"},"type":"TriggerEvent","event":"password"},{"data":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Variables","DD"],"type":"path"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"type":"value","value":"-"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Variables","DM"],"type":"path"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"type":"value","value":"-"}},{"name":"0","type":{"type":"Array \\| String \\| Object"},"formula":{"path":["Variables","DY"],"type":"path"}}],"display_name":"Concatenate","variableArguments":true},"type":"TriggerEvent","event":"DOB"},{"data":{"path":["Variables","qualification"],"type":"path"},"type":"TriggerEvent","event":"city"},{"data":{"path":["Variables","staff_id"],"type":"path"},"type":"TriggerEvent","event":"Address"},{"data":{"path":["Variables","governing_body"],"type":"path"},"type":"TriggerEvent","event":"Postalcode"},{"data":{"path":["Variables","Country"],"type":"path"},"type":"SetVariable","variable":"Country"},{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"request_otp"},{"data":{"type":"value","value":true},"type":"SetVariable","variable":"position"},{"data":{"type":"value","value":30},"type":"SetVariable","variable":"timer"},{"type":"Switch","cases":[{"actions":[{"type":"TriggerWorkflow","workflow":"xyZ7y2"}],"condition":{"type":"and","label":"Should start countdown","arguments":[{"formula":{"name":"@toddle/greaterThan","type":"function","label":"Should start countdown","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}]}}],"default":{"actions":[]}}],"trigger":"onSuccess"}}],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","password"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Variables","confirmPassword"],"type":"path"}}],"display_name":"Equals"}}],"default":{"actions":[{"data":{"type":"value","value":"Password Mismatch"},"type":"TriggerEvent","event":"notification_error"},{"name":"@toddle/sleep","events":{"tick":{"actions":[],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":3000}}]}]}}],"trigger":"submit"}},"children":["B-E2ReKvzxRsADfVFWngF","wiiRsPSMocFTl6dBPFKpr","m8HmEXOalXluEtp6q6Np3"],"classes":{"MqBcO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"m2PDHzia3s_rgCSXYeN5L":{"tag":"label","type":"element","children":["tt1CzFxMhlD9GMzPFzXOu"],"classes":{"LLuRd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"m8HmEXOalXluEtp6q6Np3":{"name":"Buttton-Big","type":"component","attrs":{"title":{"type":"value","value":"Request OTP"},"is_loading":{"path":["Apis","Request Sign Up OTP","isLoading"],"type":"path"}},"customProperties":{}},"nbyLOrljYQHJcaP_vQu32":{"tag":"div","type":"element","children":["Gl89zIg6B2r8toBekjyTP","p8QdRSUxUwlAo4pHU5IHV"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oIwSg6Jnferjo1gPsoTgF":{"type":"text","value":{"type":"value","value":"Sign Up"},"events":null},"p8QdRSUxUwlAo4pHU5IHV":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"email"},"value":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"path":["Variables","email"],"type":"path"}},{"name":"1","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Default to","variableArguments":true},"readonly":{"type":"value","value":true},"required":{"type":"value","value":true},"placeholder":{"type":"value","value":""}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"email"}],"trigger":"input"}},"classes":{"bHXKrw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"r1OJQ2fxJUW0fPd7LmHmW":{"tag":"div","type":"element","children":["34ONOcpjv9YCPyHotp5Xq","7FEJIAq3nZl9IJuNe510F"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rBkdIHpvXpy7EC98_49d5":{"name":"next-component","type":"component","events":{"onClick":{"actions":[{"data":{"type":"value","value":2},"type":"SetVariable","variable":"step"}],"trigger":"onClick"}},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"},"customProperties":{}},"sSl9XIMKN4VTYb_ubktqm":{"tag":"div","type":"element","children":["5AJean24C3vYr9QyGds8l","ySv6OJkAFyEcJwS8Do5E3"],"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":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"display_name":"Not"},"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sYVEnCGVxfBp6PwYEgPUG":{"tag":"div","type":"element","children":["fnqCne3VdfF_EQ6aMeXM2","VFhp3fqRDjv7nAxwgX5eD"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tlehowfAXRJQmFqMV3big":{"tag":"div","type":"element","children":["CPS9eYEgj-CD0DqyatVs-","2fKTQmuKgXfUXWzDT2CrZ"],"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":{"path":["Attributes","role"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"prescriber"}}],"display_name":"Equals"}}],"display_name":"Not"},"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tt1CzFxMhlD9GMzPFzXOu":{"type":"text","value":{"type":"value","value":"Confirm Password\n"},"events":null},"vbHWgGvHvY7zYPs20P2iJ":{"name":"SPA-Step","type":"component","attrs":{"step":{"type":"value","value":3},"current-step":{"path":["Variables","step"],"type":"path"}},"children":["7HDPTif1_fOgIA7KC4AUo"],"customProperties":{}},"wO8B1ltb22ovB847ypOn0":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Telephone"},"value":{"path":["Variables","phone"],"type":"path"},"maxlenght":{"type":"value","value":10}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"phone"}],"trigger":"onInput"}},"customProperties":{}},"wiiRsPSMocFTl6dBPFKpr":{"tag":"div","type":"element","children":["m2PDHzia3s_rgCSXYeN5L","2_oChwAaaKN1P-zf15Lpc"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"y4khgQyZ1Wx0K9-jCiqUX":{"type":"text","value":{"type":"value","value":"Email\n"},"events":null},"ySv6OJkAFyEcJwS8Do5E3":{"name":"input","type":"component","attrs":{"type":{"type":"value","value":"Password"},"value":{"path":["Variables","confirmPassword"],"type":"path"},"minilength":{"type":"value","value":8}},"events":{"onInput":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"confirmPassword"}],"trigger":"onInput"}},"customProperties":{}},"zes5fdwQ3Z58Mmw9jeWn4":{"tag":"div","type":"element","children":["UTHhaAZBIeeEtyPdPw0V7","ETW412OEG9WaeXsjXfmZN"],"classes":{"dzeZvG":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"notification_success"},{"name":"notification_error"},{"name":"full_name"},{"name":"phone_number"},{"name":"password"},{"name":"request_otp"},{"name":"DOB"},{"name":"Address"},{"name":"city"},{"name":"Postalcode"},{"name":"country"}],"variables":{"DD":{"initialValue":{"type":"value","value":""}},"DM":{"initialValue":{"type":"value","value":""}},"DY":{"initialValue":{"type":"value","value":""}},"step":{"initialValue":{"type":"value","value":1}},"email":{"initialValue":{"path":["Attributes","email"],"type":"path"}},"phone":{"initialValue":{"type":"value","value":""}},"timer":{"initialValue":{"type":"value","value":30}},"reg_num":{"initialValue":{"type":"value","value":""}},"fullName":{"initialValue":{"type":"value","value":""}},"password":{"initialValue":{"type":"value","value":""}},"position":{"initialValue":{"type":"value","value":""}},"staff_id":{"initialValue":{"type":"value","value":""}},"isCounting":{"initialValue":{"type":"value","value":false}},"qualification":{"initialValue":{"type":"value","value":""}},"governing_body":{"initialValue":{"type":"value","value":""}},"confirmPassword":{"initialValue":{"type":"value","value":""}}},"workflows":{"xyZ7y2":{"name":"countDown","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"isCounting"},{"type":"Switch","cases":[{"actions":[{"data":{"name":"@toddle/minus","type":"function","arguments":[{"name":"Minuend","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Substrahend","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Minus"},"type":"SetVariable","variable":"timer"},{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"xyZ7y2"}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"type":"value","value":1000}}]}],"condition":{"name":"@toddle/greaterThan","type":"function","label":"Should keep on counting","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Variables","timer"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}],"default":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"isCounting"},{"data":{"type":"value","value":-1},"type":"SetVariable","variable":"timer"}]}}],"exposeInContext":false,"parameters":[]}},"attributes":{"role":{"name":"role"},"email":{"name":"email"},"token":{"name":"token"},"show_otp":{"name":"show_otp"}}},{"key":"back-component","name":"back-component","nodes":{"root":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"onClick"}],"trigger":"click"}},"children":["mn8hM3PG0eL_Ycxk-GV_p","WltqStXCbE5jPPApVLNRk"],"classes":{"cfNom":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WltqStXCbE5jPPApVLNRk":{"type":"text","value":{"type":"value","value":"Back"}},"Y9QGgOPtuX14Sy2QZuVbi":{"tag":"path","type":"element","attrs":{"d":{"type":"value","value":"M10 19.5625C11.8913 19.5625 13.7401 19.0017 15.3126 17.9509C16.8852 16.9002 18.1108 15.4067 18.8346 13.6594C19.5584 11.9121 19.7477 9.98939 19.3788 8.13445C19.0098 6.2795 18.099 4.57563 16.7617 3.23829C15.4244 1.90095 13.7205 0.990211 11.8655 0.62124C10.0106 0.252269 8.08791 0.441638 6.34059 1.1654C4.59327 1.88916 3.09981 3.11481 2.04907 4.68736C0.998327 6.2599 0.437497 8.10871 0.437497 10C0.440474 12.5352 1.4489 14.9657 3.24158 16.7584C5.03425 18.5511 7.46478 19.5595 10 19.5625ZM10 1.5625C11.6688 1.5625 13.3001 2.05735 14.6876 2.98448C16.0752 3.9116 17.1566 5.22936 17.7952 6.77111C18.4338 8.31286 18.6009 10.0094 18.2754 11.6461C17.9498 13.2828 17.1462 14.7862 15.9662 15.9662C14.7862 17.1462 13.2828 17.9498 11.6461 18.2754C10.0094 18.6009 8.31286 18.4338 6.7711 17.7952C5.22935 17.1566 3.9116 16.0752 2.98447 14.6876C2.05735 13.3001 1.5625 11.6688 1.5625 10C1.56498 7.763 2.45472 5.61833 4.03652 4.03653C5.61832 2.45472 7.76299 1.56498 10 1.5625ZM5.8525 10.3975C5.74716 10.292 5.68799 10.1491 5.68799 10C5.68799 9.85094 5.74716 9.70797 5.8525 9.6025L8.8525 6.6025C8.95913 6.50314 9.10016 6.44905 9.24589 6.45162C9.39161 6.45419 9.53065 6.51322 9.63371 6.61628C9.73677 6.71934 9.79581 6.85838 9.79838 7.00411C9.80095 7.14983 9.74686 7.29087 9.6475 7.3975L7.60843 9.4375L13.75 9.4375C13.8992 9.4375 14.0423 9.49676 14.1477 9.60225C14.2532 9.70774 14.3125 9.85082 14.3125 10C14.3125 10.1492 14.2532 10.2923 14.1477 10.3977C14.0423 10.5032 13.8992 10.5625 13.75 10.5625L7.60843 10.5625L9.6475 12.6025C9.74686 12.7091 9.80095 12.8502 9.79838 12.9959C9.79581 13.1416 9.73677 13.2807 9.63371 13.3837C9.53065 13.4868 9.39161 13.5458 9.24589 13.5484C9.10016 13.551 8.95913 13.4969 8.8525 13.3975L5.8525 10.3975Z"},"fill":{"type":"value","value":"#22839580"},"fill-opacity":{"type":"value","value":"0.5"}},"customProperties":{}},"mn8hM3PG0eL_Ycxk-GV_p":{"tag":"svg","type":"element","attrs":{"fill":{"type":"value","value":"none"},"width":{"type":"value","value":"20"},"xmlns":{"type":"value","value":"http://www.w3.org/2000/svg"},"height":{"type":"value","value":"20"},"viewBox":{"type":"value","value":"0 0 20 20"}},"children":["Y9QGgOPtuX14Sy2QZuVbi"],"customProperties":{}}},"events":[{"name":"onClick"}]},{"key":"SPA-Step","name":"SPA-Step","nodes":{"root":{"tag":"div","type":"element","children":["i1kJ3kS6DfyQu0GRwEAh0"],"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","step"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Attributes","current-step"],"type":"path"}}],"display_name":"Equals"},"classes":{"NuEsF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"i1kJ3kS6DfyQu0GRwEAh0":{"type":"slot"}},"attributes":{"step":{"name":"step"},"current-step":{"name":"current-step"}}},{"key":"next-component","name":"next-component","nodes":{"root":{"tag":"div","type":"element","events":{"click":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"onClick"}],"trigger":"click"}},"children":["8fn8AHIAGH6QYBRQCwpoK"],"classes":{"ejYKha":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8fn8AHIAGH6QYBRQCwpoK":{"type":"text","value":{"type":"value","value":"Next"}}},"events":[{"name":"onClick"}]}]}