{"version":3,"sources":["webpack:///./src/Admin/ReportManagement/ReportManagement.vue?0f72","webpack:///./src/Admin/ReportManagement/Enums.ts","webpack:///./src/Admin/ReportManagement/ReportManagement.vue?32db","webpack:///./src/Admin/ReportManagement/ReportManagement.vue?801b","webpack:///./src/Admin/ReportManagement/ReportManagement.vue"],"names":["ReportType","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","directives","name","rawName","value","expression","attrs","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","selectedReport","multiple","refreshContent","domProps","_l","reportTypeName","key","model","callback","$$v","showDiv","tinymceInit","tinymceContent","_e","composing","saveReportContent","staticRenderFns","reportManagement","LocationBasedMixin","extend","props","components","Editor","data","validationErrors","reportType","reportTypeNames","Object","keys","k","$i18n","t","toString","height","menubar","skin_url","skinsDirectory","content_css","contentCssPath","toolbar","plugins","importedPlugins","methods","endString","location","VatsAPI","post","JSON","stringify","headers","$bvToast","toast","title","autoHideDelay","url","get","axiosResponse","component"],"mappings":"uHAAA,ICAYA,EDARC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,sCAAsCL,EAAG,MAAMA,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,SAAS,CAACM,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOb,EAAkB,eAAEc,WAAW,mBAAmBR,YAAY,eAAeS,MAAM,CAAC,GAAK,iBAAiBC,GAAG,CAAC,OAAS,CAAC,SAASC,GAAQ,IAAIC,EAAgBC,MAAMC,UAAUC,OAAOC,KAAKL,EAAOM,OAAOC,SAAQ,SAASC,GAAG,OAAOA,EAAEC,YAAWC,KAAI,SAASF,GAAG,IAAIG,EAAM,WAAYH,EAA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C,gBAAiB,mBACrB,O,OAHL,SAKA9E,KAAK+E,SAASC,MAAMhF,KAAK2D,MAAMC,EAAE,6CAA6CC,WAAY,CACtFoB,MAAOjF,KAAK2D,MAAMC,EAAE,eAAeC,WACnCqB,cAAe,MAEnBlF,KAAK+B,iB,oCAQT,M,WAJA/B,KAAK+E,SAASC,MAAMhF,KAAK2D,MAAMC,EAAE,0CAA0CC,WAAY,CACnFoB,MAAOjF,KAAK2D,MAAMC,EAAE,gBAAgBC,WACpCqB,cAAe,MAEb,E,yBAGRnD,eAAN,W,2JAEmC,MAAvB/B,KAAK6B,eAAL,OACMsD,EAASnF,KAAKyE,SAAQ,yCAAyC5E,EAAWG,KAAK6B,gBAAgBgC,WAC/E,GAAMa,EAAA,KAAQU,IAAcD,K,OAA5CE,EAAgB,SACtBrF,KAAKyC,eAAiB4C,EAAcjC,KAAKS,W,oCAQ7C,M,WAJA7D,KAAK+E,SAASC,MAAMhF,KAAK2D,MAAMC,EAAE,6CAA6CC,WAAY,CACtFoB,MAAOjF,KAAK2D,MAAMC,EAAE,gBAAgBC,WACpCqB,cAAe,MAEb,E,4BAMP,IC7G8Y,I,YCOzZI,EAAY,eACd,EACAxF,EACA+C,GACA,EACA,KACA,KACA,MAIa,aAAAyC,E","file":"js/chunk-2d22bf81.ab3aab9a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('h2',[_vm._v(_vm._s(_vm.$t('admin.reportManagement.heading')))]),_c('br'),_c('div',{staticClass:\"col-md-7\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedReport),expression:\"selectedReport\"}],staticClass:\"form-control\",attrs:{\"id\":\"report-select\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedReport=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.refreshContent]}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(_vm._s(_vm.$t('common.select')))]),_vm._l((_vm.reportTypeNames),function(reportTypeName){return _c('option',{key:reportTypeName,domProps:{\"value\":reportTypeName}},[_vm._v(\"\\n \"+_vm._s(reportTypeName)+\"\\n \")])})],2)]),_c('b-form-group',[_c('b-form-radio-group',{staticClass:\"pt-2\",attrs:{\"buttons\":\"\",\"button-variant\":\"outline-primary\"},model:{value:(_vm.showDiv),callback:function ($$v) {_vm.showDiv=$$v},expression:\"showDiv\"}},[_c('b-form-radio',{attrs:{\"value\":true}},[_vm._v(_vm._s(_vm.$t('admin.reportManagement.viewFormatted')))]),_c('b-form-radio',{attrs:{\"value\":false}},[_vm._v(_vm._s(_vm.$t('admin.reportManagement.viewHTML')))])],1)],1),(_vm.showDiv)?_c('div',[[_c('editor',{attrs:{\"init\":_vm.tinymceInit},model:{value:(_vm.tinymceContent),callback:function ($$v) {_vm.tinymceContent=$$v},expression:\"tinymceContent\"}})]],2):_vm._e(),(!_vm.showDiv)?_c('div',[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tinymceContent),expression:\"tinymceContent\"}],attrs:{\"rows\":\"20\",\"cols\":\"146\"},domProps:{\"value\":(_vm.tinymceContent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.tinymceContent=$event.target.value}}})]):_vm._e(),_c('button',{staticClass:\"btn-success\",on:{\"click\":_vm.saveReportContent}},[_vm._v(_vm._s(_vm.$t('admin.reportManagement.saveButtonMeesage')))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export enum ReportType {\r\n CitationCountByDate = 20,\r\n CitationStatusReport = 21,\r\n CitationsPaidSummaryByDate = 22,\r\n CitationsPaidOnline = 23,\r\n VoidedCitationsByDate = 24,\r\n Top20Violators = 25,\r\n OnlinePaymentsByLot = 26,\r\n ReconciliationSummary = 27,\r\n ReconciliationDetail = 28,\r\n CitationHoldCandidates = 29,\r\n LotCheckDetail = 30,\r\n ScofflawReport = 31,\r\n GapReport = 32,\r\n LetterSummary = 33,\r\n OnlinePaymentsDetail = 34,\r\n BootsTowsPending = 35,\r\n BootTowReport = 36,\r\n CurrentBaggingReport = 41,\r\n OfficerReport = 57,\r\n PlateSearchReport = 58,\r\n ByTheNumbersReport = 66,\r\n GapandScofflawReport = 70,\r\n VoidsSummaryReport = 77,\r\n ViolationsByLocationsSummary = 90,\r\n HearingBondReport = 91,\r\n AgingBreakdownReport = 92,\r\n CollectionsPayments = 100,\r\n CollectionVoids = 102,\r\n CollectionAdjustments = 103,\r\n DMVSummary = 104,\r\n QuickStats = 105,\r\n AgingDetailReport = 106,\r\n AgingByYearReport = 107,\r\n ConvenienceFeeReport = 116,\r\n MonthlyStatement = 117,\r\n DuplicateStateReport = 118,\r\n WarningReport = 122,\r\n ByTheNumbersComparisonReport = 123,\r\n PaidHandicappedParking = 131,\r\n ManualCitationReport = 134\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport VatsAPI from '@/Shared/VatsAPI';\nimport { ReportType } from './Enums';\nimport LocationBasedMixin from '@/Shared/LocationBasedMixin';\nimport mixins from 'vue-typed-mixins';\nimport Editor from '@tinymce/tinymce-vue';\nimport { Settings } from 'tinymce';\nimport tinymceSetup from '@/Shared/TinymceSetup';\n\nconst reportManagement = mixins(LocationBasedMixin).extend({\n props: ['location'],\n components: { Editor },\n data() {\n return {\n validationErrors: {} as { [key: string]: string[] },\n reportType: ReportType,\n reportTypeNames: Object.keys(ReportType).filter(k => typeof (ReportType as any)[k] !== 'string'),\n selectedReport: null as ReportType | null,\n showDiv: 'true',\n tinymceContent: this.$i18n.t('admin.reportManagement.tinymceContent').toString(),\n tinymceInit: {\n height: 500,\n menubar: false,\n skin_url: tinymceSetup.skinsDirectory,\n content_css: tinymceSetup.contentCssPath,\n toolbar:\n 'undo redo | formatselect | bold italic backcolor | \\\n alignleft aligncenter alignright alignjustify | \\\n bullist numlist outdent indent | removeformat | help',\n plugins: tinymceSetup.importedPlugins,\n } as Settings\n };\n },\n methods: {\n async saveReportContent() {\n try {\n if (this.selectedReport != null) {\n const endString = `${this.location}/reports/${this.selectedReport}/UpdateReportTemplate`;\n await VatsAPI.post(endString, JSON.stringify(this.tinymceContent), {\n headers: {\n ['content-type']: 'application/json'\n }\n });\n this.$bvToast.toast(this.$i18n.t('admin.reportManagement.reportSavedMessage').toString(), {\n title: this.$i18n.t('common.save').toString(),\n autoHideDelay: 5000\n });\n this.refreshContent();\n }\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.reportManagement.saveReportError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n },\n async refreshContent() {\n try {\n if (this.selectedReport != null) {\n const url = `${this.location}/reports/GetReportTemplate?reportType=${ReportType[this.selectedReport].toString()}`;\n const axiosResponse = await VatsAPI.get(url);\n this.tinymceContent = axiosResponse.data.toString();\n }\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.reportManagement.refreshReportError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n }\n },\n});\n\nexport default reportManagement;\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportManagement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportManagement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ReportManagement.vue?vue&type=template&id=422d6415&\"\nimport script from \"./ReportManagement.vue?vue&type=script&lang=ts&\"\nexport * from \"./ReportManagement.vue?vue&type=script&lang=ts&\"\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"],"sourceRoot":""}