{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/components/menus/Details.vue?5d1d","webpack:///src/components/menus/Details.vue","webpack:///./src/components/menus/Details.vue?1779","webpack:///./src/components/menus/Details.vue","webpack:///./src/components/inputs/DatePicker/index.vue?acb0","webpack:///./src/services/Hoa/store.js","webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./src/components/transitions/Slide.vue?a83b","webpack:///./src/services/Ballot/store.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/Management/evoting/details/index.vue?c00c","webpack:///./src/components/transitions/Slide.vue?ab9d","webpack:///src/components/transitions/Slide.vue","webpack:///./src/components/transitions/Slide.vue?8d18","webpack:///./src/components/transitions/Slide.vue","webpack:///./node_modules/lodash/now.js","webpack:///./node_modules/lodash/_trimmedEndIndex.js","webpack:///./src/components/inputs/DatePicker/index.vue?f395","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/index.vue?a19c","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/keys/data.js","webpack:///./src/services/BallotResponse/store.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/Download.vue?fc79","webpack:///src/pages/Management/evoting/details/tabs/evotingResponses/components/Download.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/Download.vue?efdd","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/Download.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/keys/methods.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/index.vue?0e4b","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/keys/data.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/keys/methods.js","webpack:///src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/index.vue?db5a","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/components/ballotResponseModal/index.vue","webpack:///src/pages/Management/evoting/details/tabs/evotingResponses/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/index.vue?59c2","webpack:///./src/pages/Management/evoting/details/tabs/evotingResponses/index.vue","webpack:///./node_modules/vue-dragscroll/dist/vue-dragscroll.min.js","webpack:///./src/pages/Management/evoting/List.vue?617e","webpack:///./src/pages/Management/evoting/components/ballotModal/index.vue?8d04","webpack:///./src/pages/Management/evoting/components/ballotModal/keys/data.js","webpack:///./src/pages/Management/evoting/components/ballotModal/keys/methods.js","webpack:///src/pages/Management/evoting/components/ballotModal/index.vue","webpack:///./src/pages/Management/evoting/components/ballotModal/index.vue?5162","webpack:///./src/pages/Management/evoting/components/ballotModal/index.vue","webpack:///./src/pages/Management/evoting/keys/methods.js","webpack:///./src/pages/Management/evoting/keys/data.js","webpack:///src/pages/Management/evoting/List.vue","webpack:///./src/pages/Management/evoting/List.vue?0b53","webpack:///./src/pages/Management/evoting/List.vue","webpack:///./node_modules/lodash/_baseTrim.js","webpack:///./src/components/inputs/DatePicker/index.vue?1e03","webpack:///./src/components/inputs/DatePicker/keys/data.js","webpack:///./src/components/inputs/DatePicker/keys/methods.js","webpack:///src/components/inputs/DatePicker/index.vue","webpack:///./src/components/inputs/DatePicker/index.vue?4f0a","webpack:///./src/components/inputs/DatePicker/index.vue","webpack:///./src/pages/Management/evoting/details/index.vue?8d7c","webpack:///./src/pages/Management/evoting/details/keys/data.js","webpack:///./src/pages/Management/evoting/details/keys/methods.js","webpack:///./src/pages/Management/evoting/details/keys/watch.js","webpack:///src/pages/Management/evoting/details/index.vue","webpack:///./src/pages/Management/evoting/details/index.vue?d305","webpack:///./src/pages/Management/evoting/details/index.vue","webpack:///./src/services/BallotCandidate/store.js","webpack:///./src/services/blobutility.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/index.vue?974a","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/keys/data.js","webpack:///./src/services/BallotMultipleChoiceOption/store.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/Download.vue?eb5d","webpack:///src/pages/Management/evoting/details/tabs/evotingDetails/components/Download.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/Download.vue?33f7","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/Download.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/keys/methods.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/index.vue?8f54","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/keys/data.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/keys/methods.js","webpack:///src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/index.vue?f8ac","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotCandidateModal/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/index.vue?14fa","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/keys/data.js","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/keys/methods.js","webpack:///src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/index.vue?57eb","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/components/ballotMultipleChoiceModal/index.vue","webpack:///src/pages/Management/evoting/details/tabs/evotingDetails/index.vue","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/index.vue?0fc1","webpack:///./src/pages/Management/evoting/details/tabs/evotingDetails/index.vue","webpack:///./node_modules/lodash/debounce.js","webpack:///./node_modules/lodash/toNumber.js","webpack:///./src/assets/images/fill-1-copy-11.svg","webpack:///./src/components/menus/Details.vue?c32f"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_l","tab","index","key","name","prefix","hash","params","Object","assign","_v","_s","label","staticRenderFns","props","tabs","Array","type","String","default","to","data","component","isDebug","actions","getHoaById","hoaID","kms","get","results","filtered","hoas","filter","f","JSON","stringify","result","notifyProblem","retrieveGoogleMapSignature","dispatch","payload","done","post","encodeURIComponent","url","undefined","signature","toString","notifyError","retrieveGoogleAddress","lat","lng","address","googleAddressExistsInSystem","validatedAddress","loadDropDownAddressList","startRecord","recordCount","includeOwnerContacts","addresses","dropDownAddresses","map","a","value","addressID","addressOne","city","state","postalCode","unitID","primaryOwnerID","length","sort","b","unshift","list","loadVendors","vendors","vendorDropDownList","v","vendorID","loadHoasByGlobalVendorId","vendorGlobalID","hoaDropDownList","loadDropDownOwnersList","owners","dropDownOwners","_get","primaryOwner","ownername","Vue","use","Vuex","hoaUtility","Store","mutations","getters","$","$reduce","left","arrayMethodIsStrict","arrayMethodUsesToLength","STRICT_METHOD","USES_TO_LENGTH","1","target","proto","forced","reduce","callbackfn","arguments","getBallotTypeList","ballotTypes","getBallotList","publishedAndCompleteBy","log","path","deleteBallot","ballotID","delete","wasDeleted","notifyMessage","getBallotById","addBallot","description","fullDescription","title","ballotType","yesOptionDescription","noOptionDescription","multipleChoiceNumOptionsSelectable","electionVotingIsCumulative","numOfElectionPositions","completeByDate","isSecret","writeInCandidatesEnabled","detail","updateBallot","put","ballotStore","visible","class","isprimary","tooltip","disabled","on","$event","preventDefault","onClick","apply","text","_e","_t","root","now","Date","module","exports","reWhitespace","trimmedEndIndex","string","test","charAt","$t","style","breakpoint","width","createBallotResponse","region","filters","rows","columns","perPage","loading","toggle","selectedBallotResponse","isHomeOwner","isOpen","isFetching","openOnFocus","ballot","buttonText","ballotResponseList","show","field","aria","sortable","searchable","styles","formRow","padding","whiteSpace","filterButton","float","marginTop","getBallotResponseList","deleteBallotResponse","ballotResponseID","getBallotResponseById","hasVotedonBallotResponseAlready","ownerID","addBallotResponse","ballotDocumentID","voteDataJson","updateBallotResponse","getResponseFile","details","uploadDocument","formData","FormData","append","file","ballotDocumentFile","returnedFile","ballotResponseStore","documentID","downloadPdf","Number","Function","methods","reload","$route","id","loadBallotResponseList","then","determineResponseRows","dateFormat","filteredList","entry","ownerName","unitAddress","parseAddress","vote","createdDate","Button","editBallotResponse","erase","confirmDeleteBallotResponse","document","Download","loadingComponent","$buefy","open","container","asBase64","asRawBase64","returned","close","contentType","blob","base64toBlob","showPdf","notifyWarning","dialog","confirm","owner","confirmText","hasIcon","onConfirm","e","closeModal","$emit","documentToggle","click","ref","scopedSlots","_u","fn","handleSubmit","onFormSubmit","getAsyncData","option","selected","model","callback","$$v","locationFilterQuery","expression","radio","c","isWriteIn","parseInt","candidateCheckboxGroup","$set","ballotCandidateID","candidateRadioGroup","staticStyle","writeInName","addWriteIn","ballotMultipleChoiceOptionID","multipleChoiceCheckboxGroup","textAlign","directives","rawName","scale","base64pdf","pageCount","page","margin","zoom","replaceFile","errors","imageContent","attachment","ballotResponseTemp","tempAddress","addressDropDownList","responseCandidates","responseMultipleChoices","alreadyVoted","loadAddressDropDownList","loadBallotByID","ballotCandidates","initNumeric","ballotResponse","i","parsedVoteDataJson","parse","tempBallotType","yesNoResponse","forEach","push","multipleChoiceOptions","initializeNumeric","initializeNumericEdit","loadCurrentDocument","counter","r","numVotes","hoaId","submitFile","tempVoteJson","checkedNonCumulatives","summedLength","acc","item","checkedResponseCandidates","cumulativeCounter","selectedBallotCandidateID","checkedMultipleChoiceOptions","includes","direction","amt","Math","sqrt","max","min","debounce","toLowerCase","getMoreAsyncData","resume","ballotCandidateStore","Boolean","components","ValidationObserver","ValidationProvider","pdf","ValidInput","mounted","computed","addressFilterSuggestions","PageContent","ModernTable","Modal","BallotResponseModal","created","watch","i18n","messages","en","evotingResponses","o","window","t","n","l","call","m","d","defineProperty","enumerable","Symbol","toStringTag","__esModule","create","bind","prototype","hasOwnProperty","p","s","addEventListener","passive","removeEventListener","componentInstance","CustomEvent","createEvent","initCustomEvent","elm","dispatchEvent","iterator","constructor","u","querySelector","active","scrollBy","scrollLeft","scrollTop","md","MouseEvent","pageX","touches","pageY","elementFromPoint","pageXOffset","pageYOffset","arg","modifiers","noleft","noright","nomiddle","noback","noforward","w","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","version","split","Error","concat","directive","VueDragscroll","createBallotModal","redirectToDetails","selectedBallot","domProps","ballotTypeCode","ballotTypeList","radioElection","electionCumulation","numOfOptions","processedCompleteByDate","DatePicker","determineRows","electionType","submittedBallots","tempCompleteBy","tempPublishDate","publishedDate","processDetail","confirmDeleteBallot","forProperDateSort","$router","statusFilter","selectedBallotID","formatDateFn","BallotModal","evotingList","reTrimStart","baseTrim","slice","replace","focused","display","ariaLabel","fieldType","errorMessage","fields","border","borderRadius","onFocus","onBlur","proxy","ariaPrefix","month","day","year","months","monthField","dayField","yearField","testValidityDate","numericMonth","isValidDate","startEmpty","onUpdate","setValue2","dayOfMonth","setValue","dateString","today","updateValue","getValue","utcFormat","dateStr","ds","dszero","isNaN","getTime","getDate","getMonth","utcExtended","_year","utc","advanced","combined","join","LL","allValid","dayString","extendedValid","menu","days","beforeMount","returnToParent","transitionName","mainContainer","minHeight","showUploadModal","from","toIndex","fromIndex","DetailsMenu","SlideTransition","PageContentLayoutOnly","getBallotCandidateList","includeWriteIns","getBallotCandidateById","deleteBallotCandidate","addBallotCandidate","writeInByUnitID","updateBallotCandidate","getResumeFile","resumeDocumentFile","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","charCodeAt","byteArray","Uint8Array","Blob","newBlob","navigator","msSaveOrOpenBlob","URL","createObjectURL","link","createElement","download","setAttribute","href","setTimeout","revokeObjectURL","showAnyType","mimeType","isFinalized","finalize","createBallotCandidateModal","createBallotMultipleModal","region2","rows2","columns2","selectedBallotCandidate","toggle2","selectedBallotMultiple","orignalBallotType","numberOfChoices","allowWriteIn","getBallotMultipleList","deleteMultiple","addBallotMultiple","displayOrder","updateBallotMultiple","ballotMultipleStore","loadBallotMultipleList","loadBallotCandidateList","determineCandidateRows","tempWriteIn","writeIn","processCandidateDetail","confirmDeleteCandidateBallot","determineMultipleRows","processMultipleDetail","confirmDeleteMultiple","tempBallotTypeUpdate","processedPublishDate","fromInclude","ballotCandidateTemp","ballotCandidate","resumeDocumentID","ballotMultiple","BallotCandidateModal","BallotMultipleChoiceModal","evotingDetail","isObject","toNumber","FUNC_ERROR_TEXT","nativeMax","nativeMin","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","other","valueOf","isBinary"],"mappings":"2GAAA,2DAQaA,EAAY,SAACC,GAAwB,IAAlBC,EAAkB,uDAAT,KACvC,GAAoB,kBAATD,EAET,OADAE,QAAQC,MAAR,+CAA8D,CAAEH,SACzDA,EAGT,IACE,IAAMI,EAASC,IAAOL,GAClBI,EAAOE,YACTN,EAAOK,IAAOL,GAAMC,OAAOA,IAE7B,MAAOM,GACHA,GAAaA,EAAUC,QACzBN,QAAQO,MAAMF,EAAUC,SAExBN,QAAQO,MAAMF,GAIlB,OAAOP,I,oCC3BT,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,K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L,EAAWnf,KAAKlG,GAC/B,OAAQ0lB,GAAYJ,EAAUpf,KAAKlG,GAC/BulB,EAAavlB,EAAMqa,MAAM,GAAIqL,EAAW,EAAI,GAC3CN,EAAWlf,KAAKlG,GAASmlB,GAAOnlB,EAGvC6F,EAAOC,QAAUkd,G,4CC/DjBnd,EAAOC,QAAU,IAA0B,mC,mCCA3C,yBAAyjB,EAAG","file":"js/evoting.3e63e5f2.js","sourcesContent":["/*\r\n Example:\r\n import { parseDate } from '@/utilities/Date/parse'\r\n\r\n const parsedDate = parseDate (date, 'LL');\r\n*/\r\nimport moment from 'moment'\r\n\r\nexport const parseDate = (date, format = 'LL') => {\r\n if (typeof date !== 'string') {\r\n console.debug(`parseDate can only parse a date string. got:`, { date })\r\n return date\r\n }\r\n\r\n try {\r\n const parsed = moment(date)\r\n if (parsed.isValid()) {\r\n date = moment(date).format(format)\r\n }\r\n } catch (exception) {\r\n if (exception && exception.message) {\r\n console.error(exception.message)\r\n } else {\r\n console.error(exception)\r\n }\r\n }\r\n\r\n return date\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"details-menu\",attrs:{\"role\":\"navigation\"}},_vm._l((_vm.tabs),function(tab,index){return _c('li',{key:tab.name},[_c('router-link',{staticClass:\"h7\",attrs:{\"to\":{\n name: (\"\" + _vm.prefix + (tab.name)),\n hash: '#tab',\n params: Object.assign(\n {\n index: index\n },\n _vm.params\n )\n }}},[_vm._v(\" \"+_vm._s(tab.label)+\" \")])],1)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./Details.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!./Details.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Details.vue?vue&type=template&id=6560a92e&scoped=true&\"\nimport script from \"./Details.vue?vue&type=script&lang=js&\"\nexport * from \"./Details.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Details.vue?vue&type=style&index=0&id=6560a92e&lang=scss&scoped=true&\"\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 \"6560a92e\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&id=7e0642de&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&id=7e0642de&lang=scss&scoped=true&\"","/*\r\n import { hoaUtility } from '@/services/Hoa/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 } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = false\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n //Get by Id\r\n async getHoaById({}, { hoaID }) {\r\n try {\r\n console.debug('in getHoaById...')\r\n const results = await kms.get(`/Hoa/List`)\r\n\r\n const filtered = results.hoas.filter(f => f.hoaID === hoaID)\r\n\r\n if (isDebug == true) console.debug('getHoaById=' + JSON.stringify(filtered[0]))\r\n\r\n return {\r\n result: filtered[0]\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving the hoa information.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n result: {}\r\n }\r\n },\r\n\r\n async retrieveGoogleMapSignature({ dispatch }, { payload, done }) {\r\n if (isDebug == true)\r\n console.debug('...in retrieveGoogleMapSignature=' + JSON.stringify(payload))\r\n try {\r\n const results = await kms.post(\r\n `/Utilities/GoogleMapUtility/GoogleMapSignUrl?url=${encodeURIComponent(\r\n payload.url\r\n )}&signatureOnly=true`\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) {\r\n const result = {\r\n signature: results.toString()\r\n }\r\n\r\n console.debug(`Successfully retrived google map signature. ` + JSON.stringify(result))\r\n\r\n done({ result })\r\n } else {\r\n notifyError('There was a problem retrieving the google map signature.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem retrieving the google map signature.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async retrieveGoogleAddress({ dispatch }, { lat, lng, done }) {\r\n if (isDebug == true) console.debug('...in retrieveGoogleAddress...')\r\n try {\r\n const address = await kms.post(\r\n `/Utilities/GoogleMapUtility/GoogleMapRetrievePhysicalAddress?lat=${lat}&lng=${lng}`\r\n )\r\n\r\n //console.debug('results=' + address)\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (address) {\r\n const result = {\r\n address\r\n }\r\n done({ result })\r\n } else {\r\n notifyError('There was a problem retrieving the google map address.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem retrieving the google map address.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async googleAddressExistsInSystem({ dispatch }, { hoaID, address, done }) {\r\n if (isDebug == true) console.debug('in googleAddressExistInSystem...')\r\n try {\r\n const validatedAddress = await kms.get(\r\n `/Roster/Unit/CheckForMatchingUnitAddress?hoaId=${hoaID}&address=${address}`\r\n )\r\n\r\n //console.debug('results=' + validatedAddress)\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (validatedAddress) {\r\n const result = {\r\n validatedAddress\r\n }\r\n done({ result })\r\n } else {\r\n notifyError('There was a problem validating the google map address.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem validating the google map address.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n // Address List\r\n async loadDropDownAddressList(\r\n {},\r\n { hoaID, startRecord = 1, recordCount = 10000, includeOwnerContacts = false }\r\n ) {\r\n try {\r\n const params = {\r\n hoaID: hoaID,\r\n includeOwnerContacts,\r\n startRecord,\r\n recordCount\r\n }\r\n\r\n if (isDebug == true) console.debug('params=' + JSON.stringify(params))\r\n\r\n const { results: addresses } = await kms.get('/Roster/Unit/List', { params })\r\n\r\n let dropDownAddresses = addresses\r\n .map(a => ({\r\n value: a.address ? a.address.addressID : '',\r\n label: a.address\r\n ? a.address.addressOne +\r\n ', ' +\r\n a.address.city +\r\n ' ' +\r\n a.address.state +\r\n ' ' +\r\n a.address.postalCode\r\n : '',\r\n unitID: a.unitID ? a.unitID : 0,\r\n primaryOwnerID: a.primaryOwnerID ? a.primaryOwnerID : 0\r\n }))\r\n .filter(f => f.label.length > 0 && f.value > 0)\r\n .sort((a, b) => a.label - b.label)\r\n\r\n dropDownAddresses.unshift({ value: '', label: '<-Select Address->' })\r\n\r\n if (isDebug == true)\r\n console.debug('address drop down list=' + JSON.stringify(dropDownAddresses))\r\n\r\n return {\r\n list: dropDownAddresses\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The address 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 // Vendors List\r\n async loadVendors({}, { hoaID }) {\r\n try {\r\n const params = {\r\n hoaID: hoaID\r\n }\r\n const { results: vendors } = await kms.get('/Vendors/Vendor/List', { params })\r\n\r\n const vendorDropDownList = vendors\r\n .map(v => ({\r\n value: v.vendorID,\r\n label: v.name ? v.name : ''\r\n }))\r\n .filter(f => f.label.length > 0 && f.value > 0)\r\n .sort((a, b) => a.label - b.label)\r\n\r\n if (isDebug == true) console.debug('loadVendors=' + JSON.stringify(vendorDropDownList))\r\n\r\n return {\r\n list: vendorDropDownList\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendor 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 // Hoa List\r\n async loadHoasByGlobalVendorId({}, { vendorGlobalID }) {\r\n try {\r\n const params = {\r\n vendorGlobalID\r\n }\r\n const { results: hoas } = await kms.get('/Vendors/Vendor/HoaListForGlobalVendor', { params })\r\n\r\n const hoaDropDownList = hoas\r\n .map(v => ({\r\n value: v.hoaID,\r\n label: v.name ? v.name : ''\r\n }))\r\n .filter(f => f.label.length > 0 && f.value > 0)\r\n .sort((a, b) => a.label - b.label)\r\n\r\n hoaDropDownList.unshift({ value: 0, label: '<-All Hoas->' })\r\n\r\n if (isDebug == true)\r\n console.debug('loadHoasByGlobalVendorId=' + JSON.stringify(hoaDropDownList))\r\n\r\n return {\r\n list: hoaDropDownList\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The hoa 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 // Owners List\r\n async loadDropDownOwnersList(\r\n {},\r\n { hoaID, startRecord = 1, recordCount = 10000, includeOwnerContacts = false } = {}\r\n ) {\r\n try {\r\n const { results: owners } = await kms.get('/Roster/Unit/List', {\r\n params: {\r\n hoaID: hoaID,\r\n includeOwnerContacts,\r\n startRecord,\r\n recordCount\r\n }\r\n })\r\n\r\n const dropDownOwners = owners\r\n .map(a => ({\r\n value: _get(a, ['primaryOwner', 'ownerID'], ''),\r\n\r\n label: a.primaryOwner\r\n ? `${a.primaryOwner.name} - ${\r\n a.address && a.address != undefined && a.address.addressOne\r\n ? a.address.addressOne\r\n : ''\r\n }`\r\n : '',\r\n ownername: a.primaryOwner ? a.primaryOwner.name : ''\r\n }))\r\n .filter(f => f.label.length > 0 && f.value > 0)\r\n\r\n if (isDebug == true) console.debug('owner drop down list=' + JSON.stringify(dropDownOwners))\r\n\r\n return {\r\n list: dropDownOwners\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n\r\n return {\r\n list: null\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const hoaUtility = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","'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","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Slide.vue?vue&type=style&index=0&id=308229b2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Slide.vue?vue&type=style&index=0&id=308229b2&lang=scss&scoped=true&\"","/*\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","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","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=417b27fc&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=417b27fc&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.name}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./Slide.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!./Slide.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Slide.vue?vue&type=template&id=308229b2&scoped=true&\"\nimport script from \"./Slide.vue?vue&type=script&lang=js&\"\nexport * from \"./Slide.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Slide.vue?vue&type=style&index=0&id=308229b2&lang=scss&scoped=true&\"\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 \"308229b2\",\n null\n \n)\n\nexport default component.exports","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=scss&\"","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('evotingResponses.title')))])]),_c('div',{staticClass:\"pb-5\"},[_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {}\n : {\n width: '100%'\n }))),attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"rounded\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.createBallotResponse()}}},[_vm._v(\" Add Response \")])],1),_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('BallotResponseModal',{attrs:{\"ballotResponse\":_vm.selectedBallotResponse,\"isHomeOwner\":_vm.isHomeOwner}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const data = () => ({\r\n isDebug: true,\r\n isOpen: false,\r\n loading: true,\r\n isFetching: false,\r\n openOnFocus: true,\r\n toggle: false,\r\n ballot: null,\r\n buttonText: 'Add',\r\n ballotResponseList: [],\r\n ballotID: 0,\r\n selectedBallotResponse: null,\r\n isHomeOwner: false,\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: 'ownerName',\r\n label: 'Owner',\r\n aria: 'Owner',\r\n width: '20%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'unitAddress',\r\n label: 'Unit',\r\n aria: 'Unit',\r\n width: '30%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'vote',\r\n label: 'Vote',\r\n aria: 'Vote',\r\n width: '20%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'createdDate',\r\n label: 'Created',\r\n aria: 'Created',\r\n date: true,\r\n width: '10%',\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 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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(\n (typeof _vm.ballotResponseID === 'string' || typeof _vm.ballotResponseID === 'number') &&\n _vm.documentID > 0\n )?_c('span',[_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(_vm.ballotResponseID)}}},[_vm._v(\" Pdf \")])]):_c('span',[_vm._v(\"   \")])])}\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!./Download.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!./Download.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Download.vue?vue&type=template&id=0047ca08&\"\nimport script from \"./Download.vue?vue&type=script&lang=js&\"\nexport * from \"./Download.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 { ballotResponseStore } from '@/services/BallotResponse/store'\r\nimport $ from 'jquery'\r\nimport Button from '@/components/buttons/Button'\r\nimport _get from 'lodash/get'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport parseAddress from '@/utilities/address/parse'\r\nimport kms from '@/services/kms'\r\nimport Download from '../components/Download'\r\nimport { notifyProblem, notifyMessage, notifyWarning } from '@/services/notify'\r\nimport { base64toBlob, showPdf } from '@/services/blobutility'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n this.ballotID = this.$route.params.id\r\n\r\n await this.loadBallotResponseList()\r\n },\r\n\r\n async loadBallotResponseList() {\r\n await ballotResponseStore\r\n .dispatch('getBallotResponseList', {\r\n ballotID: this.ballotID\r\n })\r\n .then(({ list }) => {\r\n this.determineResponseRows(list)\r\n this.loading = false\r\n })\r\n },\r\n\r\n determineResponseRows: 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 ownerName = _get(entry, 'owner.name', '')\r\n\r\n //parse address\r\n const unitAddress = parseAddress({\r\n address: _get(entry, 'unit.address', '')\r\n })\r\n\r\n const vote = _get(entry, 'vote', '')\r\n const isHomeOwner = _get(entry, 'isHomeOwner', false)\r\n\r\n const createdDate = parseDate(_get(entry, 'createdDate', null), dateFormat)\r\n\r\n return {\r\n ownerName,\r\n unitAddress,\r\n vote,\r\n createdDate,\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.editBallotResponse(entry)\r\n },\r\n text: isHomeOwner === true ? 'View' : 'Edit'\r\n }\r\n },\r\n erase: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.confirmDeleteBallotResponse(entry)\r\n },\r\n text: 'Delete',\r\n visible: isHomeOwner === true ? false : true\r\n }\r\n },\r\n document: {\r\n component: Download,\r\n props: {\r\n documentID: _get(entry, ['ballotDocumentID'], 0),\r\n ballotResponseID: _get(entry, 'ballotResponseID', 0),\r\n downloadPdf: ballotResponseID => {\r\n this.downloadPdf(ballotResponseID)\r\n }\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async downloadPdf(ballotResponseID) {\r\n if (this.isDebug == true) console.debug('downloadPdf...')\r\n\r\n const loadingComponent = this.$buefy.loading.open({\r\n container: null\r\n })\r\n\r\n if (!ballotResponseID || ballotResponseID == undefined) {\r\n notifyProblem('There was a problem downloading this ballot document.')\r\n }\r\n\r\n try {\r\n const params = {\r\n ballotResponseID: ballotResponseID,\r\n asBase64: true,\r\n asRawBase64: true\r\n }\r\n\r\n const path = `/EVoting/BallotResponse/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 loadingComponent.close()\r\n\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 response document.`)\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 response document.')\r\n loadingComponent.close()\r\n }\r\n\r\n loadingComponent.close()\r\n },\r\n\r\n async confirmDeleteBallotResponse(entry) {\r\n try {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Ballot Response',\r\n message: `Are you sure you want to delete this response for ${entry.owner.name ||\r\n ''}, \"${entry.vote || ''}\"?`,\r\n confirmText: 'Delete Ballot Response',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: async () => await this.deleteBallotResponse(entry.ballotResponseID)\r\n })\r\n } catch (e) {\r\n console.debug('There was an issue deleting this response.')\r\n }\r\n },\r\n\r\n async deleteBallotResponse(ballotResponseID) {\r\n try {\r\n await ballotResponseStore.dispatch('deleteBallotResponse', {\r\n ballotResponseID,\r\n done: () => {\r\n this.loading = false\r\n this.reload()\r\n }\r\n })\r\n } catch (e) {\r\n console.debug('There was an issue deleting this ballot response.')\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 editBallotResponse(entry) {\r\n this.selectedBallotResponse = entry\r\n this.isHomeOwner = entry.isHomeOwner\r\n this.toggle = true\r\n },\r\n\r\n async createBallotResponse() {\r\n this.selectedBallotResponse = null\r\n this.toggle = true\r\n }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"ballot-response-modal\":\"\",\"id\":\"ballotResponseModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"is-size-4\"},[_vm._v(_vm._s((_vm.buttonText + \" Ballot Response\")))]),(_vm.ballot && _vm.ballot.ballotType)?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"Ballot Type: \" + _vm.ballotType))+\" \")]):_vm._e(),(_vm.ballot && _vm.ballot.description)?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"Description: \" + (_vm.ballot.description)))+\" \")]):_vm._e(),(\n _vm.ballot &&\n _vm.ballot.ballotType === 'election' &&\n _vm.ballot.electionVotingIsCumulative &&\n _vm.ballot.electionVotingIsCumulative === true\n )?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" Type: Cumulative Vote \")]):(_vm.ballot && _vm.ballot.ballotType === 'election')?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" Type: Non-Cumulative Vote \")]):(\n _vm.ballot &&\n _vm.ballot.ballotType === 'multiple-choice' &&\n _vm.ballot.multipleChoiceNumOptionsSelectable\n )?_c('div',{staticClass:\"is-size-6\"},[_vm._v(\" \"+_vm._s((\"Number of Selectable Options: \" + (_vm.ballot.multipleChoiceNumOptionsSelectable)))+\" \")]):_vm._e(),(\n _vm.ballot &&\n _vm.ballot.ballotType &&\n _vm.ballot.numOfElectionPositions &&\n _vm.ballot.ballotType === 'election'\n )?_c('div',{staticClass:\"is-size-6 pb-5\"},[_vm._v(\" \"+_vm._s((\"Number of Votes: \" + (_vm.ballot.numOfElectionPositions)))+\" \")]):_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.onFormSubmit)}}},[_c('fieldset',[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-6\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Select Location / Unit\")]),_c('b-autocomplete',{attrs:{\"size\":\"is-small\",\"field\":\"label\",\"icon\":\"magnify\",\"loading\":_vm.isFetching,\"placeholder\":\"e.g. Location / Unit Search\",\"data\":_vm.data,\"open-on-focus\":_vm.openOnFocus,\"required\":\"true\",\"disabled\":_vm.isHomeOwner === true},on:{\"typing\":_vm.getAsyncData,\"select\":function (option) { return (_vm.selected = option); }},model:{value:(_vm.locationFilterQuery),callback:function ($$v) {_vm.locationFilterQuery=$$v},expression:\"locationFilterQuery\"}})],1)]),(_vm.ballot && _vm.ballot.ballotType === 'yes-no')?_c('div',[_c('b-field',[_c('b-radio',{attrs:{\"name\":\"yesNo\",\"native-value\":\"yes\",\"disabled\":_vm.isHomeOwner === true},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:\"radio\"}},[_vm._v(\" \"+_vm._s(_vm.ballot.yesOptionDescription)+\" \")])],1),_c('b-field',[_c('b-radio',{attrs:{\"name\":\"yesNo\",\"native-value\":\"no\",\"disabled\":_vm.isHomeOwner === true},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:\"radio\"}},[_vm._v(\" \"+_vm._s(_vm.ballot.noOptionDescription)+\" \")])],1)],1):_vm._e(),(_vm.ballot && _vm.ballot.ballotType === 'election')?_c('div',[(\n _vm.ballot.electionVotingIsCumulative &&\n _vm.ballot.electionVotingIsCumulative === true\n )?_c('div',_vm._l((_vm.ballot.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.ballot.numOfElectionPositions),\"name\":(\"candidateCheckboxGroup\" + index),\"vid\":(\"candidateCheckboxGroup\" + index),\"id\":(\"\" + (c.ballotCandidateID)),\"disabled\":_vm.isHomeOwner === true},model:{value:(_vm.candidateCheckboxGroup[index]),callback:function ($$v) {_vm.$set(_vm.candidateCheckboxGroup, index, $$v)},expression:\"candidateCheckboxGroup[index]\"}})],1)])])}),0):_c('div',_vm._l((_vm.ballot.ballotCandidates),function(c,index){return _c('div',{key:index},[_c('b-field',[_c('b-checkbox',{attrs:{\"disabled\":_vm.isHomeOwner === true,\"native-value\":c.ballotCandidateID},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)],1)}),0),(\n _vm.ballot &&\n _vm.ballot.writeInCandidatesEnabled !== undefined &&\n _vm.ballot.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 !important\"},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.isHomeOwner === true},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.isHomeOwner === true,\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addWriteIn()}}},[_vm._v(\" Add \")])])]):_vm._e()]):_vm._e(),(_vm.ballot && _vm.ballot.ballotType === 'multiple-choice')?_c('div',_vm._l((_vm.ballot.ballotMultipleChoiceOptions),function(c,index){return _c('div',{key:index,staticClass:\"block column is-12\",attrs:{\"disabled\":_vm.isHomeOwner === true}},[_c('b-checkbox',{attrs:{\"native-value\":c.ballotMultipleChoiceOptionID,\"disabled\":_vm.isHomeOwner === true},model:{value:(_vm.multipleChoiceCheckboxGroup),callback:function ($$v) {_vm.multipleChoiceCheckboxGroup=$$v},expression:\"multipleChoiceCheckboxGroup\"}},[_vm._v(\" \"+_vm._s(c.description)+\" \")])],1)}),0):_vm._e(),_c('div',{staticClass:\"pt-5\"},[(_vm.base64pdf)?_c('section',{staticClass:\"box\"},[_c('div',{staticClass:\"has-text-centered\",style:({ textAlign: 'left' }),attrs:{\"id\":\"viewpdf\"}},[_c('div',[_c('div',[_c('div',{directives:[{name:\"dragscroll\",rawName:\"v-dragscroll\",value:(true),expression:\"true\"}],class:['doc-viewer', { 'zoom-active': _vm.scale > 0.9 }]},[_c('pdf',{staticStyle:{\"display\":\"none\"},attrs:{\"src\":_vm.base64pdf},on:{\"num-pages\":function($event){_vm.pageCount = new Array($event)}}}),_vm._l((_vm.pageCount),function(page,index){return _c('pdf',{key:index,style:({ margin: 'auto', width: ((100 * _vm.scale) + \"%\") }),attrs:{\"src\":(\"\" + _vm.base64pdf),\"page\":index + 1,\"scale\":_vm.scale,\"resize\":true}})})],2)]),_c('div',{staticClass:\"doc-controls has-text-center\"},[_c('b-field',{attrs:{\"position\":\"is-centered\"}},[_c('div',{staticClass:\"control\"},[_c('b-button',{on:{\"click\":function($event){return _vm.zoom(-1)}}},[_vm._v(\"-\")])],1),_c('div',{staticClass:\"control\"},[_c('b-button',{on:{\"click\":function($event){return _vm.zoom(1)}}},[_vm._v(\"+\")])],1)])],1)])])]):_vm._e(),(_vm.isHomeOwner === false)?_c('div',[_c('b-field',{staticClass:\"file\"},[_c('b-upload',{staticClass:\"rectangle\",attrs:{\"drag-drop\":\"\",\"accept\":\"application/pdf\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}},[_c('section',{staticClass:\"section\"},[_c('div',{},[_c('div',[_c('img',{staticClass:\"Fill-1-Copy-11\",attrs:{\"src\":require(\"@/assets/images/fill-1-copy-11.svg\"),\"alt\":\"Upload\"}})]),(_vm.file)?_c('div',[_vm._v(\" \"+_vm._s(_vm.file.name)+\" \")]):_c('div',[_c('div',{staticClass:\"Drag-Drop-your-fil\"},[_c('div',{staticClass:\"text-style-1\"},[_vm._v(\"Drag & Drop\")]),_c('div',[_vm._v(\"your files here to upload\")])])])])])])],1)],1):_vm._e()]),_c('div',{staticClass:\"pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"disabled\":_vm.isHomeOwner === true,\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.buttonText))]),_c('span',{staticClass:\"pl-3\"},[_vm._v(\" \")]),(_vm.base64pdf)?_c('b-button',{attrs:{\"disabled\":_vm.isHomeOwner === true,\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.replaceFile()}}},[_vm._v(\" Replace \")]):_vm._e(),_c('span',{staticClass:\"pl-3\"},[_vm._v(\" \")]),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal()}}},[_vm._v(\" Close \")])],1)]),_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 buttonText: 'Add',\r\n file: null,\r\n base64pdf: '',\r\n pageCount: [],\r\n scale: 1,\r\n imageContent: null,\r\n attachment: false,\r\n ballotResponseID: 0,\r\n ballotResponseTemp: null,\r\n ballotID: 0,\r\n ballotType: '',\r\n ballot: null,\r\n radio: 'no',\r\n candidateRadioGroup: [],\r\n candidateCheckboxGroup: [],\r\n multipleChoiceCheckboxGroup: [],\r\n formData: {},\r\n name: '',\r\n data: [],\r\n tempAddress: '',\r\n locationFilterQuery: null,\r\n addressDropDownList: [],\r\n responseCandidates: [],\r\n responseMultipleChoices: [],\r\n writeInName: '',\r\n alreadyVoted: false\r\n }\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 } from '@/services/notify'\r\nimport $ from 'jquery'\r\nimport _get from 'lodash/get'\r\nimport debounce from 'lodash/debounce'\r\nimport { hoaUtility } from '@/services/Hoa/store'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n this.ballotID = _get(this, '$route.params.id', '')\r\n\r\n await this.loadAddressDropDownList()\r\n\r\n await this.loadBallotByID()\r\n\r\n if (\r\n this.ballot.writeInCandidatesEnabled === undefined ||\r\n (this.ballot.writeInCandidatesEnabled !== undefined &&\r\n this.ballot.writeInCandidatesEnabled === false)\r\n ) {\r\n console.debug('writeInCandidatesEnabled=' + this.ballot.writeInCandidatesEnabled)\r\n this.ballot.ballotCandidates = this.ballot.ballotCandidates.filter(f => f.isWriteIn !== true)\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 && this.ballotResponse !== undefined) {\r\n this.buttonText = 'Save'\r\n\r\n if (this.ballotResponseTemp === null) {\r\n this.ballotResponseTemp = this.ballotResponse\r\n }\r\n\r\n const address = this.addressDropDownList.filter(\r\n i => i.unitID === this.ballotResponseTemp.unitID\r\n )\r\n\r\n this.locationFilterQuery = address && address[0] && address[0].label ? address[0].label : ''\r\n\r\n const parsedVoteDataJson = JSON.parse(this.ballotResponseTemp.voteDataJson)\r\n\r\n const tempBallotType = _get(this.ballot, '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 this.buttonText = 'Add'\r\n await this.initializeNumeric()\r\n }\r\n },\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 (this.ballot && this.ballot.ballotCandidates && this.ballot.ballotCandidates.length > 0) {\r\n console.debug('in numeric initialize...')\r\n let counter = 0\r\n this.ballot.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 (this.ballot && this.ballot.ballotCandidates && this.ballot.ballotCandidates.length > 0) {\r\n console.debug('in initializeNumericEdit...')\r\n let counter = 0\r\n this.ballot.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 loadBallotByID() {\r\n await ballotStore\r\n .dispatch('getBallotById', {\r\n ballotID: this.ballotID\r\n })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n let tempBallotType = _get(result, 'ballotType', '')\r\n if (tempBallotType === 'yes-no') {\r\n this.ballotType = 'Yes / No'\r\n } else if (tempBallotType === 'multiple-choice') {\r\n this.ballotType = 'Multiple Choice'\r\n } else if (tempBallotType === 'election') {\r\n this.ballotType = 'Election'\r\n } else {\r\n this.ballotType = ''\r\n }\r\n\r\n this.ballot = result\r\n\r\n console.debug('loadBallotByID=' + JSON.stringify(this.ballot))\r\n }\r\n })\r\n },\r\n\r\n async loadAddressDropDownList() {\r\n const hoaID = this.hoaId\r\n\r\n await hoaUtility\r\n .dispatch('loadDropDownAddressList', {\r\n hoaID\r\n })\r\n .then(({ list }) => {\r\n if (list) {\r\n this.addressDropDownList = list\r\n }\r\n if (this.addressDropDownList && this.addressDropDownList != undefined) {\r\n if (this.isDebug == true)\r\n console.debug('addressDropDownList=' + JSON.stringify(this.addressDropDownList))\r\n\r\n this.data = this.addressDropDownList\r\n\r\n console.debug('this.addressDropDownList=' + JSON.stringify(this.addressDropDownList))\r\n\r\n this.tempAddress = []\r\n if (\r\n this.ballot &&\r\n this.ballot !== undefined &&\r\n this.ballot.unitID &&\r\n this.ballot.unitID !== undefined &&\r\n this.addressDropDownList\r\n ) {\r\n this.tempAddress = this.addressDropDownList.filter(i => i.value === this.ballot.unitID)\r\n\r\n if (this.tempAddress && this.tempAddress !== undefined && this.tempAddress[0]) {\r\n this.locationFilterQuery = this.tempAddress[0].label\r\n }\r\n }\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 const loadingComponent = this.$buefy.loading.open({\r\n container: null\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 loadingComponent.close()\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 })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n this.ballotResponseTemp = result\r\n }\r\n })\r\n },\r\n\r\n async replaceFile() {\r\n if (this.file) {\r\n this.ballotResponseID = this.ballotResponseTemp.ballotResponseID\r\n await this.submitFile()\r\n await this.getBallotResponseById()\r\n await this.reload()\r\n } else {\r\n notifyError('Please drag and drop a new file to replace the existing document.')\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.ballot)) {\r\n notifyError('There was a problemm saving this response.')\r\n return\r\n }\r\n\r\n console.debug('ballotType=' + this.ballot.ballotType)\r\n\r\n let tempVoteJson = ''\r\n if (this.ballot.ballotType === 'yes-no' && this.radio) {\r\n tempVoteJson = {\r\n yesNoResponse: this.radio\r\n }\r\n } else if (this.ballot.ballotType === 'election') {\r\n console.debug('election electionVotingIsCumulative=' + this.ballot.electionVotingIsCumulative)\r\n\r\n if (\r\n this.ballot.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('non-cumulative radio group=' + this.candidateRadioGroup.length)\r\n\r\n //Validate open positions\r\n if (this.ballot.numOfElectionPositions !== this.candidateRadioGroup.length) {\r\n this.candidateRadioGroup = []\r\n notifyError(\r\n `Cast no more or less than ${this.ballot.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 (this.ballot.numOfElectionPositions !== summedLength) {\r\n notifyError(\r\n `Cast no more or less than ${this.ballot.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.ballot.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.ballot.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 > this.ballot.multipleChoiceNumOptionsSelectable\r\n ) {\r\n notifyError(\r\n `Please select up to ${this.ballot.multipleChoiceNumOptionsSelectable || 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 address = this.addressDropDownList.filter(i =>\r\n i.label.includes(this.locationFilterQuery)\r\n )\r\n\r\n const payload = {\r\n ballotID: this.ballotID,\r\n unitID: address && address[0] && address[0].unitID ? address[0].unitID : 0,\r\n ownerID: address && address[0] && address[0].primaryOwnerID ? address[0].primaryOwnerID : 0,\r\n ballotDocumentID: _get(this.ballotResponseTemp, 'ballotDocumentID', null),\r\n voteDataJson: JSON.stringify(tempVoteJson)\r\n }\r\n\r\n //validate whether this will be a second vote\r\n this.alreadyVoted = false\r\n await ballotResponseStore.dispatch('hasVotedonBallotResponseAlready', {\r\n ballotID: this.ballotID,\r\n unitID: payload.unitID,\r\n ownerID: payload.ownerID,\r\n done: async ({ detail }) => {\r\n if (detail) {\r\n if (detail === true) {\r\n this.alreadyVoted = true\r\n }\r\n }\r\n }\r\n })\r\n\r\n if (this.alreadyVoted === true) {\r\n notifyError('This ballot has already been voted on by this owner and for this location.')\r\n this.loading = false\r\n loadingComponent.close()\r\n return\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\r\n loadingComponent.close()\r\n\r\n this.loading = false\r\n },\r\n\r\n zoom(direction) {\r\n const amt = Math.sqrt(2)\r\n if (direction > 0) {\r\n this.scale *= amt\r\n } else {\r\n this.scale /= amt\r\n }\r\n\r\n // constrain to min/max\r\n this.scale = Math.max(0.5, Math.min(4, this.scale))\r\n },\r\n\r\n getAsyncData: debounce(function(name) {\r\n // String update\r\n if (this.name !== name) {\r\n this.name = name\r\n this.data = []\r\n }\r\n\r\n // String cleared\r\n if (!name.length) {\r\n this.data = []\r\n return\r\n }\r\n\r\n this.isFetching = true\r\n if (this.isDebug == true) console.debug('this.name=' + this.name)\r\n\r\n if (this.addressDropDownList) {\r\n this.data = this.addressDropDownList.filter(i =>\r\n i.label.toLowerCase().includes(this.name.toLowerCase())\r\n )\r\n }\r\n this.isFetching = false\r\n }, 500),\r\n\r\n getMoreAsyncData: debounce(function() {\r\n this.getAsyncData(this.name)\r\n }, 250),\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 this.loading = true\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 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 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=2035351c&\"\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","\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=89232672&\"\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","!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","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',{staticClass:\"pb-1\"},[_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {}\n : {\n width: '100%'\n }))),attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"rounded\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.createBallotModal()}}},[_vm._v(\" Add Ballot \")])],1),_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('BallotModal',{attrs:{\"redirectToDetails\":_vm.redirectToDetails,\"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-modal\":\"\",\"id\":\"ballotModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"is-size-4\"},[_vm._v(_vm._s((_vm.buttonText + \" Ballot\")))]),_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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.onFormSubmit)}}},[_c('fieldset',[_c('div',[_c('label',{staticClass:\"label\"},[_vm._v(\"Complete By Date\")]),_c('DatePicker',{ref:\"completeByDateComponent\",attrs:{\"ariaLabel\":\"Complete By Date\"},model:{value:(_vm.formData.completeByDate),callback:function ($$v) {_vm.$set(_vm.formData, \"completeByDate\", $$v)},expression:\"formData.completeByDate\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Description\",\"label\":\"Description\",\"type\":\"text\",\"vid\":\"Description\",\"placeholder\":\"Description\",\"spellcheck\":\"true\",\"aria-label\":\"Description\",\"rules\":\"required|max:50\"},model:{value:(_vm.formData.description),callback:function ($$v) {_vm.$set(_vm.formData, \"description\", $$v)},expression:\"formData.description\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"FullDescription\",\"label\":\"Full Description\",\"type\":\"textarea\",\"vid\":\"FullDescription\",\"placeholder\":\"Full Description\",\"spellcheck\":\"true\",\"aria-label\":\"Full Description\",\"rules\":\"required|max:8000\"},model:{value:(_vm.formData.fullDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"fullDescription\", $$v)},expression:\"formData.fullDescription\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Title\",\"label\":\"Title\",\"type\":\"text\",\"vid\":\"Title\",\"placeholder\":\"Title\",\"spellcheck\":\"true\",\"aria-label\":\"Title\",\"rules\":\"required|max:255\"},model:{value:(_vm.formData.title),callback:function ($$v) {_vm.$set(_vm.formData, \"title\", $$v)},expression:\"formData.title\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('b-checkbox',{attrs:{\"native-value\":true},model:{value:(_vm.formData.isSecret),callback:function ($$v) {_vm.$set(_vm.formData, \"isSecret\", $$v)},expression:\"formData.isSecret\"}},[_vm._v(\" Secret Ballot (Hide Voter Identity on Ballot) \")])],1),_c('div',{staticClass:\"pb-5 pt-5\"},[_c('b-field',{attrs:{\"label\":\"Select Ballot Type\"}},[_c('b-select',{attrs:{\"required\":\"true\",\"placeholder\":\"Select a Ballot Type\"},model:{value:(_vm.formData.ballotTypeCode),callback:function ($$v) {_vm.$set(_vm.formData, \"ballotTypeCode\", $$v)},expression:\"formData.ballotTypeCode\"}},_vm._l((_vm.ballotTypeList),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(\" \"+_vm._s(option.label)+\" \")])}),0)],1)],1),(_vm.formData.ballotTypeCode === 'yesno')?_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"YesOptionDescription\",\"label\":\"Yes Option Description\",\"type\":\"textarea\",\"vid\":\"YesOptionDescription\",\"placeholder\":\"Yes Option Description\",\"spellcheck\":\"true\",\"aria-label\":\"Yes Option Description\",\"rules\":\"required:max:200\"},model:{value:(_vm.formData.yesOptionDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"yesOptionDescription\", $$v)},expression:\"formData.yesOptionDescription\"}})],1):_vm._e(),(_vm.formData.ballotTypeCode === 'yesno')?_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"NoOptionDescription\",\"label\":\"No Option Description\",\"type\":\"textarea\",\"vid\":\"NoOptionDescription\",\"placeholder\":\"No Option Description\",\"spellcheck\":\"true\",\"aria-label\":\"No Option Description\",\"rules\":\"required:max:200\"},model:{value:(_vm.formData.noOptionDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"noOptionDescription\", $$v)},expression:\"formData.noOptionDescription\"}})],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',[_c('b-radio',{attrs:{\"name\":\"radioElection\",\"native-value\":\"cumulative\"},model:{value:(_vm.formData.electionCumulation),callback:function ($$v) {_vm.$set(_vm.formData, \"electionCumulation\", $$v)},expression:\"formData.electionCumulation\"}},[_vm._v(\" Cumulative \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',[_c('b-radio',{attrs:{\"name\":\"radioElection\",\"native-value\":\"nonCumulative\"},model:{value:(_vm.formData.electionCumulation),callback:function ($$v) {_vm.$set(_vm.formData, \"electionCumulation\", $$v)},expression:\"formData.electionCumulation\"}},[_vm._v(\" Non-Cumulative \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',{staticClass:\"pt-5\"},[_c('b-field',{attrs:{\"label\":\"Number of Open Election Positions\"}},[_c('b-numberinput',{attrs:{\"name\":\"formData.numOfElectionPositions\",\"vid\":\"numOfElectionPositions\",\"required\":\"\"},model:{value:(_vm.formData.numOfElectionPositions),callback:function ($$v) {_vm.$set(_vm.formData, \"numOfElectionPositions\", $$v)},expression:\"formData.numOfElectionPositions\"}})],1)],1):_vm._e(),(_vm.formData.ballotTypeCode === 'multiplechoice')?_c('div',[_c('b-field',{attrs:{\"label\":\"Number of Multiple Choice Options\"}},[_c('b-numberinput',{attrs:{\"name\":\"formData.numOfOptions\",\"vid\":\"numOfOptions\",\"required\":\"\"},model:{value:(_vm.formData.numOfOptions),callback:function ($$v) {_vm.$set(_vm.formData, \"numOfOptions\", $$v)},expression:\"formData.numOfOptions\"}})],1)],1):_vm._e(),_c('div',{staticClass:\"pt-6 pl-2\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\",\"tests-id\":\"update-work-order-button\"}},[_vm._v(\" \"+_vm._s(_vm.buttonText)+\" \")])])]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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 description: '',\r\n buttonText: 'Add',\r\n ballotTypeList: [],\r\n radioElection: 'nonCumulative',\r\n formData: {\r\n description: '',\r\n fullDescription: '',\r\n title: '',\r\n ballotTypeCode: '',\r\n noOptionDescription: '',\r\n yesOptionDescription: '',\r\n electionCumulation: 'nonCumulative',\r\n numOfOptions: 0,\r\n completeByDate: null,\r\n isSecret: false\r\n }\r\n }\r\n}\r\n","import { ballotStore } from '@/services/Ballot/store'\r\nimport { notifyError } from '@/services/notify'\r\nimport $ from 'jquery'\r\nimport _get from 'lodash/get'\r\nimport moment from 'moment'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n this.ballotID = _get(this, '$route.params.id', null)\r\n\r\n await this.getBallotTypeList()\r\n },\r\n\r\n async getBallotById() {},\r\n\r\n async getBallotTypeList() {\r\n console.debug('in getBallotTypeList()')\r\n this.loading = true\r\n await ballotStore.dispatch('getBallotTypeList').then(({ list }) => {\r\n if (list) {\r\n this.ballotTypeList = list\r\n }\r\n })\r\n\r\n this.loading = false\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.ballot || this.ballot === undefined) && this.formData) {\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 if (!this.formData.completeByDate) {\r\n notifyError('Please enter a complete by Date.')\r\n return\r\n }\r\n\r\n try {\r\n let tempBallotType = ''\r\n if (this.formData.ballotTypeCode) {\r\n if (this.formData.ballotTypeCode === 'yesno') {\r\n tempBallotType = 'yes-no'\r\n } else if (this.formData.ballotTypeCode === 'election') {\r\n tempBallotType = 'election'\r\n } else if (this.formData.ballotTypeCode === 'multiplechoice') {\r\n tempBallotType = 'multiple-choice'\r\n }\r\n }\r\n\r\n let processedCompleteByDate = _get(this.formData, 'completeByDate', null)\r\n if (processedCompleteByDate) {\r\n //Make sure it is published at the first hour of the day\r\n processedCompleteByDate =\r\n moment(processedCompleteByDate).format('YYYY-MM-DD') + 'T23:59:59.999'\r\n }\r\n\r\n const payload = {\r\n hoaID: this.hoaId,\r\n description: _get(this.formData, 'description', ''),\r\n fullDescription: _get(this.formData, 'fullDescription', ''),\r\n title: _get(this.formData, 'title', null),\r\n ballotType: tempBallotType,\r\n yesOptionDescription: _get(this.formData, 'yesOptionDescription', null),\r\n noOptionDescription: _get(this.formData, 'noOptionDescription', null),\r\n multipleChoiceNumOptionsSelectable: _get(this.formData, 'numOfOptions', null),\r\n electionVotingIsCumulative:\r\n this.formData.electionCumulation && this.formData.electionCumulation === 'cumulative'\r\n ? true\r\n : false,\r\n numOfElectionPositions: _get(this.formData, 'numOfElectionPositions', null),\r\n completeByDate: processedCompleteByDate,\r\n isSecret: _get(this.formData, 'isSecret', false)\r\n }\r\n\r\n console.log('payload=' + JSON.stringify(payload))\r\n\r\n await ballotStore.dispatch('addBallot', {\r\n payload,\r\n done: ({ detail }) => {\r\n if (detail) {\r\n console.debug('added ballot=' + JSON.stringify(detail))\r\n this.redirectToDetails(detail)\r\n }\r\n this.closeModal()\r\n }\r\n })\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n this.loading = false\r\n loadingComponent.close()\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!./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=7b44348c&\"\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 { ballotStore } from '@/services/Ballot/store'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport moment from 'moment'\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 let ballotType = _get(entry, 'ballotType', '')\r\n const electionType = _get(entry, 'electionVotingIsCumulative', false)\r\n\r\n if (ballotType && ballotType === 'election') {\r\n if (electionType === true) {\r\n ballotType = `${ballotType} (cumulative)`\r\n } else {\r\n ballotType = `${ballotType} (non-cumulative)`\r\n }\r\n }\r\n\r\n const description = _get(entry, 'description', '')\r\n const submittedBallots = _get(entry, 'submittedBallotCount', 0)\r\n const tempCompleteBy = _get(entry, 'completeByDate', null)\r\n const completeByDate = tempCompleteBy ? parseDate(tempCompleteBy, dateFormat) : null\r\n const tempPublishDate = _get(entry, 'publishedDate', moment('01/01/1900').format(dateFormat))\r\n const publishedDate = tempPublishDate\r\n ? parseDate(tempPublishDate, dateFormat)\r\n : moment('01/01/1900').format(dateFormat)\r\n\r\n return {\r\n description,\r\n ballotType,\r\n submittedBallots,\r\n completeByDate: {\r\n date: completeByDate,\r\n format: dateFormat\r\n },\r\n publishedDate: {\r\n date: publishedDate,\r\n format: dateFormat\r\n },\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.processDetail(entry)\r\n },\r\n text: 'Details'\r\n }\r\n },\r\n erase: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.confirmDeleteBallot(entry)\r\n },\r\n text: 'Delete'\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n redirectToDetails(ballot) {\r\n console.debug('in redirectToDetails=' + JSON.stringify(ballot))\r\n this.processDetail(ballot)\r\n },\r\n\r\n forProperDateSort(date) {\r\n const dateFormat = 'LL'\r\n\r\n try {\r\n if (date) {\r\n return moment(date).format(dateFormat)\r\n } else {\r\n return null\r\n }\r\n } catch (exception) {\r\n console.debug(exception)\r\n return null\r\n }\r\n },\r\n\r\n async confirmDeleteBallot(entry) {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Ballot',\r\n message: `Are you sure you want to delete this ballot, \"${entry.description}\"?`,\r\n confirmText: 'Delete Ballot',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: async () => await this.deleteBallot(entry.ballotID)\r\n })\r\n },\r\n\r\n async deleteBallot(ballotID) {\r\n try {\r\n await ballotStore.dispatch('deleteBallot', {\r\n ballotID,\r\n done: () => {\r\n this.loading = false\r\n this.reload()\r\n }\r\n })\r\n } catch (e) {\r\n console.debug('There was an issue deleting your ballot.' + e)\r\n }\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.hoaId,\r\n publishedAndCompleteBy: false,\r\n unitID: null\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n this.loading = false\r\n })\r\n },\r\n\r\n processDetail(ballot) {\r\n if (ballot) {\r\n const path = `/evotingTabs/${ballot.ballotID}/evotingDetails#tab`\r\n this.$router.push(path)\r\n }\r\n },\r\n\r\n createBallotModal() {\r\n this.toggle = true\r\n this.selectedBallot = null\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 statusFilter: 'pending',\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: '40%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'ballotType',\r\n label: 'Type',\r\n aria: 'Type',\r\n width: '20%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'submittedBallots',\r\n label: 'Submitted Ballots',\r\n aria: 'Submitted Ballots',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'completeByDate',\r\n label: 'Complete By',\r\n aria: 'Complete By',\r\n width: '10%',\r\n date: true,\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'publishedDate',\r\n label: 'Published',\r\n aria: 'Published',\r\n width: '10%',\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=a106d28e&\"\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 trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-field',{class:'date-picker--field' + (_vm.focused ? ' focused' : ''),style:({ display: 'inline-table', textAlign: 'left' }),attrs:{\"tabindex\":\"0\",\"aria-label\":_vm.ariaLabel,\"label\":_vm.label,\"type\":_vm.fieldType,\"message\":_vm.errorMessage}},[(_vm.fields.menu)?_c('b-datepicker',{scopedSlots:_vm._u([{key:\"trigger\",fn:function(){return [_c('b-button',{style:({\n border: 0,\n borderRadius: '6px'\n }),attrs:{\"icon-left\":\"calendar-today\",\"type\":\"is-ghost\",\"aria-hidden\":\"true\",\"aria-label\":\"visual presentation button\"},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur}})]},proxy:true}],null,false,3056716859),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}}):_vm._e(),(_vm.fields.month)?_c('b-field',{style:(_vm.styles.monthField)},[_c('b-select',{ref:\"month\",staticClass:\"date-picker--select\",attrs:{\"month\":\"\",\"placeholder\":\"Month\",\"aria-label\":_vm.ariaPrefix + ' month'},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},model:{value:(_vm.month),callback:function ($$v) {_vm.month=$$v},expression:\"month\"}},_vm._l((_vm.months),function(month){return _c('option',{key:month,domProps:{\"value\":month}},[_vm._v(\" \"+_vm._s(month)+\" \")])}),0)],1):_vm._e(),(_vm.fields.dayOfMonth)?_c('b-field',{style:(_vm.styles.dayField)},[_c('b-input',{ref:\"day\",staticClass:\"date-picker--input day\",attrs:{\"day\":\"\",\"placeholder\":\"Day\",\"maxlength\":\"2\",\"aria-label\":_vm.ariaPrefix + ' day',\"has-counter\":false},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},model:{value:(_vm.day),callback:function ($$v) {_vm.day=$$v},expression:\"day\"}})],1):_vm._e(),(_vm.fields.year)?_c('b-field',{style:(_vm.styles.yearField)},[_c('b-input',{ref:\"year\",staticClass:\"date-picker--input year\",attrs:{\"year\":\"\",\"placeholder\":\"Year\",\"aria-label\":_vm.ariaPrefix + ' year'},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},model:{value:(_vm.year),callback:function ($$v) {_vm.year=$$v},expression:\"year\"}})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function data() {\r\n var field = {\r\n width: '70px',\r\n display: 'inline-block',\r\n textAlign: 'left'\r\n }\r\n\r\n return {\r\n focused: false,\r\n selected: new Date(),\r\n day: '',\r\n month: null,\r\n year: '',\r\n months: [\r\n '',\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n ],\r\n styles: {\r\n monthField: Object.assign({}, field, {\r\n width: '127px'\r\n }),\r\n dayField: Object.assign({}, field, {\r\n width: '60px'\r\n }),\r\n yearField: field\r\n }\r\n }\r\n}\r\n","import moment from 'moment'\r\nimport { notifyError } from '@/services/notify'\r\n\r\n/*\r\n\t\r\n*/\r\nexport const methods = {\r\n onFocus: function() {\r\n this.focused = true\r\n },\r\n onBlur: function() {\r\n this.focused = false\r\n\r\n const testValidityDate = `${this.year}-${this.numericMonth}-${this.day}T05:00:00Z`\r\n\r\n if (!this.isValidDate(testValidityDate) && !this.startEmpty) {\r\n notifyError(\r\n `The date, ${this.month}-${this.day}-${this.year}, is an invalid date. Please select, or enter, a valid date.`\r\n )\r\n return\r\n }\r\n\r\n this.onUpdate({\r\n day: this.day,\r\n month: this.month,\r\n numericMonth: this.numericMonth,\r\n year: this.year\r\n })\r\n },\r\n setValue2: function({ dayOfMonth, month, year }) {\r\n this.day = dayOfMonth\r\n this.month = month\r\n // this.numericMonth = numericMonth\r\n this.year = year\r\n },\r\n setValue: function(dateString) {\r\n try {\r\n if (typeof dateString !== 'string' || dateString.length === 0) {\r\n this.day = null\r\n this.month = null\r\n this.numericMonth = null\r\n this.year = null\r\n console.debug('dateString needs to be a string of length >= 1', { dateString })\r\n\r\n if (this.startEmpty === false) {\r\n const today = moment()\r\n this.day = today.date().toString()\r\n this.month = today.format('MMMM')\r\n this.numericMonth = today.format('MM')\r\n this.year = today.year().toString()\r\n\r\n //2022-07-08T04:00:00Z\r\n dateString = `${this.year}-${today.format('MM')}-${today.format('DD')}T12:00:00Z`\r\n }\r\n }\r\n\r\n console.debug('dateString = ' + dateString)\r\n\r\n const m = moment(dateString, true)\r\n\r\n if (!m.isValid()) {\r\n console.debug(`The date string value provided \"${dateString}\" was not parseable.`)\r\n return\r\n }\r\n\r\n const year = m.year().toString()\r\n const month = m.format('MMMM')\r\n const numericMonth = m.format('MM')\r\n const date = m.date().toString()\r\n\r\n if (typeof year === 'string' && typeof month === 'string' && typeof date === 'string') {\r\n this.day = date\r\n this.month = month\r\n this.numericMonth = numericMonth\r\n this.year = year\r\n }\r\n } catch (exception) {\r\n console.debug(exception)\r\n }\r\n },\r\n updateValue: function() {\r\n const { utcFormat } = this.getValue()\r\n if (typeof utcFormat === 'string') {\r\n this.$emit('input', utcFormat)\r\n }\r\n },\r\n\r\n isValidDate(dateStr) {\r\n try {\r\n //2023-01-05T05:00:00Z\r\n var ds = dateStr.split('T')\r\n var dszero = ds[0]\r\n var s = dszero.split('-')\r\n\r\n console.debug('year s0=' + s[0])\r\n console.debug('month s1=' + s[1])\r\n console.debug('day s2=' + s[2])\r\n\r\n var d = new Date(+s[0], s[1] - 1, +s[2])\r\n if (Object.prototype.toString.call(d) === '[object Date]') {\r\n if (!isNaN(d.getTime()) && d.getDate() == s[2] && d.getMonth() == s[1] - 1) {\r\n return true\r\n }\r\n }\r\n return false\r\n } catch (x) {\r\n return false\r\n }\r\n },\r\n\r\n getValue: function() {\r\n const day = this.day\r\n const month = this.month\r\n const numericMonth = this.numericMonth\r\n let year = this.year\r\n\r\n let utcExtended = ''\r\n try {\r\n let _year = parseInt(year)\r\n\r\n if (typeof _year === 'number' && _year >= 1) {\r\n if (year.length === 1) {\r\n year = '000' + year\r\n } else if (year.length === 2) {\r\n year = '00' + year\r\n } else if (year.length === 3) {\r\n year = '0' + year\r\n } else if (year.length >= 5) {\r\n const date = moment(`${month} ${day}, 2000`, 'LL', true)\r\n const utcFormat = date.utc().format()\r\n\r\n const advanced = utcFormat.split('-')\r\n advanced[0] = year\r\n\r\n const combined = advanced.join('-')\r\n utcExtended = combined\r\n }\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n const LL = `${month} ${day}, ${year}`\r\n const date = moment(LL, 'LL', true)\r\n const allValid = date.isValid()\r\n\r\n let utcFormat = null\r\n if (allValid) {\r\n utcFormat = date.utc().format()\r\n utcExtended = utcFormat\r\n }\r\n\r\n let dayString = ''\r\n\r\n try {\r\n if (day !== null) {\r\n dayString = day.toString()\r\n if (dayString.length === 1) {\r\n dayString = '0' + dayString\r\n }\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n let extendedValid = false\r\n if (utcExtended.length >= '10') {\r\n extendedValid = true\r\n }\r\n\r\n return {\r\n utcExtended,\r\n utcFormat,\r\n allValid,\r\n extendedValid,\r\n day,\r\n dayString,\r\n month,\r\n numericMonth,\r\n year\r\n }\r\n }\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!./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=7e0642de&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&id=7e0642de&lang=scss&scoped=true&\"\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 \"7e0642de\",\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('PageContentLayoutOnly',{attrs:{\"role\":\"region\",\"evoting-details\":\"\"}},[_c('section',{staticClass:\"section card\"},[_c('div',{staticClass:\"level pl-5 pr-5\"},[_c('div',{staticClass:\"pt-5 level-left level-item title\"},[_vm._v(_vm._s(_vm.$t('evotingDetails.title')))]),_c('div',{staticClass:\"level-right pr-6\"},[_c('div',{staticClass:\"level-item\"},[_c('svg',{attrs:{\"width\":\"30\",\"height\":\"30\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\",\"stroke\":\"currentColor\"}},[_c('path',{attrs:{\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-width\":\"2\",\"d\":\"M15 19l-7-7 7-7\"}})])]),_c('div',{staticClass:\"level-item\"},[_c('b-button',{attrs:{\"label\":\"Back to eVoting\"},on:{\"click\":function($event){$event.preventDefault();return _vm.returnToParent()}}})],1)])]),_c('div',{attrs:{\"id\":\"tabs\"}},[_c('div',{staticClass:\"card-content columns\",style:(_vm.styles.mainContainer)},[_c('div',{staticClass:\"column is-2\"},[_c('DetailsMenu',{attrs:{\"aria-label\":\"eVoting tabs\",\"tabs\":_vm.tabs,\"prefix\":\"evoting.\",\"params\":{\n id: _vm.$route.params.id\n }}})],1),_c('div',{staticClass:\"column is-10\",staticStyle:{\"margin-top\":\"-25px\",\"overflow\":\"hidden\",\"position\":\"relative\"}},[_c('SlideTransition',{attrs:{\"name\":_vm.transitionName}},[_c('router-view')],1)],1)])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const data = function() {\r\n return {\r\n isDebug: true,\r\n loading: false,\r\n ballotID: 0,\r\n tabs: [\r\n { name: 'evotingDetails', label: 'Details' },\r\n { name: 'evotingResponses', label: 'Responses' }\r\n ],\r\n styles: {\r\n mainContainer: {\r\n minHeight: '1000px'\r\n }\r\n },\r\n transitionName: 'slide-down',\r\n showUploadModal: false\r\n }\r\n}\r\n","export const methods = {\r\n async reload() {\r\n this.loading = true\r\n\r\n this.ballotID = this.$route.params.id\r\n\r\n console.debug('ballotID=' + this.ballotID)\r\n\r\n this.loading = false\r\n },\r\n\r\n returnToParent() {\r\n this.$router.push({\r\n name: 'evoting'\r\n })\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\n\r\nexport const watch = {\r\n hoaId() {\r\n this.reload()\r\n },\r\n $route: function(to, from) {\r\n const toIndex = _get(to, ['params', 'index'], 1)\r\n const fromIndex = _get(from, ['params', 'index'], 1)\r\n\r\n this.transitionName = toIndex < fromIndex ? 'slide-up' : 'slide-down'\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!./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=417b27fc&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=417b27fc&lang=scss&scoped=true&\"\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 \"417b27fc\",\n null\n \n)\n\nexport default component.exports","/*\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 { base64toBlob, showPdf } from '@/services/blobutility'\r\n*/\r\n\r\nexport const base64toBlob = (b64Data, contentType) => {\r\n const sliceSize = 512\r\n const byteCharacters = atob(b64Data)\r\n const byteArrays = []\r\n\r\n for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\r\n const slice = byteCharacters.slice(offset, offset + sliceSize)\r\n\r\n const byteNumbers = new Array(slice.length)\r\n for (let i = 0; i < slice.length; i++) {\r\n byteNumbers[i] = slice.charCodeAt(i)\r\n }\r\n\r\n const byteArray = new Uint8Array(byteNumbers)\r\n byteArrays.push(byteArray)\r\n }\r\n\r\n const blob = new Blob(byteArrays, { type: contentType })\r\n return blob\r\n}\r\n\r\nexport const showPdf = blob => {\r\n var newBlob = new Blob([blob], { type: 'application/pdf' })\r\n\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n\r\n var link = document.createElement('a')\r\n link.download = 'download.pdf'\r\n link.setAttribute('download', 'download.pdf')\r\n link.href = data\r\n\r\n window.open(link, '_blank')\r\n }\r\n\r\n return\r\n}\r\n\r\nexport const downloadPdf = blob => {\r\n var newBlob = new Blob([blob], { type: 'application/pdf' })\r\n\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n var link = document.createElement('a')\r\n link.download = 'download.pdf'\r\n link.setAttribute('download', 'download.pdf')\r\n link.href = data\r\n link.click()\r\n\r\n setTimeout(function() {\r\n window.URL.revokeObjectURL(data)\r\n 100\r\n })\r\n }\r\n\r\n return\r\n}\r\n\r\nexport const showAnyType = (blob, mimeType) => {\r\n console.debug('showAnyType...')\r\n var newBlob = new Blob([blob], { type: mimeType })\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n var link = document.createElement('a')\r\n link.href = data\r\n\r\n window.open(data, '_blank')\r\n\r\n setTimeout(function() {\r\n window.URL.revokeObjectURL(data)\r\n 100\r\n })\r\n }\r\n\r\n return\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"ballot-modal\":\"\",\"id\":\"ballotModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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.onFormSubmit)}}},[_c('fieldset',[_c('div',[_c('label',{staticClass:\"label\"},[_vm._v(\"Complete By Date\")]),_c('DatePicker',{ref:\"completeByDateComponent\",attrs:{\"ariaLabel\":\"Complete By Date\"},model:{value:(_vm.formData.completeByDate),callback:function ($$v) {_vm.$set(_vm.formData, \"completeByDate\", $$v)},expression:\"formData.completeByDate\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Published Date\")]),_c('DatePicker',{ref:\"publishedDateComponent\",attrs:{\"ariaLabel\":\"Published Date\"},model:{value:(_vm.formData.publishedDate),callback:function ($$v) {_vm.$set(_vm.formData, \"publishedDate\", $$v)},expression:\"formData.publishedDate\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Description\",\"label\":\"Description\",\"type\":\"text\",\"vid\":\"Description\",\"placeholder\":\"Description\",\"spellcheck\":\"true\",\"aria-label\":\"Description\",\"rules\":\"required|max:50\"},model:{value:(_vm.formData.description),callback:function ($$v) {_vm.$set(_vm.formData, \"description\", $$v)},expression:\"formData.description\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"FullDescription\",\"label\":\"Full Description\",\"type\":\"textarea\",\"vid\":\"FullDescription\",\"placeholder\":\"Full Description\",\"spellcheck\":\"true\",\"aria-label\":\"Full Description\",\"rules\":\"required|max:8000\"},model:{value:(_vm.formData.fullDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"fullDescription\", $$v)},expression:\"formData.fullDescription\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Title\",\"label\":\"Title\",\"type\":\"text\",\"vid\":\"Title\",\"placeholder\":\"Title\",\"spellcheck\":\"true\",\"aria-label\":\"Title\",\"rules\":\"required|max:255\"},model:{value:(_vm.formData.title),callback:function ($$v) {_vm.$set(_vm.formData, \"title\", $$v)},expression:\"formData.title\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('b-checkbox',{attrs:{\"native-value\":true},model:{value:(_vm.formData.isSecret),callback:function ($$v) {_vm.$set(_vm.formData, \"isSecret\", $$v)},expression:\"formData.isSecret\"}},[_vm._v(\" Secret Ballot (Hide Voter Identity on Ballot) \")])],1),(_vm.formData.ballotTypeCode == 'election')?_c('div',{staticClass:\"pt-5\"},[_c('b-checkbox',{attrs:{\"native-value\":true},model:{value:(_vm.formData.allowWriteIn),callback:function ($$v) {_vm.$set(_vm.formData, \"allowWriteIn\", $$v)},expression:\"formData.allowWriteIn\"}},[_vm._v(\" Allow Write-in Candidates \")])],1):_vm._e(),_c('div',{staticClass:\"pb-5 pt-5\"},[_c('b-field',{attrs:{\"label\":\"Select Ballot Type\"}},[_c('b-select',{attrs:{\"required\":\"true\",\"placeholder\":\"Select a Ballot Type\",\"disabled\":_vm.isFinalized},model:{value:(_vm.formData.ballotTypeCode),callback:function ($$v) {_vm.$set(_vm.formData, \"ballotTypeCode\", $$v)},expression:\"formData.ballotTypeCode\"}},_vm._l((_vm.ballotTypeList),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(\" \"+_vm._s(option.label)+\" \")])}),0)],1)],1),(_vm.formData.ballotTypeCode === 'yesno')?_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"YesOptionDescription\",\"label\":\"Yes Option Description\",\"type\":\"textarea\",\"vid\":\"YesOptionDescription\",\"placeholder\":\"Yes Option Description\",\"spellcheck\":\"true\",\"aria-label\":\"Yes Option Description\",\"rules\":\"required:max:200\"},model:{value:(_vm.formData.yesOptionDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"yesOptionDescription\", $$v)},expression:\"formData.yesOptionDescription\"}})],1):_vm._e(),(_vm.formData.ballotTypeCode === 'yesno')?_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"NoOptionDescription\",\"label\":\"No Option Description\",\"type\":\"textarea\",\"vid\":\"NoOptionDescription\",\"placeholder\":\"No Option Description\",\"spellcheck\":\"true\",\"aria-label\":\"No Option Description\",\"rules\":\"required:max:200\"},model:{value:(_vm.formData.noOptionDescription),callback:function ($$v) {_vm.$set(_vm.formData, \"noOptionDescription\", $$v)},expression:\"formData.noOptionDescription\"}})],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',[_c('b-radio',{attrs:{\"name\":\"radioElection\",\"native-value\":\"cumulative\"},model:{value:(_vm.formData.electionCumulation),callback:function ($$v) {_vm.$set(_vm.formData, \"electionCumulation\", $$v)},expression:\"formData.electionCumulation\"}},[_vm._v(\" Cumulative \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',[_c('b-radio',{attrs:{\"name\":\"radioElection\",\"native-value\":\"nonCumulative\"},model:{value:(_vm.formData.electionCumulation),callback:function ($$v) {_vm.$set(_vm.formData, \"electionCumulation\", $$v)},expression:\"formData.electionCumulation\"}},[_vm._v(\" Non-Cumulative \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_c('div',{staticClass:\"pt-5\"},[_c('b-field',{attrs:{\"label\":\"Number of Open Election Positions\"}},[_c('b-numberinput',{attrs:{\"name\":\"formData.numOfElectionPositions\",\"vid\":\"numOfElectionPositions\",\"required\":\"\"},model:{value:(_vm.formData.numOfElectionPositions),callback:function ($$v) {_vm.$set(_vm.formData, \"numOfElectionPositions\", $$v)},expression:\"formData.numOfElectionPositions\"}})],1)],1):_vm._e(),(_vm.formData.ballotTypeCode === 'multiplechoice')?_c('div',[_c('b-field',{attrs:{\"label\":\"Number of Multiple Choice Options\"}},[_c('b-numberinput',{attrs:{\"name\":\"formData.numOfOptions\",\"vid\":\"numOfOptions\",\"required\":\"\"},model:{value:(_vm.formData.numOfOptions),callback:function ($$v) {_vm.$set(_vm.formData, \"numOfOptions\", $$v)},expression:\"formData.numOfOptions\"}})],1)],1):_vm._e(),_c('div',{staticClass:\"pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\"}},[_vm._v(\" Save \")]),_c('span',{staticClass:\"pl-3\"}),_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"disabled\":_vm.isFinalized,\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.finalize()}}},[_vm._v(\" Finalize \")])]),(_vm.formData.ballotTypeCode === 'election')?_c('div',{staticClass:\"pb-3 pt-6\"},[_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {}\n : {\n width: '100%'\n }))),attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"rounded\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.createBallotCandidateModal()}}},[_vm._v(\" Add Candidate \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'election')?_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):_vm._e(),(_vm.formData.ballotTypeCode === 'multiplechoice')?_c('div',{staticClass:\"pb-3 pt-6\"},[_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {}\n : {\n width: '100%'\n }))),attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"rounded\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.createBallotMultipleModal()}}},[_vm._v(\" Add Multiple Choice \")])],1):_vm._e(),(_vm.formData.ballotTypeCode === 'multiplechoice')?_c('div',[_c('ModernTable',{attrs:{\"region\":_vm.region2,\"filters\":_vm.filters,\"rows\":_vm.rows2,\"columns\":_vm.columns2,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading}})],1):_vm._e()]),_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)]),_c('Modal',{attrs:{\"toggle\":_vm.toggle},on:{\"update:toggle\":function($event){_vm.toggle=$event}}},[_c('BallotCandidateModal',{attrs:{\"ballotCandidate\":_vm.selectedBallotCandidate,\"ballotID\":parseInt(_vm.ballotID)}})],1),_c('Modal',{attrs:{\"toggle\":_vm.toggle2},on:{\"update:toggle\":function($event){_vm.toggle2=$event}}},[_c('BallotMultipleChoiceModal',{attrs:{\"ballotMultiple\":_vm.selectedBallotMultiple,\"ballotID\":parseInt(_vm.ballotID)}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const data = () => ({\r\n isDebug: true,\r\n isOpen: false,\r\n loading: true,\r\n isFetching: false,\r\n openOnFocus: true,\r\n toggle: false,\r\n toggle2: false,\r\n ballot: null,\r\n description: '',\r\n buttonText: 'Add',\r\n ballotTypeList: [],\r\n ballotID: 0,\r\n isFinalized: false,\r\n selectedBallotCandidate: null,\r\n selectedBallotMultiple: null,\r\n orignalBallotType: '',\r\n numberOfChoices: 0,\r\n radioElection: 'nonCumulative',\r\n formData: {\r\n description: '',\r\n fullDescription: '',\r\n title: '',\r\n ballotTypeCode: '',\r\n noOptionDescription: '',\r\n yesOptionDescription: '',\r\n electionCumulation: 'nonCumulative',\r\n numOfOptions: 0,\r\n numOfElectionPositions: 0,\r\n completeByDate: null,\r\n publishedDate: null,\r\n isSecret: false,\r\n allowWriteIn: false\r\n },\r\n\r\n filters: {\r\n show: false\r\n },\r\n\r\n region: {},\r\n\r\n region2: {},\r\n\r\n rows: [],\r\n\r\n rows2: [],\r\n\r\n columns: [\r\n {\r\n field: 'name',\r\n label: 'Name',\r\n aria: 'Name',\r\n width: '30%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'resume',\r\n label: 'Resume',\r\n aria: 'Resume',\r\n width: '50%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'isWriteIn',\r\n label: 'Write In',\r\n aria: 'Write In',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'createdDate',\r\n label: 'Created',\r\n aria: 'Created',\r\n date: true,\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n }\r\n ],\r\n\r\n columns2: [\r\n {\r\n field: 'displayOrder',\r\n label: 'Display Order',\r\n aria: 'Display Order',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'description',\r\n label: 'Description',\r\n aria: 'Description',\r\n width: '60%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'createdDate',\r\n label: 'Created',\r\n aria: 'Created',\r\n date: true,\r\n width: '10%',\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 import { ballotMultipleStore } from '@/services/BallotMultipleChoiceOption/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 ballotMultipleStore.dispatch ('getBallotMultipleList', {\r\n ballotID\r\n });\r\n */\r\n\r\n async getBallotMultipleList({}, { ballotID }) {\r\n console.log('in getBallotMultipleList...' + ballotID)\r\n try {\r\n const results = await kms.get(`/EVoting/BallotMultipleChoiceOption/List?ballotID=${ballotID}`)\r\n\r\n if (isDebug == true) console.debug('getBallotMultipleList 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 multiple choice 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 deleteMultiple({ dispatch }, { ballotMultipleChoiceOptionID, done }) {\r\n try {\r\n const path = `/EVoting/BallotMultipleChoiceOption/${ballotMultipleChoiceOptionID}?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 multiple choice option.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting this multiple choice option.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem deleting this multiple choice option.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async addBallotMultiple({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addBallotMultiple')\r\n try {\r\n const results = await kms.post(`/EVoting/BallotMultipleChoiceOption`, {\r\n ballotID: payload.ballotID,\r\n description: payload.description,\r\n displayOrder: payload.displayOrder\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 multiple choice option.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem adding this multiple choide option.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem adding this multiple choice option.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async updateBallotMultiple({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/EVoting/BallotMultipleChoiceOption`, 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.ballotMultipleChoiceOptionID > 0) {\r\n notifyMessage(`Successfully updated this multiple choice option.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem updating this multiple choice option.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem processing the update for this multiple choice option.`)\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 ballotMultipleStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(\n (typeof _vm.ballotCandidateID === 'string' || typeof _vm.ballotCandidateID === 'number') &&\n _vm.documentID > 0\n )?_c('span',[_c('button',{on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(_vm.ballotCandidateID)}}},[_c('svg',{staticClass:\"w-6 h-6\",attrs:{\"fill\":\"none\",\"stroke\":\"currentColor\",\"viewBox\":\"0 0 24 24\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-width\":\"2\",\"d\":\"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4\"}})])])]):_c('span',[_vm._v(\"   \")])])}\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!./Download.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!./Download.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Download.vue?vue&type=template&id=1034c27c&\"\nimport script from \"./Download.vue?vue&type=script&lang=js&\"\nexport * from \"./Download.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 { ballotStore } from '@/services/Ballot/store'\r\nimport { ballotCandidateStore } from '@/services/BallotCandidate/store'\r\nimport { ballotMultipleStore } from '@/services/BallotMultipleChoiceOption/store'\r\nimport $ from 'jquery'\r\nimport Button from '@/components/buttons/Button'\r\nimport _get from 'lodash/get'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport kms from '@/services/kms'\r\nimport Download from '../components/Download'\r\nimport { notifyProblem, notifyMessage, notifyWarning, notifyError } from '@/services/notify'\r\nimport { base64toBlob, showPdf } from '@/services/blobutility'\r\nimport moment from 'moment'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n this.ballotID = this.$route.params.id\r\n\r\n await this.loadBallotByID()\r\n\r\n await this.getBallotTypeList()\r\n\r\n await this.loadBallotMultipleList()\r\n\r\n await this.loadBallotCandidateList()\r\n },\r\n\r\n async loadBallotByID() {\r\n await ballotStore\r\n .dispatch('getBallotById', {\r\n ballotID: this.ballotID\r\n })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n console.debug('getBallotById result=' + JSON.stringify(result))\r\n\r\n let tempBallotType = _get(result, 'ballotType', '')\r\n if (tempBallotType === 'yes-no') {\r\n tempBallotType = 'yesno'\r\n } else if (tempBallotType === 'multiple-choice') {\r\n tempBallotType = 'multiplechoice'\r\n } else if (tempBallotType === 'election') {\r\n tempBallotType = 'election'\r\n } else {\r\n tempBallotType = ''\r\n }\r\n\r\n this.formData.description = _get(result, 'description', '')\r\n this.formData.fullDescription = _get(result, 'fullDescription', '')\r\n this.formData.title = _get(result, 'title', '')\r\n this.formData.ballotTypeCode = tempBallotType\r\n\r\n this.orignalBallotType = this.formData.ballotTypeCode\r\n\r\n console.debug('ballotTypeCode=' + this.formData.ballotTypeCode)\r\n this.formData.noOptionDescription = _get(result, 'noOptionDescription', '')\r\n this.formData.yesOptionDescription = _get(result, 'yesOptionDescription', '')\r\n this.formData.electionCumulation =\r\n _get(result, 'electionVotingIsCumulative', false) === true\r\n ? 'cumulative'\r\n : 'nonCumulative'\r\n this.formData.numOfOptions = _get(result, 'multipleChoiceNumOptionsSelectable', 0)\r\n this.formData.numOfElectionPositions = _get(result, 'numOfElectionPositions', 0)\r\n this.formData.completeByDate = _get(result, 'completeByDate', null)\r\n this.formData.publishedDate = _get(result, 'publishedDate', null)\r\n this.isFinalized = _get(result, 'isFinalized', false)\r\n this.formData.isSecret = _get(result, 'isSecret', false)\r\n this.formData.allowWriteIn = _get(result, 'writeInCandidatesEnabled', false)\r\n }\r\n })\r\n },\r\n\r\n async loadBallotCandidateList() {\r\n await ballotCandidateStore\r\n .dispatch('getBallotCandidateList', {\r\n ballotID: this.ballotID,\r\n includeWriteIns: true\r\n })\r\n .then(({ list }) => {\r\n this.determineCandidateRows(list)\r\n this.loading = false\r\n })\r\n },\r\n\r\n determineCandidateRows: 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 name = _get(entry, 'name', '')\r\n const resume = _get(entry, 'resume', '')\r\n const createdDate = parseDate(_get(entry, 'createdDate', null), dateFormat)\r\n const tempWriteIn = _get(entry, 'isWriteIn', false)\r\n let writeIn = 'no'\r\n if (tempWriteIn && tempWriteIn === true) {\r\n writeIn = 'yes'\r\n }\r\n\r\n return {\r\n name,\r\n resume,\r\n isWriteIn: writeIn,\r\n createdDate,\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.processCandidateDetail(entry)\r\n },\r\n text: 'Edit'\r\n }\r\n },\r\n erase: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.confirmDeleteCandidateBallot(entry)\r\n },\r\n text: 'Delete'\r\n }\r\n },\r\n document: {\r\n component: Download,\r\n props: {\r\n documentID: _get(entry, ['resumeDocumentID'], 0),\r\n ballotCandidateID: _get(entry, 'ballotCandidateID', 0),\r\n downloadPdf: ballotCandidateID => {\r\n this.downloadPdf(ballotCandidateID)\r\n }\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\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 confirmDeleteCandidateBallot(entry) {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError(\r\n 'Please click Save prior to deleting this candidate. You changed the ballot type.'\r\n )\r\n return\r\n }\r\n\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Ballot Candidate',\r\n message: `Are you sure you want to delete this candidate, \"${entry.name}\"?`,\r\n confirmText: 'Delete Ballot Candidate',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: async () => await this.deleteBallotCandidate(entry.ballotCandidateID)\r\n })\r\n },\r\n\r\n async deleteBallotCandidate(ballotCandidateID) {\r\n try {\r\n await ballotCandidateStore.dispatch('deleteBallotCandidate', {\r\n ballotCandidateID,\r\n done: () => {\r\n this.loading = false\r\n this.reload()\r\n }\r\n })\r\n } catch (e) {\r\n console.debug('There was an issue deleting this candidate.')\r\n }\r\n },\r\n\r\n async processCandidateDetail(entry) {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError(\r\n 'Please click Save prior to updating this candidate. You changed the ballot type.'\r\n )\r\n return\r\n }\r\n\r\n this.selectedBallotCandidate = entry\r\n this.toggle = true\r\n },\r\n\r\n async loadBallotMultipleList() {\r\n await ballotMultipleStore\r\n .dispatch('getBallotMultipleList', {\r\n ballotID: this.ballotID\r\n })\r\n .then(({ list }) => {\r\n this.determineMultipleRows(list)\r\n this.loading = false\r\n\r\n this.numberOfChoices = list.length\r\n })\r\n },\r\n\r\n determineMultipleRows: 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 const displayOrder = _get(entry, 'displayOrder', 0)\r\n const createdDate = parseDate(_get(entry, 'createdDate', null), dateFormat)\r\n\r\n return {\r\n displayOrder,\r\n description,\r\n createdDate,\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.processMultipleDetail(entry)\r\n },\r\n text: 'Edit'\r\n }\r\n },\r\n erase: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.confirmDeleteMultiple(entry)\r\n },\r\n text: 'Delete'\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows2 = rows\r\n },\r\n\r\n async confirmDeleteMultiple(entry) {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError('Please click Save prior to deleting this option. You changed the ballot type.')\r\n return\r\n }\r\n\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Option',\r\n message: `Are you sure you want to delete this option, \"${entry.description}\"?`,\r\n confirmText: 'Delete Multiple Choice Option',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: async () => await this.deleteMultiple(entry.ballotMultipleChoiceOptionID)\r\n })\r\n },\r\n\r\n async deleteMultiple(ballotMultipleChoiceOptionID) {\r\n try {\r\n await ballotMultipleStore.dispatch('deleteMultiple', {\r\n ballotMultipleChoiceOptionID,\r\n done: () => {\r\n this.loading = false\r\n this.reload()\r\n }\r\n })\r\n } catch (e) {\r\n console.debug('There was an issue deleting this multiple choice option.')\r\n }\r\n },\r\n\r\n async processMultipleDetail(entry) {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError('Please click Save prior to updating this option. You changed the ballot type.')\r\n return\r\n }\r\n\r\n this.selectedBallotMultiple = entry\r\n this.toggle2 = true\r\n },\r\n\r\n async getBallotTypeList() {\r\n console.debug('in getBallotTypeList()')\r\n\r\n this.loading = true\r\n await ballotStore.dispatch('getBallotTypeList').then(({ list }) => {\r\n if (list) {\r\n this.ballotTypeList = list\r\n }\r\n })\r\n\r\n this.loading = false\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) {\r\n notifyError('There was a problem saving this ballot.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n if (!this.formData.completeByDate) {\r\n notifyError('Please enter a complete by Date.')\r\n return\r\n }\r\n\r\n try {\r\n let tempBallotTypeUpdate = ''\r\n if (this.formData.ballotTypeCode) {\r\n if (this.formData.ballotTypeCode === 'yesno') {\r\n tempBallotTypeUpdate = 'yes-no'\r\n this.formData.writeInCandidatesEnabled = false\r\n } else if (this.formData.ballotTypeCode === 'election') {\r\n tempBallotTypeUpdate = 'election'\r\n } else if (this.formData.ballotTypeCode === 'multiplechoice') {\r\n tempBallotTypeUpdate = 'multiple-choice'\r\n\r\n this.formData.writeInCandidatesEnabled = false\r\n\r\n console.debug('numOptions=' + this.numberOfChoices)\r\n if (\r\n this.formData.numOfOptions !== 1 &&\r\n this.formData.numOfOptions > this.numberOfChoices\r\n ) {\r\n notifyError(\r\n `Please make sure that the number of selectable multiple choice options is at least one and less than the total number of multiple choice options listed below (${this.numberOfChoices}).`\r\n )\r\n return\r\n }\r\n }\r\n\r\n this.orignalBallotType = this.formData.ballotTypeCode\r\n }\r\n\r\n let processedPublishDate = _get(this.formData, 'publishedDate', null)\r\n if (processedPublishDate) {\r\n //Make sure it is published at the first hour of the day\r\n processedPublishDate = moment(processedPublishDate).format('YYYY-MM-DD') + 'T01:00:00.000'\r\n }\r\n\r\n let processedCompleteByDate = _get(this.formData, 'completeByDate', null)\r\n if (processedCompleteByDate) {\r\n //Make sure it is published at the first hour of the day\r\n processedCompleteByDate =\r\n moment(processedCompleteByDate).format('YYYY-MM-DD') + 'T23:59:59.999'\r\n }\r\n\r\n const payload = {\r\n ballotID: this.ballotID,\r\n hoaID: this.hoaId,\r\n description: _get(this.formData, 'description', ''),\r\n fullDescription: _get(this.formData, 'fullDescription', ''),\r\n title: _get(this.formData, 'title', null),\r\n ballotType: tempBallotTypeUpdate,\r\n yesOptionDescription:\r\n tempBallotTypeUpdate === 'yes-no'\r\n ? _get(this.formData, 'yesOptionDescription', null)\r\n : null,\r\n noOptionDescription:\r\n tempBallotTypeUpdate === 'yes-no'\r\n ? _get(this.formData, 'noOptionDescription', null)\r\n : null,\r\n multipleChoiceNumOptionsSelectable:\r\n tempBallotTypeUpdate === 'multiple-choice'\r\n ? _get(this.formData, 'numOfOptions', null)\r\n : null,\r\n numOfElectionPositions:\r\n tempBallotTypeUpdate === 'election'\r\n ? _get(this.formData, 'numOfElectionPositions', null)\r\n : null,\r\n electionVotingIsCumulative:\r\n this.formData.electionCumulation && this.formData.electionCumulation === 'cumulative'\r\n ? true\r\n : false,\r\n completeByDate: processedCompleteByDate,\r\n isFinalized: this.isFinalized,\r\n isSecret: this.formData.isSecret,\r\n writeInCandidatesEnabled: _get(this.formData, 'allowWriteIn', false),\r\n publishedDate: processedPublishDate\r\n }\r\n\r\n console.log('payload=' + JSON.stringify(payload))\r\n\r\n await ballotStore.dispatch('updateBallot', {\r\n payload,\r\n done: () => {\r\n this.closeModal()\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 finalize() {\r\n console.debug('finalize...')\r\n this.isFinalized = true\r\n this.onFormSubmit()\r\n },\r\n\r\n async createBallotCandidateModal() {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError('Please click Save prior to adding a new candidate. You changed the ballot type.')\r\n return\r\n }\r\n\r\n this.selectedBallotCandidate = null\r\n this.toggle = true\r\n },\r\n\r\n async createBallotMultipleModal() {\r\n if (this.formData.ballotTypeCode !== this.orignalBallotType) {\r\n notifyError(\r\n 'Please click Save prior to adding a new multiple choice option. You changed the ballot type.'\r\n )\r\n return\r\n }\r\n\r\n this.selectedBallotMultiple = null\r\n this.toggle2 = true\r\n }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"ballot-candidate-modal\":\"\",\"id\":\"ballotModal\"}},[_c('div',{staticClass:\"container\"},[(_vm.fromInclude === false)?_c('div',{staticClass:\"is-size-4\"},[_vm._v(\" \"+_vm._s((_vm.buttonText + \" Ballot Candidate\"))+\" \")]):_vm._e(),_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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.onFormSubmit)}}},[_c('fieldset',[_c('div',{staticClass:\"is-12\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Name\",\"label\":\"Name\",\"type\":\"text\",\"vid\":\"Name\",\"placeholder\":\"Name\",\"spellcheck\":\"true\",\"aria-label\":\"Name\",\"rules\":\"required|max:50\"},model:{value:(_vm.formData.name),callback:function ($$v) {_vm.$set(_vm.formData, \"name\", $$v)},expression:\"formData.name\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Resume\",\"label\":\"Resume\",\"type\":\"textarea\",\"vid\":\"Resume\",\"placeholder\":\"Resume\",\"spellcheck\":\"true\",\"aria-label\":\"Resume\",\"rules\":\"required|max:8000\"},model:{value:(_vm.formData.resume),callback:function ($$v) {_vm.$set(_vm.formData, \"resume\", $$v)},expression:\"formData.resume\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('b-checkbox',{attrs:{\"native-value\":true},model:{value:(_vm.formData.isWriteIn),callback:function ($$v) {_vm.$set(_vm.formData, \"isWriteIn\", $$v)},expression:\"formData.isWriteIn\"}},[_vm._v(\" Write-In Candidate \")])],1),(_vm.fromInclude === false)?_c('div',{staticClass:\"pt-5\"},[(_vm.base64pdf)?_c('section',{staticClass:\"box\"},[_c('div',{staticClass:\"has-text-centered\",style:({ textAlign: 'left' }),attrs:{\"id\":\"viewpdf\"}},[_c('div',[_c('div',[_c('div',{directives:[{name:\"dragscroll\",rawName:\"v-dragscroll\",value:(true),expression:\"true\"}],class:['doc-viewer', { 'zoom-active': _vm.scale > 0.9 }]},[_c('pdf',{staticStyle:{\"display\":\"none\"},attrs:{\"src\":_vm.base64pdf},on:{\"num-pages\":function($event){_vm.pageCount = new Array($event)}}}),_vm._l((_vm.pageCount),function(page,index){return _c('pdf',{key:index,style:({ margin: 'auto', width: ((100 * _vm.scale) + \"%\") }),attrs:{\"src\":(\"\" + _vm.base64pdf),\"page\":index + 1,\"scale\":_vm.scale,\"resize\":true}})})],2)]),_c('div',{staticClass:\"doc-controls has-text-center\"},[_c('b-field',{attrs:{\"position\":\"is-centered\"}},[_c('div',{staticClass:\"control\"},[_c('b-button',{on:{\"click\":function($event){return _vm.zoom(-1)}}},[_vm._v(\"-\")])],1),_c('div',{staticClass:\"control\"},[_c('b-button',{on:{\"click\":function($event){return _vm.zoom(1)}}},[_vm._v(\"+\")])],1)])],1)])])]):_vm._e(),_c('div',[_c('b-field',{staticClass:\"file\"},[_c('b-upload',{staticClass:\"rectangle\",attrs:{\"drag-drop\":\"\",\"accept\":\"application/pdf\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}},[_c('section',{staticClass:\"section\"},[_c('div',{},[_c('div',[_c('img',{staticClass:\"Fill-1-Copy-11\",attrs:{\"src\":require(\"@/assets/images/fill-1-copy-11.svg\"),\"alt\":\"Upload\"}})]),(_vm.file)?_c('div',[_vm._v(\" \"+_vm._s(_vm.file.name)+\" \")]):_c('div',[_c('div',{staticClass:\"Drag-Drop-your-fil\"},[_c('div',{staticClass:\"text-style-1\"},[_vm._v(\"Drag & Drop\")]),_c('div',[_vm._v(\"your files here to upload\")])])])])])])],1)],1)]):_vm._e(),_c('div',{staticClass:\"pt-6\"},[_c('button',{class:(\"button \" + (_vm.fromInclude === false ? 'is-primary' : 'is-info')),attrs:{\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.buttonText))]),_c('span',{staticClass:\"pl-3\"},[_vm._v(\" \")]),(_vm.base64pdf)?_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.replaceFile()}}},[_vm._v(\" Replace \")]):_vm._e(),(_vm.fromInclude === false)?_c('span',[_c('span',{staticClass:\"pl-3\"},[_vm._v(\" \")]),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal()}}},[_vm._v(\" Close \")])],1):_vm._e()],1)]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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 description: '',\r\n buttonText: 'Add',\r\n file: null,\r\n base64pdf: '',\r\n pageCount: [],\r\n scale: 1,\r\n imageContent: null,\r\n attachment: false,\r\n ballotCandidateID: 0,\r\n ballotCandidateTemp: null,\r\n formData: {\r\n name: '',\r\n resume: '',\r\n isWriteIn: false\r\n }\r\n }\r\n}\r\n","import { ballotCandidateStore } from '@/services/BallotCandidate/store'\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\nimport $ from 'jquery'\r\nimport _get from 'lodash/get'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n if (this.ballotCandidate && this.ballotCandidate !== undefined) {\r\n if (this.ballotCandidateTemp === null) {\r\n this.ballotCandidateTemp = this.ballotCandidate\r\n }\r\n\r\n this.buttonText = 'Save'\r\n this.formData.name = this.ballotCandidateTemp.name\r\n this.formData.resume = this.ballotCandidateTemp.resume\r\n this.formData.isWriteIn = this.ballotCandidateTemp.isWriteIn\r\n\r\n if (this.ballotCandidateTemp.resumeDocumentID) {\r\n this.attachment = true\r\n this.loadCurrentDocument()\r\n }\r\n } else {\r\n this.buttonText = 'Add'\r\n }\r\n },\r\n\r\n async loadCurrentDocument() {\r\n if (\r\n !this.ballotCandidateTemp ||\r\n !this.ballotCandidateTemp.ballotCandidateID ||\r\n this.ballotCandidateTemp.ballotCandidateID <= 0\r\n ) {\r\n return\r\n }\r\n\r\n try {\r\n const params = {\r\n ballotCandidateID: this.ballotCandidateTemp.ballotCandidateID,\r\n asBase64: true\r\n }\r\n\r\n await ballotCandidateStore.dispatch('getResumeFile', {\r\n params: params,\r\n done: ({ details }) => {\r\n if (details) {\r\n if (this.isDebug == true)\r\n console.debug(' - params' + JSON.stringify(params) + ' - this.getFile=' + details)\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 replaceFile() {\r\n if (this.file) {\r\n this.ballotCandidateID = this.ballotCandidateTemp.ballotCandidateID\r\n await this.submitFile()\r\n await this.getBallotCandidateById()\r\n await this.reload()\r\n } else {\r\n notifyError('Please drag and drop a new file to replace the existing document.')\r\n }\r\n },\r\n\r\n async submitFile() {\r\n if (!this.ballotCandidateID && this.ballotCandidateID <= 0) {\r\n notifyError('There was a problem uploading this resume.')\r\n return\r\n }\r\n\r\n console.debug('in submitFile...')\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 if (this.file) {\r\n const payload = {\r\n ballotCandidateID: this.ballotCandidateID,\r\n file: this.file\r\n }\r\n\r\n await ballotCandidateStore.dispatch('uploadDocument', {\r\n payload: payload,\r\n done: ({ returnedFile }) => {\r\n if (returnedFile) {\r\n notifyMessage(`Successfully uploaded this resume.`)\r\n } else {\r\n notifyError('There was a problem uploading this resume.')\r\n }\r\n }\r\n })\r\n }\r\n } catch (e) {\r\n notifyError(e)\r\n loadingComponent.close()\r\n }\r\n this.loading = false\r\n loadingComponent.close()\r\n },\r\n\r\n async getBallotCandidateById() {\r\n await ballotCandidateStore\r\n .dispatch('getBallotCandidateById', {\r\n ballotCandidateID: this.ballotCandidateID\r\n })\r\n .then(async ({ result }) => {\r\n if (result) {\r\n this.ballotCandidateTemp = 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) {\r\n notifyError('There was a problemm saving this candidate.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n try {\r\n const payload = {\r\n ballotID: this.ballotID,\r\n name: _get(this.formData, 'name', ''),\r\n isWriteIn: _get(this.formData, 'isWriteIn', null),\r\n resume: _get(this.formData, 'resume', ''),\r\n resumeDocumentID:\r\n this.attachment === true ? _get(this.ballotCandidateTemp, 'resumeDocumentID', null) : null\r\n }\r\n\r\n console.log('payload=' + JSON.stringify(payload))\r\n\r\n if (this.ballotCandidateTemp && this.ballotCandidateTemp !== undefined) {\r\n payload.ballotCandidateID = this.ballotCandidate.ballotCandidateID\r\n\r\n await ballotCandidateStore.dispatch('updateBallotCandidate', {\r\n payload,\r\n done: async ({ detail }) => {\r\n if (detail) {\r\n this.ballotCandidateID = detail.ballotCandidateID\r\n\r\n if (this.file && !payload.resumeDocumentID) {\r\n this.submitFile()\r\n }\r\n\r\n this.closeModal()\r\n }\r\n }\r\n })\r\n } else {\r\n await ballotCandidateStore.dispatch('addBallotCandidate', {\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.ballotCandidateID = detail.ballotCandidateID\r\n\r\n if (this.file) {\r\n await this.submitFile()\r\n }\r\n\r\n if (this.fromInclude === false) {\r\n this.closeModal()\r\n }\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 zoom(direction) {\r\n const amt = Math.sqrt(2)\r\n if (direction > 0) {\r\n this.scale *= amt\r\n } else {\r\n this.scale /= amt\r\n }\r\n\r\n // constrain to min/max\r\n this.scale = Math.max(0.5, Math.min(4, this.scale))\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=e427e936&\"\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('div',{staticClass:\"section\",attrs:{\"ballot-multiple-modal\":\"\",\"id\":\"ballotModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"is-size-4\"},[_vm._v(_vm._s((_vm.buttonText + \" Ballot Multiple Choice Option\")))]),_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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.onFormSubmit)}}},[_c('fieldset',[_c('div',{staticClass:\"is-12\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Description\",\"label\":\"Description\",\"type\":\"text\",\"vid\":\"Description\",\"placeholder\":\"Description\",\"spellcheck\":\"true\",\"aria-label\":\"Description\",\"rules\":\"required|max:200\"},model:{value:(_vm.formData.description),callback:function ($$v) {_vm.$set(_vm.formData, \"description\", $$v)},expression:\"formData.description\"}})],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('b-field',{attrs:{\"label\":\"Display Order\"}},[_c('b-numberinput',{attrs:{\"name\":\"formData.displayOrder\",\"vid\":\"displayOrder\",\"required\":\"\"},model:{value:(_vm.formData.displayOrder),callback:function ($$v) {_vm.$set(_vm.formData, \"displayOrder\", $$v)},expression:\"formData.displayOrder\"}})],1)],1),_c('div',{staticClass:\"pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.buttonText))]),_c('span',{staticClass:\"pl-3\"},[_vm._v(\" \")]),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal()}}},[_vm._v(\" Close \")])],1)]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar 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 buttonText: 'Add',\r\n formData: {\r\n description: '',\r\n displayOrder: 0,\r\n numOfElectionPositions: 0\r\n }\r\n }\r\n}\r\n","import { ballotMultipleStore } from '@/services/BallotMultipleChoiceOption/store'\r\nimport { notifyError } from '@/services/notify'\r\nimport $ from 'jquery'\r\nimport _get from 'lodash/get'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload()')\r\n\r\n if (this.ballotMultiple && this.ballotMultiple !== undefined) {\r\n this.buttonText = 'Save'\r\n this.formData.description = this.ballotMultiple.description\r\n this.formData.displayOrder = this.ballotMultiple.displayOrder\r\n } else {\r\n this.buttonText = 'Add'\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) {\r\n notifyError('There was a problemm saving this multiple choice option.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n try {\r\n const payload = {\r\n ballotID: this.ballotID,\r\n description: _get(this.formData, 'description', ''),\r\n displayOrder: _get(this.formData, 'displayOrder', 0),\r\n numOfElectionPositions: _get(this.formData, 'numOfElectionPositions', 0)\r\n }\r\n\r\n console.log('payload=' + JSON.stringify(payload))\r\n\r\n if (this.ballotMultiple && this.ballotMultiple !== undefined) {\r\n payload.ballotMultipleChoiceOptionID = this.ballotMultiple.ballotMultipleChoiceOptionID\r\n\r\n await ballotMultipleStore.dispatch('updateBallotMultiple', {\r\n payload,\r\n done: () => {\r\n this.closeModal()\r\n }\r\n })\r\n } else {\r\n await ballotMultipleStore.dispatch('addBallotMultiple', {\r\n payload,\r\n done: () => {\r\n this.closeModal()\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=4218bcce&\"\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","\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=2c64da08&\"\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 isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","module.exports = __webpack_public_path__ + \"img/fill-1-copy-11.4a777982.svg\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Details.vue?vue&type=style&index=0&id=6560a92e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Details.vue?vue&type=style&index=0&id=6560a92e&lang=scss&scoped=true&\""],"sourceRoot":""}