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gBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOvR,EAAoBuP,EAAEC,EAC9B,EAEIqC,EAAqBC,KAAsC,gCAAIA,KAAsC,iCAAK,GAC9GD,EAAmB3L,QAAQsL,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBrM,KAAOgM,EAAqBO,KAAK,KAAMF,EAAmBrM,KAAKuM,KAAKF,G,IC/CvF,IAAIG,EAAsBhS,EAAoBuP,OAAEL,EAAW,CAAC,KAAK,KAAK,KAAK,KAAK,OAAO,WAAa,OAAOlP,EAAoB,MAAQ,IACvIgS,EAAsBhS,EAAoBuP,EAAEyC,E","sources":["webpack://decidim-application/webpack/runtime/chunk loaded","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/images/ sync ^\\.\\/.*$","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/src/decidim/decidim_awesome/forms/autosave.js","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-2f3c73fe30cf/decidim-core/app/packs/src/decidim/editor/linebreak_module.js","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/src/decidim/decidim_awesome/editors/editor.js","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/src/decidim/decidim_awesome/awesome_application.js","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/entrypoints/decidim_decidim_awesome.js","webpack://decidim-application/../layers/heroku_ruby/gems/ruby/3.0.0/bundler/gems/decidim-module-decidim_awesome-df40b3691a64/app/packs/src/decidim/decidim_awesome/proposals/images.js","webpack://decidim-application/webpack/bootstrap","webpack://decidim-application/webpack/runtime/compat get default export","webpack://decidim-application/webpack/runtime/define property getters","webpack://decidim-application/webpack/runtime/global","webpack://decidim-application/webpack/runtime/hasOwnProperty shorthand","webpack://decidim-application/webpack/runtime/node module decorator","webpack://decidim-application/webpack/runtime/publicPath","webpack://decidim-application/webpack/runtime/jsonp chunk loading","webpack://decidim-application/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};","var map = {\n\t\"./decidim/decidim_awesome/pokecode-logo.png\": 37599\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 = 13734;","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 = $(`
)\n if (nextLeaf === null || (currentLeaf.parent !== nextLeaf.parent)) {\n quill.insertEmbed(range.index, \"break\", true, \"user\");\n quill.insertEmbed(range.index, \"break\", true, \"user\");\n } else if (previousChar === \"\\n\") {\n const delta = new Delta().retain(range.index).insert(\"\\n\");\n quill.updateContents(delta, Quill.sources.USER);\n } else {\n quill.insertEmbed(range.index, \"break\", true, \"user\");\n }\n\n // Now that we've inserted a line break, move the cursor forward\n quill.setSelection(range.index + 1, Quill.sources.SILENT);\n}\n\nQuill.register(\"modules/linebreak\", (quill) => {\n quill.getModule(\"toolbar\").addHandler(\"linebreak\", () => {\n lineBreakButtonHandler(quill);\n });\n\n quill.emitter.on(\"editor-ready\", () => {\n const length = quill.getLength();\n const text = quill.getText(length - 2, 2);\n\n // Remove extraneous new lines\n if (text === \"\\n\\n\") {\n quill.deleteText(quill.getLength() - 2, 2);\n }\n });\n\n addEnterBindings(quill);\n backspaceBindingsRangeAny(quill);\n backspaceBindings(quill);\n\n return;\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\"\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\";\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 = $(`
${msg}
`);\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\") {\n $input.val(\"\");\n } else {\n $input.val(quill.root.innerHTML);\n }\n if ((text === \"\\n\" || text === \"\\n\\n\") && quill.root.querySelectorAll(allowedEmptyContentSelector).length === 0) {\n $input.val(\"\");\n } else {\n const emptyParagraph = \"${text}
`);\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 = $('