{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/index.vue?adf7","webpack:///./src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/keys/data.js","webpack:///./src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/keys/methods.js","webpack:///src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/index.vue?9b5c","webpack:///./src/pages/Management/communityCenter/tabs/suggestions/tabs/detail/index.vue"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","on","$event","preventDefault","returnToParent","ref","scopedSlots","_u","key","fn","handleSubmit","onFormSubmit","staticStyle","model","value","formData","callback","$$v","$set","expression","errors","_v","_s","staticRenderFns","DEFAULT_FORM_VALUES","suggestion","createdBy","createdDate","data","isDebug","loading","toggle","suggestionID","styles","mainContainer","minHeight","formatDateFn","methods","reload","loadingComponent","$buefy","open","container","$route","params","id","loadSuggestionDetail","close","suggestionStore","dispatch","then","result","JSON","stringify","_get","$router","push","path","catch","components","PageContentLayoutOnly","ValidationObserver","ValidationProvider","ValidInput","computed","mounted","i18n","messages","en","component"],"mappings":"mIAAA,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,4CC3BT,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,wBAAw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estionTabs.suggestionDetail.bb47fdba.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('PageContentLayoutOnly',{attrs:{\"role\":\"region\",\"id\":\"suggestionDetails\",\"suggestion-details\":\"\"}},[_c('section',{staticClass:\"section card\"},[_c('div',{staticClass:\"level pl-5 pr-5\"},[_c('div',{staticClass:\"level-right\"},[_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 Suggestions\"},on:{\"click\":function($event){$event.preventDefault();return _vm.returnToParent()}}})],1)])]),_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('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"Suggestion\",\"label\":\"Suggestion\",\"type\":\"textarea\",\"vid\":\"Suggestion\",\"placeholder\":\"Suggestion\",\"spellcheck\":\"true\",\"aria-label\":\"Suggestion\",\"disabled\":\"true\"},model:{value:(_vm.formData.suggestion),callback:function ($$v) {_vm.$set(_vm.formData, \"suggestion\", $$v)},expression:\"formData.suggestion\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"CreatedBy\",\"label\":\"Created By\",\"type\":\"text\",\"vid\":\"CreatedBy\",\"placeholder\":\"Created By\",\"spellcheck\":\"true\",\"aria-label\":\"Created By\",\"disabled\":\"true\"},model:{value:(_vm.formData.createdBy),callback:function ($$v) {_vm.$set(_vm.formData, \"createdBy\", $$v)},expression:\"formData.createdBy\"}})],1),_c('div',{staticClass:\"pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"CreatedDate\",\"label\":\"Created Date\",\"type\":\"text\",\"vid\":\"CreatedDate\",\"placeholder\":\"Created Date\",\"spellcheck\":\"true\",\"aria-label\":\"Created Date\",\"disabled\":\"true\"},model:{value:(_vm.formData.createdDate),callback:function ($$v) {_vm.$set(_vm.formData, \"createdDate\", $$v)},expression:\"formData.createdDate\"}})],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 }","import moment from 'moment'\r\n\r\nlet DEFAULT_FORM_VALUES = {\r\n  suggestion: '',\r\n  createdBy: '',\r\n  createdDate: null\r\n}\r\n\r\nexport const data = function() {\r\n  return {\r\n    isDebug: true,\r\n    loading: false,\r\n    toggle: false,\r\n    suggestionID: 0,\r\n    formData: {\r\n      ...DEFAULT_FORM_VALUES\r\n    },\r\n    styles: {\r\n      mainContainer: {\r\n        minHeight: '1000px'\r\n      }\r\n    },\r\n    formatDateFn: function(value) {\r\n      return value != null\r\n        ? moment(value, 'YYYY/MM/DD HH:mm:ss').format('MM-DD-YYYY hh:mm:ss a')\r\n        : ''\r\n    }\r\n  }\r\n}\r\n","import { suggestionStore } from '@/services/Suggestion/store'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport _get from 'lodash/get'\r\n\r\nexport const methods = {\r\n  async reload() {\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      this.suggestionID = this.$route.params.id || 0\r\n\r\n      if (this.isDebug === true) console.debug('suggestionID=' + this.suggestionID)\r\n\r\n      await this.loadSuggestionDetail()\r\n    } catch (e) {\r\n      console.debug('error in reload: ' + e)\r\n    }\r\n\r\n    loadingComponent.close()\r\n\r\n    this.loading = false\r\n  },\r\n\r\n  async loadSuggestionDetail() {\r\n    await suggestionStore\r\n      .dispatch('getSuggestionById', {\r\n        suggestionID: this.suggestionID\r\n      })\r\n      .then(({ result }) => {\r\n        if (result) {\r\n          if (this.isDebug == true) console.debug('loadSuggestionDetail' + JSON.stringify(result))\r\n\r\n          this.formData.suggestion = _get(result, 'suggestionText', '')\r\n          this.formData.createdBy = _get(result, 'identityInformation.name', '')\r\n          this.formData.createdDate = parseDate(_get(result, ['createdDate'], ''), 'LL')\r\n        }\r\n      })\r\n  },\r\n\r\n  returnToParent() {\r\n    this.$router\r\n      .push({\r\n        path: '/communityCenter/suggestions#tab'\r\n      })\r\n      .catch(() => {})\r\n  }\r\n}\r\n","<template>\r\n  <PageContentLayoutOnly role=\"region\" id=\"suggestionDetails\" suggestion-details>\r\n    <section class=\"section card\">\r\n      <div class=\"level pl-5 pr-5\">\r\n        <div class=\"level-right\">\r\n          <div class=\"level-item\">\r\n            <svg\r\n              width=\"30\"\r\n              height=\"30\"\r\n              xmlns=\"http://www.w3.org/2000/svg\"\r\n              fill=\"none\"\r\n              viewBox=\"0 0 24 24\"\r\n              stroke=\"currentColor\"\r\n            >\r\n              <path\r\n                stroke-linecap=\"round\"\r\n                stroke-linejoin=\"round\"\r\n                stroke-width=\"2\"\r\n                d=\"M15 19l-7-7 7-7\"\r\n              ></path>\r\n            </svg>\r\n          </div>\r\n          <div class=\"level-item\">\r\n            <b-button label=\"Back to Suggestions\" @click.prevent=\"returnToParent()\" />\r\n          </div>\r\n        </div>\r\n      </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>\r\n                  <valid-input\r\n                    style=\"width:50px !important;\"\r\n                    name=\"Suggestion\"\r\n                    label=\"Suggestion\"\r\n                    type=\"textarea\"\r\n                    vid=\"Suggestion\"\r\n                    placeholder=\"Suggestion\"\r\n                    spellcheck=\"true\"\r\n                    aria-label=\"Suggestion\"\r\n                    class=\"is-small\"\r\n                    disabled=\"true\"\r\n                    v-model=\"formData.suggestion\"\r\n                  />\r\n                </div>\r\n                <div class=\"pt-5\">\r\n                  <valid-input\r\n                    style=\"width:50px !important;\"\r\n                    name=\"CreatedBy\"\r\n                    label=\"Created By\"\r\n                    type=\"text\"\r\n                    vid=\"CreatedBy\"\r\n                    placeholder=\"Created By\"\r\n                    spellcheck=\"true\"\r\n                    aria-label=\"Created By\"\r\n                    class=\"is-small\"\r\n                    v-model=\"formData.createdBy\"\r\n                    disabled=\"true\"\r\n                  />\r\n                </div>\r\n                <div class=\"pt-5\">\r\n                  <valid-input\r\n                    style=\"width:50px !important;\"\r\n                    name=\"CreatedDate\"\r\n                    label=\"Created Date\"\r\n                    type=\"text\"\r\n                    vid=\"CreatedDate\"\r\n                    placeholder=\"Created Date\"\r\n                    spellcheck=\"true\"\r\n                    aria-label=\"Created Date\"\r\n                    class=\"is-small\"\r\n                    v-model=\"formData.createdDate\"\r\n                    disabled=\"true\"\r\n                  />\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    </section>\r\n  </PageContentLayoutOnly>\r\n</template>\r\n\r\n<script>\r\nimport PageContentLayoutOnly from '@/containers/PageContentLayoutOnly'\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\n\r\n// components\r\nimport ValidInput from '@/components/inputs/ValidInput'\r\n\r\nexport default {\r\n  components: {\r\n    PageContentLayoutOnly,\r\n    ValidationObserver,\r\n    ValidationProvider,\r\n    ValidInput\r\n  },\r\n\r\n  data,\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  mounted() {\r\n    this.reload()\r\n  },\r\n\r\n  methods,\r\n\r\n  i18n: {\r\n    messages: {\r\n      en: { suggestionDetail: { title: 'Suggestion Detail' } }\r\n    }\r\n  }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped></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=70c94daa&scoped=true&\"\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  \"70c94daa\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}