{"version":3,"sources":["webpack:///./src/components/Reports/ReportWrapper.vue","webpack:///src/components/Reports/ReportWrapper.vue","webpack:///./src/components/Reports/ReportWrapper.vue?c0c5","webpack:///./src/components/Reports/ReportWrapper.vue?9076","webpack:///./src/components/Reports/Sidebar.vue","webpack:///./src/components/Popup/Schedule.vue","webpack:///src/components/Popup/Schedule.vue","webpack:///./src/components/Popup/Schedule.vue?0143","webpack:///./src/components/Popup/Schedule.vue?ac08","webpack:///src/components/Reports/Sidebar.vue","webpack:///./src/components/Reports/Sidebar.vue?34be","webpack:///./src/components/Reports/Sidebar.vue?a4c9","webpack:///./src/mixins/ReportFilter.js","webpack:///./src/components/Reports/Sidebar.vue?27ce"],"names":["render","_vm","this","_c","_self","Array","isArray","form","location","attrs","_l","item","index","key","_t","staticRenderFns","components","props","type","required","data","mounted","methods","component","directives","name","rawName","value","loading","expression","staticClass","ref","formParent","formRules","_v","staticStyle","on","$event","$emit","model","reportType","callback","$$v","$set","reports","onChangePicker","dataForm","dateOptions","label","_e","periodDatePickerType","pickerOptions","validateDate","startDate","endDate","customer","customerList","ItaId","CustomerType","Company","Department","reportDateOption","preventDefault","submitFilter","resetForm","disableScheduleButton","popupScheduleOpen","closePopup","contentLoading","Email","EmailList","RecipientName","SchedulerName","Period","Day","dayOfWeek","days","allowToSubmit","submit","validateArrayOfEmail","async","rule","pass","failed","reportForm","default","saveAsScheduledReport","CreatedBy","message","trigger","validator","sidebarOpen","computed","user","clearForm","report","watch","config","deep","handler","PopupSchedule","mixins","IsSummaryOnly","username","summaryOnlyChoice","ListDceId","submitted","checkedKeys","disableTreeItem","children","child","disabledDate","time","getTime","Date","now","date","previousDate","setDate","getDate","filterText","filterCustomSensorText","deviceGroups","defaultProps","deviceGroupProps","cascaderProps","multiple","datePickerOptions","customSensorList","allowAlarmReport","RolesName","includes","currentDate","$moment","startOf","temp1","temp2","temp2Date","isSame","$message","error","filterNode","Name","indexOf","filterCustomSensor","VarName","onDeviceGroupChange","checked","length","IsFormula","ListFormula","Dce_id","push","filter","x","findDeviceGroupDataByKey","deviceGroup","sensorDataChange","formName","formException","$refs","fields","map","prop","resetField","resetFields","Object","prototype","hasOwnProperty","call","$route","query","$router","assign","setDefaultCustomerId","isCustomer","CustomerName","val","setAllFormulaIds","_this","fromUrl","validate","valid","warning","res","$axios","get","$appInfo","api","getCustomerWithRack","sortData","sort","a","b","e","console","log","link","getListCustomerWithData","CustomerDcoId","treeGroupDevice","getCustTreeGroupDeviceLevelWithFormula","formula","getAll","tag","listStringTagsAuthorizeReport","$store","state","auth","userData","deviceGroupsTree","customerSensorTree"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEE,MAAMC,QAAQL,EAAIM,KAAKC,UAAWL,EAAG,UAAU,CAACM,MAAM,CAAC,KAAO,gBAAgB,CAACR,EAAIS,GAAIT,EAAIM,KAAKC,UAAU,SAASG,EAAKC,GAAO,MAAO,CAACT,EAAG,cAAc,CAACU,IAAID,EAAMH,MAAM,CAAC,MAAQE,IAAO,CAACV,EAAIa,GAAG,YAAY,QAAO,GAAG,CAACb,EAAIa,GAAG,aAAa,IAEtTC,EAAkB,GCcP,GACfC,cACAC,OACAV,MACAW,YACAC,cAGAC,UACA,IAEAC,YACAC,YC5BsW,I,YCOlWC,EAAY,eACd,EACAvB,EACAe,GACA,EACA,KACA,KACA,MAIa,OAAAQ,E,2CClBf,IAAIvB,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACqB,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAO1B,EAAI2B,QAASC,WAAW,YAAYC,YAAY,iFAAiFrB,MAAM,CAAC,0BAA0B,kBAAkB,6BAA6B,uBAAuB,CAACN,EAAG,UAAU,CAAC4B,IAAI,OAAOtB,MAAM,CAAC,MAAQR,EAAI+B,WAAW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AEA,CACArB,gBACAqB,kBAGA2B,WACA,SACA,UACA,YACA,WACA,SACA,WACA,UAEA1C,WACAqC,WACA,CACAnD,YACAqE,4BACAC,iBACAC,cAGArB,OACA,CACAlD,YACAsE,iBACAC,cAGAnB,eACA,CACApD,YACAqE,qCACAC,mBAGAjB,eACA,CACArD,YACAqE,oCACAC,mBAGAf,KACA,CACAvD,YACAqE,0BACAC,mBAGAhB,QACA,CACAtD,YACAqE,sCACAC,oBAIAE,eACAd,mBAGAe,UACAC,OACA,yCAGAxE,UACA,kCAEAC,SACAwE,YACA,WACAzB,SACAG,iBACAC,eACAC,MACAY,yBACAC,cAEA,kCAEA,eACA,sCACA,MACA,uBAGA,gDAEA,0CAEA,0CACA,iDACA,uCAGA,+BACA,kDACA,WAEA,iBACAhF,eACAwF,eAGA,sBACA,2EAEA,4BACA,iBACA,uBACA,2BAEA,uBACA,sBACA,yDAMAC,OACAC,QACAC,QACAC,WACA,GACA,+BAIA,eACAA,WAEA,cADA,aACA,EAEA,IAIAjC,mBACAiC,WACA,IACA,yBAIA,cACAA,WACA,KACA,eACA,+BACA,2BClViW,I,YCO7V5E,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,oBC2MA,GACfP,YACAoF,iBAEAC,gBACApF,OACAe,YACAd,aAEAsB,YACAtB,aAEA+C,uBACA/C,eAGAE,OACA,OACAb,MACA8C,aACAC,WACAd,cAEAM,iBACAS,YAEA+C,iBACAC,aAEAC,mBACA,CACAxD,qBACArB,UAEA,CACAqB,yBACArB,WAGAoB,aACA,CACApB,cACAqB,eAEA,CACArB,gBACAqB,iBAEA,CACArB,eACAqB,iBAGAf,WACAO,YACA,CACArB,YACAqE,kCACAC,mBAGA3C,UACA,CACA3B,YACAqE,oCACAC,iBAGApC,WACA,CACAlC,YACAqE,mCACAC,mBAGAnC,SACA,CACAnC,YACAqE,iCACAC,mBAGAlC,UACA,CACApC,YACAqE,6BACAC,iBAGAgB,WACA,CACAtF,YACAq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AAOwB,IAErCxD,uBAAuBwD,GACrB/K,KAAK8J,MAAMmD,mBAAmB1D,OAAOwB,IAQvC,wBAAyB,WAGY,kBAA/B/K,KAAK8B,WAAWQ,WAClBtC,KAAK6C,YAAc,CACjB,CACEpB,MAAO,QACPqB,MAAO,SAET,CACErB,MAAO,UACPqB,MAAO,YAIX9C,KAAK6C,YAAc,CACjB,CACEpB,MAAO,QACPqB,MAAO,SAET,CACErB,MAAO,UACPqB,MAAO,WAET,CACErB,MAAO,SACPqB,MAAO,YAcf,gCAAiC,SAAUiI,KAM3C,kCAAmC,gB,wGC3WvC,W","file":"js/chunk-5a4261d5.cf49fc62.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(Array.isArray(_vm.form.location))?_c('el-tabs',{attrs:{\"type\":\"border-card\"}},[_vm._l((_vm.form.location),function(item,index){return [_c('el-tab-pane',{key:index,attrs:{\"label\":item}},[_vm._t(\"default\")],2)]})],2):[_vm._t(\"default\")]],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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!./ReportWrapper.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!./ReportWrapper.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReportWrapper.vue?vue&type=template&id=512c4e0f&\"\nimport script from \"./ReportWrapper.vue?vue&type=script&lang=js&\"\nexport * from \"./ReportWrapper.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 render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"report-sidebar px-4 rounded-lg flex flex-col w-full h-full bg-primary-300 py-4\",attrs:{\"element-loading-spinner\":\"el-icon-loading\",\"element-loading-background\":\"rgba(0, 0, 0, 0.8)\"}},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.formParent,\"rules\":_vm.formRules}},[_c('div',{staticClass:\"flex flex-col space-y-2\"},[_c('el-form-item',{attrs:{\"prop\":\"reportType\"}},[_c('div',{staticClass:\"flex w-full justify-between\"},[_c('h5',{staticClass:\"text-base font-bold text-gray-400\"},[_vm._v(\"Report Type\")]),_c('el-button',{staticClass:\"mb-2\",staticStyle:{\"height\":\"40px\"},attrs:{\"id\":\"collapse-button\",\"size\":\"mini\",\"icon\":\"el-icon-close\"},on:{\"click\":function($event){return _vm.$emit('showSidebar', false)}}},[_vm._v(\"Collapse\")])],1),_c('div',{staticClass:\"w-full\"},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"remote\":\"\",\"reserve-keyword\":\"\",\"placeholder\":\"Search Report\",\"loading\":_vm.loading},model:{value:(_vm.formParent.reportType),callback:function ($$v) {_vm.$set(_vm.formParent, \"reportType\", $$v)},expression:\"formParent.reportType\"}},_vm._l((_vm.reports),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],1)]),(\n _vm.formParent.reportType !== 'Internal Racks per BU' &&\n _vm.formParent.reportType !== 'Available Racks' &&\n _vm.formParent.reportType !== 'Rack Utilization by Customer' &&\n _vm.formParent.reportType !== 'Customer Equipment Details'\n )?_c('el-form-item',{attrs:{\"prop\":\"dataForm\"}},[_c('h5',{staticClass:\"text-base font-bold text-gray-400\"},[_vm._v(\"Report Period\")]),_c('el-select',{staticClass:\"w-full mt-2\",attrs:{\"placeholder\":\"Select Report Period\"},on:{\"change\":_vm.onChangePicker},model:{value:(_vm.formParent.dataForm),callback:function ($$v) {_vm.$set(_vm.formParent, \"dataForm\", $$v)},expression:\"formParent.dataForm\"}},_vm._l((_vm.dateOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1):_vm._e(),(\n _vm.formParent.reportType !== 'Internal Racks per BU' &&\n _vm.formParent.reportType !== 'Available Racks' &&\n _vm.formParent.reportType !== 'Rack Utilization by Customer' &&\n _vm.formParent.reportType !== 'Customer Equipment Details'\n )?_c('h5',{staticClass:\"text-base font-bold text-gray-400 mt-2\"},[_vm._v(\" Period Range \")]):_vm._e(),(\n _vm.formParent.reportType !== 'Internal Racks per BU' &&\n _vm.formParent.reportType !== 'Available Racks' &&\n _vm.formParent.reportType !== 'Rack Utilization by Customer' &&\n _vm.formParent.reportType !== 'Customer Equipment Details'\n )?_c('div',{staticClass:\"flex justify-between\"},[_c('el-form-item',{attrs:{\"prop\":\"startDate\"}},[_c('el-date-picker',{staticClass:\"mt-2 mr-1\",attrs:{\"type\":_vm.periodDatePickerType,\"picker-options\":_vm.pickerOptions,\"placeholder\":\"Start Period\",\"value-format\":\"yyyy-MM-dd\"},on:{\"change\":_vm.validateDate},model:{value:(_vm.formParent.startDate),callback:function ($$v) {_vm.$set(_vm.formParent, \"startDate\", $$v)},expression:\"formParent.startDate\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"endDate\"}},[_c('el-date-picker',{staticClass:\"ml-1 mt-2\",attrs:{\"type\":_vm.periodDatePickerType,\"picker-options\":_vm.pickerOptions,\"placeholder\":\"End Period\",\"value-format\":\"yyyy-MM-dd\"},on:{\"change\":_vm.validateDate},model:{value:(_vm.formParent.endDate),callback:function ($$v) {_vm.$set(_vm.formParent, \"endDate\", $$v)},expression:\"formParent.endDate\"}})],1)],1):_vm._e(),(\n _vm.formParent.reportType == 'Power by Customer' ||\n _vm.formParent.reportType == 'Customer Trend' ||\n _vm.formParent.reportType == 'Power Billing' ||\n _vm.formParent.reportType == 'Rack Utilization by Customer' ||\n _vm.formParent.reportType == 'Customer Equipment Details' ||\n _vm.formParent.reportType == 'Power by Customer per Location'\n )?_c('el-form-item',{attrs:{\"prop\":\"customer\"}},[_c('h5',{staticClass:\"text-base font-bold text-gray-400\"},[_vm._v(\"Tenant\")]),_c('div',{staticClass:\"w-full mt-2\"},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"remote\":\"\",\"reserve-keyword\":\"\",\"placeholder\":\"Select Customer\"},model:{value:(_vm.formParent.customer),callback:function ($$v) {_vm.$set(_vm.formParent, \"customer\", $$v)},expression:\"formParent.customer\"}},_vm._l((_vm.customerList),function(item){return _c('el-option',{key:item.ItaId,attrs:{\"label\":item.CustomerType == 'INTERNAL_DEPARTMENT'\n ? item.Company + ' [' + item.Department + ']'\n : item.Company,\"value\":item.ItaId}})}),1)],1)]):_vm._e(),(_vm.formParent.reportType == 'Internal Racks per BU')?_c('el-form-item',{attrs:{\"prop\":\"asOfDate\"}},[_c('h5',{staticClass:\"text-base font-bold text-gray-400\"},[_vm._v(\"Report Date\")]),_c('div',{staticClass:\"w-full mt-2\"},[_c('el-date-picker',{staticClass:\"mt-2 mr-1\",attrs:{\"type\":_vm.periodDatePickerType,\"picker-options\":_vm.reportDateOption,\"placeholder\":\"Start Period\",\"value-format\":\"yyyy-MM-dd\"},on:{\"change\":_vm.validateDate},model:{value:(_vm.formParent.startDate),callback:function ($$v) {_vm.$set(_vm.formParent, \"startDate\", $$v)},expression:\"formParent.startDate\"}})],1)]):_vm._e(),_c('div',{staticClass:\"flex justify-between mt-2 space-x-2 pt-4\"},[_c('button',{staticClass:\"bg-custom-50 rounded text-primary-300 text-sm flex items-center w-full px-2 justify-center py-2\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.submitFilter(false)}}},[_c('i',{staticClass:\"el-icon-document mr-2 text-sm\"}),_vm._v(\" Submit \")]),_c('button',{staticClass:\"border-custom-50 border rounded text-custom-50 text-sm flex items-center w-full px-2 mr-2 justify-center\",attrs:{\"type\":\"info\"},on:{\"click\":function($event){$event.preventDefault();return _vm.resetForm('form')}}},[_c('i',{staticClass:\"el-icon-refresh mr-2 text-sm\"}),_vm._v(\" Reset \")])]),_c('button',{staticClass:\"border-custom-50 border rounded text-custom-50 text-sm w-full py-2 flex items-center justify-center\",attrs:{\"disabled\":_vm.disableScheduleButton},on:{\"click\":function($event){$event.preventDefault();_vm.popupScheduleOpen = true}}},[_c('i',{staticClass:\"el-icon-date mr-2 text-sm\"}),_c('p',[_vm._v(\"Schedule a Report\")])])],1)]),_c('PopupSchedule',{attrs:{\"reportForm\":_vm.formParent,\"popup-schedule-open\":_vm.popupScheduleOpen},on:{\"closePopup\":_vm.closePopup}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.contentLoading),expression:\"contentLoading\"}],attrs:{\"title\":\"Schedule a Report\",\"lock-scroll\":\"\",\"width\":\"35%\",\"visible\":_vm.popupScheduleOpen,\"close-on-click-modal\":false,\"close-on-press-escape\":false},on:{\"update:visible\":function($event){_vm.popupScheduleOpen=$event},\"close\":function($event){return _vm.$emit('closePopup', true)}}},[_c('el-form',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"form\",staticClass:\"flex flex-col w-full h-full bg-primary-300 space-y-2 shadow-xl p-4 pt-0\",attrs:{\"id\":\"report-schedule\",\"model\":_vm.form,\"rules\":_vm.formRules}},[_c('div',{staticClass:\"w-full flex flex-col space-y-2 p-4\"},[_c('el-form-item',{staticClass:\"pb-4 -mb-3\",attrs:{\"prop\":\"Email\",\"label\":\"Email\"}},[_c('p',{staticClass:\"text-xs text-red-400\"},[_vm._v(\" Must to valid internal e-mail address, no external addresses permitted \")]),_c('el-select',{staticClass:\"w-full\",attrs:{\"multiple\":\"\",\"filterable\":\"\",\"allow-create\":\"\",\"default-first-option\":\"\",\"placeholder\":\"Type email here\"},model:{value:(_vm.form.Email),callback:function ($$v) {_vm.$set(_vm.form, \"Email\", $$v)},expression:\"form.Email\"}},_vm._l((_vm.EmailList),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],1),_c('el-form-item',{staticClass:\"pt-2\",attrs:{\"label\":\"Recipient Name \",\"prop\":\"RecipientName\"}},[_c('el-input',{attrs:{\"placeholder\":\"Recipient Name\",\"clearable\":\"\"},model:{value:(_vm.form.RecipientName),callback:function ($$v) {_vm.$set(_vm.form, \"RecipientName\", $$v)},expression:\"form.RecipientName\"}})],1),_c('el-form-item',{staticClass:\"pt-2\",attrs:{\"label\":\"Schedule Name \",\"prop\":\"SchedulerName\"}},[_c('el-input',{attrs:{\"placeholder\":\"Schedule Name\",\"clearable\":\"\"},model:{value:(_vm.form.SchedulerName),callback:function ($$v) {_vm.$set(_vm.form, \"SchedulerName\", $$v)},expression:\"form.SchedulerName\"}})],1),_c('div',{staticClass:\"w-full pt-4 flex space-x-0 space-y-2 lg:space-x-2 lg:space-y-0\"},[_c('el-form-item',{staticClass:\"w-full\",attrs:{\"label\":\"Period\",\"prop\":\"Period\"}},[_c('el-select',{attrs:{\"placeholder\":\"Select Report Period\",\"clearable\":\"\"},model:{value:(_vm.form.Period),callback:function ($$v) {_vm.$set(_vm.form, \"Period\", $$v)},expression:\"form.Period\"}},_vm._l((_vm.dateOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),(_vm.form.Period == 'weekly')?_c('el-form-item',{staticClass:\"w-full\",attrs:{\"prop\":\"Day\",\"label\":\"Every\"}},[_c('el-select',{staticClass:\"w-full\",attrs:{\"placeholder\":\"Select the Day\",\"clearable\":\"\"},model:{value:(_vm.form.Day),callback:function ($$v) {_vm.$set(_vm.form, \"Day\", $$v)},expression:\"form.Day\"}},_vm._l((_vm.dayOfWeek),function(item,index){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":index}})}),1)],1):_vm._e(),(_vm.form.Period == 'monthly')?_c('el-form-item',{staticClass:\"w-full\",attrs:{\"prop\":\"Day\",\"label\":\"Every\"}},[_c('el-select',{staticClass:\"w-full\",attrs:{\"placeholder\":\"Select the Date\",\"clearable\":\"\"},model:{value:(_vm.form.Day),callback:function ($$v) {_vm.$set(_vm.form, \"Day\", $$v)},expression:\"form.Day\"}},_vm._l((30),function(days){return _c('el-option',{key:days,attrs:{\"label\":days,\"value\":days}})}),1)],1):_vm._e()],1)],1),_c('div',{staticClass:\"flex justify-end mt-2\"},[(_vm.allowToSubmit)?_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\"Submit\")]):_vm._e(),_c('el-button',{on:{\"click\":function($event){return _vm.$emit('closePopup', true)}}},[_vm._v(\"Close\")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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!./Schedule.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!./Schedule.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Schedule.vue?vue&type=template&id=145e9448&\"\nimport script from \"./Schedule.vue?vue&type=script&lang=js&\"\nexport * from \"./Schedule.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","\n\n\n\n\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!./Sidebar.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!./Sidebar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=ab5e2074&scoped=true&\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js&\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Sidebar.vue?vue&type=style&index=0&id=ab5e2074&prod&scoped=true&lang=css&\"\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 \"ab5e2074\",\n null\n \n)\n\nexport default component.exports","import reportType from '@/assets/dummy/reportType.json'\n\nexport default {\n data() {\n return {\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now()\n }\n },\n reportDateOption: {\n disabledDate(time) {\n var date = new Date()\n var previousDate = date.setDate(date.getDate() - 1)\n return time.getTime() > previousDate\n }\n },\n loading: false,\n filterText: '',\n filterCustomSensorText: '',\n reports: [],\n location: [],\n deviceGroups: [],\n defaultProps: {\n children: 'children',\n label: 'Name'\n },\n deviceGroupProps: {\n children: 'children',\n label: 'Name'\n },\n cascaderProps: {\n multiple: true\n },\n periodDatePickerType: 'date',\n datePickerOptions: '',\n customSensorList: [],\n customerList: []\n }\n },\n mounted() {},\n methods: {\n allowAlarmReport() {\n return (\n this.user.RolesName.includes('Customer Admin') ||\n this.user.RolesName.includes('Customer Staff')\n )\n },\n onChangePicker() {\n if (this.formParent.dataForm == 'monthly') {\n this.periodDatePickerType = 'month'\n } else if (this.formParent.dataForm == 'yearly') {\n this.periodDatePickerType = 'year'\n } else {\n this.periodDatePickerType = 'date'\n }\n\n this.formParent.startDate = ''\n this.formParent.endDate = ''\n },\n\n validateDate() {\n if (this.formParent.startDate != '' && this.formParent.endDate != '') {\n let currentDate = this.$moment(new Date()).startOf('day')\n let temp1 = new Date(this.formParent.startDate)\n let temp2 = new Date(this.formParent.endDate)\n\n let temp2Date = this.$moment(this.formParent.endDate).startOf('day')\n\n if (currentDate.isSame(temp2Date)) {\n this.formParent.startDate = ''\n this.formParent.endDate = ''\n this.$message.error(\n 'Todays data is not yet available, please select the date before today'\n )\n }\n if (temp1 > temp2) {\n this.formParent.endDate = ''\n this.$message.error('End Period must be greater than Start Period')\n }\n }\n },\n filterNode(value, data) {\n if (!value) return true\n return data.Name.indexOf(value) !== -1\n },\n filterCustomSensor(value, data) {\n if (!value) return true\n return data.VarName.indexOf(value) !== -1\n },\n onDeviceGroupChange(data, checked) {\n // skip parent data\n if (data.children.length) return\n if (checked) {\n // populate formula\n if (data.IsFormula && !this.form.ListFormula.includes(data.Dce_id)) {\n this.form.ListFormula.push(data.Dce_id)\n }\n } else {\n // populate formula\n if (data.IsFormula) {\n this.form.ListFormula = this.form.ListFormula.filter(\n (x) => x !== data.Dce_id\n )\n }\n }\n },\n findDeviceGroupDataByKey(deviceGroups, key, value) {\n for (var deviceGroup of deviceGroups) {\n if (deviceGroup[key] == value) {\n return deviceGroup\n } else {\n return this.findDeviceGroupDataByKey(deviceGroup.children, key, value)\n }\n }\n },\n sensorDataChange(data, checked) {\n this.$emit('sensorDataSelected', {\n data: data,\n checked: checked\n })\n },\n resetForm(formName, formException) {\n this.periodDatePickerType = 'date'\n let data = this.$refs[formName].fields\n\n if (formException) {\n data.map((data) => {\n if (data.prop !== formException) {\n data.resetField()\n }\n })\n } else {\n this.$refs[formName].resetFields()\n this.formParent.IsSummaryOnly = true\n }\n\n this.$emit('resetFormFromSidebar')\n // reset parameter\n if (Object.prototype.hasOwnProperty.call(this.$route.query, 'customer')) {\n this.$router.push({\n query: Object.assign({}, [], [])\n })\n }\n },\n setDefaultCustomerId() {\n if (this.isCustomer) {\n this.form.customer = this.user.CustomerName\n ? this.user.CustomerName[0]\n : ''\n }\n },\n closePopup(val) {\n this.popupScheduleOpen = !val\n },\n setAllFormulaIds(data) {\n var _this = this\n\n // set disability\n return data.map(function (item) {\n // populate formula\n if (item.IsFormula) {\n _this.form.ListFormula.push(item.Dce_id)\n }\n\n // find on children data\n if (item.children.length) {\n _this.setAllFormulaIds(item.children)\n }\n return item\n })\n },\n // onLocationChanged(val) {\n // // extract nested location array\n // this.form.locationReport = Array.isArray(val)\n // ? val.map(function (x) {\n // return Array.isArray(x) ? x[0] : x\n // })\n // : val\n\n // this.getCustomers()\n // },\n\n async submitFilter(fromUrl = false) {\n this.$refs['form'].validate(async (valid) => {\n if (valid) {\n // if (!fromUrl) {\n // // push parameter\n // this.$router.push({\n // query: Object.assign({}, this.$route.query, this.form)\n // })\n // }\n // this.form.IsSummaryOnly = JSON.parse(this.form.IsSummaryOnly)\n\n // this.$emit('formData', this.form)\n this.$emit('formData')\n } else {\n this.$message.warning('Please fill in the Report filters correctly')\n }\n })\n },\n async getLocations() {\n try {\n this.loading = true\n const { data: res } = await this.$axios.get(\n this.$appInfo.api.customer.getCustomerWithRack\n )\n\n let sortData = res.sort((a, b) => (a.label > b.label ? 1 : -1))\n\n // get location\n this.location = sortData\n\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getCustomers(link) {\n try {\n this.loading = true\n const res = await this.$axios.get(\n `${this.$appInfo.api.customer.getListCustomerWithData}${link}`\n )\n this.customerList = res.data\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getSensorsByCustomers(CustomerDcoId) {\n try {\n this.loading = true\n const res = await this.$axios.get(\n //this.$appInfo.api.reportTree.getCustTreeSensorFiltered + '?CustomerDcoId=' + CustomerDcoId + '&Filter=ENERGY'\n this.$appInfo.api.treeGroupDevice\n .getCustTreeGroupDeviceLevelWithFormula +\n '?CustomerDcoId=' +\n CustomerDcoId +\n '&Tags=' +\n this.form.reportType\n )\n\n // set deviceGroups\n this.deviceGroups = res.data\n\n // reset & set all formula ids\n this.form.ListFormula = []\n this.setAllFormulaIds(this.deviceGroups)\n\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getCustomSensors() {\n try {\n this.loading = true\n const res = await this.$axios.get(this.$appInfo.api.formula.getAll)\n this.customSensorList = res.data.map(function (item) {\n item.label = item.VarName\n return item\n })\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getReportTypes() {\n try {\n this.loading = true\n const res = await this.$axios.get(\n this.$appInfo.api.tag.listStringTagsAuthorizeReport\n )\n this.reports = this.allowAlarmReport()\n ? res.data.filter((x) => x != 'Alarm Report')\n : res.data\n\n this.reports = res.data\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n }\n },\n computed: {\n isCustomer() {\n return this.$store.state.auth.isCustomer\n },\n user() {\n return this.$store.state.auth.userData\n }\n },\n watch: {\n 'formParent.IsSummaryOnly': function (val) {\n this.$router.push({\n query: Object.assign({}, this.$route.query, this.form)\n })\n },\n 'form.reportType': function (val) {},\n filterText(val) {\n this.$refs.deviceGroupsTree.filter(val)\n },\n filterCustomSensorText(val) {\n this.$refs.customerSensorTree.filter(val)\n },\n // 'form.customer': function (val) {\n // if (val) {\n // // fetch customer sensors\n // this.getSensorsByCustomers(val)\n // }\n // },\n 'formParent.reportType': function () {\n // this.formParent.startDate = ''\n // this.formParent.endDate = ''\n if (this.formParent.reportType === 'Power Billing') {\n this.dateOptions = [\n {\n value: 'daily',\n label: 'Daily'\n },\n {\n value: 'monthly',\n label: 'Monthly'\n }\n ]\n } else {\n this.dateOptions = [\n {\n value: 'daily',\n label: 'Daily'\n },\n {\n value: 'monthly',\n label: 'Monthly'\n },\n {\n value: 'yearly',\n label: 'Yearly'\n }\n ]\n }\n },\n // 'form.location': function (val) {\n // // fetch customer data\n // if (val) {\n // this.onLocationChanged(val)\n // } else {\n // this.deviceGroups = []\n // this.customerList = []\n // }\n // },\n 'form.ParamJsonObject.customer': function (val) {\n // if (val) {\n // // fetch customer sensors\n // this.getSensorsByCustomers(val)\n // }\n },\n 'form.ParamJsonObject.reportType': function () {\n // if (this.form.customer) {\n // // fetch customer sensors\n // this.getSensorsByCustomers(this.form.customer)\n // }\n }\n // 'form.ParamJsonObject.location': function (val) {\n // // fetch customer data\n // if (val) {\n // this.onLocationChanged(val)\n // } else {\n // this.deviceGroups = []\n // this.customerList = []\n // }\n // }\n }\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=style&index=0&id=ab5e2074&prod&scoped=true&lang=css&\""],"sourceRoot":""}