{"project":"fractradeapp","branch":"main","commit":"00d9a4dabc3141be754433b836f7e1c44cea476b","component":{"name":"test_rich_text","nodes":{"root":{"tag":"div","type":"element","children":["FKNVj9ZX6Ly0NnDysfwPA","R1Lyw_HWCBqdwKtPC7E8k"],"customProperties":{}},"FKNVj9ZX6Ly0NnDysfwPA":{"name":"editor-richtext-textarea","type":"component","customProperties":{}},"R1Lyw_HWCBqdwKtPC7E8k":{"name":"editor-text-styles","type":"component","customProperties":{}}},"route":{"path":[{"name":"test_rich_text","type":"static"}],"query":{}}},"components":[{"key":"editor-richtext-textarea","name":"editor-richtext-textarea","nodes":{"root":{"tag":"div","type":"element","children":["YUmGQvv3HRX0aLwOfVNws"],"classes":{"QGkKy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CEGYYCsLTx3OdQaUHyPfX":{"type":"text","value":{"path":["Attributes","placeholder"],"type":"path"}},"EW23rPM1Cehw8DD6JeDfs":{"tag":"p","type":"element","children":["CEGYYCsLTx3OdQaUHyPfX"],"condition":{"name":"@toddle/equals","type":"function","label":null,"arguments":[{"name":"First","type":{"type":"Any"},"formula":{"name":"@toddle/size","type":"function","label":null,"arguments":[{"name":"Collection","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"},{"type":"Object"}]},"formula":{"path":["Variables","content"],"type":"path","label":null}}],"display_name":"Size"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":0}}],"display_name":"Equals"},"classes":{"cpzghV":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MVVGztc25CNrLB6pQahKq":{"tag":"div","type":"element","children":["nGEBwd28MuifQE5rw9mSi","qmULsHSMNROxAehZj8e3l","Zos1z--rgJ1euTwSz8NvJ","EW23rPM1Cehw8DD6JeDfs"],"classes":{"dwkczm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YUmGQvv3HRX0aLwOfVNws":{"tag":"div","type":"element","classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"EXpXx":{"formula":{"type":"value","value":true}}},"children":["MVVGztc25CNrLB6pQahKq"],"customProperties":{}},"Zos1z--rgJ1euTwSz8NvJ":{"tag":"style","type":"element","children":["hGIexITCunnZLSTJD0F76"],"customProperties":{}},"auSvpzFmNPfwMgdylNZ02":{"name":"editor-text-styles","type":"component","attrs":{"link":{"path":["Variables","tooltip","linkUrl"],"type":"path"},"mode":{"type":"value","value":"light"},"size":{"type":"value","value":14},"styles":{"path":["Variables","tooltip","styles"],"type":"path"},"show-link-editor":{"path":["Variables","helper-state","show-link-editor"],"type":"path"}},"events":{"onClose":{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","tooltip"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"},"type":"SetVariable","variable":"tooltip"}],"trigger":"onClose"},"onStyle":{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","tooltip"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"styles"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event"],"type":"path"}}],"display_name":"Set"},"type":"SetVariable","variable":"tooltip"}],"trigger":"onStyle"}},"customProperties":{}},"hGIexITCunnZLSTJD0F76":{"type":"text","value":{"type":"value","value":".editor:focus {\n    outline: none;\n}"}},"nGEBwd28MuifQE5rw9mSi":{"tag":"div","type":"element","attrs":{"id":{"type":"value","value":"tooltip"}},"classes":{"hidden":{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","tooltip","show"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Not equal"}},"QsJwT":{"formula":{"type":"value","value":true}}},"children":["auSvpzFmNPfwMgdylNZ02"],"style-variables":[{"name":"left","unit":"px","formula":{"path":["Variables","tooltip","left"],"type":"path"},"category":"spacing"},{"name":"top","unit":"px","formula":{"path":["Variables","tooltip","top"],"type":"path"},"category":"spacing"}],"customProperties":{}},"qmULsHSMNROxAehZj8e3l":{"tag":"div","type":"element","attrs":{"id":{"path":["Variables","id"],"type":"path"},"contenteditable":{"type":"value","value":"true"}},"events":{"input":{"actions":[{"data":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"name":"@toddle/getElementById","type":"function","arguments":[{"name":"Id","type":{"type":"String"},"formula":{"path":["Variables","id"],"type":"path"}}],"display_name":"Get element by id"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"innerHTML"}}],"display_name":"Get"},"type":"SetVariable","variable":"content"},{"data":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"name":"@toddle/getElementById","type":"function","arguments":[{"name":"Id","type":{"type":"String"},"formula":{"path":["Variables","id"],"type":"path"}}],"display_name":"Get element by id"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"innerHTML"}}],"display_name":"Get"},"type":"TriggerEvent","event":"input"}],"trigger":"input"}},"classes":{"editor":{},"bEDepx":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"input"}],"onLoad":{"actions":[{"name":"editor_uuid","events":{"uuid":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"id"}],"trigger":"uuid","dummyEvent":"9a042805-5286-4546-814a-37bf87baa50a"}},"version":2},{"type":"TriggerWorkflow","workflow":"P57zkN"},{"name":"editor_tooltip_handler","events":{"onEnd":{"actions":[{"type":"TriggerWorkflow","workflow":"mzqQBY"}],"trigger":"onEnd","dummyEvent":{}},"onSelect":{"actions":[{"type":"TriggerWorkflow","workflow":"ItURTR"}],"trigger":"onSelect","dummyEvent":{"rect":{"x":150,"y":200,"top":200,"left":150,"right":220,"width":70,"bottom":220,"height":20},"offset":36,"styles":["link"],"linkUrl":"https://example.com","position":{"top":164,"left":165},"selection":"Click here"}}},"version":2,"arguments":[{"name":"editor","formula":{"path":["Variables","id"],"type":"path"}}]}],"trigger":"Load"},"variables":{"id":{"initialValue":{"type":"value","value":""}},"content":{"initialValue":{"type":"value","value":""}},"tooltip":{"initialValue":{"type":"object","arguments":[{"Name":0,"name":"top","formula":{"type":"value","value":0}},{"Name":0,"name":"left","formula":{"type":"value","value":0}},{"Name":0,"name":"offsetHeight","formula":{"type":"value","value":0}},{"Name":0,"name":"show","formula":{"type":"value","value":false}},{"Name":0,"name":"styles","formula":{"type":"array","arguments":[]}},{"Name":0,"name":"linkUrl","formula":{"type":"value","value":""}}]}},"helper-state":{"initialValue":{"type":"object","arguments":[{"Name":0,"name":"show-link-editor","formula":{"type":"value","value":false}}]}}},"workflows":{"ItURTR":{"name":"Show Tooltip","actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","tooltip"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"top"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","position","top"],"type":"path"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"left"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","position","left"],"type":"path"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"offsetHeight"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","offset"],"type":"path"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"styles"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","styles"],"type":"path"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"linkUrl"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","linkUrl"],"type":"path"}}],"display_name":"Set"},"type":"SetVariable","variable":"tooltip"},{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","helper-state"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show-link-editor"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"},"type":"SetVariable","variable":"helper-state"}],"exposeInContext":false,"parameters":[]},"P57zkN":{"name":"Initialize HTML Editor","actions":[{"name":"editor_render_html","version":2,"arguments":[{"name":"html","formula":{"path":["Attributes","value"],"type":"path"}},{"name":"id","formula":{"path":["Variables","id"],"type":"path"}}]},{"data":{"path":["Attributes","value"],"type":"path"},"type":"SetVariable","variable":"content"}],"exposeInContext":false,"parameters":[]},"mzqQBY":{"name":"Dismiss Tooltip","actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","tooltip"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"styles"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","styles"],"type":"path"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"linkUrl"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","linkUrl"],"type":"path"}}],"display_name":"Set"},"type":"SetVariable","variable":"tooltip"},{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","helper-state"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show-link-editor"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"},"type":"SetVariable","variable":"helper-state"}],"exposeInContext":false,"parameters":[]}},"attributes":{"mode":{"name":"mode"},"value":{"name":"value"},"placeholder":{"name":"placeholder"}},"onAttributeChange":{"actions":[{"name":"editor_render_html","version":2,"arguments":[{"name":"html","formula":{"path":["Attributes","value"],"type":"path"}},{"name":"id","formula":{"path":["Variables","id"],"type":"path"}}]},{"data":{"path":["Attributes","value"],"type":"path"},"type":"SetVariable","variable":"content"}],"trigger":"Attribute change"}},{"key":"editor-text-styles","name":"editor-text-styles","nodes":{"root":{"tag":"div","type":"element","classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"dJrIPU":{"formula":{"type":"value","value":true}}},"children":["pH7tiKP7XzaX_JWfH940M","F6v0ZUuBoLltJEWEM68Hi"],"customProperties":{}},"-7KraCGRr5ATHVSlaBf_O":{"tag":"div","type":"element","children":["5URr-z8nd10S_2EdK3cG0"],"style-variables":[{"name":"size","unit":"px","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","size"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Attributes","size"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":10}}],"display_name":"Greater than"}}],"default":{"type":"value","value":20}},"category":"spacing"}],"classes":{"bIVyDm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0WYwqMO-ew2tezrjuXily":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"submit"}},"classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"cRZVee":{"formula":{"type":"value","value":true}}},"children":["Y-whEME5aDWaqxR5jVLpb"],"customProperties":{}},"5URr-z8nd10S_2EdK3cG0":{"name":"lucide-icon","type":"component","attrs":{"icon-name":{"type":"value","value":"eraser"},"stroke-width":{"type":"value","value":2.5}},"customProperties":{}},"Eat8vbdj2OhLA4qmP1QME":{"name":"lucide-icon","type":"component","attrs":{"icon-name":{"type":"value","value":"x"},"stroke-width":{"type":"value","value":2.5}},"customProperties":{}},"F6v0ZUuBoLltJEWEM68Hi":{"tag":"form","type":"element","events":{"submit":{"actions":[{"name":"@toddle/preventDefault"},{"name":"editor_add_link","version":2,"arguments":[{"name":"url","formula":{"path":["Variables","link","value"],"type":"path"}}]},{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"value"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Set"},"type":"SetVariable","variable":"link"},{"data":{"type":"object","arguments":[]},"type":"TriggerEvent","event":"onClose"}],"trigger":"submit"}},"classes":{"hidden":{"formula":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"path":["Variables","link","show"],"type":"path"}}],"display_name":"Not"}},"mrMuH":{"formula":{"type":"value","value":true}}},"children":["f98HhBtxGaVBkvvZZ26me","0WYwqMO-ew2tezrjuXily","d1-rUD5pQhgA14m-fMckq","H7zvIteZcxP9r3XQxZ2AR"],"customProperties":{}},"H7zvIteZcxP9r3XQxZ2AR":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"value"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Set"},"type":"SetVariable","variable":"link"},{"data":{"type":"object","arguments":[]},"type":"TriggerEvent","event":"onClose"}],"trigger":"click"}},"classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"cRZVee":{"formula":{"type":"value","value":true}}},"children":["ocbdIj7yxUekrVV3MxaD4"],"customProperties":{}},"MWfiCI6AHTzPpc2tn0AEs":{"name":"lucide-icon","type":"component","attrs":{"icon-name":{"path":["ListItem","Item","icon"],"type":"path"},"stroke-width":{"type":"value","value":2.5}},"customProperties":{}},"Y-whEME5aDWaqxR5jVLpb":{"tag":"div","type":"element","children":["_Wn9IIm8_WvyhwcaaEBcB"],"style-variables":[{"name":"size","unit":"px","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","size"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Attributes","size"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":10}}],"display_name":"Greater than"}}],"default":{"type":"value","value":20}},"category":"spacing"}],"classes":{"bIVyDm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_Wn9IIm8_WvyhwcaaEBcB":{"name":"lucide-icon","type":"component","attrs":{"icon-name":{"type":"value","value":"check"},"stroke-width":{"type":"value","value":2.5}},"customProperties":{}},"d1-rUD5pQhgA14m-fMckq":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"},"onclick":{"type":"value","value":"window.execCommandOnSaved('unlink')"}},"events":{"click":{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":false}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"value"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":""}}],"display_name":"Set"},"type":"SetVariable","variable":"link"},{"data":{"name":"@toddle/filter","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"path":["Attributes","styles"],"type":"path"}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"link"}}],"display_name":"Not equal"},"isFunction":true}],"display_name":"Filter"},"type":"TriggerEvent","event":"onStyle"},{"data":{"type":"object","arguments":[]},"type":"TriggerEvent","event":"onClose"}],"trigger":"click"}},"classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"cRZVee":{"formula":{"type":"value","value":true}}},"children":["-7KraCGRr5ATHVSlaBf_O"],"customProperties":{}},"f98HhBtxGaVBkvvZZ26me":{"tag":"input","type":"element","attrs":{"id":{"type":"value","value":"tooltip-link-input"},"type":{"type":"value","value":"url"},"value":{"path":["Variables","link","value"],"type":"path"},"required":{"type":"value","value":true}},"events":{"input":{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"value"}},{"name":"Value","type":{"type":"Any"},"formula":{"path":["Event","target","value"],"type":"path"}}],"display_name":"Set"},"type":"SetVariable","variable":"link"}],"trigger":"input"}},"classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"DvMJg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lfkXDe3Tt8-Lz4ciupLXZ":{"tag":"div","type":"element","children":["MWfiCI6AHTzPpc2tn0AEs"],"style-variables":[{"name":"size","unit":"px","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","size"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Attributes","size"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":10}}],"display_name":"Greater than"}}],"default":{"type":"value","value":20}},"category":"spacing"}],"classes":{"bIVyDm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ocbdIj7yxUekrVV3MxaD4":{"tag":"div","type":"element","children":["Eat8vbdj2OhLA4qmP1QME"],"style-variables":[{"name":"size","unit":"px","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","size"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Attributes","size"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":10}}],"display_name":"Greater than"}}],"default":{"type":"value","value":20}},"category":"spacing"}],"classes":{"bIVyDm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"pH7tiKP7XzaX_JWfH940M":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"editor_document_command","version":2,"arguments":[{"name":"command","formula":{"type":"switch","cases":[{"formula":{"path":["ListItem","Item","reverse"],"type":"path"},"condition":{"type":"and","arguments":[{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Array \\| String"},"formula":{"path":["Attributes","styles"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"path":["ListItem","Item","id"],"type":"path"}}],"display_name":"Includes"}},{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["ListItem","Item","reverse"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":null}}],"display_name":"Not equal"}}]}}],"default":{"type":"switch","cases":[{"formula":{"path":["ListItem","Item","key"],"type":"path"},"condition":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Array \\| String"},"formula":{"path":["ListItem","Item","key"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":","}}],"display_name":"Includes"}}],"default":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Array \\| String"},"formula":{"type":"value","value":"'"}},{"name":"0","type":{"type":"Array \\| String"},"formula":{"path":["ListItem","Item","key"],"type":"path"}},{"name":"0","type":{"type":"Array \\| String"},"formula":{"type":"value","value":"'"}}],"display_name":"Concatenate","variableArguments":true}}}}]},{"data":{"name":"@toddle/map","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"name":"editor_current_selection_styles","type":"function","arguments":[]}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/lowercase","type":"function","arguments":[{"name":"String","type":{"type":"String"},"formula":{"path":["Args","item"],"type":"path"}}],"display_name":"Lower case"},"isFunction":true}],"display_name":"Map"},"type":"TriggerEvent","event":"onStyle"},{"type":"Switch","cases":[{"actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Set"},"type":"SetVariable","variable":"link"},{"name":"@toddle/focus","arguments":[{"name":"Element","formula":{"name":"@toddle/getElementById","type":"function","arguments":[{"name":"Id","type":{"type":"String"},"formula":{"type":"value","value":"tooltip-link-input"}}],"display_name":"Get element by id"}}]}],"condition":{"name":"@toddle/equals","type":"function","label":"Link Key Press","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["ListItem","Item","id"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"link"}}],"display_name":"Equals"}}],"default":{"actions":[]}}],"trigger":"click"}},"repeat":{"path":["Variables","options"],"type":"path"},"classes":{"dark":{"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Equals"}},"selected":{"formula":{"type":"and","arguments":[{"formula":{"name":"@toddle/notEqual","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","mode"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":"dark"}}],"display_name":"Not equal"}},{"formula":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Array \\| String"},"formula":{"path":["Attributes","styles"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"path":["ListItem","Item","id"],"type":"path"}}],"display_name":"Includes"}}]}},"egzbSw":{"formula":{"type":"value","value":true}}},"children":["lfkXDe3Tt8-Lz4ciupLXZ"],"customProperties":{}}},"events":[{"name":"onStyle"},{"name":"onClose"}],"onLoad":{"actions":[{"type":"TriggerWorkflow","workflow":"VXJn3b"}],"trigger":"Load"},"variables":{"link":{"initialValue":{"type":"object","arguments":[{"Name":0,"name":"show","formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","show-link-editor"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Equals"}},{"Name":0,"name":"value","formula":{"type":"value","value":""}}]}},"options":{"initialValue":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"'formatBlock', false, 'h2'"}},{"Name":0,"name":"name","formula":{"type":"value","value":"H2"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"heading-2"}},{"Name":0,"name":"id","formula":{"type":"value","value":"h2"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":"'formatBlock', false, 'p'"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"'formatBlock', false, 'h3'"}},{"Name":0,"name":"name","formula":{"type":"value","value":"H3"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"heading-3"}},{"Name":0,"name":"id","formula":{"type":"value","value":"h3"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":"'formatBlock', false, 'p'"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"bold"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Bold"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"bold"}},{"Name":0,"name":"id","formula":{"type":"value","value":"bold"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":null}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"italic"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Italic"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"italic"}},{"Name":0,"name":"id","formula":{"type":"value","value":"italic"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":null}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"underline"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Underline"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"underline"}},{"Name":0,"name":"id","formula":{"type":"value","value":"underline"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":null}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"strikeThrough"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Strikethrough"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"strikethrough"}},{"Name":0,"name":"id","formula":{"type":"value","value":"strikethrough"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":null}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"link"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Hyperlink"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"link"}},{"Name":0,"name":"id","formula":{"type":"value","value":"link"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":null}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"key","formula":{"type":"value","value":"'hiliteColor', false, 'rgba(254, 235, 88, 0.4)'"}},{"Name":0,"name":"name","formula":{"type":"value","value":"Highlighter"}},{"Name":0,"name":"icon","formula":{"type":"value","value":"highlighter"}},{"Name":0,"name":"id","formula":{"type":"value","value":"highlight"}},{"Name":0,"name":"reverse","formula":{"type":"value","value":"'hiliteColor', false, 'inherit'"}}]}}]}}},"workflows":{"VXJn3b":{"name":"Set Link State Overwrite","actions":[{"data":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"name":"@toddle/set","type":"function","arguments":[{"name":"Object","type":{"type":"Object"},"formula":{"path":["Variables","link"],"type":"path"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"show"}},{"name":"Value","type":{"type":"Any"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Attributes","show-link-editor"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Equals"}}],"display_name":"Set"}},{"name":"Path","type":{"type":"Array \\| Number \\| String"},"formula":{"type":"value","value":"value"}},{"name":"Value","type":{"type":"Any"},"formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","link"],"type":"path"},"condition":{"name":"@toddle/includes","type":"function","arguments":[{"name":"Array","type":{"type":"Array \\| String"},"formula":{"path":["Attributes","link"],"type":"path"}},{"name":"Item","type":{"type":"Any"},"formula":{"type":"value","value":"http"}}],"display_name":"Includes"}}],"default":{"type":"value","value":""}}}],"display_name":"Set"},"type":"SetVariable","variable":"link"}],"exposeInContext":false,"parameters":[]}},"attributes":{"link":{"name":"link"},"mode":{"name":"mode"},"size":{"name":"size"},"styles":{"name":"styles"},"show-link-editor":{"name":"show-link-editor"}},"onAttributeChange":{"actions":[{"type":"TriggerWorkflow","workflow":"VXJn3b"}],"trigger":"Attribute change"}},{"key":"lucide-icon","name":"lucide-icon","nodes":{"root":{"tag":"i","type":"element","attrs":{"data-lucide":{"type":"switch","cases":[{"formula":{"path":["Attributes","icon-name"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"name":"@toddle/size","type":"function","arguments":[{"name":"Collection","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"},{"type":"Object"}]},"formula":{"path":["Attributes","icon-name"],"type":"path"}}],"display_name":"Size"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}],"default":{"type":"value","value":"menu"}},"stroke-width":{"type":"switch","cases":[{"formula":{"path":["Attributes","stroke-width"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Attributes","stroke-width"],"type":"path"}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}],"default":{"type":"value","value":2}}},"children":["4PvMWqEuUYPli7FCTtDAd"],"classes":{"eEWpXM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4PvMWqEuUYPli7FCTtDAd":{"tag":"script","type":"element","children":["r391mUqdPGa20QfcEe8LD"],"classes":{"bZWCAL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"r391mUqdPGa20QfcEe8LD":{"type":"text","value":{"type":"value","value":"(function loadLucideScript() {\n  const scriptUrl = \"https://unpkg.com/lucide@latest\";\n\n  const isLoaded = Array.from(document.scripts).some(script => script.src === scriptUrl);\n\n  if (!isLoaded) {\n    const script = document.createElement(\"script\");\n    script.src = scriptUrl;\n    script.async = true;\n    script.onload = () => {\n      if (window.lucide && typeof window.lucide.createIcons === 'function') {\n        window.lucide.createIcons();\n      }\n    };\n    document.head.appendChild(script);\n  } else {\n    if (window.lucide && typeof window.lucide.createIcons === 'function') {\n      window.lucide.createIcons();\n    } else {\n      // Retry shortly if lucide is still initializing\n      const interval = setInterval(() => {\n        if (window.lucide && typeof window.lucide.createIcons === 'function') {\n          clearInterval(interval);\n          window.lucide.createIcons();\n        }\n      }, 100);\n    }\n  }\n})();"}}},"attributes":{"icon-name":{"name":"icon-name"},"stroke-width":{"name":"stroke-width"}}}]}