{"version":3,"file":"message_controller-D_E9nX_B.js","sources":["../../../app/javascript/controllers/step/message_controller.js"],"sourcesContent":["import LineController from \"../journeys/line_controller\"\nimport { BlankEndpoint, StraightConnector } from \"@jsplumb/browser-ui\"\n\nexport default class extends LineController {\n static targets = [\"message\", \"container\", \"hiddenInput\", \"couponInput\", \"stepName\"]\n\n initialize() {\n this.kind = \"message\"\n super.initialize()\n }\n\n connect() {\n this._drawLine(false)\n\n if (!this.persistedValue) {\n setTimeout(() => this.togglePane({}), 0)\n }\n\n super.connect()\n }\n\n disconnect() {\n this._cleanupAllConnections()\n\n if (this.hasRemovedInputTarget) {\n this.removedInputTarget.disabled = false\n document.getElementById(\"drawing_container\").appendChild(this.removedInputTarget)\n }\n\n super.disconnect()\n }\n\n onWindowSizeChange() {\n this.repositionLine()\n }\n\n sync({ detail }) {\n this.repositionLine()\n\n if (detail.stepId !== this.element.id) return\n if(!detail.commit) return\n\n this.triggerTarget.classList.remove(\"halo--active\")\n this.triggerTarget.disabled = false\n\n this.persistedValue = true\n\n this.stepNameTarget.innerHTML = detail.stepName || t.journeys.new.message\n\n setTimeout(() => {\n this.notifyOtherStepsToRepositionLines()\n }, 200)\n }\n\n redraw({ detail }) {\n if(this.element.closest('[data-step=\"question\"]')) return\n if (detail.target !== this.element.id) return\n\n this._cleanupAllConnections()\n\n this.childValue = detail.replaceWith\n this.line = this.draw(\n this.containerTarget,\n document.getElementById(detail.replaceWith),\n {\n fromOptions: { endpoint: BlankEndpoint.type, anchor: \"Bottom\" },\n toOptions: { endpoint: BlankEndpoint.type, anchor: \"Top\" },\n lineOptions: StraightConnector.type,\n }\n )\n }\n\n repositionLine() {\n if(this.element.closest('[data-step=\"question\"]')) return\n\n this.instance.repaintEverything()\n }\n\n redrawEndLineIfNeeded({ detail }) {\n if(this.element.closest('[data-step=\"question\"]') || !document.contains(this.element)) return\n\n if (\n detail.target === this.element.id ||\n detail.parent === this.element.id\n ) {\n this.childValue = detail.child\n\n if (detail.child) {\n this._cleanupAllConnections()\n\n this.line = this.draw(\n this.containerTarget,\n document.getElementById(detail.child),\n {\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(\"Top\"),\n }\n )\n } else {\n this._drawLine(true)\n }\n }\n\n if (detail.child === this.element.id) {\n this.lineValue = detail.parent\n\n this._cleanupAllConnections()\n\n this.branchValue = detail.branch\n this._drawLine(true)\n }\n\n setTimeout(() => this.repositionLine(), 0)\n }\n\n abortChanges({ detail }) {\n if (detail !== this.element.id) return\n\n if (this.currentValue) {\n setTimeout(() => {\n this.containerTarget.innerText = undefined\n this.containerTarget.innerText = this.currentValue\n }, 0)\n }\n\n this.triggerTarget.classList.remove(\"halo--active\")\n\n if (!this.persistedValue) {\n this._cleanupAllConnections()\n\n // Detach from DOM before removal to avoid jsPlumb repaint issues\n if (this.element.parentElement) {\n this.element.parentElement.style.display = \"none\";\n }\n\n // Remove the element from the jsPlumb instance\n if (this.instance) {\n this.instance.unmanage(this.element);\n this.instance.unmanage(this.containerTarget);\n }\n\n if (this.dropzone) {\n this.dropzone.remove()\n }\n\n this.element.parentElement.remove()\n this.element.remove()\n }\n }\n\n _drawLine(redraw = false) {\n if (redraw) {\n this._cleanupAllConnections()\n }\n\n if (this.hasChildStep) {\n this._drawLineForBranchless()\n }\n\n const ancestor = this.getFirstAncestorOfType(['[data-kind=\"question\"]', '[data-kind=\"condition\"]'])\n\n if(ancestor) {\n if(ancestor.dataset.kind === 'question') {\n this._drawLineWithinQuestion()\n } else {\n this._drawLineWithinCondition()\n }\n\n return\n }\n\n this._drawLineForBranchless()\n\n setTimeout(() => this.repositionLine(), 0)\n }\n\n _drawLineWithinCondition(redraw = false) {\n if(this.withinElse) {\n this._drawLineForElseBranch()\n } else {\n this._drawLineForBranch()\n }\n }\n\n _drawLineWithinQuestion(redraw = false) {\n if(this.withinAnswer) {\n this._drawLineForAnswer(redraw)\n } else {\n this._drawLineForGracePeriod(redraw)\n }\n }\n\n _drawLineForAnswer(redraw = false) {\n const answerElement = this.element.closest('[data-kind=\"answer\"]')\n const questionElement = answerElement.closest('[data-kind=\"question\"]')\n\n const questionController = this.application.getControllerForElementAndIdentifier(questionElement, 'automation--question')\n const endConnector = questionController.endConnectorTarget\n\n const lineOptions = {\n ...this.flowchartConnectorLineOptions,\n options: {\n ...this.flowchartConnectorLineOptions.options,\n cornerRadius: answerElement.previousElementSibling ? 0 : 10\n }\n }\n\n this.line = this.draw(\n this.containerTarget,\n endConnector,\n {\n lineOptions,\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(),\n }\n )\n }\n\n _drawLineForGracePeriod(redraw = false) {\n const gracePeriodElement = this.element.closest('[data-kind=\"grace\"]')\n const questionElement = gracePeriodElement.closest('[data-kind=\"question\"]')\n\n const questionController = this.application.getControllerForElementAndIdentifier(questionElement, 'automation--question')\n const endConnector = questionController.endConnectorTarget\n\n this.line = this.draw(\n this.containerTarget,\n endConnector,\n {\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(),\n }\n )\n }\n\n remove({ detail }) {\n if (detail !== this.element.id) return\n\n // First, hide the element to prevent jsPlumb repaints\n this.element.style.display = \"none\";\n\n // Clean up ALL connections\n this._cleanupAllConnections()\n\n // Remove the element from the jsPlumb instance\n if (this.instance) {\n this.instance.unmanage(this.element);\n this.instance.unmanage(this.containerTarget);\n }\n\n // Force a repaint of the jsPlumb instance\n if (this.instance) {\n this.instance.repaintEverything();\n }\n\n // Now remove the DOM elements\n if (this.dropzone) {\n this.dropzone.remove()\n }\n\n this.element.remove()\n\n if (this.hasRemovedInputTarget && document.contains(document.getElementById('drawing_container'))) {\n this.removedInputTarget.disabled = false\n document.getElementById(\"drawing_container\").appendChild(this.removedInputTarget)\n }\n }\n\n _cleanupAllConnections() {\n if (!this.instance) return;\n\n if (this.line) {\n try {\n this.instance.deleteConnection(this.line);\n } catch (e) {\n console.warn(\"Error deleting known connection:\", e);\n }\n\n this.line = null;\n }\n\n this.instance.getConnections({ source: this.element }).forEach(conn => {\n try {\n this.instance.deleteConnection(conn);\n } catch (e) {\n console.warn(\"Error deleting source connection:\", e);\n }\n })\n\n this.instance.getConnections({ target: this.element }).forEach(conn => {\n try {\n this.instance.deleteConnection(conn);\n } catch (e) {\n console.warn(\"Error deleting target connection:\", e);\n }\n })\n }\n\n _drawLineForBranch() {\n const closestBranchElement = this.element.closest('[data-step--condition-target=\"branch\"]')\n const conditionElement = closestBranchElement.closest('[data-kind=\"condition\"]')\n\n const controller = this.application.getControllerForElementAndIdentifier(conditionElement, 'step--condition')\n\n const options = {\n ...this.flowchartConnectorLineOptions,\n options: {\n ...this.flowchartConnectorLineOptions.options,\n cornerRadius: closestBranchElement.previousElementSibling ? 0 : 10\n }\n }\n\n this.line = this.draw(\n this.containerTarget,\n controller.endTarget,\n {\n lineOptions: options,\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(\"\"),\n }\n )\n }\n\n _drawLineForElseBranch() {\n this.line = this.draw(\n this.containerTarget,\n document.getElementById(this.childValue || this.endIdValue),\n {\n ...this.flowchartConnectorLineOptions,\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(\"Right\"),\n }\n )\n }\n\n _drawLineForSuccessBranch() {\n this.line = this.draw(\n this.containerTarget,\n document.getElementById(this.childValue || this.endIdValue),\n {\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(\"Left\"),\n }\n )\n }\n\n _drawLineForBranchless() {\n const targetElement = document.getElementById(this.childValue) || document.getElementById(\"end-connector\");\n\n // Only draw if target exists\n if (targetElement) {\n this.line = this.draw(\n this.containerTarget,\n targetElement,\n {\n fromOptions: this.blankEndpoint(\"Bottom\"),\n toOptions: this.blankEndpoint(this.inBranch ? \"\" :\"Top\"),\n lineOptions: this.inBranch\n ? this.flowChartConnectorForBranch\n : StraightConnector.type,\n }\n )\n }\n }\n\n childValueChanged() {\n if (this.dropzone) {\n this.dropzone.setAttribute(\"data-child\", this.childValue)\n }\n }\n\n branchValueChanged() {\n if (this.branchInputTarget && this.dropzone) {\n this.branchInputTarget.value = this.branchValue\n this.dropzone.setAttribute(\n \"data-journeys--dropzone-branch-value\",\n this.branchValue\n )\n }\n }\n\n lineValueChanged() {\n if (this.parentTarget) {\n this.parentTarget.value = this.lineValue\n }\n }\n\n get dropzone() {\n return document.getElementById(`${this.element.id}_dropzone`)\n }\n\n inElseBranch(element = document.getElementById(this.parentTarget?.value)) {\n return this.element.closest('[data-step--condition-target=\"elseContainer\"]')\n }\n\n get inBranch() {\n return super.inBranch || this.element.closest('[data-step--condition-target=\"branch\"]')\n }\n\n inSuccessBranch(element = document.getElementById(this.parentTarget?.value)) {\n if (!element) {\n return false\n }\n\n if (element.dataset.branch === \"success\") {\n return true\n } else if (\n element.id === \"journeys--editor\" ||\n element.dataset.branch === \"else\"\n ) {\n return false\n } else {\n return this.inSuccessBranch(\n document.getElementById(element.dataset[\"step-MessageLineValue\"])\n )\n }\n }\n\n get flowChartConnectorForBranch() {\n const originalOptions = this.flowchartConnectorLineOptions\n\n return {\n ...originalOptions,\n options: {\n ...originalOptions.options,\n cornerRadius: this.insideEdgeBranch\n ? originalOptions.options.cornerRadius\n : 0,\n },\n }\n }\n\n get withinCondition() {\n return this.element.closest('[data-kind=\"condition\"]')\n }\n\n get withinQuestion() {\n return this.closestQuestion\n }\n\n get withinAnswer() {\n return this.element.closest('[data-kind=\"answer\"]') && this.element.closest('[data-kind=\"answer\"]').closest('[data-kind=\"question\"]') === this.closestQuestion\n }\n\n get withinElse() {\n return this.element.closest('[data-step--condition-target=\"elseContainer\"]')\n }\n\n get closestQuestion() {\n return this.element.closest('[data-kind=\"question\"]')\n }\n}\n"],"names":["MessageController","LineController","detail","BlankEndpoint","StraightConnector","redraw","ancestor","answerElement","questionElement","endConnector","lineOptions","conn","e","closestBranchElement","conditionElement","controller","options","targetElement","element","_a","_b","originalOptions","__publicField"],"mappings":"oOAGe,MAAKA,UAASC,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