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MAAM6E,EAASzP,KAAK+P,WAAWZ,GAE3BM,EAAOF,WACXE,EAAOF,UAAW,EAElBvP,KAAKwP,SAASL,GAChB,CAEAY,UAAAA,CAAWZ,GACT,OAAOnP,KAAKG,YAAYY,cAAe,iBAAgBoO,EAAM5Q,OAC/D,CAEAsR,aAAAA,CAAcV,EAAOC,GACnBA,EAAK5N,SACLxB,KAAK+P,WAAWZ,GAAOI,UAAW,EAClCvP,KAAKwO,YAAY5D,QACjB5K,KAAK8P,uBACP,CAEAA,qBAAAA,GACM9P,KAAKwO,YAAYzN,cAAc,UACjCf,KAAKgQ,kBAAkB9O,UAAUG,IAAI,UAErCrB,KAAKgQ,kBAAkB9O,UAAUM,OAAO,SAE5C,E,4CC/HFjC,EAAQ,K","sources":["webpack://down_low/./app/javascript/controllers/ sync \\.[jt]s$","webpack://down_low/./app/javascript/bootStimulus.js","webpack://down_low/./app/javascript/controllers/colors_controller.js","webpack://down_low/./app/javascript/controllers/colors_preview_controller.js","webpack://down_low/./app/javascript/controllers/dropdown_controller.js","webpack://down_low/./app/javascript/components/Button.js","webpack://down_low/./app/javascript/components/EditorMenu.js","webpack://down_low/./app/javascript/components/Editor.js","webpack://down_low/./app/javascript/components/Uploader.js","webpack://down_low/./app/javascript/components/ProgressBar.js","webpack://down_low/./app/javascript/controllers/editor_controller.js","webpack://down_low/./app/javascript/controllers/removals_controller.js","webpack://down_low/./app/javascript/controllers/subscription_controller.js","webpack://down_low/./app/javascript/controllers/topics_controller.js","webpack://down_low/./app/javascript/packs/application.js"],"sourcesContent":["var map = {\n\t\"./colors_controller.js\": 1516,\n\t\"./colors_preview_controller.js\": 455,\n\t\"./dropdown_controller.js\": 4131,\n\t\"./editor_controller.js\": 8409,\n\t\"./removals_controller.js\": 5859,\n\t\"./subscription_controller.js\": 6163,\n\t\"./topics_controller.js\": 5675,\n\t\"controllers/colors_controller.js\": 1516,\n\t\"controllers/colors_preview_controller.js\": 455,\n\t\"controllers/dropdown_controller.js\": 4131,\n\t\"controllers/editor_controller.js\": 8409,\n\t\"controllers/removals_controller.js\": 5859,\n\t\"controllers/subscription_controller.js\": 6163,\n\t\"controllers/topics_controller.js\": 5675\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 6022;","import { Application } from '@hotwired/stimulus'\nimport { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers'\n\nconst application = Application.start()\n\n// Load controllers\nconst context = require.context('./controllers', true, /\\.[jt]s$/)\napplication.load(definitionsFromContext(context))\n\n// Configure Stimulus development experience\napplication.debug = false\nwindow.Stimulus = application\n\nexport { application }\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['color', 'input']\n static classes = ['selected']\n static outlets = ['colors-preview']\n\n connect() {\n this.selectColor(this.find(`data-color=\"${this.inputTarget.value}\"`))\n }\n\n select(event) {\n this.deselectColor(this.selectedColor())\n this.selectColor(event.target)\n if (this.hasColorsPreviewOutlet) this.colorsPreviewOutlet.update()\n }\n\n find(selector) {\n return this.element.querySelector(`.badge[${selector}]`)\n }\n\n selectedColor() {\n return this.colorTargets.find(color =>\n color.classList.contains(this.selectedClass)\n )\n }\n\n selectColor(element) {\n element.classList.add(...this.selectedClasses)\n this.inputTarget.value = element.dataset.color\n }\n\n deselectColor(element) {\n element.classList.remove(...this.selectedClasses)\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static outlets = ['colors']\n\n static values = {\n 'color': String,\n }\n\n colorsOutletConnected() {\n this.update()\n }\n\n colorValueChanged(newColor, oldColor) {\n if (!oldColor) return\n this.element.classList.remove(this.className(oldColor))\n this.element.classList.add(this.className(newColor))\n }\n\n className(color) {\n return `text-${color}`\n }\n\n update() {\n this.colorValue = this.colorsOutlet.inputTarget.value\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { useClickOutside, useTransition } from 'stimulus-use'\n\nexport default class extends Controller {\n static targets = [\n 'button',\n 'list',\n ]\n\n connect() {\n useClickOutside(this)\n useTransition(this, { element: this.listTarget })\n\n this.ariaHide()\n this.listTarget.classList.add(\n 'absolute',\n 'backdrop-blur-lg',\n 'bg-stone-100/50',\n 'flex',\n 'flex-col',\n 'min-w-full',\n 'shadow',\n 'z-30',\n )\n }\n\n clickOutside(event) {\n this.leave()\n }\n\n toggle(event) {\n this.toggleTransition()\n }\n\n enter(event) {\n this.enter()\n this.ariaShow()\n }\n\n leave(event) {\n this.leave()\n this.ariaHide()\n }\n\n ariaShow() {\n this.buttonTarget.ariaExpanded = true\n this.listTarget.ariaHidden = false\n }\n\n ariaHide() {\n this.buttonTarget.ariaExpanded = false\n this.listTarget.ariaHidden = true\n }\n}\n","import { PropTypes } from 'prop-types'\nimport React, { useCallback, useState } from 'react'\nimport cn from 'classnames'\n\nconst Button = ({ active, children, enabled, left, onClick, right }) => {\n const classNames = cn(\n 'inline-block',\n 'px-2',\n 'py-1',\n 'text-white',\n 'text-xs',\n 'uppercase',\n 'w-8',\n {\n 'bg-stone-300': !enabled,\n 'bg-stone-400': enabled && !active,\n 'hover:bg-stone-400/90': enabled && !active,\n 'bg-stone-500': enabled && active,\n 'hover:bg-stone-500/90': enabled && active,\n 'rounded-l': left,\n 'rounded-r': right,\n },\n )\n\n return (\n \n {children}\n \n )\n}\n\nButton.defaultProps = {\n active: false,\n left: false,\n right: false,\n}\n\nButton.propTypes = {\n left: PropTypes.bool,\n right: PropTypes.bool,\n onClick: PropTypes.func.isRequired,\n active: PropTypes.bool.isRequired,\n enabled: PropTypes.bool.isRequired,\n}\n\nexport default Button;\n","import { PropTypes } from 'prop-types'\nimport React, { forwardRef, useCallback } from 'react'\nimport { useActive, useCommands } from '@remirror/react'\n\nimport Button from './Button'\n\nconst BlockquoteButton = (props) => {\n const { toggleBlockquote } = useCommands()\n\n const active = useActive().blockquote()\n const enabled = toggleBlockquote.enabled()\n const onClick = useCallback(() => toggleBlockquote(), [toggleBlockquote])\n\n return (\n \n )\n}\n\nconst HeadingButton = (props) => {\n const { toggleHeading } = useCommands()\n const options = { level: 2 };\n\n const active = useActive().heading(options)\n const enabled = toggleHeading.enabled(options)\n const onClick = useCallback(() => toggleHeading(options), [toggleHeading])\n\n return (\n \n )\n}\n\nconst BoldButton = (props) => {\n const { toggleBold } = useCommands()\n\n const active = useActive().bold()\n const enabled = toggleBold.enabled()\n const onClick = useCallback(() => toggleBold(), [toggleBold])\n\n return (\n \n )\n}\n\nconst ItalicButton = (props) => {\n const { toggleItalic } = useCommands()\n\n const active = useActive().italic()\n const enabled = toggleItalic.enabled()\n const onClick = useCallback(() => toggleItalic(), [toggleItalic])\n\n return (\n \n )\n}\n\nconst HorizontalRuleButton = (props) => {\n const { insertHorizontalRule } = useCommands()\n\n const enabled = insertHorizontalRule.enabled()\n const onClick = useCallback(() => {\n insertHorizontalRule()\n }, [insertHorizontalRule]);\n\n return (\n \n )\n}\n\nconst EditorMenu = () => {\n return (\n
\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n
\n
\n )\n}\n\nexport default EditorMenu;\n","require('remirror/styles/all.css')\n\nimport { PropTypes } from 'prop-types'\nimport React, { forwardRef, useCallback, useEffect } from 'react'\nimport { componentsTheme } from '@remirror/theme'\n\nimport {\n EditorComponent,\n OnChangeHTML,\n OnChangeJSON,\n Remirror,\n useDocChanged,\n useRemirror,\n} from '@remirror/react'\nimport {\n BlockquoteExtension,\n BoldExtension,\n DropCursorExtension,\n HardBreakExtension,\n HeadingExtension,\n HorizontalRuleExtension,\n ImageExtension,\n ItalicExtension,\n LinkExtension,\n PlaceholderExtension,\n} from 'remirror/extensions'\n\nimport EditorMenu from './EditorMenu'\nimport Uploader from './Uploader'\n\nfunction uploadHandler(progressContainer, fileInput, previewPath) {\n return (files) => (\n files.map(({ file, progress }) => {\n const uploader = new Uploader(file, progressContainer, fileInput)\n\n return () => new Promise((resolve) => {\n uploader.upload(({ filename: fileName, signed_id: signedID }) => {\n resolve({\n fileName,\n signedID,\n src:\n previewPath\n .replace(':signed_id:', signedID)\n .replace(':filename:', fileName),\n })\n })\n })\n })\n )\n}\n\nconst OnChangeText = ({ onChange }) => {\n useDocChanged(\n useCallback(\n ({ state }) => {\n const text = state.doc.textBetween(\n 0,\n state.doc.content.size,\n \"\\n\\n\",\n leaf => {\n switch (leaf.type.name) {\n case 'image':\n const { title, fileName } = leaf.attrs\n return `[${title.length > 0 ? title : fileName}]`\n default:\n return ''\n }\n }\n )\n\n onChange(text)\n },\n [onChange]\n )\n )\n\n return null\n}\n\nconst Editor = forwardRef(function Editor({\n field,\n value,\n onChangeData,\n onChangeHTML,\n onChangeText,\n progressContainer,\n fileInput,\n previewPath,\n}, ref) {\n const { getContext, manager, state, onChange } = useRemirror({\n content: value,\n extensions: () => [\n new BlockquoteExtension(),\n new BoldExtension(),\n new DropCursorExtension(),\n new HardBreakExtension(),\n new HeadingExtension(),\n new HorizontalRuleExtension(),\n new ImageExtension({\n enableResizing: true,\n uploadHandler: uploadHandler(progressContainer, fileInput, previewPath),\n extraAttributes: {\n signedID: {\n default: null,\n parseDOM: (dom) => {\n return dom.dataSet('signedId')\n },\n toDOM: (attrs) => {\n return ['data-signed-id', attrs.signedID]\n },\n },\n },\n }),\n new ItalicExtension(),\n new LinkExtension({ autoLink: true }),\n new PlaceholderExtension({ placeholder: 'Festina lente…' }),\n ],\n })\n\n useEffect(() => {\n field.addEventListener('focus', event => {\n getContext().focus('start')\n })\n }, [field, getContext])\n\n return (\n \n
\n
\n \n
\n \n
\n \n \n \n \n )\n}, [])\n\nEditor.propTypes = {\n onChangeData: PropTypes.func.isRequired,\n onChangeHTML: PropTypes.func.isRequired,\n onChangeText: PropTypes.func.isRequired,\n}\n\nexport default Editor\n","import { DirectUpload } from '@rails/activestorage'\n\nimport ProgressBar from 'components/ProgressBar'\n\nexport default class {\n constructor(file, progressContainer, input) {\n const { directUploadUrl } = input.dataset\n\n this.input = input\n this.directUpload = new DirectUpload(file, directUploadUrl, this)\n this.progress = new ProgressBar(progressContainer)\n }\n\n upload(callback) {\n this.directUpload.create((error, blob) => {\n if (error) {\n this.progress.failed()\n } else {\n this.progress.loaded()\n callback(blob)\n }\n })\n }\n\n directUploadWillStoreFileWithXHR(request) {\n request.upload.addEventListener('progress', ({ loaded, total }) => {\n this.progress.update(loaded, total)\n })\n }\n}\n","export default class {\n constructor(container) {\n this.bar = document.createElement('div')\n this.bar.className = 'bg-stone-200 h-2 my-2 rounded-full w-full'\n\n this.inner = document.createElement('div')\n this.inner.className = 'bg-blue-500 h-full rounded-full'\n this.inner.style = `width: 5%;`\n\n this.bar.appendChild(this.inner)\n container.appendChild(this.bar)\n }\n\n failed() {\n this.inner.classList.remove('bg-blue-500')\n this.inner.classList.add('bg-red-500')\n }\n\n loaded() {\n this.bar.remove()\n }\n\n update(current, total) {\n const percent = (current / total) * 100\n this.inner.style = `width: ${percent}%;`\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport React from 'react'\nimport { createRoot } from 'react-dom/client'\n\nimport Editor from '../components/Editor'\n\nexport default class extends Controller {\n static targets = ['data', 'html', 'editor', 'progress', 'file', 'text']\n\n static values = {\n data: Object,\n previewPath: String,\n }\n\n connect() {\n this.root = createRoot(this.editorTarget)\n\n this.root.render(\n \n )\n }\n\n disconnect() {\n this.root.unmount()\n }\n\n focus = event => {\n const focus = new Event('focus')\n this.element.dispatchEvent(focus)\n event.preventDefault()\n }\n\n onChangeData = data => {\n this.updateImageReferences(data)\n this.dataTarget.value = JSON.stringify(data)\n }\n\n onChangeHTML = html => {\n this.htmlTarget.value = html\n }\n\n onChangeText = text => {\n this.textTarget.value = text\n }\n\n updateImageReferences(data) {\n this.removeImageReferences()\n this.forEachImage(data, this.addImageReference)\n }\n\n addImageReference = ({ attrs: { signedID } }) => {\n const input = document.createElement('input')\n input.setAttribute('type', 'hidden')\n input.setAttribute('value', signedID)\n input.name = this.fileTarget.name\n this.fileTarget.form.appendChild(input)\n }\n\n removeImageReferences() {\n this\n .fileTarget\n .form\n .querySelectorAll(\n `input[type=\"hidden\"][name=\"${this.fileTarget.name}\"]:not([value=\"\"])`\n )\n .forEach(input => input.remove())\n }\n\n forEachImage(object, callback) {\n if (object.content) {\n object.content.forEach(child => {\n if (child.type == 'image') {\n callback(child)\n } else {\n this.forEachImage(child, callback)\n }\n })\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"removals\"\nexport default class extends Controller {\n remove() {\n this.element.remove()\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { useMeta } from 'stimulus-use'\n\nexport default class extends Controller {\n static metaNames = ['csrf-token']\n\n static targets = [\n 'failed',\n 'button',\n 'loading',\n 'loadingIcon',\n 'subscribedIcon',\n 'unsubscribedIcon',\n ]\n\n static values = {\n loading: { type: Boolean, default: false },\n subscriptionPath: String,\n subscribed: Boolean,\n }\n\n connect() {\n useMeta(this)\n\n if (this.subscribedValue) {\n this.subscribedIconTarget.classList.remove('hidden')\n } else {\n this.unsubscribedIconTarget.classList.remove('hidden')\n }\n }\n\n toggle(event) {\n this.loadingValue = true\n\n this.updateMembership({ subscribed: !this.subscribedValue })\n .then(({ subscribed }) => {\n this.loadingValue = false\n this.subscribedValue = subscribed\n }, _error => this.failed())\n }\n\n failed() {\n this.buttonTarget.classList.add('hidden')\n this.loadingTarget.classList.add('hidden')\n this.failedTarget.classList.remove('hidden')\n }\n\n loadingValueChanged(loading) {\n if (loading) {\n this.buttonTarget.classList.add('hidden')\n this.loadingTarget.classList.remove('hidden')\n } else {\n this.loadingTarget.classList.add('hidden')\n this.buttonTarget.classList.remove('hidden')\n }\n }\n\n subscribedValueChanged(subscribed) {\n if (subscribed) {\n this.unsubscribedIconTarget.classList.add('hidden')\n this.subscribedIconTarget.classList.remove('hidden')\n } else {\n this.subscribedIconTarget.classList.add('hidden')\n this.unsubscribedIconTarget.classList.remove('hidden')\n }\n }\n\n async updateMembership({ subscribed }) {\n const response = await fetch(this.subscriptionPathValue, {\n method: subscribed ? 'POST' : 'DELETE',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': this.csrfTokenMeta,\n },\n })\n\n return response.json()\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { useClickOutside } from 'stimulus-use'\n\nexport default class extends Controller {\n static targets = [\n 'input',\n 'list',\n 'placeholder',\n 'value',\n ]\n\n static values = {\n isOpen: { type: Boolean, default: false },\n }\n\n connect() {\n this.addTopicsToList()\n useClickOutside(this)\n\n // retain focus when clicking children\n this.element.addEventListener('click', event => {\n this.valueTarget.focus()\n })\n\n // open topic list when gaining focus\n this.valueTarget.addEventListener('focus', event => {\n this.isOpenValue = true\n })\n\n // close topic list when another element gains focus\n this.valueTarget.addEventListener('blur', event => {\n if (event.relatedTarget !== null) this.isOpenValue = false\n })\n }\n\n clickOutside(event) {\n this.isOpenValue = false\n }\n\n focus(event) {\n this.valueTarget.focus()\n }\n\n isOpenValueChanged(isOpen, previousValue) {\n if (previousValue === undefined) return\n\n if (isOpen) {\n this.listTarget.classList.remove('hidden')\n } else {\n this.listTarget.classList.add('hidden')\n }\n }\n\n addTopicsToList() {\n const select = this.element.getElementsByTagName('select')[0]\n\n Array\n .from(select.options)\n .map(this.topicFromOption)\n .filter(topic => topic.id !== '')\n .map(topic => {\n const item = this.buildTopic(topic)\n item.addEventListener('click', event => this.selectTopic(topic))\n if (topic.selected) this.addTopic(topic)\n this.listTarget.appendChild(item)\n })\n }\n\n topicFromOption(option) {\n return {\n color: option.dataset['color'],\n id: option.value,\n name: option.text,\n selected: option.selected,\n }\n }\n\n buildTopic(topic) {\n const { color, id, name } = topic\n const item = document.createElement('li')\n\n item.className = `badge cursor-pointer after:bg-${color}`\n item.innerText = name\n item.dataset['value'] = id\n item.tabindex = 0\n\n return item\n }\n\n addTopic(topic) {\n const item = this.buildTopic(topic)\n\n item.addEventListener('click', event => {\n event.stopPropagation()\n this.deselectTopic(topic, item)\n })\n\n this.valueTarget.appendChild(item)\n this.showOrHidePlaceholder()\n }\n\n selectTopic(topic) {\n this.valueTarget.focus()\n\n const option = this.findOption(topic);\n\n if (option.selected) return\n option.selected = true\n\n this.addTopic(topic)\n }\n\n findOption(topic) {\n return this.inputTarget.querySelector(`option[value=\"${topic.id}\"]`);\n }\n\n deselectTopic(topic, item) {\n item.remove()\n this.findOption(topic).selected = false\n this.valueTarget.focus()\n this.showOrHidePlaceholder()\n }\n\n showOrHidePlaceholder() {\n if (this.valueTarget.querySelector('.badge')) {\n this.placeholderTarget.classList.add('hidden')\n } else {\n this.placeholderTarget.classList.remove('hidden')\n }\n }\n}\n","import \"@hotwired/turbo-rails\"\n\nrequire('../bootStimulus');\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","application","Application","start","context","require","load","definitionsFromContext","debug","window","Stimulus","Controller","static","connect","this","selectColor","find","inputTarget","value","select","event","deselectColor","selectedColor","target","hasColorsPreviewOutlet","colorsPreviewOutlet","update","selector","element","querySelector","colorTargets","color","classList","contains","selectedClass","add","selectedClasses","dataset","remove","String","colorsOutletConnected","colorValueChanged","newColor","oldColor","className","colorValue","colorsOutlet","useClickOutside","useTransition","listTarget","ariaHide","clickOutside","leave","toggle","toggleTransition","enter","ariaShow","buttonTarget","ariaExpanded","ariaHidden","Button","active","children","enabled","left","onClick","right","classNames","cn","React","disabled","type","defaultProps","propTypes","PropTypes","bool","func","isRequired","BlockquoteButton","props","toggleBlockquote","useCommands","useActive","blockquote","useCallback","_extends","HeadingButton","toggleHeading","options","level","heading","BoldButton","toggleBold","bold","ItalicButton","toggleItalic","italic","HorizontalRuleButton","insertHorizontalRule","EditorMenu","role","uploadHandler","progressContainer","fileInput","previewPath","files","file","progress","uploader","constructor","input","directUploadUrl","directUpload","DirectUpload","container","bar","document","createElement","inner","style","appendChild","failed","loaded","current","total","percent","upload","callback","create","error","blob","directUploadWillStoreFileWithXHR","request","addEventListener","Promise","filename","fileName","signed_id","signedID","src","replace","OnChangeText","onChange","useDocChanged","state","text","doc","textBetween","content","size","leaf","name","title","attrs","length","Editor","forwardRef","field","onChangeData","onChangeHTML","onChangeText","ref","getContext","manager","useRemirror","extensions","BlockquoteExtension","BoldExtension","DropCursorExtension","HardBreakExtension","HeadingExtension","HorizontalRuleExtension","ImageExtension","enableResizing","extraAttributes","default","parseDOM","dom","dataSet","toDOM","ItalicExtension","LinkExtension","autoLink","PlaceholderExtension","placeholder","useEffect","focus","Remirror","initialContent","EditorComponent","OnChangeHTML","OnChangeJSON","data","root","createRoot","editorTarget","render","dataValue","fileTarget","progressTarget","previewPathValue","disconnect","unmount","Event","dispatchEvent","preventDefault","updateImageReferences","dataTarget","JSON","stringify","html","htmlTarget","textTarget","removeImageReferences","forEachImage","addImageReference","setAttribute","form","querySelectorAll","forEach","object","child","loading","Boolean","subscriptionPath","subscribed","useMeta","subscribedValue","subscribedIconTarget","unsubscribedIconTarget","loadingValue","updateMembership","then","_error","loadingTarget","failedTarget","loadingValueChanged","subscribedValueChanged","fetch","subscriptionPathValue","method","headers","csrfTokenMeta","json","isOpen","addTopicsToList","valueTarget","isOpenValue","relatedTarget","isOpenValueChanged","previousValue","undefined","getElementsByTagName","Array","from","topicFromOption","filter","topic","item","buildTopic","selectTopic","selected","addTopic","option","innerText","tabindex","stopPropagation","deselectTopic","showOrHidePlaceholder","findOption","placeholderTarget"],"sourceRoot":""}