{"version":3,"sources":["webpack:///./src/views/ui-elements/FAMSUI/DataIntergrityChecks.vue","webpack:///src/views/ui-elements/FAMSUI/DataIntergrityChecks.vue","webpack:///./src/views/ui-elements/FAMSUI/DataIntergrityChecks.vue?bdea","webpack:///./src/views/ui-elements/FAMSUI/DataIntergrityChecks.vue?0643","webpack:///./src/views/ui-elements/FAMSUI/DataIntergrityChecks.vue?2b62"],"names":["render","_vm","this","_c","_self","staticClass","attrs","staticStyle","on","initValues","_v","model","value","formData","fromDate","callback","$$v","$set","expression","directives","name","rawName","errors","has","_s","first","toDate","ref","getIntegrityCheckEquipment","eqpVisible","integrityData","scopedSlots","_u","key","fn","_ref","data","_l","tr","indextr","informationReg","createdate","formatDate","replace","split","volume","slot","typeData","typeDropDown","getIntegrityCheckEmployees","empVisible","_ref2","informationOpr","_e","informationDrv","informationAth","label","staticRenderFns","configdateTimePicker","enableTime","enableSeconds","myFiles","rawData","tabIndex","itemsPerPage","components","flatPickr","vSelect","Datepicker","VxCard","mounted","date","Date","getFullYear","getMonth","methods","moment","String","format","self","showLoadingOnElement","onSuccess","response","onFinally","$vs","loading","close","$refs","submitEmp","$el","$ajaxGet","concat","notify","title","text","color","submitEqp","successNotifyGridExpanded","successNotifyDataLoad","successNotify","FailedNotify","element","scale","type","container","component"],"mappings":"oLAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,UAAU,CAACE,YAAY,OAAOC,MAAM,CAAC,MAAQ,8BAA8B,CAACH,EAAG,UAAU,CAACI,YAAY,CAAC,MAAQ,0BAA0B,CAACJ,EAAG,SAAS,CAACE,YAAY,MAAME,YAAY,CAAC,aAAa,SAASD,MAAM,CAAC,MAAQ,+BAA+BE,GAAG,CAAC,MAAQP,EAAIQ,aAAa,CAACN,EAAG,MAAM,CAACE,YAAY,UAAU,C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GACAH,EAAAjD,cAAAoD,EAAA9C,MAEA+C,EAAA,WACAJ,EAAAlD,YAAA,EACAkD,EAAAK,IAAAC,QAAAC,MAAAP,EAAAQ,MAAAS,UAAAP,MAEAV,EAAAW,SACAX,EAAA,0CAAAY,OACAZ,EAAArC,WACAqC,EAAAlE,SAAAC,UACA,YAAA6E,OAAAZ,EAAArC,WAAAqC,EAAAlE,SAAAa,SACAuD,EACAE,IAGAc,0BAAA,WACA,KAAAb,IAAAQ,OAAA,CACAC,MAAA,sBACAC,KAAA,yBACAC,MAAA,aAGAG,sBAAA,WACA,KAAAd,IAAAQ,OAAA,CACAC,MAAA,eACAC,KAAA,kCACAC,MAAA,aAGAI,cAAA,WACA,KAAAf,IAAAQ,OAAA,CACAC,MAAA,eACAC,KAAA,8CACAC,MAAA,aAGAK,aAAA,WACA,KAAAhB,IAAAQ,OAAA,CACAC,MAAA,kBACAC,KAAA,iBACAC,MAAA,YAGAf,qBAAA,SAAAqB,EAAAC,EAAAC,GACA,IAAAxB,EAAA,KACAA,EAAAK,IAAAC,QAAA,CACAkB,OACAC,UAAAzB,EAAAQ,MAAAc,GAAAZ,IACAa,aCpV2X,I,yBCQvXG,EAAY,eACd,EACAzG,EACAyD,GACA,EACA,KACA,KACA,MAIa,aAAAgD,E,mECnBf","file":"js/chunk-7b9fa3f5.0c616ec1.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vx-card',{staticClass:\"pb-3\",attrs:{\"title\":\"FAMS Data Integrity Check\"}},[_c('vs-tabs',{staticStyle:{\"width\":\"auto min-height:500px\"}},[_c('vs-tab',{staticClass:\"p-6\",staticStyle:{\"min-height\":\"500px\"},attrs:{\"label\":\"Data Integrity - Equipmment\"},on:{\"click\":_vm.initValues}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col md:w-1/2 w-full mt-2\"},[_c('label',[_vm._v(\"Begin date\")]),_c('datepicker',{staticClass:\"w-full\",attrs:{\"id\":\"FromDate\",\"placeholder\":\"From Date\",\"format\":\"yyyy-MM-dd\",\"name\":\"From Date\"},model:{value:(_vm.formData.fromDate),callback:function ($$v) {_vm.$set(_vm.formData, \"fromDate\", $$v)},expression:\"formData.fromDate\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('From Date')),expression:\"errors.has('From Date')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"From Date\")))])],1),_c('div',{staticClass:\"vx-col md:w-1/2 w-full mt-2\"},[_c('label',[_vm._v(\"End date\")]),_c('datepicker',{staticClass:\"w-full\",attrs:{\"id\":\"ToDate\",\"placeholder\":\"To Date\",\"format\":\"yyyy-MM-dd\",\"name\":\"To Date\"},model:{value:(_vm.formData.toDate),callback:function ($$v) {_vm.$set(_vm.formData, \"toDate\", $$v)},expression:\"formData.toDate\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('To Date')),expression:\"errors.has('To Date')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"To Date\")))])],1)]),_c('div',{staticClass:\"mt-3 vx-col w-full mb-base\"},[_c('vs-button',{ref:\"submitEqp\",staticClass:\"rounded-lg pt-3 w-full vs-con-loading__container\",on:{\"click\":_vm.getIntegrityCheckEquipment}},[_vm._v(\"Submit\")])],1),_c('vs-table',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.eqpVisible),expression:\"eqpVisible\"}],ref:\"gridTable\",staticClass:\"vs-con-loading__container\",attrs:{\"pagination\":\"\",\"max-items\":\"10\",\"search\":\"\",\"data\":_vm.integrityData},scopedSlots:_vm._u([{key:\"default\",fn:function({ data }){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.name}},[_vm._v(_vm._s(tr.name))]),_c('vs-td',{attrs:{\"data\":tr.informationReg}},[_vm._v(_vm._s(tr.informationReg))]),_c('vs-td',{attrs:{\"data\":tr.createdate}},[_vm._v(_vm._s(_vm.formatDate(tr.createdate.replace(\"T\", \" \").split(\".\")[0])))]),_c('vs-td',{attrs:{\"data\":tr.volume}},[_vm._v(_vm._s(tr.volume))])],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{attrs:{\"sort-key\":\"Store\"}},[_vm._v(\"Store\")]),_c('vs-th',{attrs:{\"sort-key\":\"Registration\"}},[_vm._v(\"Registration\")]),_c('vs-th',{attrs:{\"sort-key\":\"Date\"}},[_vm._v(\"Date\")]),_c('vs-th',{attrs:{\"sort-key\":\"Volume\"}},[_vm._v(\"Volume\")])],1)],2)],1),_c('vs-tab',{staticStyle:{\"min-height\":\"500px\"},attrs:{\"label\":\"Data Integrity - Employees\"},on:{\"click\":_vm.initValues}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col md:w-1/2 w-full mt-2\"},[_c('label',[_vm._v(\"Begin date\")]),_c('datepicker',{staticClass:\"w-full\",attrs:{\"id\":\"FromDate\",\"placeholder\":\"From Date\",\"format\":\"yyyy-MM-dd\",\"name\":\"From Date\"},model:{value:(_vm.formData.fromDate),callback:function ($$v) {_vm.$set(_vm.formData, \"fromDate\", $$v)},expression:\"formData.fromDate\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('From Date')),expression:\"errors.has('From Date')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"From Date\")))])],1),_c('div',{staticClass:\"vx-col md:w-1/2 w-full mt-2\"},[_c('label',[_vm._v(\"End date\")]),_c('datepicker',{staticClass:\"w-full\",attrs:{\"id\":\"ToDate\",\"placeholder\":\"To Date\",\"format\":\"yyyy-MM-dd\",\"name\":\"To Date\"},model:{value:(_vm.formData.toDate),callback:function ($$v) {_vm.$set(_vm.formData, \"toDate\", $$v)},expression:\"formData.toDate\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('To Date')),expression:\"errors.has('To Date')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"To Date\")))])],1),_c('br'),_c('div',{staticClass:\"vx-col w-full mb-base\"},[_c('label',[_vm._v(\"Type\")]),_c('v-select',{staticClass:\"w-full\",attrs:{\"placeholder\":\"Search / Select Type\",\"options\":_vm.typeData},model:{value:(_vm.typeDropDown),callback:function ($$v) {_vm.typeDropDown=$$v},expression:\"typeDropDown\"}},[_vm._v(\">>\\n              \")])],1)]),_c('div',{staticClass:\"mt-3 vx-col w-full mb-base\"},[_c('vs-button',{ref:\"submitEmp\",staticClass:\"rounded-lg pt-3 w-full vs-con-loading__container\",on:{\"click\":_vm.getIntegrityCheckEmployees}},[_vm._v(\"Submit\")])],1),_c('vs-table',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.empVisible),expression:\"empVisible\"}],ref:\"gridEmp\",staticClass:\"vs-con-loading__container\",attrs:{\"pagination\":\"\",\"max-items\":\"10\",\"search\":\"\",\"data\":_vm.integrityData},scopedSlots:_vm._u([{key:\"default\",fn:function({ data }){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.name}},[_vm._v(_vm._s(tr.name))]),(_vm.typeDropDown.value == 1)?_c('vs-td',{attrs:{\"data\":tr.informationOpr}},[_vm._v(_vm._s(tr.informationOpr))]):_vm._e(),(_vm.typeDropDown.value == 2)?_c('vs-td',{attrs:{\"data\":tr.informationDrv}},[_vm._v(_vm._s(tr.informationDrv))]):_vm._e(),(_vm.typeDropDown.value == 3)?_c('vs-td',{attrs:{\"data\":tr.informationAth}},[_vm._v(_vm._s(tr.informationAth))]):_vm._e(),_c('vs-td',{attrs:{\"data\":tr.informationReg}},[_vm._v(_vm._s(tr.informationReg))]),_c('vs-td',{attrs:{\"data\":tr.createdate}},[_vm._v(_vm._s(_vm.formatDate(tr.createdate.replace(\"T\", \" \").split(\".\")[0])))]),_c('vs-td',{attrs:{\"data\":tr.volume}},[_vm._v(_vm._s(tr.volume))])],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{attrs:{\"sort-key\":\"Store\"}},[_vm._v(\"Store\")]),_c('vs-th',{attrs:{\"sort-key\":\"Operator\"}},[_vm._v(_vm._s(_vm.typeDropDown.label))]),_c('vs-th',{attrs:{\"sort-key\":\"Registration\"}},[_vm._v(\"Registration\")]),_c('vs-th',{attrs:{\"sort-key\":\"Date\"}},[_vm._v(\"Date\")]),_c('vs-th',{attrs:{\"sort-key\":\"Volume\"}},[_vm._v(\"Volume\")])],1)],2)],1)],1)],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"vx-row\">\n    <div class=\"vx-col w-full\">\n      <vx-card class=\"pb-3\" title=\"FAMS Data Integrity Check\">\n        <vs-tabs style=\"width: auto min-height:500px\">\n          <vs-tab\n            @click=\"initValues\"\n            class=\"p-6\"\n            label=\"Data Integrity - Equipmment\"\n            style=\"min-height: 500px\"\n          >\n            <div class=\"vx-row\">\n              <div class=\"vx-col md:w-1/2 w-full mt-2\">\n                <label>Begin date</label>\n                <datepicker\n                  class=\"w-full\"\n                  id=\"FromDate\"\n                  placeholder=\"From Date\"\n                  v-model=\"formData.fromDate\"\n                  format=\"yyyy-MM-dd\"\n                  name=\"From Date\"\n                ></datepicker>\n                <span\n                  class=\"text-danger text-sm\"\n                  v-show=\"errors.has('From Date')\"\n                  >{{ errors.first(\"From Date\") }}</span\n                >\n              </div>\n              <div class=\"vx-col md:w-1/2 w-full mt-2\">\n                <label>End date</label>\n                <datepicker\n                  class=\"w-full\"\n                  id=\"ToDate\"\n                  placeholder=\"To Date\"\n                  v-model=\"formData.toDate\"\n                  format=\"yyyy-MM-dd\"\n                  name=\"To Date\"\n                ></datepicker>\n                <span\n                  class=\"text-danger text-sm\"\n                  v-show=\"errors.has('To Date')\"\n                  >{{ errors.first(\"To Date\") }}</span\n                >\n              </div>\n            </div>\n            <div class=\"mt-3 vx-col w-full mb-base\">\n              <vs-button\n                ref=\"submitEqp\"\n                class=\"rounded-lg pt-3 w-full vs-con-loading__container\"\n                @click=\"getIntegrityCheckEquipment\"\n                >Submit</vs-button\n              >\n            </div>\n            <vs-table\n              ref=\"gridTable\"\n              pagination\n              v-show=\"eqpVisible\"\n              max-items=10\n              search\n              :data=\"integrityData\"\n              class=\"vs-con-loading__container\"\n            >\n              <template slot=\"thead\">\n                <vs-th sort-key=\"Store\">Store</vs-th>\n                <vs-th sort-key=\"Registration\">Registration</vs-th>\n                <vs-th sort-key=\"Date\">Date</vs-th>\n                <vs-th sort-key=\"Volume\">Volume</vs-th>\n              </template>\n              <template slot-scope=\"{ data }\">\n                <vs-tr :data=\"tr\" :key=\"indextr\" v-for=\"(tr, indextr) in data\">\n                  <vs-td :data=\"tr.name\">{{ tr.name }}</vs-td>\n                  <vs-td :data=\"tr.informationReg\">{{\n                    tr.informationReg\n                  }}</vs-td>\n                  <vs-td :data=\"tr.createdate\">{{\n                    formatDate(tr.createdate.replace(\"T\", \" \").split(\".\")[0])\n                  }}</vs-td>\n                  <vs-td :data=\"tr.volume\">{{ tr.volume }}</vs-td>\n                </vs-tr>\n              </template>\n            </vs-table>\n          </vs-tab>\n          <vs-tab\n            @click=\"initValues\"\n            label=\"Data Integrity - Employees\"\n            style=\"min-height: 500px\"\n          >\n            <div class=\"vx-row\">\n              <div class=\"vx-col md:w-1/2 w-full mt-2\">\n                <label>Begin date</label>\n                <datepicker\n                  class=\"w-full\"\n                  id=\"FromDate\"\n                  placeholder=\"From Date\"\n                  v-model=\"formData.fromDate\"\n                  format=\"yyyy-MM-dd\"\n                  name=\"From Date\"\n                ></datepicker>\n                <span\n                  class=\"text-danger text-sm\"\n                  v-show=\"errors.has('From Date')\"\n                  >{{ errors.first(\"From Date\") }}</span\n                >\n              </div>\n              <div class=\"vx-col md:w-1/2 w-full mt-2\">\n                <label>End date</label>\n                <datepicker\n                  class=\"w-full\"\n                  id=\"ToDate\"\n                  placeholder=\"To Date\"\n                  v-model=\"formData.toDate\"\n                  format=\"yyyy-MM-dd\"\n                  name=\"To Date\"\n                ></datepicker>\n                <span\n                  class=\"text-danger text-sm\"\n                  v-show=\"errors.has('To Date')\"\n                  >{{ errors.first(\"To Date\") }}</span\n                >\n              </div>\n              <br />\n              <div class=\"vx-col w-full mb-base\">\n                <label>Type</label>\n                <v-select\n                  class=\"w-full\"\n                  placeholder=\"Search / Select Type\"\n                  :options=\"typeData\"\n                  v-model=\"typeDropDown\"\n                  >>>\n                </v-select>\n              </div>\n            </div>\n            <div class=\"mt-3 vx-col w-full mb-base\">\n              <vs-button\n                ref=\"submitEmp\"\n                class=\"rounded-lg pt-3 w-full vs-con-loading__container\"\n                @click=\"getIntegrityCheckEmployees\"\n                >Submit</vs-button\n              >\n            </div>\n            <vs-table\n              ref=\"gridEmp\"\n              pagination\n              v-show=\"empVisible\"\n              max-items=10\n              search\n              :data=\"integrityData\"\n              class=\"vs-con-loading__container\"\n            >\n              <template slot=\"thead\">\n                <vs-th sort-key=\"Store\">Store</vs-th>\n                <vs-th sort-key=\"Operator\">{{ typeDropDown.label }}</vs-th>\n                <vs-th sort-key=\"Registration\">Registration</vs-th>\n                <vs-th sort-key=\"Date\">Date</vs-th>\n                <vs-th sort-key=\"Volume\">Volume</vs-th>\n              </template>\n              <template slot-scope=\"{ data }\">\n                <vs-tr :data=\"tr\" :key=\"indextr\" v-for=\"(tr, indextr) in data\">\n                  <vs-td :data=\"tr.name\">{{ tr.name }}</vs-td>\n                  <vs-td\n                    v-if=\"typeDropDown.value == 1\"\n                    :data=\"tr.informationOpr\"\n                    >{{ tr.informationOpr }}</vs-td\n                  >\n                  <vs-td\n                    v-if=\"typeDropDown.value == 2\"\n                    :data=\"tr.informationDrv\"\n                    >{{ tr.informationDrv }}</vs-td\n                  >\n                  <vs-td\n                    v-if=\"typeDropDown.value == 3\"\n                    :data=\"tr.informationAth\"\n                    >{{ tr.informationAth }}</vs-td\n                  >\n                  <vs-td :data=\"tr.informationReg\">{{\n                    tr.informationReg\n                  }}</vs-td>\n                  <vs-td :data=\"tr.createdate\">{{\n                    formatDate(tr.createdate.replace(\"T\", \" \").split(\".\")[0])\n                  }}</vs-td>\n                  <vs-td :data=\"tr.volume\">{{ tr.volume }}</vs-td>\n                </vs-tr>\n              </template>\n            </vs-table>\n          </vs-tab>\n        </vs-tabs>\n      </vx-card>\n    </div>\n  </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport flatPickr from \"vue-flatpickr-component\";\nimport \"flatpickr/dist/flatpickr.css\";\nimport vSelect from \"vue-select\";\nimport Datepicker from \"vuejs-datepicker\";\nimport Vue from \"vue\";\nimport VxCard from \"../../../components/vx-card/VxCard.vue\";\nimport moment from \"moment\";\nexport default {\n  name: \"app\",\n  data() {\n    return {\n      configdateTimePicker: {\n        enableTime: true,\n        enableSeconds: true,\n      },\n      myFiles: \"\",\n      rawData: \"\",\n      tabIndex:0,\n      itemsPerPage:10,\n      integrityData: [],\n      typeData: [\n        { value: 1, label: \"Employee\" },\n        { value: 2, label: \"Driver\" },\n        { value: 3, label: \"Authorization\" },\n      ],\n      typeDropDown: 0,\n      empVisible: false,\n      eqpVisible: false,\n      formData: {\n        fromDate: \"\",\n        toDate: \"\",\n      },\n    };\n  },\n  components: {\n    flatPickr,\n    \"v-select\": vSelect,\n    Datepicker,\n    VxCard,\n  },\n  mounted() {\n    var date = new Date();\n    this.formData.fromDate = new Date(date.getFullYear(), date.getMonth(), 1);\n    this.formData.toDate = new Date(date.getFullYear(), date.getMonth() + 1, 0);\n  },\n  methods: {\n    initValues() {\n      this.eqpVisible = false;\n      this.empVisible = false;\n\n      var date = new Date();\n      this.formData.fromDate = new Date(date.getFullYear(), date.getMonth(), 1);\n      this.formData.toDate = new Date(\n        date.getFullYear(),\n        date.getMonth() + 1,\n        0\n      );\n\n      this.integrityData = [];\n      this.typeDropDown = 0;\n    },\n    formatDate: function (value) {\n      if (value) {\n        return moment(String(value)).format(\"YYYY-MM-DD\");\n      }\n    },\n    getIntegrityCheckEmployees() {\n      var self = this;\n      if (!self.typeDropDown) {\n        this.$vs.notify({\n          title: \"Attention\",\n          text: \"Please select a type\",\n          color: \"warning\",\n        });\n      } else {\n        self.showLoadingOnElement(\"submitEmp\", 1, \"radius\");\n\n        var onSuccess = function (response) {\n          self.integrityData = response.data;\n        };\n        var onFinally = function () {\n          self.empVisible = true;\n          self.$vs.loading.close(self.$refs.submitEmp.$el);\n        };\n        self.$ajaxGet(\n          self,\n          `Operators/GetOperatorIDZero?fromDate=${self.formatDate(\n            self.formData.fromDate\n          )}&toDate=${self.formatDate(self.formData.toDate)}&type=${self.typeDropDown.value}`,\n          onSuccess,\n          onFinally\n        );\n      }\n    },\n    getIntegrityCheckEquipment() {\n      var self = this;\n\n      self.showLoadingOnElement(\"submitEqp\", 1, \"radius\");\n\n      var onSuccess = function (response) {\n        self.integrityData = response.data;\n      };\n      var onFinally = function () {\n        self.eqpVisible = true;\n        self.$vs.loading.close(self.$refs.submitEqp.$el);\n      };\n      self.$ajaxGet(\n        self,\n        `Equipments/GetEquipmentIDZero?fromDate=${self.formatDate(\n          self.formData.fromDate\n        )}&toDate=${self.formatDate(self.formData.toDate)}`,\n        onSuccess,\n        onFinally\n      );\n    },\n    successNotifyGridExpanded() {\n      this.$vs.notify({\n        title: \"Grid - Successfully\",\n        text: \"Grid expanded / closed\",\n        color: \"warning\",\n      });\n    },\n    successNotifyDataLoad() {\n      this.$vs.notify({\n        title: \"Successfully\",\n        text: \"Information successfully loaded\",\n        color: \"success\",\n      });\n    },\n    successNotify() {\n      this.$vs.notify({\n        title: \"Successfully\",\n        text: \"Item successfully added | updated | removed\",\n        color: \"success\",\n      });\n    },\n    FailedNotify() {\n      this.$vs.notify({\n        title: \"Not Successfull\",\n        text: \"Item not added\",\n        color: \"danger\",\n      });\n    },\n    showLoadingOnElement(element, scale, type) {\n      var self = this;\n      self.$vs.loading({\n        type: type,\n        container: self.$refs[element].$el,\n        scale: scale,\n      });\n    },\n  },\n};\n</script>\n<style lang=\"scss\">\n#background {\n  .con-img-upload {\n    background-color: #67676759 !important;\n  }\n}\n#app {\n  #filepond {\n    .filepond--drop-label {\n      background-color: #ff9f43 !important;\n      border-radius: 10px !important;\n      color: white !important;\n      font-size: 15px;\n    }\n  }\n}\n</style>\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!./DataIntergrityChecks.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!./DataIntergrityChecks.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DataIntergrityChecks.vue?vue&type=template&id=002a375b\"\nimport script from \"./DataIntergrityChecks.vue?vue&type=script&lang=js\"\nexport * from \"./DataIntergrityChecks.vue?vue&type=script&lang=js\"\nimport style0 from \"./DataIntergrityChecks.vue?vue&type=style&index=0&id=002a375b&prod&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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.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!./DataIntergrityChecks.vue?vue&type=style&index=0&id=002a375b&prod&lang=scss\""],"sourceRoot":""}