{"project":"teruma_app","branch":"main","commit":"035d50dc0e408b8ac4f5bb31b1066fb3e0d5efca","component":{"name":"test","nodes":{"root":{"tag":"div","type":"element","children":["aCIDILgEUZ9wFQfz2-4Uq"],"classes":{"eHpzdO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aCIDILgEUZ9wFQfz2-4Uq":{"name":"Invite User","type":"component","customProperties":{}}},"route":{"path":[{"name":"test","type":"static"}],"query":{}}},"components":[{"apis":{"send invite link":{"url":{"type":"value","value":"https://api.resend.com"},"body":{"type":"object","arguments":[{"Name":0,"name":"from","formula":{"type":"value","value":"Elli Grossman ~ Teruma <noreply@app.teruma.org>"}},{"Name":0,"name":"to","formula":{"path":["Variables","email"],"type":"path"}},{"Name":0,"name":"subject","formula":{"type":"value","value":"Elli Grossman You have been invited!"}},{"Name":0,"name":"html","formula":{"path":["Variables","html"],"type":"path"}}]},"name":"send invite link","path":{"501ca6b9-eeb1-4f6d-b412-cc2a457ebd1b":{"index":0,"formula":{"type":"value","value":"emails"}}},"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"}},"Authorization":{"name":"Authorization","enabled":{"type":"value","value":true},"formula":{"name":"@toddle/concatenate","type":"function","arguments":[{"formula":{"type":"value","value":"Bearer "}},{"formula":{"type":"value","value":"re_BM9DUVWq_GJCC9oddCKtzA24kZEVasDQD"}}],"display_name":"Concatenate"}}},"isError":{},"timeout":{},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]},"/rpc/create_invite":{"url":{"type":"value","value":"https://lxooforhfzadqheigamc.supabase.co/rest/v1"},"body":{"type":"object","arguments":[{"Name":0,"name":"p_email","formula":{"path":["Variables","email"],"type":"path"}},{"Name":0,"name":"p_first_name","formula":{"path":["Variables","First Name"],"type":"path"}},{"Name":0,"name":"p_last_name","formula":{"path":["Variables","Last Name"],"type":"path"}},{"Name":0,"name":"p_company_id","formula":{"path":["Contexts","HomePage","OPbnbg","company_id"],"type":"path"}}]},"name":"/rpc/create_invite","path":{"Bj4qO8k2AzgpD1Rhd3Ufc":{"index":1,"formula":{"type":"value","value":"create_invite"}},"UUwVrbxp-euEVKJSU2XEh":{"index":0,"formula":{"type":"value","value":"rpc"}}},"type":"http","client":{},"inputs":{},"method":"POST","server":{"ssr":{"enabled":{"formula":{"type":"value","value":true}}},"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"apiKey":{"enabled":{"type":"value","value":true},"formula":{"type":"value","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imx4b29mb3JoZnphZHFoZWlnYW1jIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDc3Njk2NTgsImV4cCI6MjAyMzM0NTY1OH0.wivylXZiKSY0L4gi8RBB9ufCsH-nq505TCMS0GNnqnc"}},"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":"Invite User","nodes":{"root":{"tag":"div","type":"element","children":["JneDGR7_iP3Xnr80XdPN_","hmOT0idJJxw35BeGGXI7H"],"classes":{"dNglwq":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JneDGR7_iP3Xnr80XdPN_":{"name":"code-editor","type":"component","attrs":{"value":{"path":["Variables","html"],"type":"path"}},"events":{"change":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"html"}],"trigger":"change"}},"package":"code_editor","customProperties":{}},"hmOT0idJJxw35BeGGXI7H":{"name":"htmlFrame","type":"component","attrs":{"html":{"path":["Variables","html"],"type":"path"}},"package":"html_frame","customProperties":{}}},"contexts":{"HomePage":{"formulas":["OPbnbg"],"workflows":[],"componentName":"HomePage"}},"formulas":{"x1BvPy":{"name":"Untitled","formula":{"type":"object","arguments":[{"Name":0,"formula":{"type":"value","value":"null"}}]},"memoize":false,"arguments":[]}},"variables":{"html":{"initialValue":{"type":"value","value":"<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\" />\n    <title>Teruma.org Invitation</title>\n  </head>\n  <body style=\"margin:0; padding:0; background: #eaf2f8;\">\n    <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background: #eaf2f8; min-height: 100vh;\">\n      <tr>\n<td align=\"center\" valign=\"middle\" style=\"height:100vh;\">\n\n          <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"max-width: 440px; width: 100%; background: #f6fbff; border-radius: 36px; box-shadow: 0 6px 32px rgba(24, 64, 136, 0.07); padding: 0;\">\n            <tr>\n              <td style=\"padding: 0px 28px 56px 28px; font-family: 'Segoe UI', Arial, sans-serif; color: #18305b;\">\n                <div style=\"text-align: center;\">\n                  <img src=\"https://lxooforhfzadqheigamc.supabase.co/storage/v1/object/public/logos//Teruma%20Logo%20(1).png\" alt=\"Teruma Logo\" style=\"height: 150px; vertical-align: middle; margin-bottom: 0px; display: block; margin-left: auto; margin-right: auto;\" />\n                  \n                </div>\n                <h2 style=\"text-align:center; margin: 0 0 10px 0; font-size: 1.45rem; color: #24364c;\">Welcome to Teruma.org!</h2>\n                <p style=\"text-align:center; margin: 0 0 24px 0; font-size: 1.12rem; color: #223c66;\">\n                  You’ve been invited to join<br />\n                  <strong>Rav Chesed (Antwerp)</strong>.\n                </p>\n                <p style=\"text-align:center; margin: 44 0 32px 0; color: #223c66;font-size: 0.9rem\">\n                  Set up your account to manage donations, pledges, and connect with your team—everything you need in one place.\n                </p>\n                <div style=\"text-align:center; margin-top: 32px;\">\n                  <a href=\"https://app.teruma.org/auth-create-password?token=e34ec93e-1a4a-47be-9625-da3491cbcbf2\" style=\"background: #24364c; color: #fff; padding: 16px 46px; border-radius: 16px; font-size: 1.2rem; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(36,54,76,0.08); display: inline-block;\">\n                    Create your account\n                  </a>\n                </div>\n              </td>\n            </tr>\n          </table>\n        </td>\n      </tr>\n    </table>\n  </body>\n</html>"}},"email":{"initialValue":{"type":"value","value":"yossefk945@gmail.com"}},"Last Name":{"initialValue":{"type":"value","value":"Katsborg"}},"First Name":{"initialValue":{"type":"value","value":"Yossi"}},"company id":{"initialValue":{"type":"value","value":"eaa9c71f-20f0-49b2-9820-a629dca7f074"}},"invite link":{"initialValue":{"type":"value","value":"https://app.teruma.org/auth-create-password?token=e34ec93e-1a4a-47be-9625-da3491cbcbf2"}}}},{"name":"code_editor/code-editor","nodes":{"root":{"tag":"code-editor","type":"element","children":["LUGAYism7WxKZgfFaMa9l","Pe0VYXm5NHfrc3P8SyMiq","pNhSwEu51sMYhf-4yidhW","tUc4UtDs42rI7G_vE3yHM","E2jxAtnFFiNkEJzUbaVTS"],"classes":{"eDdthD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4fkafjaUlt1CP6FTlDtsQ":{"type":"slot"},"Bbg3908P95cNxpPoyHWLH":{"type":"text","value":{"type":"value","value":"class MonacoEditor extends HTMLElement {\n  constructor() {\n    super();\n    this.initMonaco = this.initMonaco.bind(this);\n  }\n\n  connectedCallback() {\n    const shadow = this.attachShadow({ mode: \"closed\" });\n\n    // Copy over editor styles\n    const style = shadow.host.getRootNode().querySelector(\n      \"link[rel='stylesheet'][data-name='vs/editor/editor.main']\"\n    );\n    shadow.appendChild(style.cloneNode(true));\n\n    const container = document.createElement(\"div\");\n    container.style = \"width: 100%; height: 100%; position: absolute;\";\n\n    shadow.appendChild(container);\n\n    const throttleRequireLoaded = (callback) => {\n      if (window.require) {\n        callback();\n      } else {\n        setTimeout(() => throttleRequireLoaded(callback), 100);\n      }\n    };\n    throttleRequireLoaded(() => this.initMonaco(container));\n  }\n\n  disconnectedCallback() {\n    this.monacoEditor?.dispose();\n  }\n\n  static get observedAttributes() {\n    return [\"data-value\", \"data-lib-source\", \"data-language\", \"data-theme\"];\n  }\n\n  attributeChangedCallback(name, oldValue, newValue) {\n    if (!this.monacoEditor) {\n      return;\n    }\n\n    switch (name) {\n      case \"data-value\":\n        // Short path if the value hasn't changed\n        if (newValue === this.monacoEditor.getValue()) {\n          return;\n        }\n\n        // To support live collaboration, we need to keep cursor position and selection\n        const cursorPosition = this.monacoEditor.getPosition();\n        const selection = this.monacoEditor.getSelection();\n        this.monacoEditor.setValue(newValue);\n        this.monacoEditor.setPosition(cursorPosition);\n        this.monacoEditor.setSelection(selection);\n        break;\n      case \"data-lib-source\":\n        this.updateLibSource(newValue);\n        break;\n      case \"data-language\":\n        monaco.editor.setModelLanguage(\n          this.monacoEditor.getModel(),\n          newValue || \"javascript\"\n        );\n        break;\n      case \"data-theme\":\n        monaco.editor.setTheme(newValue);\n        break;\n    }\n  }\n\n  updateLibSource(libSource) {\n    if (!libSource) {\n      return;\n    }\n\n    var libUri = \"ts:filename/lib.d.ts\";\n    monaco.languages.typescript.javascriptDefaults.setExtraLibs([\n      {\n        content: libSource,\n        uri: libUri,\n      },\n    ]);\n    // When resolving definitions and references, the editor will try to use created models.\n    // Creating a model for the library allows \"peek definition/references\" commands to work with the library.\n    if (monaco.editor.getModel(monaco.Uri.parse(libUri))) {\n      return;\n    }\n\n    monaco.editor.createModel(\n      libSource,\n      \"typescript\",\n      monaco.Uri.parse(libUri)\n    );\n  }\n\n  setupEvents() {\n    this.monacoEditor?.onDidChangeModelContent(() => {\n      this.dispatchEvent(\n        new CustomEvent(\"change\", {\n          detail: this.monacoEditor?.getValue(),\n        })\n      );\n    });\n    this.monacoEditor?.onDidBlurEditorText(() => {\n      this.dispatchEvent(new CustomEvent(\"blur\"));\n    });\n  }\n\n  initMonaco(container) {\n    window.require.config({\n      paths: { vs: \"https://cdn.toddle.cloud/npm/monaco-editor/min/vs\" },\n    });\n    window.require([\"vs/editor/editor.main\"], () => {\n      executeWithoutToddleCssResets(() => {\n        const language = this.getAttribute(\"data-language\") || \"javascript\";\n        const value = (this.getAttribute(\"data-value\") || \"\")\n        const theme = this.getAttribute(\"data-theme\") || \"vs-dark\" // Default theme\n        const constructionOptions = JSON.parse(this.getAttribute(\"data-construction-options\") || \"{}\")\n        const defaultConstructionOptions = {\n          value,\n          language,\n          automaticLayout: true,\n          theme,\n          stickyScroll: {\n            enabled: false\n          },\n          lightbulb: {\n            enabled: true,\n          },\n          contextmenu: false,\n        };\n        if ([\"javascript\", \"typescript\"].includes(language)) {\n          monaco.languages.typescript.javascriptDefaults.setCompilerOptions({\n            target: monaco.languages.typescript.ScriptTarget.ESNext,\n            allowNonTsExtensions: true,\n            allowJs: true,\n            checkJs: true,\n          });\n          if (this.hasAttribute(\"data-lib-source\")) {\n            this.updateLibSource(\n              this.getAttribute(\"data-lib-source\")\n            );\n          }\n        }\n        this.monacoEditor = monaco.editor.create(container, {\n          ...defaultConstructionOptions,\n          ...constructionOptions,\n        });\n        this.setupEvents();\n      });\n    });\n  }\n}\n\nif (!customElements.get(\"monaco-editor\")) {\n  customElements.define(\"monaco-editor\", MonacoEditor);\n}\n\nfunction executeWithoutToddleCssResets(callback) {\n  const style = document.createElement(\"style\");\n  style.innerHTML = `\n    body > div:not(#App), body > div:not(#App) * {\n      display: revert;\n    }`;\n  document.head.appendChild(style);\n  callback();\n  document.head.removeChild(style);\n}\n"}},"E2jxAtnFFiNkEJzUbaVTS":{"tag":"script","type":"element","attrs":{"type":{"type":"value","value":"module"}},"children":["Bbg3908P95cNxpPoyHWLH"],"customProperties":{}},"LUGAYism7WxKZgfFaMa9l":{"tag":"link","type":"element","attrs":{"rel":{"type":"value","value":"stylesheet"},"href":{"type":"value","value":"https://cdn.toddle.cloud/npm/monaco-editor/dev/vs/editor/editor.main.css"},"type":{"type":"value","value":"text/css"},"data-name":{"type":"value","value":"vs/editor/editor.main"}},"customProperties":{}},"Pe0VYXm5NHfrc3P8SyMiq":{"tag":"script","type":"element","attrs":{"src":{"type":"value","value":"https://cdn.toddle.cloud/npm/monaco-editor/min/vs/loader.js"}},"customProperties":{}},"pNhSwEu51sMYhf-4yidhW":{"tag":"template","type":"element","attrs":{"id":{"type":"value","value":"editor-template"}},"customProperties":{}},"tUc4UtDs42rI7G_vE3yHM":{"tag":"monaco-editor","type":"element","attrs":{"data-id":{"path":["Attributes","id"],"type":"path"},"data-theme":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"name":"@toddle/find","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"vs"}},{"Name":0,"formula":{"type":"value","value":"vs-dark"}},{"Name":0,"formula":{"type":"value","value":"hc-black"}},{"Name":0,"formula":{"type":"value","value":"hc-light"}}]}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Attributes","theme"],"type":"path"}}],"display_name":"Equals"},"isFunction":true}],"display_name":"Find"}},{"name":"1","type":{"type":"Any"},"formula":{"type":"value","value":"vs-dark"}}],"display_name":"Default to","variableArguments":true},"data-value":{"path":["Attributes","value"],"type":"path"},"data-language":{"path":["Attributes","language"],"type":"path"},"data-lib-source":{"path":["Attributes","lib-source"],"type":"path"},"data-construction-options":{"name":"@toddle/encodeJSON","type":"function","arguments":[{"name":"Data","type":{"type":"Any"},"formula":{"path":["Attributes","construction-options"],"type":"path"}},{"name":"Indent","type":{"type":"Number"},"formula":{"type":"value","value":2}}],"display_name":"Encode JSON"}},"events":{"blur":{"actions":[{"type":"Switch","cases":[{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"blur"}],"condition":{"name":"@toddle/get","type":"function","label":"Is trusted","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event"],"type":"path","label":null}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"isTrusted"}}],"display_name":"Get"}}],"default":{"actions":[]}}],"trigger":"blur"},"change":{"actions":[{"data":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"detail"}}],"display_name":"Get"},"type":"TriggerEvent","event":"change"}],"trigger":"change"}},"children":["4fkafjaUlt1CP6FTlDtsQ"],"classes":{"eQFxmR":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"change"},{"name":"blur"}],"version":2,"exported":true,"attributes":{"id":{"name":"id"},"theme":{"name":"theme"},"value":{"name":"value"},"language":{"name":"language"},"lib-source":{"name":"lib-source"},"construction-options":{"name":"construction-options"}}},{"name":"html_frame/htmlFrame","nodes":{"root":{"tag":"div","type":"element","children":["xMXqStAm6SrVGFl59mfHL"],"classes":{"dwkczm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xMXqStAm6SrVGFl59mfHL":{"tag":"iframe","type":"element","attrs":{"srcdoc":{"path":["Attributes","html"],"type":"path"},"sandbox":{"type":"value","value":"allow-forms allow-scripts allow-same-origin"}},"classes":{"dwkczm":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"exported":true,"attributes":{"html":{"name":"html"}}}]}