{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./src/components/buttons/Button/index.vue?c8d3","webpack:///src/components/buttons/Button/index.vue","webpack:///./src/components/buttons/Button/index.vue?18df","webpack:///./src/components/buttons/Button/index.vue","webpack:///./src/pages/Homeowner/evoting/List.vue?bace","webpack:///./src/pages/Homeowner/evoting/components/voteModal/index.vue?5009","webpack:///./src/pages/Homeowner/evoting/components/voteModal/keys/data.js","webpack:///./src/services/BallotResponse/store.js","webpack:///./src/services/BallotCandidate/store.js","webpack:///./src/services/Ballot/store.js","webpack:///./src/pages/Homeowner/evoting/components/voteModal/keys/methods.js","webpack:///src/pages/Homeowner/evoting/components/voteModal/index.vue","webpack:///./src/pages/Homeowner/evoting/components/voteModal/index.vue?0437","webpack:///./src/pages/Homeowner/evoting/components/voteModal/index.vue","webpack:///./src/pages/Homeowner/evoting/keys/methods.js","webpack:///./src/pages/Homeowner/evoting/keys/data.js","webpack:///src/pages/Homeowner/evoting/List.vue","webpack:///./src/pages/Homeowner/evoting/List.vue?e8f3","webpack:///./src/pages/Homeowner/evoting/List.vue","webpack:///./src/containers/PageContent.vue?c88c","webpack:///src/containers/PageContent.vue","webpack:///./src/containers/PageContent.vue?67b1","webpack:///./src/containers/PageContent.vue","webpack:///./node_modules/vue-dragscroll/dist/vue-dragscroll.min.js"],"names":["$","$reduce","left","arrayMethodIsStrict","arrayMethodUsesToLength","STRICT_METHOD","USES_TO_LENGTH","1","target","proto","forced","reduce","callbackfn","this","arguments","length","undefined","render","_vm","_h","$createElement","_c","_self","visible","class","isprimary","attrs","tooltip","disabled","on","$event","preventDefault","onClick","apply","_v","_s","text","_e","staticRenderFns","props","component","staticClass","$t","region","filters","rows","columns","perPage","loading","toggle","selectedBallot","ballotHold","title","description","ballotType","multipleChoiceNumOptionsSelectable","numOfElectionPositions","ref","scopedSlots","_u","key","fn","handleSubmit","confirmVoteConfirmation","ballotResponseTemp","model","value","callback","$$v","radio","expression","yesOptionDescription","noOptionDescription","electionVotingIsCumulative","_l","c","index","isWriteIn","name","parseInt","candidateCheckboxGroup","$set","downloadPdf","ballotCandidateID","candidateRadioGroup","writeInCandidatesEnabled","staticStyle","writeInName","addWriteIn","ballotMultipleChoiceOptionID","multipleChoiceCheckboxGroup","closeModal","disableVoteButton","errors","data","isDebug","isOpen","isFetching","openOnFocus","file","base64pdf","scale","imageContent","attachment","ballotResponseID","ballotResponse","ballotID","formData","responseCandidates","responseMultipleChoices","ballotResponses","actions","getBallotResponseList","unitID","console","log","path","kms","get","results","debug","JSON","stringify","list","notifyProblem","error","deleteBallotResponse","dispatch","done","delete","wasDeleted","_get","notifyMessage","notifyError","getBallotResponseById","result","hasVotedonBallotResponseAlready","ownerID","params","detail","addBallotResponse","payload","post","ballotDocumentID","voteDataJson","isHomeOwner","updateBallotResponse","put","getResponseFile","details","uploadDocument","FormData","append","ballotDocumentFile","returnedFile","Vue","use","Vuex","ballotResponseStore","Store","state","mutations","getters","getBallotCandidateList","includeWriteIns","getBallotCandidateById","deleteBallotCandidate","addBallotCandidate","resume","writeInByUnitID","updateBallotCandidate","getResumeFile","hoaID","resumeDocumentFile","ballotCandidateStore","getBallotTypeList","ballotTypes","label","getBallotList","publishedAndCompleteBy","deleteBallot","getBallotById","addBallot","fullDescription","completeByDate","isSecret","updateBallot","ballotStore","methods","reload","loadBallotResponses","then","loadBallotByID","ballotCandidates","filter","f","initNumeric","parsedVoteDataJson","parse","tempBallotType","yesNoResponse","forEach","e","push","multipleChoiceOptions","initializeNumeric","initializeNumericEdit","loadCurrentDocument","disableVoteForWriteIn","counter","r","numVotes","$buefy","dialog","confirm","message","ballotStatuteDisclaimer","confirmText","type","hasIcon","onConfirm","onFormSubmit","asBase64","asRawBase64","returned","contentType","blob","base64toBlob","showPdf","notifyWarning","currentUnitId","response","ballot","w","currentOwnerId","indexOf","submitFile","authUser","ownerUser","open","$emit","documentToggle","click","tempVoteJson","checkedNonCumulatives","summedLength","acc","item","checkedResponseCandidates","cumulativeCounter","selectedBallotCandidateID","checkedMultipleChoiceOptions","loadingComponent","container","close","Object","directives","components","ValidationObserver","ValidationProvider","ValidInput","watch","mounted","computed","determineRows","dateFormat","filteredList","map","entry","date","submittedVoteCountByUnit","moment","format","exception","Button","processVote","currentHoaId","selectedBallotID","formatDateFn","show","field","aria","width","sortable","searchable","styles","formRow","padding","whiteSpace","filterButton","float","marginTop","PageContent","ModernTable","VoteModal","Modal","hoaId","i18n","messages","en","evotingList","style","subtitle","_t","String","sectionStyles","default","containerStyles","_sectionStyles","o","module","exports","window","t","n","i","l","call","m","d","defineProperty","enumerable","Symbol","toStringTag","__esModule","create","bind","prototype","hasOwnProperty","p","s","addEventListener","passive","removeEventListener","componentInstance","CustomEvent","document","createEvent","initCustomEvent","elm","dispatchEvent","iterator","constructor","u","a","querySelector","active","scrollBy","scrollLeft","scrollTop","v","md","MouseEvent","pageX","touches","pageY","elementFromPoint","pageXOffset","pageYOffset","arg","modifiers","noleft","noright","nomiddle","noback","noforward","h","y","firstChild","g","dataset","dragscroll","noDragscroll","which","clientX","clientY","mu","mm","clientWidth","scrollWidth","clientHeight","scrollHeight","pass","x","body","deltaX","deltaY","readyState","inserted","update","oldValue","unbind","install","Number","version","split","Error","concat","directive","VueDragscroll"],"mappings":"2GACA,IAAIA,EAAI,EAAQ,QACZC,EAAU,EAAQ,QAA6BC,KAC/CC,EAAsB,EAAQ,QAC9BC,EAA0B,EAAQ,QAElCC,EAAgBF,EAAoB,UACpCG,EAAiBF,EAAwB,SAAU,CAAEG,EAAG,IAI5DP,EAAE,CAAEQ,OAAQ,QAASC,OAAO,EAAMC,QAASL,IAAkBC,GAAkB,CAC7EK,OAAQ,SAAgBC,GACtB,OAAOX,EAAQY,KAAMD,EAAYE,UAAUC,OAAQD,UAAUC,OAAS,EAAID,UAAU,QAAKE,O,kCCb7F,IAAIC,EAAS,WAAa,IAAIC,EAAIL,KAASM,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,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2G,GAAG,IAAII,EAAEgF,OAAO/L,EAAEgM,QAAQC,MAAM,KAAK,IAAIjF,EAAE+E,OAAO/L,EAAEgM,QAAQC,MAAM,KAAK,IAAI,GAAGlF,EAAE,GAAGC,EAAE,EAAE,MAAM,IAAIkF,MAAM,sEAAsEC,OAAOnM,EAAEgM,QAAQ,mDAAmDhM,EAAEoM,UAAU,aAAa/E,KAAK,oBAAoBP,QAAQA,OAAO7J,MAAM6J,OAAOuF,cAAc5M,EAAEqH,OAAO7J,IAAIC,IAAIuC,IAAIkH,EAAEH,QAAQ/G","file":"js/evoting.b48c5a75.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return ((_vm.visible && _vm.visible === true) || _vm.visible === undefined)?_c('b-button',{class:_vm.isprimary !== undefined && _vm.isprimary === true\n ? 'button is-primary is-small is-outline is-rounded'\n : 'button is-info is-light is-small is-outline is-rounded',attrs:{\"title\":_vm.tooltip,\"disabled\":_vm.disabled && _vm.disabled !== undefined && _vm.disabled === true},on:{\"click\":function($event){$event.preventDefault();return _vm.onClick.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.text))]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=036d99d6&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContent',[_c('div',{staticClass:\"level pl-2\"},[_c('div',{staticClass:\"level-left level-item title\"},[_vm._v(_vm._s(_vm.$t('evotingList.title')))])]),_c('div',[_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading}})],1),_c('Modal',{attrs:{\"toggle\":_vm.toggle},on:{\"update:toggle\":function($event){_vm.toggle=$event}}},[_c('VoteModal',{attrs:{\"ballot\":_vm.selectedBallot}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"ballot-vote-modal\":\"\",\"id\":\"ballotResponseModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"is-size-4\"},[_vm._v(\"Ballot Voting\")]),(_vm.ballotHold && _vm.ballotHold.title)?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"\" + (_vm.ballotHold.title)))+\" \")]):_vm._e(),(_vm.ballotHold && _vm.ballotHold.description)?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"\" + (_vm.ballotHold.description)))+\" \")]):_vm._e(),(\n _vm.ballotHold &&\n _vm.ballotHold.ballotType === 'multiple-choice' &&\n _vm.ballotHold.multipleChoiceNumOptionsSelectable\n )?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"Select up to \" + (_vm.ballotHold.multipleChoiceNumOptionsSelectable || 0) + \" option(s)\"))+\" \")]):_vm._e(),(\n _vm.ballotHold &&\n _vm.ballotHold.ballotType &&\n _vm.ballotHold.numOfElectionPositions &&\n _vm.ballotHold.ballotType === 'election'\n )?_c('div',{staticClass:\"is-size-6 pb-5\"},[_vm._v(\" \"+_vm._s((\"Cast no more than \" + (_vm.ballotHold.numOfElectionPositions) + \" vote(s) for the election candidates\"))+\" \")]):_vm._e(),_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var handleSubmit = ref.handleSubmit;\nreturn [_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.confirmVoteConfirmation)}}},[_c('fieldset',[(_vm.ballotHold && _vm.ballotHold.ballotType === 'yes-no')?_c('div',[_c('b-field',[_c('b-radio',{attrs:{\"name\":\"yesNo\",\"native-value\":\"yes\",\"disabled\":_vm.ballotResponseTemp !== null},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:\"radio\"}},[_vm._v(\" \"+_vm._s(_vm.ballotHold.yesOptionDescription)+\" \")])],1),_c('b-field',[_c('b-radio',{attrs:{\"name\":\"yesNo\",\"native-value\":\"no\",\"disabled\":_vm.ballotResponseTemp !== null},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:\"radio\"}},[_vm._v(\" \"+_vm._s(_vm.ballotHold.noOptionDescription)+\" \")])],1)],1):_vm._e(),(_vm.ballotHold && _vm.ballotHold.ballotType === 'election')?_c('div',[(\n _vm.ballotHold.electionVotingIsCumulative &&\n _vm.ballotHold.electionVotingIsCumulative === true\n )?_c('div',_vm._l((_vm.ballotHold.ballotCandidates),function(c,index){return _c('div',{key:index,staticClass:\"block column is-12\"},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-4\"},[_vm._v(\" \"+_vm._s(c.isWriteIn != null && c.isWriteIn === true ? ((c.name) + \" (Write-In)\") : c.name)+\" \")]),_c('div',{staticClass:\"column\"},[_c('b-numberinput',{attrs:{\"min\":\"0\",\"max\":parseInt(_vm.ballotHold.numOfElectionPositions),\"name\":(\"candidateCheckboxGroup\" + index),\"vid\":(\"candidateCheckboxGroup\" + index),\"id\":(\"\" + (c.ballotCandidateID)),\"disabled\":_vm.ballotResponseTemp !== null ? '' : false},model:{value:(_vm.candidateCheckboxGroup[index]),callback:function ($$v) {_vm.$set(_vm.candidateCheckboxGroup, index, $$v)},expression:\"candidateCheckboxGroup[index]\"}})],1),_c('div',{staticClass:\"column is-3\"},[(c.resumeDocumentID)?_c('span',[_c('b-button',{attrs:{\"type\":\"is-text\"},on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(c.ballotCandidateID)}}},[_vm._v(\"View Resume PDF\")])],1):_vm._e()])])])}),0):_c('div',_vm._l((_vm.ballotHold.ballotCandidates),function(c,index){return _c('div',{key:index},[_c('b-field',[_c('span',{staticClass:\"columns is-12\"},[_c('span',{staticClass:\"column is-6\"},[_c('b-checkbox',{attrs:{\"native-value\":c.ballotCandidateID,\"disabled\":_vm.ballotResponseTemp !== null},model:{value:(_vm.candidateRadioGroup),callback:function ($$v) {_vm.candidateRadioGroup=$$v},expression:\"candidateRadioGroup\"}},[_vm._v(\" \"+_vm._s(c.isWriteIn != null && c.isWriteIn === true ? ((c.name) + \" (Write-In)\") : c.name)+\" \")])],1),(c.resumeDocumentID)?_c('span',{staticClass:\"column is-3\"},[_c('b-button',{attrs:{\"type\":\"is-text\"},on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(c.ballotCandidateID)}}},[_vm._v(\"View Resume PDF\")])],1):_vm._e()])])],1)}),0),(\n _vm.ballotHold &&\n _vm.ballotHold.writeInCandidatesEnabled !== undefined &&\n _vm.ballotHold.writeInCandidatesEnabled === true\n )?_c('div',{staticClass:\"columns is-12\"},[_c('div',{staticClass:\"column is-6 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px\"},attrs:{\"name\":\"WriteInName\",\"label\":\"Write-In Name\",\"type\":\"text\",\"vid\":\"WriteInName\",\"placeholder\":\"Write-In Name\",\"spellcheck\":\"true\",\"aria-label\":\"Write-In Name\",\"rules\":\"max:50\",\"disabled\":_vm.ballotResponseTemp !== null,\"editable\":_vm.ballotResponseTemp !== null},model:{value:(_vm.writeInName),callback:function ($$v) {_vm.writeInName=$$v},expression:\"writeInName\"}})],1),_c('div',{staticClass:\"column is-6 pt-6\"},[_c('button',{staticClass:\"button is-info\",attrs:{\"disabled\":_vm.ballotResponseTemp !== null,\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addWriteIn()}}},[_vm._v(\" Add \")])])]):_vm._e()]):_vm._e(),(_vm.ballotHold && _vm.ballotHold.ballotType === 'multiple-choice')?_c('div',_vm._l((_vm.ballotHold.ballotMultipleChoiceOptions),function(c,index){return _c('div',{key:index,staticClass:\"block column is-12\"},[_c('b-checkbox',{attrs:{\"native-value\":c.ballotMultipleChoiceOptionID,\"disabled\":_vm.ballotResponseTemp !== null},model:{value:(_vm.multipleChoiceCheckboxGroup),callback:function ($$v) {_vm.multipleChoiceCheckboxGroup=$$v},expression:\"multipleChoiceCheckboxGroup\"}},[_vm._v(\" \"+_vm._s(c.description)+\" \")])],1)}),0):_vm._e(),(!_vm.ballotResponseTemp)?_c('div',{staticClass:\"pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"disabled\":_vm.disableVoteButton,\"type\":\"submit\"}},[_vm._v(\" Vote \")])]):_c('div',{staticClass:\"pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal()}}},[_vm._v(\" Close \")])])]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\nreturn [_c('div',{staticClass:\"field\"},[_c('span',[_vm._v(_vm._s(errors[0]))])])]}}],null,true)})],1)])])]}}])})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function data() {\r\n return {\r\n isDebug: true,\r\n isOpen: false,\r\n loading: true,\r\n isFetching: false,\r\n openOnFocus: true,\r\n file: null,\r\n base64pdf: '',\r\n scale: 1,\r\n imageContent: null,\r\n attachment: false,\r\n ballotResponseID: 0,\r\n ballotResponseTemp: null,\r\n ballotResponse: null,\r\n ballotID: 0,\r\n ballotType: '',\r\n ballotHold: null,\r\n radio: '',\r\n candidateRadioGroup: [],\r\n candidateCheckboxGroup: [],\r\n multipleChoiceCheckboxGroup: [],\r\n formData: {},\r\n name: '',\r\n data: [],\r\n responseCandidates: [],\r\n responseMultipleChoices: [],\r\n ballotResponses: [],\r\n writeInName: '',\r\n disableVoteButton: false\r\n }\r\n}\r\n","/*\r\n import { ballotResponseStore } from '@/services/BallotResponse/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport _get from 'lodash/get'\r\nimport { notifyProblem, notifyError, notifyMessage } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await ballotResponseStore.dispatch (' async getBallotResponseList({}, { ballotID }) {\r\n', {\r\n ballotID\r\n });\r\n */\r\n\r\n async getBallotResponseList({}, { ballotID, unitID }) {\r\n console.log('in getBallotResponseList...' + ballotID)\r\n try {\r\n let path = `/EVoting/BallotResponse/List?ballotID=${ballotID}`\r\n\r\n if (unitID) {\r\n path = `${path}&unitID=${unitID}`\r\n }\r\n\r\n const results = await kms.get(path)\r\n\r\n if (isDebug == true) console.debug('getBallotResponseList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The ballot response list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n async deleteBallotResponse({ dispatch }, { ballotResponseID, done }) {\r\n try {\r\n const path = `/EVoting/BallotResponse/${ballotResponseID}?forceDelete=false`\r\n\r\n const results = await kms.delete(path)\r\n\r\n if (isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n const wasDeleted = _get(results, 'deleted', false)\r\n\r\n if (wasDeleted === true) {\r\n notifyMessage(`Successfully deleted this ballot response.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting this ballot response.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem deleting this ballot response.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async getBallotResponseById({}, { ballotResponseID, unitID }) {\r\n try {\r\n console.debug('in getBallotResponseById...')\r\n\r\n let path = `/EVoting/BallotResponse/${ballotResponseID}`\r\n if (unitID) {\r\n path = `${path}?unitID=${unitID}`\r\n }\r\n\r\n const result = await kms.get(path)\r\n\r\n if (isDebug == true) console.debug('getBallotResponseById=' + JSON.stringify(result))\r\n\r\n return {\r\n result: result\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving this ballot response.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n result: {}\r\n }\r\n },\r\n\r\n async hasVotedonBallotResponseAlready({ dispatch }, { ballotID, ownerID, unitID, done }) {\r\n try {\r\n console.debug('in hasVotedonBallotResponseAlready...')\r\n\r\n const result = await kms.get('/EVoting/BallotResponse/HasVotedOnBallotResponseAlready', {\r\n params: {\r\n ballotID,\r\n ownerID,\r\n unitID\r\n }\r\n })\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n if (isDebug == true)\r\n console.debug('hasVotedonBallotResponseAlready=' + JSON.stringify(result))\r\n\r\n done({ detail: result })\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving whether this ballot was voted on already.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async addBallotResponse({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addBallotResponse')\r\n try {\r\n const results = await kms.post(`/EVoting/BallotResponse`, {\r\n ballotID: payload.ballotID,\r\n unitID: payload.unitID,\r\n ownerID: payload.ownerID,\r\n ballotDocumentID: payload.ballotDocumentID,\r\n voteDataJson: payload.voteDataJson,\r\n isHomeOwner: payload.isHomeOwner !== undefined && payload.isHomeOwner ? true : false\r\n })\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.ballotResponseID > 0) {\r\n notifyMessage(`Successfully added this ballot response.`)\r\n done({ detail: results })\r\n } else {\r\n notifyError('There was a problem adding this ballot response.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem adding this ballot response.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async updateBallotResponse({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/EVoting/BallotResponse`, payload)\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.ballotResponseID > 0) {\r\n notifyMessage(`Successfully updated this ballot response.`)\r\n done({ detail: results })\r\n } else {\r\n notifyError('There was a problem updating this ballot response.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem processing the update for this ballot response.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async getResponseFile({ dispatch }, { params, done }) {\r\n const path = `/EVoting/BallotResponse/GetFile`\r\n const result = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true) console.debug('getResponseFile=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result) {\r\n console.debug(`Successfully retrieved this document.`)\r\n done({ details: result })\r\n } else {\r\n console.error('There was a problem retrieving this document.')\r\n }\r\n },\r\n\r\n async uploadDocument({ dispatch }, { payload = {}, done }) {\r\n const formData = new FormData()\r\n formData.append('file', payload.file)\r\n\r\n try {\r\n const path = `/EVoting/BallotResponse/StoreDocument?ballotResponseID=${payload.ballotResponseID}`\r\n const ballotDocumentFile = await kms.post(path, formData, {\r\n 'Content-Type': 'multipart/form-data'\r\n })\r\n\r\n console.debug('uploadDocument ballot response path=' + path)\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (isDebug == true)\r\n console.debug(\r\n 'uploadDocument ballot resopnse with payload=' + JSON.stringify(ballotDocumentFile)\r\n )\r\n\r\n done({ returnedFile: ballotDocumentFile })\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const ballotResponseStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","/*\r\n import { ballotCandidateStore } from '@/services/BallotCandidate/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport _get from 'lodash/get'\r\nimport { notifyProblem, notifyError, notifyMessage } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await ballotCandidateStore.dispatch ('getBallotCandidateList', {\r\n ballotID\r\n });\r\n */\r\n\r\n async getBallotCandidateList({}, { ballotID, includeWriteIns }) {\r\n console.log('in getBallotCandidateList...' + ballotID)\r\n try {\r\n const results = await kms.get(\r\n `/EVoting/BallotCandidate/List?ballotID=${ballotID}&includeWriteIns=${includeWriteIns}`\r\n )\r\n\r\n if (isDebug == true) console.debug('getBallotCandidateList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The ballot candidate list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n async getBallotCandidateById({}, { ballotCandidateID }) {\r\n try {\r\n console.debug('in getBallotCandidateById...')\r\n const result = await kms.get(`/EVoting/BallotCandidate/${ballotCandidateID}`)\r\n\r\n if (isDebug == true) console.debug('getBallotCandidateById=' + JSON.stringify(result))\r\n\r\n return {\r\n result: result\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving this ballot candidate.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n result: {}\r\n }\r\n },\r\n\r\n async deleteBallotCandidate({ dispatch }, { ballotCandidateID, done }) {\r\n try {\r\n const path = `/EVoting/BallotCandidate/${ballotCandidateID}?forceDelete=false`\r\n\r\n const results = await kms.delete(path)\r\n\r\n if (isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n const wasDeleted = _get(results, 'deleted', false)\r\n\r\n if (wasDeleted === true) {\r\n notifyMessage(`Successfully deleted this candidate.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting this candidate.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem deleting this candidate.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async addBallotCandidate({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addBallotCandidate')\r\n try {\r\n const results = await kms.post(`/EVoting/BallotCandidate`, {\r\n ballotID: payload.ballotID,\r\n name: payload.name,\r\n resume: payload.resume,\r\n writeInByUnitID: payload.writeInByUnitID,\r\n isWriteIn: payload.isWriteIn\r\n })\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.ballotID > 0) {\r\n notifyMessage(`Successfully added this candidate.`)\r\n done({ detail: results })\r\n } else {\r\n notifyError('There was a problem adding this candidate.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem adding this candidate.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n // Update Ballot Candidate\r\n async updateBallotCandidate({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/EVoting/BallotCandidate`, payload)\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.ballotCandidateID > 0) {\r\n notifyMessage(`Successfully updated this candidate.`)\r\n done({ detail: results })\r\n } else {\r\n notifyError('There was a problem updating this candidate.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem processing the update for this candidate.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async getResumeFile({ dispatch }, { params, done }) {\r\n const path = `/EVoting/BallotCandidate/GetFile`\r\n const result = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true) console.debug('getResumeFile=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result) {\r\n console.debug(`Successfully retrieved this candidat'e resume.`)\r\n done({ details: result })\r\n } else {\r\n console.error('There was a problem retrieving this resume.')\r\n }\r\n },\r\n\r\n async uploadDocument({ dispatch }, { payload = {}, done }) {\r\n const formData = new FormData()\r\n formData.append('file', payload.file)\r\n\r\n try {\r\n const path = `/EVoting/BallotCandidate/StoreDocument?hoaID=${payload.hoaID}&ballotCandidateID=${payload.ballotCandidateID}`\r\n const resumeDocumentFile = await kms.post(path, formData, {\r\n 'Content-Type': 'multipart/form-data'\r\n })\r\n\r\n console.debug('uploadDocument path=' + path)\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (isDebug == true)\r\n console.debug('uploadDocument with payload=' + JSON.stringify(resumeDocumentFile))\r\n\r\n done({ returnedFile: resumeDocumentFile })\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const ballotCandidateStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","/*\r\n import { ballotStore } from '@/services/Ballot/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport _get from 'lodash/get'\r\nimport { notifyProblem, notifyError, notifyMessage } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await ballotStore.dispatch ('getBallotList', {\r\n hoaId\r\n });\r\n */\r\n\r\n async getBallotTypeList({}) {\r\n try {\r\n let ballotTypes = [\r\n { value: 'yesno', label: 'Yes / No' },\r\n { value: 'election', label: 'Election' },\r\n { value: 'multiplechoice', label: 'Multiple Choice' }\r\n ]\r\n\r\n if (isDebug == true) console.debug('ballotTypes=' + JSON.stringify(ballotTypes))\r\n\r\n return {\r\n list: ballotTypes\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving the ballot type list.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n async getBallotList({}, { hoaID, publishedAndCompleteBy, unitID }) {\r\n console.log('in getBallotList...' + unitID)\r\n try {\r\n let path = `/EVoting/Ballot/List?hoaID=${hoaID}&publishedAndCompleteBy=${publishedAndCompleteBy}`\r\n if (unitID) {\r\n path = `${path}&unitID=${unitID}`\r\n }\r\n const results = await kms.get(path)\r\n\r\n if (isDebug == true) console.debug('getBallotList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyError(`The ballot list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n async deleteBallot({ dispatch }, { ballotID, done }) {\r\n try {\r\n const path = `/EVoting/Ballot/${ballotID}?forceDelete=false`\r\n\r\n const results = await kms.delete(path)\r\n\r\n if (isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n const wasDeleted = _get(results, 'deleted', false)\r\n\r\n if (wasDeleted === true) {\r\n notifyMessage(`Successfully deleted this ballot.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting this ballot.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem deleting this ballot.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async getBallotById({}, { ballotID, unitID }) {\r\n try {\r\n console.debug('in getBallotById...')\r\n let path = `/EVoting/Ballot/${ballotID}`\r\n\r\n if (unitID) {\r\n path = `${path}?unitID=${unitID}`\r\n }\r\n\r\n const result = await kms.get(path)\r\n\r\n if (isDebug == true) console.debug('getBallotById=' + JSON.stringify(result))\r\n\r\n return {\r\n result: result\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem retrieving this ballot detail.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n result: {}\r\n }\r\n },\r\n\r\n async addBallot({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addBallot')\r\n try {\r\n const result = await kms.post(`/EVoting/Ballot`, {\r\n hoaID: payload.hoaID,\r\n description: payload.description,\r\n fullDescription: payload.fullDescription,\r\n title: payload.title,\r\n ballotType: payload.ballotType,\r\n yesOptionDescription: payload.yesOptionDescription,\r\n noOptionDescription: payload.noOptionDescription,\r\n multipleChoiceNumOptionsSelectable: payload.multipleChoiceNumOptionsSelectable,\r\n electionVotingIsCumulative: payload.electionVotingIsCumulative,\r\n numOfElectionPositions: payload.numOfElectionPositions,\r\n completeByDate: payload.completeByDate,\r\n isSecret: payload.isSecret,\r\n writeInCandidatesEnabled: payload.writeInCandidatesEnabled\r\n })\r\n\r\n console.debug('results=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result) {\r\n notifyMessage(`Successfully added this ballot.`)\r\n done({ detail: result })\r\n } else {\r\n notifyError('There was a problem adding this ballot.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem adding this ballot.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n // Update Ballot\r\n async updateBallot({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/EVoting/Ballot`, payload)\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.ballotID > 0) {\r\n notifyMessage(`Successfully updated this ballot.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem updating this ballot.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem processing the update for this ballot.`)\r\n console.error(exception)\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const ballotStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import { ballotResponseStore } from '@/services/BallotResponse/store'\r\nimport { ballotCandidateStore } from '@/services/BallotCandidate/store'\r\nimport { ballotStore } from '@/services/Ballot/store'\r\nimport { notifyError, notifyMessage, notifyWarning, notifyProblem } from '@/services/notify'\r\nimport $ from 'jquery'\r\nimport _get from 'lodash/get'\r\nimport { base64toBlob, showPdf } from '@/services/blobutility'\r\nimport kms from '@/services/kms'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n this.ballotID = _get(this, 'ballot.ballotID', null)\r\n\r\n await this.loadBallotResponses().then(async () => {\r\n await this.loadBallotByID()\r\n })\r\n\r\n if (\r\n this.ballotHold.writeInCandidatesEnabled === undefined ||\r\n (this.ballotHold.writeInCandidatesEnabled !== undefined &&\r\n this.ballotHold.writeInCandidatesEnabled === false)\r\n ) {\r\n console.debug('writeInCandidatesEnabled=' + this.ballotHold.writeInCandidatesEnabled)\r\n this.ballotHold.ballotCandidates = this.ballotHold.ballotCandidates.filter(\r\n f => f.isWriteIn !== true\r\n )\r\n }\r\n\r\n this.candidateCheckboxGroup = []\r\n this.candidateRadioGroup = []\r\n this.multipleChoiceCheckboxGroup = []\r\n this.responseCandidates = []\r\n this.responseMultipleChoices = []\r\n\r\n let initNumeric = true\r\n\r\n if (this.ballotResponse) {\r\n console.debug('responses.......' + JSON.stringify(this.ballotResponseTemp))\r\n if (this.ballotResponseTemp === null) {\r\n this.ballotResponseTemp = this.ballotResponse\r\n console.debug('ballotResponseTemp=' + JSON.stringify(this.ballotResponseTemp))\r\n }\r\n\r\n const parsedVoteDataJson = JSON.parse(this.ballotResponseTemp.voteDataJson)\r\n\r\n const tempBallotType = _get(this.ballotHold, 'ballotType', '')\r\n\r\n if (parsedVoteDataJson) {\r\n console.debug('parsedVoteDataJson=' + JSON.stringify(parsedVoteDataJson))\r\n\r\n if (tempBallotType === 'yes-no') {\r\n console.debug('parsedVoteDataJson=' + parsedVoteDataJson.yesNoResponse)\r\n this.radio = parsedVoteDataJson.yesNoResponse\r\n } else if (tempBallotType === 'election') {\r\n if (\r\n parsedVoteDataJson.responseCandidates &&\r\n typeof parsedVoteDataJson.responseCandidates === 'object'\r\n ) {\r\n this.responseCandidates = parsedVoteDataJson.responseCandidates\r\n\r\n console.debug('this.responseCandidates=' + JSON.stringify(this.responseCandidates))\r\n\r\n if (this.responseCandidates) {\r\n this.responseCandidates.forEach(e => {\r\n if (e) {\r\n initNumeric = false\r\n this.candidateRadioGroup.push(e.ballotCandidateID)\r\n }\r\n })\r\n }\r\n }\r\n } else if (tempBallotType === 'multiple-choice') {\r\n if (\r\n parsedVoteDataJson.multipleChoiceOptions &&\r\n typeof parsedVoteDataJson.multipleChoiceOptions === 'object'\r\n ) {\r\n this.responseMultipleChoices = parsedVoteDataJson.multipleChoiceOptions\r\n this.responseMultipleChoices.forEach(e => {\r\n if (e) {\r\n this.multipleChoiceCheckboxGroup.push(e.ballotMultipleChoiceOptionID)\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n if (initNumeric === true) {\r\n await this.initializeNumeric()\r\n } else {\r\n await this.initializeNumericEdit()\r\n }\r\n\r\n if (this.ballotResponseTemp.ballotDocumentID) {\r\n this.attachment = true\r\n this.loadCurrentDocument()\r\n }\r\n } else {\r\n //'Add'\r\n await this.initializeNumeric()\r\n }\r\n },\r\n\r\n disableVoteForWriteIn() {},\r\n\r\n async initializeNumericEdit() {\r\n //Note: if this needs to be more precise then use jquery selector on id via ballotCandidateID\r\n\r\n //initialize numeric inputs\r\n if (\r\n this.ballotHold &&\r\n this.ballotHold.ballotCandidates &&\r\n this.ballotHold.ballotCandidates.length > 0\r\n ) {\r\n console.debug('in numeric initialize...')\r\n let counter = 0\r\n this.ballotHold.ballotCandidates.forEach(e => {\r\n if (e) {\r\n if (this.responseCandidates) {\r\n this.responseCandidates.forEach(r => {\r\n if (r) {\r\n if (r.ballotCandidateID === e.ballotCandidateID) {\r\n this.candidateCheckboxGroup[counter] = r.numVotes\r\n } else if (!this.candidateCheckboxGroup[counter]) {\r\n this.candidateCheckboxGroup[counter] = 0\r\n }\r\n }\r\n })\r\n }\r\n\r\n counter++\r\n }\r\n })\r\n }\r\n },\r\n\r\n async initializeNumeric() {\r\n //initialize numeric inputs\r\n if (\r\n this.ballotHold &&\r\n this.ballotHold.ballotCandidates &&\r\n this.ballotHold.ballotCandidates.length > 0\r\n ) {\r\n console.debug('in initializeNumericEdit...')\r\n let counter = 0\r\n this.ballotHold.ballotCandidates.forEach(e => {\r\n if (e) {\r\n this.candidateCheckboxGroup[counter] = 0\r\n counter++\r\n }\r\n })\r\n }\r\n },\r\n\r\n async confirmVoteConfirmation() {\r\n this.$buefy.dialog.confirm({\r\n title: 'Confirmation of Vote',\r\n message: `

I acknowledge that I am the registered owner and authorized to cast this vote.

 

${this.ballotHold.ballotStatuteDisclaimer}

`,\r\n confirmText: 'Confirm',\r\n type: 'is-info',\r\n hasIcon: true,\r\n onConfirm: async () => await this.onFormSubmit()\r\n })\r\n },\r\n\r\n async downloadPdf(ballotCandidateID) {\r\n if (this.isDebug == true) console.debug('downloadPdf...')\r\n\r\n if (!ballotCandidateID || ballotCandidateID == undefined) {\r\n notifyProblem('There was a problem downloading this candidate resume.')\r\n }\r\n\r\n try {\r\n const params = {\r\n ballotCandidateID: ballotCandidateID,\r\n asBase64: true,\r\n asRawBase64: true\r\n }\r\n\r\n const path = `/EVoting/BallotCandidate/GetFile`\r\n const returned = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true)\r\n console.debug(\r\n 'path base64 path=' +\r\n path +\r\n ' - params' +\r\n JSON.stringify(params) +\r\n ' - returned=' +\r\n JSON.stringify(returned)\r\n )\r\n if (returned && returned != undefined) {\r\n if (this.isDebug == true) console.debug('base64pdf........................' + returned)\r\n const contentType = 'application/pdf'\r\n const blob = base64toBlob(returned, contentType)\r\n showPdf(blob)\r\n notifyMessage(`Successfully downloaded this candidate's resume.`)\r\n return\r\n }\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n notifyWarning('There was a problem downloading this resume.')\r\n }\r\n },\r\n\r\n async loadBallotResponses() {\r\n const ballotID = this.ballotID\r\n\r\n console.log('loadBallotResponses?')\r\n\r\n const unitID = this.currentUnitId\r\n ? this.currentUnitId\r\n : _get(this, 'authUser.ownerUser.unitID', null)\r\n\r\n await ballotResponseStore\r\n .dispatch('getBallotResponseList', {\r\n ballotID,\r\n unitID\r\n })\r\n .then(({ list }) => {\r\n if (list) {\r\n this.ballotResponses = list\r\n }\r\n })\r\n },\r\n\r\n async loadBallotByID() {\r\n console.debug('in loadBallotByID')\r\n await ballotStore\r\n .dispatch('getBallotById', {\r\n ballotID: this.ballotID,\r\n unitID: this.currentUnitId\r\n })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n let response = null\r\n\r\n console.debug('in loadBallotByID...' + JSON.stringify(this.ballotResponses))\r\n\r\n let tempBallotType = _get(result, 'ballotType', '')\r\n if (tempBallotType === 'yes-no') {\r\n this.ballotType = 'Yes / No'\r\n console.debug('yes-no ballot response=')\r\n\r\n if (this.ballot && this.ballotResponses) {\r\n response = this.ballotResponses.filter(\r\n w =>\r\n w.unitID === this.currentUnitId &&\r\n w.ownerID === this.currentOwnerId &&\r\n w.voteDataJson.indexOf('yesNoResponse') >= 0\r\n )\r\n\r\n console.debug('yes-no ballot response=' + JSON.stringify(response))\r\n }\r\n } else if (tempBallotType === 'multiple-choice') {\r\n this.ballotType = 'Multiple Choice'\r\n if (this.ballot && this.ballotResponses) {\r\n response = this.ballotResponses.filter(\r\n w =>\r\n w.unitID === this.currentUnitId &&\r\n w.ownerID === this.currentOwnerId &&\r\n w.voteDataJson.indexOf('multipleChoiceOptions') >= 0\r\n )\r\n }\r\n } else if (tempBallotType === 'election') {\r\n this.ballotType = 'Election'\r\n if (this.ballot && this.ballotResponses) {\r\n response = this.ballotResponses.filter(\r\n w =>\r\n w.unitID === this.currentUnitId &&\r\n w.ownerID === this.currentOwnerId &&\r\n w.voteDataJson.indexOf('responseCandidates') >= 0\r\n )\r\n }\r\n } else {\r\n this.ballotType = ''\r\n }\r\n\r\n this.ballotHold = result\r\n\r\n if (response) {\r\n this.ballotResponse = response[0]\r\n console.debug('response to ballotResponse...' + JSON.stringify(this.ballotResponse))\r\n }\r\n\r\n console.debug('loadBallotByID=' + JSON.stringify(this.ballotHold))\r\n }\r\n })\r\n },\r\n\r\n async loadCurrentDocument() {\r\n if (\r\n !this.ballotResponseTemp ||\r\n !this.ballotResponseTemp.ballotResponseID ||\r\n this.ballotResponseTemp.ballotResponseID <= 0\r\n ) {\r\n return\r\n }\r\n\r\n try {\r\n const params = {\r\n ballotResponseID: this.ballotResponseTemp.ballotResponseID,\r\n asBase64: true\r\n }\r\n\r\n await ballotResponseStore.dispatch('getResponseFile', {\r\n params: params,\r\n done: ({ details }) => {\r\n if (details) {\r\n if (this.isDebug == true)\r\n console.debug(\r\n ' - params' + JSON.stringify(params) + ' - this.getResponseFile=' + details\r\n )\r\n\r\n this.base64pdf = details\r\n this.imageContent = null\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n }\r\n },\r\n\r\n async submitFile() {\r\n if (!this.ballotResponseID && this.ballotResponseID <= 0) {\r\n notifyError('There was a problem uploading this document.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n try {\r\n if (this.file) {\r\n const payload = {\r\n ballotResponseID: this.ballotResponseID,\r\n file: this.file\r\n }\r\n\r\n await ballotResponseStore.dispatch('uploadDocument', {\r\n payload: payload,\r\n done: ({ returnedFile }) => {\r\n if (returnedFile) {\r\n notifyMessage(`Successfully uploaded this response document.`)\r\n } else {\r\n notifyError('There was a problem uploading this response document.')\r\n }\r\n }\r\n })\r\n }\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n this.loading = false\r\n },\r\n\r\n async getBallotResponseById() {\r\n await ballotResponseStore\r\n .dispatch('getBallotResponseById', {\r\n ballotResponseID: this.ballotResponseID,\r\n unitID: this.currentUnitId\r\n ? this.currentUnitId\r\n : _get(this.authUser.ownerUser, 'unitID', null)\r\n })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n this.ballotResponseTemp = result\r\n }\r\n })\r\n },\r\n\r\n open() {\r\n this.isOpen = true\r\n this.loading = false\r\n },\r\n\r\n closeModal() {\r\n this.$emit('update:toggle', (this.documentToggle = !this.documentToggle))\r\n\r\n // auto-close modal\r\n $('#clickclose').click()\r\n },\r\n\r\n async onFormSubmit() {\r\n if (!this.formData || (this.formData === undefined && this.ballotHold)) {\r\n notifyError('There was a problemm saving this response.')\r\n return\r\n }\r\n\r\n console.debug('ballotType=' + this.ballotHold.ballotType)\r\n\r\n let tempVoteJson = ''\r\n if (this.ballotHold.ballotType === 'yes-no' && this.radio) {\r\n tempVoteJson = {\r\n yesNoResponse: this.radio\r\n }\r\n } else if (this.ballotHold.ballotType === 'election') {\r\n console.debug(\r\n 'election electionVotingIsCumulative=' + this.ballotHold.electionVotingIsCumulative\r\n )\r\n\r\n if (\r\n (!this.ballotHold.electionVotingIsCumulative ||\r\n this.ballotHold.electionVotingIsCumulative === false) &&\r\n this.candidateRadioGroup &&\r\n this.candidateRadioGroup.length > 0\r\n ) {\r\n console.debug('non-cumulative election....')\r\n console.debug('candidate radio group=' + this.candidateRadioGroup)\r\n\r\n //Validate open positions\r\n if (\r\n this.ballotHold.numOfElectionPositions > 0 &&\r\n this.ballotHold.numOfElectionPositions !== this.candidateRadioGroup.length\r\n ) {\r\n this.candidateRadioGroup = []\r\n notifyError(\r\n `Cast no more or less than ${this.ballotHold.numOfElectionPositions || 0} vote(s).`\r\n )\r\n return\r\n }\r\n\r\n let checkedNonCumulatives = []\r\n if (this.candidateRadioGroup && this.candidateRadioGroup.length > 0) {\r\n this.candidateRadioGroup.forEach(e => {\r\n if (e) {\r\n checkedNonCumulatives.push({ ballotCandidateID: e, numVotes: 1 })\r\n }\r\n })\r\n }\r\n\r\n tempVoteJson = {\r\n responseCandidates: checkedNonCumulatives\r\n }\r\n } else {\r\n console.debug('cumulative election...........')\r\n console.debug('candidate radio=' + this.candidateCheckboxGroup)\r\n\r\n const summedLength = this.candidateCheckboxGroup.reduce((acc, item) => acc + item, 0)\r\n\r\n console.debug(summedLength + ', Cumulative Sums=' + this.candidateCheckboxGroup)\r\n\r\n if (\r\n this.ballotHold.numOfElectionPositions > 0 &&\r\n this.ballotHold.numOfElectionPositions !== summedLength\r\n ) {\r\n notifyError(\r\n `Cast no more or less than ${this.ballotHold.numOfElectionPositions || 0} vote(s).`\r\n )\r\n return\r\n }\r\n\r\n let checkedResponseCandidates = []\r\n if (this.candidateCheckboxGroup && this.candidateCheckboxGroup.length > 0) {\r\n let cumulativeCounter = 0\r\n\r\n this.candidateCheckboxGroup.forEach(e => {\r\n if (e) {\r\n let selectedBallotCandidateID = _get(\r\n this.ballotHold.ballotCandidates[cumulativeCounter],\r\n 'ballotCandidateID',\r\n null\r\n )\r\n\r\n if (selectedBallotCandidateID) {\r\n checkedResponseCandidates.push({\r\n ballotCandidateID: selectedBallotCandidateID,\r\n numVotes: e\r\n })\r\n }\r\n }\r\n cumulativeCounter++\r\n })\r\n }\r\n\r\n tempVoteJson = {\r\n responseCandidates: checkedResponseCandidates\r\n }\r\n }\r\n } else if (this.ballotHold.ballotType === 'multiple-choice') {\r\n let checkedMultipleChoiceOptions = []\r\n\r\n if (this.multipleChoiceCheckboxGroup && this.multipleChoiceCheckboxGroup.length > 0) {\r\n //Validate maximum selectable\r\n if (\r\n this.multipleChoiceCheckboxGroup.length >\r\n this.ballotHold.multipleChoiceNumOptionsSelectable\r\n ) {\r\n notifyError(\r\n `Please select up to ${this.ballotHold.multipleChoiceNumOptionsSelectable ||\r\n 0} choice(s).`\r\n )\r\n return\r\n }\r\n\r\n this.multipleChoiceCheckboxGroup.forEach(e => {\r\n if (e) {\r\n checkedMultipleChoiceOptions.push({ ballotMultipleChoiceOptionID: e })\r\n }\r\n })\r\n }\r\n\r\n tempVoteJson = {\r\n multipleChoiceOptions: checkedMultipleChoiceOptions\r\n }\r\n }\r\n\r\n this.loading = true\r\n\r\n const loadingComponent = this.$buefy.loading.open({\r\n container: null\r\n })\r\n\r\n try {\r\n const payload = {\r\n ballotID: this.ballotID,\r\n unitID: this.currentUnitId,\r\n ownerID: this.currentOwnerId,\r\n ballotDocumentID: _get(this.ballotResponseTemp, 'ballotDocumentID', null),\r\n voteDataJson: JSON.stringify(tempVoteJson),\r\n isHomeOwner: true\r\n }\r\n\r\n console.debug('payload=' + JSON.stringify(payload))\r\n\r\n if (this.ballotResponseTemp && this.ballotResponseTemp !== undefined) {\r\n payload.ballotResponseID = this.ballotResponseTemp.ballotResponseID\r\n\r\n await ballotResponseStore.dispatch('updateBallotResponse', {\r\n payload,\r\n done: async ({ detail }) => {\r\n if (detail) {\r\n this.ballotResponseID = detail.ballotResponseID\r\n\r\n if (this.file && payload.ballotDocumentID == null) {\r\n this.submitFile()\r\n }\r\n\r\n this.closeModal()\r\n }\r\n }\r\n })\r\n } else {\r\n await ballotResponseStore.dispatch('addBallotResponse', {\r\n payload,\r\n done: async ({ detail }) => {\r\n if (detail) {\r\n console.debug('add candidate detail=' + JSON.stringify(detail))\r\n this.ballotResponseID = detail.ballotResponseID\r\n\r\n if (this.file) {\r\n this.submitFile()\r\n }\r\n\r\n this.closeModal()\r\n }\r\n }\r\n })\r\n }\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n loadingComponent.close()\r\n\r\n this.loading = false\r\n },\r\n\r\n async addWriteIn() {\r\n if (!this.writeInName || this.writeInName === undefined) {\r\n notifyError('The write-in candidate name is required.')\r\n return\r\n }\r\n\r\n if (this.writeInName.length > 50) {\r\n notifyError('Please enter only fifty characters for the write-in candidate.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n this.disableVoteButton = false\r\n\r\n try {\r\n const payload = {\r\n ballotID: this.ballotID,\r\n name: this.writeInName,\r\n isWriteIn: true,\r\n writeInByUnitID: this.currentUnitId,\r\n resume: `Write-in Candidate for ${this.writeInName}`\r\n }\r\n\r\n console.log('payload=' + JSON.stringify(payload))\r\n\r\n await ballotCandidateStore.dispatch('addBallotCandidate', {\r\n payload,\r\n done: async ({ detail }) => {\r\n if (detail) {\r\n console.debug('write-in inserted...')\r\n await this.reload()\r\n this.writeInName = ''\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n this.loading = false\r\n }\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=68b05d1f&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Button from '@/components/buttons/Button'\r\nimport _get from 'lodash/get'\r\nimport moment from 'moment'\r\nimport { ballotStore } from '@/services/Ballot/store'\r\n\r\nexport const methods = {\r\n determineRows: function(list) {\r\n const dateFormat = 'LL'\r\n\r\n let filteredList = list\r\n\r\n var rows = filteredList.map(entry => {\r\n const description = _get(entry, 'description', '')\r\n var date = _get(entry, 'completeByDate', '')\r\n const submittedVoteCountByUnit = _get(entry, 'submittedBallotCount', 0)\r\n\r\n try {\r\n date = moment(date).format(dateFormat)\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n description,\r\n date: {\r\n date,\r\n format: dateFormat\r\n },\r\n\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.processVote(entry)\r\n },\r\n text: submittedVoteCountByUnit > 0 ? 'View' : 'Vote',\r\n isprimary: submittedVoteCountByUnit > 0 ? false : true\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async reload() {\r\n console.debug('in reload...')\r\n this.loading = true\r\n\r\n await ballotStore\r\n .dispatch('getBallotList', {\r\n hoaID: this.currentHoaId,\r\n publishedAndCompleteBy: true,\r\n unitID: this.currentUnitId\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n this.loading = false\r\n })\r\n },\r\n\r\n processVote(ballot) {\r\n if (ballot) {\r\n this.selectedBallot = ballot\r\n this.toggle = true\r\n }\r\n }\r\n}\r\n","import moment from 'moment'\r\n\r\nexport const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n toggle: false,\r\n selectedBallot: null,\r\n selectedBallotID: 0,\r\n formatDateFn: function(value) {\r\n return value != null ? moment(value, 'YYYY/MM/DD HH:mm:ss').format('MM-DD-YYYY') : ''\r\n },\r\n\r\n filters: {\r\n show: false\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'description',\r\n label: 'Description',\r\n aria: 'Description',\r\n width: '80%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'date',\r\n label: 'Complete By',\r\n aria: 'Complete By',\r\n width: '20%',\r\n date: true,\r\n sortable: true,\r\n searchable: true\r\n }\r\n ],\r\n\r\n styles: {\r\n formRow: {\r\n padding: '10px',\r\n whiteSpace: 'nowrap'\r\n },\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=80e64f76&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page\",attrs:{\"role\":\"main\",\"aria-label\":_vm.title,\"tests-id\":(\"PageContent-\" + _vm.title)}},[_c('div',{staticClass:\"container\",style:(_vm.containerStyles)},[_c('div',{staticClass:\"section\",style:(_vm._sectionStyles)},[(_vm.title)?_c('h3',[_vm._v(_vm._s(_vm.title))]):_vm._e(),(_vm.subtitle)?_c('span',{staticClass:\"subtitle\"},[_vm._v(_vm._s(_vm.subtitle))]):_vm._e(),_vm._t(\"default\")],2)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageContent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageContent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PageContent.vue?vue&type=template&id=2b51c2b9&\"\nimport script from \"./PageContent.vue?vue&type=script&lang=js&\"\nexport * from \"./PageContent.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","!function(e,o){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=o():\"function\"==typeof define&&define.amd?define([],o):\"object\"==typeof exports?exports.VueDragScroll=o():e.VueDragScroll=o()}(window,(function(){return function(e){var o={};function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:n})},t.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&o&&\"string\"!=typeof e)for(var r in e)t.d(n,r,function(o){return e[o]}.bind(null,r));return n},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,\"a\",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p=\"/dist/\",t(t.s=0)}([function(e,o,t){\"use strict\";t.r(o),t.d(o,\"dragscroll\",(function(){return d}));var n=function(e,o,t){for(var n=0,r=o.length;n=s.scrollWidth||0===s.scrollLeft,p=s.scrollTop+s.clientHeight>=s.scrollHeight||0===s.scrollTop;u=-e+(e=a?n.clientX:n.touches[0].clientX),c=-r+(r=a?n.clientY:n.touches[0].clientY),o.modifiers.pass?(s.scrollLeft-=o.modifiers.y?-0:u,s.scrollTop-=o.modifiers.x?-0:c,s===document.body&&(s.scrollLeft-=o.modifiers.y?-0:u,s.scrollTop-=o.modifiers.x?-0:c),(v||o.modifiers.y)&&m(-u,0),(p||o.modifiers.x)&&m(0,-c)):(o.modifiers.x&&(c=-0),o.modifiers.y&&(u=-0),s.scrollLeft-=u,s.scrollTop-=c,s===document.body&&(s.scrollLeft-=u,s.scrollTop-=c)),f.deltaX=-u,f.deltaY=-c,i(t,\"dragscrollmove\",f)}},n(s,u,s.md),n(window,a,s.mu),n(window,c,s.mm)};d?\"complete\"===document.readyState?v():window.addEventListener(\"load\",v):(r(s,u,s.md),r(window,a,s.mu),r(window,c,s.mm))},d={inserted:function(e,o,t){s(e,o,t)},update:function(e,o,t,n){JSON.stringify(o.value)!==JSON.stringify(o.oldValue)&&s(e,o,t)},unbind:function(e,o,t){var n=e;r(n,u,n.md),r(window,a,n.mu),r(window,c,n.mm)}},f={install:function(e,o){var t=Number(e.version.split(\".\")[0]),n=Number(e.version.split(\".\")[1]);if(t<2&&n<1)throw new Error(\"v-dragscroll supports vue version 2.1 and above. You are using Vue@\".concat(e.version,\". Please upgrade to the latest version of Vue.\"));e.directive(\"dragscroll\",d)}};\"undefined\"!=typeof window&&window.Vue&&(window.VueDragscroll=f,window.Vue.use(f));o.default=f}])}));\n//# sourceMappingURL=vue-dragscroll.min.js.map"],"sourceRoot":""}