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ASnN,EAAA0M,cAAAA,KAAAA,EAAAA,CAAAA,QAAAA,oBAAAA,iBA1BpGvE,EAAA,2EAAAjD,EAAAA,EAAAA,IAAA,oBAAAzD,EAAAA,EAAAA,OA8Be1B,EAAAqL,0BAAuB,WAApCpG,EAAAA,EAAAA,IAIQoI,EAAA,CAlCV9Q,IAAA,EA8BwC4G,KAAK,YAC9B,mBAAe6E,EAAAA,EAAAA,KACxB,IAAoD,EAhC1DtG,EAAAA,EAAAA,KAAAC,EAAAA,EAAAA,IAgCS9B,EAAAuD,KAAKlB,EAAE,yCAAD,MAhCfkG,EAAA,MAAAjD,EAAAA,EAAAA,IAAA,e","sources":["webpack://agra/./node_modules/@hcaptcha/vue3-hcaptcha/dist/hcaptcha-vue3.es.js","webpack://agra/./node_modules/form-request-submit-polyfill/form-request-submit-polyfill.js","webpack://agra/./node_modules/vue-loader/dist/exportHelper.js","webpack://agra/./app/javascript/components/alert.vue","webpack://agra/./app/javascript/components/alert.vue?be3d","webpack://agra/./app/javascript/components/buttons/link-button.vue","webpack://agra/./app/javascript/components/buttons/link-button.vue?a3b9","webpack://agra/./app/javascript/components/buttons/primary-button.vue","webpack://agra/./app/javascript/components/buttons/primary-button.vue?ee67","webpack://agra/./app/javascript/components/buttons/submit-button.vue","webpack://agra/./app/javascript/components/buttons/submit-button.vue?ffe8","webpack://agra/./app/javascript/components/inputs/bot-protection-disclaimer.vue","webpack://agra/./app/javascript/components/inputs/bot-protection-disclaimer.vue?7a0d","webpack://agra/./app/javascript/components/inputs/text-input.vue","webpack://agra/./app/javascript/components/inputs/text-input.vue?e1aa","webpack://agra/./app/javascript/components/inputs/validation-errors.vue","webpack://agra/./app/javascript/components/inputs/validation-errors.vue?c863","webpack://agra/./app/javascript/components/modal-action-form.vue","webpack://agra/./app/javascript/components/modal-action-form.vue?c575","webpack://agra/./app/javascript/components/modal.vue","webpack://agra/./app/javascript/components/modal.vue?daec","webpack://agra/./app/javascript/components/required.vue","webpack://agra/./app/javascript/components/required.vue?43d5","webpack://agra/./app/javascript/components/toast.vue","webpack://agra/./app/javascript/components/toast.vue?dead","webpack://agra/./app/javascript/petition/flag.vue","webpack://agra/./app/javascript/petition/flag.vue?51c0"],"sourcesContent":["import { openBlock, createElementBlock } from \"vue\";\nconst SCRIPT_ID = \"hcaptcha-api-script-id\";\nconst HCAPTCHA_LOAD_FN_NAME = \"_hcaptchaOnLoad\";\nlet resolveFn;\nlet rejectFn;\nconst promise = new Promise((resolve, reject) => {\n resolveFn = resolve;\n rejectFn = reject;\n});\nfunction loadApiEndpointIfNotAlready(config) {\n if (window.hcaptcha) {\n resolveFn();\n return promise;\n }\n if (document.getElementById(SCRIPT_ID)) {\n return promise;\n }\n window[HCAPTCHA_LOAD_FN_NAME] = resolveFn;\n const scriptSrc = getScriptSrc(config);\n const script = document.createElement(\"script\");\n script.id = SCRIPT_ID;\n script.src = scriptSrc;\n script.async = true;\n script.defer = true;\n script.onerror = (event) => {\n console.error(\"Failed to load api: \" + scriptSrc, event);\n rejectFn(\"Failed to load api.js\");\n };\n document.head.appendChild(script);\n return promise;\n}\nfunction getScriptSrc(config) {\n let scriptSrc = config.apiEndpoint;\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"render\", \"explicit\");\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"onload\", HCAPTCHA_LOAD_FN_NAME);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"recaptchacompat\", config.reCaptchaCompat === false ? \"off\" : null);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"hl\", config.language);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"sentry\", config.sentry);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"custom\", config.custom);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"endpoint\", config.endpoint);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"assethost\", config.assethost);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"imghost\", config.imghost);\n scriptSrc = addQueryParamIfDefined(scriptSrc, \"reportapi\", config.reportapi);\n return scriptSrc;\n}\nfunction addQueryParamIfDefined(url, queryName, queryValue) {\n if (queryValue !== void 0 && queryValue !== null) {\n const link = url.includes(\"?\") ? \"&\" : \"?\";\n return url + link + queryName + \"=\" + encodeURIComponent(queryValue);\n }\n return url;\n}\nvar _export_sfc = (sfc, props) => {\n for (const [key, val] of props) {\n sfc[key] = val;\n }\n return sfc;\n};\nconst _sfc_main = {\n name: \"VueHcaptcha\",\n props: {\n sitekey: {\n type: String,\n required: true\n },\n theme: {\n type: String,\n default: void 0\n },\n size: {\n type: String,\n default: void 0\n },\n tabindex: {\n type: String,\n default: void 0\n },\n language: {\n type: String,\n default: void 0\n },\n reCaptchaCompat: {\n type: Boolean,\n default: true\n },\n challengeContainer: {\n type: String,\n default: void 0\n },\n rqdata: {\n type: String,\n default: void 0\n },\n sentry: {\n type: Boolean,\n default: true\n },\n custom: {\n type: Boolean,\n default: void 0\n },\n apiEndpoint: {\n type: String,\n default: \"https://hcaptcha.com/1/api.js\"\n },\n endpoint: {\n type: String,\n default: void 0\n },\n reportapi: {\n type: String,\n default: void 0\n },\n assethost: {\n type: String,\n default: void 0\n },\n imghost: {\n type: String,\n default: void 0\n }\n },\n data: () => {\n return {\n widgetId: null,\n hcaptcha: null,\n renderedCb: null\n };\n },\n mounted() {\n return loadApiEndpointIfNotAlready(this.$props).then(this.onApiLoaded).catch(this.onError);\n },\n unmounted() {\n this.teardown();\n },\n destroyed() {\n this.teardown();\n },\n methods: {\n teardown() {\n if (this.widgetId) {\n this.hcaptcha.reset(this.widgetId);\n this.hcaptcha.remove(this.widgetId);\n }\n },\n onApiLoaded() {\n this.hcaptcha = window.hcaptcha;\n const opt = {\n sitekey: this.sitekey,\n theme: this.theme,\n size: this.size,\n tabindex: this.tabindex,\n \"callback\": this.onVerify,\n \"expired-callback\": this.onExpired,\n \"chalexpired-callback\": this.onChallengeExpired,\n \"error-callback\": this.onError,\n \"open-callback\": this.onOpen,\n \"close-callback\": this.onClose\n };\n if (this.challengeContainer) {\n opt[\"challenge-container\"] = this.challengeContainer;\n }\n this.widgetId = this.hcaptcha.render(this.$el, opt);\n if (this.rqdata) {\n this.hcaptcha.setData(this.widgetId, { rqdata: this.rqdata });\n }\n this.onRendered();\n },\n execute() {\n if (this.widgetId) {\n this.hcaptcha.execute(this.widgetId);\n this.onExecuted();\n } else {\n this.renderedCb = () => {\n this.renderedCb = null;\n this.execute();\n };\n }\n },\n executeAsync() {\n if (this.widgetId) {\n this.onExecuted();\n return this.hcaptcha.execute(this.widgetId, { async: true });\n }\n let resolveFn2;\n const promiseFn = new Promise((resolve) => {\n resolveFn2 = resolve;\n });\n this.renderedCb = () => {\n this.renderedCb = null;\n resolveFn2();\n };\n return promiseFn.then(this.executeAsync);\n },\n reset() {\n if (this.widgetId) {\n this.hcaptcha.reset(this.widgetId);\n this.onReset();\n } else {\n this.$emit(\"error\", \"Element is not rendered yet and thus cannot reset it. Wait for `rendered` event to safely call reset.\");\n }\n },\n onRendered() {\n this.$emit(\"rendered\");\n this.renderedCb && this.renderedCb();\n },\n onExecuted() {\n this.$emit(\"executed\");\n },\n onReset() {\n this.$emit(\"reset\");\n },\n onError(e) {\n this.$emit(\"error\", e);\n this.reset();\n },\n onVerify() {\n const token = this.hcaptcha.getResponse(this.widgetId);\n const eKey = this.hcaptcha.getRespKey(this.widgetId);\n this.$emit(\"verify\", token, eKey);\n },\n onExpired() {\n this.$emit(\"expired\");\n },\n onChallengeExpired() {\n this.$emit(\"challengeExpired\");\n },\n onOpen() {\n this.$emit(\"opened\");\n },\n onClose() {\n this.$emit(\"closed\");\n }\n }\n};\nconst _hoisted_1 = { id: \"hcap-script\" };\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", _hoisted_1);\n}\nvar hcaptcha = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\nexport { hcaptcha as default };\n","(function(prototype) {\n if (typeof prototype.requestSubmit == \"function\") return\n\n prototype.requestSubmit = function(submitter) {\n if (submitter) {\n validateSubmitter(submitter, this)\n submitter.click()\n } else {\n submitter = document.createElement(\"input\")\n submitter.type = \"submit\"\n submitter.hidden = true\n this.appendChild(submitter)\n submitter.click()\n this.removeChild(submitter)\n }\n }\n\n function validateSubmitter(submitter, form) {\n submitter instanceof HTMLElement || raise(TypeError, \"parameter 1 is not of type 'HTMLElement'\")\n submitter.type == \"submit\" || raise(TypeError, \"The specified element is not a submit button\")\n submitter.form == form || raise(DOMException, \"The specified element is not owned by this form element\", \"NotFoundError\")\n }\n\n function raise(errorConstructor, message, name) {\n throw new errorConstructor(\"Failed to execute 'requestSubmit' on 'HTMLFormElement': \" + message + \".\", name)\n }\n})(HTMLFormElement.prototype);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","<template>\n <div class=\"alert\" :class=\"{[`alert-${alertClass}`]: true}\">\n <slot>\n {{ message }}\n </slot>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n alertClass: {\n type: String,\n required: false,\n default: 'danger'\n },\n message: {\n type: String,\n required: false\n }\n }\n}\n</script>\n","import { render } from \"./alert.vue?vue&type=template&id=713210d2\"\nimport script from \"./alert.vue?vue&type=script&lang=js\"\nexport * from \"./alert.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <button type=\"button\" class=\"btn btn-link\" @click=\"$emit('click')\">\n <slot />\n </button>\n</template>\n\n<script>\nexport default {\n emits: ['click']\n}\n</script>\n","import { render } from \"./link-button.vue?vue&type=template&id=bbab6e5a\"\nimport script from \"./link-button.vue?vue&type=script&lang=js\"\nexport * from \"./link-button.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <button type=\"button\" :disabled=\"disabled\" class=\"btn btn-primary\" @click=\"$emit('click')\">\n <slot>\n {{ label }}\n </slot>\n </button>\n</template>\n\n<script>\nimport { inject } from 'vue'\n\nexport default {\n props: {\n disabled: {\n type: Boolean,\n required: false,\n default: false\n },\n label: {\n type: String,\n required: false,\n default: function() { return inject('i18n').t('administrative.save') }\n }\n },\n\n emits: ['click']\n}\n\n</script>\n","import { render } from \"./primary-button.vue?vue&type=template&id=fa1dbc0e\"\nimport script from \"./primary-button.vue?vue&type=script&lang=js\"\nexport * from \"./primary-button.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <button ref=\"button\" type=\"submit\"\n :disabled=\"buttonDisabled\"\n class=\"btn btn-primary\"\n @click.prevent=\"$emit('click', $event)\">\n <!-- Q: Why set type=submit if we're going to prevent the default behavior of submitting the form?\n A: Having a submit button at all changes the form behavior by enabling \"Enter to submit\" on text fields -->\n {{ buttonText }}\n </button>\n</template>\n\n<script>\nimport { inject } from 'vue'\nimport PrimaryButton from './primary-button'\n\nexport default {\n extends: PrimaryButton,\n\n props: {\n formValid: {\n type: Boolean,\n required: false,\n default: true\n },\n\n submitInProgress: {\n type: Boolean,\n required: false,\n default: false\n },\n\n submittingLabel: {\n type: String,\n required: false,\n default: function() { return inject('i18n').t('submitting') }\n }\n },\n\n emits: ['click'],\n\n computed: {\n buttonDisabled() {\n return !this.formValid || this.submitInProgress\n },\n\n buttonText() {\n if (this.submitInProgress) {\n return this.submittingLabel\n } else {\n return this.label\n }\n }\n },\n\n methods: {\n click() {\n this.$refs.button.click()\n },\n\n focus() {\n this.$refs.button.focus()\n }\n }\n}\n</script>\n","import { render } from \"./submit-button.vue?vue&type=template&id=4ae84733\"\nimport script from \"./submit-button.vue?vue&type=script&lang=js\"\nexport * from \"./submit-button.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <div :class=\"['mt-3', 'small-text', {'d-none': hideDisclaimer}]\">\n <div v-html=\"disclaimerHtml\" />\n </div>\n</template>\n\n<script>\nexport default {\n computed: {\n disclaimerHtml() {\n switch (this.agraConfiguration.botProtection.kind) {\n case 'hcaptcha':\n return this.i18n.t('public.hcaptcha.disclaimer_html')\n case 'recaptcha':\n return this.i18n.t('layouts.recaptcha_disclaimer_html')\n case 'turnstile':\n return this.i18n.t('public.turnstile.disclaimer_html')\n case 'friendly-captcha': // Don't display a disclaimer for Friendly Captcha\n return null\n default:\n return null\n }\n },\n\n hideDisclaimer() {\n return this.disclaimerHtml === null\n }\n }\n}\n</script>\n","import { render } from \"./bot-protection-disclaimer.vue?vue&type=template&id=c6547caa\"\nimport script from \"./bot-protection-disclaimer.vue?vue&type=script&lang=js\"\nexport * from \"./bot-protection-disclaimer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <div :class=\"['text-field', { 'is-invalid': showValidationError }]\">\n <label v-if=\"label && showLabel\" :for=\"inputId\" class=\"form-label\">\n <required v-if=\"required\" />\n <span v-html=\"label\" />\n </label>\n <textarea v-if=\"multiline\" :id=\"inputId\" ref=\"input\" :rows=\"rows\" :disabled=\"disabled\"\n :minlength=\"minLength\" :maxlength=\"maxLength\" :readonly=\"readonly\"\n :class=\"['task-editor-text-input form-control', additionalInputClasses, {'is-invalid': showValidationError}]\"\n :value=\"value\" :name=\"inputName\" @input=\"setText\" @focus=\"$emit('focus')\" @blur=\"$emit('blur')\" />\n <input v-else :id=\"inputId\" ref=\"input\" :type=\"inputType\" :autocomplete=\"autocomplete\"\n :disabled=\"disabled\" :readonly=\"readonly\" :minlength=\"minLength\" :maxlength=\"maxLength\"\n :class=\"['task-editor-text-input form-control', additionalInputClasses, {'is-invalid': showValidationError}]\"\n :value=\"value\" :name=\"inputName\" :placeholder=\"placeholder\"\n @input=\"setText\" @focus=\"$emit('focus')\" @blur=\"$emit('blur')\">\n\n <slot name=\"help-text\">\n <small v-if=\"helpText\" class=\"form-text text-muted\" v-html=\"helpText\" />\n </slot>\n\n <validation-errors v-if=\"showValidationError\" :errors=\"validationErrors\" />\n </div>\n</template>\n\n<script>\nimport Required from '../required'\nimport ValidationErrors from './validation-errors'\n\nexport default {\n components: { Required, ValidationErrors },\n\n props: {\n value: {\n type: [String, Number],\n required: false\n },\n multiline: {\n type: Boolean,\n required: false,\n default: false\n },\n validationErrors: {\n type: Array,\n required: false\n },\n additionalInputClasses: {\n type: String,\n required: false\n },\n autocomplete: {\n type: String,\n required: false\n },\n disabled: {\n type: Boolean,\n required: false,\n default: false\n },\n helpText: {\n type: String,\n required: false\n },\n inputId: {\n type: String,\n required: false\n },\n inputName: {\n type: String,\n required: false\n },\n inputType: {\n type: String,\n required: false,\n default: 'text'\n },\n label: {\n type: String,\n required: false\n },\n maxLength: {\n type: Number,\n required: false\n },\n minLength: {\n type: Number,\n required: false\n },\n placeholder: {\n type: String,\n required: false\n },\n readonly: {\n type: Boolean,\n required: false,\n default: false\n },\n required: {\n type: Boolean,\n required: false,\n default: false\n },\n rows: {\n type: Number,\n required: false,\n default: 3\n },\n\n showLabel: {\n type: Boolean,\n required: false,\n default: true\n }\n },\n\n emits: ['blur', 'changed', 'focus'],\n\n computed: {\n showValidationError() {\n return this.validationErrors && this.validationErrors.length > 0\n }\n },\n\n methods: {\n focus() {\n this.$refs.input.focus()\n },\n\n setText(e) {\n this.$emit('changed', e.target.value)\n }\n }\n}\n</script>\n","import { render } from \"./text-input.vue?vue&type=template&id=32eb48ed\"\nimport script from \"./text-input.vue?vue&type=script&lang=js\"\nexport * from \"./text-input.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <div>\n <span v-for=\"error in errors\" :key=\"error\" class=\"invalid-feedback d-block normal-text\">{{ error }}</span>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n errors: {\n type: Array,\n required: true\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n\n.normal-text {\n text-transform: none;\n}\n\n</style>\n","import { render } from \"./validation-errors.vue?vue&type=template&id=102b52e8&scoped=true\"\nimport script from \"./validation-errors.vue?vue&type=script&lang=js\"\nexport * from \"./validation-errors.vue?vue&type=script&lang=js\"\n\nimport \"./validation-errors.vue?vue&type=style&index=0&id=102b52e8&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-102b52e8\"]])\n\nexport default __exports__","<template>\n <modal ref=\"modal\" :modal-id=\"modalId\" :title=\"title\" :show-on-mount=\"showOnMount\"\n :size=\"size\" :click-outside-to-close=\"clickOutsideToClose\" @visibility-changed=\"visibilityChanged\">\n <template #header>\n <slot name=\"header\" />\n </template>\n <template #sub-heading>\n <slot name=\"sub-heading\" />\n </template>\n <template #body>\n <alert v-if=\"errorMessage\">\n {{ errorMessage }}\n </alert>\n <slot name=\"body\" />\n </template>\n <template #footer>\n <div class=\"footer-buttons\">\n <button type=\"button\" class=\"btn btn-light\" @click=\"close\">\n {{ cancelText }}\n </button>\n\n <bot-protected-submit-button v-if=\"useBotProtectionIfAvailable\" :form-valid=\"!submitDisabled\"\n :label=\"submitText\" :captcha-action=\"captchaAction\" :invisible-captcha=\"true\"\n :calculate-solution-on-mount=\"true\" :submit-in-progress=\"submitting\"\n @submit=\"onSubmit\" />\n <submit-button v-else :form-valid=\"!submitDisabled\" :label=\"submitText\" :submit-in-progress=\"submitting\"\n @click=\"onSubmit\" />\n </div>\n </template>\n <bot-protection-disclaimer v-if=\"botProtectionEnabled\" />\n </modal>\n</template>\n\n<script>\nimport Alert from '../components/alert'\nimport BotProtectedSubmitButton from './buttons/bot-protected-submit-button'\nimport BotProtectionDisclaimer from './inputs/bot-protection-disclaimer'\nimport { inject } from 'vue'\nimport Modal from './modal'\nimport SubmitButton from './buttons/submit-button'\n\nexport default {\n components: { Alert, BotProtectedSubmitButton, BotProtectionDisclaimer, Modal, SubmitButton },\n\n props: {\n cancelText: {\n type: String,\n required: false,\n default() { return inject('i18n').t('administrative.cancel') }\n },\n modalId: {\n type: String,\n required: true\n },\n submitText: {\n type: String,\n required: false,\n default() { return inject('i18n').t('submit') }\n },\n title: {\n type: String,\n required: false\n },\n showOnMount: {\n type: Boolean,\n required: false,\n default: false\n },\n size: {\n type: String,\n required: false,\n default: 'lg'\n },\n clickOutsideToClose: {\n type: Boolean,\n required: false,\n default: true\n },\n captchaAction: {\n type: String,\n required: false\n },\n submitAction: {\n type: Function,\n required: true\n },\n submitDisabled: {\n type: Boolean,\n required: false,\n default: false\n },\n useBotProtectionIfAvailable: {\n type: Boolean,\n required: false,\n default: false\n }\n },\n\n emits: ['clear'],\n\n data() {\n return {\n submitting: false,\n errorMessage: ''\n }\n },\n\n computed: {\n botProtectionEnabled() {\n return this.useBotProtectionIfAvailable && (this.agraConfiguration.botProtection.kind !== 'none')\n }\n },\n\n methods: {\n clear() {\n this.$emit('clear')\n this.submitting = false\n this.errorMessage = ''\n },\n onSubmit: async function(payload) {\n this.submitting = true\n\n try {\n await this.submitAction(payload)\n this.close()\n }\n catch (e) {\n this.errorMessage = e.message\n this.submitting = false\n }\n },\n\n // Handles the case where the modal was closed by user clicking outside it, and the case\n // Cancel button was clicked.\n visibilityChanged(newState) {\n if (newState === 'hidden') {\n this.clear()\n }\n },\n\n // So that consumers can add a ref for this component and have it work on the composed Modal\n open() {\n this.$refs.modal.open()\n },\n close() { // Also used in Cancel button\n this.$refs.modal.close()\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.footer-buttons {\n width: 100%;\n display: flex;\n justify-content: space-between;\n}\n</style>\n","import { render } from \"./modal-action-form.vue?vue&type=template&id=7839442b&scoped=true\"\nimport script from \"./modal-action-form.vue?vue&type=script&lang=js\"\nexport * from \"./modal-action-form.vue?vue&type=script&lang=js\"\n\nimport \"./modal-action-form.vue?vue&type=style&index=0&id=7839442b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7839442b\"]])\n\nexport default __exports__","<template>\n <div :id=\"modalId\" ref=\"root\" tabindex=\"-1\" role=\"dialog\" class=\"modal fade\">\n <div class=\"modal-dialog\" :class=\"modalSizeClass\" role=\"document\">\n <div class=\"modal-content\">\n <div v-if=\"!headerless\" class=\"modal-header\">\n <slot name=\"header\">\n <h4 v-if=\"title\" class=\"modal-title mt-0\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </h4>\n <button type=\"button\" class=\"btn-close\" :aria-label=\"i18n.t('close')\" @click=\"close\" />\n </slot>\n </div>\n <div class=\"sub-heading\">\n <slot name=\"sub-heading\" />\n </div>\n <div class=\"modal-body\" :class=\"{'paddingless-body': paddinglessBody}\">\n <slot name=\"body\" />\n </div>\n <div v-if=\"hasFooterSlot\" class=\"modal-footer\">\n <slot name=\"footer\" />\n </div>\n </div>\n </div>\n\n <slot name=\"outer-navigation\" />\n </div>\n</template>\n\n<script>\nimport { Modal } from 'bootstrap'\n\nexport default {\n props: {\n modalId: {\n type: String,\n required: true\n },\n title: {\n type: String,\n required: false\n },\n showOnMount: {\n type: Boolean,\n required: false,\n default: false\n },\n size: {\n type: String,\n required: false,\n default: 'lg'\n },\n clickOutsideToClose: {\n type: Boolean,\n required: false,\n default: true\n },\n headerless: {\n type: Boolean,\n required: false,\n default: false\n },\n paddinglessBody: {\n type: Boolean,\n required: false,\n default: false\n }\n },\n\n emits: ['visibility-changed'],\n\n data() {\n return {\n bootstrapModal: null,\n transitionInProgress: false,\n visibility: 'hidden'\n }\n },\n\n computed: {\n backdropSetting() {\n if (this.clickOutsideToClose) {\n return true\n } else {\n return 'static'\n }\n },\n\n hasFooterSlot() {\n return Object.keys(this.$slots).includes('footer')\n },\n\n modalSizeClass() {\n return `modal-${this.size}`\n }\n },\n\n watch: {\n clickOutsideToClose: function() {\n // Update the settings on the live Bootstrap modal to change whether clicks on the backdrop close the modal.\n // This relies on an undocumented internal data structure, and will need to be updated at our next major version\n // upgrade of bootstrap. Unfortunately, there is no supported API for changing this attribute of an already-open\n // modal.\n this.bootstrapModal._config.backdrop = this.backdropSetting\n }\n },\n\n mounted() {\n const vm = this\n const rootElement = this.$refs.root\n\n rootElement.addEventListener('hidden.bs.modal', function () {\n vm.transitionInProgress = false\n vm.visibility = 'hidden'\n vm.$emit('visibility-changed', 'hidden')\n })\n\n rootElement.addEventListener('shown.bs.modal', function () {\n vm.transitionInProgress = false\n vm.visibility = 'shown'\n vm.$emit('visibility-changed', 'shown')\n })\n\n this.bootstrapModal = Modal.getOrCreateInstance(this.$refs.root, {backdrop: this.backdropSetting})\n if (this.showOnMount) {\n this.open()\n }\n },\n\n beforeUnmount() {\n if (this.visibility === 'shown') {\n // When a bootstrap modal opens, it adds `overflow: hidden` and `padding-right: 0px` to the body.\n // Closing the modal normally removes those, but if we open another modal right away, a timing issue\n // can prevent these styles from clearing when we close the second modal; this then\n // prevents the page from scrolling. To avoid this issue, clear the body style ourselves.\n document.body.attributeStyleMap.delete('overflow')\n document.body.attributeStyleMap.delete('padding-right')\n }\n\n // If we call dispose() while there is a hide-modal transition in progress, then the callback at the end of the\n // transition will not be able to complete properly, causing a JS console error.\n if (!this.transitionInProgress) {\n this.bootstrapModal.dispose()\n }\n },\n\n methods: {\n close() {\n this.transitionInProgress = true\n this.bootstrapModal.hide()\n },\n\n open() {\n this.transitionInProgress = true\n this.bootstrapModal.show()\n }\n }\n\n}\n</script>\n\n<style lang=\"scss\" scoped>\n .paddingless-body {\n padding-left: 0;\n padding-right: 0;\n }\n</style>\n\n","import { render } from \"./modal.vue?vue&type=template&id=149afa11&scoped=true\"\nimport script from \"./modal.vue?vue&type=script&lang=js\"\nexport * from \"./modal.vue?vue&type=script&lang=js\"\n\nimport \"./modal.vue?vue&type=style&index=0&id=149afa11&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-149afa11\"]])\n\nexport default __exports__","<template>\n <abbr :title=\"i18n.t('simple_form.required.text')\">\n {{ i18n.t('simple_form.required.mark') }}\n </abbr>\n</template>\n","import { render } from \"./required.vue?vue&type=template&id=ebbea57e\"\nconst script = {}\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","<template>\n <transition name=\"slide-fade\" appear>\n <div v-if=\"show\" :class=\"['toast-container', {'top-right': showFixedTopRight}]\">\n <div :class=\"['toast-element', kind]\">\n <slot name=\"message-content\" />\n </div>\n </div>\n </transition>\n</template>\n\n<script>\nexport default {\n props: {\n kind: {\n type: String,\n required: false,\n default: 'success'\n },\n showFixedTopRight: {\n type: Boolean,\n required: false,\n default: true\n },\n showOnMount: {\n type: Boolean,\n default: true\n }\n },\n\n data() {\n return {\n show: false\n }\n },\n\n mounted() {\n if (this.showOnMount) {\n this.showToast()\n }\n },\n\n methods: {\n removeToast() {\n this.show = false\n },\n\n showToast() {\n this.show = true\n setTimeout(() => {\n this.removeToast()\n }, 4000)\n }\n }\n}\n\n</script>\n\n<style lang=\"scss\" scoped>\n @use \"~common_styles/breakpoints\" as breakpoints;\n @use \"~friendship_styles/colors\" as colors;\n @use \"~friendship_styles/zindex\" as zindex;\n\n .toast-container {\n // Positioning\n\n // By default, display at the element parent's location without taking space, this is overriden\n // if the toast is meant to be displayed at the top right of the screen.\n position: absolute;\n\n &.top-right {\n position: fixed;\n z-index: zindex.$toast-z-index;\n top: 10%;\n right: 7%;\n }\n\n // toast element styling\n // Not using the class name `toast` to avoid using unrelated bootstrap class.\n .toast-element {\n top: 35px;\n width: auto;\n clear: both;\n margin-top: 10px;\n position: relative;\n max-width: 100%;\n height: auto;\n word-break: normal;\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: inherit;\n padding: 15px;\n color: colors.$black;\n border-radius: 5px;\n }\n\n // This class is dynamically applied based on a prop\n /* eslint-disable-next-line vue-scoped-css/no-unused-selector */\n .success {\n background-color: colors.$alert-success-bg;\n border: 1px solid colors.$alert-success-fg;\n }\n\n // This class is dynamically applied based on a prop\n /* eslint-disable-next-line vue-scoped-css/no-unused-selector */\n .error {\n background-color: colors.$alert-danger-bg;\n border: 1px solid colors.$alert-danger-fg;\n }\n }\n\n @include breakpoints.screen-mobile-only {\n .toast-container {\n max-width: 86%;\n width: 100%;\n\n &.top-right {\n top: 0;\n float: none;\n }\n }\n }\n\n .slide-fade-enter-active {\n transition: all .3s ease;\n }\n .slide-fade-leave-active {\n transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);\n }\n .slide-fade-enter-from {\n transform: translateY(-30px);\n opacity: 0;\n }\n .slide-fade-leave-to {\n opacity: 0;\n }\n</style>\n","import { render } from \"./toast.vue?vue&type=template&id=b2f9da20&scoped=true\"\nimport script from \"./toast.vue?vue&type=script&lang=js\"\nexport * from \"./toast.vue?vue&type=script&lang=js\"\n\nimport \"./toast.vue?vue&type=style&index=0&id=b2f9da20&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b2f9da20\"]])\n\nexport default __exports__","<template>\n <!-- The flag-petition-link CSS class is to allow Campact and any other orgs that want to customize the styling for this\n button via custom CSS, to make it simpler to build a selector -->\n <a v-if=\"useCustomUrlForFlagging\" class=\"flag-petition-link small-text text-start ps-0\" :href=\"customUrlForFlagging\"\n rel=\"nofollow\">\n <i class=\"icon-flag\" />\n {{ i18n.t('public.petitions.flag.flag_this') }}\n </a>\n <link-button v-else class=\"flag-petition-link small-text text-start ps-0\" @click=\"showModalForm\">\n <i class=\"icon-flag\" />\n {{ i18n.t('public.petitions.flag.flag_this') }}\n </link-button>\n\n <modal-action-form v-if=\"showFlagForm\" :show-on-mount=\"true\" modal-id=\"modalFlagForm\"\n size=\"md\" :title=\"i18n.t('public.petitions.flag.modal_heading')\" :captcha-action=\"captchaAction\"\n :submit-action=\"createFlagAction\" :submit-text=\"i18n.t('public.petitions.flag.flag_petition')\"\n :use-bot-protection-if-available=\"true\" @clear=\"clear\">\n <template #body>\n <p v-html=\"flagCreationDescriptionContent\" />\n\n <text-input :label=\"i18n.t('public.petitions.flag.form.email')\" :readonly=\"!canEditEmail\" input-id=\"flag-email\"\n :required=\"true\" :value=\"email\" :validation-errors=\"validationErrors.email\" @changed=\"updateEmail\" />\n <p>\n {{ i18n.t('public.petitions.flag.form.give_reason') }}\n </p>\n <text-input :label=\"i18n.t('activerecord.attributes.petition_flag.reason')\" :required=\"true\" input-id=\"flag-reason\"\n :multiline=\"true\" rows=\"5\" :validation-errors=\"validationErrors.reason\" @changed=\"updateReason\" />\n </template>\n </modal-action-form>\n\n <toast v-if=\"flagSuccessfullyCreated\" kind=\"success\">\n <template #message-content>\n {{ i18n.t('public.petitions.flag.success_create') }}\n </template>\n </toast>\n</template>\n\n<script>\nimport ajax from '@/helpers/ajax'\nimport LinkButton from '@/components/buttons/link-button'\nimport ModalActionForm from '../components/modal-action-form'\nimport TextInput from '@/components/inputs/text-input'\nimport Toast from '@/components/toast'\n\nexport default {\n components: { LinkButton, ModalActionForm, TextInput, Toast },\n\n props: {\n captchaAction: {\n type: String,\n required: true\n },\n canEditEmail: {\n type: Boolean,\n required: true\n },\n flagCreationDescriptionContent: {\n type: String,\n required: true\n },\n flagCreationUrl: {\n type: String,\n required: true\n },\n memberEmail: {\n type: String,\n required: false\n },\n useCustomUrlForFlagging: {\n type: Boolean,\n required: true\n },\n customUrlForFlagging: {\n type: String,\n required: false\n }\n },\n\n data() {\n return {\n email: this.memberEmail,\n flagSuccessfullyCreated: false,\n reason: '',\n showFlagForm: false,\n validationErrors: []\n }\n },\n\n methods: {\n clear() {\n this.email = this.memberEmail\n this.reason = ''\n this.showFlagForm = false\n },\n\n createFlagAction({friendlyCaptchaSolution, hcaptchaResponse, recaptchaToken, turnstileToken}) {\n const flagData = {\n email: this.email,\n reason: this.reason\n }\n\n return new Promise((resolve, reject) => {\n ajax.post({\n url: this.flagCreationUrl,\n data: {\n flag: flagData,\n friendly_captcha_solution: friendlyCaptchaSolution,\n hcaptcha_response: hcaptchaResponse,\n recaptcha_token: recaptchaToken,\n turnstile_token: turnstileToken\n },\n successHandler: () => {\n this.showFlagForm = false\n this.flagSuccessfullyCreated = true\n this.validationErrors = []\n resolve()\n },\n errorHandler: ({ info }) => {\n this.validationErrors = info.errors\n\n // Prevent the modal from closing\n reject(this.i18n.t('public.petitions.flag.failed_create'))\n }\n })\n })\n\n },\n\n showModalForm() {\n this.flagSuccessfullyCreated = false\n this.validationErrors = []\n this.showFlagForm = true\n },\n\n updateEmail(newEmail) {\n this.email = newEmail\n },\n\n updateReason(newReason) {\n this.reason = newReason\n }\n }\n}\n</script>\n","import { render } from \"./flag.vue?vue&type=template&id=066641a5\"\nimport script from \"./flag.vue?vue&type=script&lang=js\"\nexport * from \"./flag.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["SCRIPT_ID","HCAPTCHA_LOAD_FN_NAME","resolveFn","rejectFn","promise","Promise","resolve","reject","loadApiEndpointIfNotAlready","config","window","hcaptcha","document","getElementById","scriptSrc","apiEndpoint","addQueryParamIfDefined","reCaptchaCompat","language","sentry","custom","endpoint","assethost","imghost","reportapi","getScriptSrc","script","createElement","id","src","async","defer","onerror","event","console","error","head","appendChild","url","queryName","queryValue","link","includes","encodeURIComponent","_export_sfc","sfc","props","key","val","_sfc_main","name","sitekey","type","String","required","theme","default","size","tabindex","Boolean","challengeContainer","rqdata","data","widgetId","renderedCb","mounted","this","$props","then","onApiLoaded","catch","onError","unmounted","teardown","destroyed","methods","reset","remove","opt","onVerify","onExpired","onChallengeExpired","onOpen","onClose","render","$el","setData","onRendered","execute","onExecuted","executeAsync","resolveFn2","promiseFn","onReset","$emit","e","token","getResponse","eKey","getRespKey","_hoisted_1","_ctx","_cache","$setup","$data","$options","prototype","raise","errorConstructor","message","requestSubmit","submitter","form","HTMLElement","TypeError","DOMException","validateSubmitter","click","hidden","removeChild","HTMLFormElement","exports","target","__vccOpts","alertClass","_createElementBlock","class","_normalizeClass","_renderSlot","$slots","_createTextVNode","_toDisplayString","emits","onClick","$event","disabled","label","inject","t","extends","PrimaryButton","formValid","submitInProgress","submittingLabel","computed","buttonDisabled","buttonText","$refs","button","focus","ref","_withModifiers","disclaimerHtml","agraConfiguration","botProtection","kind","i18n","hideDisclaimer","_createElementVNode","innerHTML","components","Required","ValidationErrors","value","Number","multiline","validationErrors","Array","additionalInputClasses","autocomplete","helpText","inputId","inputName","inputType","maxLength","minLength","placeholder","readonly","rows","showLabel","showValidationError","length","input","setText","for","_createBlock","_component_required","_createCommentVNode","_hoisted_2","minlength","maxlength","onInput","args","onFocus","onBlur","_hoisted_3","_hoisted_4","_hoisted_5","_component_validation_errors","errors","_Fragment","_renderList","Alert","BotProtectedSubmitButton","BotProtectionDisclaimer","Modal","SubmitButton","cancelText","modalId","submitText","title","showOnMount","clickOutsideToClose","captchaAction","submitAction","Function","submitDisabled","useBotProtectionIfAvailable","submitting","errorMessage","botProtectionEnabled","clear","onSubmit","payload","close","visibilityChanged","newState","open","modal","_component_modal","onVisibilityChanged","header","_withCtx","undefined","body","_component_alert","_","footer","_component_bot_protected_submit_button","_component_submit_button","_component_bot_protection_disclaimer","headerless","paddinglessBody","bootstrapModal","transitionInProgress","visibility","backdropSetting","hasFooterSlot","Object","keys","modalSizeClass","watch","_config","backdrop","vm","rootElement","root","addEventListener","getOrCreateInstance","beforeUnmount","attributeStyleMap","delete","dispose","hide","show","role","_hoisted_6","_hoisted_7","showFixedTopRight","showToast","removeToast","setTimeout","_Transition","appear","LinkButton","ModalActionForm","TextInput","Toast","canEditEmail","flagCreationDescriptionContent","flagCreationUrl","memberEmail","useCustomUrlForFlagging","customUrlForFlagging","email","flagSuccessfullyCreated","reason","showFlagForm","createFlagAction","friendlyCaptchaSolution","hcaptchaResponse","recaptchaToken","turnstileToken","flagData","ajax","post","flag","friendly_captcha_solution","hcaptcha_response","recaptcha_token","turnstile_token","successHandler","errorHandler","info","showModalForm","updateEmail","newEmail","updateReason","newReason","href","rel","_component_link_button","_component_modal_action_form","onClear","_createVNode","_component_text_input","onChanged","_component_toast"],"sourceRoot":""}