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webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/src/decidim/decidim_awesome/forms/autosave.js","webpack://app/../usr/local/bundle/gems/decidim-core-0.27.4/app/packs/src/decidim/editor/linebreak_module.js","webpack://app/./app/packs/src/decidim/decidim_awesome/editors/editor.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/src/decidim/decidim_awesome/awesome_application.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/entrypoints/decidim_decidim_awesome.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/src/decidim/decidim_awesome/proposals/images.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js","webpack://app/../usr/local/bundle/bundler/gems/decidim-module-decidim_awesome-b9aae42bc835/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/global","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 */\n\nimport addEnterBindings from \"src/decidim/editor/modified_enter\"\nimport backspaceBindingsRangeAny from \"src/decidim/editor/modified_backspace_offset_any\"\nimport backspaceBindings from \"src/decidim/editor/modified_backspace_offset1\"\nimport HistoryOverride from \"src/decidim/editor/history_override\"\n\n// Disable warning messages from overwritting modules\nQuill.debug(\"error\");\n\n// It all started with these snippets of code: https://github.com/quilljs/quill/issues/252\nconst Delta = Quill.import(\"delta\");\nconst Break = Quill.import(\"blots/break\");\nconst Embed = Quill.import(\"blots/embed\");\nconst Scroll = Quill.import(\"blots/scroll\");\nconst Parchment = Quill.import(\"parchment\");\nQuill.register({\"modules/history\": HistoryOverride}, true);\nlet icons = Quill.import(\"ui/icons\");\nicons.linebreak = \"⏎\";\n\nclass SmartBreak extends Break {\n  length() {\n    return 1;\n  }\n\n  value() {\n    return \"\\n\";\n  }\n\n  insertInto(parent, ref) {\n    // Embed.prototype.insertInto.call(this, parent, ref);\n    Reflect.apply(Embed.prototype.insertInto, this, [parent, ref]);\n  }\n}\nQuill.register(SmartBreak);\n\n// Override quill/blots/scroll.js\nclass ScrollOvderride extends Scroll {\n  optimize(mutations = [], context = {}) {\n    if (this.batch === true) {\n      return;\n    }\n\n    this.parchmentOptimize(mutations, context);\n\n    if (mutations.length > 0) {\n      // quill/core/emitter.js, Emitter.events.SCROLL_OPTIMIZE = \"scroll-optimize\"\n      this.emitter.emit(\"scroll-optimize\", mutations, context);\n    }\n  }\n\n  // Override parchment/src/blot/scroll.ts\n  parchmentOptimize(mutations = [], context = {}) {\n    // super.optimize(context);\n    Reflect.apply(Parchment.Container.prototype.optimize, this, [context]);\n\n    // We must modify mutations directly, cannot make copy and then modify\n    // let records = [].slice.call(this.observer.takeRecords());\n    let records = [...this.observer.takeRecords()];\n    // Array.push currently seems to be implemented by a non-tail recursive function\n    // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());\n    while (records.length > 0) {\n      mutations.push(records.pop());\n    }\n    let mark = (blot, markParent) => {\n      if (!blot || blot === this) {\n        return;\n      }\n      if (!blot.domNode.parentNode) {\n        return;\n      }\n      if (blot.domNode.__blot && blot.domNode.__blot.mutations === null) {\n        blot.domNode.__blot.mutations = [];\n      }\n      if (markParent) {\n        mark(blot.parent);\n      }\n    };\n    let optimize = (blot) => {\n      // Post-order traversal\n      if (!blot.domNode.__blot) {\n        return;\n      }\n\n      if (blot instanceof Parchment.Container) {\n        blot.children.forEach(optimize);\n      }\n      blot.optimize(context);\n    };\n    let remaining = mutations;\n    for (let ind = 0; remaining.length > 0; ind += 1) {\n      // MAX_OPTIMIZE_ITERATIONS = 100\n      if (ind >= 100) {\n        throw new Error(\"[Parchment] Maximum optimize iterations reached\");\n      }\n      remaining.forEach((mutation) => {\n        let blot = Parchment.find(mutation.target, true);\n        if (!blot) {\n          return;\n        }\n        if (blot.domNode === mutation.target) {\n          if (mutation.type === \"childList\") {\n            mark(Parchment.find(mutation.previousSibling, false));\n\n            mutation.addedNodes.forEach((node) => {\n              let child = Parchment.find(node, false);\n              mark(child, false);\n              if (child instanceof Parchment.Container) {\n                child.children.forEach(function(grandChild) {\n                  mark(grandChild, false);\n                });\n              }\n            });\n          } else if (mutation.type === \"attributes\") {\n            mark(blot.prev);\n          }\n        }\n        mark(blot);\n      });\n      this.children.forEach(optimize);\n      remaining = [...this.observer.takeRecords()];\n      records = remaining.slice();\n      while (records.length > 0) {\n        mutations.push(records.pop());\n      }\n    }\n  }\n};\nQuill.register(\"blots/scroll\", ScrollOvderride, true);\nParchment.register(ScrollOvderride);\n\nexport default function lineBreakButtonHandler(quill) {\n  let range = quill.selection.getRange()[0];\n  let currentLeaf = quill.getLeaf(range.index)[0];\n  let nextLeaf = quill.getLeaf(range.index + 1)[0];\n  const previousChar = quill.getText(range.index - 1, 1);\n\n  // Insert a second break if:\n  // At the end of the editor, OR next leaf has a different parent (<p>)\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\"\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().match(/img/)) {\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\": 18426,\n\t\"./decidim/decidim_awesome/handcheck.svg\": 11807,\n\t\"./decidim/decidim_awesome/pokecode-logo.png\": 39614\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 = 9713;","// 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__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\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,4237,2952,7353,8146], function() { return __webpack_require__(89570); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","$","window","DecidimAwesome","auto_save_forms","questionnaireId","current_questionnaire","storeId","storeCheckboxesId","$form","length","store","FormStorage","attr","name","ignores","showMsg","msg","error","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","Quill","debug","Delta","Break","Embed","Scroll","Parchment","register","HistoryOverride","linebreak","icons","SmartBreak","parent","ref","Reflect","prototype","insertInto","this","ScrollOvderride","mutations","context","batch","parchmentOptimize","emitter","emit","Container","optimize","records","observer","takeRecords","push","pop","mark","blot","markParent","_this","domNode","parentNode","__blot","children","forEach","remaining","ind","Error","mutation","target","type","previousSibling","addedNodes","node","child","grandChild","prev","slice","lineBreakButtonHandler","quill","range","selection","getRange","currentLeaf","getLeaf","nextLeaf","previousChar","getText","insertEmbed","delta","retain","insert","updateContents","sources","USER","setSelection","SILENT","getModule","addHandler","getLength","deleteText","addEnterBindings","backspaceBindingsRangeAny","backspaceBindings","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","breaks","value","createMarkdownEditor","toolbar","data","disabled","quillToolbar","list","addImage","header","modules","handlers","innerHTML","imageResize","imageUpload","url","method","withCredentials","headers","callbackOK","serverResponse","last","callbackKO","serverError","body","message","$p","after","destroy","checkBeforeSend","file","addClass","formats","theme","disable","event","CustomEvent","detail","getSelection","dispatchEvent","root","querySelectorAll","emptyParagraph","cleanHTML","replace","RegExp","createQuillEditor","require","$modal","foundation","preventDefault","stopPropagation","$textarea","allow_images_in_proposals","inlineattachment","progressText","urlText","$card","$check","storage","isChecked","show","click","currentTarget","classList","outerHTML","textContent","contains","title","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","code","keys","Object","resolve","module","exports","__webpack_module_cache__","moduleId","cachedModule","undefined","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","g","globalThis","Function","obj","hasOwnProperty","nmd","paths","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}