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OAAO,WAAa,OAAOuK,EAAoB,MAAQ,IACrIyD,EAAsBzD,EAAoBiB,EAAEwC,E","sources":["webpack://app/webpack/runtime/chunk loaded","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/forms/autosave.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/editors/editor.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/awesome_application.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/entrypoints/decidim_decidim_awesome.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/proposals/images.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-56e686f21756/app/packs/images/ sync ^\\.\\/.*$","webpack://app/webpack/bootstrap","webpack://app/webpack/runtime/compat get default export","webpack://app/webpack/runtime/define property getters","webpack://app/webpack/runtime/hasOwnProperty shorthand","webpack://app/webpack/runtime/node module decorator","webpack://app/webpack/runtime/publicPath","webpack://app/webpack/runtime/jsonp chunk loading","webpack://app/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import FormStorage from \"form-storage\"\n\n$(() => {\n window.DecidimAwesome = window.DecidimAwesome || {};\n if (!window.DecidimAwesome.auto_save_forms) {\n return;\n }\n\n const questionnaireId = window.DecidimAwesome.current_questionnaire;\n if (!questionnaireId) {\n // console.log(\"Not a questionnaire page\")\n return;\n }\n\n const storeId = `awesome_autosave:${questionnaireId}`;\n const storeCheckboxesId = `awesome_autosave:checkboxes:${questionnaireId}`;\n const $form = $(\"form.answer-questionnaire\");\n\n if (!$form.length) {\n if (window.DecidimAwesome.questionnaire_answered) {\n // console.log(\"Questionnaire already answered, remove any data saved\");\n window.localStorage.removeItem(storeId);\n window.localStorage.removeItem(storeCheckboxesId);\n }\n // console.log(\"No forms here\");\n return;\n }\n\n const store = new FormStorage(`#${$form.attr(\"id\")}`, {\n name: storeId,\n ignores: [\n // '[type=\"hidden\"]',\n '[name=\"utf8\"]',\n '[name=\"authenticity_token\"]',\n \"[disabled]\",\n // there are problems with matrix questions\n '[type=\"checkbox\"]' \n ]\n });\n\n const showMsg = (msg, error = false, defaultTime = 700) => {\n const time = error ? 5000 : defaultTime; // eslint-disable-line no-ternary, multiline-ternary\n const $div = $(`<div class=\"awesome_autosave-notice${error ? \" error\" : \"\"}\">${msg}</div>`).appendTo($form); // eslint-disable-line no-ternary, multiline-ternary\n setTimeout(() => {\n $div.fadeOut(500, () => {\n $div.remove();\n });\n }, time);\n };\n\n if (!window.localStorage) {\n showMsg(window.DecidimAwesome.texts.autosaved_error, true);\n return;\n }\n\n if (window.localStorage.getItem(storeId)) {\n showMsg(window.DecidimAwesome.texts.autosaved_retrieved, false, 5000);\n }\n\n // restore if available\n store.apply(); // eslint-disable-line prefer-reflect\n // restore checkboxes\n try {\n let checkboxes = JSON.parse(window.localStorage.getItem(storeCheckboxesId));\n for (let id in checkboxes) { // eslint-disable-line guard-for-in\n $(`#${id}`).prop(\"checked\", checkboxes[id]);\n }\n } catch (evt) {\n console.log(\"No checkboxes found\");\n }\n // this trigger the \"change\" event, it seems that it is too much\n // $form.find('input, textarea, select').change();\n\n const save = () => {\n store.save();\n // save checkbox manually\n let checkboxes = {};\n $form.find('input[type=\"checkbox\"]').each((index, el) => {\n checkboxes[el.id] = el.checked;\n });\n window.localStorage.setItem(storeCheckboxesId, JSON.stringify(checkboxes));\n showMsg(window.DecidimAwesome.texts.autosaved_success);\n };\n\n // save changes when modifications\n $form.find(\"input, textarea, select\").on(\"change\", () => {\n save();\n });\n});\n","/* eslint-disable require-jsdoc, func-style */\n\n/*\n* Since version 0.25 we follow a different strategy and opt to destroy and override completely the original editor\n* That's because editors are instantiated directly instead of creating a global function to instantiate them\n*/\n\nimport lineBreakButtonHandler from \"src/decidim/editor/linebreak_module\"\nimport InscrybMDE from \"inscrybmde\"\nimport Europa from \"europa\"\nimport \"inline-attachment/src/inline-attachment\";\nimport \"inline-attachment/src/codemirror-4.inline-attachment\";\nimport \"inline-attachment/src/jquery.inline-attachment\";\nimport hljs from \"highlight.js\";\nimport \"highlight.js/styles/github.css\";\nimport \"src/decidim/editor/clipboard_override\"\nimport \"src/decidim/vendor/image-resize.min\"\nimport \"src/decidim/vendor/image-upload.min\"\nimport { marked } from \"marked\";\n\nconst DecidimAwesome = window.DecidimAwesome || {};\nconst quillFormats = [\"bold\", \"italic\", \"link\", \"underline\", \"header\", \"list\", \"video\", \"image\", \"alt\", \"break\", \"width\", \"style\", \"code\", \"blockquote\", \"indent\"];\n\n// A tricky way to destroy the quill editor\nexport function destroyQuillEditor(container) {\n if (container) {\n const content = $(container).find(\".ql-editor\").html();\n $(container).html(content);\n $(container).siblings(\".ql-toolbar\").remove();\n $(container).find(\"*[class*='ql-']\").removeClass((index, className) => (className.match(/(^|\\s)ql-\\S+/g) || []).join(\" \"));\n $(container).removeClass((index, className) => (className.match(/(^|\\s)ql-\\S+/g) || []).join(\" \"));\n if ($(container).next().is(\"p.help-text\")) {\n $(container).next().remove();\n }\n }\n else {\n console.error(`editor [${container}] not exists`);\n }\n}\n\nexport function createQuillEditor(container) {\n const toolbar = $(container).data(\"toolbar\");\n const disabled = $(container).data(\"disabled\");\n const allowedEmptyContentSelector = \"iframe,img\";\n\n let quillToolbar = [\n [\"bold\", \"italic\", \"underline\", \"linebreak\"],\n [{ list: \"ordered\" }, { list: \"bullet\" }],\n [\"link\", \"clean\"],\n [\"code\", \"blockquote\"],\n [{ \"indent\": \"-1\"}, { \"indent\": \"+1\" }]\n ];\n\n let addImage = false;\n\n if (toolbar === \"full\") {\n quillToolbar = [\n [{ header: [2, 3, 4, 5, 6, false] }],\n ...quillToolbar\n ];\n if (DecidimAwesome.allow_images_in_full_editor) {\n quillToolbar.push([\"video\", \"image\"]);\n addImage = true;\n } else {\n quillToolbar.push([\"video\"]);\n }\n } else if (toolbar === \"basic\") {\n if (DecidimAwesome.allow_images_in_small_editor) {\n quillToolbar.push([\"video\", \"image\"]);\n addImage = true;\n } else {\n quillToolbar.push([\"video\"]);\n }\n } else if (DecidimAwesome.allow_images_in_small_editor) {\n quillToolbar.push([\"image\"]);\n addImage = true;\n }\n\n let modules = {\n linebreak: {},\n toolbar: {\n container: quillToolbar,\n handlers: {\n \"linebreak\": lineBreakButtonHandler\n }\n }\n };\n\n const $input = $(container).siblings('input[type=\"hidden\"]');\n container.innerHTML = $input.val() || \"\";\n const token = $('meta[name=\"csrf-token\"]').attr(\"content\");\n if (addImage) {\n modules.imageResize = {\n modules: [\"Resize\", \"DisplaySize\"]\n }\n modules.imageUpload = {\n url: DecidimAwesome.editor_uploader_path,\n method: \"POST\",\n name: \"image\",\n withCredentials: false,\n headers: { \"X-CSRF-Token\": token },\n callbackOK: (serverResponse, next) => {\n $(\"div.ql-toolbar\").last().removeClass(\"editor-loading\")\n next(serverResponse.url);\n },\n callbackKO: (serverError) => {\n $(\"div.ql-toolbar\").last().removeClass(\"editor-loading\")\n let msg = serverError && serverError.body;\n try {\n msg = JSON.parse(msg).message;\n } catch (evt) { console.error(\"Parsing error\", evt); }\n console.error(`Image upload error: ${msg}`);\n let $p = $(`<p class=\"text-alert help-text\">${msg}</p>`);\n $(container).after($p)\n setTimeout(() => {\n $p.fadeOut(1000, () => {\n $p.destroy();\n });\n }, 3000);\n },\n checkBeforeSend: (file, next) => {\n $(\"div.ql-toolbar\").last().addClass(\"editor-loading\")\n next(file);\n }\n }\n }\n const quill = new Quill(container, {\n modules: modules,\n formats: quillFormats,\n theme: \"snow\"\n });\n\n if (disabled) {\n quill.disable();\n }\n\n quill.on(\"text-change\", () => {\n const text = quill.getText();\n\n // Triggers CustomEvent with the cursor position\n // It is required in input_mentions.js\n let event = new CustomEvent(\"quill-position\", {\n detail: quill.getSelection()\n });\n container.dispatchEvent(event);\n\n if ((text === \"\\n\" || text === \"\\n\\n\") && quill.root.querySelectorAll(allowedEmptyContentSelector).length === 0) {\n $input.val(\"\");\n } else {\n const emptyParagraph = \"<p><br></p>\";\n const cleanHTML = quill.root.innerHTML.replace(\n new RegExp(`^${emptyParagraph}|${emptyParagraph}$`, \"g\"),\n \"\"\n );\n $input.val(cleanHTML);\n }\n });\n // After editor is ready, linebreak_module deletes two extraneous new lines\n quill.emitter.emit(\"editor-ready\");\n\n if (addImage) {\n const text = $(container).data(\"dragAndDropHelpText\") || DecidimAwesome.texts.drag_and_drop_image;\n $(container).after(`<p class=\"help-text\" style=\"margin-top:-1.5rem;\">${text}</p>`);\n }\n\n // After editor is ready, linebreak_module deletes two extraneous new lines\n quill.emitter.emit(\"editor-ready\");\n\n return quill;\n}\n\nexport function createMarkdownEditor(container) {\n const text = DecidimAwesome.texts.drag_and_drop_image;\n const token = $('meta[name=\"csrf-token\"]').attr(\"content\");\n const $input = $(container).siblings('input[type=\"hidden\"]');\n const $faker = $('<textarea name=\"faker-inscrybmde\"/>');\n const $form = $(container).closest(\"form\");\n const europa = new Europa();\n $faker.val(europa.convert($input.val()));\n $faker.insertBefore($(container));\n $(container).hide();\n const inscrybmde = new InscrybMDE({\n element: $faker[0],\n spellChecker: false,\n renderingConfig: {\n codeSyntaxHighlighting: true,\n hljs: hljs\n }\n });\n $faker[0].InscrybMDE = inscrybmde;\n\n // Allow image upload\n if (DecidimAwesome.allow_images_in_markdown_editor) {\n $(inscrybmde.gui.statusbar).prepend(`<span class=\"help-text\" style=\"float:left;margin:0;text-align:left;\">${text}</span>`);\n window.inlineAttachment.editors.codemirror4.attach(inscrybmde.codemirror, {\n uploadUrl: DecidimAwesome.editor_uploader_path,\n uploadFieldName: \"image\",\n jsonFieldName: \"url\",\n extraHeaders: { \"X-CSRF-Token\": token }\n });\n }\n\n // Allow linebreaks\n marked.setOptions({\n breaks: true\n });\n\n // convert to html on submit\n $form.on(\"submit\", () => {\n // e.preventDefault();\n $input.val(marked(inscrybmde.value()));\n });\n}\n","import \"src/decidim/decidim_awesome/proposals/images\"\nimport \"src/decidim/decidim_awesome/forms/autosave\"\nimport \"src/decidim/decidim_awesome/voting/voting_cards\"\nimport \"src/decidim/decidim_awesome/amendments/show_modal_on_limits\"\nimport {destroyQuillEditor, createQuillEditor, createMarkdownEditor} from \"src/decidim/decidim_awesome/editors/editor\"\n\n$(() => {\n // rebuild editors\n if (window.DecidimAwesome.allow_images_in_full_editor || window.DecidimAwesome.allow_images_in_small_editor || window.DecidimAwesome.use_markdown_editor) {\n $(\".editor-container\").each((_idx, container) => {\n destroyQuillEditor(container);\n if (window.DecidimAwesome.use_markdown_editor) {\n createMarkdownEditor(container);\n } else {\n createQuillEditor(container);\n }\n });\n }\n});\n","import \"src/decidim/decidim_awesome/awesome_application.js\"\n\n// Images\nrequire.context(\"../images\", true)\n\n// CSS\nimport \"entrypoints/decidim_decidim_awesome.scss\";\n\n\n","$(() => {\n const $modal = $(\"#LimitAmendmentsModal\");\n if ($modal.length === 0 || $(\".sign-out-link\").length === 0) {\n return;\n }\n\n const showModal = () => {\n if ($modal.is(\":visible\")) {\n return false;\n }\n\n if ($modal.data(\"limitAmendments\")) {\n return true;\n }\n\n return false;\n };\n\n $modal.find(\"a\").on(\"click\", () => {\n $modal.foundation(\"close\");\n });\n\n $(\".card__amend-button\").on(\"click\", \".amend_button_card_cell\", (evt) => {\n if (showModal()) {\n evt.preventDefault();\n evt.stopPropagation();\n $modal.foundation(\"open\");\n }\n });\n});\n","$(() => {\n window.DecidimAwesome = window.DecidimAwesome || {};\n\n const token = $('meta[name=\"csrf-token\"]').attr(\"content\");\n const $textarea = $(\"textarea#proposal_body\");\n const text = window.DecidimAwesome.texts.drag_and_drop_image;\n\n if (!$textarea.length) {\n return;\n }\n\n if (window.DecidimAwesome.allow_images_in_proposals) {\n // Add the capability to upload images only (they will be presented as links)\n\n $textarea.after(`<p class=\"help-text\">${text}</p>`);\n $textarea.inlineattachment({\n uploadUrl: window.DecidimAwesome.editor_uploader_path,\n uploadFieldName: \"image\",\n jsonFieldName: \"url\",\n progressText: \"[Uploading file...]\",\n urlText: \"{filename}\",\n extraHeaders: { \"X-CSRF-Token\": token }\n });\n }\n});\n","$(() => {\n if ($(\".voting-voting_cards\").length === 0 || $(\"#VotingCardsModalHelp\").length === 0 || $(\".sign-out-link\").length === 0) {\n return;\n }\n\n const $modal = $(\"#VotingCardsModalHelp\");\n const $card = $modal.find(\".current-choice .vote-card\");\n const $check = $(\"#voting_cards-skip_help\");\n\n const storage = () => {\n return JSON.parse(localStorage.getItem(\"hideTreeFlagsModalHelp\") || \"{}\")\n };\n\n const isChecked = () => {\n return storage()[$check.val()];\n };\n\n const saveState = (val) => {\n const show = storage();\n show[$check.val()] = val;\n localStorage.setItem(\"hideTreeFlagsModalHelp\", JSON.stringify(show))\n };\n\n const showModal = () => {\n if (isChecked()) {\n return false;\n }\n if ($modal.is(\":visible\")) {\n return false;\n }\n return true;\n };\n\n $check.on(\"change\", () => {\n saveState($check.is(\":checked\"))\n });\n\n $modal.find(\".vote-action\").on(\"click\", () => {\n $modal.data(\"action\").click();\n $modal.foundation(\"close\");\n });\n\n $(\".button--vote-button .voting-voting_cards\").on(\"click\", \".vote-action\", (evt) => {\n if (showModal()) {\n evt.stopPropagation();\n evt.preventDefault();\n $check.prop(\"checked\", isChecked());\n $modal.data(\"action\", evt.currentTarget);\n $card[0].classList = evt.currentTarget.classList;\n if (evt.currentTarget.children.length > 1) {\n $card.html(`${evt.currentTarget.children[1].outerHTML}<p class=\"vote-label\">${evt.currentTarget.children[1].children[0].textContent}</p>`);\n } else if ($card[0].classList.contains(\"button\")) {\n $card[0].classList.remove(\"button\");\n $card.html(`<p class=\"vote-label\">${evt.currentTarget.title}</p>`);\n } else {\n $card.html(`<p class=\"vote-label\">${evt.currentTarget.textContent}</p>`);\n }\n $modal.foundation(\"open\");\n } else {\n $(evt.currentTarget).closest(\".voting-voting_cards\").addClass(\"loading\");\n }\n });\n});\n","var map = {\n\t\"./decidim/decidim_awesome/handcard.svg\": 51162,\n\t\"./decidim/decidim_awesome/handcheck.svg\": 79909,\n\t\"./decidim/decidim_awesome/pokecode-logo.png\": 33215\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 = 6987;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/decidim-packs/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t9068: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkapp\"] = self[\"webpackChunkapp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [2415,292,596,7353,1909], function() { return __webpack_require__(70603); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","$","window","DecidimAwesome","auto_save_forms","questionnaireId","current_questionnaire","storeId","concat","storeCheckboxesId","$form","length","store","FormStorage","attr","name","ignores","showMsg","msg","error","arguments","undefined","time","$div","appendTo","setTimeout","fadeOut","remove","localStorage","getItem","texts","autosaved_retrieved","apply","checkboxes","JSON","parse","id","prop","evt","console","log","find","on","save","each","index","el","checked","setItem","stringify","autosaved_success","autosaved_error","questionnaire_answered","removeItem","quillFormats","allow_images_in_full_editor","allow_images_in_small_editor","use_markdown_editor","_idx","container","content","html","siblings","removeClass","className","match","join","next","is","destroyQuillEditor","text","drag_and_drop_image","token","$input","$faker","closest","europa","Europa","val","convert","insertBefore","hide","inscrybmde","InscrybMDE","element","spellChecker","renderingConfig","codeSyntaxHighlighting","hljs","allow_images_in_markdown_editor","gui","statusbar","prepend","inlineAttachment","editors","codemirror4","attach","codemirror","uploadUrl","editor_uploader_path","uploadFieldName","jsonFieldName","extraHeaders","marked","setOptions","breaks","value","createMarkdownEditor","toolbar","data","disabled","quillToolbar","list","addImage","header","_toConsumableArray","push","modules","linebreak","handlers","lineBreakButtonHandler","innerHTML","imageResize","imageUpload","url","method","withCredentials","headers","callbackOK","serverResponse","last","callbackKO","serverError","body","message","$p","after","destroy","checkBeforeSend","file","addClass","quill","Quill","formats","theme","disable","getText","event","CustomEvent","detail","getSelection","dispatchEvent","root","querySelectorAll","emptyParagraph","cleanHTML","replace","RegExp","emitter","emit","createQuillEditor","require","$modal","foundation","preventDefault","stopPropagation","$textarea","allow_images_in_proposals","inlineattachment","progressText","urlText","$card","$check","storage","isChecked","show","click","currentTarget","classList","children","outerHTML","textContent","contains","title","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","key","splice","r","n","getter","__esModule","d","a","definition","defineProperty","enumerable","get","obj","prototype","hasOwnProperty","nmd","paths","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}