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zB,KAAK,QAAQ,KAAO,CAACA,EACrB,KAAK,QAAQ,SAAWA,EAAU,EAAI,EAC1C,GAnBE,mBAAoB,CAClB,KAAK,QAAU,KAAK,cAAc,kBAAkB,EACpD,KAAK,QAAU,KAAK,cAAc,4BAA4B,EAE9D,KAAK,WAAa,OAAO,WAAW,qBAAqB,EACzD,KAAK,WAAW,iBAAiB,SAAU,KAAK,MAAM,EAEtD,KAAK,OAAM,CACf,CAEE,sBAAuB,CACrB,KAAK,WAAW,oBAAoB,SAAU,KAAK,MAAM,EACzD,KAAK,WAAa,IACtB,CAOA,CAEA,OAAO,eAAe,OAAO,gBAAiBC,EAAY,ECzB1D,iBAAiB,SAAUC,EAAS,CAAE,QAAS,EAAM,GAErD,iBAAiB,WAAYC,EAAa,EAE1C,iBAAiB,WAAYC,EAAa,EAE1C,SAASD,IAAgB,CACvBE,EAAuB,SAAS,SAAU,CAAE,QAAS,YAAc,EACrE,CAEA,SAASD,IAAgB,CACvBE,EAAuB,SAAS,SAAU,CAAE,QAAS,YAAc,EACrE","names":["SAVE_BUTTON_SELECTOR","TEST_BUTTON_SELECTOR","domReady","installSaveButton","installTestButton","element","testButton","saveButton","EXISTING_MEMBER_CHECKBOX_SELECTOR","ADD_NEW_MEMBER_LINK_SELECTOR","installExistingMemberCheckbox","installAddNewMemberLink","parentElement","dataset","email","firstName","lastName","timeZone","appendHiddenInput","key","value","name","input","createElement","addHiddenInputs","removeHiddenInputs","inputs","existingRow","row","RichTextAreaElement","__publicField","view","event","_a","files","dispatchInputEvent","Editor","label","names","attributes","submitter","labels","memoize","uniq","editorFromClosestRichTextArea","child","tagName","resolve","ready","RichTextToolbarElement","button","handler","debounce","nextFrame","command","selectionRect","offsetRect","style","bottom","left","minLeft","newLeft","href","dialog","RichTextActionbarElement","delay","RichTextAttachmentElement","debounceAnimationFrame","oldValue","newValue","isImage","link","image","src","content","contentType","elements","el","e","installShowApiKeyButton","authorizeTrelloError","authorizeTrelloSuccess","saveTrelloConnection","trelloBoardData","boards","b","csrfToken","response","authorizeTrello","setAcceptHeader","preserveChildrenWhenReplacementsAreEqual","target","detail","replacement","children","newChildren","i","showNotification","textContent","getNotificationText","getDefaultNotificationText","setActiveDetails","closeActiveDetails","activeDetails","menu","repositionIfNeeded","rect","HighlightTermElement","node","range","createTextMatchRangeIterator","root","text","nodes","createTextNodeIterator","termEntries","createTermEntries","term","pattern","endOffset","startOffset","createRange","walker","createTermEntry","MultiSelectElement","option","sole","values","optionCount","groups","query","group","options","hasMatch","a","action","optionValue","optionLabel","part","count","Reader","sgid","sgids","reader","observer","entries","isIntersecting","ReadReceiptElement","MenuPopoverElement","ToastNotificationElement","duration","SidePane","matches","SmallDetails","setForm","persistFields","restoreFields","persistResumableFields","restoreResumableFields"],"ignoreList":[],"sources":["../../../../app/frontend/src/application/integrations.js","../../../../app/frontend/src/application/onboarding.js","../../../../app/frontend/src/application/rich_text/area_element.js","../../../../app/frontend/src/application/rich_text/utils.js","../../../../app/frontend/src/application/rich_text/toolbar_element.js","../../../../app/frontend/src/application/rich_text/actionbar_element.js","../../../../app/frontend/src/application/rich_text/attachment_element.js","../../../../app/frontend/src/application/helpscout.js","../../../../app/frontend/src/application/team_settings.js","../../../../app/frontend/src/application/trello.js","../../../../app/frontend/src/application/elements/include_fragment_element.js","../../../../app/frontend/src/application/elements/copy_clipboard_element.js","../../../../app/frontend/src/application/elements/details_menu_element.js","../../../../app/frontend/src/application/elements/highlight_term_element.js","../../../../app/frontend/src/application/elements/multi_select_element.js","../../../../app/frontend/src/lib/reader.js","../../../../app/frontend/src/application/elements/read_receipt_element.js","../../../../app/frontend/src/application/elements/sh_menu_popover_element.js","../../../../app/frontend/src/application/elements/sh_toast_notification.js","../../../../app/frontend/src/application/elements/sh_sidepane_element.js","../../../../app/frontend/src/application/elements/sh_small_details.js","../../../../app/frontend/src/application/autosave.js"],"sourcesContent":["import { domReady } from \"../helpers\"\n\nconst SAVE_BUTTON_SELECTOR = \"button.save-integration\"\nconst TEST_BUTTON_SELECTOR = \"button.test-integration\"\n\ndomReady(() => {\n document.querySelectorAll(SAVE_BUTTON_SELECTOR).forEach(installSaveButton)\n document.querySelectorAll(TEST_BUTTON_SELECTOR).forEach(installTestButton)\n})\n\nfunction installSaveButton(element) {\n const testButton = element.parentElement.querySelector(TEST_BUTTON_SELECTOR)\n if (testButton) element.addEventListener(\"click\", () => testButton.remove())\n}\n\nfunction installTestButton(element) {\n const saveButton = element.parentElement.querySelector(SAVE_BUTTON_SELECTOR)\n if (saveButton) element.addEventListener(\"click\", () => saveButton.remove())\n}\n","import { domReady, createElement } from \"../helpers\"\n\nconst EXISTING_MEMBER_CHECKBOX_SELECTOR = \".onboarding .form-check.add-existing-member input[type=checkbox]\"\nconst ADD_NEW_MEMBER_LINK_SELECTOR = \".onboarding a.member-form-add-row\"\n\ndomReady(() => {\n document.querySelectorAll(EXISTING_MEMBER_CHECKBOX_SELECTOR).forEach(installExistingMemberCheckbox)\n document.querySelectorAll(ADD_NEW_MEMBER_LINK_SELECTOR).forEach(installAddNewMemberLink)\n})\n\nfunction installExistingMemberCheckbox(element) {\n const { parentElement, dataset } = element\n const { email, firstName, lastName, timeZone } = dataset\n\n const appendHiddenInput = (key, value) => {\n const name = `existing_members[][${key}]`\n const input = createElement(\"input\", { name, value, type: \"hidden\" })\n parentElement.append(input)\n }\n\n const addHiddenInputs = () => {\n appendHiddenInput(\"email\", email)\n if (firstName) appendHiddenInput(\"first_name\", firstName)\n if (lastName) appendHiddenInput(\"last_name\", lastName)\n if (timeZone) appendHiddenInput(\"time_zone\", timeZone)\n }\n\n const removeHiddenInputs = () => {\n const inputs = parentElement.querySelectorAll(\"input[type=hidden]\")\n for (const input of inputs) input.remove()\n }\n\n element.addEventListener(\"input\", () => {\n element.checked ? addHiddenInputs() : removeHiddenInputs()\n })\n}\n\nfunction installAddNewMemberLink(element) {\n const existingRow = element.closest(\"form\").querySelector(\".onboarding .member-form\")\n\n element.addEventListener(\"click\", () => {\n const row = existingRow.cloneNode(true)\n const inputs = row.querySelectorAll(\"input\")\n for (const input of inputs) input.value = \"\"\n existingRow.parentElement.append(row)\n inputs[0].focus()\n })\n}\n","import { createElement, dispatchInputEvent, memoize, uniq } from \"../../helpers\"\n\nclass RichTextAreaElement extends HTMLElement {\n constructor() {\n super()\n\n this.input = createElement(\"textarea\", {\n readonly: true,\n tabIndex: -1,\n ...this.takeAttributes(\"name\", \"value\", \"required\"),\n })\n this.append(this.input)\n\n this.editorConfig = {\n element: this,\n autofocus: this.autofocus,\n onCreate: this.update,\n onUpdate: this.update,\n editorProps: {\n attributes: this.takeAttributes(\"placeholder\"),\n handleKeyDown: this.handleKeyDown,\n handleDrop: this.handleDrop,\n },\n }\n\n // If a \"keydown\" event is cancelled (by ProseMirror) then no \"input\" event will be fired. To maintain\n // compatibility with existing event handlers (in Stimulus controllers, for example), fire one manually.\n this.addEventListener(\"keydown\", (event) => event.defaultPrevented && dispatchInputEvent(event.target))\n\n // Track active uploads and disable submit buttons while in progress\n this.uploadCount = 0\n this.addEventListener(\"attachment:upload-start\", this.uploadStarted)\n this.addEventListener(\"attachment:upload-end\", this.uploadEnded)\n }\n\n // Lifecycle\n\n async connectedCallback() {\n const { Editor } = await import(\"./editor\")\n if (!this.isConnected) return\n this.connectLabels()\n this.editor = new Editor({ content: this.value, ...this.editorConfig })\n this.dispatchEvent(new CustomEvent(\"ready\"))\n }\n\n disconnectedCallback() {\n this.editor?.destroy()\n this.disconnectLabels()\n }\n\n // Event handlers\n\n update = () => {\n this.value = this.content\n this.empty = this.isEmpty\n }\n\n uploadStarted = () => {\n this.uploadCount++\n this.toggleSubmitters()\n }\n\n uploadEnded = () => {\n this.uploadCount--\n this.toggleSubmitters()\n }\n\n handleKeyDown = (view, event) => {\n // Submit form on Command+Enter\n if (event.key == \"Enter\" && (event.metaKey || event.ctrlKey)) {\n this.submitter?.click()\n return true\n }\n }\n\n handleDrop = (view, event) => {\n // Handle dropped files\n const { files } = event.dataTransfer\n if (files.length) {\n this.editor.chain().focus().insertFiles(files).run()\n return true\n }\n }\n\n focus = () => {\n this.editor.commands.focus()\n }\n\n //