{"version":3,"sources":["webpack:///./src/components/jobs/Misc/helpers.ts","webpack:///./src/components/general/LoadingSpinner.vue?f586","webpack:///./src/components/jobs/Misc/WorkerRatesDataTable.vue?fa55","webpack:///./src/components/jobs/tabs/WorkerRatesTab.vue?9d90","webpack:///./src/components/jobs/Misc/WorkerRatesDataTable.vue?fa07","webpack:///./src/components/jobs/Misc/CustomizeRatesModal.vue?cd27","webpack:///./src/components/jobs/Misc/CustomizeRatesModal.vue","webpack:///./src/components/jobs/Misc/CustomizeRatesModal.vue?14b5","webpack:///./src/components/jobs/Misc/WorkerRatesDataTable.vue","webpack:///./src/components/jobs/Misc/WorkerRatesDataTable.vue?4709","webpack:///./src/components/jobs/tabs/WorkerRatesTab.vue","webpack:///./src/components/jobs/tabs/WorkerRatesTab.vue?c5e9","webpack:///./src/components/jobs/Misc/CustomizeRatesModal.vue?9076","webpack:///./src/components/general/LoadingSpinner.vue?a742","webpack:///./src/components/general/LoadingSpinner.vue","webpack:///./src/components/general/LoadingSpinner.vue?4fce"],"names":["fireSwal","fire","toast","position","icon","timer","showConfirmButton","title","fireErrorSwal","fireSuccessfulDeleteToast","_hoisted_1","class","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_component_LoadingSpinner","_component_RatesDataTable","key","onSaveRates","handleSaveRates","onUpdateState","rerenderTableElement","isSavingRates","_withScopeId","n","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_component_CustomizeRatesModal","_component_el_checkbox","isSaving","isSavingCustom","modalKey","onSaveLevelRates","handleSaveRatesLevel","skillId","skillID","style","onChange","event","handleSelectAllRows","id","type","$event","bulkEdit","base_rate","level_bonus","weekend_bonus","night_bonus","onClick","handleBulkEdit","args","rates","skills","item","handleBulkEditList","checked","bulkEditList","includes","name","model","handleCustomizeModal","disabled","emitSaveRates","orderedLevels","level","handleSaveLevelRates","props","Number","default","Boolean","setup","emit","store","getters","levels","orderBy","value","hasModelData","Object","keys","length","buildRatesModel","i","template","level_id","skill_id","existingRate","historicalRates","find","__exports__","components","CustomizeRatesModal","modal","job","hasModel","buildModel","skill","rate","dispatch","forEach","splice","indexOf","push","map","parseInt","then","document","getElementById","show","payload","job_id","is_level","finally","hide","LoadingSpinner","RatesDataTable","isLoading","data","spinnerColor","role","String"],"mappings":"2IAAA,+HAEA,SAASA,IACL,IAAKC,KAAK,CACNC,OAAQ,EACRC,SAAU,YACVC,KAAM,UACNC,MAAO,IACPC,mBAAmB,EACnBC,MAAO,+BAIf,SAASC,IACL,IAAKP,KAAK,CACNE,SAAU,SACVC,KAAM,QACNC,MAAO,IACPC,mBAAmB,EACnBC,MAAO,4BAIf,SAASE,IACL,IAAKR,KAAK,CACNM,MAAO,8BACPL,OAAO,EACPC,SAAU,YACVG,mBAAmB,EACnBF,KAAM,UACNC,MAAO,Q,kCC9Bf,W,kCCAA,W,2DCEMK,EAAa,CAAEC,MAAO,gCACtBC,EAA0B,gCAAoB,MAAO,CAAED,MAAO,oBAAsB,CAC3E,gCAAoB,MAAO,CAAEA,MAAO,6BAA+B,CACjE,gCAAoB,KAAM,CAAEA,MAAO,kBAAoB,4BAEpE,GACEE,EAAa,CAAEF,MAAO,kBAErB,SAASG,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA4B,8BAAkB,kBAC9CC,EAA4B,8BAAkB,kBAEpD,OAAQ,yBAAc,gCAAoB,MAAOZ,EAAY,CAC3DE,EACA,gCAAoB,MAAOC,EAAY,CACpCE,EAAc,WACV,yBAAc,yBAAaM,EAA2B,CAAEE,IAAK,MAC7D,yBAA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,EAAuB,WAC3BJ,EAAIuF,SAGArF,EAAkB,SAAC8H,GACvB,IAAMR,EAAU,CACd1D,MAAOkE,EACPP,OAAQjB,EAAIjB,MAAMpC,IAEpB9C,EAAckF,OAAQ,EACtBJ,EAAM0B,SAAS,2BAA4BW,GACtCG,SAAQ,WACPxC,EAAM0B,SAAS,6BAA8BL,EAAIjB,MAAMpC,IAClDwE,SAAQ,WACPvH,IACAC,EAAckF,OAAQ,EACtB,yBAKd,MAAO,CACLnF,qBAAoB,EACpBF,gBAAe,EACfG,cAAa,EACbL,IAAG,EACH+H,UAAS,MCrDf,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASxI,KAErD,iB,oCCPf,W,gGCGMJ,EAAa,CAAEC,MAAO,iCAErB,SAASG,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,yBAAc,gCAAoB,MAAOV,EAAY,CAC3D,gCAAoB,MAAO,CACzBC,MAAO,4BAAgB,CAAC,4CAA6CI,EAAKyI,eAC1EC,KAAM,UACL,KAAM,KCPE,mCAAgB,CAC7B7D,KAAM,iBACNQ,MAAO,CACLoD,aAAc,CACZ7E,KAAM+E,OACNpD,QAAS,mB,iCCDf,MAAMqB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS7G,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-2433c696.e0199550.js","sourcesContent":["import Swal from \"sweetalert2\";\n\nfunction fireSwal() {\n Swal.fire({\n toast : true,\n position: 'top-right',\n icon: 'success',\n timer: 800,\n showConfirmButton: false,\n title: \"Details saved successfully\"\n })\n}\n\nfunction fireErrorSwal() {\n Swal.fire({\n position: 'center',\n icon: 'error',\n timer: 800,\n showConfirmButton: false,\n title: \"Please enter valid data\"\n })\n}\n\nfunction fireSuccessfulDeleteToast() {\n Swal.fire({\n title: \"Record deleted successfully\",\n toast: true,\n position: \"top-right\",\n showConfirmButton: false,\n icon: \"success\",\n timer: 800\n })\n}\nexport {fireSwal, fireErrorSwal, fireSuccessfulDeleteToast};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./LoadingSpinner.vue?vue&type=style&index=0&id=7cf22dc6&scoped=true&lang=css\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./WorkerRatesDataTable.vue?vue&type=style&index=0&id=89af6932&scoped=true&lang=css\"","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"card card-flush mt-6 mt-xl-9\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-header mt-5\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex align-items-center\" }, [\n /*#__PURE__*/_createElementVNode(\"h3\", { class: \"fw-bolder mb-1\" }, \" Job's worker rates \")\n ])\n], -1)\nconst _hoisted_3 = { class: \"card-body pt-0\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_LoadingSpinner = _resolveComponent(\"LoadingSpinner\")!\n const _component_RatesDataTable = _resolveComponent(\"RatesDataTable\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_component_LoadingSpinner, { key: 0 }))\n : (_openBlock(), _createBlock(_component_RatesDataTable, {\n key: _ctx.key,\n onSaveRates: _ctx.handleSaveRates,\n onUpdateState: _ctx.rerenderTableElement,\n \"is-saving-rates\": _ctx.isSavingRates\n }, null, 8, [\"onSaveRates\", \"onUpdateState\", \"is-saving-rates\"]))\n ])\n ]))\n}","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, createElementVNode as _createElementVNode, vModelText as _vModelText, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-89af6932\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"d-flex flex-column\" }\nconst _hoisted_2 = { class: \"table-responsive\" }\nconst _hoisted_3 = { class: \"table table-row-dashed table-row-gray-300 align-middle gs-0 gy-4\" }\nconst _hoisted_4 = { class: \"fw-bolder text-muted\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-250px\" }, \"Skill\", -1))\nconst _hoisted_6 = { class: \"min-w-150px\" }\nconst _hoisted_7 = { class: \"d-flex flex-column\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Base rate\", -1))\nconst _hoisted_9 = { class: \"min-w-150px\" }\nconst _hoisted_10 = { class: \"d-flex flex-column\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Level bonus\", -1))\nconst _hoisted_12 = { class: \"min-w-150px\" }\nconst _hoisted_13 = { class: \"d-flex flex-column\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Weekend bonus\", -1))\nconst _hoisted_15 = { class: \"min-w-150px\" }\nconst _hoisted_16 = { class: \"d-flex flex-column\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Night bonus\", -1))\nconst _hoisted_18 = { class: \"text-end\" }\nconst _hoisted_19 = { class: \"d-flex justify-content-end\" }\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-150px text-end\" }, \"Actions\", -1))\nconst _hoisted_21 = { class: \"text-center\" }\nconst _hoisted_22 = { class: \"fs-5 fw-bold\" }\nconst _hoisted_23 = [\"onUpdate:modelValue\"]\nconst _hoisted_24 = [\"onUpdate:modelValue\"]\nconst _hoisted_25 = [\"onUpdate:modelValue\"]\nconst _hoisted_26 = [\"onUpdate:modelValue\"]\nconst _hoisted_27 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, null, -1))\nconst _hoisted_28 = { class: \"text-end\" }\nconst _hoisted_29 = [\"onClick\"]\nconst _hoisted_30 = { class: \"d-flex justify-content-end mt-4\" }\nconst _hoisted_31 = [\"disabled\"]\nconst _hoisted_32 = {\n key: 0,\n class: \"spinner-border-sm me-2 spinner-border\"\n}\nconst _hoisted_33 = /*#__PURE__*/_createTextVNode(\" Save \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_CustomizeRatesModal = _resolveComponent(\"CustomizeRatesModal\")!\n const _component_el_checkbox = _resolveComponent(\"el-checkbox\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_component_CustomizeRatesModal, {\n isSaving: _ctx.isSavingCustom,\n key: _ctx.modalKey,\n onSaveLevelRates: _ctx.handleSaveRatesLevel,\n skillId: _ctx.skillID\n }, null, 8, [\"isSaving\", \"onSaveLevelRates\", \"skillId\"])),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"table\", _hoisted_3, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", _hoisted_4, [\n _createElementVNode(\"th\", null, [\n _createVNode(_component_el_checkbox, {\n style: {\"padding\":\"0 8px\"},\n onChange: _cache[0] || (_cache[0] = event => _ctx.handleSelectAllRows(event))\n })\n ]),\n _hoisted_5,\n _createElementVNode(\"th\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.bulkEdit.base_rate) = $event))\n }, null, 512), [\n [_vModelText, _ctx.bulkEdit.base_rate]\n ])\n ])\n ])\n ]),\n _createElementVNode(\"th\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.bulkEdit.level_bonus) = $event))\n }, null, 512), [\n [_vModelText, _ctx.bulkEdit.level_bonus]\n ])\n ])\n ])\n ]),\n _createElementVNode(\"th\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.bulkEdit.weekend_bonus) = $event))\n }, null, 512), [\n [_vModelText, _ctx.bulkEdit.weekend_bonus]\n ])\n ])\n ])\n ]),\n _createElementVNode(\"th\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _hoisted_17,\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.bulkEdit.night_bonus) = $event))\n }, null, 512), [\n [_vModelText, _ctx.bulkEdit.night_bonus]\n ])\n ])\n ])\n ]),\n _createElementVNode(\"th\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"button\", {\n onClick: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.handleBulkEdit && _ctx.handleBulkEdit(...args))),\n style: {\"height\":\"28px\"},\n class: \"d-flex align-items-center btn btn-sm btn-primary\"\n }, \" Apply \")\n ])\n ]),\n _hoisted_20\n ])\n ]),\n (_ctx.hasModel)\n ? (_openBlock(), _createElementBlock(\"tbody\", { key: _ctx.key }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.rates.skills, (item) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: item.id\n }, [\n _createElementVNode(\"td\", _hoisted_21, [\n _createVNode(_component_el_checkbox, {\n style: {\"padding\":\"0 8px\"},\n onChange: ($event: any) => (_ctx.handleBulkEditList(item.id)),\n checked: _ctx.bulkEditList.includes(item.id)\n }, null, 8, [\"onChange\", \"checked\"])\n ]),\n _createElementVNode(\"td\", _hoisted_22, _toDisplayString(item.name), 1),\n _createElementVNode(\"td\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[item.id].base_rate) = $event)\n }, null, 8, _hoisted_23), [\n [_vModelText, _ctx.model[item.id].base_rate]\n ])\n ]),\n _createElementVNode(\"td\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[item.id].level_bonus) = $event)\n }, null, 8, _hoisted_24), [\n [_vModelText, _ctx.model[item.id].level_bonus]\n ])\n ]),\n _createElementVNode(\"td\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[item.id].weekend_bonus) = $event)\n }, null, 8, _hoisted_25), [\n [_vModelText, _ctx.model[item.id].weekend_bonus]\n ])\n ]),\n _createElementVNode(\"td\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 w-xl-75 h-32px\",\n id: \"maskedInput\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[item.id].night_bonus) = $event)\n }, null, 8, _hoisted_26), [\n [_vModelText, _ctx.model[item.id].night_bonus]\n ])\n ]),\n _hoisted_27,\n _createElementVNode(\"td\", _hoisted_28, [\n _createElementVNode(\"button\", {\n onClick: ($event: any) => (_ctx.handleCustomizeModal(item.id)),\n class: \"btn btn-sm btn-primary\"\n }, \" Customize \", 8, _hoisted_29)\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"button\", {\n disabled: _ctx.isSavingRates,\n onClick: _cache[6] || (_cache[6] = \n//@ts-ignore\n(...args) => (_ctx.emitSaveRates && _ctx.emitSaveRates(...args))),\n class: \"btn btn-success fw-bold text-white\"\n }, [\n (_ctx.isSavingRates)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_32))\n : _createCommentVNode(\"\", true),\n _hoisted_33\n ], 8, _hoisted_31)\n ])\n ])\n ], 64))\n}","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, vModelText as _vModelText, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2dbbf439\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"modal fade\",\n id: \"customize-rates-modal\",\n \"data-toggle\": \"modal\"\n}\nconst _hoisted_2 = { class: \"modal-dialog\" }\nconst _hoisted_3 = { class: \"modal-content\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal-header\" }, [\n /*#__PURE__*/_createElementVNode(\"h5\", {\n class: \"modal-title\",\n id: \"customize-rates-modal-label\"\n }, \"Customize rate\"),\n /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"btn btn-icon btn-sm btn-active-light-primary ms-2\",\n \"data-bs-dismiss\": \"modal\",\n \"aria-label\": \"Close\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"svg-icon svg-icon-2x\" })\n ])\n], -1))\nconst _hoisted_5 = { class: \"modal-body\" }\nconst _hoisted_6 = { class: \"table-responsive\" }\nconst _hoisted_7 = { class: \"table table-row-dashed table-row-gray-300 align-middle gs-0\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"thead\", null, [\n /*#__PURE__*/_createElementVNode(\"tr\", { class: \"fw-bolder text-muted\" }, [\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-100px\" }, \"Level\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-100px\" }, \"Rate\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-100px\" }, \"Night bonus\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"min-w-100px text-end\" }, \"Weekend bonus\")\n ])\n], -1))\nconst _hoisted_9 = { key: 0 }\nconst _hoisted_10 = { class: \"fs-5 fw-bold\" }\nconst _hoisted_11 = { class: \"d-flex\" }\nconst _hoisted_12 = [\"onUpdate:modelValue\"]\nconst _hoisted_13 = [\"onUpdate:modelValue\"]\nconst _hoisted_14 = { class: \"text-end d-flex justify-content-end\" }\nconst _hoisted_15 = [\"onUpdate:modelValue\"]\nconst _hoisted_16 = { class: \"modal-footer\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"button\", {\n type: \"button\",\n class: \"btn btn-light\",\n \"data-bs-dismiss\": \"modal\"\n}, \" Close \", -1))\nconst _hoisted_18 = [\"disabled\"]\nconst _hoisted_19 = {\n key: 0,\n class: \"spinner-border spinner-border-sm me-2\"\n}\nconst _hoisted_20 = /*#__PURE__*/_createTextVNode(\" Save \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"table\", _hoisted_7, [\n _hoisted_8,\n (_ctx.hasModelData)\n ? (_openBlock(), _createElementBlock(\"tbody\", _hoisted_9, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.orderedLevels, (level) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: level.id\n }, [\n _createElementVNode(\"td\", _hoisted_10, _toDisplayString(level.name), 1),\n _createElementVNode(\"td\", _hoisted_11, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 h-32px\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[level.id].base_rate) = $event)\n }, null, 8, _hoisted_12), [\n [_vModelText, _ctx.model[level.id].base_rate]\n ])\n ]),\n _createElementVNode(\"td\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 h-32px\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[level.id].night_bonus) = $event)\n }, null, 8, _hoisted_13), [\n [_vModelText, _ctx.model[level.id].night_bonus]\n ])\n ]),\n _createElementVNode(\"td\", _hoisted_14, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control w-100 h-32px\",\n type: \"number\",\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.model[level.id].weekend_bonus) = $event)\n }, null, 8, _hoisted_15), [\n [_vModelText, _ctx.model[level.id].weekend_bonus]\n ])\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _hoisted_17,\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"btn btn-success\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.handleSaveLevelRates && _ctx.handleSaveLevelRates(...args))),\n disabled: _ctx.isSaving\n }, [\n (_ctx.isSaving)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_19))\n : _createCommentVNode(\"\", true),\n _hoisted_20\n ], 8, _hoisted_18)\n ])\n ])\n ])\n ]))\n}","\n/* eslint-disable @typescript-eslint/camelcase */\nimport {computed, defineComponent, onMounted, PropType, reactive, ref} from \"vue\";\nimport { useStore } from \"vuex\";\nimport _ from \"lodash\";\n\ntype Level = {\n id: number;\n name: string;\n weight: number;\n updated_at: string;\n created_at: string;\n deleted_at: string | null;\n};\n\nexport default defineComponent({\n name: \"customize-rates-modal\",\n props: {\n skillId : {\n type: [Number, null] as PropType,\n default: () => null\n },\n isSaving: {\n type: Boolean as PropType,\n default: () => false\n }\n },\n setup(props, { emit }) {\n const store = useStore();\n const rates = computed(() =>\n store.getters[\"JobModule/getSkillRates\"]\n );\n const levels = computed(() => store.getters[\"LevelsModule/getData\"]);\n const orderedLevels = computed(() => {\n return _.orderBy(levels.value, \"weight\", \"desc\");\n });\n const model = reactive({});\n const hasModelData = computed(() => {\n return Object.keys(model).length > 0\n });\n const buildRatesModel = () => {\n if(props.skillId != null) {\n for(let i = 0; i < orderedLevels.value.length; i++) {\n const template = {\n base_rate: \"\",\n night_bonus: \"\",\n weekend_bonus: \"\",\n level_id: orderedLevels.value[i].id,\n skill_id: props.skillId\n };\n const existingRate = rates.value.historicalRates.find(item => item.skill_id == props.skillId && item.level_id == orderedLevels.value[i].id)\n if(existingRate) {\n template.base_rate = existingRate.base_rate;\n template.night_bonus = existingRate.night_bonus;\n template.weekend_bonus = existingRate.weekend_bonus;\n }\n model[orderedLevels.value[i].id] = template;\n }\n }\n }\n onMounted(() => {\n buildRatesModel();\n });\n\n const handleSaveLevelRates = () => {\n emit('save-level-rates', model);\n };\n\n return {\n handleSaveLevelRates,\n orderedLevels,\n hasModelData,\n model\n }\n }\n})\n","import { render } from \"./CustomizeRatesModal.vue?vue&type=template&id=2dbbf439&scoped=true&ts=true\"\nimport script from \"./CustomizeRatesModal.vue?vue&type=script&lang=ts\"\nexport * from \"./CustomizeRatesModal.vue?vue&type=script&lang=ts\"\n\nimport \"./CustomizeRatesModal.vue?vue&type=style&index=0&id=2dbbf439&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src1803551405/src/wci-front/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2dbbf439\"]])\n\nexport default __exports__","\n/* eslint-disable @typescript-eslint/camelcase */\nimport {computed, defineComponent, onMounted, ref, PropType, reactive, nextTick} from \"vue\";\nimport {useStore} from \"vuex\";\nimport CustomizeRatesModal from \"@/components/jobs/Misc/CustomizeRatesModal.vue\";\nimport { Modal } from \"bootstrap\";\nimport {fireSwal} from \"@/components/jobs/Misc/helpers\";\n\nexport default defineComponent({\n name: 'job-worker-rates-data-table',\n components: {\n CustomizeRatesModal\n },\n props: {\n isSavingRates: {\n type: Boolean as PropType,\n default: false\n }\n },\n setup(props , {emit}) {\n const store = useStore();\n const rates = computed(() => store.getters['JobModule/getSkillRates']);\n const model = reactive({});\n const bulkEditList = ref([]);\n const key = ref(0);\n const isSavingCustom = ref(false);\n const skillID = ref(null);\n const modalKey = ref(0);\n const modal = ref(null);\n const job = computed(\n () => store.getters['JobModule/item']\n );\n const hasModel = computed(() => Object.keys(model).length > 0);\n const bulkEdit = reactive({\n base_rate: \"\",\n weekend_bonus:\"\",\n night_bonus: \"\",\n level_bonus: \"\"\n });\n const buildModel = () => {\n for(let i = 0; i < rates.value.skills.length; i++) {\n const skill = rates.value.skills[i];\n const template = {\n base_rate: null,\n weekend_bonus: null,\n night_bonus: null,\n level_bonus: null,\n skill_id: skill.id,\n };\n const existingRate = rates.value.historicalRates.find(rate => rate.skill_id == skill.id && rate.level_id == null);\n if(existingRate) {\n template.base_rate = existingRate.base_rate;\n template.weekend_bonus = existingRate.weekend_bonus;\n template.night_bonus = existingRate.night_bonus;\n template.level_bonus = existingRate.level_bonus;\n }\n model[skill.id] = template;\n }\n };\n\n onMounted(() => {\n store.dispatch(\"LevelsModule/fetchData\");\n buildModel();\n });\n\n const emitSaveRates = () => {\n emit('saveRates', model);\n };\n\n const handleBulkEdit = () => {\n bulkEditList.value.forEach(skill => {\n model[skill].base_rate =\n bulkEdit.base_rate != \"\"\n ? bulkEdit.base_rate\n : model[skill].base_rate;\n model[skill].night_bonus =\n bulkEdit.night_bonus != \"\"\n ? bulkEdit.night_bonus\n : model[skill].night_bonus;\n model[skill].weekend_bonus =\n bulkEdit.weekend_bonus != \"\"\n ? bulkEdit.weekend_bonus\n : model[skill].weekend_bonus;\n model[skill].level_bonus =\n bulkEdit.level_bonus != \"\"\n ? bulkEdit.level_bonus\n : model[skill].level_bonus;\n });\n };\n\n const handleBulkEditList = (skillId) => {\n if(bulkEditList.value.includes(skillId)) {\n bulkEditList.value.splice(bulkEdit.value.indexOf(skillId), 1);\n } else {\n bulkEditList.value.push(skillId);\n }\n };\n\n const handleSelectAllRows = (event) => {\n if(event) {\n bulkEditList.value = Object.keys(model).map(item => parseInt(item));\n } else {\n bulkEditList.value = [];\n }\n key.value++;\n };\n\n const handleCustomizeModal = async (id: number) => {\n skillID.value = id;\n modalKey.value++;\n await nextTick().then(() => {\n modal.value = new Modal(document.getElementById(\"customize-rates-modal\"));\n modal.value.show();\n });\n };\n\n const handleSaveRatesLevel = (model) => {\n isSavingCustom.value = true;\n const payload = {\n rates: model,\n job_id: job.value.id,\n is_level: true\n }\n store.dispatch(\"JobModule/saveWorkerRate\", payload)\n .finally(() => {\n store.dispatch(\"JobModule/fetchWorkerRates\", job.value.id)\n .finally(() => {\n isSavingCustom.value = false;\n modal.value.hide();\n skillID.value = null;\n modalKey.value++;\n emit('update-state');\n })\n });\n };\n return {\n handleBulkEditList,\n emitSaveRates,\n handleBulkEdit,\n handleCustomizeModal,\n handleSelectAllRows,\n handleSaveRatesLevel,\n isSavingCustom,\n skillID,\n modalKey,\n bulkEditList,\n key,\n bulkEdit,\n rates,\n model,\n hasModel\n }\n }\n})\n","import { render } from \"./WorkerRatesDataTable.vue?vue&type=template&id=89af6932&scoped=true&ts=true\"\nimport script from \"./WorkerRatesDataTable.vue?vue&type=script&lang=ts\"\nexport * from \"./WorkerRatesDataTable.vue?vue&type=script&lang=ts\"\n\nimport \"./WorkerRatesDataTable.vue?vue&type=style&index=0&id=89af6932&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src1803551405/src/wci-front/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-89af6932\"]])\n\nexport default __exports__","\n/* eslint-disable @typescript-eslint/camelcase */\nimport {computed, defineComponent, onMounted, PropType, ref} from \"vue\";\nimport LoadingSpinner from \"@/components/general/LoadingSpinner.vue\";\nimport RatesDataTable from \"@/components/jobs/Misc/WorkerRatesDataTable.vue\";\nimport { useRouter } from \"vue-router\";\nimport { useStore } from \"vuex\";\nimport { fireSwal } from \"@/components/jobs/Misc/helpers\";\n\nexport default defineComponent({\n name: \"worker-rates-tab\",\n components: {\n LoadingSpinner,\n RatesDataTable\n },\n setup() {\n const router = useRouter();\n const store = useStore();\n const job = computed(\n () => store.getters['JobModule/item']\n );\n const key = ref(0);\n const isSavingRates = ref(false);\n const isLoading = ref(false);\n onMounted(() => {\n isLoading.value = true;\n store.dispatch(\"JobModule/fetchWorkerRates\", job.value.id)\n .finally(() => {\n isLoading.value = false;\n });\n });\n\n const rerenderTableElement = () => {\n key.value++;\n }\n\n const handleSaveRates = (data) => {\n const payload = {\n rates: data,\n job_id: job.value.id\n }\n isSavingRates.value = true;\n store.dispatch(\"JobModule/saveWorkerRate\", payload)\n .finally(() => {\n store.dispatch(\"JobModule/fetchWorkerRates\", job.value.id)\n .finally(() => {\n rerenderTableElement();\n isSavingRates.value = false;\n fireSwal();\n });\n })\n }\n\n return {\n rerenderTableElement,\n handleSaveRates,\n isSavingRates,\n key,\n isLoading\n }\n }\n})\n","import { render } from \"./WorkerRatesTab.vue?vue&type=template&id=6440dfde&ts=true\"\nimport script from \"./WorkerRatesTab.vue?vue&type=script&lang=ts\"\nexport * from \"./WorkerRatesTab.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/codebuild/output/src1803551405/src/wci-front/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./CustomizeRatesModal.vue?vue&type=style&index=0&id=2dbbf439&scoped=true&lang=css\"","import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7cf22dc6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"d-flex justify-content-center\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"spinner-border m-20 spinner-size-increase\", _ctx.spinnerColor]),\n role: \"status\"\n }, null, 2)\n ]))\n}","\nimport { defineComponent, PropType } from \"vue\";\n\nexport default defineComponent({\n name: \"LoadingSpinner\",\n props: {\n spinnerColor: {\n type: String as PropType,\n default: \"text-primary\"\n }\n }\n});\n","import { render } from \"./LoadingSpinner.vue?vue&type=template&id=7cf22dc6&scoped=true&ts=true\"\nimport script from \"./LoadingSpinner.vue?vue&type=script&lang=ts\"\nexport * from \"./LoadingSpinner.vue?vue&type=script&lang=ts\"\n\nimport \"./LoadingSpinner.vue?vue&type=style&index=0&id=7cf22dc6&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src1803551405/src/wci-front/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7cf22dc6\"]])\n\nexport default __exports__"],"sourceRoot":""}