%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/web/js/
Upload File :
Create Path :
Current File : /var/www/html/hr/web/js/chunk-7401641b.6eef7b96.js.map

{"version":3,"sources":["webpack:///./src/services/Holidays.js","webpack:///./src/views/holidays/HolidayDetails.vue?3a99","webpack:///./src/components/holidays/HolidayDetailsComponent.vue?eeb5","webpack:///src/components/holidays/HolidayDetailsComponent.vue","webpack:///./src/components/holidays/HolidayDetailsComponent.vue?c61c","webpack:///./src/components/holidays/HolidayDetailsComponent.vue","webpack:///src/views/holidays/HolidayDetails.vue","webpack:///./src/views/holidays/HolidayDetails.vue?512d","webpack:///./src/views/holidays/HolidayDetails.vue"],"names":["list","year","Promise","resolve","reject","ApiFactory","get","serialize","then","success","data","error","catch","e","downloadExcelExample","url","method","responseType","window","URL","createObjectURL","Blob","link","document","createElement","href","setAttribute","body","appendChild","click","holidays","params","getMonthData","create","payload","post","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","$t","process","holidayData","on","doHoliday","staticRenderFns","ref","scopedSlots","_u","key","fn","invalid","$event","preventDefault","submit","model","value","holiday","callback","$$v","$set","expression","_v","_s","component"],"mappings":"sLAGe,QACbA,KADa,SACPC,GACJ,OAAO,IAAIC,SAAQ,SAACC,EAASC,GAC3BC,OAAWC,IAAX,sBAA8BC,eAAUN,KACrCO,MACC,SAACC,GAAD,OAAaN,EAAQM,EAAQC,SAC7B,SAACC,GAAD,OAAWP,EAAOO,MAClBC,OAAM,SAAAC,GAAC,OAAIT,EAAOS,UAG1BC,qBAAsB,WACpB,OAAO,IAAIZ,SAAQ,SAACC,EAASC,GAC3BC,eAAW,CACTU,IAAK,2CACLC,OAAQ,MACRC,aAAc,SACbT,MACD,SAACC,GACC,IAAMM,EAAMG,OAAOC,IAAIC,gBAAgB,IAAIC,KAAK,CAACZ,EAAQC,QACnDY,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOV,EACZO,EAAKI,aAAa,WAAY,gCAC9BH,SAASI,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AN,QACM,SAAN,IAGE,QAAF,CACI,OADJ,WACM,IAAN,OAAM,OAAN,4JACA,6BADA,UACA,EADA,OAEA,EAFA,iDAGA,mBAHA,8CAKI,aANJ,WAOM,KAAN,aACQ,UAAR,6BAGI,YAXJ,WAYM,KAAN,+CAGE,MAAF,CACI,QADJ,SACA,GACA,sBACA,sBClEgX,I,YCO5WwB,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,oBCCf,GACE,KAAF,iBACE,WAAF,CACI,wBAAJ,GAEE,KALF,WAMI,MAAJ,CACM,YAAN,KAGE,QAAF,CACI,UADJ,WAEM,KAAN,iBAEI,cAJJ,WAIM,IAAN,OACM,KAAN,cACM,EAAN,+CACQ,EAAR,iHACQ,OAAR,kBACA,mBACQ,EAAR,oBACQ,EAAR,4CCxCuW,ICOnW,EAAY,eACd,EACAjC,EACAc,GACA,EACA,KACA,WACA,MAIa,e","file":"js/chunk-7401641b.6eef7b96.js","sourcesContent":["import ApiFactory from '@/factories/ApiFactory'\nimport {serialize} from '@/utilities/querySerialize'\n\nexport default {\n  list (year) {\n    return new Promise((resolve, reject) => {\n      ApiFactory.get(`v1/holidays?${serialize(year)}`)\n        .then(\n          (success) => resolve(success.data),\n          (error) => reject(error)\n        ).catch(e => reject(e))\n    })\n  },\n  downloadExcelExample: () => {\n    return new Promise((resolve, reject) => {\n      ApiFactory({\n        url: `v1/holidays/actions/downloadExcelExample`,\n        method: 'GET',\n        responseType: 'blob'\n      }).then(\n        (success) => {\n          const url = window.URL.createObjectURL(new Blob([success.data]));\n          const link = document.createElement('a');\n          link.href = url;\n          link.setAttribute('download', 'holidays_import_example.xlsx');\n          document.body.appendChild(link);\n          link.click();\n          resolve()\n        },\n        (error) => reject(error)\n      );\n    });\n  },\n  holidays (params) {\n    return new Promise((resolve, reject) => {\n      ApiFactory.get(`v1/daysOff?${serialize(params)}`)\n        .then(\n          (success) => resolve(success.data),\n          (error) => reject(error)\n        ).catch(e => reject(e))\n    })\n  },\n  getMonthData (params) {\n    return new Promise((resolve, reject) => {\n      ApiFactory.get(`v1/getMonthData?${serialize(params)}`)\n        .then(\n          (success) => resolve(success.data),\n          (error) => reject(error)\n        ).catch(e => reject(e))\n    })\n  },\n  create (payload) {\n    return new Promise((resolve, reject) => {\n      ApiFactory.post('v1/holidays', payload).then(\n        (success) => resolve(success.data),\n        (error) => reject(error)\n      )\n    })\n  },\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-portal',{attrs:{\"to\":\"hrsys-navbar\"}},[_c('div',{staticClass:\"flex text-2xl font-bold text-center\"},[_c('base-back-button'),_c('base-header-title',{attrs:{\"title\":_vm.$t('holidays.details')}})],1)]),_c('holiday-details-component',{attrs:{\"action\":_vm.$t((\"buttons.\" + ([_vm.process]))),\"holiday\":_vm.holidayData},on:{\"confirm\":_vm.doHoliday}})],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:\"view-container\"},[_c('div',{staticClass:\"flex flex-col justify-around items-center\"},[_c('div',{staticClass:\"max-w-md w-full sm:w-1/2 lg:w-1/3 xl:w-1/3 flex flex-wrap content-center justify-center\"},[_c('ValidationObserver',{ref:\"validator\",staticClass:\"w-full\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit()}}},[_c('base-input',{staticClass:\"w-full\",attrs:{\"label-placeholder\":_vm.$t('auth.password'),\"name\":_vm.$t('holidays.table.name'),\"rules\":\"required\"},model:{value:(_vm.holiday.name),callback:function ($$v) {_vm.$set(_vm.holiday, \"name\", $$v)},expression:\"holiday.name\"}}),_c('date-picker',{staticClass:\"w-full\",attrs:{\"input-label\":_vm.$t('holidays.table.date'),\"name\":_vm.$t('holidays.table.date'),\"rules\":\"required\"},model:{value:(_vm.holiday.date),callback:function ($$v) {_vm.$set(_vm.holiday, \"date\", $$v)},expression:\"holiday.date\"}}),_c('base-button',{staticClass:\"w-full mb-5 mt-2\",attrs:{\"disabled\":invalid,\"button\":\"filled\",\"color\":\"success\",\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.$t('buttons.create'))+\" \")])],1)]}}])})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"view-container\">\n    <div class=\"flex flex-col justify-around items-center\">\n      <div class=\"max-w-md w-full sm:w-1/2 lg:w-1/3 xl:w-1/3 flex flex-wrap content-center justify-center\">\n\n        <ValidationObserver class=\"w-full\" ref=\"validator\" v-slot=\"{ invalid }\">\n          <form @submit.prevent=\"submit()\">\n\n            <base-input :label-placeholder=\"$t('auth.password')\" :name=\"$t('holidays.table.name')\"\n                        class=\"w-full\" rules=\"required\"\n                        v-model=\"holiday.name\"/>\n\n            <date-picker :input-label=\"$t('holidays.table.date')\" :name=\"$t('holidays.table.date')\"\n                         class=\"w-full\" rules=\"required\"\n                         v-model=\"holiday.date\"/>\n\n            <base-button :disabled=\"invalid\" button=\"filled\" class=\"w-full mb-5 mt-2\" color=\"success\" type=\"submit\">\n              {{ $t('buttons.create') }}\n            </base-button>\n          </form>\n        </ValidationObserver>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\n  import DatePicker from \"../DatePicker\";\n\n  export default {\n    name: \"HolidayDetailsComponent\",\n    components: {\n      DatePicker\n    },\n    props: {\n      holiday: {\n        type: Object,\n        required: true\n      },\n      action: {\n        type: String,\n        required: true\n      },\n      loading: {\n        type: Boolean,\n        default: false\n      }\n    },\n    methods: {\n      async submit () {\n        const isValid = await this.$refs.validator.validate();\n        if (!isValid) return;\n        this.$emit('confirm');\n      },\n      startLoading () {\n        this.$vs.loading({\n          container: this.$refs.holidayDetails,\n        })\n      },\n      stopLoading () {\n        this.$vs.loading.close(this.$refs.holidayDetails)\n      },\n    },\n    watch: {\n      loading (newValue) {\n        if (newValue) this.startLoading()\n        else this.stopLoading()\n      }\n    }\n  }\n</script>\n\n<style lang=\"scss\">\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!./HolidayDetailsComponent.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!./HolidayDetailsComponent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./HolidayDetailsComponent.vue?vue&type=template&id=05f1cffe&\"\nimport script from \"./HolidayDetailsComponent.vue?vue&type=script&lang=js&\"\nexport * from \"./HolidayDetailsComponent.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","<template>\n  <div>\n    <vue-portal to=\"hrsys-navbar\">\n      <div class=\"flex text-2xl font-bold text-center\">\n        <base-back-button/>\n        <base-header-title :title=\"$t('holidays.details')\"/>\n      </div>\n    </vue-portal>\n    <holiday-details-component\n      :action=\"$t(`buttons.${[process]}`)\"\n      :holiday=\"holidayData\"\n      @confirm=\"doHoliday\"/>\n  </div>\n</template>\n\n<script>\n  import HolidayDetailsComponent from \"../../components/holidays/HolidayDetailsComponent\"\n  import Holidays from \"../../services/Holidays\"\n\n  export default {\n    name: 'HolidayDetails',\n    components: {\n      HolidayDetailsComponent\n    },\n    data () {\n      return {\n        holidayData: {},\n      }\n    },\n    methods: {\n      doHoliday () {\n        this.createHoliday()\n      },\n      createHoliday () {\n        this.$vs.loading();\n        Holidays.create(this.holidayData).then(() => {\n          this.$notificationService.success(`${this.$t('holidays.holiday')} ${this.$t('notification.successCreate')}`);\n          window.history.back();\n        }).catch((e) => {\n          this.$vs.loading.close();\n          this.$notificationService.error(e.message);\n        })\n      },\n    }\n  }\n</script>\n\n<style scoped>\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!./HolidayDetails.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!./HolidayDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./HolidayDetails.vue?vue&type=template&id=58ee7970&scoped=true&\"\nimport script from \"./HolidayDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./HolidayDetails.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  \"58ee7970\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}

Zerion Mini Shell 1.0