{"version":3,"file":"js/embedded-petition-sign-ed3d3836d67324e8180b.chunk.js","mappings":"+MASA,MAAMA,EAAc,CAAC,WAAY,cAEjC,OACEC,WAAY,CAAEC,aAAa,KAE3BC,OAAQ,CAAEC,EAAAA,GAEVC,SAAU,KACLC,EAAAA,EAAAA,IAAS,CAAC,WAEbC,UAAAA,GACE,IAAIC,EAAS,GACb,IAAK,MAAMC,KAAOT,EAChB,GAAIU,KAAKC,OAAOF,GACd,OAAQA,GACR,IAAK,WACHD,GAAU,eAAeE,KAAKC,OAAOF,MACrC,MACF,IAAK,aACHD,GAAU,UAAUE,KAAKC,OAAOF,MAChC,MACF,QACE,KAAM,eAAeA,IAI3B,OAAOD,CACT,IC7BJ,OAFiC,E,SAAA,GAAgB,EAAQ,CAAC,CAAC,S,0EDJzDI,EAAAA,EAAAA,IAAqCC,EAAA,CAArBC,OADlBC,EAAAA,EAAAA,IACyBC,EAAAT,aAAU,qB,sBEGnCU,EAAQ,EAAU,CAACC,EAAKC,KACpB,MAAMC,EAASF,EAAIG,WAAaH,EAChC,IAAK,MAAOT,EAAKa,KAAQH,EACrBC,EAAOX,GAAOa,EAElB,OAAOF,CAAM,C","sources":["webpack://agra/./app/javascript/petition/sign/embedded-form.vue","webpack://agra/./app/javascript/petition/sign/embedded-form.vue?6ddb","webpack://agra/./node_modules/vue-loader/dist/exportHelper.js"],"sourcesContent":["<template>\n <sign-petition :style=\"formStyles\" />\n</template>\n\n<script>\nimport { mapState } from 'vuex'\nimport SignPetition from './sign-petition'\nimport TopLevelMixin from './top-level-mixin'\n\nconst STYLES_KEYS = ['bg_color', 'text_color']\n\nexport default {\n components: { SignPetition },\n\n mixins: [ TopLevelMixin ],\n\n computed: {\n ...mapState(['styles']),\n\n formStyles() {\n let output = ''\n for (const key of STYLES_KEYS) {\n if (this.styles[key]) {\n switch (key) {\n case 'bg_color':\n output += `background: ${this.styles[key]};`\n break\n case 'text_color':\n output += `color: ${this.styles[key]};`\n break\n default:\n throw `invalid key ${key}`\n }\n }\n }\n return output\n }\n }\n}\n</script>\n","import { render } from \"./embedded-form.vue?vue&type=template&id=58a4fdf9\"\nimport script from \"./embedded-form.vue?vue&type=script&lang=js\"\nexport * from \"./embedded-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__","\"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"],"names":["STYLES_KEYS","components","SignPetition","mixins","TopLevelMixin","computed","mapState","formStyles","output","key","this","styles","_createBlock","_component_sign_petition","style","_normalizeStyle","$options","exports","sfc","props","target","__vccOpts","val"],"sourceRoot":""}