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,EAAAA,EAAAA,IAAA,oBAAA9B,EAAAA,EAAAA,OAKoBtD,EAAAxB,WAAQ,WAAxBuE,EAAAA,EAAAA,IAA4BsC,EAAA,CALhCpB,IAAA,MAAAmB,EAAAA,EAAAA,IAAA,oBAAA9B,EAAAA,EAAAA,OAMiBtD,EAAAiB,QAAK,WAAlBvB,EAAAA,EAAAA,IAEQ,SARZuE,IAAA,EAMyBd,GAAIrD,EAAA2E,QAAS7F,MAAM,iBAAkBmB,IAAKC,EAAAyB,UAAAA,EAAAA,EAAAA,IAC1DzB,EAAAiB,OAAK,EAPdV,KAAA6E,EAAAA,EAAAA,IAAA,oBAAA9B,EAAAA,EAAAA,OASeD,EAAAvE,SAAM,WAAjBY,EAAAA,EAAAA,IAEM,MAXVY,EAAA,EAUMgF,EAAAA,EAAAA,IAA8BrC,EAAAsC,OAAA,kCAEhC7F,EAAAA,EAAAA,IAEM,MAdV8F,EAAA,EAaMF,EAAAA,EAAAA,IAA8BrC,EAAAsC,OAAA,0B,0FEbpC,UCCA,MAAME,EAAS,CAAC,EAKhB,OAFiC,E,SAAA,GAAgBA,EAAQ,CAAC,CAAC,SDJ3D,gCACE/F,EAAAA,EAAAA,IAEO,QAFAG,MAAOoD,EAAA7D,KAAKC,EAAE,+BAAD,QACf4D,EAAA7D,KAAKC,EAAE,8BAAD,EAFbM,EAAA,I","sources":["webpack://agra/./app/javascript/mixins/field-with-lock.js","webpack://agra/./app/javascript/components/buttons/lock-button.vue","webpack://agra/./app/javascript/components/buttons/lock-button.vue?bb59","webpack://agra/./app/javascript/components/petition-lockable-rich-text.vue","webpack://agra/./app/javascript/components/petition-lockable-rich-text.vue?c5b0","webpack://agra/./node_modules/vue-loader/dist/exportHelper.js","webpack://agra/./app/javascript/components/inputs/validation-errors.vue","webpack://agra/./app/javascript/components/inputs/validation-errors.vue?c863","webpack://agra/./app/javascript/components/petition-lockable-field-layout.vue","webpack://agra/./app/javascript/components/petition-lockable-field-layout.vue?6d0d","webpack://agra/./app/javascript/components/required.vue","webpack://agra/./app/javascript/components/required.vue?43d5"],"sourcesContent":["export default {\n props: {\n canChangeLock: {\n type: Boolean,\n default: true\n },\n initialLocked: {\n type: Boolean,\n required: false,\n default: false\n },\n lockUpdatePath: {\n type: String,\n required: false\n },\n showLock: {\n type: Boolean,\n required: true\n }\n }\n}\n","\n\n\n\n\n","import { render } from \"./lock-button.vue?vue&type=template&id=1bf702f5&scoped=true\"\nimport script from \"./lock-button.vue?vue&type=script&lang=js\"\nexport * from \"./lock-button.vue?vue&type=script&lang=js\"\n\nimport \"./lock-button.vue?vue&type=style&index=0&id=1bf702f5&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-1bf702f5\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./petition-lockable-rich-text.vue?vue&type=template&id=0df58250&scoped=true\"\nimport script from \"./petition-lockable-rich-text.vue?vue&type=script&lang=js\"\nexport * from \"./petition-lockable-rich-text.vue?vue&type=script&lang=js\"\n\nimport \"./petition-lockable-rich-text.vue?vue&type=style&index=0&id=0df58250&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-0df58250\"]])\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","\n\n\n\n\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__","\n\n\n","import { render } from \"./petition-lockable-field-layout.vue?vue&type=template&id=18978bf2\"\nimport script from \"./petition-lockable-field-layout.vue?vue&type=script&lang=js\"\nexport * from \"./petition-lockable-field-layout.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__","\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__"],"names":["props","canChangeLock","type","Boolean","default","initialLocked","required","lockUpdatePath","String","showLock","class","canChange","locked","fieldId","emits","computed","buttonTitle","this","i18n","t","lockClass","methods","toggleLock","$emit","_createElementBlock","_hoisted_1","_createElementVNode","title","$options","for","$props","disabled","onClick","_cache","args","_normalizeClass","_hoisted_3","_hoisted_2","components","PetitionLockableFieldLayout","TrixTextInput","mixins","FieldWithLock","fieldName","helpPopoverContent","hideHelpPopover","initialValue","label","validationErrors","Array","data","value","fieldCanBeLocked","length","inputName","inputId","kebabCase","trixEditorId","$refs","trixInput","editorId","watch","newLockValue","$nextTick","initializePopover","mounted","trixEditorEl","document","getElementById","Popover","content","placement","html","template","trigger","updateFieldValue","newValue","_createBlock","_component_petition_lockable_field_layout","_ctx","_withCtx","id","name","$data","_createTextVNode","innerHTML","_createVNode","_component_trix_text_input","ref","onInput","_","exports","sfc","target","__vccOpts","key","val","errors","_Fragment","_renderList","error","LockButton","Required","labelId","lockingFieldId","lockChanged","ajax","put","url","lockable_field","lock_value","errorHandler","_component_lock_button","onChange","_createCommentVNode","_component_required","_renderSlot","$slots","_hoisted_4","script"],"sourceRoot":""}