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K,KAAK,KAAK,OAAO,WAAa,OAAO9B,EAAoB,MAAQ,IACvI+O,EAAsB/O,EAAoBuM,EAAEwC,E","sources":["webpack://decidim_parma/webpack/runtime/chunk loaded","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/images/ sync ^\\.\\/.*$","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/forms/autosave.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/editors/editor.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/awesome_application.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/entrypoints/decidim_decidim_awesome.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/proposals/images.js","webpack://decidim_parma/../../../../home/kapusons/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/decidim-decidim_awesome-0.10.3/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js","webpack://decidim_parma/webpack/bootstrap","webpack://decidim_parma/webpack/runtime/compat get default export","webpack://decidim_parma/webpack/runtime/define property getters","webpack://decidim_parma/webpack/runtime/hasOwnProperty shorthand","webpack://decidim_parma/webpack/runtime/node module decorator","webpack://decidim_parma/webpack/runtime/publicPath","webpack://decidim_parma/webpack/runtime/jsonp chunk loading","webpack://decidim_parma/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/handcard.svg\": 54604,\n\t\"./decidim/decidim_awesome/handcheck.svg\": 82632,\n\t\"./decidim/decidim_awesome/pokecode-logo.png\": 22292\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 = 72148;","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 = $(`
${msg}
`).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 = $(`

${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\") && quill.root.querySelectorAll(allowedEmptyContentSelector).length === 0) {\n $input.val(\"\");\n } else {\n const emptyParagraph = \"


\";\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(`

${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 = $('