class CustomDecisionNode extends HTMLElement { constructor() { super(); this.answerOptions = ['Yes', 'No']; } connectedCallback() { const nodeId = this.getAttribute('node-id') || `node-${Math.random().toString(36).substr(2, 9)}`; this.setAttribute('node-id', nodeId); const isRoot = this.hasAttribute('is-root'); this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `