{"version":3,"sources":["webpack:///./src/utilities/Date/parse.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:///./node_modules/vue-dragscroll/dist/vue-dragscroll.min.js","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/List.vue?bd52","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/index.vue?acc9","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/keys/data.js","webpack:///./src/services/DocumentCenter/store.js","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/keys/methods.js","webpack:///src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/index.vue?89ab","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/Download.vue?1aeb","webpack:///src/pages/Management/communityCenter/tabs/documentCenter/component/Download.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/Download.vue?7d79","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/Download.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/keys/methods.js","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/keys/data.js","webpack:///src/pages/Management/communityCenter/tabs/documentCenter/List.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/List.vue?9390","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/List.vue","webpack:///./src/pages/Management/communityCenter/tabs/documentCenter/component/GoverningDocumentModal/index.vue?bb62","webpack:///./src/services/blobutility.js","webpack:///./src/assets/images/fill-1-copy-11.svg"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","render","_vm","this","_h","$createElement","_c","_self","visible","undefined","class","isprimary","attrs","tooltip","disabled","on","$event","preventDefault","onClick","apply","arguments","_v","_s","text","_e","staticRenderFns","props","component","e","o","module","exports","window","t","n","r","i","l","call","m","c","d","Object","defineProperty","enumerable","get","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","s","length","addEventListener","passive","removeEventListener","componentInstance","$emit","CustomEvent","detail","document","createEvent","initCustomEvent","elm","dispatchEvent","iterator","constructor","u","a","f","target","querySelector","container","active","scrollBy","scrollLeft","scrollTop","v","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","JSON","stringify","oldValue","unbind","install","Number","version","split","Error","concat","directive","Vue","VueDragscroll","use","staticClass","style","assign","breakpoint","width","createGoverningDocumentModal","region","filters","rows","columns","perPage","loading","toggle","selectedGoverningDocument","title","ref","scopedSlots","_u","key","fn","handleSubmit","onFormSubmit","model","callback","$$v","governingDocumentCategoryID","expression","_l","option","domProps","label","staticStyle","documentName","directives","name","rawName","scale","base64pdf","pageCount","Array","page","index","margin","zoom","imageContent","file","attachment","governingDocument","submitFile","replaceFile","closeModal","errors","data","isDebug","isOpen","isFetching","openOnFocus","buttonText","governingDocumentID","categoryList","actions","getDocumentCenterList","hoaID","log","kms","params","results","list","notifyProblem","getDocumentCategoryList","getDocumentFile","dispatch","done","path","result","details","deleteGoverningDocument","delete","wasDeleted","_get","notifyMessage","notifyError","addGoverningDocument","documentID","description","post","updateGoverningDocument","payload","put","uploadDocument","formData","FormData","append","uploadedGoverningDocumentFile","returnedFile","Vuex","documentCenterStore","Store","state","mutations","getters","methods","reload","loadCategories","loadCurrentDocument","open","then","map","$","focus","asBase64","updateModal","addModal","documentToggle","click","hoaId","direction","amt","Math","sqrt","max","min","components","ValidInput","ValidSelect","ValidationObserver","ValidationProvider","pdf","mounted","computed","downloadPdf","String","Function","determineRows","isArray","entry","category","createdDate","uploaded","edit","Button","redirectToEdit","confirmDeleteDocument","Download","$buefy","dialog","confirm","confirmText","type","hasIcon","onConfirm","asRawBase64","contentType","blob","base64toBlob","showPdf","notifyWarning","loadDocuentCenter","showFilters","documents","formatDateFn","show","field","aria","sortable","searchable","styles","dateSelector","display","padding","textAlign","verticalAlign","flexWrap","alignItems","justifyContent","filterButton","float","marginTop","PageContentLayoutOnly","ModernTable","DocumentsModal","Modal","watch","unsubWindowStore","mType","i18n","messages","en","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","slice","byteNumbers","charCodeAt","byteArray","Uint8Array","push","Blob","newBlob","navigator","msSaveOrOpenBlob","URL","createObjectURL","link","createElement","download","setAttribute","href","setTimeout","revokeObjectURL","showAnyType","mimeType"],"mappings":"kIAAA,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,kCC3BT,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAASF,EAAIM,UAA2B,IAAhBN,EAAIM,cAAqCC,IAAhBP,EAAIM,QAAuBF,EAAG,WAAW,CAACI,WAAwBD,IAAlBP,EAAIS,YAA6C,IAAlBT,EAAIS,UACrN,mDACA,yDAAyDC,MAAM,CAAC,MAAQV,EAAIW,QAAQ,SAAWX,EAAIY,eAA6BL,IAAjBP,EAAIY,WAA2C,IAAjBZ,EAAIY,UAAmBC,GAAG,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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 ((_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 }","<template>\r\n <b-button\r\n v-if=\"(visible && visible === true) || visible === undefined\"\r\n @click.prevent=\"onClick\"\r\n :class=\"\r\n isprimary !== undefined && isprimary === true\r\n ? 'button is-primary is-small is-outline is-rounded'\r\n : 'button is-info is-light is-small is-outline is-rounded'\r\n \"\r\n :title=\"tooltip\"\r\n :disabled=\"disabled && disabled !== undefined && disabled === true\"\r\n >{{ text }}</b-button\r\n >\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: ['onClick', 'text', 'visible', 'disabled', 'isprimary', 'tooltip']\r\n}\r\n</script>\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","!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<r;n++)e.addEventListener(o[n],t,{passive:!1})},r=function(e,o,t){for(var n=0,r=o.length;n<r;n++)e.removeEventListener(o[n],t,{passive:!1})},i=function(e,o,t){var n;e.componentInstance?e.componentInstance.$emit(o,t):(\"function\"==typeof window.CustomEvent?n=new window.CustomEvent(o,{detail:t}):(n=document.createEvent(\"CustomEvent\")).initCustomEvent(o,!0,!0,t),e.elm.dispatchEvent(n))};function l(e){return(l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var u=[\"mousedown\",\"touchstart\"],c=[\"mousemove\",\"touchmove\"],a=[\"mouseup\",\"touchend\"],s=function(e,o,t){var s=e,d=!0,f=window;\"boolean\"==typeof o.value?d=o.value:\"object\"===l(o.value)?(\"string\"==typeof o.value.target?(s=e.querySelector(o.value.target))||console.error(\"There is no element with the current target value.\"):void 0!==o.value.target&&console.error(\"The parameter \\\"target\\\" should be either 'undefined' or 'string'.\"),\"string\"==typeof o.value.container?(f=document.querySelector(o.value.container))||console.error(\"There is no element with the current container value.\"):void 0!==o.value.container&&console.error(\"The parameter \\\"container\\\" should be be either 'undefined' or 'string'.\"),\"boolean\"==typeof o.value.active?d=o.value.active:void 0!==o.value.active&&console.error(\"The parameter \\\"active\\\" value should be either 'undefined', 'true' or 'false'.\")):void 0!==o.value&&console.error(\"The passed value should be either 'undefined', 'true' or 'false' or 'object'.\");var m=function(e,o){f===window?window.scrollBy(e,o):(f.scrollLeft+=e,f.scrollTop+=o)},v=function(){var e,r,l,d=!1;s.md=function(t){var n=t instanceof window.MouseEvent,i=n?t.pageX:t.touches[0].pageX,u=n?t.pageY:t.touches[0].pageY,c=document.elementFromPoint(i-window.pageXOffset,u-window.pageYOffset),a=\"nochilddrag\"===o.arg,d=o.modifiers.noleft,f=o.modifiers.noright,m=o.modifiers.nomiddle,v=o.modifiers.noback,p=o.modifiers.noforward,w=\"firstchilddrag\"===o.arg,h=c===s,y=c===s.firstChild,g=a?void 0!==c.dataset.dragscroll:void 0===c.dataset.noDragscroll;(h||g&&(!w||y))&&(1===t.which&&d||2===t.which&&m||3===t.which&&f||4===t.which&&v||5===t.which&&p||(l=1,e=n?t.clientX:t.touches[0].clientX,r=n?t.clientY:t.touches[0].clientY))},s.mu=function(e){l=0,d&&i(t,\"dragscrollend\"),d=!1},s.mm=function(n){var u,c,a=n instanceof window.MouseEvent,f={};if(l){n.preventDefault(),d||i(t,\"dragscrollstart\"),d=!0;var v=s.scrollLeft+s.clientWidth>=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('PageContentLayoutOnly',{attrs:{\"role\":\"region\"}},[_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {}\n : {\n width: '100%'\n }))),attrs:{\"type\":\"is-primary\",\"rounded\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.createGoverningDocumentModal()}}},[_vm._v(\" Add Published Document \")])],1)]),_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading,\"headerColor\":\"#FFF\",\"condensed\":\"\"}}),_c('Modal',{attrs:{\"toggle\":_vm.toggle},on:{\"update:toggle\":function($event){_vm.toggle=$event}}},[_c('DocumentsModal',{attrs:{\"governingDocument\":_vm.selectedGoverningDocument}})],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 uploader\",attrs:{\"governing-document-modal\":\"\",\"id\":\"governingDocumentModal\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"is-size-4\"},[_vm._v(_vm._s((_vm.title + \" Published Document\")))]),_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',[(_vm.categoryList)?_c('div',{staticClass:\"pt-5\"},[_c('valid-select',{attrs:{\"label\":\"Category\",\"placeholder\":\"Category\",\"vid\":\"category\",\"required\":\"true\",\"rules\":\"required\"},model:{value:(_vm.governingDocumentCategoryID),callback:function ($$v) {_vm.governingDocumentCategoryID=$$v},expression:\"governingDocumentCategoryID\"}},_vm._l((_vm.categoryList),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(_vm._s(option.label))])}),0)],1):_vm._e(),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"DocumentName\",\"label\":\"Document Name\",\"type\":\"text\",\"vid\":\"DocumentName\",\"placeholder\":\"Document Name\",\"spellcheck\":\"true\",\"aria-label\":\"Document Name\",\"rules\":\"max:8000|required\"},model:{value:(_vm.documentName),callback:function ($$v) {_vm.documentName=$$v},expression:\"documentName\"}})],1),_c('div',{staticClass:\"box is-8\"},[_c('section',[(_vm.base64pdf)?_c('div',{staticClass:\"has-text-centered\",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.imageContent)?_c('div',[_c('img',{attrs:{\"src\":_vm.imageContent}})]):_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(\"Please upload PDF files\")])])])])])])],1)],1),_c('div',{staticClass:\"pt-5\"},[(_vm.attachment == false && !_vm.governingDocument)?_c('span',{staticClass:\"pr-5\"},[_c('b-button',{attrs:{\"type\":\"is-primary\",\"disabled\":!_vm.file},on:{\"click\":_vm.submitFile}},[_vm._v(\"Add/Upload\")])],1):_vm._e(),_c('span',{staticClass:\"pt-5 pr-5\"},[(_vm.governingDocument && _vm.governingDocument != undefined)?_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\",\"disabled\":_vm.loading}},[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]):_vm._e()]),(_vm.governingDocument && _vm.governingDocument != undefined)?_c('span',{staticClass:\"pr-5\"},[_c('b-button',{attrs:{\"type\":\"is-primary\",\"disabled\":!_vm.file},on:{\"click\":_vm.replaceFile}},[_vm._v(\"Replace\")])],1):_vm._e(),_c('span',[_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":_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 file: null,\r\n base64pdf: '',\r\n scale: 1,\r\n imageContent: null,\r\n documentName: '',\r\n title: 'Create',\r\n attachment: false,\r\n governingDocumentID: 0,\r\n governingDocumentCategoryID: 0,\r\n categoryList: [],\r\n pageCount: []\r\n }\r\n}\r\n","/*\r\n import { documentCenterStore } from '@/services/DocumentCenter/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport { notifyMessage, notifyProblem, notifyError } from '@/services/notify'\r\nimport _get from 'lodash/get'\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 documentCenterStore.dispatch ('getDocumentCenterList', {\r\n hoaId\r\n });\r\n */\r\n\r\n async getDocumentCenterList({}, { hoaID, governingDocumentCategoryID }) {\r\n console.log('in getDocumentCenterList...')\r\n try {\r\n const results = await kms.get('/GoverningDocuments/GoverningDocument/List', {\r\n params: {\r\n hoaID,\r\n governingDocumentCategoryID\r\n }\r\n })\r\n\r\n if (isDebug == true) console.debug('getDocumentCenterList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`Published Documents 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 getDocumentCategoryList({}) {\r\n console.log('in getDocumentCategoryList...')\r\n try {\r\n const results = await kms.get('/GoverningDocuments/GoverningDocumentCategory/List')\r\n\r\n if (isDebug == true) console.debug('getDocumentCategoryList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The Document Category 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 getDocumentFile({ dispatch }, { params, done }) {\r\n const path = `/GoverningDocuments/GoverningDocument/GetFile`\r\n const result = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true) console.debug('getDocumentFile=' + 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 the published document.`)\r\n done({ details: result })\r\n } else {\r\n console.error('There was a problem retrieving the published document.')\r\n }\r\n },\r\n\r\n async deleteGoverningDocument({ dispatch }, { governingDocumentID, done }) {\r\n try {\r\n const path = `/GoverningDocuments/GoverningDocument/${governingDocumentID}?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 published document.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting this published document.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem deleting this published document.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async addGoverningDocument(\r\n { dispatch },\r\n { hoaID, documentID, governingDocumentCategoryID, description, done }\r\n ) {\r\n try {\r\n const result = await kms.post(`/GoverningDocuments/GoverningDocument`, {\r\n hoaID,\r\n documentID,\r\n governingDocumentCategoryID,\r\n description\r\n })\r\n\r\n console.debug('result=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result.governingDocumentID > 0) {\r\n console.debug(`Successfully added the published document.`)\r\n done({ details: result })\r\n } else {\r\n console.debug('There was a problem adding the published document.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem adding this published document.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async updateGoverningDocument({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/GoverningDocuments/GoverningDocument`, 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.governingDocumentID > 0) {\r\n notifyMessage(`Successfully updated the published document.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem updating this published document.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem processing the update for this published document.`)\r\n console.error(exception)\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 = `/GoverningDocuments/GoverningDocument/StoreDocument?hoaID=${payload.hoaID}&governingDocumentID=${payload.governingDocumentID}&description=${payload.description}`\r\n const uploadedGoverningDocumentFile = 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(\r\n 'uploadDocument with payload=' + JSON.stringify(uploadedGoverningDocumentFile)\r\n )\r\n\r\n done({ returnedFile: uploadedGoverningDocumentFile })\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 documentCenterStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import { documentCenterStore } from '@/services/DocumentCenter/store'\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\nimport $ from 'jquery'\r\n\r\nexport const methods = {\r\n async reload() {\r\n this.loading = true\r\n\r\n this.loadCategories()\r\n\r\n if (this.governingDocument && this.governingDocument != undefined) {\r\n this.documentName = this.governingDocument.description\r\n this.governingDocumentCategoryID = this.governingDocument.governingDocumentCategoryID\r\n\r\n if (this.governingDocument.documentID && this.governingDocument.documentID != undefined) {\r\n this.attachment = true\r\n this.loadCurrentDocument()\r\n }\r\n\r\n //Update\r\n this.title = 'Update'\r\n\r\n this.loading = false\r\n } else {\r\n this.title = 'Add'\r\n this.loading = false\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 async loadCategories() {\r\n await documentCenterStore.dispatch('getDocumentCategoryList').then(async ({ list }) => {\r\n if (list) {\r\n this.categoryList = list.map(m => ({\r\n value: m.governingDocumentCategoryID,\r\n label: m.name\r\n }))\r\n }\r\n })\r\n },\r\n\r\n async replaceFile() {\r\n if (\r\n this.governingDocument &&\r\n this.governingDocument != undefined &&\r\n this.governingDocument.governingDocumentID > 0\r\n ) {\r\n const payload = {\r\n hoaID: this.governingDocument.hoaID,\r\n governingDocumentID: this.governingDocument.governingDocumentID,\r\n description: this.governingDocument.description,\r\n file: this.file\r\n }\r\n\r\n await documentCenterStore.dispatch('uploadDocument', {\r\n payload: payload,\r\n done: ({ returnedFile }) => {\r\n if (returnedFile) {\r\n this.reload()\r\n $('#viewpdf').focus()\r\n notifyMessage(`Successfully replaced the document.`)\r\n } else {\r\n notifyError('There was a problem replacing this document.')\r\n }\r\n }\r\n })\r\n }\r\n },\r\n\r\n async loadCurrentDocument() {\r\n if (\r\n !this.governingDocument ||\r\n !this.governingDocument.documentID ||\r\n this.governingDocument.documentID <= 0\r\n ) {\r\n return\r\n }\r\n\r\n try {\r\n const params = {\r\n governingDocumentID: this.governingDocument.governingDocumentID,\r\n asBase64: true\r\n }\r\n\r\n await documentCenterStore.dispatch('getDocumentFile', {\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.getDocumentFile=' + details\r\n )\r\n\r\n this.base64pdf = details\r\n this.imageContent = null\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n }\r\n },\r\n\r\n async onFormSubmit() {\r\n if (this.documentName && this.documentName != undefined) {\r\n if (this.governingDocument) {\r\n await this.updateModal()\r\n } else {\r\n await this.addModal()\r\n }\r\n }\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 addModal() {\r\n if (this.documentName == '') {\r\n notifyError('Document Name is a required field.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n await documentCenterStore.dispatch('addGoverningDocument', {\r\n hoaID: this.hoaId,\r\n documentID: null,\r\n governingDocumentCategoryID: this.governingDocumentCategoryID,\r\n description: this.documentName,\r\n done: async ({ details }) => {\r\n if (details) {\r\n this.loading = false\r\n // auto-close modal\r\n $('#clickclose').click()\r\n }\r\n }\r\n })\r\n },\r\n\r\n async updateModal() {\r\n if (!this.governingDocument || this.governingDocument == undefined) {\r\n notifyError('There was a problem updating this published document.')\r\n return\r\n }\r\n\r\n console.debug('updateModal...')\r\n\r\n this.loading = true\r\n\r\n const payload = {\r\n governingDocumentID: this.governingDocument.governingDocumentID,\r\n hoaID: this.governingDocument.hoaID,\r\n governingDocumentCategoryID: this.governingDocumentCategoryID,\r\n description: this.documentName ? this.documentName : null,\r\n documentID: this.governingDocument.documentID ? this.governingDocument.documentID : null\r\n }\r\n\r\n await documentCenterStore.dispatch('updateGoverningDocument', {\r\n payload: payload,\r\n done: () => {\r\n // auto-close modal\r\n this.$emit('update:toggle', (this.toggle = false))\r\n $('#clickclose').click()\r\n this.loading = false\r\n }\r\n })\r\n },\r\n\r\n async submitFile() {\r\n if (this.documentName == '') {\r\n notifyError('Document Name is a required field.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n try {\r\n if (this.attachment == false) {\r\n await documentCenterStore.dispatch('addGoverningDocument', {\r\n hoaID: this.hoaId,\r\n documentID: null,\r\n governingDocumentCategoryID: this.governingDocumentCategoryID,\r\n description: this.documentName,\r\n done: async ({ details }) => {\r\n if (details && details != undefined && details.governingDocumentID > 0) {\r\n const payload = {\r\n hoaID: details.hoaID,\r\n governingDocumentID: details.governingDocumentID,\r\n description: details.description,\r\n file: this.file\r\n }\r\n\r\n console.debug('payload prior to store file=' + JSON.stringify(payload))\r\n\r\n await documentCenterStore.dispatch('uploadDocument', {\r\n payload: payload,\r\n done: ({ returnedFile }) => {\r\n if (returnedFile) {\r\n this.$emit('update:toggle', (this.documentToggle = !this.documentToggle))\r\n // auto-close modal\r\n $('#clickclose').click()\r\n\r\n notifyMessage(`Successfully uploaded the document.`)\r\n } else {\r\n notifyError('There was a problem uploading this document.')\r\n }\r\n }\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","<template>\r\n <div governing-document-modal id=\"governingDocumentModal\" class=\"section uploader\">\r\n <div class=\"container\">\r\n <div class=\"is-size-4\">{{ `${title} Published Document` }}</div>\r\n <div class=\"box is-12\">\r\n <ValidationObserver ref=\"form\" v-slot=\"{ handleSubmit }\">\r\n <transition name=\"fade\" mode=\"out-in\" appear>\r\n <form @submit.prevent=\"handleSubmit(onFormSubmit)\" class=\"form\">\r\n <fieldset>\r\n <div class=\"pt-5\" v-if=\"categoryList\">\r\n <valid-select\r\n label=\"Category\"\r\n placeholder=\"Category\"\r\n vid=\"category\"\r\n required=\"true\"\r\n rules=\"required\"\r\n v-model=\"governingDocumentCategoryID\"\r\n >\r\n <option\r\n v-for=\"option in categoryList\"\r\n :value=\"option.value\"\r\n :key=\"option.value\"\r\n >{{ option.label }}</option\r\n >\r\n </valid-select>\r\n </div>\r\n <div class=\"is-12 pt-5\">\r\n <valid-input\r\n style=\"width:50px !important;\"\r\n name=\"DocumentName\"\r\n label=\"Document Name\"\r\n type=\"text\"\r\n vid=\"DocumentName\"\r\n placeholder=\"Document Name\"\r\n spellcheck=\"true\"\r\n aria-label=\"Document Name\"\r\n rules=\"max:8000|required\"\r\n class=\"is-small\"\r\n v-model=\"documentName\"\r\n />\r\n </div>\r\n <div class=\"box is-8\">\r\n <section>\r\n <div id=\"viewpdf\" v-if=\"base64pdf\" class=\"has-text-centered\">\r\n <div>\r\n <div>\r\n <div\r\n v-dragscroll=\"true\"\r\n :class=\"['doc-viewer', { 'zoom-active': scale > 0.9 }]\"\r\n >\r\n <pdf\r\n style=\"display: none;\"\r\n :src=\"base64pdf\"\r\n @num-pages=\"pageCount = new Array($event)\"\r\n />\r\n <!-- Actual document -->\r\n <pdf\r\n v-for=\"(page, index) in pageCount\"\r\n :key=\"index\"\r\n :src=\"`${base64pdf}`\"\r\n :page=\"index + 1\"\r\n :scale=\"scale\"\r\n :resize=\"true\"\r\n :style=\"{ margin: 'auto', width: `${100 * scale}%` }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"doc-controls has-text-center\">\r\n <b-field position=\"is-centered\">\r\n <div class=\"control\">\r\n <b-button @click=\"zoom(-1)\">-</b-button>\r\n </div>\r\n <div class=\"control\">\r\n <b-button @click=\"zoom(1)\">+</b-button>\r\n </div>\r\n </b-field>\r\n </div>\r\n </div>\r\n </div>\r\n <div v-else-if=\"imageContent\">\r\n <img :src=\"imageContent\" />\r\n </div>\r\n <div>\r\n <!-- Show the Upload Form -->\r\n <b-field class=\"file\">\r\n <b-upload\r\n v-model=\"file\"\r\n drag-drop\r\n accept=\"application/pdf\"\r\n class=\"rectangle\"\r\n >\r\n <section class=\"section\">\r\n <div class=\"\">\r\n <div>\r\n <img\r\n class=\"Fill-1-Copy-11\"\r\n src=\"@/assets/images/fill-1-copy-11.svg\"\r\n alt=\"Upload\"\r\n />\r\n </div>\r\n <div v-if=\"file\">\r\n {{ file.name }}\r\n </div>\r\n <div v-else>\r\n <div class=\"Drag-Drop-your-fil\">\r\n <div class=\"text-style-1\">Drag & Drop</div>\r\n <div>Please upload PDF files</div>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n </b-upload>\r\n </b-field>\r\n </div>\r\n <div class=\"pt-5\">\r\n <span class=\"pr-5\" v-if=\"attachment == false && !governingDocument\"\r\n ><b-button type=\"is-primary\" :disabled=\"!file\" @click=\"submitFile\"\r\n >Add/Upload</b-button\r\n ></span\r\n >\r\n <span class=\"pt-5 pr-5\">\r\n <button\r\n v-if=\"governingDocument && governingDocument != undefined\"\r\n type=\"submit\"\r\n :disabled=\"loading\"\r\n class=\"button is-primary is-rounded\"\r\n >\r\n {{ title }}\r\n </button>\r\n </span>\r\n\r\n <span class=\"pr-5\" v-if=\"governingDocument && governingDocument != undefined\"\r\n ><b-button type=\"is-primary\" :disabled=\"!file\" @click=\"replaceFile\"\r\n >Replace</b-button\r\n ></span\r\n >\r\n <span><b-button type=\"is-primary\" @click=\"closeModal\">Close</b-button></span>\r\n </div>\r\n </section>\r\n </div>\r\n </fieldset>\r\n <fieldset>\r\n <ValidationProvider vid=\"providerErrors\" v-slot=\"{ errors }\">\r\n <div class=\"field\">\r\n <span>{{ errors[0] }}</span>\r\n </div>\r\n </ValidationProvider>\r\n </fieldset>\r\n </form>\r\n </transition>\r\n </ValidationObserver>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { ValidationObserver, ValidationProvider } from 'vee-validate'\r\nimport { mapState, mapGetters } from 'vuex'\r\nimport { data } from './keys/data'\r\nimport { methods } from './keys/methods'\r\nimport pdf from 'vue-pdf'\r\nimport ValidInput from '@/components/inputs/ValidInput'\r\nimport ValidSelect from '@/components/inputs/ValidSelect'\r\nimport { dragscroll } from 'vue-dragscroll'\r\n\r\nexport default {\r\n name: 'GoverningDocumentModal',\r\n props: {\r\n governingDocument: Object\r\n },\r\n\r\n directives: { dragscroll },\r\n\r\n components: {\r\n ValidInput,\r\n ValidSelect,\r\n ValidationObserver,\r\n ValidationProvider,\r\n pdf\r\n },\r\n\r\n mounted() {\r\n this.reload()\r\n },\r\n\r\n computed: {\r\n ...mapState({\r\n hoaId: state => state.user.selectedHoaId,\r\n ...mapGetters('user', ['authUser'])\r\n })\r\n },\r\n\r\n data,\r\n methods\r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n#governingDocumentModal {\r\n .modal-h-full {\r\n left: 50%;\r\n transform: translate(-50%);\r\n }\r\n\r\n .doc-viewer {\r\n display: block;\r\n position: relative;\r\n overflow: hidden;\r\n width: 100%;\r\n height: 130%;\r\n min-height: 40vh;\r\n max-height: calc(100vh - 320px);\r\n border: 1px solid #dbdbdb;\r\n\r\n &.zoom-active {\r\n cursor: grab;\r\n }\r\n }\r\n\r\n .doc-controls {\r\n margin-top: -1em;\r\n }\r\n}\r\n\r\n#request-image-upload {\r\n .upload .upload-draggable {\r\n border: none 0;\r\n border-radius: 0;\r\n width: 100%;\r\n padding: 0;\r\n }\r\n\r\n .modal-close,\r\n .delete {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 20;\r\n margin: 5px 5px 0 0;\r\n }\r\n}\r\n\r\n.uploader {\r\n .rectangle {\r\n width: 244px;\r\n height: 137px;\r\n margin: 0px 0px 0px 0px;\r\n padding: 0px 0px 0 0px;\r\n border-radius: 4px;\r\n }\r\n .Drag-Drop-your-fil {\r\n width: 192px;\r\n height: 34px;\r\n margin: 7px 0 8px 4px;\r\n font-family: Arial, Helvetica, sans-serif;\r\n font-size: 12px;\r\n font-weight: normal;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center !important;\r\n color: #838383;\r\n }\r\n\r\n .Drag-Drop-your-fil .text-style-1 {\r\n font-weight: bold;\r\n }\r\n\r\n img.Fill-1-Copy-11 {\r\n width: 24px;\r\n height: 30px;\r\n margin: 0 85px 7px 83px;\r\n object-fit: contain;\r\n }\r\n}\r\n</style>\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=b73620ea&\"\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&\"\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',[(typeof _vm.governingDocumentID === 'string' || typeof _vm.governingDocumentID === 'number')?_c('span',[_c('button',{on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(_vm.governingDocumentID)}}},[_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 }","<template>\r\n <div>\r\n <span v-if=\"typeof governingDocumentID === 'string' || typeof governingDocumentID === 'number'\">\r\n <button @click.prevent=\"downloadPdf(governingDocumentID)\">\r\n <svg\r\n class=\"w-6 h-6\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n viewBox=\"0 0 24 24\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"2\"\r\n d=\"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4\"\r\n ></path>\r\n </svg>\r\n </button>\r\n </span>\r\n <span v-else>\r\n \r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n governingDocumentID: [Number, String],\r\n documentID: [Number, String],\r\n downloadPdf: Function\r\n }\r\n}\r\n</script>\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=fabf5008&\"\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 { base64toBlob, showPdf } from '@/services/blobutility'\r\nimport Button from '@/components/buttons/Button'\r\nimport Download from '../component/Download'\r\nimport _get from 'lodash/get'\r\nimport { documentCenterStore } from '@/services/DocumentCenter/store'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport { notifyMessage, notifyProblem, notifyWarning } from '@/services/notify'\r\n\r\nexport const methods = {\r\n determineRows: async function(list) {\r\n if (!Array.isArray(list)) {\r\n return\r\n }\r\n\r\n var rows = list.map(entry => {\r\n const category = _get(entry, 'governingDocumentCategory.name', '')\r\n const documentName = _get(entry, 'description', '')\r\n const createdDate = parseDate(_get(entry, ['createdDate'], ''), 'LL')\r\n const governingDocumentID = _get(entry, ['governingDocumentID'], 0)\r\n\r\n return {\r\n category: category,\r\n documentName: documentName,\r\n uploaded: createdDate,\r\n edit: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.redirectToEdit(entry)\r\n },\r\n text: 'Edit'\r\n }\r\n },\r\n delete: {\r\n component: Button,\r\n props: {\r\n onClick: async () => {\r\n await this.confirmDeleteDocument(governingDocumentID, documentName)\r\n },\r\n text: 'Delete'\r\n }\r\n },\r\n document: {\r\n component: Download,\r\n props: {\r\n governingDocumentID: _get(entry, ['governingDocumentID'], 0),\r\n downloadPdf: governingDocumentID => {\r\n this.downloadPdf(governingDocumentID)\r\n }\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n createGoverningDocumentModal() {\r\n this.toggle = true\r\n this.selectedGoverningDocument = null\r\n },\r\n\r\n redirectToEdit(governingDocument) {\r\n this.toggle = true\r\n this.selectedGoverningDocument = governingDocument\r\n },\r\n\r\n async confirmDeleteDocument(governingDocumentID, documentName) {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Document',\r\n message: `Are you sure you want to <b>delete</b> this document: \"${documentName}\"?`,\r\n confirmText: 'Delete Document',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteGoverningDocument(governingDocumentID)\r\n })\r\n },\r\n\r\n async deleteGoverningDocument(governingDocumentID) {\r\n if (governingDocumentID) {\r\n await documentCenterStore.dispatch('deleteGoverningDocument', {\r\n governingDocumentID: governingDocumentID,\r\n done: () => {\r\n this.loading = false\r\n this.reload()\r\n }\r\n })\r\n }\r\n },\r\n\r\n async downloadPdf(governingDocumentID) {\r\n if (this.isDebug == true) console.debug('downloadPdf...')\r\n\r\n if (!governingDocumentID || governingDocumentID == undefined) {\r\n notifyProblem('There is a problem downloading this document.')\r\n }\r\n\r\n try {\r\n const params = {\r\n governingDocumentID,\r\n asBase64: true,\r\n asRawBase64: true\r\n }\r\n\r\n await documentCenterStore.dispatch('getDocumentFile', {\r\n params,\r\n done: ({ details }) => {\r\n if (details) {\r\n if (this.isDebug == true) console.debug('base64pdf........................' + details)\r\n\r\n const contentType = 'application/pdf'\r\n const blob = base64toBlob(details, contentType)\r\n showPdf(blob)\r\n notifyMessage(`Successfully downloaded the published document.`)\r\n return\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n notifyWarning('There was a problem downloading the statements of account.')\r\n }\r\n },\r\n\r\n async loadDocuentCenter() {\r\n if (this.isDebug == true) console.debug('in loadDocuentCenter()...')\r\n\r\n await documentCenterStore\r\n .dispatch('getDocumentCenterList', {\r\n hoaID: this.hoaId\r\n })\r\n .then(async ({ list }) => {\r\n await this.determineRows(list)\r\n })\r\n },\r\n\r\n async reload() {\r\n this.loading = true\r\n\r\n this.rows = []\r\n await this.loadDocuentCenter()\r\n\r\n this.loading = false\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 showFilters: false,\r\n toggle: false,\r\n selectedGoverningDocument: null,\r\n documents: [],\r\n breakpoint: '',\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: 'category',\r\n label: 'Category',\r\n aria: 'Category',\r\n width: '15%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'documentName',\r\n label: 'Document Name',\r\n aria: 'Document Name',\r\n width: '75%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'uploaded',\r\n label: 'Uploaded',\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 dateSelector: {\r\n display: 'flex',\r\n padding: '12px',\r\n textAlign: 'center',\r\n verticalAlign: 'middle',\r\n flexWrap: 'wrap',\r\n alignItems: 'center',\r\n justifyContent: 'flex-end'\r\n },\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","<template>\r\n <PageContentLayoutOnly role=\"region\">\r\n <div class=\"level\">\r\n <div class=\"level-left\">\r\n <b-button\r\n @click.prevent=\"createGoverningDocumentModal()\"\r\n type=\"is-primary\"\r\n rounded\r\n :style=\"{\r\n ...(breakpoint === 'desktop'\r\n ? {}\r\n : {\r\n width: '100%'\r\n })\r\n }\"\r\n >\r\n Add Published Document\r\n </b-button>\r\n </div>\r\n </div>\r\n <ModernTable\r\n :region=\"region\"\r\n :filters=\"filters\"\r\n :rows=\"rows\"\r\n :columns=\"columns\"\r\n :pagination=\"{\r\n perPage: 12\r\n }\"\r\n :loading=\"loading\"\r\n headerColor=\"#FFF\"\r\n condensed\r\n >\r\n </ModernTable>\r\n <Modal :toggle.sync=\"toggle\">\r\n <DocumentsModal :governingDocument=\"selectedGoverningDocument\" />\r\n </Modal>\r\n </PageContentLayoutOnly>\r\n</template>\r\n\r\n<script>\r\nimport { mapState, mapGetters } from 'vuex'\r\nimport PageContentLayoutOnly from '@/containers/PageContentLayoutOnly'\r\nimport ModernTable from '@/components/tables/Modern/Table'\r\nimport DocumentsModal from './component/GoverningDocumentModal'\r\nimport Modal from '@/components/Modal'\r\nimport { windowStore } from '@/utilities/window/store'\r\nimport { methods } from './keys/methods'\r\nimport { data } from './keys/data'\r\n\r\nexport default {\r\n name: 'ManagementDocumentCenter',\r\n components: {\r\n PageContentLayoutOnly,\r\n ModernTable,\r\n DocumentsModal,\r\n Modal\r\n },\r\n\r\n data,\r\n\r\n methods,\r\n\r\n computed: {\r\n ...mapState({\r\n hoaId: state => state.user.selectedHoaId,\r\n ...mapGetters('user', ['authUser', 'retrieveUser'])\r\n })\r\n },\r\n\r\n watch: {\r\n toggle() {\r\n if (this.toggle == false) {\r\n this.reload()\r\n this.toggle = false\r\n if (this.Modal && this.Modal != undefined) {\r\n this.Modal.$emit('update:toggle', (this.toggle = false))\r\n }\r\n }\r\n }\r\n },\r\n\r\n mounted() {\r\n this.reload()\r\n\r\n this.unsubWindowStore = windowStore.subscribe((mutation, state) => {\r\n const mType = mutation.type\r\n\r\n if (mType === 'breakPointChange') {\r\n this.breakpoint = state.breakpoint\r\n }\r\n })\r\n\r\n this.breakpoint = windowStore.state.breakpoint\r\n },\r\n\r\n i18n: {\r\n messages: {\r\n en: { documentCenter: { title: 'Published Documents' } }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style></style>\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=0c333b3c&\"\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","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&\"","/*\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","module.exports = __webpack_public_path__ + \"img/fill-1-copy-11.4a777982.svg\";"],"sourceRoot":""}