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I,EAAA6I,qBAAA7I,EAAA6I,uBAAAD,MAAmB,QACnG5I,EAAA8I,kBAAgB,aA3B7BhH,EAAAA,EAAAA,IAAA,oBAAAjC,EAAAA,EAAAA,OAgC+BG,EAAA+I,iBAAc,WAAzCrE,EAAAA,EAAAA,IAA6CsE,EAAA,CAhCjDxJ,IAAA,MAAAsC,EAAAA,EAAAA,IAAA,WWO4E,CAAC,YAAY,oB","sources":["webpack://agra/./app/javascript/petition/sign/root.vue","webpack://agra/./app/javascript/petition/sign/success-banner.vue","webpack://agra/./app/javascript/petition/sign/success-banner.vue?d8d4","webpack://agra/./app/javascript/petition/sign/modal-with-signature-form.vue","webpack://agra/./app/javascript/petition/sign/modal-with-signature-form.vue?75d0","webpack://agra/./app/javascript/petition/comments/form.vue","webpack://agra/./app/javascript/petition/comments/form.vue?1923","webpack://agra/./app/javascript/petition/sign/sidebar-signed.vue","webpack://agra/./app/javascript/petition/sign/sidebar-signed.vue?2978","webpack://agra/./app/javascript/petition/sign/sidebar-with-signature-form.vue","webpack://agra/./app/javascript/petition/sign/sidebar-with-signature-form.vue?7b2d","webpack://agra/./app/javascript/petition/sign/root.vue?0ed0"],"sourcesContent":["<template>\n <div>\n <sidebar v-if=\"showSidebar\" class=\"p-0 w-100\">\n <sidebar-signed v-if=\"signed\" />\n <sidebar-with-signature-form v-else id=\"take-action\" />\n </sidebar>\n\n <!-- This modal needs to live here, outside the floating-sidebar,\n instead of next to the button that triggers it, because the floating-sidebar\n has a z-index situation that interferes with proper modal operation. -->\n <confirm-your-email-modal v-if=\"awaitingEmailConfirmation\" :email-address=\"action.email\"\n :email-sent-message=\"i18n.t('public.confirm_your_email_modal.sent_for_signature')\"\n :warning-message=\"i18n.t('public.petitions.confirm_email_warning')\" />\n\n <toast v-if=\"toastErrorMessage\" kind=\"error\">\n <template #message-content>\n <p>{{ toastErrorMessage }}</p>\n </template>\n </toast>\n\n <template v-if=\"showFixedSignButton\">\n <modal-with-signature-form v-if=\"showingActionFormModal\" class=\"action-form-modal\" @modal-closed=\"hideActionFormModal\" />\n\n <div v-else class=\"bottom-fixed d-grid d-md-none p-3\">\n <progress-bar v-if=\"showProgressBarAboveFixedSignButtom\" :narrow-layout=\"true\" />\n\n <button type=\"button\" class=\"btn btn-primary btn-lg btn-show-signature-form\" @click=\"showActionFormModal\">\n {{ submitButtonText }}\n </button>\n </div>\n </template>\n\n <daisy-chain-manager v-if=\"showDaisyChain\" />\n </div>\n</template>\n\n<script>\nimport ConfirmYourEmailModal from '@/components/confirm-your-email-modal'\nimport DaisyChainManager from '../../daisy-chains/manager'\nimport { mapGetters, mapMutations, mapState } from 'vuex'\nimport ModalWithSignatureForm from './modal-with-signature-form'\nimport ProgressBar from './progress-bar'\nimport SidebarSigned from './sidebar-signed'\nimport SidebarWithSignatureForm from './sidebar-with-signature-form'\nimport Sidebar from '@/campaign-action-shared/sidebar'\nimport Toast from '@/components/toast'\nimport TopLevelMixin from './top-level-mixin'\nimport { trackEvent } from '@/analytics/track'\n\nexport default {\n components: { ConfirmYourEmailModal, DaisyChainManager, ModalWithSignatureForm, ProgressBar, SidebarWithSignatureForm,\n SidebarSigned, Sidebar, Toast },\n\n mixins: [ TopLevelMixin ],\n\n computed: {\n ...mapGetters(['showFixedSignButton', 'showProgressBarAboveFixedSignButtom', 'showSidebar', 'submitButtonText']),\n ...mapState(['action', 'alreadySignedOnPageLoad', 'awaitingEmailConfirmation', 'baseDaisyChainsPath',\n 'completingAction', 'daisyChainRepeatedAction', 'petition', 'showDaisyChain',\n 'showingActionFormModal', 'signatureFormHidden', 'signed', 'toastErrorMessage'])\n },\n\n created() {\n window.addEventListener('resize', this.updateWindowWidth)\n },\n\n mounted() {\n if (this.completingAction) {\n if (!this.awaitingEmailConfirmation) {\n this.$store.dispatch('startDaisyChain', {\n baseDaisyChainsPath: this.baseDaisyChainsPath,\n repeatedAction: this.daisyChainRepeatedAction\n })\n }\n }\n else if (this.alreadySignedOnPageLoad) {\n // On page load, the petition is already signed by the user.\n trackEvent('Saw petition already signed', {\n action: 'already-signed',\n category: 'petition',\n name: this.petition.slug,\n petition: this.petition.slug\n })\n }\n },\n\n beforeUnmount() {\n window.removeEventListener('resize', this.updateWindowWidth)\n },\n\n methods: {\n ...mapMutations(['hideActionFormModal', 'showActionFormModal']),\n\n updateWindowWidth() {\n this.$store.commit('setWindowWidth', window.innerWidth)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use \"~phoenix_styles/colors\" as colors;\n\n.bottom-fixed {\n background-color: #FFFFFF;\n}\n::v-deep(.action-form-modal .modal-content) {\n background: colors.$background-light-gray;\n}\n</style>\n","<template>\n <div class=\"success-banner text-center\">\n <div class=\"circle-icon-background bg-primary mx-auto\">\n <i class=\"icon-ok\" />\n </div>\n\n <div class=\"fw-bold mt-3\">\n {{ i18n.t('public.petitions.successful') }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.success-banner {\n .circle-icon-background {\n width: 97px;\n height: 97px;\n border-radius: 50%;\n color: white;\n font-size: 70px;\n line-height: 97px\n }\n}\n</style>\n","import { render } from \"./success-banner.vue?vue&type=template&id=d5b9af62&scoped=true\"\nimport script from \"./success-banner.vue?vue&type=script&lang=js\"\nexport * from \"./success-banner.vue?vue&type=script&lang=js\"\n\nimport \"./success-banner.vue?vue&type=style&index=0&id=d5b9af62&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-d5b9af62\"]])\n\nexport default __exports__","<template>\n <div>\n <modal size=\"md\" modal-id=\"signature-modal\" show-on-mount :title=\"modalTitle\"\n @visibility-changed=\"modalVisibilityChanged\">\n <template #body>\n <template v-if=\"petition.successful\">\n <success-banner />\n <hr class=\"my-4\">\n </template>\n\n <sign-petition />\n </template>\n </modal>\n </div>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\nimport Modal from '@/components/modal'\nimport SignPetition from './sign-petition'\nimport SuccessBanner from './success-banner'\n\nexport default {\n components: { Modal, SignPetition, SuccessBanner },\n\n emits: ['modal-closed'],\n\n computed: {\n ...mapState(['petition', 'signTitle']),\n\n modalTitle() {\n if (this.petition.signersWriteToDecisionMaker) {\n return this.i18n.t('public.petitions.write_to_target.send_a_message')\n } else {\n return this.signTitle\n }\n }\n },\n\n methods: {\n modalVisibilityChanged(visibility) {\n if (visibility === 'hidden') {\n this.$emit('modal-closed')\n }\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n// Avoid extending the line beyond the modal's body\n::v-deep(.hr-full-width) {\n margin-left: -20px;\n margin-right: -20px;\n}\n\n::v-deep(.modal-header) {\n align-items: center;\n}\n\n.large-close {\n border-radius: 50%;\n border: 1px solid black;\n box-shadow: 0 5px 10px #0003;\n width: 2em;\n height: 2em;\n font-size: 1.1em;\n color: #000000;\n padding: {\n right: unset;\n left: unset;\n }\n}\n</style>\n","import { render } from \"./modal-with-signature-form.vue?vue&type=template&id=0b96c1d8&scoped=true\"\nimport script from \"./modal-with-signature-form.vue?vue&type=script&lang=js\"\nexport * from \"./modal-with-signature-form.vue?vue&type=script&lang=js\"\n\nimport \"./modal-with-signature-form.vue?vue&type=style&index=0&id=0b96c1d8&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-0b96c1d8\"]])\n\nexport default __exports__","<template>\n <div class=\"comment-box\">\n <template v-if=\"success\">\n <strong>{{ i18n.t('petitions.comments.comment_thank_you.thank_you') }}</strong>\n </template>\n <template v-else>\n {{ i18n.t('petitions.comments.form.reason_to_sign') }}\n <text-input input-name=\"comment_text\" multiline :value=\"text\" :validation-errors=\"validationErrors\" class=\"mb-3\"\n @changed=\"updateText\" />\n <submit-button :form-valid=\"text.length > 0\" :submit-in-progress=\"submitting\" @click=\"submitComment\" />\n </template>\n </div>\n</template>\n\n<script>\nimport SubmitButton from '@/components/buttons/submit-button.vue'\nimport TextInput from '@/components/inputs/text-input.vue'\nimport ajax from '../../helpers/ajax'\nimport { mapMutations } from 'vuex'\nimport { nextTick } from 'vue'\n\nexport default {\n components: { SubmitButton, TextInput },\n\n props: {\n createPetitionCommentPath: {\n type: String,\n required: true\n }\n },\n\n data() {\n return {\n success: false,\n submitting: false,\n text: '',\n validationErrors: []\n }\n },\n\n methods: {\n ...mapMutations('comments', ['addCreatedComment']),\n updateText(text) {\n this.text = text\n },\n\n submitComment() {\n this.submitting = true\n\n ajax.post({\n url: this.createPetitionCommentPath,\n data: {\n comment: {\n text: this.text\n }\n },\n successHandler: ({ data }) => {\n nextTick(() => {\n this.success = true\n })\n this.addCreatedComment(data.comment)\n },\n errorHandler: ({ info }) => {\n this.validationErrors = info.errors\n }\n }).then(() => {\n this.submitting = false\n })\n }\n }\n}\n</script>\n","import { render } from \"./form.vue?vue&type=template&id=7903d99e\"\nimport script from \"./form.vue?vue&type=script&lang=js\"\nexport * from \"./form.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 <sidebar-layout>\n <template #top>\n <status-banner :text=\"successText\" icon=\"icon-ok\" status=\"success\">\n <not-me-link v-if=\"alreadySignedOnPageLoad\" :user-name=\"actionTakerName\" context=\"already_signed\" />\n </status-banner>\n </template>\n\n <template v-if=\"petition.successful\">\n <success-banner />\n <hr class=\"my-4\">\n </template>\n\n <progress-and-recent-signatures />\n\n <sharing-prompt v-if=\"petition.sharingAllowed\" :title=\"i18n.t('petitions.signatures.increase_your_impact')\" />\n <comment-form v-if=\"createPetitionCommentPath\" class=\"mt-3\" :create-petition-comment-path=\"createPetitionCommentPath\" />\n </sidebar-layout>\n</template>\n\n<script>\nimport CommentForm from '../comments/form'\nimport { mapState } from 'vuex'\nimport NotMeLink from './not-me-link.vue'\nimport ProgressAndRecentSignatures from './progress-and-recent-signatures'\nimport SharingPrompt from '@/campaign-action-shared/sharing-prompt'\nimport SidebarLayout from '@/campaign-action-shared/sidebar-layout'\nimport StatusBanner from '@/campaign-action-shared/status-banner'\nimport SuccessBanner from './success-banner'\n\nexport default {\n components: { CommentForm, NotMeLink, ProgressAndRecentSignatures, SharingPrompt, StatusBanner, SidebarLayout,\n SuccessBanner },\n\n computed: {\n ...mapState(['actionTakerName', 'alreadySignedOnPageLoad', 'createPetitionCommentPath', 'petition']),\n\n successText() {\n if (this.petition.signersWriteToDecisionMaker) {\n return this.i18n.t('petitions.signatures.create.message_sent')\n } else {\n return this.i18n.t('petitions.signatures.already_signed.already_signed')\n }\n }\n }\n}\n</script>\n","import { render } from \"./sidebar-signed.vue?vue&type=template&id=128f07f2\"\nimport script from \"./sidebar-signed.vue?vue&type=script&lang=js\"\nexport * from \"./sidebar-signed.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 <sidebar-layout>\n <template v-if=\"petition.successful\">\n <success-banner />\n <hr class=\"my-4\">\n </template>\n\n <!-- This anchor is used on mobile by an in-page link to jump to the form. -->\n <a name=\"signature-form\" />\n\n <sign-petition />\n </sidebar-layout>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\nimport SidebarLayout from '../../campaign-action-shared/sidebar-layout'\nimport SignPetition from './sign-petition'\nimport SuccessBanner from './success-banner'\n\nexport default {\n components: { SidebarLayout, SignPetition, SuccessBanner },\n\n computed: {\n ...mapState(['petition'])\n }\n}\n</script>\n","import { render } from \"./sidebar-with-signature-form.vue?vue&type=template&id=a20fbaa0\"\nimport script from \"./sidebar-with-signature-form.vue?vue&type=script&lang=js\"\nexport * from \"./sidebar-with-signature-form.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__","import { render } from \"./root.vue?vue&type=template&id=43f09db8&scoped=true\"\nimport script from \"./root.vue?vue&type=script&lang=js\"\nexport * from \"./root.vue?vue&type=script&lang=js\"\n\nimport \"./root.vue?vue&type=style&index=0&id=43f09db8&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-43f09db8\"]])\n\nexport default __exports__"],"names":["key","class","_createElementBlock","_hoisted_1","_createElementVNode","_createTextVNode","_hoisted_2","_toDisplayString","_ctx","i18n","t","components","Modal","SignPetition","SuccessBanner","emits","computed","mapState","modalTitle","this","petition","signersWriteToDecisionMaker","signTitle","methods","modalVisibilityChanged","visibility","$emit","_createVNode","_component_modal","size","title","$options","onVisibilityChanged","body","_withCtx","successful","_Fragment","_component_success_banner","_createCommentVNode","_component_sign_petition","_","SubmitButton","TextInput","props","createPetitionCommentPath","type","String","required","data","success","submitting","text","validationErrors","mapMutations","updateText","submitComment","ajax","post","url","comment","successHandler","nextTick","addCreatedComment","errorHandler","info","errors","then","$data","_component_text_input","multiline","value","onChanged","_component_submit_button","length","onClick","CommentForm","NotMeLink","ProgressAndRecentSignatures","SharingPrompt","StatusBanner","SidebarLayout","successText","_createBlock","_component_sidebar_layout","top","_component_status_banner","icon","status","default","alreadySignedOnPageLoad","_component_not_me_link","actionTakerName","context","_component_progress_and_recent_signatures","sharingAllowed","_component_sharing_prompt","_component_comment_form","name","ConfirmYourEmailModal","DaisyChainManager","ModalWithSignatureForm","ProgressBar","SidebarWithSignatureForm","SidebarSigned","Sidebar","Toast","mixins","TopLevelMixin","mapGetters","created","window","addEventListener","updateWindowWidth","mounted","completingAction","awaitingEmailConfirmation","$store","dispatch","baseDaisyChainsPath","repeatedAction","daisyChainRepeatedAction","trackEvent","action","category","slug","beforeUnmount","removeEventListener","commit","innerWidth","showSidebar","_component_sidebar","signed","_component_sidebar_signed","_component_sidebar_with_signature_form","id","_component_confirm_your_email_modal","email","toastErrorMessage","_component_toast","kind","showFixedSignButton","showingActionFormModal","_component_modal_with_signature_form","onModalClosed","hideActionFormModal","showProgressBarAboveFixedSignButtom","_component_progress_bar","_cache","args","showActionFormModal","submitButtonText","showDaisyChain","_component_daisy_chain_manager"],"sourceRoot":""}